From 44c4f18d3e5ff0ddf7eeecc387b9ba396cd7505d Mon Sep 17 00:00:00 2001 From: John Safranek Date: Tue, 22 Dec 2015 09:45:54 -0800 Subject: [PATCH] fix DTLS warnings for Windows --- wolfssl/internal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wolfssl/internal.h b/wolfssl/internal.h index dea006f80..098282a2c 100644 --- a/wolfssl/internal.h +++ b/wolfssl/internal.h @@ -2315,7 +2315,7 @@ typedef struct DtlsMsg { word32 fragSz; /* Length of fragments received */ word32 seq; /* Handshake sequence number */ word32 sz; /* Length of whole mesage */ - word16 type; + byte type; } DtlsMsg; @@ -2624,7 +2624,6 @@ typedef struct DtlsHandShakeHeader { enum HandShakeType { - no_shake = -1, hello_request = 0, client_hello = 1, server_hello = 2, @@ -2638,9 +2637,10 @@ enum HandShakeType { client_key_exchange = 16, finished = 20, certificate_status = 22, - change_cipher_hs = 55 /* simulate unique handshake type for sanity + change_cipher_hs = 55, /* simulate unique handshake type for sanity checks. record layer change_cipher conflicts with handshake finished */ + no_shake = 255 /* used to initialize the DtlsMsg record */ };