mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
add support for displaying TLSv1.3
This commit is contained in:
parent
7784660d67
commit
7ce2bef37b
2 changed files with 7 additions and 2 deletions
|
@ -313,7 +313,12 @@ void pqissl::getCryptoParams(RsPeerCryptoParams& params)
|
|||
params.cipher_bits_2 = al2 ;
|
||||
|
||||
char *desc = SSL_CIPHER_description(SSL_get_current_cipher(ssl_connection), NULL, 0);
|
||||
params.cipher_version = std::string(desc).find("TLSv1.2") != std::string::npos ? std::string("TLSv1.2") : std::string("TLSv1");
|
||||
params.cipher_version =
|
||||
std::string(desc).find("TLSv1.3") != std::string::npos ?
|
||||
std::string("TLSv1.3") :
|
||||
std::string(desc).find("TLSv1.2") != std::string::npos ?
|
||||
std::string("TLSv1.2") :
|
||||
std::string("TLSv1");
|
||||
OPENSSL_free(desc);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue