diff options
author | tb <> | 2018-11-11 07:10:57 +0000 |
---|---|---|
committer | tb <> | 2018-11-11 07:10:57 +0000 |
commit | dd0e7cacb751bc5832444ddfdf7044c615dfa111 (patch) | |
tree | d4d3a2112438bf670d492f08238e5c8880be7f30 /src/usr.bin | |
parent | 89c1281df3b6e99fc1d7b362428a9d365c977680 (diff) | |
download | openbsd-dd0e7cacb751bc5832444ddfdf7044c615dfa111.tar.gz openbsd-dd0e7cacb751bc5832444ddfdf7044c615dfa111.tar.bz2 openbsd-dd0e7cacb751bc5832444ddfdf7044c615dfa111.zip |
Add sm3 to the 'openssl dgst' command.
ok beck inoguchi
Diffstat (limited to 'src/usr.bin')
-rw-r--r-- | src/usr.bin/openssl/openssl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/openssl.c b/src/usr.bin/openssl/openssl.c index 255e34ec33..92ecb1db3b 100644 --- a/src/usr.bin/openssl/openssl.c +++ b/src/usr.bin/openssl/openssl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: openssl.c,v 1.27 2018/11/11 06:41:28 bcook Exp $ */ | 1 | /* $OpenBSD: openssl.c,v 1.28 2018/11/11 07:10:57 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -241,6 +241,10 @@ FUNCTION functions[] = { | |||
241 | #ifndef OPENSSL_NO_SHA512 | 241 | #ifndef OPENSSL_NO_SHA512 |
242 | { FUNC_TYPE_MD, "sha512", dgst_main }, | 242 | { FUNC_TYPE_MD, "sha512", dgst_main }, |
243 | #endif | 243 | #endif |
244 | #ifndef OPENSSL_NO_SM3 | ||
245 | { FUNC_TYPE_MD, "sm3", dgst_main }, | ||
246 | { FUNC_TYPE_MD, "sm3WithRSAEncryption", dgst_main }, | ||
247 | #endif | ||
244 | #ifndef OPENSSL_NO_WHIRLPOOL | 248 | #ifndef OPENSSL_NO_WHIRLPOOL |
245 | { FUNC_TYPE_MD, "whirlpool", dgst_main }, | 249 | { FUNC_TYPE_MD, "whirlpool", dgst_main }, |
246 | #endif | 250 | #endif |