diff options
| author | kenjiro <> | 2026-01-02 00:14:24 +0000 |
|---|---|---|
| committer | kenjiro <> | 2026-01-02 00:14:24 +0000 |
| commit | 17255ba650aa0774866aa85ba1d21ef0e5086566 (patch) | |
| tree | 8aa2d930505f5f2807691e81aa423fe756e7959b /src/usr.bin/openssl | |
| parent | cc0e69463fbcbb26a7b75c96c0bb1e89ba54dbdf (diff) | |
| download | openbsd-17255ba650aa0774866aa85ba1d21ef0e5086566.tar.gz openbsd-17255ba650aa0774866aa85ba1d21ef0e5086566.tar.bz2 openbsd-17255ba650aa0774866aa85ba1d21ef0e5086566.zip | |
openssl: list SHA-3 digests in help output
Register sha3-{224,256,384,512} as dgst commands so they appear in
openssl help. Without this, SHA-3 support is easy to miss and looks
unsupported from the command line.
ok tb jsing
Diffstat (limited to 'src/usr.bin/openssl')
| -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 a1ef139009..056912a9ed 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.40 2025/05/25 04:54:41 joshua Exp $ */ | 1 | /* $OpenBSD: openssl.c,v 1.41 2026/01/02 00:14:24 kenjiro 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 | * |
| @@ -231,6 +231,10 @@ FUNCTION functions[] = { | |||
| 231 | #ifndef OPENSSL_NO_SHA512 | 231 | #ifndef OPENSSL_NO_SHA512 |
| 232 | { FUNC_TYPE_MD, "sha512", dgst_main }, | 232 | { FUNC_TYPE_MD, "sha512", dgst_main }, |
| 233 | #endif | 233 | #endif |
| 234 | { FUNC_TYPE_MD, "sha3-224", dgst_main }, | ||
| 235 | { FUNC_TYPE_MD, "sha3-256", dgst_main }, | ||
| 236 | { FUNC_TYPE_MD, "sha3-384", dgst_main }, | ||
| 237 | { FUNC_TYPE_MD, "sha3-512", dgst_main }, | ||
| 234 | #ifndef OPENSSL_NO_SM3 | 238 | #ifndef OPENSSL_NO_SM3 |
| 235 | { FUNC_TYPE_MD, "sm3", dgst_main }, | 239 | { FUNC_TYPE_MD, "sm3", dgst_main }, |
| 236 | { FUNC_TYPE_MD, "sm3WithRSAEncryption", dgst_main }, | 240 | { FUNC_TYPE_MD, "sm3WithRSAEncryption", dgst_main }, |
