Problem with OpenSSL functions