]> granicus.if.org Git - curl/commit
openssl: improve data-pending check for https proxy
authorJay Satiro <raysatiro@yahoo.com>
Sun, 24 Sep 2017 05:42:37 +0000 (01:42 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 8 Dec 2017 22:43:36 +0000 (17:43 -0500)
commit9dfb19483366d5cb2d020328330b164603f71bc8
tree2b049c18fa9ef448d04ca83ed76f488ae40274bc
parent9ffad8eb1329bb35c8988115ac7ed85cf91ef955
openssl: improve data-pending check for https proxy

- Allow proxy_ssl to be checked for pending data even when connssl does
  not yet have an SSL handle.

This change is for posterity. Currently there doesn't seem to be a code
path that will cause a pending data check when proxyssl could have
pending data and the connssl handle doesn't yet exist [1].

[1]: Recall that an https proxy connection starts out in connssl but if
the destination is also https then the proxy SSL backend data is moved
from connssl to proxyssl, which means connssl handle is temporarily
empty until an SSL handle for the destination can be created.

Ref: https://github.com/curl/curl/commit/f4a6238#commitcomment-24396542

Closes https://github.com/curl/curl/pull/1916
lib/vtls/openssl.c