Fixes for openssl bug in renegotiation