Skip to content

Commit

Permalink
still fall back to ctx ciphersuites if config is shed
Browse files Browse the repository at this point in the history
  • Loading branch information
smittals2 committed Feb 19, 2025
1 parent f140fc8 commit bf9b60e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ssl/ssl_lib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2168,8 +2168,12 @@ STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *ssl) {
return NULL;
}

return ssl->config && ssl->config->cipher_list ?
ssl->config->cipher_list->ciphers.get() : NULL;
if (ssl->config && ssl->config->cipher_list) {
return ssl->config->cipher_list->ciphers.get();
}

return ssl->ctx && ssl->ctx->cipher_list ?
ssl->ctx->cipher_list->ciphers.get() : NULL;
}

const char *SSL_get_cipher_list(const SSL *ssl, int n) {
Expand Down

0 comments on commit bf9b60e

Please sign in to comment.