Skip to content

Commit

Permalink
OpenSSL: Set ciphersuites only if not using BoringSSL (#4269)
Browse files Browse the repository at this point in the history
  • Loading branch information
sauwming authored Jan 24, 2025
1 parent 377a80c commit a89917e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pjlib/src/pj/ssl_sock_ossl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1842,7 +1842,9 @@ static pj_status_t set_cipher_list(pj_ssl_sock_t *ssock)
* SSL_CTX_set_ciphersuites() is for TLSv1.3.
*/
ret = SSL_CTX_set_cipher_list(ossock->ossl_ctx, buf);
#if !USING_BORINGSSL
ret2 = SSL_CTX_set_ciphersuites(ossock->ossl_ctx, buf);
#endif
if (ret < 1 && ret2 < 1) {
PJ_LOG(4, (THIS_FILE, "Failed setting cipher list %s",
cipher_list.ptr));
Expand Down

0 comments on commit a89917e

Please sign in to comment.