summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-11-11 07:10:58 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-11-11 07:10:58 +0000
commit5309e440b34d492fadf4090fd2bad5957bb39f87 (patch)
treec2fb91d8bd52ded44313e0286132fcb04120ba38
parentd5d2204ca7fed379adc7fb03dcce6373dff4234a (diff)
Add sm3 to the 'openssl dgst' command.
ok beck inoguchi
-rw-r--r--usr.bin/openssl/openssl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/openssl/openssl.c b/usr.bin/openssl/openssl.c
index 255e34ec33d..92ecb1db3be 100644
--- a/usr.bin/openssl/openssl.c
+++ b/usr.bin/openssl/openssl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: openssl.c,v 1.27 2018/11/11 06:41:28 bcook Exp $ */
+/* $OpenBSD: openssl.c,v 1.28 2018/11/11 07:10:57 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -241,6 +241,10 @@ FUNCTION functions[] = {
#ifndef OPENSSL_NO_SHA512
{ FUNC_TYPE_MD, "sha512", dgst_main },
#endif
+#ifndef OPENSSL_NO_SM3
+ { FUNC_TYPE_MD, "sm3", dgst_main },
+ { FUNC_TYPE_MD, "sm3WithRSAEncryption", dgst_main },
+#endif
#ifndef OPENSSL_NO_WHIRLPOOL
{ FUNC_TYPE_MD, "whirlpool", dgst_main },
#endif