There's no such things as DTLS1_AD_MISSING_HANDSHAKE_MESSAGE.
[openssl.git] / ssl / dtls1.h
index 4543ef75bb25c25354aabbd08737d7f335b0f1af..c5b1b9cab57863658ba8170fbcfb8f9da64abbfd 100644 (file)
@@ -71,7 +71,9 @@ extern "C" {
 #define DTLS1_VERSION_MAJOR            0x01
 #define DTLS1_VERSION_MINOR            0x00
 
+#if 0
 #define DTLS1_AD_MISSING_HANDSHAKE_MESSAGE    110
+#endif
 
 /* lengths of messages */
 #define DTLS1_COOKIE_LENGTH                     32
@@ -90,9 +92,11 @@ extern "C" {
 
 typedef struct dtls1_bitmap_st
        {
-       unsigned long long map;
-       unsigned long length;     /* sizeof the bitmap in bits */
-       unsigned long long max_seq_num;  /* max record number seen so far */
+       unsigned long map;              /* track 32 packets on 32-bit systems
+                                          and 64 - on 64-bit systems */
+       unsigned char max_seq_num[8];   /* max record number seen so far,
+                                          64-bit value in big-endian
+                                          encoding */
        } DTLS1_BITMAP;
 
 struct hm_header_st
@@ -162,9 +166,6 @@ typedef struct dtls1_state_st
 
        unsigned short handshake_read_seq;
 
-       /* only matters for handshake messages */  
-       unsigned long long next_expected_seq_num; 
-
        /* Received handshake records (processed and unprocessed) */
        record_pqueue unprocessed_rcds;
        record_pqueue processed_rcds;