Lines Matching refs:cert_info
620 coap_gnutls_certificate_info_t *cert_info) in get_san_or_cn() argument
630 cert_info->certificate_type = gnutls_certificate_type_get2(g_session, in get_san_or_cn()
633 cert_info->certificate_type = gnutls_certificate_type_get(g_session); in get_san_or_cn()
636 cert_info->san_or_cn = NULL; in get_san_or_cn()
638 cert_info->cert_list = gnutls_certificate_get_peers(g_session, in get_san_or_cn()
639 &cert_info->cert_list_size); in get_san_or_cn()
640 if (cert_info->cert_list_size == 0) { in get_san_or_cn()
644 if (cert_info->certificate_type != GNUTLS_CRT_X509) in get_san_or_cn()
645 return cert_info->certificate_type; in get_san_or_cn()
650 G_CHECK(gnutls_x509_crt_import(cert, &cert_info->cert_list[0], in get_san_or_cn()
653 cert_info->self_signed = gnutls_x509_crt_check_issuer(cert, cert); in get_san_or_cn()
661 cert_info->san_or_cn = gnutls_strdup(dn); in get_san_or_cn()
662 return cert_info->certificate_type; in get_san_or_cn()
688 cert_info->san_or_cn = gnutls_strdup(cn); in get_san_or_cn()
689 return cert_info->certificate_type; in get_san_or_cn()
699 cert_info.san_or_cn : \
704 cert_info.san_or_cn : "?")
710 coap_gnutls_certificate_info_t *cert_info, in check_rpk_cert() argument
719 G_CHECK(gnutls_pcert_import_rawpk_raw(&pcert, &cert_info->cert_list[0], in check_rpk_cert()
758 coap_gnutls_certificate_info_t cert_info; in cert_verify_gnutls() local
761 memset(&cert_info, 0, sizeof(cert_info)); in cert_verify_gnutls()
762 cert_type = get_san_or_cn(g_session, &cert_info); in cert_verify_gnutls()
765 if (!check_rpk_cert(g_context, &cert_info, c_session)) { in cert_verify_gnutls()
773 if (cert_info.cert_list_size == 0 && !g_context->setup_data.verify_peer_cert) in cert_verify_gnutls()
821 if (cert_info.self_signed) { in cert_verify_gnutls()
883 G_CHECK(gnutls_x509_crt_import(cert, &cert_info.cert_list[0], in cert_verify_gnutls()
911 if (cert_info.san_or_cn) in cert_verify_gnutls()
912 gnutls_free(cert_info.san_or_cn); in cert_verify_gnutls()
917 if (cert_info.san_or_cn) in cert_verify_gnutls()
918 gnutls_free(cert_info.san_or_cn); in cert_verify_gnutls()