]> granicus.if.org Git - curl/commit
schannel: Don't treat encrypted partial record as pending data
authorJay Satiro <raysatiro@yahoo.com>
Thu, 6 Apr 2017 07:27:28 +0000 (03:27 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 23 Apr 2017 02:39:40 +0000 (22:39 -0400)
commit6b39f9c87e48f17533b139b2ddb829aa21227c3d
tree6d7d22d5412d0b9bdad130f07b1b3e0b5b31fbea
parentbe299a4dba0362940062f7f07c76862ecf226522
schannel: Don't treat encrypted partial record as pending data

- Track when the cached encrypted data contains only a partial record
  that can't be decrypted without more data (SEC_E_INCOMPLETE_MESSAGE).

- Change Curl_schannel_data_pending to return false in such a case.

Other SSL libraries have pending data functions that behave similarly.

Ref: https://github.com/curl/curl/pull/1387

Closes https://github.com/curl/curl/pull/1392
lib/urldata.h
lib/vtls/schannel.c