summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-11-11 07:07:45 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-11-11 07:07:45 +0000
commitd5d2204ca7fed379adc7fb03dcce6373dff4234a (patch)
treedd715685f3ea7381cae17c1ae3047bbbd0ee63e5
parent40dfaea431db39f39ac24a80e7d528b5056c59c1 (diff)
Add EVP_sm3() to OpenSSL_add_all_digests_internal().
ok beck inoguchi
-rw-r--r--lib/libcrypto/evp/c_all.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libcrypto/evp/c_all.c b/lib/libcrypto/evp/c_all.c
index 87657eded3a..85322d90e86 100644
--- a/lib/libcrypto/evp/c_all.c
+++ b/lib/libcrypto/evp/c_all.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: c_all.c,v 1.22 2018/03/17 16:20:01 beck Exp $ */
+/* $OpenBSD: c_all.c,v 1.23 2018/11/11 07:07:44 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -286,6 +286,9 @@ OpenSSL_add_all_digests_internal(void)
EVP_add_digest(EVP_sha384());
EVP_add_digest(EVP_sha512());
#endif
+#ifndef OPENSSL_NO_SM3
+ EVP_add_digest(EVP_sm3());
+#endif
#ifndef OPENSSL_NO_WHIRLPOOL
EVP_add_digest(EVP_whirlpool());
#endif