]> diplodocus.org Git - nmh/commitdiff
Cast away constness of SSL_CTX_new() arg because that's
authorDavid Levine <levinedl@acm.org>
Mon, 1 Apr 2013 01:56:49 +0000 (20:56 -0500)
committerDavid Levine <levinedl@acm.org>
Mon, 1 Apr 2013 01:56:49 +0000 (20:56 -0500)
what older versions of ssl use.

mts/smtp/smtp.c

index 4f929caef308a388a9c83236176cbf727f7e6170..c973c9191500d417c425aa9f4f0660f273de1445 100644 (file)
@@ -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);