From: Mark Huang <mlhuang@cs.princeton.edu>
Date: Fri, 19 Jan 2007 17:22:39 +0000 (+0000)
Subject: - use API_CA_SSL_CRT (root CA authority cert), not API_SSL_CRT (actual
X-Git-Tag: pycurl-7_13_1~70
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=40a76ecc6516a64799d1133edeba39e19b00964a;p=plcapi.git

- use API_CA_SSL_CRT (root CA authority cert), not API_SSL_CRT (actual
  web server cert), for verifying server cert integrity
---

diff --git a/php/header.php b/php/header.php
index 955a4e9e..90dd9a98 100644
--- a/php/header.php
+++ b/php/header.php
@@ -8,7 +8,7 @@
 // Mark Huang <mlhuang@cs.princeton.edu>
 // Copyright (C) 2005-2006 The Trustees of Princeton University
 //
-// $Id: header.php,v 1.2 2006/10/27 15:40:20 mlhuang Exp $
+// $Id: header.php,v 1.3 2006/11/10 06:31:50 mlhuang Exp $
 //
 //
 
@@ -93,8 +93,8 @@ class PLCAPI
       curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 2);
       if (!empty($this->cainfo)) {
 	curl_setopt($curl, CURLOPT_CAINFO, $this->cainfo);
-      } elseif (defined('PLC_API_SSL_CRT')) {
-        curl_setopt($curl, CURLOPT_CAINFO, PLC_API_SSL_CRT);
+      } elseif (defined('PLC_API_CA_SSL_CRT')) {
+        curl_setopt($curl, CURLOPT_CAINFO, PLC_API_CA_SSL_CRT);
       }
       $url = 'https://';
     } else {