vpnc: Updated deprecated patch to include OpenSSL 1.1
authorRosen Penev <rosenp@gmail.com>
Sun, 6 Jan 2019 07:34:20 +0000 (23:34 -0800)
committerRosen Penev <rosenp@gmail.com>
Wed, 9 Jan 2019 20:03:54 +0000 (12:03 -0800)
Patch was only for 1.0.2. This adds 1.1 support.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/vpnc/Makefile
net/vpnc/patches/110-openssl-deprecated.patch

index 6d8516d376f95e4dca2151cb2924370ce7570042..ea7eb595d5f42ac237321e3ee899f1d0e99aedf0 100644 (file)
@@ -10,14 +10,13 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=vpnc
 PKG_REV:=550
 PKG_VERSION:=0.5.3.r$(PKG_REV)
-PKG_RELEASE:=7
+PKG_RELEASE:=8
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://svn.unix-ag.uni-kl.de/vpnc/trunk/
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_VERSION:=$(PKG_REV)
 PKG_SOURCE_PROTO:=svn
-PKG_MIRROR_HASH:=f95e2ac4e7e55c06553e0fed016a908b0f2695cee988bc70c9994c03e2f588c4
 
 PKG_MAINTAINER:=Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
 PKG_LICENSE:=VARIOUS
index c3d87ee7a45c5fdb91da35478ba7ca899c0d56b1..190bc839a2fe114715d337f877cc73ee0b8ee138 100644 (file)
@@ -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();