Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 5ce2805

Browse files
fix: init ssl (#2058)
Co-authored-by: sangjanai <[email protected]>
1 parent 994ed98 commit 5ce2805

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

engine/cli/main.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <memory>
22
#include "command_line_parser.h"
33
#include "commands/cortex_upd_cmd.h"
4+
#include "openssl/ssl.h"
45
#include "services/download_service.h"
56
#include "utils/archive_utils.h"
67
#include "utils/cortex_utils.h"
@@ -88,6 +89,7 @@ int main(int argc, char* argv[]) {
8889
return 1;
8990
}
9091

92+
SSL_library_init();
9193
curl_global_init(CURL_GLOBAL_DEFAULT);
9294

9395
bool should_install_server = false;

engine/main.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "controllers/threads.h"
1818
#include "database/database.h"
1919
#include "migrations/migration_manager.h"
20+
#include "openssl/ssl.h"
2021
#include "repositories/assistant_fs_repository.h"
2122
#include "repositories/file_fs_repository.h"
2223
#include "repositories/message_fs_repository.h"
@@ -348,6 +349,7 @@ int main(int argc, char* argv[]) {
348349
return 1;
349350
}
350351

352+
SSL_library_init();
351353
curl_global_init(CURL_GLOBAL_DEFAULT);
352354

353355
// avoid printing logs to terminal

0 commit comments

Comments
 (0)