diff options
author | 2018-11-11 07:10:57 +0000 | |
---|---|---|
committer | 2018-11-11 07:10:57 +0000 | |
commit | a4b5db7ed8b3b4dbf302b314af794777cbe1e5aa (patch) | |
tree | 73d2fcc4fe9fb7817822ba0c5eb03c1e9c7d2f99 | |
parent | Add EVP_sm3() to OpenSSL_add_all_digests_internal(). (diff) | |
download | wireguard-openbsd-a4b5db7ed8b3b4dbf302b314af794777cbe1e5aa.tar.xz wireguard-openbsd-a4b5db7ed8b3b4dbf302b314af794777cbe1e5aa.zip |
Add sm3 to the 'openssl dgst' command.
ok beck inoguchi
-rw-r--r-- | usr.bin/openssl/openssl.c | 6 |
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 |