diff options
author | Tom Kistner <tom@duncanthrax.net> | 2009-10-16 11:38:01 +0000 |
---|---|---|
committer | Tom Kistner <tom@duncanthrax.net> | 2009-10-16 11:38:01 +0000 |
commit | cf1ef1a94d235f4bf3a1585fa0e0920b8f409af6 (patch) | |
tree | 1c26cfcdbf9c59329182543e489bf73a734e4da4 /src | |
parent | a21196501a7c718aa809e927fc9f1f38ed481cec (diff) |
Limit SHA256 support to OpenSSL >= 0.9.8
Diffstat (limited to 'src')
-rw-r--r-- | src/src/tls-openssl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c index 8bce3c4ca..dc20a6e3f 100644 --- a/src/src/tls-openssl.c +++ b/src/src/tls-openssl.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/tls-openssl.c,v 1.17 2009/10/16 09:10:40 tom Exp $ */ +/* $Cambridge: exim/src/src/tls-openssl.c,v 1.18 2009/10/16 11:38:01 tom Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -305,9 +305,11 @@ tls_init(host_item *host, uschar *dhparam, uschar *certificate, SSL_load_error_strings(); /* basic set up */ OpenSSL_add_ssl_algorithms(); +#if OPENSSL_VERSION_NUMBER >= 0x00908000L /* SHA256 is becoming ever moar popular. This makes sure it gets added to the list of available digests. */ EVP_add_digest(EVP_sha256()); +#endif /* Create a context */ |