Lines Matching refs:db

90 	if (sqlite3_exec(ctx->db, sql, NULL, NULL, NULL) != SQLITE_OK) {  in db_add_session()
92 "database: %s", sqlite3_errmsg(ctx->db)); in db_add_session()
112 if (sqlite3_exec(ctx->db, sql, NULL, NULL, NULL) != SQLITE_OK) { in db_update_session_password()
114 sqlite3_errmsg(ctx->db)); in db_update_session_password()
133 if (sqlite3_exec(ctx->db, sql, NULL, NULL, NULL) != SQLITE_OK) { in db_update_session_machine_managed()
136 sqlite3_errmsg(ctx->db)); in db_update_session_machine_managed()
159 if (sqlite3_exec(ctx->db, sql, NULL, NULL, NULL) != SQLITE_OK) { in db_add_session_pps()
161 sqlite3_errmsg(ctx->db)); in db_add_session_pps()
182 if (sqlite3_exec(ctx->db, sql, NULL, NULL, NULL) != SQLITE_OK) { in db_add_session_devinfo()
184 sqlite3_errmsg(ctx->db)); in db_add_session_devinfo()
206 if (sqlite3_exec(ctx->db, sql, NULL, NULL, NULL) != SQLITE_OK) { in db_add_session_devdetail()
208 sqlite3_errmsg(ctx->db)); in db_add_session_devdetail()
224 if (sqlite3_exec(ctx->db, sql, NULL, NULL, NULL) != SQLITE_OK) { in db_add_session_dmacc()
226 sqlite3_errmsg(ctx->db)); in db_add_session_dmacc()
243 if (sqlite3_exec(ctx->db, sql, NULL, NULL, NULL) != SQLITE_OK) { in db_add_session_eap_method()
245 sqlite3_errmsg(ctx->db)); in db_add_session_eap_method()
261 if (sqlite3_exec(ctx->db, sql, NULL, NULL, NULL) != SQLITE_OK) { in db_add_session_id_hash()
263 sqlite3_errmsg(ctx->db)); in db_add_session_id_hash()
286 if (sqlite3_exec(ctx->db, sql, NULL, NULL, NULL) != SQLITE_OK) { in db_remove_session()
288 "sqlite database: %s", sqlite3_errmsg(ctx->db)); in db_remove_session()
324 if (sqlite3_exec(ctx->db, sql, NULL, NULL, NULL) != SQLITE_OK) { in hs20_eventlog()
326 "database: %s", sqlite3_errmsg(ctx->db)); in hs20_eventlog()
360 if (sqlite3_exec(ctx->db, sql, NULL, NULL, NULL) != SQLITE_OK) { in db_update_mo_str()
362 "database: %s", sqlite3_errmsg(ctx->db)); in db_update_mo_str()
484 if (sqlite3_exec(ctx->db, cmd, get_db_field, &data, NULL) != SQLITE_OK) in db_get_val()
512 if (sqlite3_exec(ctx->db, cmd, NULL, NULL, NULL) != SQLITE_OK) { in db_update_val()
515 sqlite3_errmsg(ctx->db)); in db_update_val()
549 if (sqlite3_exec(ctx->db, cmd, get_db_field, &data, NULL) != SQLITE_OK) in db_get_session_val()
552 session_id, sqlite3_errmsg(ctx->db)); in db_get_session_val()
576 if (sqlite3_exec(ctx->db, cmd, NULL, NULL, NULL) != SQLITE_OK) { in update_password()
597 if (sqlite3_exec(ctx->db, cmd, NULL, NULL, NULL) != SQLITE_OK) { in clear_remediation()
1431 if (sqlite3_exec(ctx->db, cmd, get_db_field, &data, NULL) != SQLITE_OK) in db_get_osu_config_val()
1434 realm, sqlite3_errmsg(ctx->db)); in db_get_osu_config_val()
2450 if (sqlite3_exec(ctx->db, sql, NULL, NULL, NULL) != SQLITE_OK) { in add_subscription()
2453 sqlite3_errmsg(ctx->db)); in add_subscription()
2486 if (sqlite3_exec(ctx->db, sql, NULL, NULL, NULL) != SQLITE_OK) { in add_subscription()
2488 sqlite3_errmsg(ctx->db)); in add_subscription()
2503 sqlite3_exec(ctx->db, sql, NULL, NULL, NULL); in add_subscription()
2539 if (sqlite3_exec(ctx->db, sql, NULL, NULL, NULL) != in add_subscription()
2543 sqlite3_errmsg(ctx->db)); in add_subscription()
2556 if (sqlite3_exec(ctx->db, sql, NULL, NULL, NULL) != in add_subscription()
2560 sqlite3_errmsg(ctx->db)); in add_subscription()
2919 ctx->db = NULL; in hs20_spp_server_init()
2921 if (sqlite3_open(fname, &ctx->db)) { in hs20_spp_server_init()
2923 sqlite3_errmsg(ctx->db)); in hs20_spp_server_init()
2924 sqlite3_close(ctx->db); in hs20_spp_server_init()
2934 sqlite3_close(ctx->db); in hs20_spp_server_deinit()
2935 ctx->db = NULL; in hs20_spp_server_deinit()