From: Sam Hartman Date: Tue, 8 Jan 2002 17:42:31 +0000 (+0000) Subject: Assign entropy source identifier X-Git-Tag: krb5-1.3-alpha1~903 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=436ffb7faf45b3a8da6af57b96610b42c1da2e10;p=krb5.git Assign entropy source identifier git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14088 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 367c173ef..c999bfaba 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,5 +1,7 @@ 2002-01-08 Sam Hartman + * gen_subkey.c (krb5_generate_subkey): Label entropy sources + * init_ctx.c (init_common): Use /dev/urandom if present for random data 2001-12-05 Ezra Peisach diff --git a/src/lib/krb5/krb/gen_subkey.c b/src/lib/krb5/krb/gen_subkey.c index 41b8dd3a9..6144e3463 100644 --- a/src/lib/krb5/krb/gen_subkey.c +++ b/src/lib/krb5/krb/gen_subkey.c @@ -1,7 +1,7 @@ /* * lib/krb5/krb/gen_subkey.c * - * Copyright 1991 by the Massachusetts Institute of Technology. + * Copyright 1991, 2002 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -40,7 +40,7 @@ krb5_generate_subkey(context, key, subkey) seed.length = key->length; seed.data = key->contents; - if ((retval = krb5_c_random_seed(context, &seed))) + if ((retval = krb5_c_random_add_entropy(context, KRB5_C_RANDSOURCE_TRUSTEDPARTY, &seed))) return(retval); if ((*subkey = (krb5_keyblock *) malloc(sizeof(krb5_keyblock))) == NULL)