From: Ed Maste Date: Tue, 20 Nov 2012 16:57:31 +0000 (-0500) Subject: Add compat #ifdef for older OpenSSL X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd6b107b51d02e82d3e465603c8e45688e99ba4b;p=people%2Fms%2Fdma.git Add compat #ifdef for older OpenSSL Obtained from: mail/dma in the FreeBSD ports tree --- diff --git a/crypto.c b/crypto.c index 7e8865c..897b55b 100644 --- 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;