avoid relying on the SSL_METHOD const-ness

It is apparently different accross openssl versions