[17074] in Kerberos_V5_Development
Re: Windows: how to get high resolution time in PRNG
daemon@ATHENA.MIT.EDU (Greg Hudson)
Tue Aug 9 16:40:53 2011
From: Greg Hudson <ghudson@mit.edu>
To: Sam Hartman <hartmans@mit.edu>
In-Reply-To: <tslhb5qmjog.fsf@mit.edu>
Date: Tue, 09 Aug 2011 16:40:49 -0400
Message-ID: <1312922449.16540.3.camel@t410>
Mime-Version: 1.0
Cc: "kevin.wasserman@painless-security.com"
<kevin.wasserman@painless-security.com>,
"krbdev@mit.edu" <krbdev@mit.edu>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu
On Tue, 2011-08-09 at 16:09 -0400, Sam Hartman wrote:
> How do we want to fix this?
My preferred design would be:
1. Add a gettimeofday() equivalent to libkrb5support, prototyped in
k5-platform.h. Best if the API looks like gettimeofday() to callers
(#defined to k5_gettimeofday on platforms which don't have native
gettimeofday) but if that causes problems it's not a hard requirement.
2. Use that function in prng_fortuna.c and c_ustime.c.
The mutex and massaging code in c_ustime.c can stay where they are.
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev