From 25d62bd432b484c8c3ce2f12e9c1b884e67c84eb Mon Sep 17 00:00:00 2001 From: miod Date: Thu, 15 May 2014 19:39:46 +0000 Subject: [PATCH] No longer make pqueue.h a public (and installed) header file. Replace its inclusion in by the benign `struct _pqueue; typedef struct _pqueue *pqueue;'. Note that said dtls1.h should probably be considered a private header as well... ok beck@ --- lib/libssl/d1_pkt.c | 1 - lib/libssl/dtls1.h | 4 +++- lib/libssl/src/ssl/d1_pkt.c | 1 - lib/libssl/src/ssl/dtls1.h | 4 +++- lib/libssl/src/ssl/ssl_locl.h | 2 ++ lib/libssl/ssl/Makefile | 4 ++-- lib/libssl/ssl_locl.h | 2 ++ 7 files changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/libssl/d1_pkt.c b/lib/libssl/d1_pkt.c index c5bdb41b90c..5d3aaceac6f 100644 --- a/lib/libssl/d1_pkt.c +++ b/lib/libssl/d1_pkt.c @@ -119,7 +119,6 @@ #include "ssl_locl.h" #include #include -#include #include /* mod 128 saturating subtract of two 64-bit values in big-endian order */ diff --git a/lib/libssl/dtls1.h b/lib/libssl/dtls1.h index beb740154c0..d91b6e6397c 100644 --- a/lib/libssl/dtls1.h +++ b/lib/libssl/dtls1.h @@ -61,7 +61,6 @@ #define HEADER_DTLS1_H #include -#include #include #ifdef __cplusplus @@ -146,6 +145,9 @@ struct dtls1_timeout_st { unsigned int num_alerts; }; +struct _pqueue; +typedef struct _pqueue *pqueue; + typedef struct record_pqueue_st { unsigned short epoch; pqueue q; diff --git a/lib/libssl/src/ssl/d1_pkt.c b/lib/libssl/src/ssl/d1_pkt.c index c5bdb41b90c..5d3aaceac6f 100644 --- a/lib/libssl/src/ssl/d1_pkt.c +++ b/lib/libssl/src/ssl/d1_pkt.c @@ -119,7 +119,6 @@ #include "ssl_locl.h" #include #include -#include #include /* mod 128 saturating subtract of two 64-bit values in big-endian order */ diff --git a/lib/libssl/src/ssl/dtls1.h b/lib/libssl/src/ssl/dtls1.h index beb740154c0..d91b6e6397c 100644 --- a/lib/libssl/src/ssl/dtls1.h +++ b/lib/libssl/src/ssl/dtls1.h @@ -61,7 +61,6 @@ #define HEADER_DTLS1_H #include -#include #include #ifdef __cplusplus @@ -146,6 +145,9 @@ struct dtls1_timeout_st { unsigned int num_alerts; }; +struct _pqueue; +typedef struct _pqueue *pqueue; + typedef struct record_pqueue_st { unsigned short epoch; pqueue q; diff --git a/lib/libssl/src/ssl/ssl_locl.h b/lib/libssl/src/ssl/ssl_locl.h index 012a38cc5c1..a0c30178368 100644 --- a/lib/libssl/src/ssl/ssl_locl.h +++ b/lib/libssl/src/ssl/ssl_locl.h @@ -164,6 +164,8 @@ #include #include +#include "pqueue.h" + #define c2l(c,l) (l = ((unsigned long)(*((c)++))) , \ l|=(((unsigned long)(*((c)++)))<< 8), \ l|=(((unsigned long)(*((c)++)))<<16), \ diff --git a/lib/libssl/ssl/Makefile b/lib/libssl/ssl/Makefile index 8975572be86..d282268f0a0 100644 --- a/lib/libssl/ssl/Makefile +++ b/lib/libssl/ssl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.42 2014/05/12 19:14:14 miod Exp $ +# $OpenBSD: Makefile,v 1.43 2014/05/15 19:39:46 miod Exp $ LIB= ssl @@ -23,7 +23,7 @@ SRCS=\ pqueue.c SRCS+= s3_cbc.c -HDRS= srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h kssl.h pqueue.h +HDRS= srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h kssl.h .PATH: ${LSSL_SRC} diff --git a/lib/libssl/ssl_locl.h b/lib/libssl/ssl_locl.h index 012a38cc5c1..a0c30178368 100644 --- a/lib/libssl/ssl_locl.h +++ b/lib/libssl/ssl_locl.h @@ -164,6 +164,8 @@ #include #include +#include "pqueue.h" + #define c2l(c,l) (l = ((unsigned long)(*((c)++))) , \ l|=(((unsigned long)(*((c)++)))<< 8), \ l|=(((unsigned long)(*((c)++)))<<16), \ -- 2.20.1