OpenSSL: Detect and prevent TLS heartbeat attack