diff options
author | Mark Nunberg <mnunberg@users.noreply.github.com> | 2019-09-16 06:05:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-16 06:05:46 -0400 |
commit | bd2c8fedf75f4e60225dfd6c735068a88666839a (patch) | |
tree | ab4bd11eebd2b8f0bb1c4b905d81570f86b9f7ee /examples | |
parent | 1ac8fca35de6d9ecc1b6b94cbd17aa7499cb8821 (diff) | |
parent | dd408e8e3f90ab9de61a1d7fac711d2b5d7e1592 (diff) |
Merge pull request #708 from yossigo/wip/ssl-reorganization
SSL Reorganization
Diffstat (limited to 'examples')
-rw-r--r-- | examples/CMakeLists.txt | 6 | ||||
-rw-r--r-- | examples/example-libevent-ssl.c | 1 | ||||
-rw-r--r-- | examples/example-ssl.c | 1 |
3 files changed, 5 insertions, 3 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 8ab4b42..dd3a313 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -37,10 +37,10 @@ IF (APPLE) TARGET_LINK_LIBRARIES(example-macosx hiredis ${CF}) ENDIF() -IF (HIREDIS_SSL) +IF (ENABLE_SSL) ADD_EXECUTABLE(example-ssl example-ssl.c) - TARGET_LINK_LIBRARIES(example-ssl hiredis) + TARGET_LINK_LIBRARIES(example-ssl hiredis hiredis_ssl) ENDIF() ADD_EXECUTABLE(example example.c) -TARGET_LINK_LIBRARIES(example hiredis)
\ No newline at end of file +TARGET_LINK_LIBRARIES(example hiredis) diff --git a/examples/example-libevent-ssl.c b/examples/example-libevent-ssl.c index 562e1a1..1021113 100644 --- a/examples/example-libevent-ssl.c +++ b/examples/example-libevent-ssl.c @@ -4,6 +4,7 @@ #include <signal.h> #include <hiredis.h> +#include <hiredis_ssl.h> #include <async.h> #include <adapters/libevent.h> diff --git a/examples/example-ssl.c b/examples/example-ssl.c index 156f524..81f4648 100644 --- a/examples/example-ssl.c +++ b/examples/example-ssl.c @@ -3,6 +3,7 @@ #include <string.h> #include <hiredis.h> +#include <hiredis_ssl.h> int main(int argc, char **argv) { unsigned int j; |