aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-01-05 16:51:56 +0000
committerSaturneric <[email protected]>2022-01-05 16:51:56 +0000
commit2609a8cdebca4b37ae41f0529a4737fb42f82b83 (patch)
tree91a6d3602562f24ce79f02caec75a0ee9856251b /src/main.cpp
parent<feature>(ui, project): start to add imap support. (diff)
downloadGpgFrontend-2609a8cdebca4b37ae41f0529a4737fb42f82b83.tar.gz
GpgFrontend-2609a8cdebca4b37ae41f0529a4737fb42f82b83.zip
<feature>(ui, project): load root certs.
1. add root certs file. 2. loading root certs at startup. 3. store certs in GlobalSettingStation.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index fa4195ce..3df26886 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -40,6 +40,7 @@ INITIALIZE_EASYLOGGINGPP
jmp_buf recover_env;
extern void init_logging();
+extern void init_certs();
extern void init_locale();
extern void handle_signal(int sig);
@@ -64,9 +65,12 @@ int main(int argc, char* argv[]) {
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
- // logging system
+ // config logging system
init_logging();
+ // root certs for tls connection
+ init_certs();
+
// App config
QApplication::setApplicationVersion(BUILD_VERSION);
QApplication::setApplicationName(PROJECT_NAME);