projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix order of tincd's initialization.
[tinc]
/
src
/
openssl
/
crypto.c
diff --git
a/src/openssl/crypto.c
b/src/openssl/crypto.c
index
ece7f05
..
6c5cbc8
100644
(file)
--- a/
src/openssl/crypto.c
+++ b/
src/openssl/crypto.c
@@
-31,7
+31,13
@@
void crypto_init(void) {
ENGINE_load_builtin_engines();
ENGINE_register_all_complete();
+ ERR_load_crypto_strings();
OpenSSL_add_all_algorithms();
+
+ if(!RAND_status()) {
+ fprintf(stderr, "Not enough entropy for the PRNG!\n");
+ abort();
+ }
}
void crypto_exit(void) {