mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
qga: Implement SSH commands for Windows
Signed-off-by: Aidan Leuck <aidan_leuck@selinc.com> Tested-by: Dehan Meng <demeng@redhat.com> Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com> Link: https://lore.kernel.org/r/20240424144029.30665-3-aidan_leuck@selinc.com Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
This commit is contained in:
parent
1cc9932700
commit
6b9296ba7a
4 changed files with 749 additions and 11 deletions
26
qga/commands-windows-ssh.h
Normal file
26
qga/commands-windows-ssh.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Header file for commands-windows-ssh.c
|
||||
*
|
||||
* Copyright Schweitzer Engineering Laboratories. 2024
|
||||
*
|
||||
* Authors:
|
||||
* Aidan Leuck <aidan_leuck@selinc.com>
|
||||
*
|
||||
* 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 <glib/gstrfuncs.h>
|
||||
#include <stdbool.h>
|
||||
typedef struct WindowsUserInfo {
|
||||
char *sshDirectory;
|
||||
char *authorizedKeyFile;
|
||||
char *username;
|
||||
char *SSID;
|
||||
bool isAdmin;
|
||||
} WindowsUserInfo;
|
||||
|
||||
typedef WindowsUserInfo *PWindowsUserInfo;
|
||||
|
||||
void free_userInfo(PWindowsUserInfo info);
|
||||
G_DEFINE_AUTO_CLEANUP_FREE_FUNC(PWindowsUserInfo, free_userInfo, NULL);
|
Loading…
Add table
Add a link
Reference in a new issue