tom 2009/10/16 12:38:01 BST
Modified files:
exim-src/src tls-openssl.c
Log:
Limit SHA256 support to OpenSSL >= 0.9.8
Revision Changes Path
1.18 +2 -0 exim/exim-src/src/tls-openssl.c
Index: tls-openssl.c
===================================================================
RCS file: /home/cvs/exim/exim-src/src/tls-openssl.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- tls-openssl.c 16 Oct 2009 09:10:40 -0000 1.17
+++ tls-openssl.c 16 Oct 2009 11:38:01 -0000 1.18
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/exim-src/src/tls-openssl.c,v 1.17 2009/10/16 09:10:40 tom Exp $ */
+/* $Cambridge: exim/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 @@
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 */