From 939b14b31a0ec57a91982f54dd055e000bf5f6ac Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 31 Jul 2025 02:24:21 +0000 Subject: Rework PKCS7_simple_smimecap() This is nearly identical to CMS_add_simple_smimecap(). We can reuse its doc comment mutatis mutandis and use the same construction. Maybe this wants deduplicating. Maybe not. ok kenjiro --- src/lib/libcrypto/cms/cms_sd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/cms') diff --git a/src/lib/libcrypto/cms/cms_sd.c b/src/lib/libcrypto/cms/cms_sd.c index 3f454435de..abcac83e47 100644 --- a/src/lib/libcrypto/cms/cms_sd.c +++ b/src/lib/libcrypto/cms/cms_sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cms_sd.c,v 1.35 2025/07/27 07:16:20 tb Exp $ */ +/* $OpenBSD: cms_sd.c,v 1.36 2025/07/31 02:24:21 tb Exp $ */ /* * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. @@ -990,6 +990,8 @@ LCRYPTO_ALIAS(CMS_add_smimecap); * Add AlgorithmIdentifier OID of type |nid| to the SMIMECapability attribute * set |*out_algs| (see RFC 3851, section 2.5.2). If keysize > 0, the OID has * an integer parameter of value |keysize|, otherwise parameters are omitted. + * + * See also PKCS7_simple_smimecap(). */ int CMS_add_simple_smimecap(STACK_OF(X509_ALGOR) **out_algs, int nid, int keysize) -- cgit v1.2.3-55-g6feb