Re: ldap.c and BoringSSL

2015-01-28 Thread Daniel Stenberg
On Wed, 28 Jan 2015, Gisle Vanem wrote: The combination BoringSSL and '-DUSE_WIN32_LDAP' doesn't work since 'X509_NAME' etc. are defined in wincrypt.h as: #define X509_NAME (LPCSTR) 7 Thanks, I merged your patch. Interestingly, even OpenSSL has X509_NAME as a typedef, but I figure it is in

Re: libCurl Windows Embedded Compact 7 WEC7

2015-01-28 Thread Daniel Stenberg
On Mon, 26 Jan 2015, Sutton, Timothy wrote: I am wondering if you can build libcurl for WEC7. I did a lot of searching and not much came up mostly very old Window CE things. I don't think anyone every brought any complete ways to run libcurl on those systems. What we have in the release

Re: [PATCH] CMake // windows build fix

2015-01-28 Thread Sergei Nikulov
2015-01-12 18:23 GMT+03:00 Brad King brad.k...@kitware.com: On 1/9/2015 3:07 PM, Sergei Nikulov wrote: I've updated initial changes per reviewers comments (patch attached). Pull request on github https://github.com/bagder/curl/pull/131 LGTM. Works for me in local testing with OpenSSL

ldap.c and BoringSSL

2015-01-28 Thread Gisle Vanem
The combination BoringSSL and '-DUSE_WIN32_LDAP' doesn't work since 'X509_NAME' etc. are defined in wincrypt.h as: #define X509_NAME (LPCSTR) 7 ... Which causes the compilation of x509.h (from urldata.h) to fail (cpp output): typedef struct X509_name_st { struct stack_st_X509_NAME_ENTRY

Re: 回复: 回复: FTPS:Failed to access FTPS through a HTTP proxyserver(v7.40.0)

2015-01-28 Thread Daniel Stenberg
On Thu, 22 Jan 2015, 无有先生 wrote: There are two kinds of state will cause the SSL certification: CURLM_STATE_WAITPROXYCONNECT and CURLM_STATE_WAITCONNECT. I think you mean CURLM_STATE_WAITPROXYCONNECT using non blocking, and CURLM_STATE_WAITCONNECT using blocking mode, processing the remaining

Re: libcurl/ download buffer size is different to upload buffer size.

2015-01-28 Thread Daniel Stenberg
On Thu, 22 Jan 2015, Keonwoo Kim wrote: I'm using the curl-7.3.0 to upload and download file to openstack swift. I think you meant something else. We never released any version called 7.3.0. very small file download is well operated. but when more size(1~100MB) file downloads, the size of

HTTP2: HTTP/1.1 in libcurl's verbose output

2015-01-28 Thread Mohammad_AlSaleh
Hello. I'm testing HTTP2 support in libcurl. At first glance, things seem to work correctly. But GET lines in libcurl's verbose output seem wrong: GET / HTTP/1.1 The reply however looks correct: HTTP/2.0 200 Am I missing something?

RE: [bagder/curl] 0d24f6: sasl: implement EXTERNAL authentication mechanism.

2015-01-28 Thread Steve Holme
On Tue, 27 Jan 2015, GitHub wrote: sasl: implement EXTERNAL authentication mechanism. Many thanks for adding this and for knocking another TODO off the list ;-) I have often thought about adding this myself as I believed it was relatively easy to do, due to the authentication identifier

RE: [bagder/curl] 0d24f6: sasl: implement EXTERNAL authentication mechanism.

2015-01-28 Thread Steve Holme
On Wed, 28 Jan 2015, Patrick Monnerat wrote: * Do we need to limit this to TLS upgraded sessions - the examples in the RFC seem to use this as the EXTERNAL authentication mechanism? No, we should not: the spec tells this is not limited to TLS. I must have missed that :( Some other

RE: SMTP connection ends with HELP command

2015-01-28 Thread Steve Holme
On Wed, 28 Jan 2015, Mariusz Gogulski wrote: Every time I try to send an E-Mail first command sent after authentication is HELP This happens if the recipient list is empty or upload has not been set to true. recipients = curl_slist_append(recipients, TO); recipients =

RE : [bagder/curl] 0d24f6: sasl: implement EXTERNAL authentication mechanism.

2015-01-28 Thread Patrick Monnerat
Steve Holme wrote: sasl: implement EXTERNAL authentication mechanism. * Do we need to limit this to TLS upgraded sessions - the examples in the RFC seem to use this as the EXTERNAL authentication mechanism? No, we should not: the spec tells this is not limited to TLS. Some other external

Re: ldap.c and BoringSSL

2015-01-28 Thread Gisle Vanem
Daniel Stenberg wrote: Interestingly, even OpenSSL has X509_NAME as a typedef, but I figure it is in a header not as commonly included so it hasn't hurt us in this case. OpenSSL's x509.h already has these undefs: #ifdef OPENSSL_SYS_WIN32 /* Under Win32 these are defined in wincrypt.h */

Re: Access violation error while doing ftp transfer using SSH protocol.

2015-01-28 Thread Daniel Stenberg
On Fri, 23 Jan 2015, jitendra patil wrote: We are using LIBCURL 7.34.0 library for implementation of SFTP and FTPS. But we are facing following issue when we run this in our production environments, approximately we are trying to send more than 1 lakh files to ftp server (Using WS_FTP 7.3.0

SMTP connection ends with HELP command

2015-01-28 Thread Mariusz Gogulski
Hello, Recently I started to learn how to use LibCurl as I want to be able to use it for POP3 and SMTP. With POP3 and POP3S I don't have any problems (listing mails, downloading particular mails). With SMTP(S) on the other hand I have a little bit problem. (Tried it with my own MDaemon server

RE: NTLM and odd parity

2015-01-28 Thread Steve Holme
On Fri, 2 Jan 2015, Steve Holme wrote: However, I have just converted the Java code that is given as an example on the above website into C, and tested it with SMTP (against my Exchange Server) and SMB and all appears to be good as well. I have debugged the code to make sure that the parity

Re: HTTP2: HTTP/1.1 in libcurl's verbose output

2015-01-28 Thread Daniel Stenberg
On Thu, 29 Jan 2015, Mohammad_AlSaleh wrote: First: yeah, this is probably something we should fix so that users who see this request won't be mislead into believing this is actually a 1.1 request. Yes. That's what I was trying to communicate through. It is just a bit more complicated than

Re: HTTP2: HTTP/1.1 in libcurl's verbose output

2015-01-28 Thread Daniel Stenberg
On Wed, 28 Jan 2015, Mohammad_AlSaleh wrote: I'm testing HTTP2 support in libcurl. At first glance, things seem to work correctly. But GET lines in libcurl's verbose output seem wrong: GET / HTTP/1.1 The reply however looks correct: HTTP/2.0 200 Am I missing something? Ah. First:

Re: HTTP2: HTTP/1.1 in libcurl's verbose output

2015-01-28 Thread Mohammad_AlSaleh
On Wed, Jan 28, 2015 at 11:26:31PM +0100, Daniel Stenberg wrote: On Wed, 28 Jan 2015, Mohammad_AlSaleh wrote: I'm testing HTTP2 support in libcurl. At first glance, things seem to work correctly. But GET lines in libcurl's verbose output seem wrong: GET / HTTP/1.1 The reply however

RE: Adding support for BoringSSL

2015-01-28 Thread Steve Holme
On Thu, 22 Jan 2015, Daniel Stenberg wrote: Is it the DES_set_odd_parity() function that BoringSSL doesn't have? If so, I have written our own parity function based off of the Java code over at: Yes. It doesn't have that function and it modified the API for DES_set_key() so we'd need

Help needed to upload a file using libcurl.net

2015-01-28 Thread Uday Kumar Tirupathi
Hi All, I need to upload a file to a HTTPS server using libcurl.net. I am getting 403 - Forbidden: Access is denied, You do not have permission to view this directory or page using the credentials that you supplied error. Please find below the code that I am using to perform file upload using

RE: SMTP connection ends with HELP command

2015-01-28 Thread Patrick Monnerat
Mariusz Gogulski wrote: Could you point me what do I do wrong? curl_easy_setopt(hCurl, CURLOPT_READDATA, mime); //mime - handle to opened mime I don't know if it's the cause of your trouble: you set READDATA to a pointer to mime that has very little change to be of FILE type