mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-25 03:29:00 +08:00
Added SSL_CTX_set_mode()
This commit is contained in:
parent
5727a5c0ed
commit
e2fb707d9f
@ -596,6 +596,7 @@ int ns_set_ssl_cert(struct ns_server *server, const char *cert) {
|
|||||||
SSL_CTX_use_PrivateKey_file(server->ssl_ctx, cert, 1) == 0) {
|
SSL_CTX_use_PrivateKey_file(server->ssl_ctx, cert, 1) == 0) {
|
||||||
return -2;
|
return -2;
|
||||||
} else {
|
} else {
|
||||||
|
SSL_CTX_set_mode(server->ssl_ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
|
||||||
SSL_CTX_use_certificate_chain_file(server->ssl_ctx, cert);
|
SSL_CTX_use_certificate_chain_file(server->ssl_ctx, cert);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user