Skip to content

Commit

Permalink
add openssl 3 compat and ubuntu 22.04 (Azure#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
danewalton authored and Vladimir Shupilov committed Nov 25, 2024
1 parent e391f40 commit a76d8f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/x509_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ static int load_certificate_chain(SSL_CTX* ssl_ctx, const char* certificate)
// certificates.

/* Codes_SRS_X509_OPENSSL_07_006: [ If successful x509_openssl_add_ecc_credentials shall to import each certificate in the cert chain. ] */
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && (OPENSSL_VERSION_NUMBER < 0x20000000L)
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
SSL_CTX_clear_extra_chain_certs(ssl_ctx);
#else
if (ssl_ctx->extra_certs != NULL)
Expand Down

0 comments on commit a76d8f5

Please sign in to comment.