Lines Matching refs:cert
38 qcrypto_tls_creds_check_cert_times(gnutls_x509_crt_t cert, in qcrypto_tls_creds_check_cert_times() argument
51 if (gnutls_x509_crt_get_expiration_time(cert) < now) { in qcrypto_tls_creds_check_cert_times()
62 if (gnutls_x509_crt_get_activation_time(cert) > now) { in qcrypto_tls_creds_check_cert_times()
79 gnutls_x509_crt_t cert, in qcrypto_tls_creds_check_cert_basic_constraints() argument
87 status = gnutls_x509_crt_get_basic_constraints(cert, NULL, NULL, NULL); in qcrypto_tls_creds_check_cert_basic_constraints()
131 gnutls_x509_crt_t cert, in qcrypto_tls_creds_check_cert_key_usage() argument
140 status = gnutls_x509_crt_get_key_usage(cert, &usage, &critical); in qcrypto_tls_creds_check_cert_key_usage()
190 gnutls_x509_crt_t cert, in qcrypto_tls_creds_check_cert_key_purpose() argument
206 status = gnutls_x509_crt_get_key_purpose_oid(cert, i, buffer, in qcrypto_tls_creds_check_cert_key_purpose()
227 status = gnutls_x509_crt_get_key_purpose_oid(cert, i, buffer, in qcrypto_tls_creds_check_cert_key_purpose()
283 gnutls_x509_crt_t cert, in qcrypto_tls_creds_check_cert() argument
289 if (qcrypto_tls_creds_check_cert_times(cert, certFile, in qcrypto_tls_creds_check_cert()
296 cert, certFile, in qcrypto_tls_creds_check_cert()
303 cert, certFile, in qcrypto_tls_creds_check_cert()
310 cert, certFile, in qcrypto_tls_creds_check_cert()
320 qcrypto_tls_creds_check_cert_pair(gnutls_x509_crt_t cert, in qcrypto_tls_creds_check_cert_pair() argument
330 if (gnutls_x509_crt_list_verify(&cert, 1, in qcrypto_tls_creds_check_cert_pair()
379 gnutls_x509_crt_t cert = NULL; in qcrypto_tls_creds_load_cert() local
388 err = gnutls_x509_crt_init(&cert); in qcrypto_tls_creds_load_cert()
405 err = gnutls_x509_crt_import(cert, &data, GNUTLS_X509_FMT_PEM); in qcrypto_tls_creds_load_cert()
419 gnutls_x509_crt_deinit(cert); in qcrypto_tls_creds_load_cert()
420 cert = NULL; in qcrypto_tls_creds_load_cert()
422 return cert; in qcrypto_tls_creds_load_cert()
473 gnutls_x509_crt_t cert = NULL; in qcrypto_tls_creds_x509_sanity_check() local
482 cert = qcrypto_tls_creds_load_cert(creds, in qcrypto_tls_creds_x509_sanity_check()
485 if (!cert) { in qcrypto_tls_creds_x509_sanity_check()
498 if (cert && in qcrypto_tls_creds_x509_sanity_check()
500 cert, certFile, isServer, in qcrypto_tls_creds_x509_sanity_check()
513 if (cert && ncacerts && in qcrypto_tls_creds_x509_sanity_check()
514 qcrypto_tls_creds_check_cert_pair(cert, certFile, cacerts, in qcrypto_tls_creds_x509_sanity_check()
523 if (cert) { in qcrypto_tls_creds_x509_sanity_check()
524 gnutls_x509_crt_deinit(cert); in qcrypto_tls_creds_x509_sanity_check()
537 char *cacert = NULL, *cacrl = NULL, *cert = NULL, in qcrypto_tls_creds_x509_load() local
554 true, &cert, errp) < 0 || in qcrypto_tls_creds_x509_load()
569 false, &cert, errp) < 0 || in qcrypto_tls_creds_x509_load()
580 cacert, cert, errp) < 0) { in qcrypto_tls_creds_x509_load()
600 if (cert != NULL && key != NULL) { in qcrypto_tls_creds_x509_load()
610 cert, key, in qcrypto_tls_creds_x509_load()
617 cert, key, gnutls_strerror(ret)); in qcrypto_tls_creds_x509_load()
647 g_free(cert); in qcrypto_tls_creds_x509_load()