Files
heimdal/lib
Mikhail T 9f6baf00f6 lib/krb5: Implement krb5_c_random_make_octets correctly
The function, found in lib/krb5/mit_glue.c, is currently using
krb5_generate_random_keyblock(). This compiles because warning-level is
not high enough, but does not work. At runtime the
krb5_generate_random_keyblock() interprets the second argument as the
krb5_enctype (rather than a length of anything) and tries to verify it.

When the length does not match any known enctype, as usually happens, the
function fails and returns an error. If the length happened to correspond
to an enctype, the function would likely crash due to misinterpreting its
third argument as a valid krb5_keyblock.

The change uses krb5_generate_random_block() instead. This function does
not return anything -- upon detecting failure it will cause the entire
application to exist instead...

Change-Id: I865a360037a513ce91abc7abba1dc554f844b464
2016-06-18 17:35:16 -04:00
..
2016-04-16 16:58:08 -05:00
2016-04-18 23:36:16 -05:00
2016-06-09 01:13:14 -04:00
2016-05-07 05:29:12 -04:00
2014-08-22 20:57:24 -07:00
2014-04-25 02:42:17 +02:00
2016-02-26 01:04:31 -06:00
2016-02-28 20:34:26 -05:00
2015-03-21 15:44:48 -04:00
2014-04-25 02:42:17 +02:00
2014-02-18 08:34:32 -08:00
2015-03-21 15:44:48 -04:00
2016-04-15 00:16:16 -05:00