From d493899579429374026bc11c60859d5af9c2a0dc Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sat, 13 Sep 2008 18:24:38 +0000 Subject: DTLS didn't handle alerts correctly. PR: 1632 --- ssl/dtls1.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ssl/dtls1.h') diff --git a/ssl/dtls1.h b/ssl/dtls1.h index f95c91c784..6548a98f03 100644 --- a/ssl/dtls1.h +++ b/ssl/dtls1.h @@ -70,6 +70,7 @@ extern "C" { #define DTLS1_VERSION 0xFEFF #if 0 +/* this alert description is not specified anywhere... */ #define DTLS1_AD_MISSING_HANDSHAKE_MESSAGE 110 #endif @@ -85,7 +86,11 @@ extern "C" { #define DTLS1_CCS_HEADER_LENGTH 1 +#ifdef DTLS1_AD_MISSING_HANDSHAKE_MESSAGE #define DTLS1_AL_HEADER_LENGTH 7 +#else +#define DTLS1_AL_HEADER_LENGTH 2 +#endif typedef struct dtls1_bitmap_st -- cgit v1.2.3