From cf38ddcaf43a2f6fd1de2405aa74feca6523733c Mon Sep 17 00:00:00 2001 From: jsing <> Date: Thu, 12 Mar 2020 17:01:53 +0000 Subject: Use internal versions of SSL3_BUFFER, SSL3_RECORD and DTLS1_RECORD_DATA. SSL3_BUFFER, SSL3_RECORD and DTLS1_RECORD_DATA are currently still in public headers, even though their usage is internal. This moves to using _INTERNAL suffixed versions that are in internal headers, which then allows us to change them without any potential public API fallout. ok inoguchi@ tb@ --- src/lib/libssl/d1_lib.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lib/libssl/d1_lib.c') diff --git a/src/lib/libssl/d1_lib.c b/src/lib/libssl/d1_lib.c index 6171035d23..b7ba6b1092 100644 --- a/src/lib/libssl/d1_lib.c +++ b/src/lib/libssl/d1_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: d1_lib.c,v 1.44 2020/03/10 17:02:21 jsing Exp $ */ +/* $OpenBSD: d1_lib.c,v 1.45 2020/03/12 17:01:53 jsing Exp $ */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. @@ -136,17 +136,17 @@ dtls1_clear_queues(SSL *s) { pitem *item = NULL; hm_fragment *frag = NULL; - DTLS1_RECORD_DATA *rdata; + DTLS1_RECORD_DATA_INTERNAL *rdata; while ((item = pqueue_pop(D1I(s)->unprocessed_rcds.q)) != NULL) { - rdata = (DTLS1_RECORD_DATA *) item->data; + rdata = (DTLS1_RECORD_DATA_INTERNAL *) item->data; free(rdata->rbuf.buf); free(item->data); pitem_free(item); } while ((item = pqueue_pop(D1I(s)->processed_rcds.q)) != NULL) { - rdata = (DTLS1_RECORD_DATA *) item->data; + rdata = (DTLS1_RECORD_DATA_INTERNAL *) item->data; free(rdata->rbuf.buf); free(item->data); pitem_free(item); @@ -167,7 +167,7 @@ dtls1_clear_queues(SSL *s) } while ((item = pqueue_pop(D1I(s)->buffered_app_data.q)) != NULL) { - rdata = (DTLS1_RECORD_DATA *) item->data; + rdata = (DTLS1_RECORD_DATA_INTERNAL *) item->data; free(rdata->rbuf.buf); free(item->data); pitem_free(item); -- cgit v1.2.3-55-g6feb