");
+
+ tcp_qprintf(tq,
+ "
"
+ "
Hostname:
"
+ "
"
+ ""
+ "
");
+
+ tcp_qprintf(tq,
+ "
"
+ "
Port:
"
+ "
"
+ ""
+ "
");
+
+
+ tcp_qprintf(tq,
+ "
"
+ "
Username:
"
+ "
"
+ ""
+ "
");
+
+ tcp_qprintf(tq,
+ "
"
+ "
Password:
"
+ "
"
+ ""
+ "
");
+
+ tcp_qprintf(tq,
+ "
"
+ "
DES-key:
"
+ "
"
+ ""
+ "
");
+
+ tcp_qprintf(tq,
+ "
"
+ "
");
+
+ tcp_qprintf(tq, "
\r\n");
+
+ ajax_box_end(tq, AJAX_BOX_SIDEBOX);
+
+ tcp_qprintf(tq, "");
+ http_output_html(hc, hr);
+ return 0;
+}
+
+
+/**
+ *
+ */
+static int
+ajax_cwclist(http_connection_t *hc, http_reply_t *hr,
+ const char *remain, void *opaque)
+{
+ tcp_queue_t *tq = &hr->hr_tq;
+ ajax_table_t ta;
+ cwc_t *cwc;
+ char id[20];
+
+ ajax_table_top(&ta, hc, tq,
+ (const char *[]){"Code-word Server",
+ "Username",
+ "Enabled",
+ "Status",
+ "Crypto",
+ "",
+ NULL},
+ (int[]){3, 2, 1, 6, 6, 1});
+
+ TAILQ_FOREACH(cwc, &cwcs, cwc_link) {
+ snprintf(id, sizeof(id), "cwc_%d", cwc->cwc_id);
+ ajax_table_row_start(&ta, id);
+
+ ajax_table_cell(&ta, NULL, "%s:%d",
+ cwc->cwc_tcp_session.tcp_hostname,
+ cwc->cwc_tcp_session.tcp_port);
+
+ ajax_table_cell(&ta, NULL, "%s", cwc->cwc_username);
+
+ ajax_table_cell(&ta, NULL,
+ "