Add ctrl and macro so we can determine if peer support secure renegotiation.
[openssl.git] / ssl / dtls1.h
index 074869325a4d397179b00ebfd2b4e60f537d8557..af363a984e79e508b7935e621d74e477423a16c0 100644 (file)
@@ -88,7 +88,7 @@ extern "C" {
 #endif
 
 /* lengths of messages */
-#define DTLS1_COOKIE_LENGTH                     32
+#define DTLS1_COOKIE_LENGTH                     256
 
 #define DTLS1_RT_HEADER_LENGTH                  13
 
@@ -216,6 +216,9 @@ typedef struct dtls1_state_st
         */
        record_pqueue buffered_app_data;
 
+       /* Is set when listening for new connections with dtls1_listen() */
+       unsigned int listen;
+
        unsigned int mtu; /* max DTLS packet size */
 
        struct hm_header_st w_msg_hdr;