diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2021-03-09 10:52:15 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2021-03-18 17:52:37 +1000 |
commit | 47864aeafd2ca0ea551f00df99c4c598b53c5912 (patch) | |
tree | 5150af4fd7dbab314c6b6d2a2440e92a0e96441a /crypto | |
parent | 4158b0dc1d73ce73b9a924b77205f4d2b67abdc1 (diff) |
Add ossl_v3 symbols
Partial fix for #12964
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14473)
Diffstat (limited to 'crypto')
31 files changed, 138 insertions, 138 deletions
diff --git a/crypto/ct/ct_local.h b/crypto/ct/ct_local.h index a7573c97bb..a1bff33a74 100644 --- a/crypto/ct/ct_local.h +++ b/crypto/ct/ct_local.h @@ -219,4 +219,4 @@ __owur int o2i_SCT_signature(SCT *sct, const unsigned char **in, size_t len); /* * Handlers for Certificate Transparency X509v3/OCSP extensions */ -extern const X509V3_EXT_METHOD v3_ct_scts[3]; +extern const X509V3_EXT_METHOD ossl_v3_ct_scts[3]; diff --git a/crypto/ct/ct_x509v3.c b/crypto/ct/ct_x509v3.c index 085402b046..92991b3f9d 100644 --- a/crypto/ct/ct_x509v3.c +++ b/crypto/ct/ct_x509v3.c @@ -75,7 +75,7 @@ static STACK_OF(SCT) *ocsp_ext_d2i_SCT_LIST(STACK_OF(SCT) **a, } /* Handlers for X509v3/OCSP Certificate Transparency extensions */ -const X509V3_EXT_METHOD v3_ct_scts[3] = { +const X509V3_EXT_METHOD ossl_v3_ct_scts[3] = { /* X509v3 extension in certificates that contains SCTs */ { NID_ct_precert_scts, 0, NULL, NULL, (X509V3_EXT_FREE)SCT_LIST_free, diff --git a/crypto/ocsp/v3_ocsp.c b/crypto/ocsp/v3_ocsp.c index 35766de9f8..2250208a15 100644 --- a/crypto/ocsp/v3_ocsp.c +++ b/crypto/ocsp/v3_ocsp.c @@ -41,7 +41,7 @@ static void *s2i_ocsp_nocheck(const X509V3_EXT_METHOD *method, static int i2r_ocsp_serviceloc(const X509V3_EXT_METHOD *method, void *in, BIO *bp, int ind); -const X509V3_EXT_METHOD v3_ocsp_crlid = { +const X509V3_EXT_METHOD ossl_v3_ocsp_crlid = { NID_id_pkix_OCSP_CrlID, 0, ASN1_ITEM_ref(OCSP_CRLID), 0, 0, 0, 0, 0, 0, @@ -50,7 +50,7 @@ const X509V3_EXT_METHOD v3_ocsp_crlid = { NULL }; -const X509V3_EXT_METHOD v3_ocsp_acutoff = { +const X509V3_EXT_METHOD ossl_v3_ocsp_acutoff = { NID_id_pkix_OCSP_archiveCutoff, 0, ASN1_ITEM_ref(ASN1_GENERALIZEDTIME), 0, 0, 0, 0, 0, 0, @@ -59,7 +59,7 @@ const X509V3_EXT_METHOD v3_ocsp_acutoff = { NULL }; -const X509V3_EXT_METHOD v3_crl_invdate = { +const X509V3_EXT_METHOD ossl_v3_crl_invdate = { NID_invalidity_date, 0, ASN1_ITEM_ref(ASN1_GENERALIZEDTIME), 0, 0, 0, 0, 0, 0, @@ -68,7 +68,7 @@ const X509V3_EXT_METHOD v3_crl_invdate = { NULL }; -const X509V3_EXT_METHOD v3_crl_hold = { +const X509V3_EXT_METHOD ossl_v3_crl_hold = { NID_hold_instruction_code, 0, ASN1_ITEM_ref(ASN1_OBJECT), 0, 0, 0, 0, 0, 0, @@ -77,7 +77,7 @@ const X509V3_EXT_METHOD v3_crl_hold = { NULL }; -const X509V3_EXT_METHOD v3_ocsp_nonce = { +const X509V3_EXT_METHOD ossl_v3_ocsp_nonce = { NID_id_pkix_OCSP_Nonce, 0, NULL, ocsp_nonce_new, ocsp_nonce_free, @@ -89,7 +89,7 @@ const X509V3_EXT_METHOD v3_ocsp_nonce = { NULL }; -const X509V3_EXT_METHOD v3_ocsp_nocheck = { +const X509V3_EXT_METHOD ossl_v3_ocsp_nocheck = { NID_id_pkix_OCSP_noCheck, 0, ASN1_ITEM_ref(ASN1_NULL), 0, 0, 0, 0, 0, s2i_ocsp_nocheck, @@ -98,7 +98,7 @@ const X509V3_EXT_METHOD v3_ocsp_nocheck = { NULL }; -const X509V3_EXT_METHOD v3_ocsp_serviceloc = { +const X509V3_EXT_METHOD ossl_v3_ocsp_serviceloc = { NID_id_pkix_OCSP_serviceLocator, 0, ASN1_ITEM_ref(OCSP_SERVICELOC), 0, 0, 0, 0, 0, 0, diff --git a/crypto/x509/ext_dat.h b/crypto/x509/ext_dat.h index b2fecaa165..83c8953af2 100644 --- a/crypto/x509/ext_dat.h +++ b/crypto/x509/ext_dat.h @@ -7,21 +7,21 @@ * https://www.openssl.org/source/license.html */ -int v3_name_cmp(const char *name, const char *cmp); +int ossl_v3_name_cmp(const char *name, const char *cmp); -extern const X509V3_EXT_METHOD v3_bcons, v3_nscert, v3_key_usage, v3_ext_ku; -extern const X509V3_EXT_METHOD v3_pkey_usage_period, v3_sxnet, v3_info, v3_sinfo; -extern const X509V3_EXT_METHOD v3_ns_ia5_list[8], v3_alt[3], v3_skey_id, v3_akey_id; -extern const X509V3_EXT_METHOD v3_crl_num, v3_crl_reason, v3_crl_invdate; -extern const X509V3_EXT_METHOD v3_delta_crl, v3_cpols, v3_crld, v3_freshest_crl; -extern const X509V3_EXT_METHOD v3_ocsp_nonce, v3_ocsp_accresp, v3_ocsp_acutoff; -extern const X509V3_EXT_METHOD v3_ocsp_crlid, v3_ocsp_nocheck, v3_ocsp_serviceloc; -extern const X509V3_EXT_METHOD v3_crl_hold, v3_pci; -extern const X509V3_EXT_METHOD v3_policy_mappings, v3_policy_constraints; -extern const X509V3_EXT_METHOD v3_name_constraints, v3_inhibit_anyp, v3_idp; -extern const X509V3_EXT_METHOD v3_addr, v3_asid; -extern const X509V3_EXT_METHOD v3_ct_scts[3]; -extern const X509V3_EXT_METHOD v3_tls_feature; -extern const X509V3_EXT_METHOD v3_ext_admission; -extern const X509V3_EXT_METHOD v3_utf8_list[1]; -extern const X509V3_EXT_METHOD v3_issuer_sign_tool; +extern const X509V3_EXT_METHOD ossl_v3_bcons, ossl_v3_nscert, ossl_v3_key_usage, ossl_v3_ext_ku; +extern const X509V3_EXT_METHOD ossl_v3_pkey_usage_period, ossl_v3_sxnet, ossl_v3_info, ossl_v3_sinfo; +extern const X509V3_EXT_METHOD ossl_v3_ns_ia5_list[8], ossl_v3_alt[3], ossl_v3_skey_id, ossl_v3_akey_id; +extern const X509V3_EXT_METHOD ossl_v3_crl_num, ossl_v3_crl_reason, ossl_v3_crl_invdate; +extern const X509V3_EXT_METHOD ossl_v3_delta_crl, ossl_v3_cpols, ossl_v3_crld, ossl_v3_freshest_crl; +extern const X509V3_EXT_METHOD ossl_v3_ocsp_nonce, ossl_v3_ocsp_accresp, ossl_v3_ocsp_acutoff; +extern const X509V3_EXT_METHOD ossl_v3_ocsp_crlid, ossl_v3_ocsp_nocheck, ossl_v3_ocsp_serviceloc; +extern const X509V3_EXT_METHOD ossl_v3_crl_hold, ossl_v3_pci; +extern const X509V3_EXT_METHOD ossl_v3_policy_mappings, ossl_v3_policy_constraints; +extern const X509V3_EXT_METHOD ossl_v3_name_constraints, ossl_v3_inhibit_anyp, ossl_v3_idp; +extern const X509V3_EXT_METHOD ossl_v3_addr, ossl_v3_asid; +extern const X509V3_EXT_METHOD ossl_v3_ct_scts[3]; +extern const X509V3_EXT_METHOD ossl_v3_tls_feature; +extern const X509V3_EXT_METHOD ossl_v3_ext_admission; +extern const X509V3_EXT_METHOD ossl_v3_utf8_list[1]; +extern const X509V3_EXT_METHOD ossl_v3_issuer_sign_tool; diff --git a/crypto/x509/standard_exts.h b/crypto/x509/standard_exts.h index 18f2c32485..67d83a9785 100644 --- a/crypto/x509/standard_exts.h +++ b/crypto/x509/standard_exts.h @@ -13,65 +13,65 @@ */ static const X509V3_EXT_METHOD *standard_exts[] = { - &v3_nscert, - &v3_ns_ia5_list[0], - &v3_ns_ia5_list[1], - &v3_ns_ia5_list[2], - &v3_ns_ia5_list[3], - &v3_ns_ia5_list[4], - &v3_ns_ia5_list[5], - &v3_ns_ia5_list[6], - &v3_skey_id, - &v3_key_usage, - &v3_pkey_usage_period, - &v3_alt[0], - &v3_alt[1], - &v3_bcons, - &v3_crl_num, - &v3_cpols, - &v3_akey_id, - &v3_crld, - &v3_ext_ku, - &v3_delta_crl, - &v3_crl_reason, + &ossl_v3_nscert, + &ossl_v3_ns_ia5_list[0], + &ossl_v3_ns_ia5_list[1], + &ossl_v3_ns_ia5_list[2], + &ossl_v3_ns_ia5_list[3], + &ossl_v3_ns_ia5_list[4], + &ossl_v3_ns_ia5_list[5], + &ossl_v3_ns_ia5_list[6], + &ossl_v3_skey_id, + &ossl_v3_key_usage, + &ossl_v3_pkey_usage_period, + &ossl_v3_alt[0], + &ossl_v3_alt[1], + &ossl_v3_bcons, + &ossl_v3_crl_num, + &ossl_v3_cpols, + &ossl_v3_akey_id, + &ossl_v3_crld, + &ossl_v3_ext_ku, + &ossl_v3_delta_crl, + &ossl_v3_crl_reason, #ifndef OPENSSL_NO_OCSP - &v3_crl_invdate, + &ossl_v3_crl_invdate, #endif - &v3_sxnet, - &v3_info, + &ossl_v3_sxnet, + &ossl_v3_info, #ifndef OPENSSL_NO_RFC3779 - &v3_addr, - &v3_asid, + &ossl_v3_addr, + &ossl_v3_asid, #endif #ifndef OPENSSL_NO_OCSP - &v3_ocsp_nonce, - &v3_ocsp_crlid, - &v3_ocsp_accresp, - &v3_ocsp_nocheck, - &v3_ocsp_acutoff, - &v3_ocsp_serviceloc, + &ossl_v3_ocsp_nonce, + &ossl_v3_ocsp_crlid, + &ossl_v3_ocsp_accresp, + &ossl_v3_ocsp_nocheck, + &ossl_v3_ocsp_acutoff, + &ossl_v3_ocsp_serviceloc, #endif - &v3_sinfo, - &v3_policy_constraints, + &ossl_v3_sinfo, + &ossl_v3_policy_constraints, #ifndef OPENSSL_NO_OCSP - &v3_crl_hold, + &ossl_v3_crl_hold, #endif - &v3_pci, - &v3_name_constraints, - &v3_policy_mappings, - &v3_inhibit_anyp, - &v3_idp, - &v3_alt[2], - &v3_freshest_crl, + &ossl_v3_pci, + &ossl_v3_name_constraints, + &ossl_v3_policy_mappings, + &ossl_v3_inhibit_anyp, + &ossl_v3_idp, + &ossl_v3_alt[2], + &ossl_v3_freshest_crl, #ifndef OPENSSL_NO_CT - &v3_ct_scts[0], - &v3_ct_scts[1], - &v3_ct_scts[2], + &ossl_v3_ct_scts[0], + &ossl_v3_ct_scts[1], + &ossl_v3_ct_scts[2], #endif - &v3_utf8_list[0], - &v3_issuer_sign_tool, - &v3_tls_feature, - &v3_ext_admission + &ossl_v3_utf8_list[0], + &ossl_v3_issuer_sign_tool, + &ossl_v3_tls_feature, + &ossl_v3_ext_admission }; /* Number of standard extensions */ diff --git a/crypto/x509/v3_addr.c b/crypto/x509/v3_addr.c index b7dd889087..f36443a8f8 100644 --- a/crypto/x509/v3_addr.c +++ b/crypto/x509/v3_addr.c @@ -908,14 +908,14 @@ static void *v2i_IPAddrBlocks(const struct v3_ext_method *method, const char *addr_chars = NULL; int prefixlen, i1, i2, delim, length; - if (!v3_name_cmp(val->name, "IPv4")) { + if (!ossl_v3_name_cmp(val->name, "IPv4")) { afi = IANA_AFI_IPV4; - } else if (!v3_name_cmp(val->name, "IPv6")) { + } else if (!ossl_v3_name_cmp(val->name, "IPv6")) { afi = IANA_AFI_IPV6; - } else if (!v3_name_cmp(val->name, "IPv4-SAFI")) { + } else if (!ossl_v3_name_cmp(val->name, "IPv4-SAFI")) { afi = IANA_AFI_IPV4; safi = &safi_; - } else if (!v3_name_cmp(val->name, "IPv6-SAFI")) { + } else if (!ossl_v3_name_cmp(val->name, "IPv6-SAFI")) { afi = IANA_AFI_IPV6; safi = &safi_; } else { @@ -977,7 +977,7 @@ static void *v2i_IPAddrBlocks(const struct v3_ext_method *method, delim = s[i2++]; s[i1] = '\0'; - if (a2i_ipadd(min, s) != length) { + if (ossl_a2i_ipadd(min, s) != length) { ERR_raise(ERR_LIB_X509V3, X509V3_R_INVALID_IPADDRESS); X509V3_conf_add_error_name_value(val); goto err; @@ -1004,7 +1004,7 @@ static void *v2i_IPAddrBlocks(const struct v3_ext_method *method, X509V3_conf_add_error_name_value(val); goto err; } - if (a2i_ipadd(max, s + i1) != length) { + if (ossl_a2i_ipadd(max, s + i1) != length) { ERR_raise(ERR_LIB_X509V3, X509V3_R_INVALID_IPADDRESS); X509V3_conf_add_error_name_value(val); goto err; @@ -1051,7 +1051,7 @@ static void *v2i_IPAddrBlocks(const struct v3_ext_method *method, /* * OpenSSL dispatch */ -const X509V3_EXT_METHOD v3_addr = { +const X509V3_EXT_METHOD ossl_v3_addr = { NID_sbgp_ipAddrBlock, /* nid */ 0, /* flags */ ASN1_ITEM_ref(IPAddrBlocks), /* template */ diff --git a/crypto/x509/v3_admis.c b/crypto/x509/v3_admis.c index 0dfd088eb4..1b6848b226 100644 --- a/crypto/x509/v3_admis.c +++ b/crypto/x509/v3_admis.c @@ -53,7 +53,7 @@ IMPLEMENT_ASN1_FUNCTIONS(ADMISSION_SYNTAX) static int i2r_ADMISSION_SYNTAX(const struct v3_ext_method *method, void *in, BIO *bp, int ind); -const X509V3_EXT_METHOD v3_ext_admission = { +const X509V3_EXT_METHOD ossl_v3_ext_admission = { NID_x509ExtAdmission, /* .ext_nid = */ 0, /* .ext_flags = */ ASN1_ITEM_ref(ADMISSION_SYNTAX), /* .it = */ diff --git a/crypto/x509/v3_akid.c b/crypto/x509/v3_akid.c index c59b72a170..c8693a4ef5 100644 --- a/crypto/x509/v3_akid.c +++ b/crypto/x509/v3_akid.c @@ -24,7 +24,7 @@ static AUTHORITY_KEYID *v2i_AUTHORITY_KEYID(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *values); -const X509V3_EXT_METHOD v3_akey_id = { +const X509V3_EXT_METHOD ossl_v3_akey_id = { NID_authority_key_identifier, X509V3_EXT_MULTILINE, ASN1_ITEM_ref(AUTHORITY_KEYID), 0, 0, 0, 0, @@ -136,7 +136,7 @@ static AUTHORITY_KEYID *v2i_AUTHORITY_KEYID(X509V3_EXT_METHOD *method, X509_PUBKEY *pubkey = NULL; if (X509_PUBKEY_set(&pubkey, ctx->issuer_pkey)) - ikeyid = x509_pubkey_hash(pubkey); + ikeyid = ossl_x509_pubkey_hash(pubkey); X509_PUBKEY_free(pubkey); } if ((keyid == 2 || issuer == 0) diff --git a/crypto/x509/v3_asid.c b/crypto/x509/v3_asid.c index 45840a0073..b3b4bf5d21 100644 --- a/crypto/x509/v3_asid.c +++ b/crypto/x509/v3_asid.c @@ -528,9 +528,9 @@ static void *v2i_ASIdentifiers(const struct v3_ext_method *method, /* * Figure out whether this is an AS or an RDI. */ - if (!v3_name_cmp(val->name, "AS")) { + if (!ossl_v3_name_cmp(val->name, "AS")) { which = V3_ASID_ASNUM; - } else if (!v3_name_cmp(val->name, "RDI")) { + } else if (!ossl_v3_name_cmp(val->name, "RDI")) { which = V3_ASID_RDI; } else { ERR_raise(ERR_LIB_X509V3, X509V3_R_EXTENSION_NAME_ERROR); @@ -624,7 +624,7 @@ static void *v2i_ASIdentifiers(const struct v3_ext_method *method, /* * OpenSSL dispatch. */ -const X509V3_EXT_METHOD v3_asid = { +const X509V3_EXT_METHOD ossl_v3_asid = { NID_sbgp_autonomousSysNum, /* nid */ 0, /* flags */ ASN1_ITEM_ref(ASIdentifiers), /* template */ diff --git a/crypto/x509/v3_bcons.c b/crypto/x509/v3_bcons.c index 27eba96dd6..f6d1faf604 100644 --- a/crypto/x509/v3_bcons.c +++ b/crypto/x509/v3_bcons.c @@ -24,7 +24,7 @@ static BASIC_CONSTRAINTS *v2i_BASIC_CONSTRAINTS(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *values); -const X509V3_EXT_METHOD v3_bcons = { +const X509V3_EXT_METHOD ossl_v3_bcons = { NID_basic_constraints, 0, ASN1_ITEM_ref(BASIC_CONSTRAINTS), 0, 0, 0, 0, diff --git a/crypto/x509/v3_bitst.c b/crypto/x509/v3_bitst.c index 0caa338ff0..53ac4df9d6 100644 --- a/crypto/x509/v3_bitst.c +++ b/crypto/x509/v3_bitst.c @@ -38,9 +38,9 @@ static BIT_STRING_BITNAME key_usage_type_table[] = { {-1, NULL, NULL} }; -const X509V3_EXT_METHOD v3_nscert = +const X509V3_EXT_METHOD ossl_v3_nscert = EXT_BITSTRING(NID_netscape_cert_type, ns_cert_type_table); -const X509V3_EXT_METHOD v3_key_usage = +const X509V3_EXT_METHOD ossl_v3_key_usage = EXT_BITSTRING(NID_key_usage, key_usage_type_table); STACK_OF(CONF_VALUE) *i2v_ASN1_BIT_STRING(X509V3_EXT_METHOD *method, diff --git a/crypto/x509/v3_cpols.c b/crypto/x509/v3_cpols.c index 55aa5cac05..40dc1e3d44 100644 --- a/crypto/x509/v3_cpols.c +++ b/crypto/x509/v3_cpols.c @@ -35,7 +35,7 @@ static int nref_nos(STACK_OF(ASN1_INTEGER) *nnums, STACK_OF(CONF_VALUE) *nos); static int displaytext_str2tag(const char *tagstr, unsigned int *tag_len); static int displaytext_get_tag_len(const char *tagstr); -const X509V3_EXT_METHOD v3_cpols = { +const X509V3_EXT_METHOD ossl_v3_cpols = { NID_certificate_policies, 0, ASN1_ITEM_ref(CERTIFICATEPOLICIES), 0, 0, 0, 0, 0, 0, @@ -185,7 +185,7 @@ static POLICYINFO *policy_section(X509V3_CTX *ctx, } pol->policyid = pobj; - } else if (!v3_name_cmp(cnf->name, "CPS")) { + } else if (!ossl_v3_name_cmp(cnf->name, "CPS")) { if (pol->qualifiers == NULL) pol->qualifiers = sk_POLICYQUALINFO_new_null(); if ((qual = POLICYQUALINFO_new()) == NULL) @@ -201,7 +201,7 @@ static POLICYINFO *policy_section(X509V3_CTX *ctx, if (!ASN1_STRING_set(qual->d.cpsuri, cnf->value, strlen(cnf->value))) goto merr; - } else if (!v3_name_cmp(cnf->name, "userNotice")) { + } else if (!ossl_v3_name_cmp(cnf->name, "userNotice")) { STACK_OF(CONF_VALUE) *unot; if (*cnf->value != '@') { ERR_raise(ERR_LIB_X509V3, X509V3_R_EXPECTED_A_SECTION_NAME); diff --git a/crypto/x509/v3_crld.c b/crypto/x509/v3_crld.c index 5a3e4206fd..b36982b2f6 100644 --- a/crypto/x509/v3_crld.c +++ b/crypto/x509/v3_crld.c @@ -23,7 +23,7 @@ static void *v2i_crld(const X509V3_EXT_METHOD *method, static int i2r_crldp(const X509V3_EXT_METHOD *method, void *pcrldp, BIO *out, int indent); -const X509V3_EXT_METHOD v3_crld = { +const X509V3_EXT_METHOD ossl_v3_crld = { NID_crl_distribution_points, 0, ASN1_ITEM_ref(CRL_DIST_POINTS), 0, 0, 0, 0, 0, 0, @@ -33,7 +33,7 @@ const X509V3_EXT_METHOD v3_crld = { NULL }; -const X509V3_EXT_METHOD v3_freshest_crl = { +const X509V3_EXT_METHOD ossl_v3_freshest_crl = { NID_freshest_crl, 0, ASN1_ITEM_ref(CRL_DIST_POINTS), 0, 0, 0, 0, 0, 0, @@ -344,7 +344,7 @@ static int i2r_idp(const X509V3_EXT_METHOD *method, void *pidp, BIO *out, static void *v2i_idp(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *nval); -const X509V3_EXT_METHOD v3_idp = { +const X509V3_EXT_METHOD ossl_v3_idp = { NID_issuing_distribution_point, X509V3_EXT_MULTILINE, ASN1_ITEM_ref(ISSUING_DIST_POINT), 0, 0, 0, 0, diff --git a/crypto/x509/v3_enum.c b/crypto/x509/v3_enum.c index 5dfb257fb4..0bbd19b67b 100644 --- a/crypto/x509/v3_enum.c +++ b/crypto/x509/v3_enum.c @@ -29,7 +29,7 @@ static ENUMERATED_NAMES crl_reasons[] = { {-1, NULL, NULL} }; -const X509V3_EXT_METHOD v3_crl_reason = { +const X509V3_EXT_METHOD ossl_v3_crl_reason = { NID_crl_reason, 0, ASN1_ITEM_ref(ASN1_ENUMERATED), 0, 0, 0, 0, (X509V3_EXT_I2S)i2s_ASN1_ENUMERATED_TABLE, diff --git a/crypto/x509/v3_extku.c b/crypto/x509/v3_extku.c index 753733323e..fa114fee3a 100644 --- a/crypto/x509/v3_extku.c +++ b/crypto/x509/v3_extku.c @@ -21,7 +21,7 @@ static STACK_OF(CONF_VALUE) *i2v_EXTENDED_KEY_USAGE(const X509V3_EXT_METHOD *method, void *eku, STACK_OF(CONF_VALUE) *extlist); -const X509V3_EXT_METHOD v3_ext_ku = { +const X509V3_EXT_METHOD ossl_v3_ext_ku = { NID_ext_key_usage, 0, ASN1_ITEM_ref(EXTENDED_KEY_USAGE), 0, 0, 0, 0, @@ -33,7 +33,7 @@ const X509V3_EXT_METHOD v3_ext_ku = { }; /* NB OCSP acceptable responses also is a SEQUENCE OF OBJECT */ -const X509V3_EXT_METHOD v3_ocsp_accresp = { +const X509V3_EXT_METHOD ossl_v3_ocsp_accresp = { NID_id_pkix_OCSP_acceptableResponses, 0, ASN1_ITEM_ref(EXTENDED_KEY_USAGE), 0, 0, 0, 0, diff --git a/crypto/x509/v3_ia5.c b/crypto/x509/v3_ia5.c index 89eececd50..2697ef4da6 100644 --- a/crypto/x509/v3_ia5.c +++ b/crypto/x509/v3_ia5.c @@ -14,7 +14,7 @@ #include <openssl/x509v3.h> #include "ext_dat.h" -const X509V3_EXT_METHOD v3_ns_ia5_list[8] = { +const X509V3_EXT_METHOD ossl_v3_ns_ia5_list[8] = { EXT_IA5STRING(NID_netscape_base_url), EXT_IA5STRING(NID_netscape_revocation_url), EXT_IA5STRING(NID_netscape_ca_revocation_url), diff --git a/crypto/x509/v3_info.c b/crypto/x509/v3_info.c index 053e591088..ebef011d0e 100644 --- a/crypto/x509/v3_info.c +++ b/crypto/x509/v3_info.c @@ -25,7 +25,7 @@ static AUTHORITY_INFO_ACCESS *v2i_AUTHORITY_INFO_ACCESS(X509V3_EXT_METHOD STACK_OF(CONF_VALUE) *nval); -const X509V3_EXT_METHOD v3_info = { NID_info_access, X509V3_EXT_MULTILINE, +const X509V3_EXT_METHOD ossl_v3_info = { NID_info_access, X509V3_EXT_MULTILINE, ASN1_ITEM_ref(AUTHORITY_INFO_ACCESS), 0, 0, 0, 0, 0, 0, @@ -35,7 +35,7 @@ const X509V3_EXT_METHOD v3_info = { NID_info_access, X509V3_EXT_MULTILINE, NULL }; -const X509V3_EXT_METHOD v3_sinfo = { NID_sinfo_access, X509V3_EXT_MULTILINE, +const X509V3_EXT_METHOD ossl_v3_sinfo = { NID_sinfo_access, X509V3_EXT_MULTILINE, ASN1_ITEM_ref(AUTHORITY_INFO_ACCESS), 0, 0, 0, 0, 0, 0, diff --git a/crypto/x509/v3_int.c b/crypto/x509/v3_int.c index bd8debfafa..72e0fb38bf 100644 --- a/crypto/x509/v3_int.c +++ b/crypto/x509/v3_int.c @@ -12,7 +12,7 @@ #include <openssl/x509v3.h> #include "ext_dat.h" -const X509V3_EXT_METHOD v3_crl_num = { +const X509V3_EXT_METHOD ossl_v3_crl_num = { NID_crl_number, 0, ASN1_ITEM_ref(ASN1_INTEGER), 0, 0, 0, 0, (X509V3_EXT_I2S)i2s_ASN1_INTEGER, @@ -20,7 +20,7 @@ const X509V3_EXT_METHOD v3_crl_num = { 0, 0, 0, 0, NULL }; -const X509V3_EXT_METHOD v3_delta_crl = { +const X509V3_EXT_METHOD ossl_v3_delta_crl = { NID_delta_crl, 0, ASN1_ITEM_ref(ASN1_INTEGER), 0, 0, 0, 0, (X509V3_EXT_I2S)i2s_ASN1_INTEGER, @@ -34,7 +34,7 @@ static void *s2i_asn1_int(X509V3_EXT_METHOD *meth, X509V3_CTX *ctx, return s2i_ASN1_INTEGER(meth, value); } -const X509V3_EXT_METHOD v3_inhibit_anyp = { +const X509V3_EXT_METHOD ossl_v3_inhibit_anyp = { NID_inhibit_any_policy, 0, ASN1_ITEM_ref(ASN1_INTEGER), 0, 0, 0, 0, (X509V3_EXT_I2S)i2s_ASN1_INTEGER, diff --git a/crypto/x509/v3_ist.c b/crypto/x509/v3_ist.c index da9b4f2421..a8ccfb243f 100644 --- a/crypto/x509/v3_ist.c +++ b/crypto/x509/v3_ist.c @@ -134,7 +134,7 @@ static int i2r_issuer_sign_tool(X509V3_EXT_METHOD *method, return 1; } -const X509V3_EXT_METHOD v3_issuer_sign_tool = { +const X509V3_EXT_METHOD ossl_v3_issuer_sign_tool = { NID_issuerSignTool, /* nid */ X509V3_EXT_MULTILINE, /* flags */ ASN1_ITEM_ref(ISSUER_SIGN_TOOL), /* template */ diff --git a/crypto/x509/v3_ncons.c b/crypto/x509/v3_ncons.c index 1aa698cdd7..38d077ea35 100644 --- a/crypto/x509/v3_ncons.c +++ b/crypto/x509/v3_ncons.c @@ -39,7 +39,7 @@ static int nc_email_eai(ASN1_UTF8STRING *sub, ASN1_IA5STRING *eml); static int nc_uri(ASN1_IA5STRING *uri, ASN1_IA5STRING *base); static int nc_ip(ASN1_OCTET_STRING *ip, ASN1_OCTET_STRING *base); -const X509V3_EXT_METHOD v3_name_constraints = { +const X509V3_EXT_METHOD ossl_v3_name_constraints = { NID_name_constraints, 0, ASN1_ITEM_ref(NAME_CONSTRAINTS), 0, 0, 0, 0, diff --git a/crypto/x509/v3_pci.c b/crypto/x509/v3_pci.c index bb9fc79ccc..6c2a20b584 100644 --- a/crypto/x509/v3_pci.c +++ b/crypto/x509/v3_pci.c @@ -54,7 +54,7 @@ static int i2r_pci(X509V3_EXT_METHOD *method, PROXY_CERT_INFO_EXTENSION *ext, static PROXY_CERT_INFO_EXTENSION *r2i_pci(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, char *str); -const X509V3_EXT_METHOD v3_pci = +const X509V3_EXT_METHOD ossl_v3_pci = { NID_proxyCertInfo, 0, ASN1_ITEM_ref(PROXY_CERT_INFO_EXTENSION), 0, 0, 0, 0, 0, 0, diff --git a/crypto/x509/v3_pcons.c b/crypto/x509/v3_pcons.c index a8e8ab299f..b30a8e941d 100644 --- a/crypto/x509/v3_pcons.c +++ b/crypto/x509/v3_pcons.c @@ -22,7 +22,7 @@ static void *v2i_POLICY_CONSTRAINTS(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *values); -const X509V3_EXT_METHOD v3_policy_constraints = { +const X509V3_EXT_METHOD ossl_v3_policy_constraints = { NID_policy_constraints, 0, ASN1_ITEM_ref(POLICY_CONSTRAINTS), 0, 0, 0, 0, diff --git a/crypto/x509/v3_pku.c b/crypto/x509/v3_pku.c index 484dda813f..fef268472a 100644 --- a/crypto/x509/v3_pku.c +++ b/crypto/x509/v3_pku.c @@ -18,7 +18,7 @@ static int i2r_PKEY_USAGE_PERIOD(X509V3_EXT_METHOD *method, PKEY_USAGE_PERIOD *usage, BIO *out, int indent); -const X509V3_EXT_METHOD v3_pkey_usage_period = { +const X509V3_EXT_METHOD ossl_v3_pkey_usage_period = { NID_private_key_usage_period, 0, ASN1_ITEM_ref(PKEY_USAGE_PERIOD), 0, 0, 0, 0, 0, 0, 0, 0, diff --git a/crypto/x509/v3_pmaps.c b/crypto/x509/v3_pmaps.c index 0a76b2f38d..7d867cf6d8 100644 --- a/crypto/x509/v3_pmaps.c +++ b/crypto/x509/v3_pmaps.c @@ -20,7 +20,7 @@ static STACK_OF(CONF_VALUE) *i2v_POLICY_MAPPINGS(const X509V3_EXT_METHOD *method, void *pmps, STACK_OF(CONF_VALUE) *extlist); -const X509V3_EXT_METHOD v3_policy_mappings = { +const X509V3_EXT_METHOD ossl_v3_policy_mappings = { NID_policy_mappings, 0, ASN1_ITEM_ref(POLICY_MAPPINGS), 0, 0, 0, 0, diff --git a/crypto/x509/v3_san.c b/crypto/x509/v3_san.c index 7ad8ef30bb..ef9200cbaa 100644 --- a/crypto/x509/v3_san.c +++ b/crypto/x509/v3_san.c @@ -25,7 +25,7 @@ static int copy_issuer(X509V3_CTX *ctx, GENERAL_NAMES *gens); static int do_othername(GENERAL_NAME *gen, const char *value, X509V3_CTX *ctx); static int do_dirname(GENERAL_NAME *gen, const char *value, X509V3_CTX *ctx); -const X509V3_EXT_METHOD v3_alt[3] = { +const X509V3_EXT_METHOD ossl_v3_alt[3] = { |