We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
OpenSSL_add_all_algorithms()
1 parent bf96cd3 commit 27feda0Copy full SHA for 27feda0
checksum.c
@@ -154,7 +154,7 @@ static const EVP_MD *csum_evp_md(struct name_num_item *nni)
154
emd = NULL;
155
else
156
#endif
157
- emd = EVP_get_digestbyname(nni->name);
+ emd = EVP_get_digestbyname(nni->name);
158
if (emd && !(nni->flags & NNI_EVP_OK)) { /* Make sure it works before we advertise it */
159
if (!ctx_evp && !(ctx_evp = EVP_MD_CTX_create()))
160
out_of_memory("csum_evp_md");
@@ -787,6 +787,10 @@ void init_checksum_choices()
787
if (initialized_choices)
788
return;
789
790
+#if defined USE_OPENSSL && OPENSSL_VERSION_NUMBER < 0x10100000L
791
+ OpenSSL_add_all_algorithms();
792
+#endif
793
+
794
#if defined SUPPORT_XXH3 || defined USE_OPENSSL
795
for (nni = valid_checksums.list; nni->name; nni++)
796
verify_digest(nni, True);
0 commit comments