aboutsummaryrefslogtreecommitdiff
path: root/qga/commands-common-ssh.h
diff options
context:
space:
mode:
authoraidaleuc <aidan_leuck@selinc.com>2024-04-24 08:40:28 -0600
committerKonstantin Kostiuk <kkostiuk@redhat.com>2024-05-01 10:35:45 +0300
commit1cc9932700339042e83c6c54114734231630548c (patch)
tree3fd3260136b40adae458ca589b354fedf37ae67f /qga/commands-common-ssh.h
parent0e5b75a3902f2325cbdb07954e2c2ca2f7fcb9dd (diff)
downloadqemu-1cc9932700339042e83c6c54114734231630548c.zip
qemu-1cc9932700339042e83c6c54114734231630548c.tar.gz
qemu-1cc9932700339042e83c6c54114734231630548c.tar.bz2
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>
Diffstat (limited to 'qga/commands-common-ssh.h')
-rw-r--r--qga/commands-common-ssh.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/qga/commands-common-ssh.h b/qga/commands-common-ssh.h
new file mode 100644
index 0000000..14d955f
--- /dev/null
+++ b/qga/commands-common-ssh.h
@@ -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);