handle EVP_PKEY_up_ref() addition
This commit is contained in:
parent
b0a26c3bb9
commit
6acc828b58
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.43 2017/09/11 09:27:38 dcoppa Exp $
|
||||
# $OpenBSD: Makefile,v 1.44 2018/02/16 12:20:47 sthen Exp $
|
||||
|
||||
COMMENT= set of libraries and utilities to access smart cards
|
||||
|
||||
VERSION= 0.17.0
|
||||
DISTNAME= OpenSC-${VERSION}
|
||||
PKGNAME= opensc-${VERSION}
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
GH_ACCOUNT= OpenSC
|
||||
GH_PROJECT= ${GH_ACCOUNT}
|
||||
GH_TAGNAME= ${VERSION}
|
||||
|
15
security/opensc/patches/patch-src_libopensc_sc-ossl-compat_h
Normal file
15
security/opensc/patches/patch-src_libopensc_sc-ossl-compat_h
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-src_libopensc_sc-ossl-compat_h,v 1.1 2018/02/16 12:20:47 sthen Exp $
|
||||
|
||||
Index: src/libopensc/sc-ossl-compat.h
|
||||
--- src/libopensc/sc-ossl-compat.h.orig
|
||||
+++ src/libopensc/sc-ossl-compat.h
|
||||
@@ -97,7 +97,9 @@ extern "C" {
|
||||
#define X509_get_extension_flags(x) (x->ex_flags)
|
||||
#define X509_get_key_usage(x) (x->ex_kusage)
|
||||
#define X509_get_extended_key_usage(x) (x->ex_xkusage)
|
||||
+#if !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x2070000fL
|
||||
#define EVP_PKEY_up_ref(user_key) CRYPTO_add(&user_key->references, 1, CRYPTO_LOCK_EVP_PKEY)
|
||||
+#endif
|
||||
#if !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x2050300fL
|
||||
#define X509_up_ref(cert) CRYPTO_add(&cert->references, 1, CRYPTO_LOCK_X509)
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user