ruby-changes:51320
From: nobu <ko1@a...>
Date: Wed, 30 May 2018 18:13:26 +0900 (JST)
Subject: [ruby-changes:51320] nobu:r63526 (trunk): Workaround for old LibreSSL
nobu 2018-05-30 18:13:21 +0900 (Wed, 30 May 2018) New Revision: 63526 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63526 Log: Workaround for old LibreSSL Modified files: trunk/ext/openssl/openssl_missing.h Index: ext/openssl/openssl_missing.h =================================================================== --- ext/openssl/openssl_missing.h (revision 63525) +++ ext/openssl/openssl_missing.h (revision 63526) @@ -27,6 +27,9 @@ int ossl_EC_curve_nist2nid(const char *) https://github.com/ruby/ruby/blob/trunk/ext/openssl/openssl_missing.h#L27 #if !defined(HAVE_X509_STORE_CTX_GET0_STORE) # define X509_STORE_CTX_get0_store(x) ((x)->ctx) +#elif defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL +/* old LibreSSL provides this function but lacks the declaration */ +X509_STORE *X509_STORE_CTX_get0_store(X509_STORE_CTX *xs); #endif #if !defined(HAVE_SSL_IS_SERVER) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/