Skip to content

Commit

Permalink
Derive PartialOrd, Ord for PkcsVersion, fix spelling mistake, grow dict
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfl0wer committed Apr 16, 2024
1 parent 9722ced commit f6cb27d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .vscode/ltex.dictionary.en-US.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,23 @@ signatureAlgorithm
SignatureAlgorithms
PKCS
DigitalSignature
KeyUsage
CrlSign
ContentCommitment
KeyEncipherment
DataEncipherment
KeyAgreement
KeyCertSign
EncipherOnly
DecipherOnly
BasicConstraints
KeyUsages
SessionId
attr
basicConstraints
Csr
keyUsage
extnValue
extnID
CSRs
IdCsrInner
12 changes: 12 additions & 0 deletions .vscode/ltex.hiddenFalsePositives.en-US.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,15 @@
{"rule":"COMMA_PARENTHESIS_WHITESPACE","sentence":"^\\QCertificationRequestInfo ::= SEQUENCE {\nversion INTEGER { v1(0) } (v1,...),\nsubject Name,\nsubjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }},\nattributes 0 Attributes{{ CRIAttributes }}\n}\\E$"}
{"rule":"ENGLISH_WORD_REPEAT_RULE","sentence":"^\\QCertificationRequest ::= SEQUENCE {\ncertificationRequestInfo CertificationRequestInfo,\nsignatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }},\nsignature BIT STRING\n}\\E$"}
{"rule":"COMMA_PARENTHESIS_WHITESPACE","sentence":"^\\QCertificationRequest ::= SEQUENCE {\ncertificationRequestInfo CertificationRequestInfo,\nsignatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }},\nsignature BIT STRING\n}\\E$"}
{"rule":"ENGLISH_WORD_REPEAT_BEGINNING_RULE","sentence":"^\\QObject Identifier for the KeyUsage::ContentCommitment variant.\\E$"}
{"rule":"ENGLISH_WORD_REPEAT_BEGINNING_RULE","sentence":"^\\QObject Identifier for the KeyUsage::KeyEncipherment variant.\\E$"}
{"rule":"ENGLISH_WORD_REPEAT_BEGINNING_RULE","sentence":"^\\QObject Identifier for the KeyUsage::DataEncipherment variant.\\E$"}
{"rule":"ENGLISH_WORD_REPEAT_BEGINNING_RULE","sentence":"^\\QObject Identifier for the KeyUsage::KeyAgreement variant.\\E$"}
{"rule":"ENGLISH_WORD_REPEAT_BEGINNING_RULE","sentence":"^\\QObject Identifier for the KeyUsage::KeyCertSign variant.\\E$"}
{"rule":"ENGLISH_WORD_REPEAT_BEGINNING_RULE","sentence":"^\\QObject Identifier for the KeyUsage::EncipherOnly variant.\\E$"}
{"rule":"ENGLISH_WORD_REPEAT_BEGINNING_RULE","sentence":"^\\QObject Identifier for the KeyUsage::DecipherOnly variant.\\E$"}
{"rule":"ENGLISH_WORD_REPEAT_BEGINNING_RULE","sentence":"^\\QObject Identifier for the BasicConstraints variant.\\E$"}
{"rule":"ENGLISH_WORD_REPEAT_BEGINNING_RULE","sentence":"^\\QObject Identifier for the KeyUsage flag.\\E$"}
{"rule":"UNLIKELY_OPENING_PUNCTUATION","sentence":"^\\Q:3\\E$"}
{"rule":"DOUBLE_PUNCTUATION","sentence":"^\\QExtensions ::= SEQUENCE SIZE (1..MAX) OF Extension\\E$"}
{"rule":"COMMA_PARENTHESIS_WHITESPACE","sentence":"^\\QExtension ::= SEQUENCE {\nextnID OBJECT IDENTIFIER,\ncritical BOOLEAN DEFAULT FALSE,\nextnValue OCTET STRING\n-- contains the DER encoding of an ASN.1 value\n-- corresponding to the extension type identified\n-- by extnID\n}\\E$"}
2 changes: 1 addition & 1 deletion src/certs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl SessionId {
}
}

#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash, PartialOrd, Ord)]
#[repr(u8)]
/// `PKCS#10` version. From the PKCS specification document (RFC 2986):
/// > version is the version number, for compatibility with future
Expand Down

0 comments on commit f6cb27d

Please sign in to comment.