summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2018-11-11 07:07:44 +0000
committertb <tb@openbsd.org>2018-11-11 07:07:44 +0000
commit0a9ddc1e9277f31176afbc64d086c4b19d17eb64 (patch)
tree9ac969a8ad677c63d2f23cbedd5129fd7bc6d1d2
parentsync (diff)
downloadwireguard-openbsd-0a9ddc1e9277f31176afbc64d086c4b19d17eb64.tar.xz
wireguard-openbsd-0a9ddc1e9277f31176afbc64d086c4b19d17eb64.zip
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