mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-24 19:19: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) {
|
||||
return -2;
|
||||
} else {
|
||||
SSL_CTX_set_mode(server->ssl_ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
|
||||
SSL_CTX_use_certificate_chain_file(server->ssl_ctx, cert);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user