mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +08:00
shorter names for states
This commit is contained in:
@@ -497,9 +497,9 @@ static int append_user_info(DBusMessageIter * subs, struct proc_st *ctmp)
|
||||
}
|
||||
|
||||
if (ctmp->auth_status == PS_AUTH_COMPLETED)
|
||||
strtmp = "authenticated";
|
||||
strtmp = "connected";
|
||||
else if (ctmp->auth_status == PS_AUTH_INIT)
|
||||
strtmp = "authenticating";
|
||||
strtmp = "auth";
|
||||
else
|
||||
strtmp = "pre-auth";
|
||||
if (dbus_message_iter_append_basic
|
||||
|
||||
+3
-3
@@ -638,7 +638,7 @@ void handle_list_users_cmd(DBusConnection * conn, const char *arg)
|
||||
|
||||
/* add header */
|
||||
if (iteration++ == 0) {
|
||||
fprintf(out, "%6s %8s %8s %15s %15s %6s %7s %9s %10s\n",
|
||||
fprintf(out, "%6s %8s %8s %15s %15s %6s %7s %9s %9s\n",
|
||||
"id", "user", "group", "ip", "vpn-ip", "device", "since",
|
||||
"cipher", "status");
|
||||
}
|
||||
@@ -652,9 +652,9 @@ void handle_list_users_cmd(DBusConnection * conn, const char *arg)
|
||||
|
||||
print_time_ival7(t, out);
|
||||
if (dtls_ciphersuite != NULL && dtls_ciphersuite[0] != 0)
|
||||
fprintf(out, " %9s %10s\n", dtls_ciphersuite, auth);
|
||||
fprintf(out, " %9s %9s\n", dtls_ciphersuite, auth);
|
||||
else
|
||||
fprintf(out, " %9s %10s\n", "(no dtls)", auth);
|
||||
fprintf(out, " %9s %9s\n", "(no dtls)", auth);
|
||||
|
||||
if (!dbus_message_iter_next(&suba))
|
||||
goto cleanup;
|
||||
|
||||
Reference in New Issue
Block a user