summaryrefslogtreecommitdiff
path: root/src/lib/libssl/dtls_locl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/dtls_locl.h')
-rw-r--r--src/lib/libssl/dtls_locl.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/lib/libssl/dtls_locl.h b/src/lib/libssl/dtls_locl.h
index da5c259aff..784d397f7d 100644
--- a/src/lib/libssl/dtls_locl.h
+++ b/src/lib/libssl/dtls_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: dtls_locl.h,v 1.10 2021/10/23 13:45:44 jsing Exp $ */ 1/* $OpenBSD: dtls_locl.h,v 1.11 2022/11/11 17:15:26 jsing Exp $ */
2/* 2/*
3 * DTLS implementation written by Nagendra Modadugu 3 * DTLS implementation written by Nagendra Modadugu
4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -65,6 +65,7 @@
65#include <openssl/dtls1.h> 65#include <openssl/dtls1.h>
66 66
67#include "ssl_locl.h" 67#include "ssl_locl.h"
68#include "tls_content.h"
68 69
69__BEGIN_HIDDEN_DECLS 70__BEGIN_HIDDEN_DECLS
70 71
@@ -109,6 +110,11 @@ typedef struct record_pqueue_st {
109 struct _pqueue *q; 110 struct _pqueue *q;
110} record_pqueue; 111} record_pqueue;
111 112
113typedef struct rcontent_pqueue_st {
114 unsigned short epoch;
115 struct _pqueue *q;
116} rcontent_pqueue;
117
112typedef struct hm_fragment_st { 118typedef struct hm_fragment_st {
113 struct hm_header_st msg_header; 119 struct hm_header_st msg_header;
114 unsigned char *fragment; 120 unsigned char *fragment;
@@ -122,6 +128,10 @@ typedef struct dtls1_record_data_internal_st {
122 SSL3_RECORD_INTERNAL rrec; 128 SSL3_RECORD_INTERNAL rrec;
123} DTLS1_RECORD_DATA_INTERNAL; 129} DTLS1_RECORD_DATA_INTERNAL;
124 130
131typedef struct dtls1_rcontent_data_internal_st {
132 struct tls_content *rcontent;
133} DTLS1_RCONTENT_DATA_INTERNAL;
134
125struct dtls1_state_st { 135struct dtls1_state_st {
126 /* Buffered (sent) handshake records */ 136 /* Buffered (sent) handshake records */
127 struct _pqueue *sent_messages; 137 struct _pqueue *sent_messages;
@@ -160,7 +170,7 @@ struct dtls1_state_st {
160 * to prevent either protocol violation or 170 * to prevent either protocol violation or
161 * unnecessary message loss. 171 * unnecessary message loss.
162 */ 172 */
163 record_pqueue buffered_app_data; 173 rcontent_pqueue buffered_app_data;
164 174
165 /* Is set when listening for new connections with dtls1_listen() */ 175 /* Is set when listening for new connections with dtls1_listen() */
166 unsigned int listen; 176 unsigned int listen;