krb5_pointer to krb5_const_pointer to ensure const integrity of
parameter.
* in_tkt_ktb.c (keytab_keyproc): Add const argument to cast of
keyseed to struct keytab_keyproc_arg to maintain const status.
* conv_princ.c (krb5_524_conv_principal): Cast argument to
memcpy to size_t.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13636
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-07-24 Ezra Peisach <epeisach@mit.edu>
+
+ * in_tkt_sky.c (krb5_get_in_tkt_with_skey): Change cast from
+ krb5_pointer to krb5_const_pointer to ensure const integrity of
+ parameter.
+
+ * in_tkt_ktb.c (keytab_keyproc): Add const argument to cast of
+ keyseed to struct keytab_keyproc_arg to maintain const status.
+
+ * conv_princ.c (krb5_524_conv_principal): Cast argument to memcpy
+ to size_t.
+
2001-07-06 Ezra Peisach <epeisach@mit.edu>
* conv_princ.c (krb5_425_conv_principal): Cast argument to tolower
c = strnchr(compo->data, '.', compo->length);
if (!c || (c - compo->data) >= INST_SZ - 1)
return KRB5_INVALID_PRINCIPAL;
- memcpy(inst, compo->data, c - compo->data);
+ memcpy(inst, compo->data, (size_t) (c - compo->data));
inst[c - compo->data] = '\0';
}
break;
krb5_const_pointer keyseed;
krb5_keyblock ** key;
{
- struct keytab_keyproc_arg * arg = (struct keytab_keyproc_arg *)keyseed;
+ const struct keytab_keyproc_arg * arg =
+ (const struct keytab_keyproc_arg *)keyseed;
krb5_keyblock *realkey;
krb5_error_code retval = 0;
krb5_keytab kt_id;
{
if (key)
return krb5_get_in_tkt(context, options, addrs, ktypes, pre_auth_types,
- skey_keyproc, (krb5_pointer)key,
+ skey_keyproc, (krb5_const_pointer)key,
krb5_kdc_rep_decrypt_proc, 0, creds,
ccache, ret_as_reply);
else