summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Revert changes relative to lib/*.[ch] recent renamingYang Tse2013-01-0644-86/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts renaming and usage of lib/*.h header files done 28-12-2012, reverting 2 commits: f871de0... build: make use of 76 lib/*.h renamed files ffd8e12... build: rename 76 lib/*.h files This also reverts removal of redundant include guard (redundant thanks to changes in above commits) done 2-12-2013, reverting 1 commit: c087374... curl_setup.h: remove redundant include guard This also reverts renaming and usage of lib/*.c source files done 3-12-2013, reverting 3 commits: 13606bb... build: make use of 93 lib/*.c renamed files 5b6e792... build: rename 93 lib/*.c files 7d83dff... build: commit 13606bbfde follow-up 1 Start of related discussion thread: http://curl.haxx.se/mail/lib-2013-01/0012.html Asking for confirmation on pushing this revertion commit: http://curl.haxx.se/mail/lib-2013-01/0048.html Confirmation summary: http://curl.haxx.se/mail/lib-2013-01/0079.html NOTICE: The list of 2 files that have been modified by other intermixed commits, while renamed, and also by at least one of the 6 commits this one reverts follows below. These 2 files will exhibit a hole in history unless git's '--follow' option is used when viewing logs. lib/curl_imap.h lib/curl_smtp.h
* writeout: -w now supports remote_ip/port and local_ip/portDaniel Stenberg2013-01-031-0/+32
| | | | | | Added mention to the curl.1 man page. Test case 1223 verifies remote_ip/port.
* build: make use of 93 lib/*.c renamed filesYang Tse2013-01-035-29/+30
| | | | | | 93 *.c source files renamed to use our standard naming scheme. This change affects 77 files in libcurl's source tree.
* build: make use of 76 lib/*.h renamed filesYang Tse2012-12-2841-56/+56
| | | | | | 76 private header files renamed to use our standard naming scheme. This change affects 322 files in libcurl's source tree.
* curl tool: rename hugehelp files to tool_hugehelpYang Tse2012-12-262-0/+0
|
* curl tool: renaming hugehelp files to tool_hugehelpYang Tse2012-12-2617-66/+69
|
* configure: LIBMETALINK_CFLAGS actually is LIBMETALINK_CPPFLAGSYang Tse2012-12-211-1/+3
|
* VC6 IDE: link with advapi32.lib when using WIN32 crypto API (md5.c)Yang Tse2012-12-181-8/+8
|
* setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>Yang Tse2012-12-149-35/+0
| | | | Inclusion of top two most included header files now done in setup_once.h
* build: explain current role of LIBS in our Makefile.am filesYang Tse2012-12-041-1/+1
| | | | | | | BLANK_AT_MAKETIME may be used in our Makefile.am files to blank LIBS variable used in generated makefile at makefile processing time. Doing this functionally prevents LIBS from being used for all link targets in given makefile.
* build: prevent global LIBS from influencing src and lib build targetsYang Tse2012-12-031-1/+9
| | | | Currently, LIBS is already used through other macros.
* avoid mixing of enumerated type with another typeYang Tse2012-11-264-49/+49
|
* tool_metalink: fix error detection of hash alg initializationKamil Dudka2012-11-132-13/+15
| | | | | | | | | The {MD5,SHA1,SHA256}_Init functions from OpenSSL are called directly without any wrappers and they return 1 for success, 0 otherwise. Hence, we have to use the same approach in all the wrapper functions that are used for the other crypto libraries. This commit fixes a regression introduced in commit dca8ae5f.
* tool_metalink: allow to use hash algorithms provided by NSSKamil Dudka2012-11-091-0/+104
| | | | | Fixes bug #3578163: http://sourceforge.net/tracker/?func=detail&atid=100976&aid=3578163&group_id=976
* tool_metalink: allow to handle failure of hash alg initializationKamil Dudka2012-11-092-13/+35
|
* tool_metalink: introduce metalink_cleanup() in the internal APIKamil Dudka2012-11-093-0/+17
| | | | ... to release resources allocated at global scope
* Added deps for static metalink-aware MinGW builds.Guenter Knauf2012-11-081-0/+16
|
* curl: set CURLOPT_SSL_VERIFYHOST to 0 to disableDaniel Stenberg2012-11-061-1/+1
|
* uniformly use AM_CPPFLAGS, avoid deprecated INCLUDESDave Reisner2012-11-061-8/+8
| | | | | | | | | | | | | Since automake 1.12.4, the warnings are issued on running automake: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') Avoid INCLUDES and roll these flags into AM_CPPFLAGS. Compile tested on: Ubuntu 10.04 (automake 1:1.11.1-1) Ubuntu 12.04 (automake 1:1.11.3-1ubuntu2) Arch Linux (automake 1.12.4)
* metalink/md5: Use CommonCrypto on Apple operating systemsNick Zitzmann2012-10-221-4/+4
| | | | | | | | Previously the Metalink code used Apple's CommonCrypto library only if curl was built using the --with-darwinssl option. Now we use CommonCrypto on all Apple operating systems including Tiger or later, or iOS 5 or later, so you don't need to build --with-darwinssl anymore. Also rolled out this change to libcurl's md5 code.
* Fix now broken libmetalink-aware OpenSSL build.Guenter Knauf2012-10-131-1/+1
|
* Revert c44e674; add OpenSSL includes/defines.Guenter Knauf2012-10-131-3/+15
| | | | | | The makefile is designed to build against a libmetalink devel package; therefore is does not matter what will change inside libmetalink. Add OpenSSL includes and defines for libmetalink-aware OpenSSL builds.
* tool_metalink.c: Filtered resource URLs by typeTatsuhiro Tsujikawa2012-10-011-3/+18
| | | | | | | | | | | | In Metalink v3, the type attribute of url element indicates the type of the resource the URL points to. It can include URL to the meta data, such as BitTorrent metainfo file. In Curl, we are not interested in these meta data URLs. Instead, we are only interested in the HTTP and FTP URLs. This change filters out non-HTTP and FTP URLs. If we don't filter out them, it will be downloaded by curl and hash check will fail if hash is provided and next URL will be tried. This change will cut this useless network transfer.
* Makefile.vc6: Follow up on 0c8ccf7Marc Hoersken2012-09-241-3/+3
|
* tool_metalink.c: Added name of validation hash to messagesMarc Hoersken2012-09-121-7/+8
| | | | This makes it easier to debug broken hashes or hash functions.
* wincrypt: Fixed cross-compilation issues caused by include nameMarc Hoersken2012-09-111-1/+1
| | | | For some reason WinCrypt.h is named wincrypt.h under MinGW.
* Makefile.m32: Updated to build against libmetalink 0.1.2Marc Hoersken2012-09-111-3/+3
| | | | | The include and library path were moved within libmetalink, this patch adjusts the defaults provided within the curl MinGW makefile.
* tool_metalink.c: Added support for Microsoft Windows CryptoAPIMarc Hoersken2012-09-111-0/+95
| | | | | | | Since Metalink support requires a crypto library for hash functions and Windows comes with the builtin CryptoAPI, this patch adds that API as a fallback to the supported crypto libraries. It is automatically used on Windows if no other library is provided.
* tool_metalink.c: Fixed error: 'O_BINARY' undeclaredMarc Hoersken2012-09-111-3/+8
| | | | Check for O_BINARY which is not available on every system.
* tool_metalink.c: Fixed validation of binary files containing EOFMarc Hoersken2012-09-111-1/+2
| | | | | | | | Since Windows/MinGW threat 0x1A as the EOF character, reading binary files which contain that byte does not work using text mode. The read function will only read until the first 0x1A byte. This means that the hash is not computed from the whole file and the final validation check using hash comparision fails.
* tool_easysrc.c: Test pointers against NULLDavid Blaikie2012-09-061-3/+3
| | | | | | While validating a new Clang diagnostic (-Wnon-literal-null-conversion - yes, the name isn't quite correct in this case, but it suffices) I found a few violations of it in Curl.
* metalink: Un-broke the build when building --with-darwinsslNick Zitzmann2012-08-081-0/+9
|
* globbing: fix segfault when >9 globs were usedDaniel Stenberg2012-08-072-3/+12
| | | | | | | Stupid lack of range checks caused the code to overwrite local variables after glob number nine. Added checks now. Bug: http://curl.haxx.se/bug/view.cgi?id=3546353
* operate: fix clang-analyzer warnings for never read variablesDaniel Stenberg2012-08-061-4/+1
| | | | Two separate "Value stored to 'XXX' is never read" warnings
* operate: fix clang-analyzer warningDaniel Stenberg2012-08-061-1/+0
| | | | Value stored to 'separator' is never read
* metalink: change code order to build with gnutls-nettleDaniel Stenberg2012-08-061-58/+58
| | | | | Bug: http://curl.haxx.se/bug/view.cgi?id=3554668 Reported by: Anthony G. Basile
* tool_operate: fix misplaced initialization of orig_noprogressKamil Dudka2012-07-221-2/+6
| | | | | ... and orig_isatty which caused --silent to be entirely ignored in case the standard output was redirected to a file!
* getparam: fix the GetStr() macroDaniel Stenberg2012-07-151-3/+4
| | | | | It should return PARAM_NO_MEM if the strdup fails. Spotted by clang-analyzer
* Minor fixes to MinGW makefiles.Guenter Knauf2012-07-121-3/+3
|
* Removed libcurl.imp from Makefile.am.Guenter Knauf2012-07-111-0/+1
| | | | Updated .gitignore for NetWare created files.
* Changed MinGW makefiles to use WINSSL now.Guenter Knauf2012-07-111-2/+2
|
* cmdline: parse numerical options stricterDaniel Stenberg2012-07-105-34/+78
| | | | | | | | | | | 1 - str2offset() no longer accepts negative numbers since offsets are by nature positive. 2 - introduced str2unum() for the command line parser that accepts numericals which are not supposed to be negative, so that it will properly complain on apparent bad uses and mistakes. Bug: http://curl.haxx.se/mail/archive-2012-07/0013.html
* Removed obsolete include path to project root.Guenter Knauf2012-07-081-1/+1
|
* Renamed vars to avoid shadow global declaration.Guenter Knauf2012-07-041-4/+4
|
* Moved some patterns to subfolder's .gitignore.Guenter Knauf2012-07-031-0/+2
|
* MinGW makefile tweaks for running from sh.Guenter Knauf2012-07-031-19/+44
| | | | | Added function macros to make path converting easier. Added CROSSPREFIX to all compile tools.
* curl: Added runtime version check for libmetalinkTatsuhiro Tsujikawa2012-07-022-1/+26
|
* Include metalink/metalink.h for libmetalink functionsTatsuhiro Tsujikawa2012-07-022-2/+2
|
* Metalink: message updatesTatsuhiro Tsujikawa2012-06-283-10/+29
| | | | | | | | | | Print "parsing (...) OK" only when no warnings are generated. If no file is found in Metalink, treat it FAILED. If no digest is provided, print WARNING in parse_metalink(). Also print validating FAILED after download. These changes make tests 2012 to 2016 pass.
* Metalink: updated message formatTatsuhiro Tsujikawa2012-06-273-21/+41
|