projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
release 4.2.4
[m6w6/ext-http]
/
src
/
php_http_client_curl.c
diff --git
a/src/php_http_client_curl.c
b/src/php_http_client_curl.c
index 46502bad1eb9b532b67e9cd12400c5bfad7be412..156c569ec1393b586a4fc76d8c61e2dfc3570122 100644
(file)
--- a/
src/php_http_client_curl.c
+++ b/
src/php_http_client_curl.c
@@
-1202,8
+1202,10
@@
static ZEND_RESULT_CODE php_http_curle_option_set_ssl_tlsauthtype(php_http_optio
if (val && Z_LVAL_P(val)) {
switch (Z_LVAL_P(val)) {
if (val && Z_LVAL_P(val)) {
switch (Z_LVAL_P(val)) {
+ case CURL_TLSAUTH_NONE:
+ break;
case CURL_TLSAUTH_SRP:
case CURL_TLSAUTH_SRP:
- if (CURLE_OK == curl_easy_setopt(ch, opt->option,
PHP_HTTP_LIBCURL_TLSAUTH_SRP
)) {
+ if (CURLE_OK == curl_easy_setopt(ch, opt->option,
"SRP"
)) {
return SUCCESS;
}
/* no break */
return SUCCESS;
}
/* no break */
@@
-1211,7
+1213,7
@@
static ZEND_RESULT_CODE php_http_curle_option_set_ssl_tlsauthtype(php_http_optio
return FAILURE;
}
}
return FAILURE;
}
}
- if (CURLE_OK != curl_easy_setopt(ch, opt->option,
PHP_HTTP_LIBCURL_TLSAUTH_DEF
)) {
+ if (CURLE_OK != curl_easy_setopt(ch, opt->option,
"NONE"
)) {
return FAILURE;
}
return SUCCESS;
return FAILURE;
}
return SUCCESS;