1 //! A collection of numerical identifiers for OpenSSL objects. 2 use ffi; 3 use libc::{c_char, c_int}; 4 5 use std::ffi::CStr; 6 use std::str; 7 8 use cvt_p; 9 use error::ErrorStack; 10 11 /// The digest and public-key algorithms associated with a signature. 12 pub struct SignatureAlgorithms { 13 /// The signature's digest. 14 /// 15 /// If the signature does not specify a digest, this will be `NID::UNDEF`. 16 pub digest: Nid, 17 18 /// The signature's public-key. 19 pub pkey: Nid, 20 } 21 22 /// A numerical identifier for an OpenSSL object. 23 /// 24 /// Objects in OpenSSL can have a short name, a long name, and 25 /// a numerical identifier (NID). For convenience, objects 26 /// are usually represented in source code using these numeric 27 /// identifiers. 28 /// 29 /// Users should generally not need to create new `Nid`s. 30 /// 31 /// # Examples 32 /// 33 /// To view the integer representation of a `Nid`: 34 /// 35 /// ``` 36 /// use openssl::nid::Nid; 37 /// 38 /// assert!(Nid::AES_256_GCM.as_raw() == 901); 39 /// ``` 40 /// 41 /// # External Documentation 42 /// 43 /// The following documentation provides context about `Nid`s and their usage 44 /// in OpenSSL. 45 /// 46 /// - [Obj_nid2obj](https://www.openssl.org/docs/man1.1.0/crypto/OBJ_create.html) 47 #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] 48 pub struct Nid(c_int); 49 50 #[allow(non_snake_case)] 51 impl Nid { 52 /// Create a `Nid` from an integer representation. from_raw(raw: c_int) -> Nid53 pub fn from_raw(raw: c_int) -> Nid { 54 Nid(raw) 55 } 56 57 /// Return the integer representation of a `Nid`. 58 #[allow(clippy::trivially_copy_pass_by_ref)] as_raw(&self) -> c_int59 pub fn as_raw(&self) -> c_int { 60 self.0 61 } 62 63 /// Returns the `Nid`s of the digest and public key algorithms associated with a signature ID. 64 /// 65 /// This corresponds to `OBJ_find_sigid_algs`. 66 #[allow(clippy::trivially_copy_pass_by_ref)] signature_algorithms(&self) -> Option<SignatureAlgorithms>67 pub fn signature_algorithms(&self) -> Option<SignatureAlgorithms> { 68 unsafe { 69 let mut digest = 0; 70 let mut pkey = 0; 71 if ffi::OBJ_find_sigid_algs(self.0, &mut digest, &mut pkey) == 1 { 72 Some(SignatureAlgorithms { 73 digest: Nid(digest), 74 pkey: Nid(pkey), 75 }) 76 } else { 77 None 78 } 79 } 80 } 81 82 /// Return the string representation of a `Nid` (long) 83 /// This corresponds to [`OBJ_nid2ln`] 84 /// 85 /// [`OBJ_nid2ln`]: https://www.openssl.org/docs/man1.1.0/crypto/OBJ_nid2ln.html 86 #[allow(clippy::trivially_copy_pass_by_ref)] long_name(&self) -> Result<&'static str, ErrorStack>87 pub fn long_name(&self) -> Result<&'static str, ErrorStack> { 88 unsafe { 89 cvt_p(ffi::OBJ_nid2ln(self.0) as *mut c_char) 90 .map(|nameptr| str::from_utf8(CStr::from_ptr(nameptr).to_bytes()).unwrap()) 91 } 92 } 93 94 /// Return the string representation of a `Nid` (short) 95 /// This corresponds to [`OBJ_nid2sn`] 96 /// 97 /// [`OBJ_nid2sn`]: https://www.openssl.org/docs/man1.1.0/crypto/OBJ_nid2sn.html 98 #[allow(clippy::trivially_copy_pass_by_ref)] short_name(&self) -> Result<&'static str, ErrorStack>99 pub fn short_name(&self) -> Result<&'static str, ErrorStack> { 100 unsafe { 101 cvt_p(ffi::OBJ_nid2sn(self.0) as *mut c_char) 102 .map(|nameptr| str::from_utf8(CStr::from_ptr(nameptr).to_bytes()).unwrap()) 103 } 104 } 105 106 pub const UNDEF: Nid = Nid(ffi::NID_undef); 107 pub const ITU_T: Nid = Nid(ffi::NID_itu_t); 108 pub const CCITT: Nid = Nid(ffi::NID_ccitt); 109 pub const ISO: Nid = Nid(ffi::NID_iso); 110 pub const JOINT_ISO_ITU_T: Nid = Nid(ffi::NID_joint_iso_itu_t); 111 pub const JOINT_ISO_CCITT: Nid = Nid(ffi::NID_joint_iso_ccitt); 112 pub const MEMBER_BODY: Nid = Nid(ffi::NID_member_body); 113 pub const IDENTIFIED_ORGANIZATION: Nid = Nid(ffi::NID_identified_organization); 114 pub const HMAC_MD5: Nid = Nid(ffi::NID_hmac_md5); 115 pub const HMAC_SHA1: Nid = Nid(ffi::NID_hmac_sha1); 116 pub const CERTICOM_ARC: Nid = Nid(ffi::NID_certicom_arc); 117 pub const INTERNATIONAL_ORGANIZATIONS: Nid = Nid(ffi::NID_international_organizations); 118 pub const WAP: Nid = Nid(ffi::NID_wap); 119 pub const WAP_WSG: Nid = Nid(ffi::NID_wap_wsg); 120 pub const SELECTED_ATTRIBUTE_TYPES: Nid = Nid(ffi::NID_selected_attribute_types); 121 pub const CLEARANCE: Nid = Nid(ffi::NID_clearance); 122 pub const ISO_US: Nid = Nid(ffi::NID_ISO_US); 123 pub const X9_57: Nid = Nid(ffi::NID_X9_57); 124 pub const X9CM: Nid = Nid(ffi::NID_X9cm); 125 pub const DSA: Nid = Nid(ffi::NID_dsa); 126 pub const DSAWITHSHA1: Nid = Nid(ffi::NID_dsaWithSHA1); 127 pub const ANSI_X9_62: Nid = Nid(ffi::NID_ansi_X9_62); 128 pub const X9_62_PRIME_FIELD: Nid = Nid(ffi::NID_X9_62_prime_field); 129 pub const X9_62_CHARACTERISTIC_TWO_FIELD: Nid = Nid(ffi::NID_X9_62_characteristic_two_field); 130 pub const X9_62_ID_CHARACTERISTIC_TWO_BASIS: Nid = 131 Nid(ffi::NID_X9_62_id_characteristic_two_basis); 132 pub const X9_62_ONBASIS: Nid = Nid(ffi::NID_X9_62_onBasis); 133 pub const X9_62_TPBASIS: Nid = Nid(ffi::NID_X9_62_tpBasis); 134 pub const X9_62_PPBASIS: Nid = Nid(ffi::NID_X9_62_ppBasis); 135 pub const X9_62_ID_ECPUBLICKEY: Nid = Nid(ffi::NID_X9_62_id_ecPublicKey); 136 pub const X9_62_C2PNB163V1: Nid = Nid(ffi::NID_X9_62_c2pnb163v1); 137 pub const X9_62_C2PNB163V2: Nid = Nid(ffi::NID_X9_62_c2pnb163v2); 138 pub const X9_62_C2PNB163V3: Nid = Nid(ffi::NID_X9_62_c2pnb163v3); 139 pub const X9_62_C2PNB176V1: Nid = Nid(ffi::NID_X9_62_c2pnb176v1); 140 pub const X9_62_C2TNB191V1: Nid = Nid(ffi::NID_X9_62_c2tnb191v1); 141 pub const X9_62_C2TNB191V2: Nid = Nid(ffi::NID_X9_62_c2tnb191v2); 142 pub const X9_62_C2TNB191V3: Nid = Nid(ffi::NID_X9_62_c2tnb191v3); 143 pub const X9_62_C2ONB191V4: Nid = Nid(ffi::NID_X9_62_c2onb191v4); 144 pub const X9_62_C2ONB191V5: Nid = Nid(ffi::NID_X9_62_c2onb191v5); 145 pub const X9_62_C2PNB208W1: Nid = Nid(ffi::NID_X9_62_c2pnb208w1); 146 pub const X9_62_C2TNB239V1: Nid = Nid(ffi::NID_X9_62_c2tnb239v1); 147 pub const X9_62_C2TNB239V2: Nid = Nid(ffi::NID_X9_62_c2tnb239v2); 148 pub const X9_62_C2TNB239V3: Nid = Nid(ffi::NID_X9_62_c2tnb239v3); 149 pub const X9_62_C2ONB239V4: Nid = Nid(ffi::NID_X9_62_c2onb239v4); 150 pub const X9_62_C2ONB239V5: Nid = Nid(ffi::NID_X9_62_c2onb239v5); 151 pub const X9_62_C2PNB272W1: Nid = Nid(ffi::NID_X9_62_c2pnb272w1); 152 pub const X9_62_C2PNB304W1: Nid = Nid(ffi::NID_X9_62_c2pnb304w1); 153 pub const X9_62_C2TNB359V1: Nid = Nid(ffi::NID_X9_62_c2tnb359v1); 154 pub const X9_62_C2PNB368W1: Nid = Nid(ffi::NID_X9_62_c2pnb368w1); 155 pub const X9_62_C2TNB431R1: Nid = Nid(ffi::NID_X9_62_c2tnb431r1); 156 pub const X9_62_PRIME192V1: Nid = Nid(ffi::NID_X9_62_prime192v1); 157 pub const X9_62_PRIME192V2: Nid = Nid(ffi::NID_X9_62_prime192v2); 158 pub const X9_62_PRIME192V3: Nid = Nid(ffi::NID_X9_62_prime192v3); 159 pub const X9_62_PRIME239V1: Nid = Nid(ffi::NID_X9_62_prime239v1); 160 pub const X9_62_PRIME239V2: Nid = Nid(ffi::NID_X9_62_prime239v2); 161 pub const X9_62_PRIME239V3: Nid = Nid(ffi::NID_X9_62_prime239v3); 162 pub const X9_62_PRIME256V1: Nid = Nid(ffi::NID_X9_62_prime256v1); 163 pub const ECDSA_WITH_SHA1: Nid = Nid(ffi::NID_ecdsa_with_SHA1); 164 pub const ECDSA_WITH_RECOMMENDED: Nid = Nid(ffi::NID_ecdsa_with_Recommended); 165 pub const ECDSA_WITH_SPECIFIED: Nid = Nid(ffi::NID_ecdsa_with_Specified); 166 pub const ECDSA_WITH_SHA224: Nid = Nid(ffi::NID_ecdsa_with_SHA224); 167 pub const ECDSA_WITH_SHA256: Nid = Nid(ffi::NID_ecdsa_with_SHA256); 168 pub const ECDSA_WITH_SHA384: Nid = Nid(ffi::NID_ecdsa_with_SHA384); 169 pub const ECDSA_WITH_SHA512: Nid = Nid(ffi::NID_ecdsa_with_SHA512); 170 pub const SECP112R1: Nid = Nid(ffi::NID_secp112r1); 171 pub const SECP112R2: Nid = Nid(ffi::NID_secp112r2); 172 pub const SECP128R1: Nid = Nid(ffi::NID_secp128r1); 173 pub const SECP128R2: Nid = Nid(ffi::NID_secp128r2); 174 pub const SECP160K1: Nid = Nid(ffi::NID_secp160k1); 175 pub const SECP160R1: Nid = Nid(ffi::NID_secp160r1); 176 pub const SECP160R2: Nid = Nid(ffi::NID_secp160r2); 177 pub const SECP192K1: Nid = Nid(ffi::NID_secp192k1); 178 pub const SECP224K1: Nid = Nid(ffi::NID_secp224k1); 179 pub const SECP224R1: Nid = Nid(ffi::NID_secp224r1); 180 pub const SECP256K1: Nid = Nid(ffi::NID_secp256k1); 181 pub const SECP384R1: Nid = Nid(ffi::NID_secp384r1); 182 pub const SECP521R1: Nid = Nid(ffi::NID_secp521r1); 183 pub const SECT113R1: Nid = Nid(ffi::NID_sect113r1); 184 pub const SECT113R2: Nid = Nid(ffi::NID_sect113r2); 185 pub const SECT131R1: Nid = Nid(ffi::NID_sect131r1); 186 pub const SECT131R2: Nid = Nid(ffi::NID_sect131r2); 187 pub const SECT163K1: Nid = Nid(ffi::NID_sect163k1); 188 pub const SECT163R1: Nid = Nid(ffi::NID_sect163r1); 189 pub const SECT163R2: Nid = Nid(ffi::NID_sect163r2); 190 pub const SECT193R1: Nid = Nid(ffi::NID_sect193r1); 191 pub const SECT193R2: Nid = Nid(ffi::NID_sect193r2); 192 pub const SECT233K1: Nid = Nid(ffi::NID_sect233k1); 193 pub const SECT233R1: Nid = Nid(ffi::NID_sect233r1); 194 pub const SECT239K1: Nid = Nid(ffi::NID_sect239k1); 195 pub const SECT283K1: Nid = Nid(ffi::NID_sect283k1); 196 pub const SECT283R1: Nid = Nid(ffi::NID_sect283r1); 197 pub const SECT409K1: Nid = Nid(ffi::NID_sect409k1); 198 pub const SECT409R1: Nid = Nid(ffi::NID_sect409r1); 199 pub const SECT571K1: Nid = Nid(ffi::NID_sect571k1); 200 pub const SECT571R1: Nid = Nid(ffi::NID_sect571r1); 201 pub const WAP_WSG_IDM_ECID_WTLS1: Nid = Nid(ffi::NID_wap_wsg_idm_ecid_wtls1); 202 pub const WAP_WSG_IDM_ECID_WTLS3: Nid = Nid(ffi::NID_wap_wsg_idm_ecid_wtls3); 203 pub const WAP_WSG_IDM_ECID_WTLS4: Nid = Nid(ffi::NID_wap_wsg_idm_ecid_wtls4); 204 pub const WAP_WSG_IDM_ECID_WTLS5: Nid = Nid(ffi::NID_wap_wsg_idm_ecid_wtls5); 205 pub const WAP_WSG_IDM_ECID_WTLS6: Nid = Nid(ffi::NID_wap_wsg_idm_ecid_wtls6); 206 pub const WAP_WSG_IDM_ECID_WTLS7: Nid = Nid(ffi::NID_wap_wsg_idm_ecid_wtls7); 207 pub const WAP_WSG_IDM_ECID_WTLS8: Nid = Nid(ffi::NID_wap_wsg_idm_ecid_wtls8); 208 pub const WAP_WSG_IDM_ECID_WTLS9: Nid = Nid(ffi::NID_wap_wsg_idm_ecid_wtls9); 209 pub const WAP_WSG_IDM_ECID_WTLS10: Nid = Nid(ffi::NID_wap_wsg_idm_ecid_wtls10); 210 pub const WAP_WSG_IDM_ECID_WTLS11: Nid = Nid(ffi::NID_wap_wsg_idm_ecid_wtls11); 211 pub const WAP_WSG_IDM_ECID_WTLS12: Nid = Nid(ffi::NID_wap_wsg_idm_ecid_wtls12); 212 pub const CAST5_CBC: Nid = Nid(ffi::NID_cast5_cbc); 213 pub const CAST5_ECB: Nid = Nid(ffi::NID_cast5_ecb); 214 pub const CAST5_CFB64: Nid = Nid(ffi::NID_cast5_cfb64); 215 pub const CAST5_OFB64: Nid = Nid(ffi::NID_cast5_ofb64); 216 pub const PBEWITHMD5ANDCAST5_CBC: Nid = Nid(ffi::NID_pbeWithMD5AndCast5_CBC); 217 pub const ID_PASSWORDBASEDMAC: Nid = Nid(ffi::NID_id_PasswordBasedMAC); 218 pub const ID_DHBASEDMAC: Nid = Nid(ffi::NID_id_DHBasedMac); 219 pub const RSADSI: Nid = Nid(ffi::NID_rsadsi); 220 pub const PKCS: Nid = Nid(ffi::NID_pkcs); 221 pub const PKCS1: Nid = Nid(ffi::NID_pkcs1); 222 pub const RSAENCRYPTION: Nid = Nid(ffi::NID_rsaEncryption); 223 pub const MD2WITHRSAENCRYPTION: Nid = Nid(ffi::NID_md2WithRSAEncryption); 224 pub const MD4WITHRSAENCRYPTION: Nid = Nid(ffi::NID_md4WithRSAEncryption); 225 pub const MD5WITHRSAENCRYPTION: Nid = Nid(ffi::NID_md5WithRSAEncryption); 226 pub const SHA1WITHRSAENCRYPTION: Nid = Nid(ffi::NID_sha1WithRSAEncryption); 227 pub const RSAESOAEP: Nid = Nid(ffi::NID_rsaesOaep); 228 pub const MGF1: Nid = Nid(ffi::NID_mgf1); 229 pub const RSASSAPSS: Nid = Nid(ffi::NID_rsassaPss); 230 pub const SHA256WITHRSAENCRYPTION: Nid = Nid(ffi::NID_sha256WithRSAEncryption); 231 pub const SHA384WITHRSAENCRYPTION: Nid = Nid(ffi::NID_sha384WithRSAEncryption); 232 pub const SHA512WITHRSAENCRYPTION: Nid = Nid(ffi::NID_sha512WithRSAEncryption); 233 pub const SHA224WITHRSAENCRYPTION: Nid = Nid(ffi::NID_sha224WithRSAEncryption); 234 pub const PKCS3: Nid = Nid(ffi::NID_pkcs3); 235 pub const DHKEYAGREEMENT: Nid = Nid(ffi::NID_dhKeyAgreement); 236 pub const PKCS5: Nid = Nid(ffi::NID_pkcs5); 237 pub const PBEWITHMD2ANDDES_CBC: Nid = Nid(ffi::NID_pbeWithMD2AndDES_CBC); 238 pub const PBEWITHMD5ANDDES_CBC: Nid = Nid(ffi::NID_pbeWithMD5AndDES_CBC); 239 pub const PBEWITHMD2ANDRC2_CBC: Nid = Nid(ffi::NID_pbeWithMD2AndRC2_CBC); 240 pub const PBEWITHMD5ANDRC2_CBC: Nid = Nid(ffi::NID_pbeWithMD5AndRC2_CBC); 241 pub const PBEWITHSHA1ANDDES_CBC: Nid = Nid(ffi::NID_pbeWithSHA1AndDES_CBC); 242 pub const PBEWITHSHA1ANDRC2_CBC: Nid = Nid(ffi::NID_pbeWithSHA1AndRC2_CBC); 243 pub const ID_PBKDF2: Nid = Nid(ffi::NID_id_pbkdf2); 244 pub const PBES2: Nid = Nid(ffi::NID_pbes2); 245 pub const PBMAC1: Nid = Nid(ffi::NID_pbmac1); 246 pub const PKCS7: Nid = Nid(ffi::NID_pkcs7); 247 pub const PKCS7_DATA: Nid = Nid(ffi::NID_pkcs7_data); 248 pub const PKCS7_SIGNED: Nid = Nid(ffi::NID_pkcs7_signed); 249 pub const PKCS7_ENVELOPED: Nid = Nid(ffi::NID_pkcs7_enveloped); 250 pub const PKCS7_SIGNEDANDENVELOPED: Nid = Nid(ffi::NID_pkcs7_signedAndEnveloped); 251 pub const PKCS7_DIGEST: Nid = Nid(ffi::NID_pkcs7_digest); 252 pub const PKCS7_ENCRYPTED: Nid = Nid(ffi::NID_pkcs7_encrypted); 253 pub const PKCS9: Nid = Nid(ffi::NID_pkcs9); 254 pub const PKCS9_EMAILADDRESS: Nid = Nid(ffi::NID_pkcs9_emailAddress); 255 pub const PKCS9_UNSTRUCTUREDNAME: Nid = Nid(ffi::NID_pkcs9_unstructuredName); 256 pub const PKCS9_CONTENTTYPE: Nid = Nid(ffi::NID_pkcs9_contentType); 257 pub const PKCS9_MESSAGEDIGEST: Nid = Nid(ffi::NID_pkcs9_messageDigest); 258 pub const PKCS9_SIGNINGTIME: Nid = Nid(ffi::NID_pkcs9_signingTime); 259 pub const PKCS9_COUNTERSIGNATURE: Nid = Nid(ffi::NID_pkcs9_countersignature); 260 pub const PKCS9_CHALLENGEPASSWORD: Nid = Nid(ffi::NID_pkcs9_challengePassword); 261 pub const PKCS9_UNSTRUCTUREDADDRESS: Nid = Nid(ffi::NID_pkcs9_unstructuredAddress); 262 pub const PKCS9_EXTCERTATTRIBUTES: Nid = Nid(ffi::NID_pkcs9_extCertAttributes); 263 pub const EXT_REQ: Nid = Nid(ffi::NID_ext_req); 264 pub const SMIMECAPABILITIES: Nid = Nid(ffi::NID_SMIMECapabilities); 265 pub const SMIME: Nid = Nid(ffi::NID_SMIME); 266 pub const ID_SMIME_MOD: Nid = Nid(ffi::NID_id_smime_mod); 267 pub const ID_SMIME_CT: Nid = Nid(ffi::NID_id_smime_ct); 268 pub const ID_SMIME_AA: Nid = Nid(ffi::NID_id_smime_aa); 269 pub const ID_SMIME_ALG: Nid = Nid(ffi::NID_id_smime_alg); 270 pub const ID_SMIME_CD: Nid = Nid(ffi::NID_id_smime_cd); 271 pub const ID_SMIME_SPQ: Nid = Nid(ffi::NID_id_smime_spq); 272 pub const ID_SMIME_CTI: Nid = Nid(ffi::NID_id_smime_cti); 273 pub const ID_SMIME_MOD_CMS: Nid = Nid(ffi::NID_id_smime_mod_cms); 274 pub const ID_SMIME_MOD_ESS: Nid = Nid(ffi::NID_id_smime_mod_ess); 275 pub const ID_SMIME_MOD_OID: Nid = Nid(ffi::NID_id_smime_mod_oid); 276 pub const ID_SMIME_MOD_MSG_V3: Nid = Nid(ffi::NID_id_smime_mod_msg_v3); 277 pub const ID_SMIME_MOD_ETS_ESIGNATURE_88: Nid = Nid(ffi::NID_id_smime_mod_ets_eSignature_88); 278 pub const ID_SMIME_MOD_ETS_ESIGNATURE_97: Nid = Nid(ffi::NID_id_smime_mod_ets_eSignature_97); 279 pub const ID_SMIME_MOD_ETS_ESIGPOLICY_88: Nid = Nid(ffi::NID_id_smime_mod_ets_eSigPolicy_88); 280 pub const ID_SMIME_MOD_ETS_ESIGPOLICY_97: Nid = Nid(ffi::NID_id_smime_mod_ets_eSigPolicy_97); 281 pub const ID_SMIME_CT_RECEIPT: Nid = Nid(ffi::NID_id_smime_ct_receipt); 282 pub const ID_SMIME_CT_AUTHDATA: Nid = Nid(ffi::NID_id_smime_ct_authData); 283 pub const ID_SMIME_CT_PUBLISHCERT: Nid = Nid(ffi::NID_id_smime_ct_publishCert); 284 pub const ID_SMIME_CT_TSTINFO: Nid = Nid(ffi::NID_id_smime_ct_TSTInfo); 285 pub const ID_SMIME_CT_TDTINFO: Nid = Nid(ffi::NID_id_smime_ct_TDTInfo); 286 pub const ID_SMIME_CT_CONTENTINFO: Nid = Nid(ffi::NID_id_smime_ct_contentInfo); 287 pub const ID_SMIME_CT_DVCSREQUESTDATA: Nid = Nid(ffi::NID_id_smime_ct_DVCSRequestData); 288 pub const ID_SMIME_CT_DVCSRESPONSEDATA: Nid = Nid(ffi::NID_id_smime_ct_DVCSResponseData); 289 pub const ID_SMIME_CT_COMPRESSEDDATA: Nid = Nid(ffi::NID_id_smime_ct_compressedData); 290 pub const ID_CT_ASCIITEXTWITHCRLF: Nid = Nid(ffi::NID_id_ct_asciiTextWithCRLF); 291 pub const ID_SMIME_AA_RECEIPTREQUEST: Nid = Nid(ffi::NID_id_smime_aa_receiptRequest); 292 pub const ID_SMIME_AA_SECURITYLABEL: Nid = Nid(ffi::NID_id_smime_aa_securityLabel); 293 pub const ID_SMIME_AA_MLEXPANDHISTORY: Nid = Nid(ffi::NID_id_smime_aa_mlExpandHistory); 294 pub const ID_SMIME_AA_CONTENTHINT: Nid = Nid(ffi::NID_id_smime_aa_contentHint); 295 pub const ID_SMIME_AA_MSGSIGDIGEST: Nid = Nid(ffi::NID_id_smime_aa_msgSigDigest); 296 pub const ID_SMIME_AA_ENCAPCONTENTTYPE: Nid = Nid(ffi::NID_id_smime_aa_encapContentType); 297 pub const ID_SMIME_AA_CONTENTIDENTIFIER: Nid = Nid(ffi::NID_id_smime_aa_contentIdentifier); 298 pub const ID_SMIME_AA_MACVALUE: Nid = Nid(ffi::NID_id_smime_aa_macValue); 299 pub const ID_SMIME_AA_EQUIVALENTLABELS: Nid = Nid(ffi::NID_id_smime_aa_equivalentLabels); 300 pub const ID_SMIME_AA_CONTENTREFERENCE: Nid = Nid(ffi::NID_id_smime_aa_contentReference); 301 pub const ID_SMIME_AA_ENCRYPKEYPREF: Nid = Nid(ffi::NID_id_smime_aa_encrypKeyPref); 302 pub const ID_SMIME_AA_SIGNINGCERTIFICATE: Nid = Nid(ffi::NID_id_smime_aa_signingCertificate); 303 pub const ID_SMIME_AA_SMIMEENCRYPTCERTS: Nid = Nid(ffi::NID_id_smime_aa_smimeEncryptCerts); 304 pub const ID_SMIME_AA_TIMESTAMPTOKEN: Nid = Nid(ffi::NID_id_smime_aa_timeStampToken); 305 pub const ID_SMIME_AA_ETS_SIGPOLICYID: Nid = Nid(ffi::NID_id_smime_aa_ets_sigPolicyId); 306 pub const ID_SMIME_AA_ETS_COMMITMENTTYPE: Nid = Nid(ffi::NID_id_smime_aa_ets_commitmentType); 307 pub const ID_SMIME_AA_ETS_SIGNERLOCATION: Nid = Nid(ffi::NID_id_smime_aa_ets_signerLocation); 308 pub const ID_SMIME_AA_ETS_SIGNERATTR: Nid = Nid(ffi::NID_id_smime_aa_ets_signerAttr); 309 pub const ID_SMIME_AA_ETS_OTHERSIGCERT: Nid = Nid(ffi::NID_id_smime_aa_ets_otherSigCert); 310 pub const ID_SMIME_AA_ETS_CONTENTTIMESTAMP: Nid = 311 Nid(ffi::NID_id_smime_aa_ets_contentTimestamp); 312 pub const ID_SMIME_AA_ETS_CERTIFICATEREFS: Nid = Nid(ffi::NID_id_smime_aa_ets_CertificateRefs); 313 pub const ID_SMIME_AA_ETS_REVOCATIONREFS: Nid = Nid(ffi::NID_id_smime_aa_ets_RevocationRefs); 314 pub const ID_SMIME_AA_ETS_CERTVALUES: Nid = Nid(ffi::NID_id_smime_aa_ets_certValues); 315 pub const ID_SMIME_AA_ETS_REVOCATIONVALUES: Nid = 316 Nid(ffi::NID_id_smime_aa_ets_revocationValues); 317 pub const ID_SMIME_AA_ETS_ESCTIMESTAMP: Nid = Nid(ffi::NID_id_smime_aa_ets_escTimeStamp); 318 pub const ID_SMIME_AA_ETS_CERTCRLTIMESTAMP: Nid = 319 Nid(ffi::NID_id_smime_aa_ets_certCRLTimestamp); 320 pub const ID_SMIME_AA_ETS_ARCHIVETIMESTAMP: Nid = 321 Nid(ffi::NID_id_smime_aa_ets_archiveTimeStamp); 322 pub const ID_SMIME_AA_SIGNATURETYPE: Nid = Nid(ffi::NID_id_smime_aa_signatureType); 323 pub const ID_SMIME_AA_DVCS_DVC: Nid = Nid(ffi::NID_id_smime_aa_dvcs_dvc); 324 pub const ID_SMIME_ALG_ESDHWITH3DES: Nid = Nid(ffi::NID_id_smime_alg_ESDHwith3DES); 325 pub const ID_SMIME_ALG_ESDHWITHRC2: Nid = Nid(ffi::NID_id_smime_alg_ESDHwithRC2); 326 pub const ID_SMIME_ALG_3DESWRAP: Nid = Nid(ffi::NID_id_smime_alg_3DESwrap); 327 pub const ID_SMIME_ALG_RC2WRAP: Nid = Nid(ffi::NID_id_smime_alg_RC2wrap); 328 pub const ID_SMIME_ALG_ESDH: Nid = Nid(ffi::NID_id_smime_alg_ESDH); 329 pub const ID_SMIME_ALG_CMS3DESWRAP: Nid = Nid(ffi::NID_id_smime_alg_CMS3DESwrap); 330 pub const ID_SMIME_ALG_CMSRC2WRAP: Nid = Nid(ffi::NID_id_smime_alg_CMSRC2wrap); 331 pub const ID_ALG_PWRI_KEK: Nid = Nid(ffi::NID_id_alg_PWRI_KEK); 332 pub const ID_SMIME_CD_LDAP: Nid = Nid(ffi::NID_id_smime_cd_ldap); 333 pub const ID_SMIME_SPQ_ETS_SQT_URI: Nid = Nid(ffi::NID_id_smime_spq_ets_sqt_uri); 334 pub const ID_SMIME_SPQ_ETS_SQT_UNOTICE: Nid = Nid(ffi::NID_id_smime_spq_ets_sqt_unotice); 335 pub const ID_SMIME_CTI_ETS_PROOFOFORIGIN: Nid = Nid(ffi::NID_id_smime_cti_ets_proofOfOrigin); 336 pub const ID_SMIME_CTI_ETS_PROOFOFRECEIPT: Nid = Nid(ffi::NID_id_smime_cti_ets_proofOfReceipt); 337 pub const ID_SMIME_CTI_ETS_PROOFOFDELIVERY: Nid = 338 Nid(ffi::NID_id_smime_cti_ets_proofOfDelivery); 339 pub const ID_SMIME_CTI_ETS_PROOFOFSENDER: Nid = Nid(ffi::NID_id_smime_cti_ets_proofOfSender); 340 pub const ID_SMIME_CTI_ETS_PROOFOFAPPROVAL: Nid = 341 Nid(ffi::NID_id_smime_cti_ets_proofOfApproval); 342 pub const ID_SMIME_CTI_ETS_PROOFOFCREATION: Nid = 343 Nid(ffi::NID_id_smime_cti_ets_proofOfCreation); 344 pub const FRIENDLYNAME: Nid = Nid(ffi::NID_friendlyName); 345 pub const LOCALKEYID: Nid = Nid(ffi::NID_localKeyID); 346 pub const MS_CSP_NAME: Nid = Nid(ffi::NID_ms_csp_name); 347 pub const LOCALKEYSET: Nid = Nid(ffi::NID_LocalKeySet); 348 pub const X509CERTIFICATE: Nid = Nid(ffi::NID_x509Certificate); 349 pub const SDSICERTIFICATE: Nid = Nid(ffi::NID_sdsiCertificate); 350 pub const X509CRL: Nid = Nid(ffi::NID_x509Crl); 351 pub const PBE_WITHSHA1AND128BITRC4: Nid = Nid(ffi::NID_pbe_WithSHA1And128BitRC4); 352 pub const PBE_WITHSHA1AND40BITRC4: Nid = Nid(ffi::NID_pbe_WithSHA1And40BitRC4); 353 pub const PBE_WITHSHA1AND3_KEY_TRIPLEDES_CBC: Nid = 354 Nid(ffi::NID_pbe_WithSHA1And3_Key_TripleDES_CBC); 355 pub const PBE_WITHSHA1AND2_KEY_TRIPLEDES_CBC: Nid = 356 Nid(ffi::NID_pbe_WithSHA1And2_Key_TripleDES_CBC); 357 pub const PBE_WITHSHA1AND128BITRC2_CBC: Nid = Nid(ffi::NID_pbe_WithSHA1And128BitRC2_CBC); 358 pub const PBE_WITHSHA1AND40BITRC2_CBC: Nid = Nid(ffi::NID_pbe_WithSHA1And40BitRC2_CBC); 359 pub const KEYBAG: Nid = Nid(ffi::NID_keyBag); 360 pub const PKCS8SHROUDEDKEYBAG: Nid = Nid(ffi::NID_pkcs8ShroudedKeyBag); 361 pub const CERTBAG: Nid = Nid(ffi::NID_certBag); 362 pub const CRLBAG: Nid = Nid(ffi::NID_crlBag); 363 pub const SECRETBAG: Nid = Nid(ffi::NID_secretBag); 364 pub const SAFECONTENTSBAG: Nid = Nid(ffi::NID_safeContentsBag); 365 pub const MD2: Nid = Nid(ffi::NID_md2); 366 pub const MD4: Nid = Nid(ffi::NID_md4); 367 pub const MD5: Nid = Nid(ffi::NID_md5); 368 pub const MD5_SHA1: Nid = Nid(ffi::NID_md5_sha1); 369 pub const HMACWITHMD5: Nid = Nid(ffi::NID_hmacWithMD5); 370 pub const HMACWITHSHA1: Nid = Nid(ffi::NID_hmacWithSHA1); 371 pub const HMACWITHSHA224: Nid = Nid(ffi::NID_hmacWithSHA224); 372 pub const HMACWITHSHA256: Nid = Nid(ffi::NID_hmacWithSHA256); 373 pub const HMACWITHSHA384: Nid = Nid(ffi::NID_hmacWithSHA384); 374 pub const HMACWITHSHA512: Nid = Nid(ffi::NID_hmacWithSHA512); 375 pub const RC2_CBC: Nid = Nid(ffi::NID_rc2_cbc); 376 pub const RC2_ECB: Nid = Nid(ffi::NID_rc2_ecb); 377 pub const RC2_CFB64: Nid = Nid(ffi::NID_rc2_cfb64); 378 pub const RC2_OFB64: Nid = Nid(ffi::NID_rc2_ofb64); 379 pub const RC2_40_CBC: Nid = Nid(ffi::NID_rc2_40_cbc); 380 pub const RC2_64_CBC: Nid = Nid(ffi::NID_rc2_64_cbc); 381 pub const RC4: Nid = Nid(ffi::NID_rc4); 382 pub const RC4_40: Nid = Nid(ffi::NID_rc4_40); 383 pub const DES_EDE3_CBC: Nid = Nid(ffi::NID_des_ede3_cbc); 384 pub const RC5_CBC: Nid = Nid(ffi::NID_rc5_cbc); 385 pub const RC5_ECB: Nid = Nid(ffi::NID_rc5_ecb); 386 pub const RC5_CFB64: Nid = Nid(ffi::NID_rc5_cfb64); 387 pub const RC5_OFB64: Nid = Nid(ffi::NID_rc5_ofb64); 388 pub const MS_EXT_REQ: Nid = Nid(ffi::NID_ms_ext_req); 389 pub const MS_CODE_IND: Nid = Nid(ffi::NID_ms_code_ind); 390 pub const MS_CODE_COM: Nid = Nid(ffi::NID_ms_code_com); 391 pub const MS_CTL_SIGN: Nid = Nid(ffi::NID_ms_ctl_sign); 392 pub const MS_SGC: Nid = Nid(ffi::NID_ms_sgc); 393 pub const MS_EFS: Nid = Nid(ffi::NID_ms_efs); 394 pub const MS_SMARTCARD_LOGIN: Nid = Nid(ffi::NID_ms_smartcard_login); 395 pub const MS_UPN: Nid = Nid(ffi::NID_ms_upn); 396 pub const IDEA_CBC: Nid = Nid(ffi::NID_idea_cbc); 397 pub const IDEA_ECB: Nid = Nid(ffi::NID_idea_ecb); 398 pub const IDEA_CFB64: Nid = Nid(ffi::NID_idea_cfb64); 399 pub const IDEA_OFB64: Nid = Nid(ffi::NID_idea_ofb64); 400 pub const BF_CBC: Nid = Nid(ffi::NID_bf_cbc); 401 pub const BF_ECB: Nid = Nid(ffi::NID_bf_ecb); 402 pub const BF_CFB64: Nid = Nid(ffi::NID_bf_cfb64); 403 pub const BF_OFB64: Nid = Nid(ffi::NID_bf_ofb64); 404 pub const ID_PKIX: Nid = Nid(ffi::NID_id_pkix); 405 pub const ID_PKIX_MOD: Nid = Nid(ffi::NID_id_pkix_mod); 406 pub const ID_PE: Nid = Nid(ffi::NID_id_pe); 407 pub const ID_QT: Nid = Nid(ffi::NID_id_qt); 408 pub const ID_KP: Nid = Nid(ffi::NID_id_kp); 409 pub const ID_IT: Nid = Nid(ffi::NID_id_it); 410 pub const ID_PKIP: Nid = Nid(ffi::NID_id_pkip); 411 pub const ID_ALG: Nid = Nid(ffi::NID_id_alg); 412 pub const ID_CMC: Nid = Nid(ffi::NID_id_cmc); 413 pub const ID_ON: Nid = Nid(ffi::NID_id_on); 414 pub const ID_PDA: Nid = Nid(ffi::NID_id_pda); 415 pub const ID_ACA: Nid = Nid(ffi::NID_id_aca); 416 pub const ID_QCS: Nid = Nid(ffi::NID_id_qcs); 417 pub const ID_CCT: Nid = Nid(ffi::NID_id_cct); 418 pub const ID_PPL: Nid = Nid(ffi::NID_id_ppl); 419 pub const ID_AD: Nid = Nid(ffi::NID_id_ad); 420 pub const ID_PKIX1_EXPLICIT_88: Nid = Nid(ffi::NID_id_pkix1_explicit_88); 421 pub const ID_PKIX1_IMPLICIT_88: Nid = Nid(ffi::NID_id_pkix1_implicit_88); 422 pub const ID_PKIX1_EXPLICIT_93: Nid = Nid(ffi::NID_id_pkix1_explicit_93); 423 pub const ID_PKIX1_IMPLICIT_93: Nid = Nid(ffi::NID_id_pkix1_implicit_93); 424 pub const ID_MOD_CRMF: Nid = Nid(ffi::NID_id_mod_crmf); 425 pub const ID_MOD_CMC: Nid = Nid(ffi::NID_id_mod_cmc); 426 pub const ID_MOD_KEA_PROFILE_88: Nid = Nid(ffi::NID_id_mod_kea_profile_88); 427 pub const ID_MOD_KEA_PROFILE_93: Nid = Nid(ffi::NID_id_mod_kea_profile_93); 428 pub const ID_MOD_CMP: Nid = Nid(ffi::NID_id_mod_cmp); 429 pub const ID_MOD_QUALIFIED_CERT_88: Nid = Nid(ffi::NID_id_mod_qualified_cert_88); 430 pub const ID_MOD_QUALIFIED_CERT_93: Nid = Nid(ffi::NID_id_mod_qualified_cert_93); 431 pub const ID_MOD_ATTRIBUTE_CERT: Nid = Nid(ffi::NID_id_mod_attribute_cert); 432 pub const ID_MOD_TIMESTAMP_PROTOCOL: Nid = Nid(ffi::NID_id_mod_timestamp_protocol); 433 pub const ID_MOD_OCSP: Nid = Nid(ffi::NID_id_mod_ocsp); 434 pub const ID_MOD_DVCS: Nid = Nid(ffi::NID_id_mod_dvcs); 435 pub const ID_MOD_CMP2000: Nid = Nid(ffi::NID_id_mod_cmp2000); 436 pub const INFO_ACCESS: Nid = Nid(ffi::NID_info_access); 437 pub const BIOMETRICINFO: Nid = Nid(ffi::NID_biometricInfo); 438 pub const QCSTATEMENTS: Nid = Nid(ffi::NID_qcStatements); 439 pub const AC_AUDITENTITY: Nid = Nid(ffi::NID_ac_auditEntity); 440 pub const AC_TARGETING: Nid = Nid(ffi::NID_ac_targeting); 441 pub const AACONTROLS: Nid = Nid(ffi::NID_aaControls); 442 pub const SBGP_IPADDRBLOCK: Nid = Nid(ffi::NID_sbgp_ipAddrBlock); 443 pub const SBGP_AUTONOMOUSSYSNUM: Nid = Nid(ffi::NID_sbgp_autonomousSysNum); 444 pub const SBGP_ROUTERIDENTIFIER: Nid = Nid(ffi::NID_sbgp_routerIdentifier); 445 pub const AC_PROXYING: Nid = Nid(ffi::NID_ac_proxying); 446 pub const SINFO_ACCESS: Nid = Nid(ffi::NID_sinfo_access); 447 pub const PROXYCERTINFO: Nid = Nid(ffi::NID_proxyCertInfo); 448 pub const ID_QT_CPS: Nid = Nid(ffi::NID_id_qt_cps); 449 pub const ID_QT_UNOTICE: Nid = Nid(ffi::NID_id_qt_unotice); 450 pub const TEXTNOTICE: Nid = Nid(ffi::NID_textNotice); 451 pub const SERVER_AUTH: Nid = Nid(ffi::NID_server_auth); 452 pub const CLIENT_AUTH: Nid = Nid(ffi::NID_client_auth); 453 pub const CODE_SIGN: Nid = Nid(ffi::NID_code_sign); 454 pub const EMAIL_PROTECT: Nid = Nid(ffi::NID_email_protect); 455 pub const IPSECENDSYSTEM: Nid = Nid(ffi::NID_ipsecEndSystem); 456 pub const IPSECTUNNEL: Nid = Nid(ffi::NID_ipsecTunnel); 457 pub const IPSECUSER: Nid = Nid(ffi::NID_ipsecUser); 458 pub const TIME_STAMP: Nid = Nid(ffi::NID_time_stamp); 459 pub const OCSP_SIGN: Nid = Nid(ffi::NID_OCSP_sign); 460 pub const DVCS: Nid = Nid(ffi::NID_dvcs); 461 pub const ID_IT_CAPROTENCCERT: Nid = Nid(ffi::NID_id_it_caProtEncCert); 462 pub const ID_IT_SIGNKEYPAIRTYPES: Nid = Nid(ffi::NID_id_it_signKeyPairTypes); 463 pub const ID_IT_ENCKEYPAIRTYPES: Nid = Nid(ffi::NID_id_it_encKeyPairTypes); 464 pub const ID_IT_PREFERREDSYMMALG: Nid = Nid(ffi::NID_id_it_preferredSymmAlg); 465 pub const ID_IT_CAKEYUPDATEINFO: Nid = Nid(ffi::NID_id_it_caKeyUpdateInfo); 466 pub const ID_IT_CURRENTCRL: Nid = Nid(ffi::NID_id_it_currentCRL); 467 pub const ID_IT_UNSUPPORTEDOIDS: Nid = Nid(ffi::NID_id_it_unsupportedOIDs); 468 pub const ID_IT_SUBSCRIPTIONREQUEST: Nid = Nid(ffi::NID_id_it_subscriptionRequest); 469 pub const ID_IT_SUBSCRIPTIONRESPONSE: Nid = Nid(ffi::NID_id_it_subscriptionResponse); 470 pub const ID_IT_KEYPAIRPARAMREQ: Nid = Nid(ffi::NID_id_it_keyPairParamReq); 471 pub const ID_IT_KEYPAIRPARAMREP: Nid = Nid(ffi::NID_id_it_keyPairParamRep); 472 pub const ID_IT_REVPASSPHRASE: Nid = Nid(ffi::NID_id_it_revPassphrase); 473 pub const ID_IT_IMPLICITCONFIRM: Nid = Nid(ffi::NID_id_it_implicitConfirm); 474 pub const ID_IT_CONFIRMWAITTIME: Nid = Nid(ffi::NID_id_it_confirmWaitTime); 475 pub const ID_IT_ORIGPKIMESSAGE: Nid = Nid(ffi::NID_id_it_origPKIMessage); 476 pub const ID_IT_SUPPLANGTAGS: Nid = Nid(ffi::NID_id_it_suppLangTags); 477 pub const ID_REGCTRL: Nid = Nid(ffi::NID_id_regCtrl); 478 pub const ID_REGINFO: Nid = Nid(ffi::NID_id_regInfo); 479 pub const ID_REGCTRL_REGTOKEN: Nid = Nid(ffi::NID_id_regCtrl_regToken); 480 pub const ID_REGCTRL_AUTHENTICATOR: Nid = Nid(ffi::NID_id_regCtrl_authenticator); 481 pub const ID_REGCTRL_PKIPUBLICATIONINFO: Nid = Nid(ffi::NID_id_regCtrl_pkiPublicationInfo); 482 pub const ID_REGCTRL_PKIARCHIVEOPTIONS: Nid = Nid(ffi::NID_id_regCtrl_pkiArchiveOptions); 483 pub const ID_REGCTRL_OLDCERTID: Nid = Nid(ffi::NID_id_regCtrl_oldCertID); 484 pub const ID_REGCTRL_PROTOCOLENCRKEY: Nid = Nid(ffi::NID_id_regCtrl_protocolEncrKey); 485 pub const ID_REGINFO_UTF8PAIRS: Nid = Nid(ffi::NID_id_regInfo_utf8Pairs); 486 pub const ID_REGINFO_CERTREQ: Nid = Nid(ffi::NID_id_regInfo_certReq); 487 pub const ID_ALG_DES40: Nid = Nid(ffi::NID_id_alg_des40); 488 pub const ID_ALG_NOSIGNATURE: Nid = Nid(ffi::NID_id_alg_noSignature); 489 pub const ID_ALG_DH_SIG_HMAC_SHA1: Nid = Nid(ffi::NID_id_alg_dh_sig_hmac_sha1); 490 pub const ID_ALG_DH_POP: Nid = Nid(ffi::NID_id_alg_dh_pop); 491 pub const ID_CMC_STATUSINFO: Nid = Nid(ffi::NID_id_cmc_statusInfo); 492 pub const ID_CMC_IDENTIFICATION: Nid = Nid(ffi::NID_id_cmc_identification); 493 pub const ID_CMC_IDENTITYPROOF: Nid = Nid(ffi::NID_id_cmc_identityProof); 494 pub const ID_CMC_DATARETURN: Nid = Nid(ffi::NID_id_cmc_dataReturn); 495 pub const ID_CMC_TRANSACTIONID: Nid = Nid(ffi::NID_id_cmc_transactionId); 496 pub const ID_CMC_SENDERNONCE: Nid = Nid(ffi::NID_id_cmc_senderNonce); 497 pub const ID_CMC_RECIPIENTNONCE: Nid = Nid(ffi::NID_id_cmc_recipientNonce); 498 pub const ID_CMC_ADDEXTENSIONS: Nid = Nid(ffi::NID_id_cmc_addExtensions); 499 pub const ID_CMC_ENCRYPTEDPOP: Nid = Nid(ffi::NID_id_cmc_encryptedPOP); 500 pub const ID_CMC_DECRYPTEDPOP: Nid = Nid(ffi::NID_id_cmc_decryptedPOP); 501 pub const ID_CMC_LRAPOPWITNESS: Nid = Nid(ffi::NID_id_cmc_lraPOPWitness); 502 pub const ID_CMC_GETCERT: Nid = Nid(ffi::NID_id_cmc_getCert); 503 pub const ID_CMC_GETCRL: Nid = Nid(ffi::NID_id_cmc_getCRL); 504 pub const ID_CMC_REVOKEREQUEST: Nid = Nid(ffi::NID_id_cmc_revokeRequest); 505 pub const ID_CMC_REGINFO: Nid = Nid(ffi::NID_id_cmc_regInfo); 506 pub const ID_CMC_RESPONSEINFO: Nid = Nid(ffi::NID_id_cmc_responseInfo); 507 pub const ID_CMC_QUERYPENDING: Nid = Nid(ffi::NID_id_cmc_queryPending); 508 pub const ID_CMC_POPLINKRANDOM: Nid = Nid(ffi::NID_id_cmc_popLinkRandom); 509 pub const ID_CMC_POPLINKWITNESS: Nid = Nid(ffi::NID_id_cmc_popLinkWitness); 510 pub const ID_CMC_CONFIRMCERTACCEPTANCE: Nid = Nid(ffi::NID_id_cmc_confirmCertAcceptance); 511 pub const ID_ON_PERSONALDATA: Nid = Nid(ffi::NID_id_on_personalData); 512 pub const ID_ON_PERMANENTIDENTIFIER: Nid = Nid(ffi::NID_id_on_permanentIdentifier); 513 pub const ID_PDA_DATEOFBIRTH: Nid = Nid(ffi::NID_id_pda_dateOfBirth); 514 pub const ID_PDA_PLACEOFBIRTH: Nid = Nid(ffi::NID_id_pda_placeOfBirth); 515 pub const ID_PDA_GENDER: Nid = Nid(ffi::NID_id_pda_gender); 516 pub const ID_PDA_COUNTRYOFCITIZENSHIP: Nid = Nid(ffi::NID_id_pda_countryOfCitizenship); 517 pub const ID_PDA_COUNTRYOFRESIDENCE: Nid = Nid(ffi::NID_id_pda_countryOfResidence); 518 pub const ID_ACA_AUTHENTICATIONINFO: Nid = Nid(ffi::NID_id_aca_authenticationInfo); 519 pub const ID_ACA_ACCESSIDENTITY: Nid = Nid(ffi::NID_id_aca_accessIdentity); 520 pub const ID_ACA_CHARGINGIDENTITY: Nid = Nid(ffi::NID_id_aca_chargingIdentity); 521 pub const ID_ACA_GROUP: Nid = Nid(ffi::NID_id_aca_group); 522 pub const ID_ACA_ROLE: Nid = Nid(ffi::NID_id_aca_role); 523 pub const ID_ACA_ENCATTRS: Nid = Nid(ffi::NID_id_aca_encAttrs); 524 pub const ID_QCS_PKIXQCSYNTAX_V1: Nid = Nid(ffi::NID_id_qcs_pkixQCSyntax_v1); 525 pub const ID_CCT_CRS: Nid = Nid(ffi::NID_id_cct_crs); 526 pub const ID_CCT_PKIDATA: Nid = Nid(ffi::NID_id_cct_PKIData); 527 pub const ID_CCT_PKIRESPONSE: Nid = Nid(ffi::NID_id_cct_PKIResponse); 528 pub const ID_PPL_ANYLANGUAGE: Nid = Nid(ffi::NID_id_ppl_anyLanguage); 529 pub const ID_PPL_INHERITALL: Nid = Nid(ffi::NID_id_ppl_inheritAll); 530 pub const INDEPENDENT: Nid = Nid(ffi::NID_Independent); 531 pub const AD_OCSP: Nid = Nid(ffi::NID_ad_OCSP); 532 pub const AD_CA_ISSUERS: Nid = Nid(ffi::NID_ad_ca_issuers); 533 pub const AD_TIMESTAMPING: Nid = Nid(ffi::NID_ad_timeStamping); 534 pub const AD_DVCS: Nid = Nid(ffi::NID_ad_dvcs); 535 pub const CAREPOSITORY: Nid = Nid(ffi::NID_caRepository); 536 pub const ID_PKIX_OCSP_BASIC: Nid = Nid(ffi::NID_id_pkix_OCSP_basic); 537 pub const ID_PKIX_OCSP_NONCE: Nid = Nid(ffi::NID_id_pkix_OCSP_Nonce); 538 pub const ID_PKIX_OCSP_CRLID: Nid = Nid(ffi::NID_id_pkix_OCSP_CrlID); 539 pub const ID_PKIX_OCSP_ACCEPTABLERESPONSES: Nid = 540 Nid(ffi::NID_id_pkix_OCSP_acceptableResponses); 541 pub const ID_PKIX_OCSP_NOCHECK: Nid = Nid(ffi::NID_id_pkix_OCSP_noCheck); 542 pub const ID_PKIX_OCSP_ARCHIVECUTOFF: Nid = Nid(ffi::NID_id_pkix_OCSP_archiveCutoff); 543 pub const ID_PKIX_OCSP_SERVICELOCATOR: Nid = Nid(ffi::NID_id_pkix_OCSP_serviceLocator); 544 pub const ID_PKIX_OCSP_EXTENDEDSTATUS: Nid = Nid(ffi::NID_id_pkix_OCSP_extendedStatus); 545 pub const ID_PKIX_OCSP_VALID: Nid = Nid(ffi::NID_id_pkix_OCSP_valid); 546 pub const ID_PKIX_OCSP_PATH: Nid = Nid(ffi::NID_id_pkix_OCSP_path); 547 pub const ID_PKIX_OCSP_TRUSTROOT: Nid = Nid(ffi::NID_id_pkix_OCSP_trustRoot); 548 pub const ALGORITHM: Nid = Nid(ffi::NID_algorithm); 549 pub const MD5WITHRSA: Nid = Nid(ffi::NID_md5WithRSA); 550 pub const DES_ECB: Nid = Nid(ffi::NID_des_ecb); 551 pub const DES_CBC: Nid = Nid(ffi::NID_des_cbc); 552 pub const DES_OFB64: Nid = Nid(ffi::NID_des_ofb64); 553 pub const DES_CFB64: Nid = Nid(ffi::NID_des_cfb64); 554 pub const RSASIGNATURE: Nid = Nid(ffi::NID_rsaSignature); 555 pub const DSA_2: Nid = Nid(ffi::NID_dsa_2); 556 pub const DSAWITHSHA: Nid = Nid(ffi::NID_dsaWithSHA); 557 pub const SHAWITHRSAENCRYPTION: Nid = Nid(ffi::NID_shaWithRSAEncryption); 558 pub const DES_EDE_ECB: Nid = Nid(ffi::NID_des_ede_ecb); 559 pub const DES_EDE3_ECB: Nid = Nid(ffi::NID_des_ede3_ecb); 560 pub const DES_EDE_CBC: Nid = Nid(ffi::NID_des_ede_cbc); 561 pub const DES_EDE_CFB64: Nid = Nid(ffi::NID_des_ede_cfb64); 562 pub const DES_EDE3_CFB64: Nid = Nid(ffi::NID_des_ede3_cfb64); 563 pub const DES_EDE_OFB64: Nid = Nid(ffi::NID_des_ede_ofb64); 564 pub const DES_EDE3_OFB64: Nid = Nid(ffi::NID_des_ede3_ofb64); 565 pub const DESX_CBC: Nid = Nid(ffi::NID_desx_cbc); 566 pub const SHA: Nid = Nid(ffi::NID_sha); 567 pub const SHA1: Nid = Nid(ffi::NID_sha1); 568 pub const DSAWITHSHA1_2: Nid = Nid(ffi::NID_dsaWithSHA1_2); 569 pub const SHA1WITHRSA: Nid = Nid(ffi::NID_sha1WithRSA); 570 pub const RIPEMD160: Nid = Nid(ffi::NID_ripemd160); 571 pub const RIPEMD160WITHRSA: Nid = Nid(ffi::NID_ripemd160WithRSA); 572 pub const SXNET: Nid = Nid(ffi::NID_sxnet); 573 pub const X500: Nid = Nid(ffi::NID_X500); 574 pub const X509: Nid = Nid(ffi::NID_X509); 575 pub const COMMONNAME: Nid = Nid(ffi::NID_commonName); 576 pub const SURNAME: Nid = Nid(ffi::NID_surname); 577 pub const SERIALNUMBER: Nid = Nid(ffi::NID_serialNumber); 578 pub const COUNTRYNAME: Nid = Nid(ffi::NID_countryName); 579 pub const LOCALITYNAME: Nid = Nid(ffi::NID_localityName); 580 pub const STATEORPROVINCENAME: Nid = Nid(ffi::NID_stateOrProvinceName); 581 pub const STREETADDRESS: Nid = Nid(ffi::NID_streetAddress); 582 pub const ORGANIZATIONNAME: Nid = Nid(ffi::NID_organizationName); 583 pub const ORGANIZATIONALUNITNAME: Nid = Nid(ffi::NID_organizationalUnitName); 584 pub const TITLE: Nid = Nid(ffi::NID_title); 585 pub const DESCRIPTION: Nid = Nid(ffi::NID_description); 586 pub const SEARCHGUIDE: Nid = Nid(ffi::NID_searchGuide); 587 pub const BUSINESSCATEGORY: Nid = Nid(ffi::NID_businessCategory); 588 pub const POSTALADDRESS: Nid = Nid(ffi::NID_postalAddress); 589 pub const POSTALCODE: Nid = Nid(ffi::NID_postalCode); 590 pub const POSTOFFICEBOX: Nid = Nid(ffi::NID_postOfficeBox); 591 pub const PHYSICALDELIVERYOFFICENAME: Nid = Nid(ffi::NID_physicalDeliveryOfficeName); 592 pub const TELEPHONENUMBER: Nid = Nid(ffi::NID_telephoneNumber); 593 pub const TELEXNUMBER: Nid = Nid(ffi::NID_telexNumber); 594 pub const TELETEXTERMINALIDENTIFIER: Nid = Nid(ffi::NID_teletexTerminalIdentifier); 595 pub const FACSIMILETELEPHONENUMBER: Nid = Nid(ffi::NID_facsimileTelephoneNumber); 596 pub const X121ADDRESS: Nid = Nid(ffi::NID_x121Address); 597 pub const INTERNATIONALISDNNUMBER: Nid = Nid(ffi::NID_internationaliSDNNumber); 598 pub const REGISTEREDADDRESS: Nid = Nid(ffi::NID_registeredAddress); 599 pub const DESTINATIONINDICATOR: Nid = Nid(ffi::NID_destinationIndicator); 600 pub const PREFERREDDELIVERYMETHOD: Nid = Nid(ffi::NID_preferredDeliveryMethod); 601 pub const PRESENTATIONADDRESS: Nid = Nid(ffi::NID_presentationAddress); 602 pub const SUPPORTEDAPPLICATIONCONTEXT: Nid = Nid(ffi::NID_supportedApplicationContext); 603 pub const MEMBER: Nid = Nid(ffi::NID_member); 604 pub const OWNER: Nid = Nid(ffi::NID_owner); 605 pub const ROLEOCCUPANT: Nid = Nid(ffi::NID_roleOccupant); 606 pub const SEEALSO: Nid = Nid(ffi::NID_seeAlso); 607 pub const USERPASSWORD: Nid = Nid(ffi::NID_userPassword); 608 pub const USERCERTIFICATE: Nid = Nid(ffi::NID_userCertificate); 609 pub const CACERTIFICATE: Nid = Nid(ffi::NID_cACertificate); 610 pub const AUTHORITYREVOCATIONLIST: Nid = Nid(ffi::NID_authorityRevocationList); 611 pub const CERTIFICATEREVOCATIONLIST: Nid = Nid(ffi::NID_certificateRevocationList); 612 pub const CROSSCERTIFICATEPAIR: Nid = Nid(ffi::NID_crossCertificatePair); 613 pub const NAME: Nid = Nid(ffi::NID_name); 614 pub const GIVENNAME: Nid = Nid(ffi::NID_givenName); 615 pub const INITIALS: Nid = Nid(ffi::NID_initials); 616 pub const GENERATIONQUALIFIER: Nid = Nid(ffi::NID_generationQualifier); 617 pub const X500UNIQUEIDENTIFIER: Nid = Nid(ffi::NID_x500UniqueIdentifier); 618 pub const DNQUALIFIER: Nid = Nid(ffi::NID_dnQualifier); 619 pub const ENHANCEDSEARCHGUIDE: Nid = Nid(ffi::NID_enhancedSearchGuide); 620 pub const PROTOCOLINFORMATION: Nid = Nid(ffi::NID_protocolInformation); 621 pub const DISTINGUISHEDNAME: Nid = Nid(ffi::NID_distinguishedName); 622 pub const UNIQUEMEMBER: Nid = Nid(ffi::NID_uniqueMember); 623 pub const HOUSEIDENTIFIER: Nid = Nid(ffi::NID_houseIdentifier); 624 pub const SUPPORTEDALGORITHMS: Nid = Nid(ffi::NID_supportedAlgorithms); 625 pub const DELTAREVOCATIONLIST: Nid = Nid(ffi::NID_deltaRevocationList); 626 pub const DMDNAME: Nid = Nid(ffi::NID_dmdName); 627 pub const PSEUDONYM: Nid = Nid(ffi::NID_pseudonym); 628 pub const ROLE: Nid = Nid(ffi::NID_role); 629 pub const X500ALGORITHMS: Nid = Nid(ffi::NID_X500algorithms); 630 pub const RSA: Nid = Nid(ffi::NID_rsa); 631 pub const MDC2WITHRSA: Nid = Nid(ffi::NID_mdc2WithRSA); 632 pub const MDC2: Nid = Nid(ffi::NID_mdc2); 633 pub const ID_CE: Nid = Nid(ffi::NID_id_ce); 634 pub const SUBJECT_DIRECTORY_ATTRIBUTES: Nid = Nid(ffi::NID_subject_directory_attributes); 635 pub const SUBJECT_KEY_IDENTIFIER: Nid = Nid(ffi::NID_subject_key_identifier); 636 pub const KEY_USAGE: Nid = Nid(ffi::NID_key_usage); 637 pub const PRIVATE_KEY_USAGE_PERIOD: Nid = Nid(ffi::NID_private_key_usage_period); 638 pub const SUBJECT_ALT_NAME: Nid = Nid(ffi::NID_subject_alt_name); 639 pub const ISSUER_ALT_NAME: Nid = Nid(ffi::NID_issuer_alt_name); 640 pub const BASIC_CONSTRAINTS: Nid = Nid(ffi::NID_basic_constraints); 641 pub const CRL_NUMBER: Nid = Nid(ffi::NID_crl_number); 642 pub const CRL_REASON: Nid = Nid(ffi::NID_crl_reason); 643 pub const INVALIDITY_DATE: Nid = Nid(ffi::NID_invalidity_date); 644 pub const DELTA_CRL: Nid = Nid(ffi::NID_delta_crl); 645 pub const ISSUING_DISTRIBUTION_POINT: Nid = Nid(ffi::NID_issuing_distribution_point); 646 pub const CERTIFICATE_ISSUER: Nid = Nid(ffi::NID_certificate_issuer); 647 pub const NAME_CONSTRAINTS: Nid = Nid(ffi::NID_name_constraints); 648 pub const CRL_DISTRIBUTION_POINTS: Nid = Nid(ffi::NID_crl_distribution_points); 649 pub const CERTIFICATE_POLICIES: Nid = Nid(ffi::NID_certificate_policies); 650 pub const ANY_POLICY: Nid = Nid(ffi::NID_any_policy); 651 pub const POLICY_MAPPINGS: Nid = Nid(ffi::NID_policy_mappings); 652 pub const AUTHORITY_KEY_IDENTIFIER: Nid = Nid(ffi::NID_authority_key_identifier); 653 pub const POLICY_CONSTRAINTS: Nid = Nid(ffi::NID_policy_constraints); 654 pub const EXT_KEY_USAGE: Nid = Nid(ffi::NID_ext_key_usage); 655 pub const FRESHEST_CRL: Nid = Nid(ffi::NID_freshest_crl); 656 pub const INHIBIT_ANY_POLICY: Nid = Nid(ffi::NID_inhibit_any_policy); 657 pub const TARGET_INFORMATION: Nid = Nid(ffi::NID_target_information); 658 pub const NO_REV_AVAIL: Nid = Nid(ffi::NID_no_rev_avail); 659 pub const ANYEXTENDEDKEYUSAGE: Nid = Nid(ffi::NID_anyExtendedKeyUsage); 660 pub const NETSCAPE: Nid = Nid(ffi::NID_netscape); 661 pub const NETSCAPE_CERT_EXTENSION: Nid = Nid(ffi::NID_netscape_cert_extension); 662 pub const NETSCAPE_DATA_TYPE: Nid = Nid(ffi::NID_netscape_data_type); 663 pub const NETSCAPE_CERT_TYPE: Nid = Nid(ffi::NID_netscape_cert_type); 664 pub const NETSCAPE_BASE_URL: Nid = Nid(ffi::NID_netscape_base_url); 665 pub const NETSCAPE_REVOCATION_URL: Nid = Nid(ffi::NID_netscape_revocation_url); 666 pub const NETSCAPE_CA_REVOCATION_URL: Nid = Nid(ffi::NID_netscape_ca_revocation_url); 667 pub const NETSCAPE_RENEWAL_URL: Nid = Nid(ffi::NID_netscape_renewal_url); 668 pub const NETSCAPE_CA_POLICY_URL: Nid = Nid(ffi::NID_netscape_ca_policy_url); 669 pub const NETSCAPE_SSL_SERVER_NAME: Nid = Nid(ffi::NID_netscape_ssl_server_name); 670 pub const NETSCAPE_COMMENT: Nid = Nid(ffi::NID_netscape_comment); 671 pub const NETSCAPE_CERT_SEQUENCE: Nid = Nid(ffi::NID_netscape_cert_sequence); 672 pub const NS_SGC: Nid = Nid(ffi::NID_ns_sgc); 673 pub const ORG: Nid = Nid(ffi::NID_org); 674 pub const DOD: Nid = Nid(ffi::NID_dod); 675 pub const IANA: Nid = Nid(ffi::NID_iana); 676 pub const DIRECTORY: Nid = Nid(ffi::NID_Directory); 677 pub const MANAGEMENT: Nid = Nid(ffi::NID_Management); 678 pub const EXPERIMENTAL: Nid = Nid(ffi::NID_Experimental); 679 pub const PRIVATE: Nid = Nid(ffi::NID_Private); 680 pub const SECURITY: Nid = Nid(ffi::NID_Security); 681 pub const SNMPV2: Nid = Nid(ffi::NID_SNMPv2); 682 pub const MAIL: Nid = Nid(ffi::NID_Mail); 683 pub const ENTERPRISES: Nid = Nid(ffi::NID_Enterprises); 684 pub const DCOBJECT: Nid = Nid(ffi::NID_dcObject); 685 pub const MIME_MHS: Nid = Nid(ffi::NID_mime_mhs); 686 pub const MIME_MHS_HEADINGS: Nid = Nid(ffi::NID_mime_mhs_headings); 687 pub const MIME_MHS_BODIES: Nid = Nid(ffi::NID_mime_mhs_bodies); 688 pub const ID_HEX_PARTIAL_MESSAGE: Nid = Nid(ffi::NID_id_hex_partial_message); 689 pub const ID_HEX_MULTIPART_MESSAGE: Nid = Nid(ffi::NID_id_hex_multipart_message); 690 pub const ZLIB_COMPRESSION: Nid = Nid(ffi::NID_zlib_compression); 691 pub const AES_128_ECB: Nid = Nid(ffi::NID_aes_128_ecb); 692 pub const AES_128_CBC: Nid = Nid(ffi::NID_aes_128_cbc); 693 pub const AES_128_OFB128: Nid = Nid(ffi::NID_aes_128_ofb128); 694 pub const AES_128_CFB128: Nid = Nid(ffi::NID_aes_128_cfb128); 695 pub const ID_AES128_WRAP: Nid = Nid(ffi::NID_id_aes128_wrap); 696 pub const AES_128_GCM: Nid = Nid(ffi::NID_aes_128_gcm); 697 pub const AES_128_CCM: Nid = Nid(ffi::NID_aes_128_ccm); 698 pub const ID_AES128_WRAP_PAD: Nid = Nid(ffi::NID_id_aes128_wrap_pad); 699 pub const AES_192_ECB: Nid = Nid(ffi::NID_aes_192_ecb); 700 pub const AES_192_CBC: Nid = Nid(ffi::NID_aes_192_cbc); 701 pub const AES_192_OFB128: Nid = Nid(ffi::NID_aes_192_ofb128); 702 pub const AES_192_CFB128: Nid = Nid(ffi::NID_aes_192_cfb128); 703 pub const ID_AES192_WRAP: Nid = Nid(ffi::NID_id_aes192_wrap); 704 pub const AES_192_GCM: Nid = Nid(ffi::NID_aes_192_gcm); 705 pub const AES_192_CCM: Nid = Nid(ffi::NID_aes_192_ccm); 706 pub const ID_AES192_WRAP_PAD: Nid = Nid(ffi::NID_id_aes192_wrap_pad); 707 pub const AES_256_ECB: Nid = Nid(ffi::NID_aes_256_ecb); 708 pub const AES_256_CBC: Nid = Nid(ffi::NID_aes_256_cbc); 709 pub const AES_256_OFB128: Nid = Nid(ffi::NID_aes_256_ofb128); 710 pub const AES_256_CFB128: Nid = Nid(ffi::NID_aes_256_cfb128); 711 pub const ID_AES256_WRAP: Nid = Nid(ffi::NID_id_aes256_wrap); 712 pub const AES_256_GCM: Nid = Nid(ffi::NID_aes_256_gcm); 713 pub const AES_256_CCM: Nid = Nid(ffi::NID_aes_256_ccm); 714 pub const ID_AES256_WRAP_PAD: Nid = Nid(ffi::NID_id_aes256_wrap_pad); 715 pub const AES_128_CFB1: Nid = Nid(ffi::NID_aes_128_cfb1); 716 pub const AES_192_CFB1: Nid = Nid(ffi::NID_aes_192_cfb1); 717 pub const AES_256_CFB1: Nid = Nid(ffi::NID_aes_256_cfb1); 718 pub const AES_128_CFB8: Nid = Nid(ffi::NID_aes_128_cfb8); 719 pub const AES_192_CFB8: Nid = Nid(ffi::NID_aes_192_cfb8); 720 pub const AES_256_CFB8: Nid = Nid(ffi::NID_aes_256_cfb8); 721 pub const AES_128_CTR: Nid = Nid(ffi::NID_aes_128_ctr); 722 pub const AES_192_CTR: Nid = Nid(ffi::NID_aes_192_ctr); 723 pub const AES_256_CTR: Nid = Nid(ffi::NID_aes_256_ctr); 724 pub const AES_128_XTS: Nid = Nid(ffi::NID_aes_128_xts); 725 pub const AES_256_XTS: Nid = Nid(ffi::NID_aes_256_xts); 726 pub const DES_CFB1: Nid = Nid(ffi::NID_des_cfb1); 727 pub const DES_CFB8: Nid = Nid(ffi::NID_des_cfb8); 728 pub const DES_EDE3_CFB1: Nid = Nid(ffi::NID_des_ede3_cfb1); 729 pub const DES_EDE3_CFB8: Nid = Nid(ffi::NID_des_ede3_cfb8); 730 pub const SHA256: Nid = Nid(ffi::NID_sha256); 731 pub const SHA384: Nid = Nid(ffi::NID_sha384); 732 pub const SHA512: Nid = Nid(ffi::NID_sha512); 733 pub const SHA224: Nid = Nid(ffi::NID_sha224); 734 pub const DSA_WITH_SHA224: Nid = Nid(ffi::NID_dsa_with_SHA224); 735 pub const DSA_WITH_SHA256: Nid = Nid(ffi::NID_dsa_with_SHA256); 736 pub const HOLD_INSTRUCTION_CODE: Nid = Nid(ffi::NID_hold_instruction_code); 737 pub const HOLD_INSTRUCTION_NONE: Nid = Nid(ffi::NID_hold_instruction_none); 738 pub const HOLD_INSTRUCTION_CALL_ISSUER: Nid = Nid(ffi::NID_hold_instruction_call_issuer); 739 pub const HOLD_INSTRUCTION_REJECT: Nid = Nid(ffi::NID_hold_instruction_reject); 740 pub const DATA: Nid = Nid(ffi::NID_data); 741 pub const PSS: Nid = Nid(ffi::NID_pss); 742 pub const UCL: Nid = Nid(ffi::NID_ucl); 743 pub const PILOT: Nid = Nid(ffi::NID_pilot); 744 pub const PILOTATTRIBUTETYPE: Nid = Nid(ffi::NID_pilotAttributeType); 745 pub const PILOTATTRIBUTESYNTAX: Nid = Nid(ffi::NID_pilotAttributeSyntax); 746 pub const PILOTOBJECTCLASS: Nid = Nid(ffi::NID_pilotObjectClass); 747 pub const PILOTGROUPS: Nid = Nid(ffi::NID_pilotGroups); 748 pub const IA5STRINGSYNTAX: Nid = Nid(ffi::NID_iA5StringSyntax); 749 pub const CASEIGNOREIA5STRINGSYNTAX: Nid = Nid(ffi::NID_caseIgnoreIA5StringSyntax); 750 pub const PILOTOBJECT: Nid = Nid(ffi::NID_pilotObject); 751 pub const PILOTPERSON: Nid = Nid(ffi::NID_pilotPerson); 752 pub const ACCOUNT: Nid = Nid(ffi::NID_account); 753 pub const DOCUMENT: Nid = Nid(ffi::NID_document); 754 pub const ROOM: Nid = Nid(ffi::NID_room); 755 pub const DOCUMENTSERIES: Nid = Nid(ffi::NID_documentSeries); 756 pub const DOMAIN: Nid = Nid(ffi::NID_Domain); 757 pub const RFC822LOCALPART: Nid = Nid(ffi::NID_rFC822localPart); 758 pub const DNSDOMAIN: Nid = Nid(ffi::NID_dNSDomain); 759 pub const DOMAINRELATEDOBJECT: Nid = Nid(ffi::NID_domainRelatedObject); 760 pub const FRIENDLYCOUNTRY: Nid = Nid(ffi::NID_friendlyCountry); 761 pub const SIMPLESECURITYOBJECT: Nid = Nid(ffi::NID_simpleSecurityObject); 762 pub const PILOTORGANIZATION: Nid = Nid(ffi::NID_pilotOrganization); 763 pub const PILOTDSA: Nid = Nid(ffi::NID_pilotDSA); 764 pub const QUALITYLABELLEDDATA: Nid = Nid(ffi::NID_qualityLabelledData); 765 pub const USERID: Nid = Nid(ffi::NID_userId); 766 pub const TEXTENCODEDORADDRESS: Nid = Nid(ffi::NID_textEncodedORAddress); 767 pub const RFC822MAILBOX: Nid = Nid(ffi::NID_rfc822Mailbox); 768 pub const INFO: Nid = Nid(ffi::NID_info); 769 pub const FAVOURITEDRINK: Nid = Nid(ffi::NID_favouriteDrink); 770 pub const ROOMNUMBER: Nid = Nid(ffi::NID_roomNumber); 771 pub const PHOTO: Nid = Nid(ffi::NID_photo); 772 pub const USERCLASS: Nid = Nid(ffi::NID_userClass); 773 pub const HOST: Nid = Nid(ffi::NID_host); 774 pub const MANAGER: Nid = Nid(ffi::NID_manager); 775 pub const DOCUMENTIDENTIFIER: Nid = Nid(ffi::NID_documentIdentifier); 776 pub const DOCUMENTTITLE: Nid = Nid(ffi::NID_documentTitle); 777 pub const DOCUMENTVERSION: Nid = Nid(ffi::NID_documentVersion); 778 pub const DOCUMENTAUTHOR: Nid = Nid(ffi::NID_documentAuthor); 779 pub const DOCUMENTLOCATION: Nid = Nid(ffi::NID_documentLocation); 780 pub const HOMETELEPHONENUMBER: Nid = Nid(ffi::NID_homeTelephoneNumber); 781 pub const SECRETARY: Nid = Nid(ffi::NID_secretary); 782 pub const OTHERMAILBOX: Nid = Nid(ffi::NID_otherMailbox); 783 pub const LASTMODIFIEDTIME: Nid = Nid(ffi::NID_lastModifiedTime); 784 pub const LASTMODIFIEDBY: Nid = Nid(ffi::NID_lastModifiedBy); 785 pub const DOMAINCOMPONENT: Nid = Nid(ffi::NID_domainComponent); 786 pub const ARECORD: Nid = Nid(ffi::NID_aRecord); 787 pub const PILOTATTRIBUTETYPE27: Nid = Nid(ffi::NID_pilotAttributeType27); 788 pub const MXRECORD: Nid = Nid(ffi::NID_mXRecord); 789 pub const NSRECORD: Nid = Nid(ffi::NID_nSRecord); 790 pub const SOARECORD: Nid = Nid(ffi::NID_sOARecord); 791 pub const CNAMERECORD: Nid = Nid(ffi::NID_cNAMERecord); 792 pub const ASSOCIATEDDOMAIN: Nid = Nid(ffi::NID_associatedDomain); 793 pub const ASSOCIATEDNAME: Nid = Nid(ffi::NID_associatedName); 794 pub const HOMEPOSTALADDRESS: Nid = Nid(ffi::NID_homePostalAddress); 795 pub const PERSONALTITLE: Nid = Nid(ffi::NID_personalTitle); 796 pub const MOBILETELEPHONENUMBER: Nid = Nid(ffi::NID_mobileTelephoneNumber); 797 pub const PAGERTELEPHONENUMBER: Nid = Nid(ffi::NID_pagerTelephoneNumber); 798 pub const FRIENDLYCOUNTRYNAME: Nid = Nid(ffi::NID_friendlyCountryName); 799 pub const ORGANIZATIONALSTATUS: Nid = Nid(ffi::NID_organizationalStatus); 800 pub const JANETMAILBOX: Nid = Nid(ffi::NID_janetMailbox); 801 pub const MAILPREFERENCEOPTION: Nid = Nid(ffi::NID_mailPreferenceOption); 802 pub const BUILDINGNAME: Nid = Nid(ffi::NID_buildingName); 803 pub const DSAQUALITY: Nid = Nid(ffi::NID_dSAQuality); 804 pub const SINGLELEVELQUALITY: Nid = Nid(ffi::NID_singleLevelQuality); 805 pub const SUBTREEMINIMUMQUALITY: Nid = Nid(ffi::NID_subtreeMinimumQuality); 806 pub const SUBTREEMAXIMUMQUALITY: Nid = Nid(ffi::NID_subtreeMaximumQuality); 807 pub const PERSONALSIGNATURE: Nid = Nid(ffi::NID_personalSignature); 808 pub const DITREDIRECT: Nid = Nid(ffi::NID_dITRedirect); 809 pub const AUDIO: Nid = Nid(ffi::NID_audio); 810 pub const DOCUMENTPUBLISHER: Nid = Nid(ffi::NID_documentPublisher); 811 pub const ID_SET: Nid = Nid(ffi::NID_id_set); 812 pub const SET_CTYPE: Nid = Nid(ffi::NID_set_ctype); 813 pub const SET_MSGEXT: Nid = Nid(ffi::NID_set_msgExt); 814 pub const SET_ATTR: Nid = Nid(ffi::NID_set_attr); 815 pub const SET_POLICY: Nid = Nid(ffi::NID_set_policy); 816 pub const SET_CERTEXT: Nid = Nid(ffi::NID_set_certExt); 817 pub const SET_BRAND: Nid = Nid(ffi::NID_set_brand); 818 pub const SETCT_PANDATA: Nid = Nid(ffi::NID_setct_PANData); 819 pub const SETCT_PANTOKEN: Nid = Nid(ffi::NID_setct_PANToken); 820 pub const SETCT_PANONLY: Nid = Nid(ffi::NID_setct_PANOnly); 821 pub const SETCT_OIDATA: Nid = Nid(ffi::NID_setct_OIData); 822 pub const SETCT_PI: Nid = Nid(ffi::NID_setct_PI); 823 pub const SETCT_PIDATA: Nid = Nid(ffi::NID_setct_PIData); 824 pub const SETCT_PIDATAUNSIGNED: Nid = Nid(ffi::NID_setct_PIDataUnsigned); 825 pub const SETCT_HODINPUT: Nid = Nid(ffi::NID_setct_HODInput); 826 pub const SETCT_AUTHRESBAGGAGE: Nid = Nid(ffi::NID_setct_AuthResBaggage); 827 pub const SETCT_AUTHREVREQBAGGAGE: Nid = Nid(ffi::NID_setct_AuthRevReqBaggage); 828 pub const SETCT_AUTHREVRESBAGGAGE: Nid = Nid(ffi::NID_setct_AuthRevResBaggage); 829 pub const SETCT_CAPTOKENSEQ: Nid = Nid(ffi::NID_setct_CapTokenSeq); 830 pub const SETCT_PINITRESDATA: Nid = Nid(ffi::NID_setct_PInitResData); 831 pub const SETCT_PI_TBS: Nid = Nid(ffi::NID_setct_PI_TBS); 832 pub const SETCT_PRESDATA: Nid = Nid(ffi::NID_setct_PResData); 833 pub const SETCT_AUTHREQTBS: Nid = Nid(ffi::NID_setct_AuthReqTBS); 834 pub const SETCT_AUTHRESTBS: Nid = Nid(ffi::NID_setct_AuthResTBS); 835 pub const SETCT_AUTHRESTBSX: Nid = Nid(ffi::NID_setct_AuthResTBSX); 836 pub const SETCT_AUTHTOKENTBS: Nid = Nid(ffi::NID_setct_AuthTokenTBS); 837 pub const SETCT_CAPTOKENDATA: Nid = Nid(ffi::NID_setct_CapTokenData); 838 pub const SETCT_CAPTOKENTBS: Nid = Nid(ffi::NID_setct_CapTokenTBS); 839 pub const SETCT_ACQCARDCODEMSG: Nid = Nid(ffi::NID_setct_AcqCardCodeMsg); 840 pub const SETCT_AUTHREVREQTBS: Nid = Nid(ffi::NID_setct_AuthRevReqTBS); 841 pub const SETCT_AUTHREVRESDATA: Nid = Nid(ffi::NID_setct_AuthRevResData); 842 pub const SETCT_AUTHREVRESTBS: Nid = Nid(ffi::NID_setct_AuthRevResTBS); 843 pub const SETCT_CAPREQTBS: Nid = Nid(ffi::NID_setct_CapReqTBS); 844 pub const SETCT_CAPREQTBSX: Nid = Nid(ffi::NID_setct_CapReqTBSX); 845 pub const SETCT_CAPRESDATA: Nid = Nid(ffi::NID_setct_CapResData); 846 pub const SETCT_CAPREVREQTBS: Nid = Nid(ffi::NID_setct_CapRevReqTBS); 847 pub const SETCT_CAPREVREQTBSX: Nid = Nid(ffi::NID_setct_CapRevReqTBSX); 848 pub const SETCT_CAPREVRESDATA: Nid = Nid(ffi::NID_setct_CapRevResData); 849 pub const SETCT_CREDREQTBS: Nid = Nid(ffi::NID_setct_CredReqTBS); 850 pub const SETCT_CREDREQTBSX: Nid = Nid(ffi::NID_setct_CredReqTBSX); 851 pub const SETCT_CREDRESDATA: Nid = Nid(ffi::NID_setct_CredResData); 852 pub const SETCT_CREDREVREQTBS: Nid = Nid(ffi::NID_setct_CredRevReqTBS); 853 pub const SETCT_CREDREVREQTBSX: Nid = Nid(ffi::NID_setct_CredRevReqTBSX); 854 pub const SETCT_CREDREVRESDATA: Nid = Nid(ffi::NID_setct_CredRevResData); 855 pub const SETCT_PCERTREQDATA: Nid = Nid(ffi::NID_setct_PCertReqData); 856 pub const SETCT_PCERTRESTBS: Nid = Nid(ffi::NID_setct_PCertResTBS); 857 pub const SETCT_BATCHADMINREQDATA: Nid = Nid(ffi::NID_setct_BatchAdminReqData); 858 pub const SETCT_BATCHADMINRESDATA: Nid = Nid(ffi::NID_setct_BatchAdminResData); 859 pub const SETCT_CARDCINITRESTBS: Nid = Nid(ffi::NID_setct_CardCInitResTBS); 860 pub const SETCT_MEAQCINITRESTBS: Nid = Nid(ffi::NID_setct_MeAqCInitResTBS); 861 pub const SETCT_REGFORMRESTBS: Nid = Nid(ffi::NID_setct_RegFormResTBS); 862 pub const SETCT_CERTREQDATA: Nid = Nid(ffi::NID_setct_CertReqData); 863 pub const SETCT_CERTREQTBS: Nid = Nid(ffi::NID_setct_CertReqTBS); 864 pub const SETCT_CERTRESDATA: Nid = Nid(ffi::NID_setct_CertResData); 865 pub const SETCT_CERTINQREQTBS: Nid = Nid(ffi::NID_setct_CertInqReqTBS); 866 pub const SETCT_ERRORTBS: Nid = Nid(ffi::NID_setct_ErrorTBS); 867 pub const SETCT_PIDUALSIGNEDTBE: Nid = Nid(ffi::NID_setct_PIDualSignedTBE); 868 pub const SETCT_PIUNSIGNEDTBE: Nid = Nid(ffi::NID_setct_PIUnsignedTBE); 869 pub const SETCT_AUTHREQTBE: Nid = Nid(ffi::NID_setct_AuthReqTBE); 870 pub const SETCT_AUTHRESTBE: Nid = Nid(ffi::NID_setct_AuthResTBE); 871 pub const SETCT_AUTHRESTBEX: Nid = Nid(ffi::NID_setct_AuthResTBEX); 872 pub const SETCT_AUTHTOKENTBE: Nid = Nid(ffi::NID_setct_AuthTokenTBE); 873 pub const SETCT_CAPTOKENTBE: Nid = Nid(ffi::NID_setct_CapTokenTBE); 874 pub const SETCT_CAPTOKENTBEX: Nid = Nid(ffi::NID_setct_CapTokenTBEX); 875 pub const SETCT_ACQCARDCODEMSGTBE: Nid = Nid(ffi::NID_setct_AcqCardCodeMsgTBE); 876 pub const SETCT_AUTHREVREQTBE: Nid = Nid(ffi::NID_setct_AuthRevReqTBE); 877 pub const SETCT_AUTHREVRESTBE: Nid = Nid(ffi::NID_setct_AuthRevResTBE); 878 pub const SETCT_AUTHREVRESTBEB: Nid = Nid(ffi::NID_setct_AuthRevResTBEB); 879 pub const SETCT_CAPREQTBE: Nid = Nid(ffi::NID_setct_CapReqTBE); 880 pub const SETCT_CAPREQTBEX: Nid = Nid(ffi::NID_setct_CapReqTBEX); 881 pub const SETCT_CAPRESTBE: Nid = Nid(ffi::NID_setct_CapResTBE); 882 pub const SETCT_CAPREVREQTBE: Nid = Nid(ffi::NID_setct_CapRevReqTBE); 883 pub const SETCT_CAPREVREQTBEX: Nid = Nid(ffi::NID_setct_CapRevReqTBEX); 884 pub const SETCT_CAPREVRESTBE: Nid = Nid(ffi::NID_setct_CapRevResTBE); 885 pub const SETCT_CREDREQTBE: Nid = Nid(ffi::NID_setct_CredReqTBE); 886 pub const SETCT_CREDREQTBEX: Nid = Nid(ffi::NID_setct_CredReqTBEX); 887 pub const SETCT_CREDRESTBE: Nid = Nid(ffi::NID_setct_CredResTBE); 888 pub const SETCT_CREDREVREQTBE: Nid = Nid(ffi::NID_setct_CredRevReqTBE); 889 pub const SETCT_CREDREVREQTBEX: Nid = Nid(ffi::NID_setct_CredRevReqTBEX); 890 pub const SETCT_CREDREVRESTBE: Nid = Nid(ffi::NID_setct_CredRevResTBE); 891 pub const SETCT_BATCHADMINREQTBE: Nid = Nid(ffi::NID_setct_BatchAdminReqTBE); 892 pub const SETCT_BATCHADMINRESTBE: Nid = Nid(ffi::NID_setct_BatchAdminResTBE); 893 pub const SETCT_REGFORMREQTBE: Nid = Nid(ffi::NID_setct_RegFormReqTBE); 894 pub const SETCT_CERTREQTBE: Nid = Nid(ffi::NID_setct_CertReqTBE); 895 pub const SETCT_CERTREQTBEX: Nid = Nid(ffi::NID_setct_CertReqTBEX); 896 pub const SETCT_CERTRESTBE: Nid = Nid(ffi::NID_setct_CertResTBE); 897 pub const SETCT_CRLNOTIFICATIONTBS: Nid = Nid(ffi::NID_setct_CRLNotificationTBS); 898 pub const SETCT_CRLNOTIFICATIONRESTBS: Nid = Nid(ffi::NID_setct_CRLNotificationResTBS); 899 pub const SETCT_BCIDISTRIBUTIONTBS: Nid = Nid(ffi::NID_setct_BCIDistributionTBS); 900 pub const SETEXT_GENCRYPT: Nid = Nid(ffi::NID_setext_genCrypt); 901 pub const SETEXT_MIAUTH: Nid = Nid(ffi::NID_setext_miAuth); 902 pub const SETEXT_PINSECURE: Nid = Nid(ffi::NID_setext_pinSecure); 903 pub const SETEXT_PINANY: Nid = Nid(ffi::NID_setext_pinAny); 904 pub const SETEXT_TRACK2: Nid = Nid(ffi::NID_setext_track2); 905 pub const SETEXT_CV: Nid = Nid(ffi::NID_setext_cv); 906 pub const SET_POLICY_ROOT: Nid = Nid(ffi::NID_set_policy_root); 907 pub const SETCEXT_HASHEDROOT: Nid = Nid(ffi::NID_setCext_hashedRoot); 908 pub const SETCEXT_CERTTYPE: Nid = Nid(ffi::NID_setCext_certType); 909 pub const SETCEXT_MERCHDATA: Nid = Nid(ffi::NID_setCext_merchData); 910 pub const SETCEXT_CCERTREQUIRED: Nid = Nid(ffi::NID_setCext_cCertRequired); 911 pub const SETCEXT_TUNNELING: Nid = Nid(ffi::NID_setCext_tunneling); 912 pub const SETCEXT_SETEXT: Nid = Nid(ffi::NID_setCext_setExt); 913 pub const SETCEXT_SETQUALF: Nid = Nid(ffi::NID_setCext_setQualf); 914 pub const SETCEXT_PGWYCAPABILITIES: Nid = Nid(ffi::NID_setCext_PGWYcapabilities); 915 pub const SETCEXT_TOKENIDENTIFIER: Nid = Nid(ffi::NID_setCext_TokenIdentifier); 916 pub const SETCEXT_TRACK2DATA: Nid = Nid(ffi::NID_setCext_Track2Data); 917 pub const SETCEXT_TOKENTYPE: Nid = Nid(ffi::NID_setCext_TokenType); 918 pub const SETCEXT_ISSUERCAPABILITIES: Nid = Nid(ffi::NID_setCext_IssuerCapabilities); 919 pub const SETATTR_CERT: Nid = Nid(ffi::NID_setAttr_Cert); 920 pub const SETATTR_PGWYCAP: Nid = Nid(ffi::NID_setAttr_PGWYcap); 921 pub const SETATTR_TOKENTYPE: Nid = Nid(ffi::NID_setAttr_TokenType); 922 pub const SETATTR_ISSCAP: Nid = Nid(ffi::NID_setAttr_IssCap); 923 pub const SET_ROOTKEYTHUMB: Nid = Nid(ffi::NID_set_rootKeyThumb); 924 pub const SET_ADDPOLICY: Nid = Nid(ffi::NID_set_addPolicy); 925 pub const SETATTR_TOKEN_EMV: Nid = Nid(ffi::NID_setAttr_Token_EMV); 926 pub const SETATTR_TOKEN_B0PRIME: Nid = Nid(ffi::NID_setAttr_Token_B0Prime); 927 pub const SETATTR_ISSCAP_CVM: Nid = Nid(ffi::NID_setAttr_IssCap_CVM); 928 pub const SETATTR_ISSCAP_T2: Nid = Nid(ffi::NID_setAttr_IssCap_T2); 929 pub const SETATTR_ISSCAP_SIG: Nid = Nid(ffi::NID_setAttr_IssCap_Sig); 930 pub const SETATTR_GENCRYPTGRM: Nid = Nid(ffi::NID_setAttr_GenCryptgrm); 931 pub const SETATTR_T2ENC: Nid = Nid(ffi::NID_setAttr_T2Enc); 932 pub const SETATTR_T2CLEARTXT: Nid = Nid(ffi::NID_setAttr_T2cleartxt); 933 pub const SETATTR_TOKICCSIG: Nid = Nid(ffi::NID_setAttr_TokICCsig); 934 pub const SETATTR_SECDEVSIG: Nid = Nid(ffi::NID_setAttr_SecDevSig); 935 pub const SET_BRAND_IATA_ATA: Nid = Nid(ffi::NID_set_brand_IATA_ATA); 936 pub const SET_BRAND_DINERS: Nid = Nid(ffi::NID_set_brand_Diners); 937 pub const SET_BRAND_AMERICANEXPRESS: Nid = Nid(ffi::NID_set_brand_AmericanExpress); 938 pub const SET_BRAND_JCB: Nid = Nid(ffi::NID_set_brand_JCB); 939 pub const SET_BRAND_VISA: Nid = Nid(ffi::NID_set_brand_Visa); 940 pub const SET_BRAND_MASTERCARD: Nid = Nid(ffi::NID_set_brand_MasterCard); 941 pub const SET_BRAND_NOVUS: Nid = Nid(ffi::NID_set_brand_Novus); 942 pub const DES_CDMF: Nid = Nid(ffi::NID_des_cdmf); 943 pub const RSAOAEPENCRYPTIONSET: Nid = Nid(ffi::NID_rsaOAEPEncryptionSET); 944 pub const IPSEC3: Nid = Nid(ffi::NID_ipsec3); 945 pub const IPSEC4: Nid = Nid(ffi::NID_ipsec4); 946 pub const WHIRLPOOL: Nid = Nid(ffi::NID_whirlpool); 947 pub const CRYPTOPRO: Nid = Nid(ffi::NID_cryptopro); 948 pub const CRYPTOCOM: Nid = Nid(ffi::NID_cryptocom); 949 pub const ID_GOSTR3411_94_WITH_GOSTR3410_2001: Nid = 950 Nid(ffi::NID_id_GostR3411_94_with_GostR3410_2001); 951 pub const ID_GOSTR3411_94_WITH_GOSTR3410_94: Nid = 952 Nid(ffi::NID_id_GostR3411_94_with_GostR3410_94); 953 pub const ID_GOSTR3411_94: Nid = Nid(ffi::NID_id_GostR3411_94); 954 pub const ID_HMACGOSTR3411_94: Nid = Nid(ffi::NID_id_HMACGostR3411_94); 955 pub const ID_GOSTR3410_2001: Nid = Nid(ffi::NID_id_GostR3410_2001); 956 pub const ID_GOSTR3410_94: Nid = Nid(ffi::NID_id_GostR3410_94); 957 pub const ID_GOST28147_89: Nid = Nid(ffi::NID_id_Gost28147_89); 958 pub const GOST89_CNT: Nid = Nid(ffi::NID_gost89_cnt); 959 pub const ID_GOST28147_89_MAC: Nid = Nid(ffi::NID_id_Gost28147_89_MAC); 960 pub const ID_GOSTR3411_94_PRF: Nid = Nid(ffi::NID_id_GostR3411_94_prf); 961 pub const ID_GOSTR3410_2001DH: Nid = Nid(ffi::NID_id_GostR3410_2001DH); 962 pub const ID_GOSTR3410_94DH: Nid = Nid(ffi::NID_id_GostR3410_94DH); 963 pub const ID_GOST28147_89_CRYPTOPRO_KEYMESHING: Nid = 964 Nid(ffi::NID_id_Gost28147_89_CryptoPro_KeyMeshing); 965 pub const ID_GOST28147_89_NONE_KEYMESHING: Nid = Nid(ffi::NID_id_Gost28147_89_None_KeyMeshing); 966 pub const ID_GOSTR3411_94_TESTPARAMSET: Nid = Nid(ffi::NID_id_GostR3411_94_TestParamSet); 967 pub const ID_GOSTR3411_94_CRYPTOPROPARAMSET: Nid = 968 Nid(ffi::NID_id_GostR3411_94_CryptoProParamSet); 969 pub const ID_GOST28147_89_TESTPARAMSET: Nid = Nid(ffi::NID_id_Gost28147_89_TestParamSet); 970 pub const ID_GOST28147_89_CRYPTOPRO_A_PARAMSET: Nid = 971 Nid(ffi::NID_id_Gost28147_89_CryptoPro_A_ParamSet); 972 pub const ID_GOST28147_89_CRYPTOPRO_B_PARAMSET: Nid = 973 Nid(ffi::NID_id_Gost28147_89_CryptoPro_B_ParamSet); 974 pub const ID_GOST28147_89_CRYPTOPRO_C_PARAMSET: Nid = 975 Nid(ffi::NID_id_Gost28147_89_CryptoPro_C_ParamSet); 976 pub const ID_GOST28147_89_CRYPTOPRO_D_PARAMSET: Nid = 977 Nid(ffi::NID_id_Gost28147_89_CryptoPro_D_ParamSet); 978 pub const ID_GOST28147_89_CRYPTOPRO_OSCAR_1_1_PARAMSET: Nid = 979 Nid(ffi::NID_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet); 980 pub const ID_GOST28147_89_CRYPTOPRO_OSCAR_1_0_PARAMSET: Nid = 981 Nid(ffi::NID_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet); 982 pub const ID_GOST28147_89_CRYPTOPRO_RIC_1_PARAMSET: Nid = 983 Nid(ffi::NID_id_Gost28147_89_CryptoPro_RIC_1_ParamSet); 984 pub const ID_GOSTR3410_94_TESTPARAMSET: Nid = Nid(ffi::NID_id_GostR3410_94_TestParamSet); 985 pub const ID_GOSTR3410_94_CRYPTOPRO_A_PARAMSET: Nid = 986 Nid(ffi::NID_id_GostR3410_94_CryptoPro_A_ParamSet); 987 pub const ID_GOSTR3410_94_CRYPTOPRO_B_PARAMSET: Nid = 988 Nid(ffi::NID_id_GostR3410_94_CryptoPro_B_ParamSet); 989 pub const ID_GOSTR3410_94_CRYPTOPRO_C_PARAMSET: Nid = 990 Nid(ffi::NID_id_GostR3410_94_CryptoPro_C_ParamSet); 991 pub const ID_GOSTR3410_94_CRYPTOPRO_D_PARAMSET: Nid = 992 Nid(ffi::NID_id_GostR3410_94_CryptoPro_D_ParamSet); 993 pub const ID_GOSTR3410_94_CRYPTOPRO_XCHA_PARAMSET: Nid = 994 Nid(ffi::NID_id_GostR3410_94_CryptoPro_XchA_ParamSet); 995 pub const ID_GOSTR3410_94_CRYPTOPRO_XCHB_PARAMSET: Nid = 996 Nid(ffi::NID_id_GostR3410_94_CryptoPro_XchB_ParamSet); 997 pub const ID_GOSTR3410_94_CRYPTOPRO_XCHC_PARAMSET: Nid = 998 Nid(ffi::NID_id_GostR3410_94_CryptoPro_XchC_ParamSet); 999 pub const ID_GOSTR3410_2001_TESTPARAMSET: Nid = Nid(ffi::NID_id_GostR3410_2001_TestParamSet); 1000 pub const ID_GOSTR3410_2001_CRYPTOPRO_A_PARAMSET: Nid = 1001 Nid(ffi::NID_id_GostR3410_2001_CryptoPro_A_ParamSet); 1002 pub const ID_GOSTR3410_2001_CRYPTOPRO_B_PARAMSET: Nid = 1003 Nid(ffi::NID_id_GostR3410_2001_CryptoPro_B_ParamSet); 1004 pub const ID_GOSTR3410_2001_CRYPTOPRO_C_PARAMSET: Nid = 1005 Nid(ffi::NID_id_GostR3410_2001_CryptoPro_C_ParamSet); 1006 pub const ID_GOSTR3410_2001_CRYPTOPRO_XCHA_PARAMSET: Nid = 1007 Nid(ffi::NID_id_GostR3410_2001_CryptoPro_XchA_ParamSet); 1008 pub const ID_GOSTR3410_2001_CRYPTOPRO_XCHB_PARAMSET: Nid = 1009 Nid(ffi::NID_id_GostR3410_2001_CryptoPro_XchB_ParamSet); 1010 pub const ID_GOSTR3410_94_A: Nid = Nid(ffi::NID_id_GostR3410_94_a); 1011 pub const ID_GOSTR3410_94_ABIS: Nid = Nid(ffi::NID_id_GostR3410_94_aBis); 1012 pub const ID_GOSTR3410_94_B: Nid = Nid(ffi::NID_id_GostR3410_94_b); 1013 pub const ID_GOSTR3410_94_BBIS: Nid = Nid(ffi::NID_id_GostR3410_94_bBis); 1014 pub const ID_GOST28147_89_CC: Nid = Nid(ffi::NID_id_Gost28147_89_cc); 1015 pub const ID_GOSTR3410_94_CC: Nid = Nid(ffi::NID_id_GostR3410_94_cc); 1016 pub const ID_GOSTR3410_2001_CC: Nid = Nid(ffi::NID_id_GostR3410_2001_cc); 1017 pub const ID_GOSTR3411_94_WITH_GOSTR3410_94_CC: Nid = 1018 Nid(ffi::NID_id_GostR3411_94_with_GostR3410_94_cc); 1019 pub const ID_GOSTR3411_94_WITH_GOSTR3410_2001_CC: Nid = 1020 Nid(ffi::NID_id_GostR3411_94_with_GostR3410_2001_cc); 1021 pub const ID_GOSTR3410_2001_PARAMSET_CC: Nid = Nid(ffi::NID_id_GostR3410_2001_ParamSet_cc); 1022 pub const CAMELLIA_128_CBC: Nid = Nid(ffi::NID_camellia_128_cbc); 1023 pub const CAMELLIA_192_CBC: Nid = Nid(ffi::NID_camellia_192_cbc); 1024 pub const CAMELLIA_256_CBC: Nid = Nid(ffi::NID_camellia_256_cbc); 1025 pub const ID_CAMELLIA128_WRAP: Nid = Nid(ffi::NID_id_camellia128_wrap); 1026 pub const ID_CAMELLIA192_WRAP: Nid = Nid(ffi::NID_id_camellia192_wrap); 1027 pub const ID_CAMELLIA256_WRAP: Nid = Nid(ffi::NID_id_camellia256_wrap); 1028 pub const CAMELLIA_128_ECB: Nid = Nid(ffi::NID_camellia_128_ecb); 1029 pub const CAMELLIA_128_OFB128: Nid = Nid(ffi::NID_camellia_128_ofb128); 1030 pub const CAMELLIA_128_CFB128: Nid = Nid(ffi::NID_camellia_128_cfb128); 1031 pub const CAMELLIA_192_ECB: Nid = Nid(ffi::NID_camellia_192_ecb); 1032 pub const CAMELLIA_192_OFB128: Nid = Nid(ffi::NID_camellia_192_ofb128); 1033 pub const CAMELLIA_192_CFB128: Nid = Nid(ffi::NID_camellia_192_cfb128); 1034 pub const CAMELLIA_256_ECB: Nid = Nid(ffi::NID_camellia_256_ecb); 1035 pub const CAMELLIA_256_OFB128: Nid = Nid(ffi::NID_camellia_256_ofb128); 1036 pub const CAMELLIA_256_CFB128: Nid = Nid(ffi::NID_camellia_256_cfb128); 1037 pub const CAMELLIA_128_CFB1: Nid = Nid(ffi::NID_camellia_128_cfb1); 1038 pub const CAMELLIA_192_CFB1: Nid = Nid(ffi::NID_camellia_192_cfb1); 1039 pub const CAMELLIA_256_CFB1: Nid = Nid(ffi::NID_camellia_256_cfb1); 1040 pub const CAMELLIA_128_CFB8: Nid = Nid(ffi::NID_camellia_128_cfb8); 1041 pub const CAMELLIA_192_CFB8: Nid = Nid(ffi::NID_camellia_192_cfb8); 1042 pub const CAMELLIA_256_CFB8: Nid = Nid(ffi::NID_camellia_256_cfb8); 1043 pub const KISA: Nid = Nid(ffi::NID_kisa); 1044 pub const SEED_ECB: Nid = Nid(ffi::NID_seed_ecb); 1045 pub const SEED_CBC: Nid = Nid(ffi::NID_seed_cbc); 1046 pub const SEED_CFB128: Nid = Nid(ffi::NID_seed_cfb128); 1047 pub const SEED_OFB128: Nid = Nid(ffi::NID_seed_ofb128); 1048 pub const HMAC: Nid = Nid(ffi::NID_hmac); 1049 pub const CMAC: Nid = Nid(ffi::NID_cmac); 1050 pub const RC4_HMAC_MD5: Nid = Nid(ffi::NID_rc4_hmac_md5); 1051 pub const AES_128_CBC_HMAC_SHA1: Nid = Nid(ffi::NID_aes_128_cbc_hmac_sha1); 1052 pub const AES_192_CBC_HMAC_SHA1: Nid = Nid(ffi::NID_aes_192_cbc_hmac_sha1); 1053 pub const AES_256_CBC_HMAC_SHA1: Nid = Nid(ffi::NID_aes_256_cbc_hmac_sha1); 1054 } 1055 1056 #[cfg(test)] 1057 mod test { 1058 use super::Nid; 1059 1060 #[test] signature_digest()1061 fn signature_digest() { 1062 let algs = Nid::SHA256WITHRSAENCRYPTION.signature_algorithms().unwrap(); 1063 assert_eq!(algs.digest, Nid::SHA256); 1064 assert_eq!(algs.pkey, Nid::RSAENCRYPTION); 1065 } 1066 1067 #[test] test_long_name_conversion()1068 fn test_long_name_conversion() { 1069 let common_name = Nid::COMMONNAME; 1070 let organizational_unit_name = Nid::ORGANIZATIONALUNITNAME; 1071 let aes256_cbc_hmac_sha1 = Nid::AES_256_CBC_HMAC_SHA1; 1072 let id_cmc_lrapopwitness = Nid::ID_CMC_LRAPOPWITNESS; 1073 let ms_ctl_sign = Nid::MS_CTL_SIGN; 1074 let undefined_nid = Nid::from_raw(118); 1075 1076 assert_eq!(common_name.long_name().unwrap(), "commonName"); 1077 assert_eq!( 1078 organizational_unit_name.long_name().unwrap(), 1079 "organizationalUnitName" 1080 ); 1081 assert_eq!( 1082 aes256_cbc_hmac_sha1.long_name().unwrap(), 1083 "aes-256-cbc-hmac-sha1" 1084 ); 1085 assert_eq!( 1086 id_cmc_lrapopwitness.long_name().unwrap(), 1087 "id-cmc-lraPOPWitness" 1088 ); 1089 assert_eq!( 1090 ms_ctl_sign.long_name().unwrap(), 1091 "Microsoft Trust List Signing" 1092 ); 1093 assert!( 1094 undefined_nid.long_name().is_err(), 1095 "undefined_nid should not return a valid value" 1096 ); 1097 } 1098 1099 #[test] test_short_name_conversion()1100 fn test_short_name_conversion() { 1101 let common_name = Nid::COMMONNAME; 1102 let organizational_unit_name = Nid::ORGANIZATIONALUNITNAME; 1103 let aes256_cbc_hmac_sha1 = Nid::AES_256_CBC_HMAC_SHA1; 1104 let id_cmc_lrapopwitness = Nid::ID_CMC_LRAPOPWITNESS; 1105 let ms_ctl_sign = Nid::MS_CTL_SIGN; 1106 let undefined_nid = Nid::from_raw(118); 1107 1108 assert_eq!(common_name.short_name().unwrap(), "CN"); 1109 assert_eq!(organizational_unit_name.short_name().unwrap(), "OU"); 1110 assert_eq!( 1111 aes256_cbc_hmac_sha1.short_name().unwrap(), 1112 "AES-256-CBC-HMAC-SHA1" 1113 ); 1114 assert_eq!( 1115 id_cmc_lrapopwitness.short_name().unwrap(), 1116 "id-cmc-lraPOPWitness" 1117 ); 1118 assert_eq!(ms_ctl_sign.short_name().unwrap(), "msCTLSign"); 1119 assert!( 1120 undefined_nid.short_name().is_err(), 1121 "undefined_nid should not return a valid value" 1122 ); 1123 } 1124 } 1125