Daniel Stenberg
2a7f1425d9
urlglob: avoid NULL pointer dereference
...
Thanks to clang-analyzer
2013-09-06 14:12:44 +02:00
Gisle Vanem
900ccc26ae
http2: use correct include for snprintf
...
Using the first little merge of nghttp2 into libcurl, I stumbeled on the
missing 'snprintf' in MSVCRT. Isn't this how we do it for other libcurl
files? I.e. use 'curl_msnprintf' and not 'snprintf' directly:
2013-09-06 13:56:35 +02:00
Daniel Stenberg
01d7bbbebe
--data: mention CRLF treatment when reading from file
2013-09-06 13:52:56 +02:00
Geoff Beier
3dc6fc42bf
LDAP: fix bad free() when URL parsing failed
...
When an error occurs parsing an LDAP URL, The ludp->lud_attrs[i] entries
could be freed even though they sometimes point to data within an
allocated area.
This change introduces a lud_attrs_dup[] array for the duplicated string
pointers, and it removes the unused lud_exts array.
Bug: http://curl.haxx.se/mail/lib-2013-08/0209.html
2013-09-06 13:32:49 +02:00
Nick Zitzmann
d2fe616e7e
darwinssl: add support for PKCS#12 files for client authentication
...
I also documented the fact that the OpenSSL engine also supports them.
2013-09-05 18:57:06 -05:00
Daniel Stenberg
316ca865e3
symbols: added HTTP2 symbols and sorted list
...
CURL_HTTP_VERSION_2_0 and CURL_VERSION_HTTP2 are new
2013-09-05 12:04:41 +02:00
Daniel Stenberg
812d49db90
configure: add HTTP2 as a curl-config --feature output
...
Fixes the test 1014 failure
2013-09-05 12:03:24 +02:00
Daniel Stenberg
02370fff3a
curl: unbreak --http1.0 again
...
I broke it in 2eabb7d590
2013-09-05 09:56:05 +02:00
Daniel Stenberg
e9de8e78f0
SASL: fix compiler warnings
...
comparison between signed and unsigned integer expressions
suggest parentheses around '&&' within '||' (twice)
2013-09-04 22:33:29 +02:00
Daniel Stenberg
2eabb7d590
curl: add --http1.1 and --http2.0 options
2013-09-04 22:29:38 +02:00
Daniel Stenberg
d707a975f6
Curl_setopt: refuse CURL_HTTP_VERSION_2_0 if built without support
2013-09-04 22:29:38 +02:00
Daniel Stenberg
ac487842a1
http2: add http2.[ch] and add nghttp2 version output
2013-09-04 22:29:38 +02:00
Daniel Stenberg
06b6e1d0d2
curl -V: output HTTP2 as a feature if present
2013-09-04 22:29:38 +02:00
Daniel Stenberg
b77997e6da
curl.h: add CURL_VERSION_HTTP2 as a feature
...
It isn't added as a separate protocol as HTTP2 will be done over HTTP://
URLs that can be upgraded to HTTP2 if the server supports it as well.
2013-09-04 22:29:38 +02:00
Steve Holme
9e8ced9890
imap/smtp: Fixed incorrect SASL mechanism selection with XOAUTH2 servers
...
XOAUTH2 would be selected in preference to LOGIN and PLAIN if the IMAP
or SMTP server advertised support for it even though a user's password
was supplied but bearer token wasn't.
Modified the selection logic so that XOAUTH2 will only be selected if
the server supports it and A) The curl user/libcurl programmer has
specifically asked for XOAUTH via the ;AUTH=XOAUTH login option or 2)
The bearer token is specified. Obviously if XOAUTH is asked for via
the login option but no token is specified the user will receive a
authentication failure which makes more sense than no known
authentication mechanisms supported!
2013-09-04 21:27:01 +01:00
Daniel Stenberg
698e3bdf82
curl.h: added CURL_HTTP_VERSION_2_0
...
Initial library considerations documented in lib/README.http2
2013-09-04 10:05:00 +02:00
Daniel Stenberg
9011fb3f0c
configure: added --with-nghttp2
2013-09-04 10:04:48 +02:00
Daniel Stenberg
073b03fab7
acinclude: fix --without-ca-path when cross-compiling
...
The commit 7b074a460b
to CURL_CHECK_CA_BUNDLE in 7.31 (don't check
for paths when cross-compiling) causes --without-ca-path to no longer
works when cross-compiling, since ca and capath only ever get set to
"no" when not cross-compiling, I attach a patch that works for me. Also
in the cross-compilation case, no ca-path seems to be a better default
(IMVHO) than empty ca-path.
Bug: http://curl.haxx.se/bug/view.cgi?id=1273
Patch-by: Stefan Neis
2013-09-04 00:01:03 +02:00
Steve Holme
f73f052010
lib1512.c: Fixed compilation warning
...
An enumerated type is mixed with another type.
...as well as a small coding style error.
2013-09-02 20:39:53 +01:00
Guenter Knauf
97ed1ac905
Killed warning 'res' might be used uninitialized.
2013-09-01 23:08:29 +02:00
Steve Holme
322f0bc2f1
url.c: Fixed compilation warning
...
An enumerated type is mixed with another type
2013-09-01 13:30:12 +01:00
Steve Holme
af4bddf20b
easy.c: Fixed compilation warning
...
warning: `code' might be used uninitialized in this function
2013-09-01 12:48:50 +01:00
Daniel Stenberg
f19efd07e7
-x: rephrased the --proxy section somewhat
2013-08-31 22:55:53 +02:00
Steve Holme
83f5332536
tests: Added test for IMAP CHECK command
2013-08-31 18:40:48 +01:00
Steve Holme
497775024c
ftpserver.pl: Added support for the IMAP CHECK command
2013-08-31 18:40:46 +01:00
Guenter Knauf
ea38a70539
Removed reference to krb4.c.
2013-08-31 19:12:35 +02:00
Steve Holme
5eea336d01
ftpserver.pl: Corrected flawed logic in commit 1ca6ed7b75
2013-08-31 11:10:20 +01:00
Steve Holme
f3849a7b84
imap: Fixed response check for EXPUNGE command
2013-08-31 10:49:49 +01:00
Steve Holme
1ca6ed7b75
ftpserver.pl: Added argument check to IMAP command handlers
...
Added BAD argument check to the following IMAP command handlers:
APPEND, STORE, LIST, EXAMINE, STATUS and SEARCH
2013-08-31 10:41:25 +01:00
Steve Holme
aa51d3a139
ftpserver.pl: More whitespace corrections
...
LIST_imap() had a second level of indentation at 9 characters and not 8.
2013-08-31 10:35:05 +01:00
Steve Holme
64c8909071
ftpserver.pl: Small correction tidy up
...
Corrected some IMAP variable names and whitespace issues.
2013-08-30 22:11:17 +01:00
Kyle L. Huff
e848942505
docs: Added documentation for CURLOPT_BEARER
2013-08-30 21:43:13 +01:00
Kyle L. Huff
7e489c42f7
curl.1: Add usage of '--bearer' option
2013-08-30 21:34:20 +01:00
Steve Holme
75b52f9dcc
tests: Added tests for IMAP CREATE, DELETE and RENAME commands
2013-08-30 18:56:56 +01:00
Daniel Stenberg
221825aebf
ftpserver: Bareword "to_mailbox" not allowed
...
Added missing $
2013-08-30 15:21:39 +02:00
Steve Holme
9d35ad9552
ftpserver.pl: Added support for IMAP CREATE, DELETE and RENAME commands
2013-08-30 07:35:00 +01:00
Daniel Stenberg
c4a7ca038e
FTP: fix getsock during DO_MORE state
...
... when doing upload it would return the wrong values at times. This
commit attempts to cleanup the mess.
Bug: http://curl.haxx.se/mail/lib-2013-08/0109.html
Reported-by: Mike Mio
2013-08-29 23:09:31 +02:00
Daniel Stenberg
84f3b3dd44
curl_multi_remove_handle: allow multiple removes
...
When removing an already removed handle, avoid that to ruin the
internals and just return OK instead.
2013-08-29 22:08:45 +02:00
Steve Holme
2ef83136d4
ftpserver.pl: Updated IMAP EXAMINE handler to use dynamic test data
2013-08-29 20:08:27 +01:00
Daniel Stenberg
d737aa19c8
unit1304: include memdebug and free everything correctly
2013-08-29 12:50:15 +02:00
Daniel Stenberg
78e6683bb0
Curl_parsenetrc: document that the arguments must be allocated
2013-08-29 12:49:56 +02:00
Daniel Stenberg
2f9b64ac33
easy: rename struct monitor to socketmonitor
...
'struct monitor', introduced in 6cf8413e
, already exists in an IRIX
header file (sys/mon.h) which gets included via various standard headers
by lib/easy.c
cc-1101 cc: ERROR File = ../../curl/lib/easy.c, Line = 458
"monitor" has already been declared in the current scope.
Reported-by: Tor Arntsen
2013-08-29 09:58:11 +02:00
Steve Holme
6a353049ac
ftpserver.pl: Added SELECT check to IMAP FETCH and STORE handlers
2013-08-29 07:20:03 +01:00
Steve Holme
49e3d803ab
ftpserver.pl: Corrected accidental move of logmsg() call
...
Corrected the call to logmsg() in the IMAP SEARCH handler from commit
4ae7b7ea69
as it should have been outputting the what argument and
not the test number.
2013-08-28 22:58:33 +01:00
Daniel Stenberg
b644ae68c8
ftpserver: add missing '}' from 4ae7b7ea69
2013-08-28 22:59:19 +02:00
Steve Holme
4ae7b7ea69
ftpserver.pl: Added SELECT check to IMAP SEARCH command
2013-08-28 18:56:19 +01:00
Steve Holme
13a2e32548
ftpserver.pl: Fixed IMAP SEARCH command
2013-08-28 18:51:59 +01:00
Daniel Stenberg
c3b513e75c
bump: next release is 7.33.0 due to added features
2013-08-28 09:32:48 +02:00
Daniel Stenberg
a74b36af2a
symbols-in-versions: add CURLOPT_XOAUTH2_BEARER
2013-08-28 09:31:37 +02:00
Steve Holme
1b4dc10393
tests: Added test for IMAP SEARCH command
2013-08-28 07:27:10 +01:00