summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-06-15 20:01:43 +0200
committerLars-Dominik Braun <lars@6xq.net>2015-06-15 20:01:43 +0200
commit61dbc218e747f1b550a2615ffe3065024db29239 (patch)
treecd46a89a6e5346e7e100e132bff057d4b69b1f5c /src/ui.c
parent4458cbab76fd98989fa2d4260dd20bbbd66297a4 (diff)
downloadpianobar-windows-61dbc218e747f1b550a2615ffe3065024db29239.tar.gz
pianobar-windows-61dbc218e747f1b550a2615ffe3065024db29239.tar.bz2
pianobar-windows-61dbc218e747f1b550a2615ffe3065024db29239.zip
Replace setting tls_fingerprint with ca_bundle
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui.c b/src/ui.c
index 5dd5d79..91eb005 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -186,6 +186,9 @@ static CURLcode BarPianoHttpRequest (CURL * const http,
setAndCheck (CURLOPT_WRITEDATA, &buffer);
setAndCheck (CURLOPT_POST, 1);
setAndCheck (CURLOPT_TIMEOUT, 30);
+ if (settings->caBundle != NULL) {
+ setAndCheck (CURLOPT_CAINFO, settings->caBundle);
+ }
/* set up proxy (control proxy for non-us citizen or global proxy for poor
* firewalled fellows) */