#85 消除ssl stream中的unused variable warning
This commit is contained in:
@@ -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)
|
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);
|
struct ssl_stream * s_stream = ALLOC(struct ssl_stream, 1);
|
||||||
s_stream->dir = dir;
|
s_stream->dir = dir;
|
||||||
s_stream->mgr = mgr;
|
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;
|
if (!sslctx) return NULL;
|
||||||
|
|
||||||
SSL * ssl = NULL;
|
SSL * ssl = NULL;
|
||||||
int ret = 0;
|
UNUSED int ret = 0;
|
||||||
sslctx_set_opts(sslctx, mgr);
|
sslctx_set_opts(sslctx, mgr);
|
||||||
SSL_CTX_set_cipher_list(sslctx, mgr->default_ciphers);
|
SSL_CTX_set_cipher_list(sslctx, mgr->default_ciphers);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user