| 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 #ifndef _SECOIDT_H_ | 5 #ifndef _SECOIDT_H_ |
| 6 #define _SECOIDT_H_ | 6 #define _SECOIDT_H_ |
| 7 | 7 |
| 8 #include "utilrename.h" | 8 #include "utilrename.h" |
| 9 | 9 |
| 10 /* | 10 /* |
| 11 * secoidt.h - public data structures for ASN.1 OID functions | 11 * secoidt.h - public data structures for ASN.1 OID functions |
| 12 * | 12 * |
| 13 * $Id: secoidt.h,v 1.36 2012/06/25 21:48:41 rrelyea%redhat.com Exp $ | 13 * $Id: secoidt.h,v 1.37 2012/12/19 02:10:42 emaldona%redhat.com Exp $ |
| 14 */ | 14 */ |
| 15 | 15 |
| 16 #include "secitem.h" | 16 #include "secitem.h" |
| 17 | 17 |
| 18 typedef struct SECOidDataStr SECOidData; | 18 typedef struct SECOidDataStr SECOidData; |
| 19 typedef struct SECAlgorithmIDStr SECAlgorithmID; | 19 typedef struct SECAlgorithmIDStr SECAlgorithmID; |
| 20 | 20 |
| 21 /* | 21 /* |
| 22 ** An X.500 algorithm identifier | 22 ** An X.500 algorithm identifier |
| 23 */ | 23 */ |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 SEC_OID_SHA224 = 309, | 429 SEC_OID_SHA224 = 309, |
| 430 | 430 |
| 431 SEC_OID_EV_INCORPORATION_LOCALITY = 310, | 431 SEC_OID_EV_INCORPORATION_LOCALITY = 310, |
| 432 SEC_OID_EV_INCORPORATION_STATE = 311, | 432 SEC_OID_EV_INCORPORATION_STATE = 311, |
| 433 SEC_OID_EV_INCORPORATION_COUNTRY = 312, | 433 SEC_OID_EV_INCORPORATION_COUNTRY = 312, |
| 434 SEC_OID_BUSINESS_CATEGORY = 313, | 434 SEC_OID_BUSINESS_CATEGORY = 313, |
| 435 | 435 |
| 436 SEC_OID_NIST_DSA_SIGNATURE_WITH_SHA224_DIGEST = 314, | 436 SEC_OID_NIST_DSA_SIGNATURE_WITH_SHA224_DIGEST = 314, |
| 437 SEC_OID_NIST_DSA_SIGNATURE_WITH_SHA256_DIGEST = 315, | 437 SEC_OID_NIST_DSA_SIGNATURE_WITH_SHA256_DIGEST = 315, |
| 438 | 438 |
| 439 /* Microsoft Trust List Signing |
| 440 * szOID_KP_CTL_USAGE_SIGNING |
| 441 * where KP stands for Key Purpose |
| 442 */ |
| 443 SEC_OID_MS_EXT_KEY_USAGE_CTL_SIGNING = 316, |
| 444 |
| 439 SEC_OID_TOTAL | 445 SEC_OID_TOTAL |
| 440 } SECOidTag; | 446 } SECOidTag; |
| 441 | 447 |
| 442 #define SEC_OID_SECG_EC_SECP192R1 SEC_OID_ANSIX962_EC_PRIME192V1 | 448 #define SEC_OID_SECG_EC_SECP192R1 SEC_OID_ANSIX962_EC_PRIME192V1 |
| 443 #define SEC_OID_SECG_EC_SECP256R1 SEC_OID_ANSIX962_EC_PRIME256V1 | 449 #define SEC_OID_SECG_EC_SECP256R1 SEC_OID_ANSIX962_EC_PRIME256V1 |
| 444 #define SEC_OID_PKCS12_KEY_USAGE SEC_OID_X509_KEY_USAGE | 450 #define SEC_OID_PKCS12_KEY_USAGE SEC_OID_X509_KEY_USAGE |
| 445 | 451 |
| 446 /* fake OID for DSS sign/verify */ | 452 /* fake OID for DSS sign/verify */ |
| 447 #define SEC_OID_SHA SEC_OID_MISS_DSS | 453 #define SEC_OID_SHA SEC_OID_MISS_DSS |
| 448 | 454 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 471 #define NSS_USE_ALG_IN_CMS_SIGNATURE 0x00000002 /* used in S/MIME */ | 477 #define NSS_USE_ALG_IN_CMS_SIGNATURE 0x00000002 /* used in S/MIME */ |
| 472 #define NSS_USE_ALG_RESERVED 0xfffffffc /* may be used in future */ | 478 #define NSS_USE_ALG_RESERVED 0xfffffffc /* may be used in future */ |
| 473 | 479 |
| 474 /* Code MUST NOT SET or CLEAR reserved bits, and must NOT depend on them | 480 /* Code MUST NOT SET or CLEAR reserved bits, and must NOT depend on them |
| 475 * being all zeros or having any other known value. The reserved bits | 481 * being all zeros or having any other known value. The reserved bits |
| 476 * must be ignored. | 482 * must be ignored. |
| 477 */ | 483 */ |
| 478 | 484 |
| 479 | 485 |
| 480 #endif /* _SECOIDT_H_ */ | 486 #endif /* _SECOIDT_H_ */ |
| OLD | NEW |