diff options
author | Steffen Jaeckel <jaeckel-floss@eyet-services.de> | 2022-03-22 11:26:53 +0100 |
---|---|---|
committer | Steffen Jaeckel <jaeckel-floss@eyet-services.de> | 2022-03-22 11:44:01 +0100 |
commit | 7f1f9787cb6de128d2ddc628dd57b9d89cba51ec (patch) | |
tree | 037397a08572305356ee06ab22f767ea9e7aeefb /src/command | |
parent | b28ac093688d0d3dbda8aa9755e1b9b54ed01e05 (diff) | |
download | profani-tty-7f1f9787cb6de128d2ddc628dd57b9d89cba51ec.tar.gz |
add profanity-specific CAfile
The profanity-internal mechanism to allow connecting to a server isn't easily portable to cURL. Therefor introduce a profanity-specific CAfile which is managed individually and will be configured in libcurl calls. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/cmd_funcs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index b1aadbf0..b061f9bf 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -67,6 +67,7 @@ #include "config/files.h" #include "config/accounts.h" #include "config/account.h" +#include "config/cafile.h" #include "config/preferences.h" #include "config/theme.h" #include "config/tlscerts.h" @@ -231,6 +232,7 @@ cmd_tls_trust(ProfWin* window, const char* const command, gchar** args) cons_show("Error getting TLS certificate."); return TRUE; } + cafile_add(cert); if (tlscerts_exists(cert->fingerprint)) { cons_show("Certificate %s already trusted.", cert->fingerprint); tlscerts_free(cert); |