git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a211965
)
Limit SHA256 support to OpenSSL >= 0.9.8
author
Tom Kistner
<tom@duncanthrax.net>
Fri, 16 Oct 2009 11:38:01 +0000
(11:38 +0000)
committer
Tom Kistner
<tom@duncanthrax.net>
Fri, 16 Oct 2009 11:38:01 +0000
(11:38 +0000)
src/src/tls-openssl.c
patch
|
blob
|
history
diff --git
a/src/src/tls-openssl.c
b/src/src/tls-openssl.c
index 8bce3c4ca5fe8bbc787cd97555733675c67c8056..dc20a6e3fb8be1b089ea3862f407976def0713d2 100644
(file)
--- 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.1
7 2009/10/16 09:10:40
tom Exp $ */
+/* $Cambridge: exim/src/src/tls-openssl.c,v 1.1
8 2009/10/16 11:38:01
tom Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
/*************************************************
* 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();
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());
/* 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 */
/* Create a context */