rd_cred.c: removed INTERFACE keyword.
ser_auth.c: passing int32 where a size_t is wanted.
ser_ctx.c: 16/32 bit int size mismatch.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6826
dc483132-0cff-0310-8789-
dd5450dbe970
+Wed Sep 13 10:58:20 1995 Keith Vetter (keithv@fusion.com)
+
+ * get_in_t.c: removed unused variable.
+ * rd_cred.c: removed INTERFACE keyword.
+ * ser_auth.c: passing int32 where a size_t is wanted.
+ * ser_ctx.c: 16/32 bit int size mismatch.
+
Sun Sep 17 23:41:19 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* rd_safe.c: Fix typo error.
krb5_ccache ccache;
krb5_kdc_rep ** ret_as_reply;
{
- krb5_enctype enctype, ktype;
+ krb5_enctype enctype;
krb5_kdc_req request;
krb5_kdc_rep *as_reply = 0;
krb5_error *err_reply;
* This functions takes as input an KRB_CRED message, validates it, and
* outputs the nonce and an array of the forwarded credentials.
*/
-krb5_error_code INTERFACE
+krb5_error_code
krb5_rd_cred(context, auth_context, pcreddata, pppcreds, outdata)
krb5_context context;
krb5_auth_context auth_context;
size_t remain;
int i;
krb5_int32 nadata;
+ size_t len;
bp = *buffer;
remain = *lenremain;
/* Attempt to read in the authorization data count */
if (!(kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain))) {
nadata = ibuf;
+ len = (size_t) (nadata + 1);
/* Get memory for the authorization data pointers */
if ((authenticator->authorization_data = (krb5_authdata **)
- malloc(sizeof(krb5_authdata *) * (nadata+1)))) {
+ malloc(sizeof(krb5_authdata *) * len))) {
memset(authenticator->authorization_data, 0,
- sizeof(krb5_authdata *) * (nadata+1));
+ sizeof(krb5_authdata *) * len);
for (i=0; !kret && (i<nadata); i++) {
kret = krb5_internalize_opaque(kcontext,
/* Get the number of ktypes */
if (!(kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain))) {
/* Reduce it to a count */
- context->ktype_count = ibuf;
+ context->ktype_count = (int) ibuf;
if ((context->ktypes = (krb5_enctype *)
malloc(sizeof(krb5_enctype) *
(context->ktype_count+1)))) {