Home
last modified time | relevance | path

Searched refs:cert_info (Results 1 – 25 of 59) sorted by relevance

123

/external/rust/crates/quiche/deps/boringssl/src/crypto/x509/
Dx509_set.c69 if (x509->cert_info->version == NULL) { in X509_get_version()
72 return ASN1_INTEGER_get(x509->cert_info->version); in X509_get_version()
81 ASN1_INTEGER_free(x->cert_info->version); in X509_set_version()
82 x->cert_info->version = NULL; in X509_set_version()
85 if (x->cert_info->version == NULL) { in X509_set_version()
86 if ((x->cert_info->version = ASN1_INTEGER_new()) == NULL) in X509_set_version()
89 return (ASN1_INTEGER_set(x->cert_info->version, version)); in X509_set_version()
98 in = x->cert_info->serialNumber; in X509_set_serialNumber()
102 ASN1_INTEGER_free(x->cert_info->serialNumber); in X509_set_serialNumber()
103 x->cert_info->serialNumber = in; in X509_set_serialNumber()
[all …]
Dx509_cmp.c79 ai = a->cert_info; in X509_issuer_and_serial_cmp()
80 bi = b->cert_info; in X509_issuer_and_serial_cmp()
89 return (X509_NAME_cmp(a->cert_info->issuer, b->cert_info->issuer)); in X509_issuer_name_cmp()
94 return (X509_NAME_cmp(a->cert_info->subject, b->cert_info->subject)); in X509_subject_name_cmp()
109 return (a->cert_info->issuer); in X509_get_issuer_name()
114 return (X509_NAME_hash(x->cert_info->issuer)); in X509_issuer_name_hash()
119 return (X509_NAME_hash_old(x->cert_info->issuer)); in X509_issuer_name_hash_old()
124 return (a->cert_info->subject); in X509_get_subject_name()
129 return (a->cert_info->serialNumber); in X509_get_serialNumber()
134 return x509->cert_info->serialNumber; in X509_get0_serialNumber()
[all …]
Dx509_ext.c117 return (X509v3_get_ext_count(x->cert_info->extensions)); in X509_get_ext_count()
122 return (X509v3_get_ext_by_NID(x->cert_info->extensions, nid, lastpos)); in X509_get_ext_by_NID()
127 return (X509v3_get_ext_by_OBJ(x->cert_info->extensions, obj, lastpos)); in X509_get_ext_by_OBJ()
133 (x->cert_info->extensions, crit, lastpos)); in X509_get_ext_by_critical()
138 return (X509v3_get_ext(x->cert_info->extensions, loc)); in X509_get_ext()
143 return (X509v3_delete_ext(x->cert_info->extensions, loc)); in X509_delete_ext()
148 return (X509v3_add_ext(&(x->cert_info->extensions), ex, loc) != NULL); in X509_add_ext()
154 return X509V3_get_d2i(x509->cert_info->extensions, nid, out_critical, in X509_get_ext_d2i()
161 return X509V3_add1_i2d(&x->cert_info->extensions, nid, value, crit, in X509_add1_ext_i2d()
Dx_x509.c121 if (ret->cert_info->version != NULL) { in x509_cb()
122 version = ASN1_INTEGER_get(ret->cert_info->version); in x509_cb()
133 if (version == 0 && (ret->cert_info->issuerUID != NULL || in x509_cb()
134 ret->cert_info->subjectUID != NULL)) { in x509_cb()
140 if (version != 2 && ret->cert_info->extensions != NULL) { in x509_cb()
168 ASN1_SIMPLE(X509, cert_info, X509_CINF),
188 x509->cert_info->enc.alias_only_on_next_parse = 1;
341 x509->cert_info->enc.modified = 1; in i2d_re_X509_tbs()
342 return i2d_X509_CINF(x509->cert_info, outp); in i2d_re_X509_tbs()
347 return i2d_X509_CINF(x509->cert_info, outp); in i2d_X509_tbs()
[all …]
Dx_all.c74 if (X509_ALGOR_cmp(x509->sig_alg, x509->cert_info->signature)) { in X509_verify()
79 x509->signature, x509->cert_info, pkey); in X509_verify()
90 x->cert_info->enc.modified = 1; in X509_sign()
91 return (ASN1_item_sign(ASN1_ITEM_rptr(X509_CINF), x->cert_info->signature, in X509_sign()
92 x->sig_alg, x->signature, x->cert_info, pkey, md)); in X509_sign()
97 x->cert_info->enc.modified = 1; in X509_sign_ctx()
99 x->cert_info->signature, in X509_sign_ctx()
100 x->sig_alg, x->signature, x->cert_info, ctx); in X509_sign_ctx()
Dt_x509.c113 ci = x->cert_info; in X509_print_ex()
259 derlen = i2d_X509_NAME(x->cert_info->subject, NULL); in X509_ocspid_print()
262 i2d_X509_NAME(x->cert_info->subject, &dertmp); in X509_ocspid_print()
279 if (!EVP_Digest(x->cert_info->key->public_key->data, in X509_ocspid_print()
280 x->cert_info->key->public_key->length, in X509_ocspid_print()
/external/boringssl/src/crypto/x509/
Dx509_set.c68 if (x509->cert_info->version == NULL) { in X509_get_version()
71 return ASN1_INTEGER_get(x509->cert_info->version); in X509_get_version()
86 ASN1_INTEGER_free(x->cert_info->version); in X509_set_version()
87 x->cert_info->version = NULL; in X509_set_version()
91 if (x->cert_info->version == NULL) { in X509_set_version()
92 x->cert_info->version = ASN1_INTEGER_new(); in X509_set_version()
93 if (x->cert_info->version == NULL) { in X509_set_version()
97 return ASN1_INTEGER_set_int64(x->cert_info->version, version); in X509_set_version()
110 in = x->cert_info->serialNumber; in X509_set_serialNumber()
114 ASN1_INTEGER_free(x->cert_info->serialNumber); in X509_set_serialNumber()
[all …]
Dx509_cmp.c74 return (X509_NAME_cmp(a->cert_info->issuer, b->cert_info->issuer)); in X509_issuer_name_cmp()
78 return (X509_NAME_cmp(a->cert_info->subject, b->cert_info->subject)); in X509_subject_name_cmp()
90 return a->cert_info->issuer; in X509_get_issuer_name()
94 return (X509_NAME_hash(x->cert_info->issuer)); in X509_issuer_name_hash()
98 return (X509_NAME_hash_old(x->cert_info->issuer)); in X509_issuer_name_hash_old()
102 return a->cert_info->subject; in X509_get_subject_name()
106 return a->cert_info->serialNumber; in X509_get_serialNumber()
110 return x509->cert_info->serialNumber; in X509_get0_serialNumber()
114 return (X509_NAME_hash(x->cert_info->subject)); in X509_subject_name_hash()
118 return (X509_NAME_hash_old(x->cert_info->subject)); in X509_subject_name_hash_old()
[all …]
Dx509_ext.c106 return (X509v3_get_ext_count(x->cert_info->extensions)); in X509_get_ext_count()
110 return (X509v3_get_ext_by_NID(x->cert_info->extensions, nid, lastpos)); in X509_get_ext_by_NID()
114 return (X509v3_get_ext_by_OBJ(x->cert_info->extensions, obj, lastpos)); in X509_get_ext_by_OBJ()
118 return (X509v3_get_ext_by_critical(x->cert_info->extensions, crit, lastpos)); in X509_get_ext_by_critical()
122 return (X509v3_get_ext(x->cert_info->extensions, loc)); in X509_get_ext()
126 return (X509v3_delete_ext(x->cert_info->extensions, loc)); in X509_delete_ext()
130 return (X509v3_add_ext(&(x->cert_info->extensions), ex, loc) != NULL); in X509_add_ext()
135 return X509V3_get_d2i(x509->cert_info->extensions, nid, out_critical, in X509_get_ext_d2i()
141 return X509V3_add1_i2d(&x->cert_info->extensions, nid, value, crit, flags); in X509_add1_ext_i2d()
Dx_x509.c114 ret->cert_info = X509_CINF_new(); in X509_new()
117 if (ret->cert_info == NULL || ret->sig_alg == NULL || in X509_new()
133 X509_CINF_free(x509->cert_info); in X509_free()
185 if (ASN1_item_ex_d2i((ASN1_VALUE **)&ret->cert_info, &inp, CBS_len(&tbs), in x509_parse()
206 if (ret->cert_info->version != NULL) { in x509_parse()
207 version = ASN1_INTEGER_get(ret->cert_info->version); in x509_parse()
218 if (version == X509_VERSION_1 && (ret->cert_info->issuerUID != NULL || in x509_parse()
219 ret->cert_info->subjectUID != NULL)) { in x509_parse()
225 if (version != X509_VERSION_3 && ret->cert_info->extensions != NULL) { in x509_parse()
276 int len = i2d_X509_CINF(x509->cert_info, NULL); in i2d_X509()
[all …]
Dx_all.c74 if (X509_ALGOR_cmp(x509->sig_alg, x509->cert_info->signature)) { in X509_verify()
79 x509->signature, x509->cert_info, pkey); in X509_verify()
88 asn1_encoding_clear(&x->cert_info->enc); in X509_sign()
89 return (ASN1_item_sign(ASN1_ITEM_rptr(X509_CINF), x->cert_info->signature, in X509_sign()
90 x->sig_alg, x->signature, x->cert_info, pkey, md)); in X509_sign()
94 asn1_encoding_clear(&x->cert_info->enc); in X509_sign_ctx()
95 return ASN1_item_sign_ctx(ASN1_ITEM_rptr(X509_CINF), x->cert_info->signature, in X509_sign_ctx()
96 x->sig_alg, x->signature, x->cert_info, ctx); in X509_sign_ctx()
/external/cronet/third_party/boringssl/src/crypto/x509/
Dx509_set.c68 if (x509->cert_info->version == NULL) { in X509_get_version()
71 return ASN1_INTEGER_get(x509->cert_info->version); in X509_get_version()
86 ASN1_INTEGER_free(x->cert_info->version); in X509_set_version()
87 x->cert_info->version = NULL; in X509_set_version()
91 if (x->cert_info->version == NULL) { in X509_set_version()
92 x->cert_info->version = ASN1_INTEGER_new(); in X509_set_version()
93 if (x->cert_info->version == NULL) { in X509_set_version()
97 return ASN1_INTEGER_set_int64(x->cert_info->version, version); in X509_set_version()
110 in = x->cert_info->serialNumber; in X509_set_serialNumber()
114 ASN1_INTEGER_free(x->cert_info->serialNumber); in X509_set_serialNumber()
[all …]
Dx509_cmp.c74 return (X509_NAME_cmp(a->cert_info->issuer, b->cert_info->issuer)); in X509_issuer_name_cmp()
78 return (X509_NAME_cmp(a->cert_info->subject, b->cert_info->subject)); in X509_subject_name_cmp()
90 return a->cert_info->issuer; in X509_get_issuer_name()
94 return (X509_NAME_hash(x->cert_info->issuer)); in X509_issuer_name_hash()
98 return (X509_NAME_hash_old(x->cert_info->issuer)); in X509_issuer_name_hash_old()
102 return a->cert_info->subject; in X509_get_subject_name()
106 return a->cert_info->serialNumber; in X509_get_serialNumber()
110 return x509->cert_info->serialNumber; in X509_get0_serialNumber()
114 return (X509_NAME_hash(x->cert_info->subject)); in X509_subject_name_hash()
118 return (X509_NAME_hash_old(x->cert_info->subject)); in X509_subject_name_hash_old()
[all …]
Dx509_ext.c106 return (X509v3_get_ext_count(x->cert_info->extensions)); in X509_get_ext_count()
110 return (X509v3_get_ext_by_NID(x->cert_info->extensions, nid, lastpos)); in X509_get_ext_by_NID()
114 return (X509v3_get_ext_by_OBJ(x->cert_info->extensions, obj, lastpos)); in X509_get_ext_by_OBJ()
118 return (X509v3_get_ext_by_critical(x->cert_info->extensions, crit, lastpos)); in X509_get_ext_by_critical()
122 return (X509v3_get_ext(x->cert_info->extensions, loc)); in X509_get_ext()
126 return (X509v3_delete_ext(x->cert_info->extensions, loc)); in X509_delete_ext()
130 return (X509v3_add_ext(&(x->cert_info->extensions), ex, loc) != NULL); in X509_add_ext()
135 return X509V3_get_d2i(x509->cert_info->extensions, nid, out_critical, in X509_get_ext_d2i()
141 return X509V3_add1_i2d(&x->cert_info->extensions, nid, value, crit, flags); in X509_add1_ext_i2d()
Dx_x509.c114 ret->cert_info = X509_CINF_new(); in X509_new()
117 if (ret->cert_info == NULL || ret->sig_alg == NULL || in X509_new()
133 X509_CINF_free(x509->cert_info); in X509_free()
185 if (ASN1_item_ex_d2i((ASN1_VALUE **)&ret->cert_info, &inp, CBS_len(&tbs), in x509_parse()
206 if (ret->cert_info->version != NULL) { in x509_parse()
207 version = ASN1_INTEGER_get(ret->cert_info->version); in x509_parse()
218 if (version == X509_VERSION_1 && (ret->cert_info->issuerUID != NULL || in x509_parse()
219 ret->cert_info->subjectUID != NULL)) { in x509_parse()
225 if (version != X509_VERSION_3 && ret->cert_info->extensions != NULL) { in x509_parse()
276 int len = i2d_X509_CINF(x509->cert_info, NULL); in i2d_X509()
[all …]
Dx_all.c74 if (X509_ALGOR_cmp(x509->sig_alg, x509->cert_info->signature)) { in X509_verify()
79 x509->signature, x509->cert_info, pkey); in X509_verify()
88 asn1_encoding_clear(&x->cert_info->enc); in X509_sign()
89 return (ASN1_item_sign(ASN1_ITEM_rptr(X509_CINF), x->cert_info->signature, in X509_sign()
90 x->sig_alg, x->signature, x->cert_info, pkey, md)); in X509_sign()
94 asn1_encoding_clear(&x->cert_info->enc); in X509_sign_ctx()
95 return ASN1_item_sign_ctx(ASN1_ITEM_rptr(X509_CINF), x->cert_info->signature, in X509_sign_ctx()
96 x->sig_alg, x->signature, x->cert_info, ctx); in X509_sign_ctx()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/tls/
Dgrpc_tls_certificate_distributor.cc32 auto& cert_info = certificate_info_map_[cert_name]; in SetKeyMaterials() local
35 cert_info.SetRootError(GRPC_ERROR_NONE); in SetKeyMaterials()
36 for (auto* watcher_ptr : cert_info.root_cert_watchers) { in SetKeyMaterials()
56 cert_info.pem_root_certs = std::move(*pem_root_certs); in SetKeyMaterials()
60 cert_info.SetIdentityError(GRPC_ERROR_NONE); in SetKeyMaterials()
61 for (const auto watcher_ptr : cert_info.identity_cert_watchers) { in SetKeyMaterials()
82 cert_info.pem_key_cert_pairs = std::move(*pem_key_cert_pairs); in SetKeyMaterials()
108 CertificateInfo& cert_info = certificate_info_map_[cert_name]; in SetErrorForCert() local
110 for (auto* watcher_ptr : cert_info.root_cert_watchers) { in SetErrorForCert()
128 cert_info.SetRootError(*root_cert_error); in SetErrorForCert()
[all …]
/external/cronet/net/cert/
Dnss_cert_database.cc502 for (auto& cert_info : certs_info) in ExtractCertificates() local
503 certs.push_back(std::move(cert_info.cert)); in ExtractCertificates()
544 CertInfo cert_info; in ListCertsInfoImpl() local
545 cert_info.cert = x509_util::DupCERTCertificate(node.cert.get()); in ListCertsInfoImpl()
547 cert_info.untrusted = in ListCertsInfoImpl()
548 IsUntrustedUsingTrustStore(cert_info.cert.get(), node.trust); in ListCertsInfoImpl()
549 cert_info.web_trust_anchor = node.trust.IsTrustAnchor(); in ListCertsInfoImpl()
550 cert_info.on_read_only_slot = IsReadOnly(cert_info.cert.get()); in ListCertsInfoImpl()
551 cert_info.hardware_backed = IsHardwareBacked(cert_info.cert.get()); in ListCertsInfoImpl()
553 certs_info.push_back(std::move(cert_info)); in ListCertsInfoImpl()
[all …]
Dnss_cert_database_chromeos.cc133 base::EraseIf(certs_info, [&profile_filter](CertInfo& cert_info) { in ListCertsInfoImpl() argument
134 return !profile_filter.IsCertAllowed(cert_info.cert.get()); in ListCertsInfoImpl()
139 for (auto& cert_info : certs_info) { in ListCertsInfoImpl() local
140 cert_info.device_wide = in ListCertsInfoImpl()
141 IsCertificateOnSlot(cert_info.cert.get(), system_slot.get()); in ListCertsInfoImpl()
142 cert_info.hardware_backed = IsHardwareBacked(cert_info.cert.get()); in ListCertsInfoImpl()
/external/cronet/net/cert/internal/
Dtrust_store_chrome.cc73 for (const auto& cert_info : certs) { in TrustStoreChrome() local
83 cert_info.root_cert_der); in TrustStoreChrome()
85 cert = x509_util::CreateCryptoBuffer(cert_info.root_cert_der); in TrustStoreChrome()
135 for (const auto& cert_info : kChromeRootCertList) { in CompiledChromeRootStoreAnchors() local
138 cert_info.root_cert_der); in CompiledChromeRootStoreAnchors()
/external/python/oauth2client/oauth2client/
D_pure_python_crypt.py120 cert_info = asn1_cert['tbsCertificate']['subjectPublicKeyInfo']
121 key_bytes = _bit_list_to_bytes(cert_info['subjectPublicKey'])
/external/curl/lib/vtls/
Dschannel_verify.c347 CERT_INFO *cert_info = NULL; in cert_get_name_string() local
387 cert_info = cert_context->pCertInfo; in cert_get_name_string()
388 if(!cert_info) { in cert_get_name_string()
394 cert_info->cExtension, in cert_get_name_string()
395 cert_info->rgExtension); in cert_get_name_string()
/external/python/google-auth-library-python/google/auth/crypt/
D_python_rsa.py106 cert_info = asn1_cert["tbsCertificate"]["subjectPublicKeyInfo"]
107 key_bytes = _bit_list_to_bytes(cert_info["subjectPublicKey"])
/external/cronet/net/http/
Dhttp_stream_factory_job.h102 SSLCertRequestInfo* cert_info) = 0;
282 void OnNeedsClientAuthCallback(SSLCertRequestInfo* cert_info);
/external/boringssl/src/crypto/x509v3/
Dv3_skey.c133 pk = ctx->subject_cert->cert_info->key->public_key; in s2i_skey_id()

123