diff options
Diffstat (limited to 'src/lib/libcrypto/crypto/getentropy_solaris.c')
| -rw-r--r-- | src/lib/libcrypto/crypto/getentropy_solaris.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/crypto/getentropy_solaris.c b/src/lib/libcrypto/crypto/getentropy_solaris.c index cfd5b70475..5a32922a23 100644 --- a/src/lib/libcrypto/crypto/getentropy_solaris.c +++ b/src/lib/libcrypto/crypto/getentropy_solaris.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: getentropy_solaris.c,v 1.4 2014/07/12 20:41:47 wouter Exp $ */ | 1 | /* $OpenBSD: getentropy_solaris.c,v 1.5 2014/07/13 08:24:20 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> |
| @@ -64,7 +64,9 @@ | |||
| 64 | 64 | ||
| 65 | int getentropy(void *buf, size_t len); | 65 | int getentropy(void *buf, size_t len); |
| 66 | 66 | ||
| 67 | #if 0 | ||
| 67 | extern int main(int, char *argv[]); | 68 | extern int main(int, char *argv[]); |
| 69 | #endif | ||
| 68 | static int gotdata(char *buf, size_t len); | 70 | static int gotdata(char *buf, size_t len); |
| 69 | static int getentropy_urandom(void *buf, size_t len, const char *path, | 71 | static int getentropy_urandom(void *buf, size_t len, const char *path, |
| 70 | int devfscheck); | 72 | int devfscheck); |
| @@ -297,7 +299,9 @@ getentropy_fallback(void *buf, size_t len) | |||
| 297 | HX(sigprocmask(SIG_BLOCK, NULL, &sigset) == -1, | 299 | HX(sigprocmask(SIG_BLOCK, NULL, &sigset) == -1, |
| 298 | sigset); | 300 | sigset); |
| 299 | 301 | ||
| 302 | #if 0 | ||
| 300 | HF(main); /* an addr in program */ | 303 | HF(main); /* an addr in program */ |
| 304 | #endif | ||
| 301 | HF(getentropy); /* an addr in this library */ | 305 | HF(getentropy); /* an addr in this library */ |
| 302 | HF(printf); /* an addr in libc */ | 306 | HF(printf); /* an addr in libc */ |
| 303 | p = (char *)&p; | 307 | p = (char *)&p; |
