Home | History | Annotate | Download | only in server

Lines Matching refs:session_id

48 				 const char *realm, const char *session_id,
441 const char *realm, const char *session_id,
449 "id=%Q", field, session_id);
453 field, user, realm, session_id);
463 session_id, sqlite3_errmsg(ctx->db));
623 const char *session_id,
638 xml_node_add_attr(ctx->xml, spp_node, ns, "sessionID", session_id);
679 const char *session_id,
716 spp_node = build_post_dev_data_response(ctx, &ns, session_id, status,
733 hs20_eventlog_node(ctx, user, realm, session_id,
744 db_add_session(ctx, user, realm, session_id, new_pw, NULL,
755 const char *session_id, int dmacc)
757 return build_sub_rem_resp(ctx, user, realm, session_id, 1, dmacc);
763 const char *session_id, int dmacc)
770 hs20_eventlog(ctx, user, realm, session_id,
773 db_add_session(ctx, user, realm, session_id, NULL, NULL,
779 ctx, NULL, session_id,
784 spp_node = build_post_dev_data_response(ctx, &ns, session_id, status,
799 hs20_eventlog_node(ctx, user, realm, session_id,
808 const char *session_id,
822 spp_node = build_post_dev_data_response(ctx, &ns, session_id, "OK",
835 const char *realm, const char *session_id,
840 hs20_eventlog(ctx, user, realm, session_id,
846 db_add_session(ctx, user, realm, session_id, NULL, redirect_uri,
849 snprintf(uri, sizeof(uri), "%s%s", val, session_id);
851 return browser_remediation(ctx, session_id, redirect_uri, uri);
857 const char *session_id,
862 hs20_eventlog(ctx, user, realm, session_id,
868 db_add_session(ctx, user, realm, session_id, NULL, redirect_uri,
871 snprintf(uri, sizeof(uri), "%s%s", val, session_id);
873 return browser_remediation(ctx, session_id, redirect_uri, uri);
879 const char *session_id)
883 hs20_eventlog(ctx, user, realm, session_id,
887 return build_post_dev_data_response(ctx, NULL, session_id, status,
895 const char *session_id,
905 hs20_eventlog(ctx, user, realm, session_id,
909 return build_post_dev_data_response(ctx, NULL, session_id,
918 return no_sub_rem(ctx, user, realm, session_id);
932 return no_sub_rem(ctx, user, realm, session_id);
936 ret = user_remediation(ctx, user, realm, session_id,
939 ret = free_remediation(ctx, user, realm, session_id,
942 ret = policy_remediation(ctx, user, realm, session_id, dmacc);
944 ret = machine_remediation(ctx, user, realm, session_id, dmacc);
1008 const char *session_id, int dmacc)
1019 hs20_eventlog(ctx, user, realm, session_id,
1023 return build_post_dev_data_response(ctx, NULL, session_id,
1032 ctx, NULL, session_id,
1036 db_add_session(ctx, user, realm, session_id, NULL, NULL, POLICY_UPDATE);
1039 spp_node = build_post_dev_data_response(ctx, &ns, session_id, status,
1054 hs20_eventlog_node(ctx, user, realm, session_id, "policy update",
1127 const char *session_id, const char *urn)
1132 spp_node = build_post_dev_data_response(ctx, &ns, session_id, "OK",
1148 const char *session_id,
1155 if (db_add_session(ctx, NULL, realm, session_id, NULL, redirect_uri,
1162 spp_node = build_post_dev_data_response(ctx, &ns, session_id, "OK",
1169 snprintf(uri, sizeof(uri), "%s%s", val, session_id);
1180 const char *session_id)
1182 return build_sub_rem_resp(ctx, user, realm, session_id, 0, dmacc);
1278 const char *session_id,
1291 spp_node = build_post_dev_data_response(ctx, &ns, session_id, "OK",
1316 db_update_session_password(ctx, user, realm, session_id, password);
1323 const char *session_id,
1337 user = db_get_session_val(ctx, NULL, NULL, session_id, "user");
1338 realm = db_get_session_val(ctx, NULL, NULL, session_id, "realm");
1339 pw = db_get_session_val(ctx, NULL, NULL, session_id, "password");
1350 mm = db_get_session_val(ctx, NULL, NULL, session_id, "machine_managed");
1355 type = db_get_session_val(ctx, NULL, NULL, session_id, "type");
1362 hs20_eventlog(ctx, user, realm, session_id,
1364 ret = spp_exec_get_certificate(ctx, session_id, user, realm);
1384 spp_node = build_post_dev_data_response(ctx, &ns, session_id, status,
1389 fingerprint = db_get_session_val(ctx, NULL, NULL, session_id, "cert");
1404 db_update_session_password(ctx, user, realm, session_id, pw);
1405 db_update_session_machine_managed(ctx, user, realm, session_id,
1408 db_add_session_pps(ctx, user, realm, session_id, pps);
1410 hs20_eventlog_node(ctx, user, realm, session_id,
1445 const char *session_id)
1472 spp_node = build_post_dev_data_response(ctx, &ns, session_id, status,
1486 hs20_eventlog_node(ctx, user, realm, session_id,
1497 const char *session_id)
1502 val = db_get_session_val(ctx, user, realm, session_id, "operation");
1505 session_id);
1513 session_id);
1518 session_id);
1522 return hs20_user_input_registration(ctx, session_id, 0);
1526 "completion", session_id);
1534 const char *session_id)
1539 val = db_get_session_val(ctx, user, realm, session_id, "operation");
1542 session_id);
1549 return hs20_user_input_registration(ctx, session_id, 1);
1552 "enrollment completion", session_id);
1560 const char *session_id)
1568 val = db_get_session_val(ctx, user, realm, session_id, "operation");
1571 session_id);
1579 "enrollment failure", session_id);
1584 spp_node = build_post_dev_data_response(ctx, &ns, session_id, status,
1591 db_remove_session(ctx, user, realm, session_id);
1601 const char *session_id,
1619 ctx, NULL, session_id, "Error occurred",
1621 hs20_eventlog_node(ctx, user, realm, session_id,
1631 ctx, NULL, session_id, "Error occurred",
1633 hs20_eventlog_node(ctx, user, realm, session_id,
1646 ctx, NULL, session_id, "Error occurred",
1648 hs20_eventlog_node(ctx, user, realm, session_id,
1665 req_reason, session_id, redirect_uri);
1668 hs20_eventlog(ctx, user, realm, session_id, str, NULL);
1672 ret = build_post_dev_data_response(ctx, NULL, session_id,
1674 hs20_eventlog_node(ctx, user, realm, session_id,
1681 hs20_eventlog_node(ctx, user, realm, session_id,
1684 hs20_eventlog(ctx, user, realm, session_id,
1687 ret = build_post_dev_data_response(ctx, NULL, session_id,
1698 ret = build_post_dev_data_response(ctx, NULL, session_id,
1700 hs20_eventlog_node(ctx, user, realm, session_id,
1707 hs20_eventlog_node(ctx, user, realm, session_id,
1710 hs20_eventlog(ctx, user, realm, session_id,
1713 ret = build_post_dev_data_response(ctx, NULL, session_id,
1729 hs20_eventlog_node(ctx, user, realm, session_id,
1732 hs20_eventlog(ctx, user, realm, session_id,
1738 ctx, NULL, session_id,
1764 if (db_add_session(ctx, user, realm, session_id, NULL,
1768 ret = spp_exec_upload_mo(ctx, session_id,
1770 hs20_eventlog_node(ctx, user, realm, session_id,
1778 char *val = db_get_session_val(ctx, user, realm, session_id,
1783 session_id);
1795 session_id);
1801 ret = hs20_subscription_registration(ctx, realm, session_id,
1803 hs20_eventlog_node(ctx, user, realm, session_id,
1810 session_id, dmacc,
1812 hs20_eventlog_node(ctx, user, realm, session_id,
1818 ret = hs20_policy_update(ctx, user, realm, session_id, dmacc);
1819 hs20_eventlog_node(ctx, user, realm, session_id,
1826 db_add_session_devinfo(ctx, session_id, devinfo);
1827 db_add_session_devdetail(ctx, session_id, devdetail);
1829 session_id);
1830 hs20_eventlog_node(ctx, user, realm, session_id,
1837 session_id);
1838 hs20_eventlog_node(ctx, user, realm, session_id,
1845 session_id);
1846 hs20_eventlog_node(ctx, user, realm, session_id,
1866 const char *session_id,
1878 xml_node_add_attr(ctx->xml, spp_node, ns, "sessionID", session_id);
1891 static int add_subscription(struct hs20_svc *ctx, const char *session_id)
1902 user = db_get_session_val(ctx, NULL, NULL, session_id, "user");
1903 realm = db_get_session_val(ctx, NULL, NULL, session_id, "realm");
1904 pw = db_get_session_val(ctx, NULL, NULL, session_id, "password");
1905 pw_mm = db_get_session_val(ctx, NULL, NULL, session_id,
1907 pps = db_get_session_val(ctx, NULL, NULL, session_id, "pps");
1908 cert_pem = db_get_session_val(ctx, NULL, NULL, session_id, "cert_pem");
1909 fingerprint = db_get_session_val(ctx, NULL, NULL, session_id, "cert");
1910 type = db_get_session_val(ctx, NULL, NULL, session_id, "type");
1932 user, realm, session_id);
1944 hs20_eventlog(ctx, user, realm, session_id,
1987 str = db_get_session_val(ctx, NULL, NULL, session_id, "devinfo");
1993 str = db_get_session_val(ctx, NULL, NULL, session_id, "devdetail");
2000 hs20_eventlog(ctx, user, realm, session_id,
2020 const char *session_id,
2036 status, session_id);
2038 val = db_get_session_val(ctx, user, realm, session_id, "operation");
2042 user, session_id);
2054 session_id, "password");
2058 ctx, session_id, "Error occurred",
2061 session_id, "No password "
2064 db_remove_session(ctx, user, realm, session_id);
2072 session_id,
2076 session_id);
2087 ctx, session_id, "Error occurred",
2090 session_id, "Failed to "
2092 db_remove_session(ctx, user, realm, session_id);
2096 session_id, "Updated user password "
2100 if (add_subscription(ctx, session_id) < 0) {
2104 ctx, session_id, "Error occurred",
2107 session_id, "Failed to "
2109 db_remove_session(ctx, user, realm, session_id);
2123 ctx, session_id,
2125 hs20_eventlog_node(ctx, user, realm, session_id,
2127 db_remove_session(ctx, user, realm, session_id);
2131 ret = build_spp_exchange_complete(ctx, session_id, "Error occurred",
2133 hs20_eventlog_node(ctx, user, realm, session_id, "Error occurred", ret);
2134 db_remove_session(ctx, user, realm, session_id);
2169 char *session_id;
2194 session_id = xml_node_get_attr_value_ns(ctx->xml, node,
2200 hs20_eventlog_node(ctx, auth_user, auth_realm, session_id,
2202 hs20_eventlog(ctx, auth_user, auth_realm, session_id,
2205 xml_node_get_attr_value_free(ctx->xml, session_id);
2212 session_id = xml_node_get_attr_value_ns(ctx->xml, node, SPP_NS_URI,
2214 if (session_id) {
2216 debug_print(ctx, 1, "Received sessionID %s", session_id);
2217 tmp = os_strdup(session_id);
2218 xml_node_get_attr_value_free(ctx->xml, session_id);
2221 session_id = tmp;
2223 session_id = gen_spp_session_id();
2224 if (session_id == NULL) {
2228 debug_print(ctx, 1, "Generated sessionID %s", session_id);
2238 hs20_eventlog_node(ctx, auth_user, auth_realm, session_id,
2242 session_id, dmacc);
2244 hs20_eventlog_node(ctx, auth_user, auth_realm, session_id,
2248 auth_realm, session_id, dmacc);
2250 hs20_eventlog_node(ctx, auth_user, auth_realm, session_id,
2258 os_free(session_id);