From 40a76ecc6516a64799d1133edeba39e19b00964a Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Fri, 19 Jan 2007 17:22:39 +0000 Subject: [PATCH] - use API_CA_SSL_CRT (root CA authority cert), not API_SSL_CRT (actual web server cert), for verifying server cert integrity --- php/header.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/php/header.php b/php/header.php index 955a4e9..90dd9a9 100644 --- a/php/header.php +++ b/php/header.php @@ -8,7 +8,7 @@ // Mark Huang // 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 { -- 2.43.0