no-gss.c 737 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Stub definitions of the GSSAPI library list, for Unix pterm and
  3. * any other application that needs the symbols defined but has no
  4. * use for them.
  5. */
  6. #include "putty.h"
  7. #include "ssh/pgssapi.h"
  8. #include "ssh/gss.h"
  9. #include "ssh/gssc.h"
  10. const int ngsslibs = 0;
  11. const char *const gsslibnames[1] = { "dummy" };
  12. const struct keyvalwhere gsslibkeywords[1] = { { "dummy", 0, -1, -1 } };
  13. struct ssh_gss_liblist *ssh_gss_setup(Conf *conf)
  14. {
  15. struct ssh_gss_liblist *list = snew(struct ssh_gss_liblist);
  16. list->libraries = NULL;
  17. list->nlibraries = 0;
  18. return list;
  19. }
  20. void ssh_gss_cleanup(struct ssh_gss_liblist *list)
  21. {
  22. sfree(list->libraries); /* I know it's always NULL, but stay consistent */
  23. sfree(list);
  24. }