Using OpenSSL-provided memory functions where appropriate.