[exim-cvs] cvs commit: exim/exim-src/src tls-openssl.c

Etusivu
Poista viesti
Vastaa
Lähettäjä: Nigel Metheringham
Päiväys:  
Vastaanottaja: exim-cvs
Aihe: [exim-cvs] cvs commit: exim/exim-src/src tls-openssl.c
nm4 2009/10/19 12:25:31 BST

  Modified files:
    exim-src/src         tls-openssl.c 
  Log:
  Further minor tweak to sha256 inclusion. Fixes: #674 yet again


  Revision  Changes    Path
  1.20      +1 -1      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.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- tls-openssl.c    16 Oct 2009 13:10:34 -0000    1.19
  +++ tls-openssl.c    19 Oct 2009 11:25:31 -0000    1.20
  @@ -1,4 +1,4 @@
  -/* $Cambridge: exim/exim-src/src/tls-openssl.c,v 1.19 2009/10/16 13:10:34 tom Exp $ */
  +/* $Cambridge: exim/exim-src/src/tls-openssl.c,v 1.20 2009/10/19 11:25:31 nm4 Exp $ */


   /*************************************************
   *     Exim - an Internet mail transport agent    *
  @@ -305,7 +305,7 @@
   SSL_load_error_strings();          /* basic set up */
   OpenSSL_add_ssl_algorithms();


-#if OPENSSL_VERSION_NUMBER > 0x0090800fL
+#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL) && !defined(OPENSSL_NO_SHA256)
/* SHA256 is becoming ever moar popular. This makes sure it gets added to the
list of available digests. */
EVP_add_digest(EVP_sha256());