Deprecate SSL_library_init. It just calls CRYPTO_library_init and doesn't do anything else. If anything, I'd like to make CRYPTO_library_init completely go away too. We have CRYPTO_once now, so I think it's safe to assume that, if ssl/ ever grows initialization needs beyond that of crypto/, we can hide it behind a CRYPTO_once and not burden callers. Change-Id: I63dc362e0e9e98deec5516f4620d1672151a91b6 Reviewed-on: https://boringssl-review.googlesource.com/6311 Reviewed-by: Adam Langley <alangley@gmail.com>
diff --git a/ssl/ssl_test.cc b/ssl/ssl_test.cc index 810d3fa..875fac8 100644 --- a/ssl/ssl_test.cc +++ b/ssl/ssl_test.cc
@@ -20,6 +20,7 @@ #include <openssl/base64.h> #include <openssl/bio.h> +#include <openssl/crypto.h> #include <openssl/err.h> #include <openssl/ssl.h> @@ -819,7 +820,7 @@ } int main() { - SSL_library_init(); + CRYPTO_library_init(); if (!TestCipherRules() || !TestSSL_SESSIONEncoding(kOpenSSLSession) ||