Commit e2fb707d authored by Sergey Lyubka's avatar Sergey Lyubka

Added SSL_CTX_set_mode()

parent 5727a5c0
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment