1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-15 01:57:40 -05:00

Change how we handle the Ssh_gss_buf type. Previously, we defined it

ourselves, but on Unix then assumed it was compatible with the system's
gss_buffer_desc, which wasn't the case on LP64 systems.  Now, on Unix
we make Ssh_gss_buf into an alias for gss_buffer_desc, though we keep
something similar to the existing behaviour on Windows.  This requires
renaming a couple of the fields in Ssh_gss_buf, and hence fixing all
the references.

Tested on Linux (MIT Kerberos) and Solaris.  Compiled on NetBSD (Heimdal).
Not tested on Windows because neither mingw32 nor winegcc worked out of the
box for me.  I think the Windows changes are all syntactic, though, so
if this compiles it should work no worse than before.

[originally from svn r8326]
This commit is contained in:
Ben Harris
2008-11-24 23:44:55 +00:00
parent a6cbfd974d
commit 81dafd906e
6 changed files with 75 additions and 55 deletions

View File

@ -12,16 +12,9 @@ typedef enum Ssh_gss_stat {
#define SSH_GSS_S_COMPLETE SSH_GSS_OK
typedef struct Ssh_gss_buf {
int len;
char *data;
} Ssh_gss_buf;
#define SSH_GSS_EMPTY_BUF (Ssh_gss_buf) {0,NULL}
#define SSH_GSS_CLEAR_BUF(buf) do { \
(*buf).len = 0; \
(*buf).data = NULL; \
(*buf).length = 0; \
(*buf).value = NULL; \
} while (0)
/* Functions, provided by either wingss.c or uxgss.c */