Skip to content

Commit

Permalink
Adjust code to support LibreSSL without the ASN1 macros (#3822)
Browse files Browse the repository at this point in the history
  • Loading branch information
brad0 authored Jan 9, 2024
1 parent ca0c440 commit 26bdf99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pjlib/src/pj/ssl_sock_ossl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26bdf99

Please sign in to comment.