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:
committed by
Russell Bryant
parent
4ee87ad31e
commit
b9fedfa61f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user