Home
last modified time | relevance | path

Searched refs:akid (Results 1 – 22 of 22) sorted by relevance

/third_party/libwebsockets/lib/tls/mbedtls/
Dmbedtls-x509.c102 lws_mbedtls_x509_authority akid; in lws_tls_mbedtls_cert_info() local
198 memset(&akid, 0, sizeof(akid)); in lws_tls_mbedtls_cert_info()
201 lws_x509_get_crt_ext(x509, &skid, &akid); in lws_tls_mbedtls_cert_info()
202 if (akid.keyIdentifier.MBEDTLS_PRIVATE(tag) != MBEDTLS_ASN1_OCTET_STRING) in lws_tls_mbedtls_cert_info()
204 buf->ns.len = (int)akid.keyIdentifier.MBEDTLS_PRIVATE(len); in lws_tls_mbedtls_cert_info()
205 if (!akid.keyIdentifier.MBEDTLS_PRIVATE(p) || in lws_tls_mbedtls_cert_info()
208 memcpy(buf->ns.name, akid.keyIdentifier.MBEDTLS_PRIVATE(p), (size_t)buf->ns.len); in lws_tls_mbedtls_cert_info()
214 memset(&akid, 0, sizeof(akid)); in lws_tls_mbedtls_cert_info()
217 lws_x509_get_crt_ext(x509, &skid, &akid); in lws_tls_mbedtls_cert_info()
219 ip = &akid.authorityCertIssuer; in lws_tls_mbedtls_cert_info()
[all …]
Dmbedtls-extensions.c371 x509_get_akid(uint8_t **p, uint8_t *end, lws_mbedtls_x509_authority *akid) in x509_get_akid() argument
383 akid->keyIdentifier.MBEDTLS_PRIVATE(len) = len; in x509_get_akid()
384 akid->keyIdentifier.MBEDTLS_PRIVATE(p) = *p; in x509_get_akid()
385 akid->keyIdentifier.MBEDTLS_PRIVATE(tag) = MBEDTLS_ASN1_OCTET_STRING; in x509_get_akid()
408 &akid->authorityCertIssuer); in x509_get_akid()
419 akid->authorityCertSerialNumber.MBEDTLS_PRIVATE(len) = len; in x509_get_akid()
420 akid->authorityCertSerialNumber.MBEDTLS_PRIVATE(p) = *p; in x509_get_akid()
421 akid->authorityCertSerialNumber.MBEDTLS_PRIVATE(tag) = MBEDTLS_ASN1_OCTET_STRING; in x509_get_akid()
435 lws_mbedtls_x509_authority *akid) in lws_x509_get_crt_ext() argument
501 r = x509_get_akid(&p, end_ext_octet, akid); in lws_x509_get_crt_ext()
Dprivate-lib-tls-mbedtls.h59 lws_mbedtls_x509_authority *akid);
Dmbedtls-client.c47 if (ssl->kid_chain.count == LWS_ARRAY_SIZE(ssl->kid_chain.akid)) in lws_mbedtls_client_verify_callback()
60 &ssl->kid_chain.akid[ssl->kid_chain.count]); in lws_mbedtls_client_verify_callback()
/third_party/libwebsockets/lib/tls/openssl/
Dopenssl-x509.c85 AUTHORITY_KEYID *akid; in lws_tls_openssl_cert_info() local
211 akid = (AUTHORITY_KEYID *)X509V3_EXT_d2i(ext); in lws_tls_openssl_cert_info()
213 akid = (AUTHORITY_KEYID *)wolfSSL_X509V3_EXT_d2i(ext); in lws_tls_openssl_cert_info()
215 if (!akid || !akid->keyid) in lws_tls_openssl_cert_info()
217 val = akid->keyid; in lws_tls_openssl_cert_info()
227 AUTHORITY_KEYID_free(akid); in lws_tls_openssl_cert_info()
240 akid = (AUTHORITY_KEYID *)X509V3_EXT_d2i(ext); in lws_tls_openssl_cert_info()
242 akid = (AUTHORITY_KEYID *)wolfSSL_X509V3_EXT_d2i(ext); in lws_tls_openssl_cert_info()
244 if (!akid || !akid->issuer) in lws_tls_openssl_cert_info()
253 cv = i2v_GENERAL_NAMES((X509V3_EXT_METHOD*)method, akid->issuer, NULL); in lws_tls_openssl_cert_info()
[all …]
Dopenssl-client.c161 LWS_ARRAY_SIZE(wsi->tls.kid_chain.akid); n++) { in OpenSSL_client_verify_callback()
175 &wsi->tls.kid_chain.akid[ in OpenSSL_client_verify_callback()
/third_party/openssl/crypto/x509/
Dv3_purp.c550 x->akid = X509_get_ext_d2i(x, NID_authority_key_identifier, &i, NULL); in ossl_x509v3_cache_extensions()
551 if (x->akid == NULL && i != -1) in ossl_x509v3_cache_extensions()
557 if (X509_check_akid(x, x->akid) == X509_V_OK /* SKID matches AKID */ in ossl_x509v3_cache_extensions()
928 ret = X509_check_akid(issuer, subject->akid); in ossl_x509_likely_issued()
953 int X509_check_akid(const X509 *issuer, const AUTHORITY_KEYID *akid) in X509_check_akid() argument
955 if (akid == NULL) in X509_check_akid()
959 if (akid->keyid && issuer->skid && in X509_check_akid()
960 ASN1_OCTET_STRING_cmp(akid->keyid, issuer->skid)) in X509_check_akid()
963 if (akid->serial && in X509_check_akid()
964 ASN1_INTEGER_cmp(X509_get0_serialNumber(issuer), akid->serial)) in X509_check_akid()
[all …]
Dx_crl.c170 AUTHORITY_KEYID_free(crl->akid); in crl_cb()
179 crl->akid = NULL; in crl_cb()
204 crl->akid = X509_CRL_get_ext_d2i(crl, in crl_cb()
207 if (crl->akid == NULL && i != -1) in crl_cb()
266 AUTHORITY_KEYID_free(crl->akid); in crl_cb()
Dx_x509.c47 AUTHORITY_KEYID_free(ret->akid); in x509_cb()
69 ret->akid = NULL; in x509_cb()
88 AUTHORITY_KEYID_free(ret->akid); in x509_cb()
Dx509_vfy.c560 CB_FAIL_IF(x->akid != NULL in check_extensions()
572 && (x->akid == NULL || x->akid->keyid == NULL), ctx, in check_extensions()
1274 if (X509_check_akid(crl_issuer, crl->akid) == X509_V_OK) { in crl_akid_check()
1286 if (X509_check_akid(crl_issuer, crl->akid) == X509_V_OK) { in crl_akid_check()
1305 if (X509_check_akid(crl_issuer, crl->akid) == X509_V_OK) { in crl_akid_check()
/third_party/libwebsockets/lib/tls/
Dtls-jit-trust.c133 &ch->akid[n + 1])) in lws_tls_jit_trust_sort_kids()
147 &ch->akid[m])) { in lws_tls_jit_trust_sort_kids()
157 t = ch->akid[m]; in lws_tls_jit_trust_sort_kids()
158 ch->akid[m] = ch->akid[n]; in lws_tls_jit_trust_sort_kids()
159 ch->akid[n] = t; in lws_tls_jit_trust_sort_kids()
178 lwsl_hexdump_info(ch->akid[n].kid, ch->akid[n].kid_len); in lws_tls_jit_trust_sort_kids()
226 ch->akid[n].kid, (size_t)ch->akid[n].kid_len, in lws_tls_jit_trust_sort_kids()
Dprivate-jit-trust.h66 lws_tls_kid_t akid[4]; member
/third_party/openssl/test/certs/
Dmkcert.sh106 local akid="authorityKeyIdentifier = keyid"
108 exts=$(printf "%s\n%s\n%s\n" "$bcon" "$ku" "$skid" "$akid")
140 local akid="authorityKeyIdentifier = keyid"
142 exts=$(printf "%s\n%s\n%s\n" "$bcon" "$ku" "$skid" "$akid")
162 local akid="authorityKeyIdentifier = keyid"
164 exts=$(printf "%s\n%s\n%s\n" "$skid" "$akid")
/third_party/openssl/ohos_lite/include/crypto/
Dx509.h99 AUTHORITY_KEYID *akid; member
175 AUTHORITY_KEYID *akid; member
/third_party/openssl/include/crypto/
Dx509.h110 AUTHORITY_KEYID *akid; member
189 AUTHORITY_KEYID *akid; member
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/
Dx509v3.rs30 pub fn AUTHORITY_KEYID_free(akid: *mut AUTHORITY_KEYID); in AUTHORITY_KEYID_free()
Dtypes.rs275 akid: *mut c_void,
301 akid: *mut c_void,
Dx509.rs46 akid: *mut c_void,
/third_party/openssl/apps/
Dx509.c198 ASN1_OBJECT *akid = OBJ_nid2obj(NID_authority_key_identifier); in x509_to_req() local
210 warn_copying(akid, names); in x509_to_req()
217 if (OBJ_cmp(obj, skid) != 0 && OBJ_cmp(obj, akid) != 0 in x509_to_req()
/third_party/openssl/ohos_lite/include/openssl/
Dx509v3.h655 int X509_check_akid(X509 *issuer, AUTHORITY_KEYID *akid);
/third_party/openssl/include/openssl/
Dx509v3.h.in717 int X509_check_akid(const X509 *issuer, const AUTHORITY_KEYID *akid);
/third_party/openssl/crypto/err/
Dopenssl.txt1660 X509_R_AKID_MISMATCH:110:akid mismatch