aboutsummaryrefslogtreecommitdiff
path: root/src/smtp.c
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-21 14:52:10 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-21 14:52:10 +0200
commit1c6008869cbe9ad956f5ed56462637a1d35018e0 (patch)
tree9c17409087d6980e0093dbef3174567c9a6d1767 /src/smtp.c
parent1c1515b335c78d82cb99a50aa9dfaa4c083e3d9c (diff)
downloadbokf-1c6008869cbe9ad956f5ed56462637a1d35018e0.tar.gz
bokf-1c6008869cbe9ad956f5ed56462637a1d35018e0.zip
tls: load the system CA bundle explicitly under static OpenSSLv0.1.58
Diffstat (limited to 'src/smtp.c')
-rw-r--r--src/smtp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/smtp.c b/src/smtp.c
index 6a90424..18834fa 100644
--- a/src/smtp.c
+++ b/src/smtp.c
@@ -18,6 +18,7 @@
#include <openssl/ssl.h>
#include <openssl/x509.h>
+#include "tls_ca.h"
#include "util.h"
#define SMTP_TIMEOUT_SEC 30
@@ -345,7 +346,7 @@ static int tls_start(struct smtp_conn *c, const char *host, char *err,
SSL_CTX_set_options(c->ctx, SSL_OP_NO_COMPRESSION |
SSL_OP_NO_RENEGOTIATION);
SSL_CTX_set_verify(c->ctx, SSL_VERIFY_PEER, NULL);
- if (SSL_CTX_set_default_verify_paths(c->ctx) != 1) {
+ if (tls_load_default_cas(c->ctx) != 1) {
set_err(err, errlen, "smtp: cannot load system CA certificates");
return -1;
}