cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Probs with client certificates

From: Georg Horn <horn_at_koblenz-net.de>
Date: Wed, 22 Oct 2003 18:44:46 +0200

On Wed, Oct 22, 2003 at 06:37:06PM +0200, Georg Horn wrote:

> Yes, see the attached patch.

Argl, of course a small patch to main.c must also be done:

diff -r -c curl-7.10.7.orig/src/main.c curl-7.10.7/src/main.c
*** curl-7.10.7.orig/src/main.c Thu Aug 14 17:01:52 2003
--- curl-7.10.7/src/main.c Wed Oct 22 16:02:56 2003
***************
*** 3037,3048 ****
            curl_easy_setopt(curl, CURLOPT_CAPATH, config->capath);
          curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, TRUE);
        }
! else
! if(config->insecure_ok) {
! /* new stuff needed for libcurl 7.10 */
! curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
! curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1);
! }
        
        if((config->conf&CONF_NOBODY) ||
           config->remote_time) {
--- 3037,3047 ----
            curl_easy_setopt(curl, CURLOPT_CAPATH, config->capath);
          curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, TRUE);
        }
! if(config->insecure_ok) {
! /* new stuff needed for libcurl 7.10 */
! curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
! curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1);
! }
        
        if((config->conf&CONF_NOBODY) ||
           config->remote_time) {

Bye,
Georg

-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
Received on 2003-10-22