Fixed some compiler warnings
FossilOrigin-Name: 0264b0f96f1a8ec7ee01b15de7ef208802cca95d35f1f2ba6ab380b82667b4d5
This commit is contained in:
@ -21,14 +21,16 @@
|
||||
|
||||
const char * dtls_openssl_get_cipher(struct conn * conn)
|
||||
{
|
||||
struct dtls_openssl_data * d;
|
||||
const SSL_CIPHER * c;
|
||||
if (!conn->dtls_data)
|
||||
return "None";
|
||||
|
||||
struct dtls_openssl_data * d = (struct dtls_openssl_data*)conn->dtls_data;
|
||||
d = (struct dtls_openssl_data*)conn->dtls_data;
|
||||
|
||||
if ( !d->ssl )
|
||||
return "None";
|
||||
|
||||
const SSL_CIPHER * c = SSL_get_current_cipher(d->ssl);
|
||||
c = SSL_get_current_cipher(d->ssl);
|
||||
return SSL_CIPHER_get_name(c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user