2 fixes for schannel handshake

2012-06-19 Thread Salisbury, Mark
Hello,

I have a couple more fixes for schannel  SSL (see attached).

1.  Process extra data buffer before returning from schannel_connect_step2.  
Without this change I've seen WinCE hang when schannel_connect_step2 returns 
and calls Curl_socket_ready.

2.  If the encrypted handshake does not fit in the intial buffer (seen with 
large certificate chain), increasing the encrypted data buffer is necessary.  I 
double the size when it grows but limit it to 16x the original size.

Also a warning is fixed.  It appears there is more turmoil than there really is 
as most of the change was increasing indentation.

Yang - thanks very much for working through my patches.  Looks like there is 
just one patch left - patch 4 
schannel-SSL-Made-send-method-handle-unexpected-case.patch.

Mark



0001-schannel-SSL-changes-in-schannel_connect_step2.patch
Description: 0001-schannel-SSL-changes-in-schannel_connect_step2.patch
---
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Re: 2 fixes for schannel handshake

2012-06-19 Thread Yang Tse
On Tue, Jun 19, 2012 at 11:39 PM, Salisbury, Mark mark.salisb...@hp.com wrote:

 Hello,

 I have a couple more fixes for schannel  SSL (see attached).
 [...]
 It appears there is more turmoil than there really is as most of the change
 was increasing indentation.

Oh, yes. This is when side-by-side diffs come handy ;-)

Changes from this
0001-schannel-SSL-changes-in-schannel_connect_step2.patch already
pushed.

 [...] Looks like there is just one patch left - patch 4 
 schannel-SSL-Made-send-method-handle-unexpected-case.patch.

Already pushed, probably while you were writing your mail :-)

http://curl.haxx.se/mail/lib-2012-06/0261.html

-- 
-=[Yang]=-

---
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html