]> git.ipfire.org Git - thirdparty/krb5.git/commit
Add ASN.1 codec for KKDCP's KDC-PROXY-MESSAGE
authorNathaniel McCallum <npmccallum@redhat.com>
Mon, 9 Sep 2013 18:23:56 +0000 (14:23 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 2 Jun 2014 21:58:26 +0000 (17:58 -0400)
commitbb89afd7c59deea855d2818fe36ef7472b4abf2e
treed5e010a26e547c0fdd45ae3608ac3066bfb15f7f
parentd0be57ac45ea639baa3cff0dd2108c34e834bfa7
Add ASN.1 codec for KKDCP's KDC-PROXY-MESSAGE

Handle encoding and decoding [MS-KKDCP] proxy messages, including
handling of the additional length bytes.  Early versions of [MS-KKDCP]
incorrectly omit that the size of the proxied message is prepended to
the proxied message, as it is when we're using plain TCP, before
encoding the proxy-message structure.  This is fixed at least as of
version 2.1 of the spec.

[nalin@redhat.com: add tests]

ticket: 7929
12 files changed:
src/include/k5-int.h
src/lib/krb5/asn.1/asn1_k_encode.c
src/lib/krb5/krb/kfree.c
src/lib/krb5/libkrb5.exports
src/tests/asn.1/krb5_decode_test.c
src/tests/asn.1/krb5_encode_test.c
src/tests/asn.1/ktest.c
src/tests/asn.1/ktest.h
src/tests/asn.1/ktest_equal.c
src/tests/asn.1/ktest_equal.h
src/tests/asn.1/reference_encode.out
src/tests/asn.1/trval_reference.out