security/opensc: Neuter various API reimplementations that were broken

with the latest LibreSSL bump. All this API is now provided by the
libraries.
This commit is contained in:
tb 2021-10-31 17:19:13 +00:00
parent 89e9a397cc
commit 668981d212
2 changed files with 16 additions and 1 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.56 2020/11/25 14:26:26 sthen Exp $
# $OpenBSD: Makefile,v 1.57 2021/10/31 17:19:13 tb Exp $
COMMENT= set of libraries and utilities to access smart cards
V= 0.21.0
DISTNAME= opensc-${V}
REVISION= 0
SHARED_LIBS += opensc 7.2 # 6.0
SHARED_LIBS += smm-local 3.1 # 6.0

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_libopensc_sc-ossl-compat_h,v 1.5 2021/10/31 17:19:13 tb Exp $
Index: src/libopensc/sc-ossl-compat.h
--- src/libopensc/sc-ossl-compat.h.orig
+++ src/libopensc/sc-ossl-compat.h
@@ -71,7 +71,7 @@ extern "C" {
#define EVP_PKEY_base_id(x) (x->type)
#endif
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
#define RSA_PKCS1_OpenSSL RSA_PKCS1_SSLeay
#define X509_get_extension_flags(x) (x->ex_flags)