+Mon Mar 27 20:31:04 1995 Keith Vetter (keithv@fusion.com)
+
+ * cns.c. cns.rc: removed debugging menu item
+ * cns.c: fixed up parsing and unparsing of user name
+ * makefile: removed some configuration crud
+
+
Wed Mar 22 16:27:48 1995 Keith Vetter (keithv@fusion.com)
* cns.c: added some error checking code to catch missing realms files
principal = server = NULL;
memset(&creds, 0, sizeof(creds));
- code = krb5_parse_name(k5_context, name, &principal);
+ sprintf (menuitem, "%s@%s", name, realm);
+ code = krb5_parse_name(k5_context, menuitem, &principal);
if (code) break;
+
code = krb5_cc_initialize(k5_context, k5_ccache, principal);
if (code) break;
return TRUE;
- case 1234:
- ticket_init_list(GetDlgItem(hwnd, IDD_TICKET_LIST));
-
- return TRUE;
-
case IDM_ABOUT:
if (isblocking)
return TRUE;
ptr = strchr (fullname, '@'); /* Name, realm separator */
+ if (ptr != NULL) /* Get realm */
+ strcpy (realm, ptr + 1);
+ else
+ *realm = '\0';
+
if (ptr != NULL) { /* Get the name */
strncpy (name, fullname, ptr - fullname);
name[ptr - fullname] = '\0';
} else
strcpy (name, fullname);
- if (ptr != NULL) /* Get realm */
- strcpy (realm, ptr + 1);
- else
- *realm = '\0';
+ ptr = strchr (name, '.'); /* K4 compatability */
+ if (ptr != NULL)
+ *ptr = '\0';
return 0;
}
!endif
!if $(KVERSION) == 5
-BUILDTOP =..\..
+BUILDTOP =..\..
LIBDIR = $(BUILDTOP)\lib
KLIB = $(LIBDIR)\libkrb5.lib
WLIB = $(LIBDIR)\winsock.lib
INCLUDES = /I$(BUILDTOP)\include /I$(BUILDTOP)\include\krb5
-
-RM = $(BUILDTOP)\config\rm.bat
-WHAT = windows
-OBJEXT = obj
!endif
##### C Compiler
CC = cl
-CFLAGS_RELEASE = /f- /nologo /W3 /AL /Gw /Gy /Zp /O2 /DNDEBUG=1
-CFLAGS_DEBUG = /f /nologo /W3 /AL /Gw /Gy /Zp /O2 /Od /Zi
+CFLAGS_RELEASE = /f- /nologo /W3 /AL /Gw /Gsy /Zp /O2 /DNDEBUG=1
+CFLAGS_DEBUG = /f /nologo /W3 /AL /Gw /Gsy /Zp /O2 /Od /Zi
!if $(DEBUG)
CFLAGS = $(CFLAGS_DEBUG) $(INCLUDES) /D$(KRB)=1
!else
install:
copy cns.exe ..\floppy
-clean:: tidy
+clean::
if exist *.exe del *.exe
if exist ..\floppy\cns.exe del ..\floppy\cns.exe
-
-tidy::
if exist *.obj del *.obj
if exist *.res del *.res
if exist *.map del *.map