diff options
author | Greg Hudson <ghudson@mit.edu> | 2012-02-21 18:57:44 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2012-06-25 18:56:26 -0400 |
commit | 33af1767f876ff4a13f28513dede75e71544523f (patch) | |
tree | b8c8be9950d69d1165a53dd1dfe2609bf197e23e /src/tests/asn.1/ldap_trval.out | |
parent | ceb037a667a6411ebb56f67535cb0d76f9511e4c (diff) | |
download | krb5-krb5-1.8.zip krb5-krb5-1.8.tar.gz krb5-krb5-1.8.tar.bz2 |
Fix kvno ASN.1 encoding interop with Windows RODCskrb5-1.8
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)
ticket: 7186 (new)
version_fixed: 1.8.7
status: resolved
Diffstat (limited to 'src/tests/asn.1/ldap_trval.out')
-rw-r--r-- | src/tests/asn.1/ldap_trval.out | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/tests/asn.1/ldap_trval.out b/src/tests/asn.1/ldap_trval.out index 02a37e3..16ea737 100644 --- a/src/tests/asn.1/ldap_trval.out +++ b/src/tests/asn.1/ldap_trval.out @@ -1,30 +1,30 @@ + encode_krb5_ldap_seqof_key_data: -[Sequence/Sequence Of] +[Sequence/Sequence Of] . [0] [Integer] 1 . [1] [Integer] 1 . [2] [Integer] 42 . [3] [Integer] 14 -. [4] [Sequence/Sequence Of] -. . [Sequence/Sequence Of] -. . . [0] [Sequence/Sequence Of] +. [4] [Sequence/Sequence Of] +. . [Sequence/Sequence Of] +. . . [0] [Sequence/Sequence Of] . . . . [0] [Integer] 0 . . . . [1] [Octet String] "salt0" -. . . [1] [Sequence/Sequence Of] +. . . [1] [Sequence/Sequence Of] . . . . [0] [Integer] 2 . . . . [1] [Octet String] "key0" -. . [Sequence/Sequence Of] -. . . [0] [Sequence/Sequence Of] +. . [Sequence/Sequence Of] +. . . [0] [Sequence/Sequence Of] . . . . [0] [Integer] 1 . . . . [1] [Octet String] "salt1" -. . . [1] [Sequence/Sequence Of] +. . . [1] [Sequence/Sequence Of] . . . . [0] [Integer] 2 . . . . [1] [Octet String] "key1" -. . [Sequence/Sequence Of] -. . . [0] [Sequence/Sequence Of] +. . [Sequence/Sequence Of] +. . . [0] [Sequence/Sequence Of] . . . . [0] [Integer] 2 . . . . [1] [Octet String] "salt2" -. . . [1] [Sequence/Sequence Of] +. . . [1] [Sequence/Sequence Of] . . . . [0] [Integer] 2 . . . . [1] [Octet String] "key2" - |