]> git.ipfire.org Git - people/ms/dma.git/commitdiff
Add compat #ifdef for older OpenSSL
authorEd Maste <emaste@freebsd.org>
Tue, 20 Nov 2012 16:57:31 +0000 (11:57 -0500)
committerEd Maste <emaste@freebsd.org>
Tue, 20 Nov 2012 16:57:31 +0000 (11:57 -0500)
Obtained from: mail/dma in the FreeBSD ports tree

crypto.c

index 7e8865c602464e75b1b581908157adc450dcdbc2..897b55bfdcfcc94814ba8482056c72e3d4a31f35 100644 (file)
--- a/crypto.c
+++ b/crypto.c
@@ -80,7 +80,11 @@ int
 smtp_init_crypto(int fd, int feature)
 {
        SSL_CTX *ctx = NULL;
+#if (OPENSSL_VERSION_NUMBER >= 0x00909000L)
        const SSL_METHOD *meth = NULL;
+#else
+       SSL_METHOD *meth = NULL;
+#endif
        X509 *cert;
        int error;