• Home
  • Raw
  • Download

Lines Matching refs:cert

69 g_tls_certificate_init (GTlsCertificate *cert)  in g_tls_certificate_init()  argument
259 GObject *cert; in g_tls_certificate_new_internal() local
264 cert = g_initable_new (g_tls_backend_get_certificate_type (backend), in g_tls_certificate_new_internal()
271 return G_TLS_CERTIFICATE (cert); in g_tls_certificate_new_internal()
420 GTlsCertificate *cert = NULL, *issuer = NULL, *root = NULL; in create_certificate_chain_from_list() local
437 issuer = cert; in create_certificate_chain_from_list()
438 cert = g_tls_certificate_new_internal (pem->data, key, issuer, NULL); in create_certificate_chain_from_list()
442 if (!cert) in create_certificate_chain_from_list()
447 root = cert; in create_certificate_chain_from_list()
455 flags = g_tls_certificate_verify (cert, NULL, root); in create_certificate_chain_from_list()
459 g_clear_object (&cert); in create_certificate_chain_from_list()
462 return cert; in create_certificate_chain_from_list()
473 GTlsCertificate *cert; in parse_and_create_certificate() local
482 cert = create_certificate_chain_from_list (pem_list, key_pem); in parse_and_create_certificate()
483 if (!cert) in parse_and_create_certificate()
492 cert = g_tls_certificate_new_internal (last->data, key_pem, NULL, error); in parse_and_create_certificate()
497 return cert; in parse_and_create_certificate()
532 GTlsCertificate *cert; in g_tls_certificate_new_from_pem() local
547 cert = parse_and_create_certificate (data, length, key_pem, error); in g_tls_certificate_new_from_pem()
550 return cert; in g_tls_certificate_new_from_pem()
580 GTlsCertificate *cert; in g_tls_certificate_new_from_file() local
587 cert = g_tls_certificate_new_from_pem (contents, length, error); in g_tls_certificate_new_from_file()
589 return cert; in g_tls_certificate_new_from_file()
624 GTlsCertificate *cert; in g_tls_certificate_new_from_files() local
643 cert = parse_and_create_certificate (cert_data, cert_len, key_pem, error); in g_tls_certificate_new_from_files()
646 return cert; in g_tls_certificate_new_from_files()
688 GObject *cert; in g_tls_certificate_new_from_pkcs11_uris() local
696 cert = g_initable_new (g_tls_backend_get_certificate_type (backend), in g_tls_certificate_new_from_pkcs11_uris()
702 if (cert != NULL) in g_tls_certificate_new_from_pkcs11_uris()
707 g_object_get (cert, "pkcs11-uri", &objects_uri, NULL); in g_tls_certificate_new_from_pkcs11_uris()
711 g_object_unref (cert); in g_tls_certificate_new_from_pkcs11_uris()
717 return G_TLS_CERTIFICATE (cert); in g_tls_certificate_new_from_pkcs11_uris()
754 GTlsCertificate *cert = NULL; in g_tls_certificate_list_new_from_file() local
760 cert = g_tls_certificate_new_internal (cert_pem, NULL, NULL, &parse_error); in g_tls_certificate_list_new_from_file()
763 if (!cert) in g_tls_certificate_list_new_from_file()
773 g_queue_push_tail (&queue, cert); in g_tls_certificate_list_new_from_file()
794 g_tls_certificate_get_issuer (GTlsCertificate *cert) in g_tls_certificate_get_issuer() argument
798 g_object_get (G_OBJECT (cert), "issuer", &issuer, NULL); in g_tls_certificate_get_issuer()
836 g_tls_certificate_verify (GTlsCertificate *cert, in g_tls_certificate_verify() argument
840 return G_TLS_CERTIFICATE_GET_CLASS (cert)->verify (cert, identity, trusted_ca); in g_tls_certificate_verify()