aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2004-01-13 07:31:25 +0000
committerEric S. Raymond <esr@thyrsus.com>2004-01-13 07:31:25 +0000
commite765df08b2c8868d4bda6ef660b209c560e4eded (patch)
treec50c23f9d6d6697a55fddecc67baba1522567d88 /socket.c
parent798868f26c1bd20798f4ffc1a011bed9d063de99 (diff)
downloadfetchmail-e765df08b2c8868d4bda6ef660b209c560e4eded.tar.gz
fetchmail-e765df08b2c8868d4bda6ef660b209c560e4eded.tar.bz2
fetchmail-e765df08b2c8868d4bda6ef660b209c560e4eded.zip
Sunil Shetye's fix for SSL configuration.
svn path=/trunk/; revision=3875
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c12
1 files changed, 6 insertions, 6 deletions
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 <sys/time.h>
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 <openssl/ssl.h>
+#include <openssl/err.h>
+#include <openssl/pem.h>
+#include <openssl/x509.h>
+#include <openssl/rand.h>
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;