projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't call OPENSSL_cleanup().
[tinc]
/
src
/
openssl
/
crypto.c
diff --git
a/src/openssl/crypto.c
b/src/openssl/crypto.c
index
8fc7e77
..
bf9fe08
100644
(file)
--- a/
src/openssl/crypto.c
+++ b/
src/openssl/crypto.c
@@
-20,7
+20,6
@@
#include "../system.h"
#include <openssl/rand.h>
#include "../system.h"
#include <openssl/rand.h>
-#include <openssl/evp.h>
#include <openssl/engine.h>
#include "../crypto.h"
#include <openssl/engine.h>
#include "../crypto.h"
@@
-94,8
+93,7
@@
void randomize(void *out, size_t outlen) {
void crypto_init(void) {
random_init();
void crypto_init(void) {
random_init();
- uint64_t opts = OPENSSL_INIT_LOAD_CRYPTO_STRINGS | OPENSSL_INIT_ADD_ALL_CIPHERS | OPENSSL_INIT_ADD_ALL_DIGESTS | OPENSSL_INIT_ENGINE_ALL_BUILTIN;
- OPENSSL_init_crypto(opts, NULL);
+ ENGINE_load_builtin_engines();
if(!RAND_status()) {
fprintf(stderr, "Not enough entropy for the PRNG!\n");
if(!RAND_status()) {
fprintf(stderr, "Not enough entropy for the PRNG!\n");
@@
-104,6
+102,5
@@
void crypto_init(void) {
}
void crypto_exit(void) {
}
void crypto_exit(void) {
- OPENSSL_cleanup();
random_exit();
}
random_exit();
}