From 272a979deee0746a89afaf6cf07ea517cc11245d Mon Sep 17 00:00:00 2001 From: Risc-lt <1291903308rlt@sjtu.edu.cn> Date: Mon, 27 Jan 2025 00:20:24 +0800 Subject: [PATCH] docs: fix wrong commands of enabling SSL/TLS support --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 7090455ea..cc1e341a5 100644 --- a/README.md +++ b/README.md @@ -653,6 +653,13 @@ When enabled, SSL/TLS support is built into extra `libhiredis_ssl.a` and `libhiredis_ssl.so` static/dynamic libraries. This leaves the original libraries unaffected so no additional dependencies are introduced. +Run the following commands to build and install hiredis_ssl: +``` +$ cmake . -DENABLE_SSL=ON +$ make USE_SSL=1 +$ sudo make install +``` + ### Using it First, you'll need to make sure you include the SSL header file: