diff options
author | Yossi Gottlieb <yossigo@gmail.com> | 2020-01-29 21:40:02 +0200 |
---|---|---|
committer | Yossi Gottlieb <yossigo@gmail.com> | 2020-01-29 21:40:02 +0200 |
commit | 93edb3ff3a800a701e2c33eb8f20330569a0a134 (patch) | |
tree | ed8c001105567ecf60d0e08c7ef97ed4aee4fe06 | |
parent | 17ff3173d62aa420c5970ccfa0f7dbca7c64babd (diff) | |
download | redis-93edb3ff3a800a701e2c33eb8f20330569a0a134.tar.gz |
TLS: Fix missing initialization in redis-cli.
-rw-r--r-- | src/redis-cli.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c index 065c389c6..1919829e1 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -49,6 +49,7 @@ #include <hiredis.h> #ifdef USE_OPENSSL #include <openssl/ssl.h> +#include <openssl/err.h> #include <hiredis_ssl.h> #endif #include <sds.h> /* use sds.h from hiredis, so that only one set of sds functions will be present in the binary */ @@ -7933,6 +7934,14 @@ int main(int argc, char **argv) { parseEnv(); +#ifdef USE_OPENSSL + if (config.tls) { + ERR_load_crypto_strings(); + SSL_load_error_strings(); + SSL_library_init(); + } +#endif + /* Cluster Manager mode */ if (CLUSTER_MANAGER_MODE()) { clusterManagerCommandProc *proc = validateClusterManagerCommand(); |