[pkg-opensc-commit] [opensc] 244/295: build fix for libressl 2.5.3

Eric Dorland eric at moszumanska.debian.org
Sat Jun 24 21:11:36 UTC 2017


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository opensc.

commit f5aa3f5cc6f7450cacabaf06c1bb0973155435b2
Author: Timo Teräs <timo.teras at iki.fi>
Date:   Sat Apr 22 11:59:24 2017 +0300

    build fix for libressl 2.5.3
    
    X509_up_ref is implemented in libressl 2.5.3
---
 src/libopensc/sc-ossl-compat.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libopensc/sc-ossl-compat.h b/src/libopensc/sc-ossl-compat.h
index a97abe4..2c853be 100644
--- a/src/libopensc/sc-ossl-compat.h
+++ b/src/libopensc/sc-ossl-compat.h
@@ -98,8 +98,10 @@ extern "C" {
 #define X509_get_key_usage(x)		(x->ex_kusage)
 #define X509_get_extended_key_usage(x)	(x->ex_xkusage)
 #define EVP_PKEY_up_ref(user_key)	CRYPTO_add(&user_key->references, 1, CRYPTO_LOCK_EVP_PKEY)
+#if !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x2050300fL
 #define X509_up_ref(cert)		CRYPTO_add(&cert->references, 1, CRYPTO_LOCK_X509)
 #endif
+#endif
 
 /*
  * OpenSSL-1.1.0-pre5 has hidden the RSA and DSA structures

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/opensc.git



More information about the pkg-opensc-commit mailing list