+2004-04-13 Jeffrey Altman <jaltman@mit.edu>
+
+ * ccbase.c:
+ On Windows, if there is a ccache name provided without
+ a prefix but which appears to start with a drive letter,
+ treat it as a FILE: ccache instead of failing with a
+ ccache type unknown error.
+
2004-04-13 Jeffrey Altman <jaltman@mit.edu>
* ccbase.c:
pfxlen = cp - name;
- resid = name + pfxlen + 1;
+#if defined(_WIN32)
+ if ( pfxlen == 1 && isalpha(name[0]) ) {
+ /* We found a drive letter not a prefix - use FILE: */
+ pfx = strdup("FILE:");
+ if (!pfx)
+ return ENOMEM;
+
+ resid = name;
+ } else {
+#endif
+ resid = name + pfxlen + 1;
- pfx = malloc (pfxlen+1);
- if (!pfx)
- return ENOMEM;
+ pfx = malloc (pfxlen+1);
+ if (!pfx)
+ return ENOMEM;
- memcpy (pfx, name, pfxlen);
- pfx[pfxlen] = '\0';
+ memcpy (pfx, name, pfxlen);
+ pfx[pfxlen] = '\0';
+#if defined(_WIN32)
+ }
+#endif
*cache = (krb5_ccache) 0;
+2004-04-13 Jeffrey Altman <jaltman@mit.edu>
+
+ * ktbase.c: On Windows, improve the treat drive letter
+ prefix string as a FILE: keytab change to work if the
+ default keytab type was changed to not be of type FILE:
+
2004-04-08 Jeffrey Altman <jaltman@mit.edu>
* ktbase.c: Restore the thread safety fixes
pfxlen = cp - name;
#if defined(_WIN32)
- if ( pfxlen == 1 ) {
- /* We found a drive letter not a prefix */
- return (*krb5_kt_dfl_ops.resolve)(context, name, ktid);
- }
+ if ( pfxlen == 1 && isalpha(name[0]) ) {
+ /* We found a drive letter not a prefix - use FILE: */
+ pfx = strdup("FILE:");
+ if (!pfx)
+ return ENOMEM;
+
+ resid = name;
+ } else {
#endif
-
- resid = name + pfxlen + 1;
+ resid = name + pfxlen + 1;
- pfx = malloc (pfxlen+1);
- if (!pfx)
- return ENOMEM;
+ pfx = malloc (pfxlen+1);
+ if (!pfx)
+ return ENOMEM;
- memcpy (pfx, name, pfxlen);
- pfx[pfxlen] = '\0';
+ memcpy (pfx, name, pfxlen);
+ pfx[pfxlen] = '\0';
+#if defined(_WIN32)
+ }
+#endif
*ktid = (krb5_keytab) 0;