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>
This commit is contained in:
Rosen Penev
2019-01-05 23:34:20 -08:00
parent 30c73ca5e6
commit 494ce7118a
2 changed files with 14 additions and 2 deletions
@@ -8,3 +8,16 @@
#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();