From e765df08b2c8868d4bda6ef660b209c560e4eded Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 13 Jan 2004 07:31:25 +0000 Subject: Sunil Shetye's fix for SSL configuration. svn path=/trunk/; revision=3875 --- socket.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'socket.c') diff --git a/socket.c b/socket.c index 13901729..4b1b3203 100644 --- a/socket.c +++ b/socket.c @@ -200,7 +200,6 @@ static int handle_plugin(const char *host, #endif /* HAVE_SOCKETPAIR */ #ifdef __UNUSED__ -#include int SockCheckOpen(int fd) /* poll given socket; is it selectable? */ @@ -502,10 +501,11 @@ va_dcl { } #ifdef SSL_ENABLE -#include "openssl/ssl.h" -#include "openssl/err.h" -#include "openssl/pem.h" -#include "openssl/x509.h" +#include +#include +#include +#include +#include static SSL_CTX *_ctx = NULL; static SSL *_ssl_context[FD_SETSIZE]; @@ -759,7 +759,7 @@ int SSL_verify_callback( int ok_return, X509_STORE_CTX *ctx, int strict ) int err, depth; unsigned char digest[EVP_MAX_MD_SIZE]; char text[EVP_MAX_MD_SIZE * 3 + 1], *tp, *te; - EVP_MD *digest_tp; + const EVP_MD *digest_tp; unsigned int dsz, i, esz; X509_NAME *subj, *issuer; -- cgit v1.2.3