From c11b6475754de9ce1191632f23e7f2dedb3dcaee Mon Sep 17 00:00:00 2001 From: Valery Buchinsky Date: Wed, 27 Mar 2024 11:42:45 +0200 Subject: [PATCH] Commenting out unsignedAttributes support Will be reintroduced with future work. Co-authored-by: dcbr <15089458+dcbr@users.noreply.github.com> --- packages/signer/src/Signer.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/signer/src/Signer.js b/packages/signer/src/Signer.js index f21915f2..bba67519 100644 --- a/packages/signer/src/Signer.js +++ b/packages/signer/src/Signer.js @@ -237,12 +237,12 @@ export class Signer extends ISigner { // Append the unsigned attributes, if there are any const unsignedAttrs = await this.obtainUnsignedAttributes(signerInfo.signature.getValue()); - if (unsignedAttrs.length > 0) { - signerInfo.unsignedAttrs = new pkijs.SignedAndUnsignedAttributes({ - type: 1, - attributes: unsignedAttrs, - }); - } + // if (unsignedAttrs.length > 0) { + // signerInfo.unsignedAttrs = new pkijs.SignedAndUnsignedAttributes({ + // type: 1, + // attributes: unsignedAttrs, + // }); + // } // Create final result const cmsContentWrap = new pkijs.ContentInfo({