src: Only consider openssl 1.1.0 final
This commit is contained in:
parent
0110d2f9f8
commit
6ba1abac6c
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue