Adjust code to support LibreSSL without the ASN1 macros (#3822)

This commit is contained in:
Brad Smith 2024-01-08 22:48:33 -05:00 committed by GitHub
parent ca0c4403ec
commit 26bdf998f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ static void update_certs_info(pj_ssl_sock_t* ssock,
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
# define OPENSSL_NO_SSL2 /* seems to be removed in 1.1.0 */
# if !USING_LIBRESSL
# ifndef M_ASN1_STRING_data
# define M_ASN1_STRING_data(x) ASN1_STRING_get0_data(x)
# define M_ASN1_STRING_length(x) ASN1_STRING_length(x)
# endif