mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
qga: Refactor common SSH functions
Message-Id: <20240424144029.30665-2-aidan_leuck@selinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit In preparation of a Windows implementation, move the non-POSIX specific code to commands-common-ssh. Signed-off-by: Aidan Leuck <aidan_leuck@selinc.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Dehan Meng <demeng@redhat.com> Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com> Link: https://lore.kernel.org/r/20240424144029.30665-2-aidan_leuck@selinc.com Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
This commit is contained in:
parent
0e5b75a390
commit
1cc9932700
4 changed files with 63 additions and 47 deletions
10
qga/commands-common-ssh.h
Normal file
10
qga/commands-common-ssh.h
Normal file
|
@ -0,0 +1,10 @@
|
|||
/*
|
||||
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
||||
* See the COPYING file in the top-level directory.
|
||||
*/
|
||||
|
||||
#include "qapi/qapi-builtin-types.h"
|
||||
|
||||
GStrv read_authkeys(const char *path, Error **errp);
|
||||
bool check_openssh_pub_keys(strList *keys, size_t *nkeys, Error **errp);
|
||||
bool check_openssh_pub_key(const char *key, Error **errp);
|
Loading…
Add table
Add a link
Reference in a new issue