summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS.rst1
-rw-r--r--lib/stream-ssl.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/AUTHORS.rst b/AUTHORS.rst
index cb0cd91b2..4b9e78f07 100644
--- a/AUTHORS.rst
+++ b/AUTHORS.rst
@@ -297,6 +297,7 @@ Sten Spans sten@blinkenlights.nl
Stephane A. Sezer sas@cd80.net
Stephen Finucane stephen@that.guru
Steve Ruan ruansx@cn.ibm.com
+Stuart Cardall developer@it-offshore.co.uk
Sugesh Chandran sugesh.chandran@intel.com
SUGYO Kazushi sugyo.org@gmail.com
Tadaaki Nagao nagao@stratosphere.co.jp
diff --git a/lib/stream-ssl.c b/lib/stream-ssl.c
index 13803014b..aa513c12e 100644
--- a/lib/stream-ssl.c
+++ b/lib/stream-ssl.c
@@ -448,7 +448,7 @@ get_peer_common_name(const struct ssl_stream *sslv)
}
const char *cn;
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER)
/* ASN1_STRING_data() is deprecated as of OpenSSL version 1.1 */
cn = (const char *)ASN1_STRING_data(cn_data);
#else