OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | 4 |
5 #include "secoid.h" | 5 #include "secoid.h" |
6 #include "pkcs11t.h" | 6 #include "pkcs11t.h" |
7 #include "secitem.h" | 7 #include "secitem.h" |
8 #include "secerr.h" | 8 #include "secerr.h" |
9 #include "prenv.h" | 9 #include "prenv.h" |
10 #include "plhash.h" | 10 #include "plhash.h" |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 CONST_OID x520LocalityName[] = { X520_ATTRIBUTE_TYPE, 7 }; | 265 CONST_OID x520LocalityName[] = { X520_ATTRIBUTE_TYPE, 7 }; |
266 CONST_OID x520StateOrProvinceName[] = { X520_ATTRIBUTE_TYPE, 8 }; | 266 CONST_OID x520StateOrProvinceName[] = { X520_ATTRIBUTE_TYPE, 8 }; |
267 CONST_OID x520StreetAddress[] = { X520_ATTRIBUTE_TYPE, 9 }; | 267 CONST_OID x520StreetAddress[] = { X520_ATTRIBUTE_TYPE, 9 }; |
268 CONST_OID x520OrgName[] = { X520_ATTRIBUTE_TYPE, 10 }; | 268 CONST_OID x520OrgName[] = { X520_ATTRIBUTE_TYPE, 10 }; |
269 CONST_OID x520OrgUnitName[] = { X520_ATTRIBUTE_TYPE, 11 }; | 269 CONST_OID x520OrgUnitName[] = { X520_ATTRIBUTE_TYPE, 11 }; |
270 CONST_OID x520Title[] = { X520_ATTRIBUTE_TYPE, 12 }; | 270 CONST_OID x520Title[] = { X520_ATTRIBUTE_TYPE, 12 }; |
271 CONST_OID x520BusinessCategory[] = { X520_ATTRIBUTE_TYPE, 15 }; | 271 CONST_OID x520BusinessCategory[] = { X520_ATTRIBUTE_TYPE, 15 }; |
272 CONST_OID x520PostalAddress[] = { X520_ATTRIBUTE_TYPE, 16 }; | 272 CONST_OID x520PostalAddress[] = { X520_ATTRIBUTE_TYPE, 16 }; |
273 CONST_OID x520PostalCode[] = { X520_ATTRIBUTE_TYPE, 17 }; | 273 CONST_OID x520PostalCode[] = { X520_ATTRIBUTE_TYPE, 17 }; |
274 CONST_OID x520PostOfficeBox[] = { X520_ATTRIBUTE_TYPE, 18 }; | 274 CONST_OID x520PostOfficeBox[] = { X520_ATTRIBUTE_TYPE, 18 }; |
| 275 CONST_OID x520Name[] = { X520_ATTRIBUTE_TYPE, 41 }; |
275 CONST_OID x520GivenName[] = { X520_ATTRIBUTE_TYPE, 42 }; | 276 CONST_OID x520GivenName[] = { X520_ATTRIBUTE_TYPE, 42 }; |
276 CONST_OID x520Initials[] = { X520_ATTRIBUTE_TYPE, 43 }; | 277 CONST_OID x520Initials[] = { X520_ATTRIBUTE_TYPE, 43 }; |
277 CONST_OID x520GenerationQualifier[] = { X520_ATTRIBUTE_TYPE, 44 }; | 278 CONST_OID x520GenerationQualifier[] = { X520_ATTRIBUTE_TYPE, 44 }; |
278 CONST_OID x520DnQualifier[] = { X520_ATTRIBUTE_TYPE, 46 }; | 279 CONST_OID x520DnQualifier[] = { X520_ATTRIBUTE_TYPE, 46 }; |
279 CONST_OID x520HouseIdentifier[] = { X520_ATTRIBUTE_TYPE, 51 }; | 280 CONST_OID x520HouseIdentifier[] = { X520_ATTRIBUTE_TYPE, 51 }; |
280 CONST_OID x520Pseudonym[] = { X520_ATTRIBUTE_TYPE, 65 }; | 281 CONST_OID x520Pseudonym[] = { X520_ATTRIBUTE_TYPE, 65 }; |
281 | 282 |
282 CONST_OID nsTypeGIF[] = { NETSCAPE_DATA_TYPE, 0x01 }; | 283 CONST_OID nsTypeGIF[] = { NETSCAPE_DATA_TYPE, 0x01 }; |
283 CONST_OID nsTypeJPEG[] = { NETSCAPE_DATA_TYPE, 0x02 }; | 284 CONST_OID nsTypeJPEG[] = { NETSCAPE_DATA_TYPE, 0x02 }; |
284 CONST_OID nsTypeURL[] = { NETSCAPE_DATA_TYPE, 0x03 }; | 285 CONST_OID nsTypeURL[] = { NETSCAPE_DATA_TYPE, 0x03 }; |
(...skipping 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1638 SEC_OID_NIST_DSA_SIGNATURE_WITH_SHA224_DIGEST, | 1639 SEC_OID_NIST_DSA_SIGNATURE_WITH_SHA224_DIGEST, |
1639 "DSA with SHA-224 Signature", | 1640 "DSA with SHA-224 Signature", |
1640 CKM_INVALID_MECHANISM /* not yet defined */, INVALID_CERT_EXTENSION), | 1641 CKM_INVALID_MECHANISM /* not yet defined */, INVALID_CERT_EXTENSION), |
1641 OD( nistDSASignaturewithSHA256Digest, | 1642 OD( nistDSASignaturewithSHA256Digest, |
1642 SEC_OID_NIST_DSA_SIGNATURE_WITH_SHA256_DIGEST, | 1643 SEC_OID_NIST_DSA_SIGNATURE_WITH_SHA256_DIGEST, |
1643 "DSA with SHA-256 Signature", | 1644 "DSA with SHA-256 Signature", |
1644 CKM_INVALID_MECHANISM /* not yet defined */, INVALID_CERT_EXTENSION), | 1645 CKM_INVALID_MECHANISM /* not yet defined */, INVALID_CERT_EXTENSION), |
1645 OD( msExtendedKeyUsageTrustListSigning, | 1646 OD( msExtendedKeyUsageTrustListSigning, |
1646 SEC_OID_MS_EXT_KEY_USAGE_CTL_SIGNING, | 1647 SEC_OID_MS_EXT_KEY_USAGE_CTL_SIGNING, |
1647 "Microsoft Trust List Signing", | 1648 "Microsoft Trust List Signing", |
1648 » CKM_INVALID_MECHANISM, INVALID_CERT_EXTENSION ) | 1649 » CKM_INVALID_MECHANISM, INVALID_CERT_EXTENSION ), |
| 1650 OD( x520Name, SEC_OID_AVA_NAME, |
| 1651 » "X520 Name", CKM_INVALID_MECHANISM, INVALID_CERT_EXTENSION ) |
1649 }; | 1652 }; |
1650 | 1653 |
1651 /* PRIVATE EXTENDED SECOID Table | 1654 /* PRIVATE EXTENDED SECOID Table |
1652 * This table is private. Its structure is opaque to the outside. | 1655 * This table is private. Its structure is opaque to the outside. |
1653 * It is indexed by the same SECOidTag as the oids table above. | 1656 * It is indexed by the same SECOidTag as the oids table above. |
1654 * Every member of this struct must have accessor functions (set, get) | 1657 * Every member of this struct must have accessor functions (set, get) |
1655 * and those functions must operate by value, not by reference. | 1658 * and those functions must operate by value, not by reference. |
1656 * The addresses of the contents of this table must not be exposed | 1659 * The addresses of the contents of this table must not be exposed |
1657 * by the accessor functions. | 1660 * by the accessor functions. |
1658 */ | 1661 */ |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2185 void UTIL_SetForkState(PRBool forked) | 2188 void UTIL_SetForkState(PRBool forked) |
2186 { | 2189 { |
2187 parentForkedAfterC_Initialize = forked; | 2190 parentForkedAfterC_Initialize = forked; |
2188 } | 2191 } |
2189 | 2192 |
2190 const char * | 2193 const char * |
2191 NSSUTIL_GetVersion(void) | 2194 NSSUTIL_GetVersion(void) |
2192 { | 2195 { |
2193 return NSSUTIL_VERSION; | 2196 return NSSUTIL_VERSION; |
2194 } | 2197 } |
OLD | NEW |