Update of linux-ppc. Contributed by MATSUURA Takanori
[openssl.git] / ssl / ssl_algs.c
index dde8918fe0e3d992a13a7dc9210beafe18a5baab..549c3e8d5e9873c7e6daee0d83d9b0979d81b87f 100644 (file)
@@ -63,6 +63,7 @@
 
 int SSL_library_init(void)
        {
+
 #ifndef NO_DES
        EVP_add_cipher(EVP_des_cbc());
        EVP_add_cipher(EVP_des_ede3_cbc());
@@ -75,8 +76,12 @@ int SSL_library_init(void)
 #endif  
 #ifndef NO_RC2
        EVP_add_cipher(EVP_rc2_cbc());
-#endif  
-
+#endif
+#ifndef NO_AES
+       EVP_add_cipher(EVP_aes_128_cbc());
+       EVP_add_cipher(EVP_aes_192_cbc());
+       EVP_add_cipher(EVP_aes_256_cbc());
+#endif
 #ifndef NO_MD2
        EVP_add_digest(EVP_md2());
 #endif
@@ -96,7 +101,6 @@ int SSL_library_init(void)
        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 */
 #if 0
        EVP_add_digest(EVP_sha());