get rid of cipher_version variable. use plain output from openssl

This commit is contained in:
sehraf 2018-09-15 14:30:23 +02:00
parent 7ce2bef37b
commit 1e85b05f09
No known key found for this signature in database
GPG key ID: DF09F6EAE356B2C6
5 changed files with 3 additions and 29 deletions

View file

@ -1195,14 +1195,7 @@ void PeersHandler::handleGetNodeOptions(Request& req, Response& resp)
std::string encryption;
RsPeerCryptoParams cdet;
if(RsControl::instance()->getPeerCryptoDetails(detail.id, cdet) && cdet.connexion_state != 0)
{
encryption = cdet.cipher_version;
encryption += ": ";
encryption += cdet.cipher_name;
if(cdet.cipher_version != "TLSv1.2")
encryption += cdet.cipher_bits_1;
}
encryption = cdet.cipher_name;
else
encryption = "Not connected";