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()
1447 const char *pw, const char *cert, in build_pps() argument
1553 } else if (cert) { in build_pps()
1558 add_text_node(ctx, dc, "CertSHA256Fingerprint", cert); in build_pps()
1633 int cert = 0; in hs20_user_input_registration() local
1657 cert = 1; in hs20_user_input_registration()
1660 if (cert && !enrollment_done) { in hs20_user_input_registration()
1671 if (!cert && strlen(pw) == 0) { in hs20_user_input_registration()
1840 char *user, *realm, *cert; in hs20_cert_reenroll_complete() local
1848 cert = db_get_session_val(ctx, NULL, NULL, session_id, "cert"); in hs20_cert_reenroll_complete()
1849 if (!user || !realm || !cert) { in hs20_cert_reenroll_complete()
1854 free(cert); in hs20_cert_reenroll_complete()
1858 cred = build_credential_cert(ctx, user, realm, cert); in hs20_cert_reenroll_complete()
1863 free(cert); in hs20_cert_reenroll_complete()
1874 free(cert); in hs20_cert_reenroll_complete()
1888 free(cert); in hs20_cert_reenroll_complete()
1898 free(cert); in hs20_cert_reenroll_complete()
2406 int cert = 0; in add_subscription() local
2420 cert = 1; in add_subscription()
2471 method = cert ? "TLS" : "TTLS-MSCHAPV2"; in add_subscription()
2473 user, realm, cert ? 0 : 1, in add_subscription()
2494 if (cert) in add_subscription()
2523 if (cert && user) { in add_subscription()