mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
68d89b0e69
These are all going to be used by a test program I have in the works, which will need to link against a lot more of the code base than any so far. So we need a pile of new stubs. The trickiest of these was stubs/no-network.c, which had to conditionally define a couple of extra network functions, because there are Windows-specific plug_closing_system_error and plug_closing_winsock_error functions.
31 lines
737 B
C
31 lines
737 B
C
/*
|
|
* Stub definitions of the GSSAPI library list, for Unix pterm and
|
|
* any other application that needs the symbols defined but has no
|
|
* use for them.
|
|
*/
|
|
|
|
#include "putty.h"
|
|
|
|
#include "ssh/pgssapi.h"
|
|
#include "ssh/gss.h"
|
|
#include "ssh/gssc.h"
|
|
|
|
const int ngsslibs = 0;
|
|
const char *const gsslibnames[1] = { "dummy" };
|
|
const struct keyvalwhere gsslibkeywords[1] = { { "dummy", 0, -1, -1 } };
|
|
|
|
struct ssh_gss_liblist *ssh_gss_setup(Conf *conf)
|
|
{
|
|
struct ssh_gss_liblist *list = snew(struct ssh_gss_liblist);
|
|
|
|
list->libraries = NULL;
|
|
list->nlibraries = 0;
|
|
return list;
|
|
}
|
|
|
|
void ssh_gss_cleanup(struct ssh_gss_liblist *list)
|
|
{
|
|
sfree(list->libraries); /* I know it's always NULL, but stay consistent */
|
|
sfree(list);
|
|
}
|