Changing openssl routine