From 767fe2227a42cabf33ade011fc721079a9abdfb6 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 31 Mar 2013 20:56:49 -0500 Subject: [PATCH 1/1] Cast away constness of SSL_CTX_new() arg because that's what older versions of ssl use. --- mts/smtp/smtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index 4f929cae..c973c919 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -1273,7 +1273,8 @@ tls_negotiate(void) method = TLSv1_client_method(); /* Not sure about this */ - sslctx = SSL_CTX_new(method); + /* Older ssl takes a non-const arg. */ + sslctx = SSL_CTX_new((SSL_METHOD *) method); if (! sslctx) { sm_end(NOTOK); -- 2.48.1