diff options
author | Tom Kistner <tom@duncanthrax.net> | 2009-10-16 08:34:50 +0000 |
---|---|---|
committer | Tom Kistner <tom@duncanthrax.net> | 2009-10-16 08:34:50 +0000 |
commit | a0475b6996e895bf9d993c733d49c2a850cc11e8 (patch) | |
tree | e2e7b6fb0054646a50c00b5ebabe27ad0767c410 /src | |
parent | 94f85d3eb1f098ced9157c7e2aca2b75142e9fbc (diff) |
OpenSSL: Make sure sha256 digest is available
Diffstat (limited to 'src')
-rw-r--r-- | src/src/tls-openssl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c index 9493d769a..edaed35ae 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.15 2009/10/14 13:52:48 nm4 Exp $ */ +/* $Cambridge: exim/src/src/tls-openssl.c,v 1.16 2009/10/16 08:34:50 tom Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -305,6 +305,10 @@ tls_init(host_item *host, uschar *dhparam, uschar *certificate, SSL_load_error_strings(); /* basic set up */ OpenSSL_add_ssl_algorithms(); +/* SHA256 is becoming ever moar popular. This makes sure it gets added to the +list of available digests. */ +EVP_add_digest(EVP_sha256()); + /* Create a context */ ctx = SSL_CTX_new((host == NULL)? |