Home
last modified time | relevance | path

Searched refs:akid (Results 1 - 25 of 83) sorted by relevance

1234

/third_party/libwebsockets/lib/tls/mbedtls/
H A 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_V30_ONLY(tag) != MBEDTLS_ASN1_OCTET_STRING) in lws_tls_mbedtls_cert_info()
204 buf->ns.len = (int)akid.keyIdentifier.MBEDTLS_PRIVATE_V30_ONLY(len); in lws_tls_mbedtls_cert_info()
205 if (!akid.keyIdentifier.MBEDTLS_PRIVATE_V30_ONLY(p) || in lws_tls_mbedtls_cert_info()
208 memcpy(buf->ns.name, akid.keyIdentifier.MBEDTLS_PRIVATE_V30_ONLY(p), (size_t)buf->ns.len); in lws_tls_mbedtls_cert_info()
214 memset(&akid, 0, sizeof(akid)); in lws_tls_mbedtls_cert_info()
[all...]
H A 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_V30_ONLY(len) = len; in x509_get_akid()
384 akid->keyIdentifier.MBEDTLS_PRIVATE_V30_ONLY(p) = *p; in x509_get_akid()
385 akid->keyIdentifier.MBEDTLS_PRIVATE_V30_ONLY(tag) = MBEDTLS_ASN1_OCTET_STRING; in x509_get_akid()
408 &akid->authorityCertIssuer); in x509_get_akid()
419 akid->authorityCertSerialNumber.MBEDTLS_PRIVATE_V30_ONLY(len) = len; in x509_get_akid()
420 akid->authorityCertSerialNumber.MBEDTLS_PRIVATE_V30_ONLY(p) = *p; in x509_get_akid()
421 akid->authorityCertSerialNumber.MBEDTLS_PRIVATE_V30_ONLY(tag) = MBEDTLS_ASN1_OCTET_STRING; in x509_get_akid()
435 lws_mbedtls_x509_authority *akid) in lws_x509_get_crt_ext()
501 r = x509_get_akid(&p, end_ext_octet, akid); in lws_x509_get_crt_ext()
434 lws_x509_get_crt_ext(mbedtls_x509_crt *crt, mbedtls_x509_buf *skid, lws_mbedtls_x509_authority *akid) lws_x509_get_crt_ext() argument
[all...]
H A Dprivate-lib-tls-mbedtls.h59 lws_mbedtls_x509_authority *akid);
H A 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/
H A 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 || !aki in lws_tls_openssl_cert_info()
[all...]
H A Dopenssl-client.c163 LWS_ARRAY_SIZE(wsi->tls.kid_chain.akid); n++) { in OpenSSL_client_verify_callback()
177 &wsi->tls.kid_chain.akid[ in OpenSSL_client_verify_callback()
/third_party/node/deps/openssl/openssl/crypto/x509/
H A 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()
898 * 2. If akid(subject) exists, it matches the respective issuer fields.
923 /* set issuer->skid and subject->akid */ in ossl_x509_likely_issued()
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 in X509_check_akid()
[all...]
H A Dx_crl.c170 AUTHORITY_KEYID_free(crl->akid);
179 crl->akid = NULL;
204 crl->akid = X509_CRL_get_ext_d2i(crl,
207 if (crl->akid == NULL && i != -1)
266 AUTHORITY_KEYID_free(crl->akid);
H A 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()
H A 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/openssl/crypto/x509/
H A 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()
898 * 2. If akid(subject) exists, it matches the respective issuer fields.
923 /* set issuer->skid and subject->akid */ in ossl_x509_likely_issued()
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 in X509_check_akid()
[all...]
H A Dx_crl.c170 AUTHORITY_KEYID_free(crl->akid);
179 crl->akid = NULL;
204 crl->akid = X509_CRL_get_ext_d2i(crl,
207 if (crl->akid == NULL && i != -1)
266 AUTHORITY_KEYID_free(crl->akid);
H A 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()
H A 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/
H A 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[ in lws_tls_jit_trust_sort_kids()
[all...]
H A Dprivate-jit-trust.h66 lws_tls_kid_t akid[4]; member
/third_party/openssl/test/certs/
H A Dmkcert.sh106 local akid="authorityKeyIdentifier = keyid"
108 exts=$(printf "%s\n%s\n%s\n" "$bcon" "$ku" "$skid" "$akid")
141 local akid="authorityKeyIdentifier = keyid"
143 exts=$(printf "%s\n%s\n%s\n" "$bcon" "$ku" "$skid" "$akid")
167 local akid="authorityKeyIdentifier = keyid"
169 exts=$(printf "%s\n%s\n%s\n" "$skid" "$akid")
/third_party/openssl/ohos_lite/include/crypto/
H A Dx509.h99 AUTHORITY_KEYID *akid; member
175 AUTHORITY_KEYID *akid; member
/third_party/node/deps/openssl/openssl/include/crypto/
H A Dx509.h110 AUTHORITY_KEYID *akid; member
189 AUTHORITY_KEYID *akid; member
/third_party/openssl/include/crypto/
H A Dx509.h110 AUTHORITY_KEYID *akid; member
189 AUTHORITY_KEYID *akid; member
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/
H A Dx509v3.rs36 pub fn AUTHORITY_KEYID_free(akid: *mut AUTHORITY_KEYID); in AUTHORITY_KEYID_free()
H A Dtypes.rs290 akid: *mut c_void,
316 akid: *mut c_void,
/third_party/node/deps/openssl/openssl/apps/
H A 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/apps/
H A 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/
H A Dx509v3.h655 int X509_check_akid(X509 *issuer, AUTHORITY_KEYID *akid);

Completed in 27 milliseconds

1234