mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
Fix build error with OpenSSL < 1.0.2 (again)
This commit is contained in:
@@ -485,12 +485,12 @@ int alpn_select_proto_cb(SSL *ssl, const unsigned char **out,
|
|||||||
} // namespace
|
} // namespace
|
||||||
#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L
|
#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L
|
||||||
|
|
||||||
|
#if !LIBRESSL_IN_USE && OPENSSL_VERSION_NUMBER >= 0x10002000L
|
||||||
namespace {
|
namespace {
|
||||||
// https://tools.ietf.org/html/rfc6962#section-6
|
// https://tools.ietf.org/html/rfc6962#section-6
|
||||||
constexpr unsigned int TLS_EXT_SIGNED_CERTIFICATE_TIMESTAMP = 18;
|
constexpr unsigned int TLS_EXT_SIGNED_CERTIFICATE_TIMESTAMP = 18;
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
#if !LIBRESSL_IN_USE && OPENSSL_VERSION_NUMBER >= 0x10002000L
|
|
||||||
namespace {
|
namespace {
|
||||||
int sct_add_cb(SSL *ssl, unsigned int ext_type, const unsigned char **out,
|
int sct_add_cb(SSL *ssl, unsigned int ext_type, const unsigned char **out,
|
||||||
size_t *outlen, int *al, void *add_arg) {
|
size_t *outlen, int *al, void *add_arg) {
|
||||||
|
|||||||
Reference in New Issue
Block a user