]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: load openssl configuration when rgw starts
authorHang Li <lihang48@huawei.com>
Fri, 10 Apr 2020 10:17:09 +0000 (18:17 +0800)
committerluo rixin <luorixin@huawei.com>
Sun, 26 Apr 2020 00:59:22 +0000 (08:59 +0800)
when rgw starts, try to load engine using opt "openssl_engine_opts"

Signed-off-by: Hang Li <lihang48@huawei.com>
src/rgw/rgw_main.cc

index a3ca40e2cdf39b9d792eb5439d44de7b03116d2f..2538613a1eeb971e468acc771ad0434cd2c5b205 100644 (file)
@@ -9,6 +9,7 @@
 #include "common/Timer.h"
 #include "common/safe_io.h"
 #include "common/TracepointProvider.h"
+#include "common/openssl_opts_handler.h"
 #include "common/numa.h"
 #include "include/compat.h"
 #include "include/str_list.h"
@@ -307,6 +308,8 @@ int radosgw_Main(int argc, const char **argv)
   init_timer.add_event_after(g_conf()->rgw_init_timeout, new C_InitTimeout);
   mutex.unlock();
 
+  ceph::crypto::init_openssl_engine_once();
+
   common_init_finish(g_ceph_context);
 
   init_async_signal_handler();