summaryrefslogtreecommitdiffstats
path: root/UPDATING
diff options
context:
space:
mode:
authorbjk <bjk@FreeBSD.org>2013-12-16 02:04:28 +0000
committerbjk <bjk@FreeBSD.org>2013-12-16 02:04:28 +0000
commit638d19cdfc3e1b9804fdac80041c562bd3910dbd (patch)
treeac95972a2922e37d7c576e188401c4e4c30b34fc /UPDATING
parent607f8e622d0e7916f591cd79aef3cab0e0c1f227 (diff)
downloadFreeBSD-src-638d19cdfc3e1b9804fdac80041c562bd3910dbd.zip
FreeBSD-src-638d19cdfc3e1b9804fdac80041c562bd3910dbd.tar.gz
MFC r259286,259424,259425:
Apply patch from upstream Heimdal for encoding fix RFC 4402 specifies the implementation of the gss_pseudo_random() function for the krb5 mechanism (and the C bindings therein). The implementation uses a PRF+ function that concatenates the output of individual krb5 pseudo-random operations produced with a counter and seed. The original implementation of this function in Heimdal incorrectly encoded the counter as a little-endian integer, but the RFC specifies the counter encoding as big-endian. The implementation initializes the counter to zero, so the first block of output (16 octets, for the modern AES enctypes 17 and 18) is unchanged. (RFC 4402 specifies that the counter should begin at 1, but both existing implementations begin with zero and it looks like the standard will be re-issued, with test vectors, to begin at zero.) This is upstream's commit f85652af868e64811f2b32b815d4198e7f9017f6, from 13 October, 2013: % Fix krb5's gss_pseudo_random() (n is big-endian) % % The first enctype RFC3961 prf output length's bytes are correct because % the little- and big-endian representations of unsigned zero are the % same. The second block of output was wrong because the counter was not % being encoded as big-endian. % % This change could break applications. But those applications would not % have been interoperating with other implementations anyways (in % particular: MIT's). Bump __FreeBSD_version accordingly and add a note in UPDATING. Approved by: hrs (mentor, src committer)
Diffstat (limited to 'UPDATING')
-rw-r--r--UPDATING11
1 files changed, 11 insertions, 0 deletions
diff --git a/UPDATING b/UPDATING
index e3fd236..cee1817 100644
--- a/UPDATING
+++ b/UPDATING
@@ -16,6 +16,17 @@ from older versions of FreeBSD, try WITHOUT_CLANG to bootstrap to the tip of
stable/10, and then rebuild without this option. The bootstrap process from
older version of current is a bit fragile.
+20131216:
+ The behavior of gss_pseudo_random() for the krb5 mechanism
+ has changed, for applications requesting a longer random string
+ than produced by the underlying enctype's pseudo-random() function.
+ In particular, the random string produced from a session key of
+ enctype aes256-cts-hmac-sha1-96 or aes256-cts-hmac-sha1-96 will
+ be different at the 17th octet and later, after this change.
+ The counter used in the PRF+ construction is now encoded as a
+ big-endian integer in accordance with RFC 4402.
+ __FreeBSD_version is bumped to 1000701.
+
20131031:
The default version of mtree is nmtree which is obtained from
NetBSD. The output is generally the same, but may vary
OpenPOWER on IntegriCloud