* ser_sctx.c (kg_ctx_size, kg_ctx_externalize): Adjust for new
authorTom Yu <tlyu@mit.edu>
Thu, 17 Jun 2004 21:11:00 +0000 (21:11 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 17 Jun 2004 21:11:00 +0000 (21:11 +0000)
field cred_rcache.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16477 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/ser_sctx.c

index 786a4164a3c2aa83b613c03ea82de24b843faa54..d33801a08a15a0f4d5678fc5b566fd72cfbcc409 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-17  Tom Yu  <tlyu@mit.edu>
+
+       * ser_sctx.c (kg_ctx_size, kg_ctx_externalize): Adjust for new
+       field cred_rcache.
+
 2004-06-15  Tom Yu  <tlyu@mit.edu>
 
        * accept_sec_context.c (krb5_gss_accept_sec_context): Only null
index 452ffbf43d0a05f084d020642f28f477df7b900d..c5468be782f7fd322f2eac559ea6fd64f35fd493 100644 (file)
@@ -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);