Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Split crypto library parts out from dtls.c to {gnutls,openssl}-dtls.c
There are still some #ifdefs but it's a lot nicer now.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Sep 10, 2016
1 parent f8350cd commit 595e352
Show file tree
Hide file tree
Showing 5 changed files with 703 additions and 634 deletions.
5 changes: 4 additions & 1 deletion Makefile.am
Expand Up @@ -34,6 +34,7 @@ lib_srcs_oath = oath.c
lib_srcs_yubikey = yubikey.c
lib_srcs_stoken = stoken.c
lib_srcs_esp = esp.c esp-seqno.c
lib_srcs_dtls = dtls.c

POTFILES = $(openconnect_SOURCES) $(lib_srcs_cisco) $(lib_srcs_juniper) \
gnutls-esp.c openssl-esp.c esp.c esp-seqno.c \
Expand All @@ -54,13 +55,15 @@ endif
if OPENCONNECT_GNUTLS
library_srcs += $(lib_srcs_gnutls)
lib_srcs_esp += gnutls-esp.c
lib_srcs_dtls += gnutls-dtls.c
endif
if OPENCONNECT_OPENSSL
library_srcs += $(lib_srcs_openssl)
lib_srcs_esp += openssl-esp.c
lib_srcs_dtls += openssl-dtls.c
endif
if OPENCONNECT_DTLS
lib_srcs_cisco += dtls.c
lib_srcs_cisco += $(lib_srcs_dtls)
endif
if OPENCONNECT_ESP
lib_srcs_juniper += $(lib_srcs_esp)
Expand Down

0 comments on commit 595e352

Please sign in to comment.