Lines Matching defs:x509
2 * lws-crypto-x509
31 read_pem_c509_cert(struct lws_x509_cert **x509, const char *filename,
40 if (lws_x509_create(x509)) {
41 lwsl_err("%s: failed to create x509\n", __func__);
46 if (lws_x509_parse_from_pem(*x509, pembuf, (unsigned int)n) < 0) {
48 lws_x509_destroy(x509);
59 struct lws_x509_cert *x509 = NULL, *x509_trusted = NULL;
92 if (read_pem_c509_cert(&x509, p, pembuf, sizeof(pembuf))) {
110 if (lws_x509_verify(x509, x509_trusted, NULL)) {
140 if (lws_x509_public_to_jwk(&jwk, x509, "P-256,P-384,P-521", 4096)) {
195 lws_x509_destroy(&x509);