Fixed some compiler warnings

FossilOrigin-Name: 0264b0f96f1a8ec7ee01b15de7ef208802cca95d35f1f2ba6ab380b82667b4d5
This commit is contained in:
7u83@mail.ru
2018-03-11 10:29:00 +00:00
parent 9d28e72a6b
commit 27869b8c11
25 changed files with 50 additions and 122 deletions

View File

@ -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);
}