cvs: pecl /http config9.m4 http_request_api.c

From: Date: Sun, 19 Nov 2006 14:34:23 +0000
Subject: cvs: pecl /http config9.m4 http_request_api.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-6655@lists.php.net to get a copy of this message
mike Sun Nov 19 14:34:23 2006 UTC Modified files: /pecl/http config9.m4 http_request_api.c Log: - check for curls bundled ca certs http://cvs.php.net/viewvc.cgi/pecl/http/config9.m4?r1=1.12&r2=1.13&diff_format=u Index: pecl/http/config9.m4 diff -u pecl/http/config9.m4:1.12 pecl/http/config9.m4:1.13 --- pecl/http/config9.m4:1.12 Thu Nov 9 13:42:28 2006 +++ pecl/http/config9.m4 Sun Nov 19 14:34:23 2006 @@ -1,5 +1,5 @@ dnl config.m4 for pecl/http -dnl $Id: config9.m4,v 1.12 2006/11/09 13:42:28 mike Exp $ +dnl $Id: config9.m4,v 1.13 2006/11/19 14:34:23 mike Exp $ dnl vim: noet ts=1 sw=1 PHP_ARG_ENABLE([http], [whether to enable extended HTTP support], @@ -211,6 +211,21 @@ AC_MSG_RESULT([no]) fi + AC_MSG_CHECKING([for bundled SSL CA info]) + CURL_CAINFO= + for i in $CURL_CONFIG --ca "/etc/ssl/certs/ca-certificates.crt"; do + if test -f "$i"; then + CURL_CAINFO="$i" + break + fi + done + if test -z "$CURL_CAINFO"; then + AC_MSG_RESULT([not found]) + else + AC_MSG_RESULT([$CURL_CAINFO]) + AC_DEFINE_UNQUOTED([HTTP_CURL_CAINFO], ["$CURL_CAINFO"], [path to bundled SSL CA info]) + fi + PHP_ADD_INCLUDE($CURL_DIR/include) PHP_ADD_LIBRARY_WITH_PATH(curl, $CURL_DIR/$PHP_LIBDIR, HTTP_SHARED_LIBADD) PHP_EVAL_LIBLINE($CURL_LIBS, HTTP_SHARED_LIBADD) http://cvs.php.net/viewvc.cgi/pecl/http/http_request_api.c?r1=1.141&r2=1.142&diff_format=u Index: pecl/http/http_request_api.c diff -u pecl/http/http_request_api.c:1.141 pecl/http/http_request_api.c:1.142 --- pecl/http/http_request_api.c:1.141 Mon Nov 6 10:31:24 2006 +++ pecl/http/http_request_api.c Sun Nov 19 14:34:23 2006 @@ -10,7 +10,7 @@ +--------------------------------------------------------------------+ */ -/* $Id: http_request_api.c,v 1.141 2006/11/06 10:31:24 mike Exp $ */ +/* $Id: http_request_api.c,v 1.142 2006/11/19 14:34:23 mike Exp $ */ #define HTTP_WANT_SAPI #define HTTP_WANT_CURL @@ -406,7 +406,11 @@ HTTP_CURL_OPT(CURLOPT_SSL_VERIFYPEER, 0L); HTTP_CURL_OPT(CURLOPT_SSL_VERIFYHOST, 0L); HTTP_CURL_OPT(CURLOPT_SSL_CIPHER_LIST, NULL); +#ifdef HTTP_CURL_CAINFO + HTTP_CURL_OPT(CURLOPT_CAINFO, HTTP_CURL_CAINFO); +#else HTTP_CURL_OPT(CURLOPT_CAINFO, NULL); +#endif HTTP_CURL_OPT(CURLOPT_CAPATH, NULL); HTTP_CURL_OPT(CURLOPT_RANDOM_FILE, NULL); HTTP_CURL_OPT(CURLOPT_EGDSOCKET, NULL);

« previous php.pecl.cvs (#6655) next »