mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-14 10:20:01 +00:00
make tests pass
This commit is contained in:
1 parent
5084279d81
commit
5adbadc901
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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) {
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user