Skip to content

Commit 162adb8

Browse files
committed
Workaround for old LibreSSL
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent d53ee00 commit 162adb8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/openssl/openssl_missing.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ int ossl_EC_curve_nist2nid(const char *);
2727

2828
#if !defined(HAVE_X509_STORE_CTX_GET0_STORE)
2929
# define X509_STORE_CTX_get0_store(x) ((x)->ctx)
30+
#elif defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL
31+
/* old LibreSSL provides this function but lacks the declaration */
32+
X509_STORE *X509_STORE_CTX_get0_store(X509_STORE_CTX *xs);
3033
#endif
3134

3235
#if !defined(HAVE_SSL_IS_SERVER)

0 commit comments

Comments
 (0)