Module: kamailio
Branch: tmp/hpw_curl_improvements
Commit: d9b5cdab809ac32b63589f270561cda17abaadb2
URL:
https://github.com/kamailio/kamailio/commit/d9b5cdab809ac32b63589f270561cda…
Author: Hugh Waite <hugh.waite(a)xura.com>
Committer: Hugh Waite <hugh.waite(a)xura.com>
Date: 2016-01-26T12:45:33Z
curl: Use correct modparam type for string params
---
Modified: modules/curl/curl.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d9b5cdab809ac32b63589f270561cda…
Patch:
https://github.com/kamailio/kamailio/commit/d9b5cdab809ac32b63589f270561cda…
---
diff --git a/modules/curl/curl.c b/modules/curl/curl.c
index 79da671..0895039 100644
--- a/modules/curl/curl.c
+++ b/modules/curl/curl.c
@@ -140,16 +140,16 @@ static param_export_t params[] = {
{"connection_timeout", PARAM_INT, &default_connection_timeout},
{"curlcon", PARAM_STRING|USE_FUNC_PARAM, (void*)curl_con_param},
{"tlscacert", PARAM_STRING, &default_tls_cacert },
- {"tlsclientcert", PARAM_STRING, &default_tls_clientcert },
- {"tlsclientkey", PARAM_STRING, &default_tls_clientkey },
- {"tlscipherlist", PARAM_STRING, &default_cipher_suite_list },
+ {"tlsclientcert", PARAM_STR, &default_tls_clientcert },
+ {"tlsclientkey", PARAM_STR, &default_tls_clientkey },
+ {"tlscipherlist", PARAM_STR, &default_cipher_suite_list },
{"tlsversion", PARAM_INT, &default_tls_version },
{"tlsverifypeer", PARAM_INT, &default_tls_verify_peer },
{"tlsverifyhost", PARAM_INT, &default_tls_verify_host },
{"httpproxyport", PARAM_INT, &default_http_proxy_port },
{"httpproxy", PARAM_STRING, &default_http_proxy},
{"httpredirect", PARAM_INT, &default_http_follow_redirect },
- {"useragent", PARAM_STRING, &default_useragent },
+ {"useragent", PARAM_STR, &default_useragent },
{"maxdatasize", PARAM_INT, &default_maxdatasize },
{0, 0, 0}
};