From: Tilghman Lesher Date: Fri, 14 Aug 2009 17:36:40 +0000 (+0000) Subject: Add SSL_VERIFYPEER, as requested on the -users list X-Git-Tag: 11.0.0-beta1~4353 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18a5f4c4901e17ec90d5d577c7b8d6d93f0bee12;p=thirdparty%2Fasterisk.git Add SSL_VERIFYPEER, as requested on the -users list git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@212249 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/funcs/func_curl.c b/funcs/func_curl.c index 96af9b4682..e7c5b65ca5 100644 --- a/funcs/func_curl.c +++ b/funcs/func_curl.c @@ -148,6 +148,9 @@ static int parse_curlopt_key(const char *name, CURLoption *key, enum optiontype } else if (!strcasecmp(name, "ftptext")) { *key = CURLOPT_TRANSFERTEXT; *ot = OT_BOOLEAN; + } else if (!strcasecmp(name, "ssl_verifypeer")) { + *key = CURLOPT_SSL_VERIFYPEER; + *ot = OT_BOOLEAN; } else if (!strcasecmp(name, "hashcompat")) { *key = CURLOPT_SPECIAL_HASHCOMPAT; *ot = OT_BOOLEAN; @@ -585,22 +588,23 @@ static struct ast_custom_function acf_curlopt = { .synopsis = "Set options for use with the CURL() function", .syntax = "CURLOPT(