From ba49c9762f4caf59fd61864838c5ac7966b2e5d6 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 27 Mar 2002 03:09:11 +0000 Subject: [PATCH] sslc 1.x SSL_set_verify only takes 2 args git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94204 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_engine_kernel.c | 2 +- modules/ssl/ssl_toolkit_compat.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c index e839d086cc..f26a3ffb90 100644 --- a/modules/ssl/ssl_engine_kernel.c +++ b/modules/ssl/ssl_engine_kernel.c @@ -539,7 +539,7 @@ int ssl_hook_Access(request_rec *r) verify |= SSL_VERIFY_PEER; } - SSL_set_verify(ssl, verify, ssl_callback_SSLVerify); + modssl_set_verify(ssl, verify, ssl_callback_SSLVerify); SSL_set_verify_result(ssl, X509_V_OK); /* determine whether we've to force a renegotiation */ diff --git a/modules/ssl/ssl_toolkit_compat.h b/modules/ssl/ssl_toolkit_compat.h index ba9da85fcd..6b225d8308 100644 --- a/modules/ssl/ssl_toolkit_compat.h +++ b/modules/ssl/ssl_toolkit_compat.h @@ -70,6 +70,9 @@ #define X509_CRL_get_REVOKED(x) ((x)->crl->revoked) #define X509_REVOKED_get_serialNumber(xs) (xs->serialNumber) +#define modssl_set_verify(ssl, verify, cb) \ + SSL_set_verify(ssl, verify) + #endif /* BEGIN GENERATED SECTION */ @@ -99,4 +102,9 @@ #endif /* OPENSSL_VERSION_NUMBER */ +#ifndef modssl_set_verify +#define modssl_set_verify(ssl, verify, cb) \ + SSL_set_verify(ssl, verify, cb) +#endif + #endif /* SSL_TOOLKIT_COMPAT_H */ -- 2.40.0