summaryrefslogtreecommitdiffstats
path: root/usr.sbin/httpd/src/modules/ssl/ssl_engine_init.c
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2003-03-19 15:13:26 +0000
committerhenning <henning@openbsd.org>2003-03-19 15:13:26 +0000
commit439ce280c41b0d839f6cd0855a8f8262187c2e73 (patch)
treeac8912a8d242f01d93a839ccb73132700609ff3c /usr.sbin/httpd/src/modules/ssl/ssl_engine_init.c
parenttest netmasks with multicast addresses (diff)
downloadwireguard-openbsd-439ce280c41b0d839f6cd0855a8f8262187c2e73.tar.xz
wireguard-openbsd-439ce280c41b0d839f6cd0855a8f8262187c2e73.zip
use RSA key blinding code from mod_ssl 2.8.13. differences to our own fix
that was already in are purely cosmetical, but this will make the future merge of mod_ssl 2.8.13 easier.
Diffstat (limited to 'usr.sbin/httpd/src/modules/ssl/ssl_engine_init.c')
-rw-r--r--usr.sbin/httpd/src/modules/ssl/ssl_engine_init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/httpd/src/modules/ssl/ssl_engine_init.c b/usr.sbin/httpd/src/modules/ssl/ssl_engine_init.c
index e30c6d9fa5e..d93c2fff8ab 100644
--- a/usr.sbin/httpd/src/modules/ssl/ssl_engine_init.c
+++ b/usr.sbin/httpd/src/modules/ssl/ssl_engine_init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_engine_init.c,v 1.21 2003/03/14 09:28:14 ho Exp $ */
+/* $OpenBSD: ssl_engine_init.c,v 1.22 2003/03/19 15:13:26 henning Exp $ */
/* _ _
** _ __ ___ ___ __| | ___ ___| | mod_ssl
@@ -832,9 +832,9 @@ void ssl_init_ConfigureServer(server_rec *s, pool *p, SSLSrvConfigRec *sc)
cpVHostID);
ssl_die();
}
- if (RSA_blinding_on (sc->pPrivateKey[SSL_AIDX_RSA]->pkey.rsa, NULL) != 1) {
+ if (!RSA_blinding_on(sc->pPrivateKey[SSL_AIDX_RSA]->pkey.rsa, NULL)) {
ssl_log(s, SSL_LOG_ERROR|SSL_ADD_SSLERR,
- "Init: (%s) Unable to add blinding for RSA server private key",
+ "Init: (%s) Unable to enable RSA blinding (probably PRNG failure)",
cpVHostID);
ssl_die();
}