Lines Matching refs:cert
317 return lws_tls_mbedtls_cert_info(&x509->cert, type, buf, len);
338 mbedtls_x509_crt_init(&x509->cert);
340 ret = mbedtls_x509_crt_parse(&x509->cert, pem, len);
343 mbedtls_x509_crt_free(&x509->cert);
344 lwsl_err("%s: unable to parse PEM cert: -0x%x\n",
360 ret = mbedtls_x509_crt_verify_with_profile(&x509->cert, &trusted->cert,
367 lwsl_err("%s: unable to parse PEM cert: -0x%x\n",
382 int kt = (int)mbedtls_pk_get_type(&x509->cert.MBEDTLS_PRIVATE_V30_ONLY(pk)),
394 rsactx = mbedtls_pk_rsa(x509->cert.MBEDTLS_PRIVATE_V30_ONLY(pk));
412 ecpctx = mbedtls_pk_ec(x509->cert.MBEDTLS_PRIVATE_V30_ONLY(pk));
536 mbedtls_x509_crt_free(&(*x509)->cert);