Lines Matching refs:authkeys
428 static bool write_authkeys(WindowsUserInfo *userInfo, GStrv authkeys, in write_authkeys() argument
434 contents = g_strjoinv("\n", authkeys); in write_authkeys()
607 g_auto(GStrv) authkeys = NULL; in qmp_guest_ssh_add_authorized_keys()
625 authkeys = read_authkeys(userInfo->authorizedKeyFile, 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()
641 memset(authkeys + nauthkeys, 0, (nkeys + 1) * sizeof(char *)); in qmp_guest_ssh_add_authorized_keys()
646 if (g_strv_contains((const gchar *const *)authkeys, k->value)) { 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()
693 for (a = authkeys; *a != NULL; a++) { in qmp_guest_ssh_remove_authorized_keys()