Improved the OpenSSL crypto adapter