2004-06-17 Tom Yu <tlyu@mit.edu>
- * ser_sctx.c (kg_ctx_size, kg_ctx_externalize): Adjust for new
- field cred_rcache.
+ * ser_sctx.c (kg_ctx_size, kg_ctx_externalize):
+ (kg_ctx_internalize): Adjust for new field cred_rcache.
2004-06-15 Tom Yu <tlyu@mit.edu>
kret = ENOMEM;
/* Get a context */
- if ((remain >= (16*sizeof(krb5_int32)
+ if ((remain >= (17*sizeof(krb5_int32)
+ 2*sizeof(krb5_int64)
+ sizeof(ctx->seed))) &&
(ctx = (krb5_gss_ctx_id_rec *)
if (kret == EINVAL)
kret = 0;
}
+ if (!kret)
+ kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain);
+ ctx->cred_rcache = ibuf;
if (!kret)
kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain);
ctx->acceptor_subkey_cksumtype = ibuf;