From: David Levine Date: Mon, 1 Apr 2013 01:56:49 +0000 (-0500) Subject: Cast away constness of SSL_CTX_new() arg because that's X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/767fe2227a42cabf33ade011fc721079a9abdfb6?ds=inline;hp=c0a87b2e2dfa156bfb4e6c0e5d43f7a582f779fc Cast away constness of SSL_CTX_new() arg because that's what older versions of ssl use. --- 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);