summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbeck <>2014-06-25 16:31:03 +0000
committerbeck <>2014-06-25 16:31:03 +0000
commit3bf4f973f9e5a80dfc022e955e790904849dc232 (patch)
tree1b3984963915ecd22c654f2b96bbd4a1973599e7 /src
parent7ffc775f69f7ed331b65c715f952ce9cf05a51a3 (diff)
downloadopenbsd-3bf4f973f9e5a80dfc022e955e790904849dc232.tar.gz
openbsd-3bf4f973f9e5a80dfc022e955e790904849dc232.tar.bz2
openbsd-3bf4f973f9e5a80dfc022e955e790904849dc232.zip
comment fixes from theo
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/arc4random/getentropy_linux.c11
-rw-r--r--src/lib/libcrypto/crypto/getentropy_linux.c11
2 files changed, 12 insertions, 10 deletions
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 @@
1/* $OpenBSD: getentropy_linux.c,v 1.10 2014/06/25 16:29:30 beck Exp $ */ 1/* $OpenBSD: getentropy_linux.c,v 1.11 2014/06/25 16:31:03 beck Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> 4 * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@@ -108,9 +108,10 @@ getentropy(void *buf, size_t len)
108 * essentially the same problems as /dev/urandom. 108 * essentially the same problems as /dev/urandom.
109 * 109 *
110 * Numerous setbacks have been encountered in their deprecation 110 * Numerous setbacks have been encountered in their deprecation
111 * schedule, so as of June 2014 the kernel ABI still exists. The 111 * schedule, so as of June 2014 the kernel ABI still exists on
112 * sysctl() stub in libc is missing on some systems. There are 112 * most Linux architectures. The sysctl() stub in libc is missing
113 * also reports that some kernels spew messages to the console. 113 * on some systems. There are also reports that some kernels
114 * spew messages to the console.
114 */ 115 */
115 ret = getentropy_sysctl(buf, len); 116 ret = getentropy_sysctl(buf, len);
116 if (ret != -1) 117 if (ret != -1)
@@ -153,7 +154,7 @@ getentropy(void *buf, size_t len)
153} 154}
154 155
155/* 156/*
156 * XXX Should be replaced with a proper entropy measure. 157 * Basic sanity checking; wish we could do better.
157 */ 158 */
158static int 159static int
159gotdata(char *buf, size_t len) 160gotdata(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 @@
1/* $OpenBSD: getentropy_linux.c,v 1.10 2014/06/25 16:29:30 beck Exp $ */ 1/* $OpenBSD: getentropy_linux.c,v 1.11 2014/06/25 16:31:03 beck Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> 4 * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@@ -108,9 +108,10 @@ getentropy(void *buf, size_t len)
108 * essentially the same problems as /dev/urandom. 108 * essentially the same problems as /dev/urandom.
109 * 109 *
110 * Numerous setbacks have been encountered in their deprecation 110 * Numerous setbacks have been encountered in their deprecation
111 * schedule, so as of June 2014 the kernel ABI still exists. The 111 * schedule, so as of June 2014 the kernel ABI still exists on
112 * sysctl() stub in libc is missing on some systems. There are 112 * most Linux architectures. The sysctl() stub in libc is missing
113 * also reports that some kernels spew messages to the console. 113 * on some systems. There are also reports that some kernels
114 * spew messages to the console.
114 */ 115 */
115 ret = getentropy_sysctl(buf, len); 116 ret = getentropy_sysctl(buf, len);
116 if (ret != -1) 117 if (ret != -1)
@@ -153,7 +154,7 @@ getentropy(void *buf, size_t len)
153} 154}
154 155
155/* 156/*
156 * XXX Should be replaced with a proper entropy measure. 157 * Basic sanity checking; wish we could do better.
157 */ 158 */
158static int 159static int
159gotdata(char *buf, size_t len) 160gotdata(char *buf, size_t len)