X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=moonshot%2Fmech_eap%2Fdisplay_status.c;h=c21cc7bb236302da48f43d8db1c41e59c3849715;hb=f19ee51b726492f31494bfb2033ba026fe38c2a5;hp=e826b198f48fb6ee8ab90544eb45160e89879408;hpb=ecf20954105d5ac0b7a47bd4932c2dacc1a96e3e;p=moonshot.git diff --git a/moonshot/mech_eap/display_status.c b/moonshot/mech_eap/display_status.c index e826b19..c21cc7b 100644 --- a/moonshot/mech_eap/display_status.c +++ b/moonshot/mech_eap/display_status.c @@ -115,6 +115,22 @@ getStatusInfo(OM_uint32 minor) void gssEapSaveStatusInfo(OM_uint32 minor, const char *format, ...) { +#ifdef WIN32 + OM_uint32 tmpMajor, tmpMinor; + char buf[BUFSIZ]; + gss_buffer_desc s = GSS_C_EMPTY_BUFFER; + va_list ap; + + if (format != NULL) { + va_start(ap, format); + snprintf(buf, sizeof(buf), format, ap); + va_end(ap); + } + + tmpMajor = makeStringBuffer(&tmpMinor, buf, &s); + if (!GSS_ERROR(tmpMajor)) + saveStatusInfoNoCopy(minor, (char *)s.value); +#else char *s = NULL; int n; va_list ap; @@ -128,6 +144,7 @@ gssEapSaveStatusInfo(OM_uint32 minor, const char *format, ...) } saveStatusInfoNoCopy(minor, s); +#endif /* WIN32 */ } OM_uint32 GSSAPI_CALLCONV