Deprecate undocumented SSL_cache_hit().
[openssl.git] / ssl / ssl_algs.c
index 9a7f15582c77076b9c73c2e58f9e676c0ebd4287..61233a96b4786a7d26e46a2afdfca912a31a2b4e 100644 (file)
@@ -1,4 +1,3 @@
-/* ssl/ssl_algs.c */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
@@ -102,6 +101,9 @@ int SSL_library_init(void)
     EVP_add_cipher(EVP_camellia_128_cbc());
     EVP_add_cipher(EVP_camellia_256_cbc());
 #endif
+#if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305)
+    EVP_add_cipher(EVP_chacha20_poly1305());
+#endif
 
 #ifndef OPENSSL_NO_SEED
     EVP_add_cipher(EVP_seed_cbc());
@@ -130,5 +132,6 @@ int SSL_library_init(void)
 #endif
     /* initialize cipher/digest methods table */
     ssl_load_ciphers();
+    SSL_add_ssl_module();
     return (1);
 }