Clientside support for openssl 1.1.0.
Many structs were made opaque in 1.1.0. It's not always possible to do any better than a large three-way #if either because that is the only way to be backwards-compat in some cases. I also fixed a few minor possible leak-on-error cases in event.c.
Showing with 165 additions and 43 deletions