which used geteuid().
Makefile.in (gssapi_err_krb5.$(OBJEXT)): Add Windows production to add
file to library.
pname_to_uid.c: Don't try to compile pname_to_uid.c for MS-DOS
or Macintosh.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7555
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue Feb 27 17:53:22 1996 Theodore Y. Ts'o <tytso@dcl>
+
+ * accept_sec_context.c (krb5_gss_accept_sec_context): Remove dead
+ code which used geteuid().
+
+ * Makefile.in (gssapi_err_krb5.$(OBJEXT)): Add Windows production
+ to add file to library.
+
+ * pname_to_uid.c: Don't try to compile pname_to_uid.c for MS-DOS
+ or Macintosh.
+
Mon Feb 26 18:08:57 1996 Sam Hartman <hartmans@tertius.mit.edu>
* k5mech.c : do not declare kg_context static as it is declared in another file, and declared extern in a header.
gssapi_err_krb5.$(OBJEXT): gssapi_err_krb5.c
$(CC) $(CFLAGS) -c $*.c
@SHARED_RULE_LOCAL@
+##DOS!if defined(LIBNAME)
+##DOS!if "$(LIBCMD)"!="rem"
+##DOS $(LIBCMD) /nologo $(LIBNAME) -+$@;
+##DOS!endif
+##DOS!endif
gssapi_err_krb5.h: gssapi_err_krb5.et
#include "gssapiP_krb5.h"
#include "rsa-md5.h"
#include <memory.h>
-#include <pwd.h>
/* Decode, decrypt and store the forwarded creds in the local ccache. */
static krb5_error_code
krb5_ticket * ticket = NULL;
int option_id;
krb5_data option;
- char user_id [1024];
- struct passwd *pw_entry;
krb5_auth_context auth_context_cred = NULL;
TREAD_STR(ptr, ptr2, bigend);
option.data = (char FAR *) ptr2;
- pw_entry = getpwuid(geteuid());
- strcpy(user_id, pw_entry->pw_name);
-
/* get a temporary auth_context structure for the
call to rd_and_store_for_creds() and clear its flags */
#include "../mechglue/mglueP.h"
#include "gssapiP_krb5.h"
-
/*
* These are the extern declarations, one group per mechanism. They are
* contained in the files named <mech>_gssd_extern_srvr.conf.
#include "gssapiP_krb5.h"
#include <gssapi/gssapi.h>
+#if !defined(_MSDOS) && !defined(_MACINTOSH)
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <string.h>
#include <pwd.h>
#include <sys/types.h>
+#endif /* !_MSDOS && !_MACINTOSH */
/*
* This function will probably get replaced with the gsscred stuff...
gss_OID mech_type;
uid_t * uid;
{
+#if defined(_MSDOS) || defined(_MACINTOSH)
+ return (0); /* failure */
+#else
struct passwd *pw;
static unsigned char krb5principalname[] =
} else {
return(0);
}
+
+#endif
}