ports/security/pev/files/patch-src_pesec.c
Danilo Egea Gondolfo 16e19f6313 - Fix build after OpenSSL update on FreeBSD 12
PR:		232211
Submitted by:	Nathan <ndowens AT yahoo.com>
2018-10-20 12:14:02 +00:00

12 lines
313 B
C

--- src/pesec.c.orig 2018-10-20 11:48:33 UTC
+++ src/pesec.c
@@ -225,7 +225,9 @@ static int parse_pkcs7_data(const options_t *options,
PKCS7 *p7 = NULL;
BIO *in = NULL;
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
CRYPTO_malloc_init();
+#endif
ERR_load_crypto_strings();
OpenSSL_add_all_algorithms();