From f846134ff223c8bdb68402416661e9ad798fe729 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Thu, 17 Jun 2004 21:11:00 +0000 Subject: [PATCH] * ser_sctx.c (kg_ctx_size, kg_ctx_externalize): Adjust for new field cred_rcache. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16477 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/ChangeLog | 5 +++++ src/lib/gssapi/krb5/ser_sctx.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index 786a4164a..d33801a08 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,8 @@ +2004-06-17 Tom Yu + + * ser_sctx.c (kg_ctx_size, kg_ctx_externalize): Adjust for new + field cred_rcache. + 2004-06-15 Tom Yu * accept_sec_context.c (krb5_gss_accept_sec_context): Only null diff --git a/src/lib/gssapi/krb5/ser_sctx.c b/src/lib/gssapi/krb5/ser_sctx.c index 452ffbf43..c5468be78 100644 --- a/src/lib/gssapi/krb5/ser_sctx.c +++ b/src/lib/gssapi/krb5/ser_sctx.c @@ -273,11 +273,12 @@ kg_ctx_size(kcontext, arg, sizep) * krb5_int32 for cksumtype * ... for acceptor_subkey * krb5_int32 for acceptor_key_cksumtype + * krb5_int32 for cred_rcache * krb5_int32 for trailer. */ kret = EINVAL; if ((ctx = (krb5_gss_ctx_id_rec *) arg)) { - required = 16*sizeof(krb5_int32); + required = 17*sizeof(krb5_int32); required += 2*sizeof(krb5_int64); required += sizeof(ctx->seed); @@ -472,6 +473,9 @@ kg_ctx_externalize(kcontext, arg, buffer, lenremain) kret = krb5_ser_pack_int32((krb5_int32) ctx->acceptor_subkey_cksumtype, &bp, &remain); + if (!kret) + kret = krb5_ser_pack_int32((krb5_int32) ctx->cred_rcache, + &bp, &remain); /* trailer */ if (!kret) kret = krb5_ser_pack_int32(KG_CONTEXT, &bp, &remain); -- 2.26.2