Skip to content

Commit

Permalink
lib-http: test-http-client - conditionally depend on openssl
Browse files Browse the repository at this point in the history
Fixes compiling without openssl, broken by c45da70
  • Loading branch information
cmouse committed Dec 7, 2017
1 parent 8006436 commit 7cc5fcc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib-http/test-http-client.c
Expand Up @@ -9,7 +9,9 @@
#include "http-client.h"
#include "dns-lookup.h"
#include "iostream-ssl.h"
#ifdef HAVE_OPENSSL
#include "iostream-openssl.h"
#endif

struct http_test_request {
struct io *io;
Expand Down Expand Up @@ -344,8 +346,9 @@ int main(int argc, char *argv[])
struct ioloop *ioloop;

lib_init();
#ifdef HAVE_OPENSSL
ssl_iostream_openssl_init();

#endif
ioloop = io_loop_create();
io_loop_set_running(ioloop);

Expand Down Expand Up @@ -401,6 +404,8 @@ int main(int argc, char *argv[])
dns_client_deinit(&dns_client);

io_loop_destroy(&ioloop);
#ifdef HAVE_OPENSSL
ssl_iostream_openssl_deinit();
#endif
lib_deinit();
}

0 comments on commit 7cc5fcc

Please sign in to comment.