dirmngr: Gracefully handle premature termination of TLS streams.
* dirmngr/http.c (close_tls_session): New function. (session_unref): Use the new function to close the TLS stream. (cookie_read): If the stream terminated prematurely, close it and return a short read.
With this patch, I was able to update all the keys in the Debian
keyring over hkps.
- Signed-off-by: Justus Winter <justus@g10code.com>
- GnuPG-bug-id: T1950