From: Tom Yu Date: Thu, 6 Jul 1995 23:18:24 +0000 (+0000) Subject: * new_rn_key.c (mit_des_init_random_number_generator): don't call X-Git-Tag: krb5-1.0-beta6~1580 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=de5a789d0cc555b317e6036a6902885e63dc6790;p=krb5.git * new_rn_key.c (mit_des_init_random_number_generator): don't call us_timeofday with context arg; also update for new function names (krb5_crypto_*). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6236 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/des/ChangeLog b/src/lib/crypto/des/ChangeLog index 07431daaf..1464b12da 100644 --- a/src/lib/crypto/des/ChangeLog +++ b/src/lib/crypto/des/ChangeLog @@ -1,3 +1,9 @@ +Thu Jul 6 17:16:17 1995 Tom Yu + + * new_rn_key.c (mit_des_init_random_number_generator): don't call + us_timeofday with context arg; also update for new + function names (krb5_crypto_*). + Fri Jun 9 19:18:29 1995 * configure.in: Remove standardized set of autoconf macros, which diff --git a/src/lib/crypto/des/new_rn_key.c b/src/lib/crypto/des/new_rn_key.c index ac72bb622..ada7ff422 100644 --- a/src/lib/crypto/des/new_rn_key.c +++ b/src/lib/crypto/des/new_rn_key.c @@ -88,14 +88,13 @@ mit_des_init_random_number_generator(key,p_seed) mit_des_cblock new_key; krb5_address **addrs = 0; - krb5_context context; /* * use a host id in generating the seed to ensure * that different servers have different streams: */ memset((char *)seed, 0, sizeof(seed)); - if (!krb5_os_localaddr(&addrs) && addrs && *addrs) { + if (!krb5_crypto_os_localaddr(&addrs) && addrs && *addrs) { memcpy((char *)seed, (char *)addrs[0]->contents, min(sizeof(seed), addrs[0]->length)); /* XXX may not do all of the seed. */ @@ -127,8 +126,9 @@ mit_des_init_random_number_generator(key,p_seed) * use a time stamp to ensure that a server started later does not reuse * an old stream: */ - (void) krb5_us_timeofday(context, &timenow.seconds, - &timenow.microseconds); /* XXX return value */ + /* XXX return value */ + (void) krb5_crypto_us_timeofday(&timenow.seconds, + &timenow.microseconds); mit_des_set_sequence_number((unsigned char *)&timenow, p_seed); /*