Lines Matching refs:cert
720 xml_node_t *cred, *cert; in build_credential_cert() local
728 cert = xml_node_create(ctx->xml, cred, NULL, "DigitalCertificate"); in build_credential_cert()
729 add_text_node(ctx, cert, "CertificateType", "x509v3"); in build_credential_cert()
730 add_text_node(ctx, cert, "CertSHA256Fingerprint", cert_fingerprint); in build_credential_cert()
842 char *cert; in build_sub_rem_resp() local
844 cert = db_get_val(ctx, user, realm, "cert", dmacc); in build_sub_rem_resp()
845 if (cert && cert[0] == '\0') { in build_sub_rem_resp()
846 os_free(cert); in build_sub_rem_resp()
847 cert = NULL; in build_sub_rem_resp()
849 if (cert) { in build_sub_rem_resp()
863 os_free(cert); in build_sub_rem_resp()
902 os_free(cert); in build_sub_rem_resp()
916 os_free(cert); in build_sub_rem_resp()
924 os_free(cert); in build_sub_rem_resp()
933 if (cert) { in build_sub_rem_resp()
943 os_free(cert); in build_sub_rem_resp()
1444 const char *pw, const char *cert, in build_pps() argument
1550 } else if (cert) { in build_pps()
1555 add_text_node(ctx, dc, "CertSHA256Fingerprint", cert); in build_pps()
1630 int cert = 0; in hs20_user_input_registration() local
1654 cert = 1; in hs20_user_input_registration()
1657 if (cert && !enrollment_done) { in hs20_user_input_registration()
1668 if (!cert && strlen(pw) == 0) { in hs20_user_input_registration()
1837 char *user, *realm, *cert; in hs20_cert_reenroll_complete() local
1845 cert = db_get_session_val(ctx, NULL, NULL, session_id, "cert"); in hs20_cert_reenroll_complete()
1846 if (!user || !realm || !cert) { in hs20_cert_reenroll_complete()
1851 free(cert); in hs20_cert_reenroll_complete()
1855 cred = build_credential_cert(ctx, user, realm, cert); in hs20_cert_reenroll_complete()
1860 free(cert); in hs20_cert_reenroll_complete()
1871 free(cert); in hs20_cert_reenroll_complete()
1885 free(cert); in hs20_cert_reenroll_complete()
1895 free(cert); in hs20_cert_reenroll_complete()
2403 int cert = 0; in add_subscription() local
2417 cert = 1; in add_subscription()
2468 method = cert ? "TLS" : "TTLS-MSCHAPV2"; in add_subscription()
2470 user, realm, cert ? 0 : 1, in add_subscription()
2491 if (cert) in add_subscription()
2520 if (cert && user) { in add_subscription()