ports/security/broccoli/files/patch-aux_broccoli_src_bro__openssl.c
Craig Leres 7ef95f7e6f Update to 1.101.
PR:		235139
Submitted by:	bofh
Approved by:	ler (mentor, implicit)
2019-02-02 21:22:58 +00:00

15 lines
508 B
C

--- aux/broccoli/src/bro_openssl.c.orig 2018-12-19 16:36:18 UTC
+++ aux/broccoli/src/bro_openssl.c
@@ -302,7 +302,11 @@ __bro_openssl_init(void)
* to set up an SSL connection now and abort if this fails in any way.
*/
- if (! (ctx = SSL_CTX_new(SSLv23_method())))
+#ifndef OPENSSL_NO_SSL3
+ if (! (ctx = SSL_CTX_new(SSLv3_method())))
+#else
+ if (! (ctx = SSL_CTX_new(SSLv23_method())))
+#endif
D_RETURN_(FALSE);
/* We expect things to be stored in PEM format, which means that we