From d9bc9fab1609e2fa776f4d04bf43d200044ab9f4 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 28 Feb 1996 04:38:54 +0000 Subject: [PATCH] g_initialize.c (gss_initialize): Don't fprintf to stderr on Macintoshes and Windows. g_inq_context.c: Add INTERFACE keyword for Windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7561 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/mechglue/ChangeLog | 5 +++++ src/lib/gssapi/mechglue/g_initialize.c | 7 +++++++ src/lib/gssapi/mechglue/g_inq_context.c | 3 ++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/lib/gssapi/mechglue/ChangeLog b/src/lib/gssapi/mechglue/ChangeLog index c9e474ba3..47c69a62d 100644 --- a/src/lib/gssapi/mechglue/ChangeLog +++ b/src/lib/gssapi/mechglue/ChangeLog @@ -1,5 +1,10 @@ Tue Feb 27 18:44:51 1996 Theodore Y. Ts'o + * g_initialize.c (gss_initialize): Don't fprintf to stderr on + Macintoshes and Windows. + + * g_inq_context.c: Add INTERFACE keyword for Windows. + * oid_ops.c: Protect include of unistd.h with HAVE_UNISTD_H Sun Feb 25 15:39:08 1996 Mark W. Eichin diff --git a/src/lib/gssapi/mechglue/g_initialize.c b/src/lib/gssapi/mechglue/g_initialize.c index c92d73154..cf75155c9 100644 --- a/src/lib/gssapi/mechglue/g_initialize.c +++ b/src/lib/gssapi/mechglue/g_initialize.c @@ -154,10 +154,17 @@ void gss_initialize (void) #endif /* USE_SOLARIS_SHARED_LIBRARIES */ +#if !defined(_MSDOS) && !defined(_MACINTOSH) if (__gss_mechs_array == NULL) { /* this is very bad! */ fprintf(stderr,"gss_initialize fatal error: no mechanisms loaded!\n"); exit(-1); } +#else + /* + * Nothing for now, since this should never happen using static + * mechanism loading. + */ +#endif return; } diff --git a/src/lib/gssapi/mechglue/g_inq_context.c b/src/lib/gssapi/mechglue/g_inq_context.c index 26d9a9a95..44fa77e35 100644 --- a/src/lib/gssapi/mechglue/g_inq_context.c +++ b/src/lib/gssapi/mechglue/g_inq_context.c @@ -33,7 +33,8 @@ #endif /* Last argument new for V2 */ -OM_uint32 gss_inquire_context( +OM_uint32 INTERFACE +gss_inquire_context( minor_status, context_handle, src_name, -- 2.26.2