EVP_add_digest_alias additions to SS_library_init
[openssl.git] / ssl / ssl_algs.c
index 726289ab74c62d9ca136d1302bd1f96bb2ed8fdf..dde8918fe0e3d992a13a7dc9210beafe18a5baab 100644 (file)
@@ -71,14 +71,14 @@ int SSL_library_init(void)
        EVP_add_cipher(EVP_idea_cbc());
 #endif
 #ifndef NO_RC4
-        EVP_add_cipher(EVP_rc4());
+       EVP_add_cipher(EVP_rc4());
 #endif  
 #ifndef NO_RC2
-        EVP_add_cipher(EVP_rc2_cbc());
+       EVP_add_cipher(EVP_rc2_cbc());
 #endif  
 
 #ifndef NO_MD2
-        EVP_add_digest(EVP_md2());
+       EVP_add_digest(EVP_md2());
 #endif
 #ifndef NO_MD5
        EVP_add_digest(EVP_md5());
@@ -88,9 +88,13 @@ int SSL_library_init(void)
 #ifndef NO_SHA
        EVP_add_digest(EVP_sha1()); /* RSA with sha1 */
        EVP_add_digest_alias(SN_sha1,"ssl3-sha1");
+       EVP_add_digest_alias(SN_sha1WithRSAEncryption,SN_sha1WithRSA);
 #endif
 #if !defined(NO_SHA) && !defined(NO_DSA)
        EVP_add_digest(EVP_dss1()); /* DSA with sha1 */
+       EVP_add_digest_alias(SN_dsaWithSHA1,SN_dsaWithSHA1_2);
+       EVP_add_digest_alias(SN_dsaWithSHA1,"DSS1");
+       EVP_add_digest_alias(SN_dsaWithSHA1,"dss1");
 #endif
 
        /* If you want support for phased out ciphers, add the following */