From 8d4f8c6d80636017657ad19789c47e1ac92144f5 Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 9 May 2017 10:09:43 -0700 Subject: [PATCH] Fixes for build with distro for BuildTls13HandshakeHmac arg change. --- src/tls13.c | 4 ++-- wolfssl/internal.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tls13.c b/src/tls13.c index 04e7913af..53818d0a8 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -1784,7 +1784,7 @@ static int WritePSKBinders(WOLFSSL* ssl, byte* output, word32 idx) /* Build the HMAC of the handshake message data = binder. */ ret = BuildTls13HandshakeHmac(ssl, ssl->keys.client_write_MAC_secret, - current->binder, current->binderLen); + current->binder, ¤t->binderLen); if (ret != 0) return ret; @@ -2247,7 +2247,7 @@ static int DoPreSharedKeys(WOLFSSL *ssl, const byte* input, word32 helloSz, PreSharedKey* current; byte binderKey[MAX_DIGEST_SIZE]; byte binder[MAX_DIGEST_SIZE]; - word16 binderLen; + word32 binderLen; word16 modes; ext = TLSX_Find(ssl->extensions, TLSX_PRE_SHARED_KEY); diff --git a/wolfssl/internal.h b/wolfssl/internal.h index ae9c00b97..d647ade0e 100755 --- a/wolfssl/internal.h +++ b/wolfssl/internal.h @@ -2051,7 +2051,7 @@ typedef struct PreSharedKey { word16 identityLen; /* Length of identity */ byte* identity; /* PSK identity */ word32 ticketAge; /* Age of the ticket */ - byte binderLen; /* Length of HMAC */ + word32 binderLen; /* Length of HMAC */ byte binder[MAX_DIGEST_SIZE]; /* HMAC of hanshake */ byte hmac; /* HMAC algorithm */ byte resumption:1; /* Resumption PSK */