Fix NID definitions to match OpenSSL. The previous numbers were introduced incorrectly in #213

This commit is contained in:
Jethro Beekman 2015-06-30 18:45:17 -07:00
parent 26bc75cdef
commit 1d214bce61
1 changed files with 5 additions and 2 deletions

View File

@ -37,6 +37,7 @@ pub enum Nid {
DES_EDE, DES_EDE,
DES_EDE3, DES_EDE3,
IDEA_CBC, IDEA_CBC,
IDEA_CFB,
IDEA_ECB, IDEA_ECB,
RC2_CBC, RC2_CBC,
RC2_ECB, RC2_ECB,
@ -55,6 +56,7 @@ pub enum Nid {
MessageDigest, MessageDigest,
SigningTime, SigningTime,
CounterSignature, CounterSignature,
ChallengePassword,
UnstructuredAddress, UnstructuredAddress,
ExtendedCertificateAttributes, ExtendedCertificateAttributes,
Netscape, Netscape,
@ -93,6 +95,7 @@ pub enum Nid {
AuthorityKeyIdentifier, AuthorityKeyIdentifier,
BF_CBC, BF_CBC,
BF_ECB, BF_ECB,
BF_CFB,
BF_OFB, BF_OFB,
MDC2, MDC2,
RSA_MDC2, RSA_MDC2,
@ -117,7 +120,8 @@ pub enum Nid {
RSA_SHA1_2, RSA_SHA1_2,
DSA, DSA,
RIPEMD160, RIPEMD160,
RSA_RIPEMD160, /* 118 missing */
RSA_RIPEMD160=119,
RC5_CBC, RC5_CBC,
RC5_ECB, RC5_ECB,
RC5_CFB, RC5_CFB,
@ -142,7 +146,6 @@ pub enum Nid {
CRLReason, CRLReason,
InvalidityDate, InvalidityDate,
SXNetID, SXNetID,
Pkcs12,
PBE_SHA1_RC4_128, PBE_SHA1_RC4_128,
PBE_SHA1_RC4_40, PBE_SHA1_RC4_40,
PBE_SHA1_3DES, PBE_SHA1_3DES,