#85 消除ssl stream中的unused variable warning

This commit is contained in:
zhengchao
2018-11-26 16:30:51 +08:00
parent c31f7cbaa7
commit ae6f0cda87

View File

@@ -369,7 +369,7 @@ struct ssl_stream * ssl_stream_new(struct ssl_mgr * mgr, evutil_socket_t fd, enu
struct ssl_chello * client_hello, struct keyring * kyr, const unsigned char* selected_alpn)
{
int ret = 0;
UNUSED int ret = 0;
struct ssl_stream * s_stream = ALLOC(struct ssl_stream, 1);
s_stream->dir = dir;
s_stream->mgr = mgr;
@@ -1337,7 +1337,7 @@ static SSL * downstream_ssl_create(struct ssl_mgr * mgr, struct keyring * crt, c
if (!sslctx) return NULL;
SSL * ssl = NULL;
int ret = 0;
UNUSED int ret = 0;
sslctx_set_opts(sslctx, mgr);
SSL_CTX_set_cipher_list(sslctx, mgr->default_ciphers);