Lines Matching full:keys
2 * QEMU Guest Agent win32-specific command implementations for SSH keys.
421 * Writes the specified keys to the authenticated keys file.
424 * authkeys: Array of keys to write to disk
547 * Gets the list of authorized keys for a user.
550 * username -> Username to retrieve the keys for.
552 * returns: List of keys associated with the user.
557 GuestAuthorizedKeys *keys = NULL; in qmp_guest_ssh_get_authorized_keys() local
573 /* Set the GuestAuthorizedKey struct with keys from the file */ in qmp_guest_ssh_get_authorized_keys()
581 QAPI_LIST_PREPEND(ret->keys, g_strdup(authKeys[i])); in qmp_guest_ssh_get_authorized_keys()
588 keys = g_steal_pointer(&ret); in qmp_guest_ssh_get_authorized_keys()
589 return keys; in qmp_guest_ssh_get_authorized_keys()
597 * strList -> Array of keys to add to the list
598 * has_reset -> Whether the keys have been reset
599 * reset -> Boolean to reset the keys (If this is set the existing list will be
603 void qmp_guest_ssh_add_authorized_keys(const char *username, strList *keys, in qmp_guest_ssh_add_authorized_keys() argument
611 /* Make sure the keys given are valid */ in qmp_guest_ssh_add_authorized_keys()
612 if (!check_openssh_pub_keys(keys, &nkeys, errp)) { in qmp_guest_ssh_add_authorized_keys()
621 /* Determine whether we should reset the keys */ in qmp_guest_ssh_add_authorized_keys()
624 /* Read existing keys into memory */ in qmp_guest_ssh_add_authorized_keys()
636 /* Reallocates the buffer to fit the new keys. */ in qmp_guest_ssh_add_authorized_keys()
643 /* Adds the keys */ in qmp_guest_ssh_add_authorized_keys()
644 for (k = keys; k != NULL; k = k->next) { in qmp_guest_ssh_add_authorized_keys()
665 void qmp_guest_ssh_remove_authorized_keys(const char *username, strList *keys, in qmp_guest_ssh_remove_authorized_keys() argument
675 /* Validates the keys passed in by the user */ in qmp_guest_ssh_remove_authorized_keys()
676 if (!check_openssh_pub_keys(keys, NULL, errp)) { in qmp_guest_ssh_remove_authorized_keys()
691 /* Create a new buffer to hold the keys */ in qmp_guest_ssh_remove_authorized_keys()
696 /* Filters out keys that are equal to ones the user specified. */ in qmp_guest_ssh_remove_authorized_keys()
697 for (k = keys; k != NULL; k = k->next) { in qmp_guest_ssh_remove_authorized_keys()