Ver código fonte

Enforce server cipher order and disable renegotiation if available.

Doug Nazar 4 anos atrás
pai
commit
5414312446
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      src/nrpe.c

+ 6 - 0
src/nrpe.c

@@ -277,6 +277,12 @@ void init_ssl(void)
 	ssl_opts = SSL_OP_ALL;
 	sslprm.allowDH = 0;
 #endif
+#ifdef SSL_OP_NO_RENEGOTIATION
+	ssl_opts |= SSL_OP_NO_RENEGOTIATION;
+#endif
+#ifdef SSL_OP_CIPHER_SERVER_PREFERENCE
+	ssl_opts |= SSL_OP_CIPHER_SERVER_PREFERENCE;
+#endif
 
 	if (sslprm.log_opts & SSL_LogStartup)
 		log_ssl_startup();