Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sftp support #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Src/Modules/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/lua-apr/
/lua-curl/src/curl-7.21.6/
/lua-curl/src/curl-7.27.0/


10 changes: 10 additions & 0 deletions Src/Modules/lua-curl/src/Lua-cURL-setopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ static struct {
{P"http_transfer_decoding ", CURLOPT_HTTP_TRANSFER_DECODING , l_easy_setopt_long},
#endif
/* ftp options */
{P"ftpcreatemissingdirs", CURLOPT_FTP_CREATE_MISSING_DIRS, l_easy_setopt_long},
/* protocol options */
{P"transfertext", CURLOPT_TRANSFERTEXT, l_easy_setopt_long},
{P"crlf", CURLOPT_CRLF, l_easy_setopt_long},
Expand Down Expand Up @@ -227,6 +228,15 @@ static struct {
{P"port", CURLOPT_PORT, l_easy_setopt_long},
{P"TCP_nodelay", CURLOPT_TCP_NODELAY, l_easy_setopt_long},
{P"ssl_verifypeer", CURLOPT_SSL_VERIFYPEER, l_easy_setopt_long},
{P"dirlistonly", CURLOPT_DIRLISTONLY, l_easy_setopt_long},
{P"prequote", CURLOPT_PREQUOTE, l_easy_setopt_strings},
{P"quote", CURLOPT_QUOTE, l_easy_setopt_strings},
{P"postquote", CURLOPT_POSTQUOTE, l_easy_setopt_strings},
/* ssh options */
{P"ssh_auth_types", CURLOPT_SSH_AUTH_TYPES, l_easy_setopt_long},
{P"ssh_public_keyfile", CURLOPT_SSH_PUBLIC_KEYFILE, l_easy_setopt_string},
{P"ssh_private_keyfile", CURLOPT_SSH_PRIVATE_KEYFILE, l_easy_setopt_string},

/* ssl options */
{P"sslcert", CURLOPT_SSLCERT, l_easy_setopt_string},
{P"sslcerttype", CURLOPT_SSLCERTTYPE, l_easy_setopt_string},
Expand Down
10 changes: 5 additions & 5 deletions Src/modules.jambuild/getlibcurl.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pushd
cd ..\Modules\lua-curl\src
if exist curl-7.21.6.zip del curl-7.21.6.zip
if exist curl-7.21.6 rmdir /s /q curl-7.21.6
wget http://curl.haxx.se/download/curl-7.21.6.zip
unzip curl-7.21.6.zip
del curl-7.21.6.zip
if exist curl-7.27.0.zip del curl-7.27.0.zip
if exist curl-7.27.0 rmdir /s /q curl-7.27.0
wget http://curl.haxx.se/download/curl-7.27.0.zip
unzip curl-7.27.0.zip
del curl-7.27.0.zip
popd
2 changes: 1 addition & 1 deletion Src/modules.jambuild/lbuffer.jam
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Lua.CModule lbuffer : buffer : lbuffer.c lbuffer.h lb_interface.c ;
# Lua.CModule lbuffer : buffer : lbuffer.c lbuffer.h lb_interface.c ;
Loading