diff options
author | Andy Polyakov <appro@openssl.org> | 2008-09-13 18:24:38 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2008-09-13 18:24:38 +0000 |
commit | d493899579429374026bc11c60859d5af9c2a0dc (patch) | |
tree | 28384a111a8812cbaa11a697ab445d8e9f663a59 /ssl/dtls1.h | |
parent | 492279f6f3acaa5365fbb41e4296f87569e4a8f2 (diff) |
DTLS didn't handle alerts correctly.
PR: 1632
Diffstat (limited to 'ssl/dtls1.h')
-rw-r--r-- | ssl/dtls1.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |