-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for optional flag and update the dictionaries
- Loading branch information
Showing
10 changed files
with
51 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,9 +51,9 @@ END DirectoryName | |
DEFINE GeneralSubtree sequence | ||
BEGIN GeneralSubtree | ||
DEFINE base sequence [email protected] | ||
DEFINE minimum integer option=0,has_default | ||
DEFINE minimum integer has_default,option=0,optional | ||
VALUE minimum DEFAULT 0 | ||
DEFINE maximum integer option=1 | ||
DEFINE maximum integer option=1,optional | ||
END GeneralSubtree | ||
|
||
DEFINE Name sequence | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
DEFINE distributionPoint sequence size=1.. | ||
BEGIN distributionPoint | ||
DEFINE distributionPointName sequence option=0 | ||
DEFINE distributionPointName sequence option=0,optional | ||
BEGIN distributionPointName | ||
ATTRIBUTE fullName 0 group der_type=sequence,sequence_of=choice,[email protected],option | ||
ATTRIBUTE nameRelativeToCRLIssuer 1 sequence option | ||
|
@@ -14,7 +14,7 @@ DEFINE RelativeDistinguishedName set [email protected] | |
END nameRelativeToCRLIssuer | ||
END distributionPointName | ||
|
||
DEFINE reasons struct der_type=bitstring,option=1 | ||
ATTRIBUTE reasons 1 struct der_type=bitstring,option,optional | ||
BEGIN reasons | ||
MEMBER unused bit[1] | ||
MEMBER keyCompromise bit[1] | ||
|
@@ -27,6 +27,6 @@ MEMBER privilegeWithdrawn bit[1] | |
MEMBER aACompromise bit[1] | ||
END reasons | ||
|
||
ATTRIBUTE cRLIssuer 2 group der_type=sequence,sequence_of=choice,[email protected],option | ||
ATTRIBUTE cRLIssuer 2 group der_type=sequence,sequence_of=choice,[email protected],option,optional | ||
|
||
END distributionPoint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,16 +46,16 @@ ATTRIBUTE basicConstraints 2.5.29.19 sequence is_oid_leaf | |
BEGIN 2.5.29.19 | ||
DEFINE cA boolean has_default | ||
VALUE cA DEFAULT false | ||
DEFINE pathLenConstraint integer | ||
DEFINE pathLenConstraint integer optional | ||
END 2.5.29.19 | ||
|
||
ATTRIBUTE nameConstraints 2.5.29.30 sequence is_oid_leaf | ||
BEGIN 2.5.29.30 | ||
DEFINE permittedSubtrees group [email protected],sequence_of=sequence,option=0 | ||
DEFINE excludedSubtrees group [email protected],sequence_of=sequence,option=1 | ||
DEFINE permittedSubtrees group [email protected],sequence_of=sequence,option=0,optional | ||
DEFINE excludedSubtrees group [email protected],sequence_of=sequence,option=1,optional | ||
END 2.5.29.30 | ||
|
||
ATTRIBUTE cRLDIstributionPoints 2.5.29.31 sequence sequence_of=sequence,is_oid_leaf | ||
ATTRIBUTE CRLDIstributionPoints 2.5.29.31 sequence sequence_of=sequence,is_oid_leaf | ||
BEGIN 2.5.29.31 | ||
$INCLUDE dictionary.crl | ||
END 2.5.29.31 | ||
|
@@ -66,7 +66,7 @@ DEFINE policyInformation sequence | |
BEGIN policyInformation | ||
DEFINE policyIdentifier oid | ||
|
||
DEFINE policyQualifiers sequence sequence_of=sequence,size=1.. | ||
DEFINE policyQualifiers sequence sequence_of=sequence,size=1..,optional | ||
BEGIN policyQualifiers | ||
DEFINE policyQualifierInfo sequence sequence_of=oid_and_value,[email protected] | ||
END policyQualifiers | ||
|
@@ -82,15 +82,15 @@ END 2.5.29.33 | |
|
||
ATTRIBUTE authorityKeyIdentifier 2.5.29.35 sequence sequence_of=choice,is_oid_leaf | ||
BEGIN 2.5.29.35 | ||
ATTRIBUTE keyIdentifier 0 octetstring option | ||
ATTRIBUTE authorityCertIssuer 1 group der_type=sequence,sequence_of=choice,[email protected],option | ||
ATTRIBUTE authorityCertSerialNumber 2 octetstring option | ||
ATTRIBUTE keyIdentifier 0 octetstring option,optional | ||
ATTRIBUTE authorityCertIssuer 1 group der_type=sequence,sequence_of=choice,[email protected],option,optional | ||
ATTRIBUTE authorityCertSerialNumber 2 octetstring der_type=integer,option,optional | ||
END 2.5.29.35 | ||
|
||
ATTRIBUTE policyConstraints 2.5.29.36 sequence is_oid_leaf | ||
BEGIN 2.5.29.36 | ||
DEFINE requireExplicitPolicy octetstring option=0 | ||
DEFINE inhibitPolicyMapping octetstring option=1 | ||
DEFINE requireExplicitPolicy octetstring option=0,optional | ||
DEFINE inhibitPolicyMapping octetstring option=1,optional | ||
END 2.5.29.36 | ||
|
||
ATTRIBUTE extKeyUsage 2.5.29.37 sequence sequence_of=oid,size=1..,is_oid_leaf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,10 @@ DEFINE algorithm sequence sequence_of=oid_and_value,[email protected] | |
DEFINE subjectPublicKey bitstring | ||
END subjectPublicKeyInfo | ||
|
||
DEFINE extensions x509_extensions [email protected],size=1.. | ||
DEFINE issuerUniqueID octetstring option=1,optional | ||
DEFINE subjectUniqueID octetstring option=2,optional | ||
|
||
DEFINE extensions x509_extensions [email protected],size=1..,option=3,optional | ||
|
||
END tbsCertificate | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.