From e7fd45537de764e16428733b4b72e905c67f0598 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 26 Jun 2019 11:58:53 -0600 Subject: [PATCH] update comments for DEGENERATE_SID use --- wolfcrypt/src/pkcs7.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/src/pkcs7.c b/wolfcrypt/src/pkcs7.c index 1a24197dc..8a1463454 100644 --- a/wolfcrypt/src/pkcs7.c +++ b/wolfcrypt/src/pkcs7.c @@ -6059,8 +6059,11 @@ static int wc_PKCS7_GenerateBlock(PKCS7* pkcs7, WC_RNG* rng, byte* out, * IssuerAndSerialNumber unless set with this function or explicitly * overriden via options when adding RecipientInfo type. * + * Using the type DEGENERATE_SID skips over signer information. In degenerate + * cases there are no signers. + * * pkcs7 - pointer to initialized PKCS7 structure - * type - either CMS_ISSUER_AND_SERIAL_NUMBER or CMS_SKID + * type - either CMS_ISSUER_AND_SERIAL_NUMBER, CMS_SKID or DEGENERATE_SID * * return 0 on success, negative upon error */ int wc_PKCS7_SetSignerIdentifierType(PKCS7* pkcs7, int type)