mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-02 13:20:51 +00:00
Added SSL_CTX_set_mode()
This commit is contained in:
1 parent
5727a5c0ed
commit
e2fb707d9f
1 file changed
+1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user