Skip to content

Commit c3b3b32

Browse files
wodzendavidlehn
authored andcommitted
Make digestAlgorithm parameters optional
Make `digestAlgorithm.parameters` optional per modern specs. https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.1.2 ``` AlgorithmIdentifier ::= SEQUENCE { algorithm OBJECT IDENTIFIER, parameters ANY DEFINED BY algorithm OPTIONAL } ```
1 parent 6f70043 commit c3b3b32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/pkcs12.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ var pfxValidator = {
168168
capture: 'macAlgorithm'
169169
}, {
170170
name: 'PFX.macData.mac.digestAlgorithm.parameters',
171+
optional: true,
171172
tagClass: asn1.Class.UNIVERSAL,
172173
captureAsn1: 'macAlgorithmParameters'
173174
}]

0 commit comments

Comments
 (0)