Re: [PATCH] docs: Update SPNEGO and GSS-API related doc sections

2014-08-03 Thread Dan Fandrich
On Sun, Aug 03, 2014 at 08:53:55PM +0200, Michael Osipov wrote: > Am 2014-08-03 um 11:27 schrieb Dan Fandrich: > >On Sun, Aug 03, 2014 at 10:50:21AM +0200, Michael Osipov wrote: > >>Am 2014-08-03 um 10:27 schrieb Dan Fandrich: > >>>On Sat, Aug 02, 2014 at 02:18:29

Re: [PATCH] docs: Update SPNEGO and GSS-API related doc sections

2014-08-03 Thread Dan Fandrich
On Sun, Aug 03, 2014 at 10:50:21AM +0200, Michael Osipov wrote: > Am 2014-08-03 um 10:27 schrieb Dan Fandrich: > >On Sat, Aug 02, 2014 at 02:18:29PM +, Michael Osipov wrote: > >>@@ -180,7 +180,8 @@ FOOTNOTES > >>*1 = requires OpenSSL, GnuTLS, NSS, yas

Re: [PATCH] docs: Update SPNEGO and GSS-API related doc sections

2014-08-03 Thread Dan Fandrich
On Sat, Aug 02, 2014 at 02:18:29PM +, Michael Osipov wrote: > @@ -180,7 +180,8 @@ FOOTNOTES >*1 = requires OpenSSL, GnuTLS, NSS, yassl, axTLS, PolarSSL, WinSSL (native > Windows), Secure Transport (native iOS/OS X) or qssl (native IBM i) >*2 = requires OpenLDAP > - *3 = require

Re: better random from TLS/crypto backends!

2014-07-30 Thread Dan Fandrich
On Wed, Jul 30, 2014 at 12:12:12AM +0200, Daniel Stenberg wrote: > This action is made to highlight the need for attention and to stress > that we really can use good random, even for a few non-TLS features > and while we have a more stupid default implemenation for when > there's really no TLS bac

Re: How to specify specific ciphers for libssh2

2014-07-28 Thread Dan Fandrich
On Mon, Jul 28, 2014 at 06:35:44PM +, Valluri, Sathish wrote: > I have implemented SFTP transport using CURL, which in turn uses libssh2. > > The following are the corresponding versions of libraries that I am using > > Openssl 1.0.0-20 FIPS certified > > Libssh2 1.4.3 > > Curl 7.19 > > I

Re: Patches to make testing external proxies more convenient

2014-07-26 Thread Dan Fandrich
Hi, Fabian. I've applied a number of this batch of patches (the short, trivial ones). That's not to say that the others don't have value, just that I haven't thought about them much, noone else has chimed in one way or the other, and they touch thousands of files and it's too late in the day for m

Re: A Question On Curl

2014-07-26 Thread Dan Fandrich
On Sat, Jul 26, 2014 at 12:36:23PM -0700, Thomas Dineen wrote: > The code shown below works about 98% of the time! > > About 2% of the time it will hang in url_fgets() maybe for 10 > minutes or > more and sometimes longer. > > if the read fails that is ok, I just need it to return in

Re: Porting libcurl on embedded system with proprietary OS

2014-07-25 Thread Dan Fandrich
On Fri, Jul 25, 2014 at 09:52:11AM -0400, Jon Torrey wrote: > I am interested in cross-compiling on Linux for ARM INTEGRITY as it seems most > similar to what I am running. > > The example provided within install.html leaves me a tad confused on how to > get > prepared.  I've done a file grep ins

Re: Porting libcurl on embedded system with proprietary OS

2014-07-24 Thread Dan Fandrich
On Thu, Jul 24, 2014 at 09:39:00AM -0400, Jon Torrey wrote: > I am currently attempting to port over libcurl to an ARM-based embedded system > with a proprietary operating system.  After practicing building on both Linux Sounds like fun! > and Windows and capturing the output of the process in te

Re: Curl sftp issue with fips enabled openssl

2014-07-24 Thread Dan Fandrich
On Thu, Jul 24, 2014 at 03:20:02PM +, Valluri, Sathish wrote: > We are facing issue in curl sftp file transfer when FIPS mode is enabled in > the > openssl-1.0.0-20 version. Is libssh2 using the FIPS version of OpenSSL as well? > > * Hostname was NOT found in DNS cache > > * Trying 10.31

Key use of test certificate

2014-07-22 Thread Dan Fandrich
I looked into why test 310 is failing to run on a CyaSSL build with a "failed starting HTTPS server (stunnel)" error. The answer is that the server verification is failing with * SSL_connect failed with error -283: Key Use digitalSignature not set Error CyaSSL doesn't like that the certificate

Re: [PATCH] top: fix parsing of /proc/meminfo

2014-07-22 Thread Dan Fandrich
On Sun, Jul 20, 2014 at 11:20:13AM +0300, Timo Teras wrote: > On Sat, 19 Jul 2014 21:31:33 +0200 > Dan Fandrich wrote: > > > On Fri, Jul 18, 2014 at 10:07:06PM +0300, Timo Teräs wrote: > > > and do it in smaller code: > > > > > > diff --git a/procp

Re: [lxc-devel] [PATCH] download: Have wget retry 3 times

2014-07-21 Thread Dan Fandrich
On Mon, Jul 21, 2014 at 06:24:14PM +0200, Stéphane Graber wrote: > On Mon, Jul 21, 2014 at 04:14:43PM +, Serge Hallyn wrote: > > Quoting Stéphane Graber (stgra...@ubuntu.com): > > > This forces wget to retry if it gets a network error. > > > > > > Signed-off-by: Stéphane Graber > > > > I tho

Re: getpwuid_r on Solaris and _POSIX_PTHREAD_SEMANTICS

2014-07-20 Thread Dan Fandrich
On Sun, Jul 20, 2014 at 12:38:59PM -0400, dev wrote: > On July 14, 2014 at 1:55 PM Daniel Stenberg wrote: > > On Mon, 14 Jul 2014, Dan Fandrich wrote: > > > > > I have a patch ready to to set _POSIX_PTHREAD_SEMANTICS for Solaris > > > very > > > sim

Re: [PATCH] CURLOPT_CHUNK_BGN_FUNCTION: fix typo

2014-07-19 Thread Dan Fandrich
On Sat, Jul 19, 2014 at 05:02:01PM +0200, Alessandro Ghedini wrote: > Just a small typo I noticed (transfered -> transferred). Thanks! I've just committed it. >>> Dan --- List admin: http://cool.haxx.se/list/listinfo/curl-library Eti

Re: HTTP2 warnings

2014-07-18 Thread Dan Fandrich
On Tue, Jul 15, 2014 at 08:05:13PM +0100, Steve Holme wrote: > I don't know whether it is worth fixing these up before the release but I > noticed that the number of warnings in the OpenSuSE autobuilds has increased > from 18 to 30 at some point over the last few weeks. > > It seems that they are

Re: Announce for release 7.37.1?

2014-07-17 Thread Dan Fandrich
On Thu, Jul 17, 2014 at 01:01:23PM +0200, Daniel Stenberg wrote: > On Thu, 17 Jul 2014, Alessandro Ghedini wrote: > > >Is it just me or the announce for release 7.37.1 was not sent to > >this mailing list? I only noticed because of the GitHub tag. > > There's something wrong with the mail server

Re: getpwuid_r on Solaris and _POSIX_PTHREAD_SEMANTICS

2014-07-14 Thread Dan Fandrich
On Mon, Jul 14, 2014 at 11:45:06AM +0200, Tor Arntsen wrote: > I did a very quick scan of the Solaris header files, > _POSIX_PTHREAD_SEMANTICS has a lot of overlap with _POSIX_C_SOURCE > but the latter definitely has more impact. From what I could gather > with the minutes I had available this morn

Re: [PATCH] GnuTLS: Work around failure to check certs against IP addresses

2014-07-14 Thread Dan Fandrich
On Mon, Jul 14, 2014 at 09:12:41PM +0200, Daniel Stenberg wrote: > On Sun, 13 Jul 2014, David Woodhouse wrote: > > >>This is rather unfortunate. I'll improve the error message as you > >>suggest, but I wonder what the best way is to determine whether > >>SRP is supported or not. Is there a compile

Re: [PATCH] GnuTLS: Work around failure to check certs against IP addresses

2014-07-14 Thread Dan Fandrich
On Sun, Jul 13, 2014 at 07:14:33AM +0100, David Woodhouse wrote: > On Sun, 2014-07-13 at 01:09 +0200, Dan Fandrich wrote: > > On Sat, Jul 12, 2014 at 05:59:56PM +0100, David Woodhouse wrote: > > > The cipher list problem was because Fedora's GnuTLS doesn't have S

Re: getpwuid_r on Solaris and _POSIX_PTHREAD_SEMANTICS

2014-07-14 Thread Dan Fandrich
On Mon, Jul 14, 2014 at 07:18:22PM +0200, Daniel Stenberg wrote: > On Mon, 14 Jul 2014, Dan Fandrich wrote: > > >Problem is, this change broke curl compiles out-of-the-box for > >Solaris. We need to do something by the time of this release. > > My gut says we back out th

Re: getpwuid_r on Solaris and _POSIX_PTHREAD_SEMANTICS

2014-07-14 Thread Dan Fandrich
On Sun, Jul 13, 2014 at 03:05:04PM +0200, Tor Arntsen wrote: > On 13 July 2014 09:33, Dan Fandrich wrote: > > The Solaris builds failed overnight because their default getpwuid_r uses > > four > > arguments instead of the POSIX standard 5. They do provide a > > POSI

getpwuid_r on Solaris and _POSIX_PTHREAD_SEMANTICS

2014-07-13 Thread Dan Fandrich
The Solaris builds failed overnight because their default getpwuid_r uses four arguments instead of the POSIX standard 5. They do provide a POSIX-conformant version if you compile with the macro _POSIX_PTHREAD_SEMANTICS set. We could do a getnameinfo-style configure check on the number of arguments

Re: [PATCH] GnuTLS: Work around failure to check certs against IP addresses

2014-07-12 Thread Dan Fandrich
On Sat, Jul 12, 2014 at 05:59:56PM +0100, David Woodhouse wrote: > The cipher list problem was because Fedora's GnuTLS doesn't have SRP > support. Given that gnutls_set_priority_direct() actually *gives* us a > pointer to the part of the string that it objected to, our error > handling could stand

Re: [PATCH 2/2 v2] ntlm_wb: Avoid invoking ntlm_auth helper with empty username

2014-07-12 Thread Dan Fandrich
On Sat, Jul 12, 2014 at 11:22:38AM +0100, David Woodhouse wrote: > I note that for finding the home directory in both lib/netrc.c and > src/tool_homedir.c we use $HOME *before* getpwuid(). And we actually use That adds flexibility to the user who can switch the location easily without changing cod

Re: [PATCH 2/2] ntlm_wb: Avoid invoking ntlm_auth helper with empty username

2014-07-11 Thread Dan Fandrich
On Fri, Jul 11, 2014 at 11:36:46AM +0100, David Woodhouse wrote: > From: David Woodhouse > > --- > lib/curl_ntlm_wb.c | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/lib/curl_ntlm_wb.c b/lib/curl_ntlm_wb.c > index 52d1323..ac05fbb 100644 > --- a/lib/curl_ntlm_wb.c > ++

Re: failure to support TLSv1 and SSLv2 on Solaris10

2014-07-11 Thread Dan Fandrich
On Fri, Jul 11, 2014 at 08:38:00PM +, Alona Rossen wrote: > Our C++ application uses libcurl 7.21.0 linked to openssl-1.0.0m to implement > a > variety of functionalities, including SMTP mail transfer. > > The application runs on numerous platforms of different versions, including > Windows,

Re: Issue in url.c (Dan Fandrich)

2014-07-10 Thread Dan Fandrich
On Thu, Jul 10, 2014 at 10:17:42AM -0400, Glen A Johnson Jr. wrote: > The patch you suggest would allow the code I’m working on to function however > if you consider the case where use_netrc is set to CURL_NETRC_REQUIRED this > would lead to a successful return from override_login if home is not fo

Re: Issue in url.c

2014-07-09 Thread Dan Fandrich
On Wed, Jul 09, 2014 at 03:25:12PM -0400, Glen A Johnson Jr. wrote: > I ran into this issue using curl 7.36.0 and also confirmed with curl 7.37.0. > > The issue is that when use_netrc is set to CURL_NETRC_OPTIONAL that > CURLE_OUT_OF_MEMORY is returned from override_login if the netrc file is not

Re: curl 7.37 build failures on HP-UX 11.23 ia64

2014-07-09 Thread Dan Fandrich
On Wed, Jul 09, 2014 at 03:34:28PM -0400, Richard Gray wrote: > Taking the hint from above, I re-ran using: > CFLAGS="-D_XOPEN_SOURCE_EXTENDED" ./configure and I seem to have > gotten a working curl build. I wonder if configure should always > set this flag for HP-UX systems? It (or something b

Re: Please review my patches

2014-07-09 Thread Dan Fandrich
On Wed, Jul 09, 2014 at 08:22:42PM +0200, Michael Osipov wrote: > I have several patches pending since end of May no one has taken any > action to review them at least. I think a big part of the problem is that lots of people are taking summer vacations at the moment, and fewer people want to code

Re: Content-Length Vs Chunked Transfer Encoding

2014-07-08 Thread Dan Fandrich
On Mon, Jul 07, 2014 at 05:48:46PM -0400, Eric Fortin wrote: > > On Jun 26, 2014, at 7:19 AM, Sandeep Sastry > > wrote: > > Though there are some existing discussion related to the topic > > "Content-Length Vs Chunked Transfer Encoding" on various non-curl sites, I > > wanted to understand how

Re: Porting curl to android

2014-07-03 Thread Dan Fandrich
On Thu, Jul 03, 2014 at 02:45:04PM +, Rick Breen wrote: > First, thank you (all) for your work and effort in supplying the world with > very functional open source code. > > This is probably a newb question, but I'm in the thick of porting code and > bringing-up an Android-based Freescale iM

Re: Is the callback specified in CURLOPT_WRITEFUNCTION thread-safe?

2014-07-02 Thread Dan Fandrich
On Thu, Jul 03, 2014 at 12:12:34AM +0530, Ajay Garg wrote: > On Wed, Jul 2, 2014 at 1:11 AM, Dan Fandrich wrote: > If that's followed there will never be an > opportunity to mix up received data since the handle passed in to the > callback > in each thre

Re: Is the callback specified in CURLOPT_WRITEFUNCTION thread-safe?

2014-07-01 Thread Dan Fandrich
On Tue, Jul 01, 2014 at 09:14:24PM +0530, Ajay Garg wrote: > Is it safe to pass the same callback-function as the parameter to > CURLOPT_WRITEFUNCTION in different threads? > Note that the threads may be highly concurrent, sending and receiving > requests/ > responses simultaneously. > > Or we ru

Re: SO_REUSEADDR and libcurl

2014-06-30 Thread Dan Fandrich
On Mon, Jun 30, 2014 at 09:43:53AM -0400, Sachin Nikumbh wrote: > Thanks a lot for the response. I am going to investigate the cause behind > sockets getting into the TIME_WAIT state. But in the mean time, I am trying to > understand how CURLOPT_SOCKOPTFUNCTION and CURLOPT_OPENSOCKETFUNCTION can be

Re: Read and write on the same cURL handle

2014-06-27 Thread Dan Fandrich
On Thu, Jun 26, 2014 at 02:50:57PM +0100, Richard W.M. Jones wrote: > Maybe the confusion is that I'm using the "easy" API, and in each call > I'm using curl_easy_perform in a loop until the read or write is > finished. See: > https://github.com/libguestfs/nbdkit/blob/master/plugins/curl/curl.c#L3

Re: curl the next few years

2014-06-19 Thread Dan Fandrich
On Thu, Jun 19, 2014 at 02:24:40PM +0200, Daniel Stenberg wrote: > Improve > === > > 2. curl -h output (considered overwhelming to users) I've thought this for a while as well. My thought was to replace the --help output with just the basic options, and create new help options based on catego

Re: [collectd] Strange Time value in notification test

2014-06-18 Thread Dan Fandrich
On Wed, Jun 18, 2014 at 06:50:44PM +0100, George B. wrote: > I have configured a simple test notification using the Exec plugin. This > works, however, the Time value in the notification message is changed into > something strange (1.307) - can anyone suggest why this is happening? Maybe it's a

Re: OBSOLETE vs DEPRECATED

2014-06-18 Thread Dan Fandrich
On Wed, Jun 18, 2014 at 02:39:34PM +0200, Daniel Stenberg wrote: > On Wed, 18 Jun 2014, Dan Fandrich wrote: > >Commit b46f2959 renamed a couple of options to CURLOPT_DEPRECATEDx, > >which caused test 1119 to fail. The test 1119 parser already > >ignores names called OBSOLETE,

OBSOLETE vs DEPRECATED

2014-06-18 Thread Dan Fandrich
Commit b46f2959 renamed a couple of options to CURLOPT_DEPRECATEDx, which caused test 1119 to fail. The test 1119 parser already ignores names called OBSOLETE, and as I see it, the DEPRECATED name has the same semantics as the existing OBSOLETE ones. Rather than modifying the script to ignore DEPRE

Re: multilib (Re: [Survey] What people want us to do next)

2014-06-16 Thread Dan Fandrich
On Mon, Jun 16, 2014 at 09:53:08PM +0200, Daniel Stenberg wrote: > I'm thinking one way to fix this problem with this particular header > file - and get back to a single unified header for all systems, is to > use the curlbuild.h.dist file and just rename that to curlbuild.h. > (and remove curlbuil

Re: options man pages (Re: the survey summary)

2014-06-16 Thread Dan Fandrich
On Mon, 16 Jun 2014, Daniel Stenberg wrote: > Here's a taste of what I have in mind. Here's a separate man page for > CURLOPT_WRITEFUNCTION: > > http://curl.haxx.se/libcurl/c/CURLOPT_WRITEFUNCTION.html I'll admit I was a bit dubious about the value of splitting these options into their own man

Re: Cipher List setting in Https Request

2014-06-16 Thread Dan Fandrich
On Sun, Jun 15, 2014 at 09:47:01PM +0800, Woods wrote: > I use Curl Library C API to request a Https Url, but got an error of "Empty > reply from server". So I used standard Curl command to request the same Url, > and get correct result. I noticed that a major difference from the dump out > informa

Re: weak randomness with some TLS backends

2014-06-06 Thread Dan Fandrich
On Thu, Jun 05, 2014 at 05:37:18PM -0700, Chris Ghormley wrote: > On 6/4/2014 15:07, Dan Fandrich wrote: > > > The patch format looks fine, but since you're using git, creating a > > patch with git format-patch would be even better. > OK, I will resubmit when I

Re: weak randomness with some TLS backends

2014-06-04 Thread Dan Fandrich
On Wed, Jun 04, 2014 at 12:29:05PM -0700, Chris Ghormley wrote: > Here is a patch for axTLS. I don't submit patches very often, so I > apologize if I'm doing it wrong. The patch format looks fine, but since you're using git, creating a patch with git format-patch would be even better. > This back

Re: Problem using RECORDFUNCTION

2014-06-02 Thread Dan Fandrich
On Mon, Jun 02, 2014 at 06:42:42PM -0400, Jon Lederman wrote: > I want chunked encoding but with binary as per the following command line curl > command: > > curl "https://website.net:443/Command?appId=XXX&appKey=YYY5&id=ZZZ"; -H > "Content-Type: AAA;codec=BBB" -H "Accept-Language: ENUS" -H > "Tr

Re: Problem using RECORDFUNCTION

2014-06-02 Thread Dan Fandrich
1..e.. > => Send data, 06 bytes (0x0006) > : 31 0d 0a 72 0d 0a 1..r.. > => Send data, 06 bytes (0x0006) > : 31 0d 0a 76 0d 0a 1..v.. > => Send data, 06 bytes (0

Re: Problem using RECORDFUNCTION

2014-06-02 Thread Dan Fandrich
On Mon, Jun 02, 2014 at 08:50:54AM -0400, Jon Lederman wrote: > I am trying to mimic the following command line curl request in libcurl > programatically in C/C++. Instead of reading data from a file though, I want > to send binary data from a buffer in memory: > curl "https://website.net:443/Co

Re: Curl with OpenSSL

2014-05-31 Thread Dan Fandrich
On Sat, May 31, 2014 at 01:31:55PM +0530, Rohit Goel wrote: > I tried the suggested approach. > It now links to the renamed SSL libraries as well as the default SSL > libraries. Is that a direct link or is it linked through another library, such as libssh2 or libldap? > This is how I ran config

Re: Curl with OpenSSL

2014-05-30 Thread Dan Fandrich
On Fri, May 30, 2014 at 01:49:48PM +0530, Rohit Goel wrote: > I am trying to build curl on Linux platform. > I want to use OpenSSL but I want the library names for open-ssl to be changed > from the default. > Instead of linking to cdscrypto and ssl, I want it to link to mycdscrypto and > myssl (we

Re: first 94208 bytes corrupted! (Ubuntu 14)

2014-05-28 Thread Dan Fandrich
On Thu, May 29, 2014 at 06:56:36AM +0200, Michael Wood wrote: > On 29 May 2014 12:56 AM, "Wagner Patriota" wrote: > > > > I can't fsync() a FILE* ... does anybody have any hint on what can be done > here? > > Try flush() or fflush()? Those don't do the same as fsync; the latter is a kernel call.

Re: How to upload file as CouchDB attachment via libCurl

2014-05-26 Thread Dan Fandrich
On Mon, May 26, 2014 at 07:23:59PM -0500, Lane wrote: > Let me clarify. What I consider an attachment, or what CouchDB considers an > attachment is a file to the field. So _attachments is the json objects field, > and the file would be the data to that field. As in my example, you’ll see the > comm

Re: How to upload file as CouchDB attachment via libCurl

2014-05-26 Thread Dan Fandrich
On Mon, May 26, 2014 at 03:49:16PM -0500, Lane wrote: > I have been able to input a file using curl from the command line into > CouchDB, > but I’m having an issue adding an attachment to CouchDB using libcurl. This > command line successfully does what I want. This is what I am trying to > duplic

Re: cURL: squeezing ./configure --help

2014-05-26 Thread Dan Fandrich
On Mon, May 26, 2014 at 09:52:27AM +0200, Kamil Dudka wrote: > On Monday, May 26, 2014 08:44:06 Dan Fandrich wrote: > > On Sun, May 25, 2014 at 06:20:17PM +0200, Дилян Палаузов wrote: > > > @@ -635,7 +620,6 @@ dnl disable C code generation support > > > > > >

Re: cURL: squeezing ./configure --help

2014-05-25 Thread Dan Fandrich
On Sun, May 25, 2014 at 06:20:17PM +0200, Дилян Палаузов wrote: > This patch reduces the output of ./configure --help by stripping > options, which have no added value, like --enable-http (as with them > and without them, ./configure behaves the same). > @@ -423,8 +419,7 @@ AC_HELP_STRING([--disab

Re: polarssl: add ALPN support

2014-05-24 Thread Dan Fandrich
On Fri, May 23, 2014 at 05:15:55PM -0700, Fabian Frank wrote: > On May 22, 2014, at 10:15 AM, Fabian Frank wrote: > > Previously people pointed out that variable definitions have to be at the > > top of functions in curl code, which is why I have done it this way. Before > > that I had them insi

configure: detect nghttp2 by default

2014-05-23 Thread Dan Fandrich
Unfortunately, this commit not only *detects* nghttp2 by default, but *requires* nghttp2 by default. >>> Dan --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html

Re: [bagder/curl] f63435: http: Fix a compiler warning when http2 support is disabled

2014-05-22 Thread Dan Fandrich
On Thu, May 22, 2014 at 08:21:02PM +0100, Steve Holme wrote: > On Thu, 22 May 2014, GitHub wrote: > > > http: Fix a compiler warning when http2 support is disabled > > I contemplated this fix but I went with commit c6d5f80d instead which > defined Curl_http2_setup() as Curl_nop_stmt when http2 is

Re: polarssl: add ALPN support

2014-05-21 Thread Dan Fandrich
On Wed, May 21, 2014 at 07:55:26PM -0700, Fabian Frank wrote: > Any other concerns or do you guys think we can merge this? You still missed the extra const. It should be: +static const char* const protocols[] = ... You can also eliminate a #ifdef block by moving the definition of this into the e

Re: SMTP Invalid Address (501 5.5.4)

2014-05-21 Thread Dan Fandrich
On Wed, May 21, 2014 at 08:38:22PM +0100, Steve Holme wrote: > My understanding is that the SMTP server can validate what you send it but, > as long as it looks like a domain then the server shouldn't reject it if > what is mentioned in RFC 1123 section 5.2.5 is correct. It can't, for > example, pe

Autobuild stats

2014-05-19 Thread Dan Fandrich
I've just noticed the autobuild stats page at http://curl.haxx.se/dev/summary.html is blank. It's some time since I looked at that page, but as I recall it had lists of all the various platforms on which the autobuilds had been running lately. On a related note, there are only 5 days worth of aut

Re: polarssl: add ALPN support

2014-05-19 Thread Dan Fandrich
On Mon, May 19, 2014 at 02:20:25AM -0700, Fabian Frank wrote: > here is a patch to add ALPN support when curl is being used with PolarSSL. > Please note that nghttp2’s public test servers have ALPN disabled right now, > so you have to run your own nghttpd locally to test ALPN negotiation of h2-12

Re: [PATCH] Do not expose private libraries nor link flags to clients of libssh2

2014-05-19 Thread Dan Fandrich
On Mon, May 19, 2014 at 10:09:16AM +0200, Mikhail Gusarov wrote: > Reported in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747417 > --- > libssh2.pc.in | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libssh2.pc.in b/libssh2.pc.in > index 26d8a45..3a4f7b6 100644 > --

Re: Autobuild failures

2014-05-07 Thread Dan Fandrich
On Wed, May 07, 2014 at 10:13:44PM +0100, Steve Holme wrote: > On Wed, 07 May 2014, Dan Fandrich wrote: > > > * GNUTLS_CIPHER_AES_128_GCM Is not declared in > > > /lib/vtls/gtls.c [2] > > > > This is defined in /usr/include/gnutls/gnutls.h in GnuTLS > >

Re: [PATCH] Don't set LD_LIBRARY_PATH when cross-compiling

2014-05-07 Thread Dan Fandrich
On Wed, May 07, 2014 at 09:29:47PM +0300, Aaro Koskinen wrote: > Most of LD_LIBRARY_PATH adjustments are already guarded, but not all. > > The patch fixes cross-compilation failure when libidn is present. Good catch! I've committed it--thanks. >>> Dan

Re: Autobuild failures

2014-05-07 Thread Dan Fandrich
On Wed, May 07, 2014 at 09:04:55PM +0100, Steve Holme wrote: > I fixed up some autobuild failures earlier today but noticed a couple of > MinGW builds are still failing: > > * GetFileSizeEx() as normally declared in winbase.h and used in > /tests/server/sockfilt.c doesn't appear to be defined [1]

Re: HTTPS-request with custom root-certificate?

2014-05-07 Thread Dan Fandrich
On Wed, May 07, 2014 at 08:19:48AM +0200, Satz Klauer wrote: > But I could provide the related root-certificate during the request. > So: how can this be done using libcurl? How should code for a > HTTPS-POST-request look like when a custom root-certificate is used? You can provide it with the CUR

Re: the count of files

2014-05-05 Thread Dan Fandrich
On Mon, May 05, 2014 at 08:47:45AM +0200, Daniel Stenberg wrote: > On Mon, May 5, 2014 at 4:11 AM, 刘英伟 <506017...@qq.com> wrote: > > I list dir with libcurl on ftp. > I want to get count of files in the dir > Is there a param of function to record the count of files in dir? > > > Hel

Re: Making lack of cookie support more obvious

2014-05-04 Thread Dan Fandrich
On Sun, May 04, 2014 at 09:32:18AM +0200, Fabian Keil wrote: > Recently a script [0] I infrequently use stopped working because > curl had been configured without cookie support and thus the --cookie > and --cookie-jar options were silently ignored. > > Obviously that was my mistake, but I think i

Re: curl with ssh.

2014-04-22 Thread Dan Fandrich
On Tue, Apr 22, 2014 at 10:34:36PM +0530, san d wrote: > We use curl with sshlib 1.4.2. The uploaded files under sftp are sometimes > getting corrupted. How to see the proper error code returned from ssh layer?  libcurl doesn't always log the original libssh2 error code before converting it to a l

Re: curl and sftp.

2014-04-22 Thread Dan Fandrich
On Tue, Apr 22, 2014 at 10:26:50PM +0530, john gloster wrote: > Wanted to know whether is there any integrity check done on the file for > "rename" operation under SFTP? In my setup i see that the file is sometimes > not > proper after rename operation in destination. > Not sure whether it is affe

Re: failure to statically link libcurl-7.36.0 to openssl 1.0.0d libraries on Solaris 10 on Intel

2014-04-22 Thread Dan Fandrich
On Mon, Apr 21, 2014 at 09:38:02PM +, Alona Rossen wrote: > Hello Dan, > > Thank you for your response. Unfortunately, it does not work. > Running configure with the following command still results in the same error: > > env PKG_CONFIG_PATH=/export/home/sambuild/INSTALL/ssl_64/lib/pkgconfig

Re: failure to statically link libcurl-7.36.0 to openssl 1.0.0d libraries on Solaris 10 on Intel

2014-04-21 Thread Dan Fandrich
On Mon, Apr 21, 2014 at 04:46:38PM +, Alona Rossen wrote: > I receive the following error when I try to link to static > libssl.a/libcrypto.a > on Solaris 10/11 on Intel: > > Text relocation remains referenced > > against symbol offset in fil

Re: Is c-ares no longer reported by --version?

2014-04-18 Thread Dan Fandrich
On Fri, Apr 18, 2014 at 01:10:51PM -0400, Mathew Marulla wrote: > Yeah, I noticed that libcurl is still at 7.22, but when I look at the .so > files in /usr/local/lib, they have a date/time matching the compile time. It's probably not using that version, but rather the one in /usr/lib instead. "ld

Re: libcurl 7.36.0 - Hostname was NOT found in DNS cache

2014-04-07 Thread Dan Fandrich
On Mon, Apr 07, 2014 at 06:02:03PM +, Alona Rossen wrote: > I receive “Hostname was NOT found in DNS cache” when connecting to an ftp > server from a C++ application. Yes, a host referenced with an empty cache is not going to be in the cache. > The same code works without any issues with curl

Re: libcurl 7.21.0

2014-04-02 Thread Dan Fandrich
On Wed, Apr 02, 2014 at 05:15:26PM +, Alona Rossen wrote: > Sorry, this is as deep as dbx goes into the stack. Rebuilding libcurl with > '-g' and specifying source directory to dbx (-I option) does not contribute > to more informative stack. Checking the arguments to Curl_failf at the time

Re: libcurl 7.21.0

2014-04-02 Thread Dan Fandrich
On Wed, Apr 02, 2014 at 03:56:00PM +, Alona Rossen wrote: > Our application crashes in libcurl with the following stack: > > Segmentation fault in addbyter at 0x22f8a1b8 ($t2) > 0x22f8a1b8 (addbyter+0x18) 9865 stb r3,0x0(r5) > (dbx) where > addbyter() at 0x22f8a1b8 > dprintf_formatf() at 0

Re: [SECURITY ADVISORY 1/4] libcurl wrong re-use of connections

2014-03-30 Thread Dan Fandrich
On Sun, Mar 30, 2014 at 10:04:54PM +0200, Dan Fandrich wrote: > On Sun, Mar 30, 2014 at 03:34:49PM +0200, Alessandro Ghedini wrote: > > I've been trying to backport that patch to curl 7.26.0 (used in Debian > > stable), > > but I've noticed that the connection reus

Re: [SECURITY ADVISORY 1/4] libcurl wrong re-use of connections

2014-03-30 Thread Dan Fandrich
On Sun, Mar 30, 2014 at 03:34:49PM +0200, Alessandro Ghedini wrote: > I've been trying to backport that patch to curl 7.26.0 (used in Debian > stable), > but I've noticed that the connection reuse has changed drastically since then, > and that patch doesn't seem to be enough to fix the issue (in f

Re: Regression on FTP connections with --anyauth

2014-03-28 Thread Dan Fandrich
On Tue, Feb 25, 2014 at 10:49:00PM +0100, Daniel Stenberg wrote: > On Mon, 24 Feb 2014, Dan Fandrich wrote: > >It's probably worthwhile updating the security advisory at > >http://curl.haxx.se/docs/adv_20140129.html as it advocates applying > >just commit 8ae35102 as a fi

Re: [collectd] [PATCH] Removed the use of -Werror when compiling with gcc

2014-03-27 Thread Dan Fandrich
build breaks on a newer compiler for no good reason. So, this new patch instead adds a configure option to allow users to drop the -Werror option if desired. >>> Dan From 46dc71732287117879936d7b6be58a5f6f0ee50d Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 27 Mar 2014 23:58:47

Re: [collectd] Variables in collectd.conf

2014-03-27 Thread Dan Fandrich
s > > Le 2013-04-09 22:23, Dan Fandrich a écrit : > >Any comments on this patch? > > > >>>>Dan > > > >The default collectd.conf file created for me by autoconf from the > >collectd.conf.in file contains this for the first four entries with >

Re: vc6libcurl.dsp missing in git repository

2014-03-27 Thread Dan Fandrich
On Thu, Mar 27, 2014 at 04:38:47PM -0400, Cody Mack wrote: > Hi, > > The file vs/vc6/lib/vc6libcurl.dsp is present in the released archives > of curl but seems to be missing from the git repository: > https://github.com/bagder/curl/tree/master/vs/vc6/lib > > Is there a reason for vc6libcurl.dsp t

Re: [SECURITY ADVISORY 1/4] libcurl wrong re-use of connections

2014-03-26 Thread Dan Fandrich
On Wed, Mar 26, 2014 at 02:39:21PM +0100, Daniel Stenberg wrote: > On Wed, 26 Mar 2014, Alessandro Ghedini wrote: > > >>Tests 815 and 816 seem to be broken in the new release. > >>git-bisect points to the commit applying the above patch. A log > >>capturing the failure is attached. > > > >I'm see

Re: Filtering the autobuilds page

2014-03-24 Thread Dan Fandrich
On Fri, Mar 21, 2014 at 09:40:59PM +, Steve Holme wrote: > A few observations, which probably come under your "It's not perfect" > statement: > > a) The drop down box in both IE11 and Firefox 27.0.1 appeared fairly small - > only large enough to display "al" from "all" and "M" from "Memory Tra

Re: Filtering the autobuilds page

2014-03-22 Thread Dan Fandrich
This is now live on the site. I see three known issues at the moment: 1) Each Options heading has a filter box, but only the first one on the page works. I'll fix this next week. 2) Removing Kerberos4 support affected the ordering of the options, so only those builds that occurred after this chan

Re: Filtering the autobuilds page

2014-03-22 Thread Dan Fandrich
On Sat, Mar 22, 2014 at 11:43:39AM +0100, Dan Fandrich wrote: > It's been a long while since I've built with Kerberos. Can't the K be switched > to mean Kerberos5? I'm assuming that Krb5 is synonymous with GSS-API. I've figured this out--it does seem synonymous, a

Re: Filtering the autobuilds page

2014-03-22 Thread Dan Fandrich
On Fri, Mar 21, 2014 at 09:40:59PM +, Steve Holme wrote: > A few observations, which probably come under your "It's not perfect" > statement: "Perfect" refers to things like the drop-down arrow being slightly off-centre in some browsers; it should be definitely be fully usable. > a) The drop

Re: Compiling libcurl with C++ in code blocks

2014-03-20 Thread Dan Fandrich
On Thu, Mar 20, 2014 at 11:14:34AM -0400, chamburg...@aol.com wrote: > Hello I am trying to use libcurl with c++ in code blocks and I am not able to > correctly link it to my projects. Is there a tutorial I can view to get a > better idea of how to make the libcurl library work? > > I’ve downloa

Re: curl+sftp+man-in-the-middle-attck.

2014-03-14 Thread Dan Fandrich
On Fri, Mar 14, 2014 at 10:10:25PM +0530, san d wrote: > I have the following code: > > curl_easy_setopt(curl, CURLOPT_SSH_AUTH_TYPES, CURLSSH_AUTH_ANY); > curl_easy_setopt(curl, CURLOPT_USERNAME, userName); > curl_easy_setopt(curl, CURLOPT_PASSWORD, Passwd); > curl_easy_setopt(curl, CURLOPT_KEYPA

Re: Bug sending multipart emails with libcurl 7.22.0

2014-03-03 Thread Dan Fandrich
On Sun, Mar 02, 2014 at 08:23:44PM +0900, Tristan Van Berkom wrote: > The bug occurs when curl's CURLOPT_READFUNCTION callback reports > more than the initial message header in the first callback, the > bug goes away if I report the initial header separate from the > following "part" header. I sho

Re: Bug sending multipart emails with libcurl 7.22.0

2014-03-03 Thread Dan Fandrich
On Sun, Mar 02, 2014 at 08:23:44PM +0900, Tristan Van Berkom wrote: > I would be interested to know if this bug has been fixed > in more recent versions of libcurl - the test case should > be very easy to compile - on linux I can compile it with: I would also be interested to know--can you try it

Re: Streaming data using Libcurl

2014-02-28 Thread Dan Fandrich
On Fri, Feb 28, 2014 at 09:02:35AM -0800, Sunny Khatri wrote: > Thanks for the response. > > Let me clarify the situation a bit more, > > What we have is a libcurl client talking and sending data to our server > (Jetty/ > SOLR). Now as soon as a chunk is posted via curl_easy_perform, SOLR tries

Re: Does Libcurl support downloading payload in chunks to increase success rate?

2014-02-27 Thread Dan Fandrich
On Fri, Feb 28, 2014 at 12:19:49AM +0800, Md Kashif wrote: > How would application know if download of a chunk was successful or not. Is > checking for the return value of curl_easy_perform() for each chunk enough? No, you need to look at the application-level return code as well. You also need t

Re: --disable-manual broken

2014-02-25 Thread Dan Fandrich
On Mon, Feb 24, 2014 at 09:58:19PM +, Steve Holme wrote: > Are there any build configurations that don't copy or include the stub file? > If there are then adding the #ifdef back into the tool_hugehelp.h and adding > a #ifdef USE_MANUAL around the stub in tool_hugehelp.c.cvs would also fix > th

Re: Memory leaks in out-of-memory conditions

2014-02-24 Thread Dan Fandrich
On Thu, Feb 06, 2014 at 11:48:53PM +0100, Dan Fandrich wrote: > I've discovered a few memory leaks in libssh2, while running the curl torture > tests. I'm attaching a patch for review, as I'm not completely certain about > some of the error paths. I studied this in

Re: Regression on FTP connections with --anyauth

2014-02-24 Thread Dan Fandrich
On Wed, Feb 12, 2014 at 10:52:48PM +0100, Daniel Stenberg wrote: > On Wed, 12 Feb 2014, Dan Fandrich wrote: > > >> bool canPipeline = IsPipeliningPossible(data, needle); > >>- bool wantNTLM = (data->state.authhost.want & CURLAUTH_NTLM) || > >>-(data

--disable-manual broken

2014-02-24 Thread Dan Fandrich
One of the recent tool changes has broken compiling with the --disable-manual option, e.g. http://curl.haxx.se/dev/log.cgi?id=20140224014418-32496 Fixing it could be as simple as removing the #define in tool_hugehelp.h as that macro is redundant with the tool_hugehelp.c stub that's created in this

Re: How to search the mail list archives?

2014-02-17 Thread Dan Fandrich
On Mon, Feb 17, 2014 at 08:53:13AM -0700, trip segars wrote: > Please pardon my ignorance - I'm trying to figure out how to search > the libssh2-devel list archives to see if my problem has already been > raised and solved, but having no luck. > Any guidance would be greatly appreciated. There is

<    1   2   3   4   5   6   7   8   9   10   >