diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-11-14 20:00:16 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-11-14 20:00:16 +0000 |
commit | fae64ba40cff597f472bc7b87ba93093cfc9d6a9 (patch) | |
tree | 5e3077eaf2e58963205d47224908b7a37a10e6b1 /ext/curl | |
parent | 2b80314c3f2a6a6cfe6e52f45d3181fee1bc7fe0 (diff) | |
download | php-git-fae64ba40cff597f472bc7b87ba93093cfc9d6a9.tar.gz |
Added support for better control over FTP encryption protocols.
Diffstat (limited to 'ext/curl')
-rw-r--r-- | ext/curl/interface.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 8d1bb3600b..ba54b1dd78 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -369,7 +369,14 @@ PHP_MINIT_FUNCTION(curl) REGISTER_CURL_CONSTANT(CURLM_INTERNAL_ERROR); REGISTER_CURL_CONSTANT(CURLMSG_DONE); - + +#ifdef CURLOPT_FTPSSLAUTH + REGISTER_CURL_CONSTANT(CURLOPT_FTPSSLAUTH); + REGISTER_CURL_CONSTANT(CURLFTPAUTH_DEFAULT); + REGISTER_CURL_CONSTANT(CURLFTPAUTH_SSL); + REGISTER_CURL_CONSTANT(CURLFTPAUTH_TLS); +#endif + if (curl_global_init(CURL_GLOBAL_SSL) != CURLE_OK) { return FAILURE; } @@ -924,6 +931,10 @@ PHP_FUNCTION(curl_setopt) #if LIBCURL_VERSION_NUM > 0x070a06 /* CURLOPT_PROXYAUTH is available since curl 7.10.7 */ case CURLOPT_PROXYAUTH: #endif + +#ifdef CURLOPT_FTPSSLAUTH + case CURLOPT_FTPSSLAUTH: +#edif case CURLOPT_UNRESTRICTED_AUTH: case CURLOPT_PORT: convert_to_long_ex(zvalue); |