Lines Matching refs:cert

637   int self_signed; /* 1 if cert self-signed, 0 otherwise */
647 gnutls_x509_crt_t cert;
672 G_CHECK(gnutls_x509_crt_init(&cert), "gnutls_x509_crt_init");
674 /* Interested only in first cert in chain */
675 G_CHECK(gnutls_x509_crt_import(cert, &cert_info->cert_list[0],
678 cert_info->self_signed = gnutls_x509_crt_check_issuer(cert, cert);
682 ret = gnutls_x509_crt_get_subject_alt_name(cert, 0, dn, &size, NULL);
685 gnutls_x509_crt_deinit(cert);
691 G_CHECK(gnutls_x509_crt_get_dn(cert, dn, &size), "gnutls_x509_crt_get_dn");
693 gnutls_x509_crt_deinit(cert);
884 gnutls_x509_crt_t cert;
891 G_CHECK(gnutls_x509_crt_init(&cert), "gnutls_x509_crt_init");
893 /* Interested only in first cert in chain */
894 G_CHECK(gnutls_x509_crt_import(cert, &cert_info.cert_list[0],
898 G_CHECK(gnutls_x509_crt_export(cert, GNUTLS_X509_FMT_DER, der, &size),
900 gnutls_x509_crt_deinit(cert);
1090 gnutls_datum_t cert;
1095 cert.size = setup_data->pki_key.key.pem_buf.public_cert_len;
1096 if (setup_data->pki_key.key.pem_buf.public_cert[cert.size-1] != '\000') {
1099 cert.data = gnutls_malloc(cert.size + 1);
1100 if (!cert.data) {
1104 memcpy(cert.data, setup_data->pki_key.key.pem_buf.public_cert,
1105 cert.size);
1106 cert.data[cert.size] = '\000';
1107 cert.size++;
1110 memcpy(&cert.data,
1111 &setup_data->pki_key.key.pem_buf.public_cert, sizeof(cert.data));
1121 gnutls_free(cert.data);
1160 &cert,
1170 gnutls_free(cert.data);
1177 &cert,
1183 gnutls_free(cert.data);
1236 gnutls_datum_t cert;
1240 memcpy(&cert.data, &setup_data->pki_key.key.asn1.public_cert,
1241 sizeof(cert.data));
1242 cert.size = setup_data->pki_key.key.asn1.public_cert_len;
1269 &cert,
1282 &cert,