diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/objects/objects.h | 64 |
1 files changed, 34 insertions, 30 deletions
diff --git a/src/lib/libcrypto/objects/objects.h b/src/lib/libcrypto/objects/objects.h index c099e2e84e..de10532813 100644 --- a/src/lib/libcrypto/objects/objects.h +++ b/src/lib/libcrypto/objects/objects.h | |||
| @@ -452,54 +452,54 @@ | |||
| 452 | #define LN_desx_cbc "desx-cbc" | 452 | #define LN_desx_cbc "desx-cbc" |
| 453 | #define NID_desx_cbc 80 | 453 | #define NID_desx_cbc 80 |
| 454 | 454 | ||
| 455 | #define SN_ld_ce "ld-ce" | 455 | #define SN_id_ce "id-ce" |
| 456 | #define NID_ld_ce 81 | 456 | #define NID_id_ce 81 |
| 457 | #define OBJ_ld_ce 2L,5L,29L | 457 | #define OBJ_id_ce 2L,5L,29L |
| 458 | 458 | ||
| 459 | #define SN_subject_key_identifier "subjectKeyIdentifier" | 459 | #define SN_subject_key_identifier "subjectKeyIdentifier" |
| 460 | #define LN_subject_key_identifier "X509v3 Subject Key Identifier" | 460 | #define LN_subject_key_identifier "X509v3 Subject Key Identifier" |
| 461 | #define NID_subject_key_identifier 82 | 461 | #define NID_subject_key_identifier 82 |
| 462 | #define OBJ_subject_key_identifier OBJ_ld_ce,14L | 462 | #define OBJ_subject_key_identifier OBJ_id_ce,14L |
| 463 | 463 | ||
| 464 | #define SN_key_usage "keyUsage" | 464 | #define SN_key_usage "keyUsage" |
| 465 | #define LN_key_usage "X509v3 Key Usage" | 465 | #define LN_key_usage "X509v3 Key Usage" |
| 466 | #define NID_key_usage 83 | 466 | #define NID_key_usage 83 |
| 467 | #define OBJ_key_usage OBJ_ld_ce,15L | 467 | #define OBJ_key_usage OBJ_id_ce,15L |
| 468 | 468 | ||
| 469 | #define SN_private_key_usage_period "privateKeyUsagePeriod" | 469 | #define SN_private_key_usage_period "privateKeyUsagePeriod" |
| 470 | #define LN_private_key_usage_period "X509v3 Private Key Usage Period" | 470 | #define LN_private_key_usage_period "X509v3 Private Key Usage Period" |
| 471 | #define NID_private_key_usage_period 84 | 471 | #define NID_private_key_usage_period 84 |
| 472 | #define OBJ_private_key_usage_period OBJ_ld_ce,16L | 472 | #define OBJ_private_key_usage_period OBJ_id_ce,16L |
| 473 | 473 | ||
| 474 | #define SN_subject_alt_name "subjectAltName" | 474 | #define SN_subject_alt_name "subjectAltName" |
| 475 | #define LN_subject_alt_name "X509v3 Subject Alternative Name" | 475 | #define LN_subject_alt_name "X509v3 Subject Alternative Name" |
| 476 | #define NID_subject_alt_name 85 | 476 | #define NID_subject_alt_name 85 |
| 477 | #define OBJ_subject_alt_name OBJ_ld_ce,17L | 477 | #define OBJ_subject_alt_name OBJ_id_ce,17L |
| 478 | 478 | ||
| 479 | #define SN_issuer_alt_name "issuerAltName" | 479 | #define SN_issuer_alt_name "issuerAltName" |
| 480 | #define LN_issuer_alt_name "X509v3 Issuer Alternative Name" | 480 | #define LN_issuer_alt_name "X509v3 Issuer Alternative Name" |
| 481 | #define NID_issuer_alt_name 86 | 481 | #define NID_issuer_alt_name 86 |
| 482 | #define OBJ_issuer_alt_name OBJ_ld_ce,18L | 482 | #define OBJ_issuer_alt_name OBJ_id_ce,18L |
| 483 | 483 | ||
| 484 | #define SN_basic_constraints "basicConstraints" | 484 | #define SN_basic_constraints "basicConstraints" |
| 485 | #define LN_basic_constraints "X509v3 Basic Constraints" | 485 | #define LN_basic_constraints "X509v3 Basic Constraints" |
| 486 | #define NID_basic_constraints 87 | 486 | #define NID_basic_constraints 87 |
| 487 | #define OBJ_basic_constraints OBJ_ld_ce,19L | 487 | #define OBJ_basic_constraints OBJ_id_ce,19L |
| 488 | 488 | ||
| 489 | #define SN_crl_number "crlNumber" | 489 | #define SN_crl_number "crlNumber" |
| 490 | #define LN_crl_number "X509v3 CRL Number" | 490 | #define LN_crl_number "X509v3 CRL Number" |
| 491 | #define NID_crl_number 88 | 491 | #define NID_crl_number 88 |
| 492 | #define OBJ_crl_number OBJ_ld_ce,20L | 492 | #define OBJ_crl_number OBJ_id_ce,20L |
| 493 | 493 | ||
| 494 | #define SN_certificate_policies "certificatePolicies" | 494 | #define SN_certificate_policies "certificatePolicies" |
| 495 | #define LN_certificate_policies "X509v3 Certificate Policies" | 495 | #define LN_certificate_policies "X509v3 Certificate Policies" |
| 496 | #define NID_certificate_policies 89 | 496 | #define NID_certificate_policies 89 |
| 497 | #define OBJ_certificate_policies OBJ_ld_ce,32L | 497 | #define OBJ_certificate_policies OBJ_id_ce,32L |
| 498 | 498 | ||
| 499 | #define SN_authority_key_identifier "authorityKeyIdentifier" | 499 | #define SN_authority_key_identifier "authorityKeyIdentifier" |
| 500 | #define LN_authority_key_identifier "X509v3 Authority Key Identifier" | 500 | #define LN_authority_key_identifier "X509v3 Authority Key Identifier" |
| 501 | #define NID_authority_key_identifier 90 | 501 | #define NID_authority_key_identifier 90 |
| 502 | #define OBJ_authority_key_identifier OBJ_ld_ce,35L | 502 | #define OBJ_authority_key_identifier OBJ_id_ce,35L |
| 503 | 503 | ||
| 504 | #define SN_bf_cbc "BF-CBC" | 504 | #define SN_bf_cbc "BF-CBC" |
| 505 | #define LN_bf_cbc "bf-cbc" | 505 | #define LN_bf_cbc "bf-cbc" |
| @@ -560,7 +560,7 @@ | |||
| 560 | #define SN_crl_distribution_points "crlDistributionPoints" | 560 | #define SN_crl_distribution_points "crlDistributionPoints" |
| 561 | #define LN_crl_distribution_points "X509v3 CRL Distribution Points" | 561 | #define LN_crl_distribution_points "X509v3 CRL Distribution Points" |
| 562 | #define NID_crl_distribution_points 103 | 562 | #define NID_crl_distribution_points 103 |
| 563 | #define OBJ_crl_distribution_points OBJ_ld_ce,31L | 563 | #define OBJ_crl_distribution_points OBJ_id_ce,31L |
| 564 | 564 | ||
| 565 | #define SN_md5WithRSA "RSA-NP-MD5" | 565 | #define SN_md5WithRSA "RSA-NP-MD5" |
| 566 | #define LN_md5WithRSA "md5WithRSA" | 566 | #define LN_md5WithRSA "md5WithRSA" |
| @@ -677,7 +677,7 @@ | |||
| 677 | #define SN_ext_key_usage "extendedKeyUsage" | 677 | #define SN_ext_key_usage "extendedKeyUsage" |
| 678 | #define LN_ext_key_usage "X509v3 Extended Key Usage" | 678 | #define LN_ext_key_usage "X509v3 Extended Key Usage" |
| 679 | #define NID_ext_key_usage 126 | 679 | #define NID_ext_key_usage 126 |
| 680 | #define OBJ_ext_key_usage OBJ_ld_ce,37 | 680 | #define OBJ_ext_key_usage OBJ_id_ce,37 |
| 681 | 681 | ||
| 682 | #define SN_id_pkix "PKIX" | 682 | #define SN_id_pkix "PKIX" |
| 683 | #define NID_id_pkix 127 | 683 | #define NID_id_pkix 127 |
| @@ -751,17 +751,17 @@ | |||
| 751 | #define SN_delta_crl "deltaCRL" | 751 | #define SN_delta_crl "deltaCRL" |
| 752 | #define LN_delta_crl "X509v3 Delta CRL Indicator" | 752 | #define LN_delta_crl "X509v3 Delta CRL Indicator" |
| 753 | #define NID_delta_crl 140 | 753 | #define NID_delta_crl 140 |
| 754 | #define OBJ_delta_crl OBJ_ld_ce,27L | 754 | #define OBJ_delta_crl OBJ_id_ce,27L |
| 755 | 755 | ||
| 756 | #define SN_crl_reason "CRLReason" | 756 | #define SN_crl_reason "CRLReason" |
| 757 | #define LN_crl_reason "CRL Reason Code" | 757 | #define LN_crl_reason "CRL Reason Code" |
| 758 | #define NID_crl_reason 141 | 758 | #define NID_crl_reason 141 |
| 759 | #define OBJ_crl_reason OBJ_ld_ce,21L | 759 | #define OBJ_crl_reason OBJ_id_ce,21L |
| 760 | 760 | ||
| 761 | #define SN_invalidity_date "invalidityDate" | 761 | #define SN_invalidity_date "invalidityDate" |
| 762 | #define LN_invalidity_date "Invalidity Date" | 762 | #define LN_invalidity_date "Invalidity Date" |
| 763 | #define NID_invalidity_date 142 | 763 | #define NID_invalidity_date 142 |
| 764 | #define OBJ_invalidity_date OBJ_ld_ce,24L | 764 | #define OBJ_invalidity_date OBJ_id_ce,24L |
| 765 | 765 | ||
| 766 | #define SN_sxnet "SXNetID" | 766 | #define SN_sxnet "SXNetID" |
| 767 | #define LN_sxnet "Strong Extranet ID" | 767 | #define LN_sxnet "Strong Extranet ID" |
| @@ -985,31 +985,35 @@ typedef struct obj_name_st | |||
| 985 | 985 | ||
| 986 | 986 | ||
| 987 | int OBJ_NAME_init(void); | 987 | int OBJ_NAME_init(void); |
| 988 | int OBJ_NAME_new_index(unsigned long (*hash_func)(const char *),int (*cmp_func)(const void *, const void *), | 988 | int OBJ_NAME_new_index(unsigned long (*hash_func)(const char *), |
| 989 | void (*free_func)(const char *, int, const char *)); | 989 | int (*cmp_func)(const char *, const char *), |
| 990 | void (*free_func)(const char *, int, const char *)); | ||
| 990 | const char *OBJ_NAME_get(const char *name,int type); | 991 | const char *OBJ_NAME_get(const char *name,int type); |
| 991 | int OBJ_NAME_add(const char *name,int type,const char *data); | 992 | int OBJ_NAME_add(const char *name,int type,const char *data); |
| 992 | int OBJ_NAME_remove(const char *name,int type); | 993 | int OBJ_NAME_remove(const char *name,int type); |
| 993 | void OBJ_NAME_cleanup(int type); /* -1 for everything */ | 994 | void OBJ_NAME_cleanup(int type); /* -1 for everything */ |
| 995 | void OBJ_NAME_do_all(int type,void (*fn)(const OBJ_NAME *,void *arg), | ||
| 996 | void *arg); | ||
| 997 | void OBJ_NAME_do_all_sorted(int type,void (*fn)(const OBJ_NAME *,void *arg), | ||
| 998 | void *arg); | ||
| 994 | 999 | ||
| 995 | ASN1_OBJECT * OBJ_dup(ASN1_OBJECT *o); | 1000 | ASN1_OBJECT * OBJ_dup(const ASN1_OBJECT *o); |
| 996 | ASN1_OBJECT * OBJ_nid2obj(int n); | 1001 | ASN1_OBJECT * OBJ_nid2obj(int n); |
| 997 | const char * OBJ_nid2ln(int n); | 1002 | const char * OBJ_nid2ln(int n); |
| 998 | const char * OBJ_nid2sn(int n); | 1003 | const char * OBJ_nid2sn(int n); |
| 999 | int OBJ_obj2nid(ASN1_OBJECT *o); | 1004 | int OBJ_obj2nid(const ASN1_OBJECT *o); |
| 1000 | ASN1_OBJECT * OBJ_txt2obj(const char *s, int no_name); | 1005 | ASN1_OBJECT * OBJ_txt2obj(const char *s, int no_name); |
| 1001 | int OBJ_obj2txt(char *buf, int buf_len, ASN1_OBJECT *a, int no_name); | 1006 | int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name); |
| 1002 | int OBJ_txt2nid(char *s); | 1007 | int OBJ_txt2nid(const char *s); |
| 1003 | int OBJ_ln2nid(const char *s); | 1008 | int OBJ_ln2nid(const char *s); |
| 1004 | int OBJ_sn2nid(const char *s); | 1009 | int OBJ_sn2nid(const char *s); |
| 1005 | int OBJ_cmp(ASN1_OBJECT *a,ASN1_OBJECT *b); | 1010 | int OBJ_cmp(const ASN1_OBJECT *a,const ASN1_OBJECT *b); |
| 1006 | char * OBJ_bsearch(char *key,char *base,int num,int size,int (*cmp)(const void *, const void *)); | 1011 | const char * OBJ_bsearch(const char *key,const char *base,int num,int size, |
| 1007 | 1012 | int (*cmp)(const void *, const void *)); | |
| 1008 | void ERR_load_OBJ_strings(void ); | ||
| 1009 | 1013 | ||
| 1010 | int OBJ_new_nid(int num); | 1014 | int OBJ_new_nid(int num); |
| 1011 | int OBJ_add_object(ASN1_OBJECT *obj); | 1015 | int OBJ_add_object(const ASN1_OBJECT *obj); |
| 1012 | int OBJ_create(char *oid,char *sn,char *ln); | 1016 | int OBJ_create(const char *oid,const char *sn,const char *ln); |
| 1013 | void OBJ_cleanup(void ); | 1017 | void OBJ_cleanup(void ); |
| 1014 | int OBJ_create_objects(BIO *in); | 1018 | int OBJ_create_objects(BIO *in); |
| 1015 | 1019 | ||
| @@ -1017,6 +1021,7 @@ int OBJ_create_objects(BIO *in); | |||
| 1017 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 1021 | /* The following lines are auto generated by the script mkerr.pl. Any changes |
| 1018 | * made after this point may be overwritten when the script is next run. | 1022 | * made after this point may be overwritten when the script is next run. |
| 1019 | */ | 1023 | */ |
| 1024 | void ERR_load_OBJ_strings(void); | ||
| 1020 | 1025 | ||
| 1021 | /* Error codes for the OBJ functions. */ | 1026 | /* Error codes for the OBJ functions. */ |
| 1022 | 1027 | ||
| @@ -1035,4 +1040,3 @@ int OBJ_create_objects(BIO *in); | |||
| 1035 | } | 1040 | } |
| 1036 | #endif | 1041 | #endif |
| 1037 | #endif | 1042 | #endif |
| 1038 | |||
