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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tom Kistner
Ημερομηνία:  
Προς: exim-cvs
Αντικείμενο: [exim-cvs] cvs commit: exim/exim-src/src tls-openssl.c
tom 2009/10/16 09:34:50 BST

  Modified files:
    exim-src/src         tls-openssl.c 
  Log:
  OpenSSL: Make sure sha256 digest is available


  Revision  Changes    Path
  1.16      +4 -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.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- tls-openssl.c    14 Oct 2009 13:52:48 -0000    1.15
  +++ tls-openssl.c    16 Oct 2009 08:34:50 -0000    1.16
  @@ -1,4 +1,4 @@
  -/* $Cambridge: exim/exim-src/src/tls-openssl.c,v 1.15 2009/10/14 13:52:48 nm4 Exp $ */
  +/* $Cambridge: exim/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 @@
   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)?