Skip to content

Commit

Permalink
Only define detect_mtu() in gnutls code path
Browse files Browse the repository at this point in the history
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Nikos Mavrogiannopoulos authored and David Woodhouse committed Jan 22, 2016
1 parent eeceb4a commit a918f00
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dtls.c
Expand Up @@ -1067,6 +1067,8 @@ int dtls_mainloop(struct openconnect_info *vpninfo, int *timeout)
return work_done;
}

#if defined(DTLS_GNUTLS)

/* Old glibc doesn't define that */
#if defined(__linux__) && !defined(IPV6_PATHMTU)
# define IPV6_PATHMTU 61
Expand Down Expand Up @@ -1331,6 +1333,8 @@ static void detect_mtu(struct openconnect_info *vpninfo)
free(buf);
}

#endif

#else /* !HAVE_DTLS */
#warning Your SSL library does not seem to support Cisco DTLS compatibility
#endif

0 comments on commit a918f00

Please sign in to comment.