From 3bf4f973f9e5a80dfc022e955e790904849dc232 Mon Sep 17 00:00:00 2001 From: beck <> Date: Wed, 25 Jun 2014 16:31:03 +0000 Subject: comment fixes from theo --- src/lib/libcrypto/arc4random/getentropy_linux.c | 11 ++++++----- src/lib/libcrypto/crypto/getentropy_linux.c | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/arc4random/getentropy_linux.c b/src/lib/libcrypto/arc4random/getentropy_linux.c index da86137e5a..d231bb9601 100644 --- a/src/lib/libcrypto/arc4random/getentropy_linux.c +++ b/src/lib/libcrypto/arc4random/getentropy_linux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getentropy_linux.c,v 1.10 2014/06/25 16:29:30 beck Exp $ */ +/* $OpenBSD: getentropy_linux.c,v 1.11 2014/06/25 16:31:03 beck Exp $ */ /* * Copyright (c) 2014 Theo de Raadt @@ -108,9 +108,10 @@ getentropy(void *buf, size_t len) * essentially the same problems as /dev/urandom. * * Numerous setbacks have been encountered in their deprecation - * schedule, so as of June 2014 the kernel ABI still exists. The - * sysctl() stub in libc is missing on some systems. There are - * also reports that some kernels spew messages to the console. + * schedule, so as of June 2014 the kernel ABI still exists on + * most Linux architectures. The sysctl() stub in libc is missing + * on some systems. There are also reports that some kernels + * spew messages to the console. */ ret = getentropy_sysctl(buf, len); if (ret != -1) @@ -153,7 +154,7 @@ getentropy(void *buf, size_t len) } /* - * XXX Should be replaced with a proper entropy measure. + * Basic sanity checking; wish we could do better. */ static int gotdata(char *buf, size_t len) diff --git a/src/lib/libcrypto/crypto/getentropy_linux.c b/src/lib/libcrypto/crypto/getentropy_linux.c index da86137e5a..d231bb9601 100644 --- a/src/lib/libcrypto/crypto/getentropy_linux.c +++ b/src/lib/libcrypto/crypto/getentropy_linux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getentropy_linux.c,v 1.10 2014/06/25 16:29:30 beck Exp $ */ +/* $OpenBSD: getentropy_linux.c,v 1.11 2014/06/25 16:31:03 beck Exp $ */ /* * Copyright (c) 2014 Theo de Raadt @@ -108,9 +108,10 @@ getentropy(void *buf, size_t len) * essentially the same problems as /dev/urandom. * * Numerous setbacks have been encountered in their deprecation - * schedule, so as of June 2014 the kernel ABI still exists. The - * sysctl() stub in libc is missing on some systems. There are - * also reports that some kernels spew messages to the console. + * schedule, so as of June 2014 the kernel ABI still exists on + * most Linux architectures. The sysctl() stub in libc is missing + * on some systems. There are also reports that some kernels + * spew messages to the console. */ ret = getentropy_sysctl(buf, len); if (ret != -1) @@ -153,7 +154,7 @@ getentropy(void *buf, size_t len) } /* - * XXX Should be replaced with a proper entropy measure. + * Basic sanity checking; wish we could do better. */ static int gotdata(char *buf, size_t len) -- cgit v1.2.3-55-g6feb