Explorar o código

add engine_load_builtin to use hardware crypto capability where possible

Bryan Heden %!s(int64=8) %!d(string=hai) anos
pai
achega
50cbea73c7
Modificáronse 2 ficheiros con 6 adicións e 0 borrados
  1. 3 0
      src/check_nrpe.c
  2. 3 0
      src/nrpe.c

+ 3 - 0
src/check_nrpe.c

@@ -801,6 +801,9 @@ void setup_ssl()
 	if (use_ssl == TRUE) {
 		SSL_load_error_strings();
 		SSL_library_init();
+		ENGINE_load_builtin_engines();
+		RAND_set_rand_engine(NULL);
+ 		ENGINE_register_all_complete();
 
 #if OPENSSL_VERSION_NUMBER >= 0x10100000
 

+ 3 - 0
src/nrpe.c

@@ -273,6 +273,9 @@ void init_ssl(void)
 	/* initialize SSL */
 	SSL_load_error_strings();
 	SSL_library_init();
+	ENGINE_load_builtin_engines();
+	RAND_set_rand_engine(NULL);
+ 	ENGINE_register_all_complete();
 
 	meth = SSLv23_server_method();