Skip Menu |
 

From: tlyu@mit.edu
Subject: SVN Commit
Download (untitled) / with headers
text/plain 2.1KiB

Fix kvno ASN.1 encoding interop with Windows RODCs

RFC 4120 defines the EncryptedData kvno field as an integer in the
range of unsigned 32-bit numbers. Windows encodes and decodes the
field as a signed 32-bit integer. Historically we do the same in our
encoder in 1.6 and prior, and in our decoder through 1.10. (Actually,
our decoder through 1.10 decoded the value as a long and then cast the
result to unsigned int, so it would accept positive values >= 2^31 on
64-bit platforms but not on 32-bit platforms.)

kvno values that large (or negative) are only likely to appear in the
context of Windows read-only domain controllers. So do what Windows
does instead of what RFC 4120 says.

(back ported from commit 7558fb3af9f9fdfb8195333c11a70ab7b354f82c)

Add test cases for Windows RODC kvno compatibility

(back ported from commit 8b33ff2daebcf3e4ccff6a938b410239b76ba287)

Eliminate trailing whitespace in trval output

Modify the trval output slightly so that the reference trval output
files don't containing trailing whitespace, to make them friendlier to
our git hooks. (The pkinit and ldap trval reference files now contain
a leading blank line, which isn't very elegant, but avoiding that
requires too much Makefile.in complexity.) Also correct a typo.

(back ported from cff6ea939f061d17a5742a04b8eeb2905c1813dc)

Restore some spaces in trval

This is a cosmetic change to reintroduce some space characters that
cff6ea939f061d17a5742a04b8eeb2905c1813dc removed, e.g. between the tag
and the length or short value.

(back ported from 0f976348054ca2f51187fe083a8c4668841f0b6d)

https://github.com/krb5/krb5/commit/33af1767f876ff4a13f28513dede75e71544523f
Author: Greg Hudson <ghudson@mit.edu>
Committer: Tom Yu <tlyu@mit.edu>
Commit: 33af1767f876ff4a13f28513dede75e71544523f
Branch: krb5-1.8
src/lib/krb5/asn.1/asn1_k_encode.c | 16 +-
src/tests/asn.1/krb5_decode_test.c | 4 +
src/tests/asn.1/krb5_encode_test.c | 13 +-
src/tests/asn.1/ldap_trval.out | 24 +-
src/tests/asn.1/reference_encode.out | 2 +
src/tests/asn.1/trval.c | 17 +-
src/tests/asn.1/trval_reference.out | 839 +++++++++++++++++-----------------
7 files changed, 480 insertions(+), 435 deletions(-)