get rid of unused variables

This commit is contained in:
sehraf 2018-09-15 14:38:57 +02:00
parent 1e85b05f09
commit 0b6644cd55
No known key found for this signature in database
GPG Key ID: DF09F6EAE356B2C6
3 changed files with 0 additions and 14 deletions

View File

@ -604,8 +604,6 @@ bool pqiperson::getCryptoParams(RsPeerCryptoParams & params)
{ {
params.connexion_state = 0; params.connexion_state = 0;
params.cipher_name.clear(); params.cipher_name.clear();
params.cipher_bits_1 = 0;
params.cipher_bits_2 = 0;
return false ; return false ;
} }
@ -624,8 +622,6 @@ bool pqiconnect::getCryptoParams(RsPeerCryptoParams & params)
{ {
params.connexion_state = 0 ; params.connexion_state = 0 ;
params.cipher_name.clear() ; params.cipher_name.clear() ;
params.cipher_bits_1 = 0 ;
params.cipher_bits_2 = 0 ;
return false ; return false ;
} }
} }

View File

@ -305,12 +305,6 @@ void pqissl::getCryptoParams(RsPeerCryptoParams& params)
{ {
params.connexion_state = 1 ; params.connexion_state = 1 ;
int alg ;
int al2 = SSL_get_cipher_bits(ssl_connection,&alg);
params.cipher_bits_1 = alg ;
params.cipher_bits_2 = al2 ;
char *desc = SSL_CIPHER_description(SSL_get_current_cipher(ssl_connection), NULL, 0); char *desc = SSL_CIPHER_description(SSL_get_current_cipher(ssl_connection), NULL, 0);
params.cipher_name = std::string(desc); params.cipher_name = std::string(desc);
OPENSSL_free(desc); OPENSSL_free(desc);
@ -319,8 +313,6 @@ void pqissl::getCryptoParams(RsPeerCryptoParams& params)
{ {
params.connexion_state = 0 ; params.connexion_state = 0 ;
params.cipher_name.clear() ; params.cipher_name.clear() ;
params.cipher_bits_1 = 0 ;
params.cipher_bits_2 = 0 ;
} }
} }

View File

@ -333,8 +333,6 @@ struct RsPeerCryptoParams
{ {
int connexion_state; int connexion_state;
std::string cipher_name; std::string cipher_name;
int cipher_bits_1;
int cipher_bits_2;
}; };
struct RsGroupInfo : RsSerializable struct RsGroupInfo : RsSerializable