Skip to content

Commit

Permalink
Fixed --without-openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
obgm committed Mar 15, 2011
1 parent 4fbace8 commit ffa8c5c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ AS_IF([test "x$with_openssl" = "xauto" -o "x$with_openssl" = "xyes"],
[LIBS="${LIBS} -L${withval}/lib -lssl -lcrypto"
CPPFLAGS="${CPPFLAGS} -I${withval}/include"],
[AC_DEFINE([DSRV_NO_DTLS], [],
[Define if you do not want DTLS support])]
[Define if you do not want DTLS support])
CPPFLAGS="${CPPFLAGS} -DDSRV_NO_DTLS"]
)

AC_ARG_WITH(protocol_demux,
Expand All @@ -65,7 +66,8 @@ AC_ARG_WITH(protocol_demux,

AS_IF([test "x$with_protocol_demux" = "xno"],
[AC_DEFINE([DSRV_NO_PROTOCOL_DEMUX], [],
[Define if you do not want intermix cleartext with DTLS])]
[Define if you do not want intermix cleartext with DTLS])
CPPFLAGS="${CPPFLAGS} -DDSRV_NO_PROTOCOL_DEMUX"]
)

# Checks for header files.
Expand Down
3 changes: 2 additions & 1 deletion dsrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <errno.h>
#include <assert.h>

#ifndef DSRV_NO_DTLS
Expand Down Expand Up @@ -676,8 +677,8 @@ handle_write(struct dsrv_context_t *ctx) {

int
handle_timeout(struct dsrv_context_t *ctx) {
peer_t *peer, *tmp;
#ifndef DSRV_NO_DTLS
peer_t *peer, *tmp;
int result, err;
#endif

Expand Down
1 change: 1 addition & 0 deletions tests/dtls-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#endif

#include "debug.h"
#include "config.h"
#include "dsrv.h"

/* SIGINT handler: set quit to 1 for graceful termination */
Expand Down

0 comments on commit ffa8c5c

Please sign in to comment.