mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
improved display of ciphers giving TLS version
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8104 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
73a6ca8af6
commit
69c44ef9ef
2 changed files with 9 additions and 4 deletions
|
@ -353,7 +353,9 @@ void pqissl::getCryptoParams(RsPeerCryptoParams& params)
|
|||
params.cipher_bits_1 = alg ;
|
||||
params.cipher_bits_2 = al2 ;
|
||||
|
||||
params.cipher_version = SSL_get_cipher_version(ssl_connection) ;
|
||||
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");
|
||||
OPENSSL_free(desc);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue