src: Only consider openssl 1.1.0 final

This commit is contained in:
Tatsuhiro Tsujikawa 2016-08-27 00:45:16 +09:00
parent 0110d2f9f8
commit 6ba1abac6c
2 changed files with 5 additions and 1 deletions

View File

@ -73,9 +73,11 @@ namespace shrpx {
namespace ssl {
#if !OPENSSL_101_API
namespace {
const unsigned char *ASN1_STRING_get0_data(ASN1_STRING *x) {
return ASN1_STRING_data(x);
}
} // namespace
#endif // !OPENSSL_101_API
namespace {

View File

@ -24,7 +24,9 @@
*/
#ifndef OPENSSL_COMPAT_H
#include <openssl/opensslv.h>
#define OPENSSL_101_API \
(!defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100005L)
(!defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x1010000fL)
#endif // OPENSSL_COMPAT_H