]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix PKCS7_sign and CMS_sign default hash documentation
authorDavid Benjamin <davidben@google.com>
Mon, 7 Apr 2025 20:40:05 +0000 (16:40 -0400)
committerMatt Caswell <matt@openssl.org>
Tue, 15 Apr 2025 14:39:59 +0000 (15:39 +0100)
Fixes #27291. See issue for details.

Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27292)

doc/man3/CMS_sign.pod
doc/man3/PKCS7_sign.pod

index 3380b1a1dd957dac0c81a8d0a55a1284d5b8e189..9e9b7da81560b8caeb9540a9de61bda534a242b7 100644 (file)
@@ -97,7 +97,7 @@ can be performed by obtaining the streaming ASN1 B<BIO> directly using
 BIO_new_CMS().
 
 If a signer is specified it will use the default digest for the signing
-algorithm. This is B<SHA1> for both RSA and DSA keys.
+algorithm. This is B<SHA256> for both RSA and DSA keys.
 
 If B<signcert> and B<pkey> are NULL then a certificates only CMS structure is
 output.
index 1d997045fe142c5e965d34f7968f2c2147b1e9fa..f0f3941b33add39bddef039d4f1d392ac9d33ca4 100644 (file)
@@ -80,7 +80,7 @@ can be performed by obtaining the streaming ASN1 B<BIO> directly using
 BIO_new_PKCS7().
 
 If a signer is specified it will use the default digest for the signing
-algorithm. This is B<SHA1> for both RSA and DSA keys.
+algorithm. This is B<SHA256> for both RSA and DSA keys.
 
 The I<certs>, I<signcert> and I<pkey> parameters can all be
 NULL if the B<PKCS7_PARTIAL> flag is set. One or more signers can be added