Switch to using NULL server.ssl_fd to mark new SSL connection instead of NULL server.ctx

server.ctx is now allocated once for each server on first connection, then reused for subsequent connections.

server.ctx wasn't being cleared when the server was closed (as server.ssl_fd is), so this was causing
reconnection to fail until try_connect() got called.

This also removes the last uses of the CHK_* macros in ssl.h, so remove them.
This commit is contained in:
Kevin Easton
2017-12-03 02:07:19 +11:00
parent 7b817dd9d2
commit 7642e741b9
3 changed files with 55 additions and 29 deletions

View File

@@ -1,5 +1,7 @@
[Changes 1.2.2]
* Fix problem where reconnecting to SSL servers could stall. (caf)
* Fix memory leak when reconnecting to SSL servers. (caf)
* Add SSL version and cipher to SSL connect message. (caf)