Lines Matching refs:akid
102 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()
224 if (akid.keyIdentifier.MBEDTLS_PRIVATE(tag) != MBEDTLS_ASN1_OCTET_STRING || in lws_tls_mbedtls_cert_info()
240 memset(&akid, 0, sizeof(akid)); in lws_tls_mbedtls_cert_info()
243 lws_x509_get_crt_ext(x509, &skid, &akid); in lws_tls_mbedtls_cert_info()
245 if (akid.authorityCertSerialNumber.MBEDTLS_PRIVATE(tag) != MBEDTLS_ASN1_OCTET_STRING) in lws_tls_mbedtls_cert_info()
247 buf->ns.len = (int)akid.authorityCertSerialNumber.MBEDTLS_PRIVATE(len); in lws_tls_mbedtls_cert_info()
248 if (!akid.authorityCertSerialNumber.MBEDTLS_PRIVATE(p) || in lws_tls_mbedtls_cert_info()
251 memcpy(buf->ns.name, akid.authorityCertSerialNumber. in lws_tls_mbedtls_cert_info()
257 memset(&akid, 0, sizeof(akid)); in lws_tls_mbedtls_cert_info()
260 lws_x509_get_crt_ext(x509, &skid, &akid); in lws_tls_mbedtls_cert_info()