diff options
author | sevan <sevan@pkgsrc.org> | 2018-04-05 21:19:32 +0000 |
---|---|---|
committer | sevan <sevan@pkgsrc.org> | 2018-04-05 21:19:32 +0000 |
commit | 26362d097b516ce7a912f95b59120c9603fef4c4 (patch) | |
tree | 770316a469fa9837c2b6675f65078ffa8d95cb70 | |
parent | 742cf713357d503cccb6acbcf5ee28159884f4fe (diff) | |
download | pkgsrc-26362d097b516ce7a912f95b59120c9603fef4c4.tar.gz |
X509_get_extended_key_usage and X509_get_extension_flags definitions are also
needed for LibreSSL.
Tested on OpenBSD/amd64 6.3
-rw-r--r-- | pkgtools/pkg_install/files/lib/pkcs7.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/lib/pkcs7.c b/pkgtools/pkg_install/files/lib/pkcs7.c index 41cab190faf..46944fc709f 100644 --- a/pkgtools/pkg_install/files/lib/pkcs7.c +++ b/pkgtools/pkg_install/files/lib/pkcs7.c @@ -1,4 +1,4 @@ -/* $NetBSD: pkcs7.c,v 1.6 2017/10/24 15:54:31 maya Exp $ */ +/* $NetBSD: pkcs7.c,v 1.7 2018/04/05 21:19:32 sevan Exp $ */ #if HAVE_CONFIG_H #include "config.h" #endif @@ -7,7 +7,7 @@ #include <sys/cdefs.h> #endif -__RCSID("$NetBSD: pkcs7.c,v 1.6 2017/10/24 15:54:31 maya Exp $"); +__RCSID("$NetBSD: pkcs7.c,v 1.7 2018/04/05 21:19:32 sevan Exp $"); /*- * Copyright (c) 2004, 2008 The NetBSD Foundation, Inc. @@ -55,7 +55,8 @@ __RCSID("$NetBSD: pkcs7.c,v 1.6 2017/10/24 15:54:31 maya Exp $"); #define NS_ANY_CA (NS_SSL_CA|NS_SMIME_CA|NS_OBJSIGN_CA) #endif -#if !defined(OPENSSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x10100000L) +#if !defined(OPENSSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x10100000L) || \ + defined(LIBRESSL_VERSION_NUMBER) #define X509_get_extended_key_usage(x) x->ex_xkusage #define X509_get_extension_flags(x) x->ex_flags #endif |