chore: remove old OpenSSL support
This commit is contained in:
parent
5a1a190edd
commit
67f1f41819
1 changed files with 1 additions and 8 deletions
|
|
@ -45,15 +45,8 @@ void logLocalSecureCipherInfo(const SSL *ssl)
|
||||||
|
|
||||||
void logRemoteSecureCipherInfo(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);
|
auto cStack = SSL_get_client_ciphers(ssl);
|
||||||
#endif
|
|
||||||
if (cStack) {
|
if (cStack) {
|
||||||
LOG_VERBOSE("available remote ciphers:");
|
LOG_VERBOSE("available remote ciphers:");
|
||||||
showCipherStackDesc(cStack);
|
showCipherStackDesc(cStack);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue