[svn-commits] tilghman: branch 1.6.2 r212250 - in /branches/1.6.2: ./ funcs/func_curl.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Aug 14 12:37:40 CDT 2009


Author: tilghman
Date: Fri Aug 14 12:37:37 2009
New Revision: 212250

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=212250
Log:
Merged revisions 212249 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r212249 | tilghman | 2009-08-14 12:36:40 -0500 (Fri, 14 Aug 2009) | 2 lines
  
  Add SSL_VERIFYPEER, as requested on the -users list
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/funcs/func_curl.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/funcs/func_curl.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.2/funcs/func_curl.c?view=diff&rev=212250&r1=212249&r2=212250
==============================================================================
--- branches/1.6.2/funcs/func_curl.c (original)
+++ branches/1.6.2/funcs/func_curl.c Fri Aug 14 12:37:37 2009
@@ -148,6 +148,9 @@
 	} 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;
@@ -514,22 +517,23 @@
 	.synopsis = "Set options for use with the CURL() function",
 	.syntax = "CURLOPT(<option>)",
 	.desc =
-"  cookie       - Send cookie with request\n"
-"  conntimeout  - Number of seconds to wait for connection\n"
-"  dnstimeout   - Number of seconds to wait for DNS response\n"
-"  ftptext      - For FTP, force a text transfer (boolean)\n"
-"  ftptimeout   - For FTP, the server response timeout\n"
-"  header       - Retrieve header information (boolean)\n"
-"  httptimeout  - Number of seconds to wait for HTTP response\n"
-"  maxredirs    - Maximum number of redirects to follow\n"
-"  proxy        - Hostname or IP to use as a proxy\n"
-"  proxytype    - http, socks4, or socks5\n"
-"  proxyport    - port number of the proxy\n"
-"  proxyuserpwd - A <user>:<pass> to use for authentication\n"
-"  referer      - Referer URL to use for the request\n"
-"  useragent    - UserAgent string to use\n"
-"  userpwd      - A <user>:<pass> to use for authentication\n"
-"  hashcompat   - Result data will be compatible for use with HASH()\n"
+"  cookie         - Send cookie with request [none]\n"
+"  conntimeout    - Number of seconds to wait for connection\n"
+"  dnstimeout     - Number of seconds to wait for DNS response\n"
+"  ftptext        - For FTP, force a text transfer (boolean)\n"
+"  ftptimeout     - For FTP, the server response timeout\n"
+"  header         - Retrieve header information (boolean)\n"
+"  httptimeout    - Number of seconds to wait for HTTP response\n"
+"  maxredirs      - Maximum number of redirects to follow\n"
+"  proxy          - Hostname or IP to use as a proxy\n"
+"  proxytype      - http, socks4, or socks5\n"
+"  proxyport      - port number of the proxy\n"
+"  proxyuserpwd   - A <user>:<pass> to use for authentication\n"
+"  referer        - Referer URL to use for the request\n"
+"  useragent      - UserAgent string to use\n"
+"  userpwd        - A <user>:<pass> to use for authentication\n"
+"  ssl_verifypeer - Whether to verify the peer certificate (boolean)\n"
+"  hashcompat     - Result data will be compatible for use with HASH()\n"
 "",
 	.read = acf_curlopt_read,
 	.write = acf_curlopt_write,




More information about the svn-commits mailing list