"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/cli_common.c" between
redis-6.2-rc3.tar.gz and redis-6.2.0.tar.gz

About: redis is an advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

cli_common.c  (redis-6.2-rc3):cli_common.c  (redis-6.2.0)
skipping to change at line 56 skipping to change at line 56
#ifdef USE_OPENSSL #ifdef USE_OPENSSL
static SSL_CTX *ssl_ctx = NULL; static SSL_CTX *ssl_ctx = NULL;
if (!ssl_ctx) { if (!ssl_ctx) {
ssl_ctx = SSL_CTX_new(SSLv23_client_method()); ssl_ctx = SSL_CTX_new(SSLv23_client_method());
if (!ssl_ctx) { if (!ssl_ctx) {
*err = "Failed to create SSL_CTX"; *err = "Failed to create SSL_CTX";
goto error; goto error;
} }
SSL_CTX_set_options(ssl_ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3); SSL_CTX_set_options(ssl_ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3);
SSL_CTX_set_verify(ssl_ctx, SSL_VERIFY_PEER, NULL); SSL_CTX_set_verify(ssl_ctx, config.skip_cert_verify ? SSL_VERIFY_NONE : SSL_VERIFY_PEER, NULL);
if (config.cacert || config.cacertdir) { if (config.cacert || config.cacertdir) {
if (!SSL_CTX_load_verify_locations(ssl_ctx, config.cacert, config.ca certdir)) { if (!SSL_CTX_load_verify_locations(ssl_ctx, config.cacert, config.ca certdir)) {
*err = "Invalid CA Certificate File/Directory"; *err = "Invalid CA Certificate File/Directory";
goto error; goto error;
} }
} else { } else {
if (!SSL_CTX_set_default_verify_paths(ssl_ctx)) { if (!SSL_CTX_set_default_verify_paths(ssl_ctx)) {
*err = "Failed to use default CA paths"; *err = "Failed to use default CA paths";
goto error; goto error;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)