1
0
mirror of https://github.com/haiwen/ccnet-server.git synced 2025-09-12 12:59:18 +00:00

Fix compilation with openssl 1.1.0.

This commit is contained in:
ly1217
2018-05-11 03:48:17 -07:00
parent c095959cce
commit daf61d168d
3 changed files with 87 additions and 31 deletions

View File

@@ -162,7 +162,7 @@ main(int argc, char **argv)
config_dir = ccnet_expand_path (config_dir);
/* printf("[conf_dir=%s\n]", config_dir); */
SSLeay_add_all_algorithms();
OpenSSL_add_all_algorithms();
if (RAND_status() != 1) { /* it should be seeded automatically */
fprintf(stderr, "PRNG is not seeded\n");