Updated code to remove OpenSSL calls.