From 5309e440b34d492fadf4090fd2bad5957bb39f87 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Sun, 11 Nov 2018 07:10:58 +0000 Subject: Add sm3 to the 'openssl dgst' command. ok beck inoguchi --- usr.bin/openssl/openssl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3