Fix set_cipher_list on modern OpenSSL

Also port forward a few changes from #422.
7 files changed