2
0

commands-windows-ssh.h 664 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Header file for commands-windows-ssh.c
  3. *
  4. * Copyright Schweitzer Engineering Laboratories. 2024
  5. *
  6. * Authors:
  7. * Aidan Leuck <aidan_leuck@selinc.com>
  8. *
  9. * This work is licensed under the terms of the GNU GPL, version 2 or later.
  10. * See the COPYING file in the top-level directory.
  11. */
  12. #include <glib/gstrfuncs.h>
  13. #include <stdbool.h>
  14. typedef struct WindowsUserInfo {
  15. char *sshDirectory;
  16. char *authorizedKeyFile;
  17. char *username;
  18. char *SSID;
  19. bool isAdmin;
  20. } WindowsUserInfo;
  21. typedef WindowsUserInfo *PWindowsUserInfo;
  22. void free_userInfo(PWindowsUserInfo info);
  23. G_DEFINE_AUTO_CLEANUP_FREE_FUNC(PWindowsUserInfo, free_userInfo, NULL);