Commit 79037e85 authored by Matt Caswell's avatar Matt Caswell
Browse files

Fix no-dtls builds



Commits f2ff1432 in master and 14d4d7ed in 1.1.0 broke the no-dtls build
by moving the position of a "#endif" for OPENSSL_NO_DTLS in a change
which is otherwise unrelated to DTLS. This puts it back to where it was.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2974)
(cherry picked from commit 9998b32c)
parent 15344264
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -137,9 +137,14 @@ static const char *session_id_prefix = NULL;
#ifndef OPENSSL_NO_DTLS
static int enable_timeouts = 0;
static long socket_mtu;
static int dtlslisten = 0;
#endif

/*
 * We define this but make it always be 0 in no-dtls builds to simplify the
 * code.
 */
static int dtlslisten = 0;

#ifndef OPENSSL_NO_PSK
static const char psk_identity[] = "Client_identity";
char *psk_key = NULL;           /* by default PSK is not used */