philip          Mon Jun  9 23:58:46 2003 EDT

  Modified files:              
    /phpdoc/en/reference/curl/functions curl-setopt.xml 
  Log:
  Document CURLOPT_CAINFO and CURLOPT_SSL_VERIFYPEER as requested in bug #23895
  # Basically just copied from: http://curl.haxx.se/libcurl/c/curl_easy_setopt.html
  
  
Index: phpdoc/en/reference/curl/functions/curl-setopt.xml
diff -u phpdoc/en/reference/curl/functions/curl-setopt.xml:1.3 
phpdoc/en/reference/curl/functions/curl-setopt.xml:1.4
--- phpdoc/en/reference/curl/functions/curl-setopt.xml:1.3      Sat Jun 15 04:41:36 
2002
+++ phpdoc/en/reference/curl/functions/curl-setopt.xml  Mon Jun  9 23:58:46 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- splitted from ./en/functions/curl.xml, last change in rev 1.1 -->
   <refentry id="function.curl-setopt">
    <refnamediv>
@@ -164,6 +164,28 @@
         <parameter>CURLOPT_RESUME_FROM</parameter>: Pass a long as a
         parameter that contains the offset, in bytes, that you want
         the transfer to start from.
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        <parameter>CURLOPT_CAINFO</parameter>: Pass a filename of a file
+        holding one or more certificates to verify the peer with.  This only
+        makes sense when used in combination with the <parameter>
+        CURLOPT_SSL_VERIFYPEER</parameter> option.
+       </simpara>
+      </listitem>
+      <listitem>
+       <simpara>
+        <parameter>CURL_SSL_VERIFYPEER</parameter>: Pass a long that is set
+        to a zero value to stop curl from verifying the peer's certificate
+        (curl 7.10 starting setting this option to &true; by default).
+        Alternate certificates to verify against can be specified with the
+        <parameter>CURLOPT_CAINFO</parameter> option (added in curl 7.9.8)
+        or a certificate directory can be specified with the <parameter>
+        CURLOPT_CAPATH</parameter> option.  As of curl 7.10, curl installs a
+        default bundle.  <parameter>CURLOPT_SSL_VERIFYHOST</parameter> may
+        also need to be set to 1 or 0 if <parameter>CURLOPT_SSL_VERIFYPEER
+        </parameter> is disabled (it defaults to 2).
        </simpara>
       </listitem>
       <listitem>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to