Searched refs:authkeys (Results 1 – 3 of 3) sorted by relevance
120 g_auto(GStrv) authkeys = NULL; in qmp_guest_ssh_add_authorized_keys()141 if (authkeys == NULL) { in qmp_guest_ssh_add_authorized_keys()148 nauthkeys = authkeys ? g_strv_length(authkeys) : 0; in qmp_guest_ssh_add_authorized_keys()149 authkeys = g_realloc_n(authkeys, nauthkeys + nkeys + 1, sizeof(char *)); in qmp_guest_ssh_add_authorized_keys()169 g_auto(GStrv) authkeys = NULL; in qmp_guest_ssh_remove_authorized_keys()188 if (authkeys == NULL) { in qmp_guest_ssh_remove_authorized_keys()216 g_auto(GStrv) authkeys = NULL; in qmp_guest_ssh_get_authorized_keys()228 if (authkeys == NULL) { in qmp_guest_ssh_get_authorized_keys()234 g_strstrip(authkeys[i]); in qmp_guest_ssh_get_authorized_keys()235 if (!authkeys[i][0] || authkeys[i][0] == '#') { in qmp_guest_ssh_get_authorized_keys()[all …]
434 contents = g_strjoinv("\n", authkeys); in write_authkeys()607 g_auto(GStrv) authkeys = NULL; in qmp_guest_ssh_add_authorized_keys()637 nauthkeys = authkeys ? g_strv_length(authkeys) : 0; in qmp_guest_ssh_add_authorized_keys()638 authkeys = g_realloc_n(authkeys, nauthkeys + nkeys + 1, sizeof(char *)); in qmp_guest_ssh_add_authorized_keys()650 authkeys[nauthkeys++] = g_strdup(k->value); in qmp_guest_ssh_add_authorized_keys()654 write_authkeys(userInfo, authkeys, errp); in qmp_guest_ssh_add_authorized_keys()671 g_auto(GStrv) authkeys = NULL; in qmp_guest_ssh_remove_authorized_keys()686 authkeys = read_authkeys(userInfo->authorizedKeyFile, errp); in qmp_guest_ssh_remove_authorized_keys()687 if (authkeys == NULL) { in qmp_guest_ssh_remove_authorized_keys()692 new_keys = g_new0(char *, g_strv_length(authkeys) + 1); in qmp_guest_ssh_remove_authorized_keys()[all …]
42 sed 's/.*/from="'"$f"'" &/' $origkeys >$authkeys43 - from=`head -1 $authkeys | cut -f1 -d ' '`44 + from=`head -n 1 $authkeys | cut -f1 -d ' '`