+Tue Apr 2 20:57:12 1996 Chris Provenzano <proven@mit.edu>
+
+ * utility.c (krb5_data_hex_parse()) : Do a strdup() of string before
+ sending it off to sscanf(), because some systems sscanf can't
+ handle non writeable strings.
+
+Fri Mar 29 03:00:34 1996 Mark Eichin <eichin@cygnus.com>
+
+ * krb5_decode_test.c (main): add tests for krb5_sam_challenge and
+ krb5_sam_response.
+ * krb5_encode_test.c (main): likewise.
+ * ktest.c (ktest_make_sample_sam_challenge,
+ ktest_make_sample_sam_response): new functions, supporting tests
+ of new types.
+ * ktest_equal.c (ktest_equal_sam_challenge,
+ ktest_equal_sam_response): new comparators.
+ * reference_encode.out, trval_reference.out: add data for test cases.
+
Mon Mar 18 21:49:39 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
* configure.in: Add KRB5_RUN_FLAGS
const char * s;
{
int i, digit;
+ char *copy;
char *pos;
- d->data = (char*)calloc((strlen(s)+1)/3,sizeof(char));
+ /*
+ * Do a strdup() and use that, because some systems can't handle non
+ * writeable strings being passed to sscanf() --proven.
+ */
+ copy = strdup(s);
+ d->data = (char*)calloc((strlen(copy)+1)/3,sizeof(char));
if(d->data == NULL) return ENOMEM;
- d->length = (strlen(s)+1)/3;
- for(i=0,pos=(char*)s; i<d->length; i++,pos+=3){
+ d->length = (strlen(copy)+1)/3;
+ for(i=0,pos=(char*)copy; i<d->length; i++,pos+=3){
if(!sscanf(pos,"%x",&digit)) {
#ifdef KRB5_USE_ISODE
return EINVAL;