packages/net/vpnc/patches/110-openssl-deprecated.patch
Rosen Penev 494ce7118a vpnc: Updated deprecated patch to include OpenSSL 1.1
Patch was only for 1.0.2. This adds 1.1 support.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-01-09 12:03:54 -08:00

23 lines
555 B
Diff

--- a/crypto-openssl.c
+++ b/crypto-openssl.c
@@ -20,6 +20,7 @@
#include <string.h>
#include <errno.h>
#include <openssl/pem.h>
+#include <openssl/rsa.h>
#include "config.h"
#include "sysdep.h"
#include "crypto.h"
@@ -35,10 +36,12 @@ crypto_ctx *crypto_ctx_new(crypto_error **error)
return NULL;
}
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests();
OpenSSL_add_all_algorithms();
ERR_load_crypto_strings();
+#endif
memset(ctx, 0, sizeof(crypto_ctx));
ctx->stack = sk_X509_new_null();