Added SSL_CTX_set_mode()

This commit is contained in:
Sergey Lyubka 2014-07-30 11:27:37 +01:00
parent 5727a5c0ed
commit e2fb707d9f

View File

@ -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;
} }