2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-27 15:18:06 +00:00

add libressl compatibility

fixes undefined reference to ASN1_STRING_get0_data

Submitted-at: https://github.com/openvswitch/ovs/pull/202
Signed-off-by: Stuart Cardall <developer@it-offshore.co.uk>
Signed-off-by: Russell Bryant <russell@ovn.org>
This commit is contained in:
Stuart Cardall
2017-09-10 19:11:04 +00:00
committed by Russell Bryant
parent 4ee87ad31e
commit b9fedfa61f
2 changed files with 2 additions and 1 deletions

View File

@@ -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