mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user