diff options
author | beck <> | 2014-07-13 08:24:20 +0000 |
---|---|---|
committer | beck <> | 2014-07-13 08:24:20 +0000 |
commit | ebcfa9213de55892e384e1b884c4751637991f5f (patch) | |
tree | cc700dd34961148aad099ecbd212e3b44328c09f /src/lib/libcrypto/crypto/getentropy_solaris.c | |
parent | a6ba1a5d2fcf97f553aee1fbc4215ea2f01ff04c (diff) | |
download | openbsd-ebcfa9213de55892e384e1b884c4751637991f5f.tar.gz openbsd-ebcfa9213de55892e384e1b884c4751637991f5f.tar.bz2 openbsd-ebcfa9213de55892e384e1b884c4751637991f5f.zip |
Take away the use of the address of main as a source of entropy. Causes
distractions to people testing and seeing link errors in some setups.
This will come back in another form
ok deraadt@
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; |