diff options
author | tb <> | 2025-07-31 02:24:21 +0000 |
---|---|---|
committer | tb <> | 2025-07-31 02:24:21 +0000 |
commit | b1cfa1357daf048c80853a2a1e67e2185fcd0e1c (patch) | |
tree | c4bf91b0b268246ace55d37f4c783ddd55843ab2 /src/lib/libcrypto/cms/cms_sd.c | |
parent | d4d855623ac4e27097dd53a8680f199153289005 (diff) | |
download | openbsd-master.tar.gz openbsd-master.tar.bz2 openbsd-master.zip |
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
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/cms/cms_sd.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ | |||
1 | /* $OpenBSD: cms_sd.c,v 1.35 2025/07/27 07:16:20 tb Exp $ */ | 1 | /* $OpenBSD: cms_sd.c,v 1.36 2025/07/31 02:24:21 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
4 | * project. | 4 | * project. |
@@ -990,6 +990,8 @@ LCRYPTO_ALIAS(CMS_add_smimecap); | |||
990 | * Add AlgorithmIdentifier OID of type |nid| to the SMIMECapability attribute | 990 | * Add AlgorithmIdentifier OID of type |nid| to the SMIMECapability attribute |
991 | * set |*out_algs| (see RFC 3851, section 2.5.2). If keysize > 0, the OID has | 991 | * set |*out_algs| (see RFC 3851, section 2.5.2). If keysize > 0, the OID has |
992 | * an integer parameter of value |keysize|, otherwise parameters are omitted. | 992 | * an integer parameter of value |keysize|, otherwise parameters are omitted. |
993 | * | ||
994 | * See also PKCS7_simple_smimecap(). | ||
993 | */ | 995 | */ |
994 | int | 996 | int |
995 | CMS_add_simple_smimecap(STACK_OF(X509_ALGOR) **out_algs, int nid, int keysize) | 997 | CMS_add_simple_smimecap(STACK_OF(X509_ALGOR) **out_algs, int nid, int keysize) |