Silence some clang warnings
authorMatt Caswell <matt@openssl.org>
Thu, 2 Mar 2017 23:53:30 +0000 (23:53 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 2 Mar 2017 23:56:36 +0000 (23:56 +0000)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2831)

apps/s_server.c
ssl/statem/extensions_srvr.c

index 3190eabab19d674aef27ccb18c34867cadcad67f..57bae82990271e7f481a8f3c969ac612d18985ec 100644 (file)
@@ -148,7 +148,7 @@ static int dtlslisten = 0;
 static char *psk_identity = "Client_identity";
 char *psk_key = NULL;           /* by default PSK is not used */
 
 static char *psk_identity = "Client_identity";
 char *psk_key = NULL;           /* by default PSK is not used */
 
-int early_data = 0;
+static int early_data = 0;
 
 static unsigned int psk_server_cb(SSL *ssl, const char *identity,
                                   unsigned char *psk,
 
 static unsigned int psk_server_cb(SSL *ssl, const char *identity,
                                   unsigned char *psk,
index c613143d88bf7da4aedd31bfde1a17eed989d446..83fb71313afe5acb9c47958296eaa025cff8fed7 100644 (file)
@@ -681,7 +681,7 @@ int tls_parse_ctos_psk(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
     SSL_SESSION *sess = NULL;
     unsigned int id, i;
     const EVP_MD *md = NULL;
     SSL_SESSION *sess = NULL;
     unsigned int id, i;
     const EVP_MD *md = NULL;
-    uint32_t ticket_age, now, agesec, agems;
+    uint32_t ticket_age = 0, now, agesec, agems;
 
     /*
      * If we have no PSK kex mode that we recognise then we can't resume so
 
     /*
      * If we have no PSK kex mode that we recognise then we can't resume so