summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-01-29Merge pull request #756 from ch1aki/fix-make-installMichael Grunder
install alloc.h
2020-01-29install alloc.hakichan
alloc.h added in # 754 But not added to INSTALL_INCLUDE_PATH
2020-01-28Safe allocation wrappers (#754)Michael Grunder
Create allocation wrappers with a configurable OOM handler (defaults to abort()). See #752, #747
2020-01-01Merge pull request #746 from ShooterIT/spellingMichael Grunder
fix spelling mistakes
2020-01-01fix spelling mistakesShooterIT
2019-12-18Merge pull request #741 from redis/redisgetreply-nullMichael Grunder
Free the reply in redisGetReply when passed NULL
2019-12-12Free the reply in redisGetReply when passed NULLmichael-grunder
We currently perform a NULL check in redisGetReply and don't push the reply back to the caller, but we don't free any reply meaning that this will leak memory: redisGetReply(context, NULL); This change simply frees the reply if we were passed NULL. Addresses #740
2019-12-05Merge pull request #727 from pbotros/botros/disable-tests-cmakeMichael Grunder
Adding an option to DISABLE_TESTS
2019-11-25Merge pull request #737 from natoscott/masterMichael Grunder
Fix dead code in sslLogCallback relating to should_log variable.
2019-11-25Fix dead code in sslLogCallback relating to should_log variable.Nathan Scott
Coverity scans found that the should_log logic in sslLogCallback is not working as expected because the variable is not correctly initialised (the conditional code before logging always sets the value to 1, which it already is).
2019-11-19Merge pull request #731 from Kevin-Xi/patch-1Michael Grunder
Fix typo in dict.c.
2019-11-20Fix typo in dict.c.Kevin
2019-11-03Adding an option to DISABLE_TESTSPaul Botros
Useful when hiredis is used as a CMake dependency in other projects and added via add_subdirectory(). With DISABLE_TESTS on, `make test` in the parent project won't run hiredis tests.
2019-10-10Use correct flag in README.mdmichael-grunder
2019-10-10Merge pull request #720 from yossigo/ssl-docsMichael Grunder
Update README with SSL support.
2019-10-08Merge pull request #715 from redis/test-leaksMichael Grunder
Fixes leaks in unit tests
2019-10-07Update README with SSL support.Yossi Gottlieb
2019-09-25Fixes leaks in unit testsmichael-grunder
redisFormatSdsCommandArgv takes an sds* and calls sdsempty() for us. Addresses #714
2019-09-16Merge pull request #711 from yossigo/ssl-testsMark Nunberg
SSL Tests
2019-09-16Add SSL mode tests.Yossi Gottlieb
This repeats all existing tests in SSL mode, but does not yet provide SSL-specific tests.
2019-09-16Make SSL timeout error compatible with rest.Yossi Gottlieb
2019-09-16Fix: redisReconnect() should clear SSL context.Yossi Gottlieb
We should not attempt to keep the context and re-establish the TLS connection for several reasons: 1. Maintain symmetry between redisConnect() and redisReconnect(), so in both cases an extra step is required to initiate SSL. 2. The caller may also wish to reconfigure the SSL session and needs a chance to do that. 3. It is not a practical thing to do on an async non-blocking connection context.
2019-09-16Merge pull request #708 from yossigo/wip/ssl-reorganizationMark Nunberg
SSL Reorganization
2019-09-01Update CMakelists for hiredis/hiredis_ssl builds.Yossi Gottlieb
Also rename the SSL option from `HIREDIS_SSL` to `ENABLE_SSL` to conform with CMake convnetions.
2019-09-01Separate hiredis and hiredis_ssl library build.Yossi Gottlieb
2019-09-01Use a const funcs in redisContext.Yossi Gottlieb
2019-08-29Update CMakeLists with sslio.c rename.Yossi Gottlieb
2019-08-29Rename sslio.Yossi Gottlieb
2019-08-29wip: SSL code reorganization, see #705.Yossi Gottlieb
2019-08-29Merge pull request #706 from yossigo/fix/msvcMark Nunberg
Fix MSVC build.
2019-08-28Fix MSVC build.Yossi Gottlieb
2019-08-27Merge pull request #702 from yossigo/report-connect-errorsMark Nunberg
SSL: Properly report SSL_connect() errors.
2019-08-27Merge pull request #697 from yossigo/resp3Mark Nunberg
Port RESP3 support from Redis.
2019-08-27Merge pull request #699 from yossigo/silent-ssl-traceMark Nunberg
Silent SSL trace to stdout by default.
2019-08-25Fix typo.Yossi Gottlieb
2019-08-22SSL: Properly report SSL_connect() errors.Yossi Gottlieb
2019-08-13Merge pull request #670 from jman-krafton/masterMark Nunberg
fix timeout code in windows
2019-08-13Silent SSL trace to stdout by default.Yossi Gottlieb
2019-08-12add recv error code for clarifying timeoutSangmoon Yi
2019-08-12fix timeout code in windowsSangmoon Yi
2019-08-09Merge pull request #663 from mbitsnbites/mingw-support-2Mark Nunberg
Windows: MinGW fixes and Windows Travis builders
2019-08-09Travis: Add a Windows MSVC 2017 compilation testMarcus Geelnard
2019-08-09Travis: Add a MinGW cross compilation testMarcus Geelnard
2019-08-09MSVC: Fix some compiler warnings in sds.hMarcus Geelnard
2019-08-09MinGW fix: Use _MSC_VER instead of _WIN32 where appropriateMarcus Geelnard
Use _MSC_VER (instead of _WIN32) for things that are specific for Visual Studio. Also remove #include <winsock2.h> from hiredis.h, as it leaks too many symbols and defines into the global namespace, which is undesirable for a public interface header. Anyone who uses the the affected parts of the hiredis API needs to include the appropriate headers anyway in order to declare struct timeval variables.
2019-08-09Merge pull request #597 from justinbrewer/createArray-size_tMark Nunberg
Update createArray to take size_t
2019-08-09Merge branch 'master' into createArray-size_tMark Nunberg
2019-08-09Merge pull request #621 from Crunsher/masterMark Nunberg
Update README.md
2019-08-09Merge pull request #662 from dragonation/masterMark Nunberg
The setsockopt and getsockopt API diffs from BSD socket and WSA one
2019-08-09Merge pull request #665 from ghost/musl-test-compatMark Nunberg
test: fix errstr matching for musl libc