chore: remove old OpenSSL support

This commit is contained in:
SASANO Takayoshi 2026-05-15 23:58:06 +09:00 committed by Nick Bolton
parent 5a1a190edd
commit 67f1f41819

View file

@ -45,15 +45,8 @@ void logLocalSecureCipherInfo(const SSL *ssl)
void logRemoteSecureCipherInfo(const SSL *ssl)
{
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
// ssl->session->ciphers is not forward compatable,
// In future release of OpenSSL, it's not visible,
// however, LibreSSL still uses this.
auto cStack = ssl->session->ciphers;
#else
// Use SSL_get_client_ciphers() for newer versions of OpenSSL.
auto cStack = SSL_get_client_ciphers(ssl);
#endif
if (cStack) {
LOG_VERBOSE("available remote ciphers:");
showCipherStackDesc(cStack);