crypto: remove unnecessary OpenSSL_add_all_digests
authorYorkie <yorkiefixer@gmail.com>
Thu, 19 Dec 2013 11:11:19 +0000 (19:11 +0800)
committerFedor Indutny <fedor.indutny@gmail.com>
Thu, 19 Dec 2013 11:43:21 +0000 (15:43 +0400)
`OpenSSL_add_all_algorithms` implicitly adds both digests and
ciphers. No need in calling `OpenSSL_add_all_digests` after it.

src/node_crypto.cc

index ebd935a..753558b 100644 (file)
@@ -4052,7 +4052,6 @@ void Certificate::ExportChallenge(const FunctionCallbackInfo<Value>& args) {
 void InitCryptoOnce() {
   SSL_library_init();
   OpenSSL_add_all_algorithms();
-  OpenSSL_add_all_digests();
   SSL_load_error_strings();
   ERR_load_crypto_strings();