mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-24 02:59:01 +08:00
make tests pass
This commit is contained in:
parent
5084279d81
commit
5adbadc901
@ -12516,7 +12516,7 @@ void mg_tls_init(struct mg_connection *c, const struct mg_tls_opts *opts) {
|
||||
MG_DEBUG(("%lu Setting TLS", c->id));
|
||||
tls->ctx = c->is_client ? SSL_CTX_new(SSLv23_client_method())
|
||||
: SSL_CTX_new(SSLv23_server_method());
|
||||
#if MG_TLS_SSLKEYLOGFILE
|
||||
#ifdef MG_TLS_SSLKEYLOGFILE
|
||||
SSL_CTX_set_keylog_callback(tls->ctx, ssl_keylog_cb);
|
||||
#endif
|
||||
if ((tls->ssl = SSL_new(tls->ctx)) == NULL) {
|
||||
|
@ -125,7 +125,7 @@ void mg_tls_init(struct mg_connection *c, const struct mg_tls_opts *opts) {
|
||||
MG_DEBUG(("%lu Setting TLS", c->id));
|
||||
tls->ctx = c->is_client ? SSL_CTX_new(SSLv23_client_method())
|
||||
: SSL_CTX_new(SSLv23_server_method());
|
||||
#if MG_TLS_SSLKEYLOGFILE
|
||||
#ifdef MG_TLS_SSLKEYLOGFILE
|
||||
SSL_CTX_set_keylog_callback(tls->ctx, ssl_keylog_cb);
|
||||
#endif
|
||||
if ((tls->ssl = SSL_new(tls->ctx)) == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user