Fix a bug in Openssl