Fix no-psk
authorMatt Caswell <matt@openssl.org>
Mon, 6 Mar 2017 09:51:54 +0000 (09:51 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 6 Mar 2017 09:52:21 +0000 (09:52 +0000)
Fixes #2847

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2856)

apps/s_server.c

index 57bae82990271e7f481a8f3c969ac612d18985ec..a6048fb8318c66d680e715255d6f1f8e6340f4ff 100644 (file)
@@ -144,12 +144,12 @@ static long socket_mtu;
 #endif
 static int dtlslisten = 0;
 
+static int early_data = 0;
+
 #ifndef OPENSSL_NO_PSK
 static char *psk_identity = "Client_identity";
 char *psk_key = NULL;           /* by default PSK is not used */
 
-static int early_data = 0;
-
 static unsigned int psk_server_cb(SSL *ssl, const char *identity,
                                   unsigned char *psk,
                                   unsigned int max_psk_len)