summaryrefslogtreecommitdiffstats
path: root/src/uscxml/URL.cpp
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-03-22 13:32:20 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-03-22 13:32:20 (GMT)
commit75c3239c820cfbd7c903cb30de06aebab112e4c2 (patch)
tree9a7eed459a1950714b8ec5ca3b379156b46452b8 /src/uscxml/URL.cpp
parentdbc9a01b53cf5d069a176f47d24de81c1c5efd69 (diff)
downloaduscxml-75c3239c820cfbd7c903cb30de06aebab112e4c2.zip
uscxml-75c3239c820cfbd7c903cb30de06aebab112e4c2.tar.gz
uscxml-75c3239c820cfbd7c903cb30de06aebab112e4c2.tar.bz2
Some minor bugfixes
- Disabled peer verification with ssl URLs - Fixed a buffer overrun with JSON parsing - Changed test.php url to github
Diffstat (limited to 'src/uscxml/URL.cpp')
-rw-r--r--src/uscxml/URL.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/uscxml/URL.cpp b/src/uscxml/URL.cpp
index 4a4440d..7036e0a 100644
--- a/src/uscxml/URL.cpp
+++ b/src/uscxml/URL.cpp
@@ -340,6 +340,9 @@ void URLFetcher::fetchURL(URL& url) {
(curlError = curl_easy_setopt(handle, CURLOPT_HEADERDATA, url._impl.get())) == CURLE_OK ||
LOG(ERROR) << "Cannot register this as header userdata: " << curl_easy_strerror(curlError);
+ (curlError = curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, false)) == CURLE_OK ||
+ LOG(ERROR) << "Cannot forfeit peer verification: " << curl_easy_strerror(curlError);
+
if (boost::iequals(url._impl->_requestType, "post")) {
@@ -504,6 +507,7 @@ void URLFetcher::perform() {
curl_multi_remove_handle(_multiHandle, msg->easy_handle);
_handlesToURLs.erase(msg->easy_handle);
default:
+ LOG(ERROR) << "Unhandled curl status";
break;
}
} else {