mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-10 11:58:36 -05:00
get rid of unused variables
This commit is contained in:
parent
1e85b05f09
commit
0b6644cd55
@ -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 ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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 ;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user