+Mon Aug 7 17:38:45 EDT 1995 Paul Park (pjpark@mit.edu)
+ * keysalt.c(krb5_string_to_keysalt) - Don't do the silly whitespace
+ filling logic. If the string has imbedded whitespace, then
+ it's just tough rocks. Save replaced string separators and
+ terminators so that they string looks the same coming out as
+ going in.
+
+
Fri Aug 4 16:21:50 EDT 1995 Paul Park (pjpark@mit.edu)
* Makefile.in, .Sanitize, keysalt.c - Add keysalt.c modules.
krb5_int32 *nksaltp;
{
krb5_error_code kret;
- char *kp, *sp, *ep, *tp;
+ char *kp, *sp, *ep;
+ char sepchar, trailchar;
krb5_keytype ktype;
krb5_int32 stype;
krb5_key_salt_tuple *savep;
}
if (ep) {
- /* Fill in trailing whitespace of kp */
- tp = ep - 1;
- while (isspace(*tp) && (tp < kp)) {
- *tp = '\0';
- tp--;
- }
+ trailchar = *ep;
*ep = '\0';
ep++;
- /* Skip trailing whitespace of ep */
- while (isspace(*ep) && (*ep)) ep++;
}
/*
* kp points to something (hopefully) of the form:
if (sp) {
/* Separate keytype from salttype */
+ sepchar = *sp;
*sp = '\0';
sp++;
}
break;
}
}
+ if (sp)
+ sp[-1] = sepchar;
+ if (ep)
+ ep[-1] = trailchar;
kp = ep;
}
return(kret);