From 69119f47c4bf7550a68c1a3d894490f0d0a481f3 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 17 Jun 2015 18:24:14 +0900 Subject: [PATCH] src: Support compile with LibreSSL --- src/h2load.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/h2load.cc b/src/h2load.cc index 76e8649f..cb91fbf4 100644 --- a/src/h2load.cc +++ b/src/h2load.cc @@ -292,7 +292,8 @@ const char *get_tls_protocol(SSL *ssl) { namespace { void print_server_tmp_key(SSL *ssl) { -#if OPENSSL_VERSION_NUMBER >= 0x10002000L +// libressl does not have SSL_get_server_tmp_key +#if OPENSSL_VERSION_NUMBER >= 0x10002000L && defined(SSL_get_server_tmp_key) EVP_PKEY *key; if (!SSL_get_server_tmp_key(ssl, &key)) {