Assign entropy source identifier
authorSam Hartman <hartmans@mit.edu>
Tue, 8 Jan 2002 17:42:31 +0000 (17:42 +0000)
committerSam Hartman <hartmans@mit.edu>
Tue, 8 Jan 2002 17:42:31 +0000 (17:42 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14088 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/gen_subkey.c

index 367c173ef0d3345a2dfc08eac886d24245f99b28..c999bfaba48d5cfedd083f28b495de5b89caa443 100644 (file)
@@ -1,5 +1,7 @@
 2002-01-08  Sam Hartman  <hartmans@mit.edu>
 
+       * 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  <epeisach@mit.edu>
index 41b8dd3a9ed8ef637a6b45c1846b80a3d1215012..6144e34631ca1ea710e070ad060ba93a694567a0 100644 (file)
@@ -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)