diff options
Diffstat (limited to 'src/lib/libcrypto/crypto/getentropy_linux.c')
| -rw-r--r-- | src/lib/libcrypto/crypto/getentropy_linux.c | 11 |
1 files changed, 6 insertions, 5 deletions
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 | */ |
| 158 | static int | 159 | static int |
| 159 | gotdata(char *buf, size_t len) | 160 | gotdata(char *buf, size_t len) |
