]> git.sur5r.net Git - openldap/commitdiff
ITS#6192 add all digests. Also stop using SSLeay-compatible function
authorHoward Chu <hyc@openldap.org>
Wed, 1 Jul 2009 23:46:36 +0000 (23:46 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 1 Jul 2009 23:46:36 +0000 (23:46 +0000)
names, we're only concerned with OpenSSL these days.

libraries/libldap/tls_o.c

index fc49529f927e095ee12e93a8fb030295a2515a99..0687465fad99803aaabeed5800228727ea73aa8e 100644 (file)
@@ -1,4 +1,4 @@
-/* tls_o.c - Handle tls/ssl using SSLeay or OpenSSL */
+/* tls_o.c - Handle tls/ssl using OpenSSL */
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
@@ -77,7 +77,7 @@ static int tlso_seed_PRNG( const char *randfile );
 
 #ifdef LDAP_R_COMPILE
 /*
- * provide mutexes for the SSLeay library.
+ * provide mutexes for the OpenSSL library.
  */
 static ldap_pvt_thread_mutex_t tlso_mutexes[CRYPTO_NUM_LOCKS];
 static ldap_pvt_thread_mutex_t tlso_dh_mutex;
@@ -162,7 +162,8 @@ tlso_init( void )
 #endif
 
        SSL_load_error_strings();
-       SSLeay_add_ssl_algorithms();
+       SSL_library_init();
+       OpenSSL_add_all_digests();
 
        /* FIXME: mod_ssl does this */
        X509V3_add_standard_extensions();