summaryrefslogtreecommitdiff
path: root/src/lib/libssl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl')
-rw-r--r--src/lib/libssl/bio_ssl.c4
-rw-r--r--src/lib/libssl/d1_both.c6
-rw-r--r--src/lib/libssl/d1_lib.c6
-rw-r--r--src/lib/libssl/d1_pkt.c6
-rw-r--r--src/lib/libssl/d1_srtp.c6
-rw-r--r--src/lib/libssl/dtls_local.h (renamed from src/lib/libssl/dtls_locl.h)4
-rw-r--r--src/lib/libssl/s3_cbc.c4
-rw-r--r--src/lib/libssl/s3_lib.c6
-rw-r--r--src/lib/libssl/ssl_algs.c4
-rw-r--r--src/lib/libssl/ssl_asn1.c4
-rw-r--r--src/lib/libssl/ssl_both.c6
-rw-r--r--src/lib/libssl/ssl_cert.c4
-rw-r--r--src/lib/libssl/ssl_ciph.c4
-rw-r--r--src/lib/libssl/ssl_ciphers.c4
-rw-r--r--src/lib/libssl/ssl_clnt.c6
-rw-r--r--src/lib/libssl/ssl_err.c4
-rw-r--r--src/lib/libssl/ssl_init.c4
-rw-r--r--src/lib/libssl/ssl_lib.c6
-rw-r--r--src/lib/libssl/ssl_local.h (renamed from src/lib/libssl/ssl_locl.h)2
-rw-r--r--src/lib/libssl/ssl_methods.c6
-rw-r--r--src/lib/libssl/ssl_packet.c4
-rw-r--r--src/lib/libssl/ssl_pkt.c6
-rw-r--r--src/lib/libssl/ssl_rsa.c4
-rw-r--r--src/lib/libssl/ssl_seclevel.c4
-rw-r--r--src/lib/libssl/ssl_sess.c4
-rw-r--r--src/lib/libssl/ssl_sigalgs.c4
-rw-r--r--src/lib/libssl/ssl_srvr.c6
-rw-r--r--src/lib/libssl/ssl_stat.c4
-rw-r--r--src/lib/libssl/ssl_tlsext.c4
-rw-r--r--src/lib/libssl/ssl_transcript.c4
-rw-r--r--src/lib/libssl/ssl_txt.c4
-rw-r--r--src/lib/libssl/ssl_versions.c4
-rw-r--r--src/lib/libssl/t1_enc.c6
-rw-r--r--src/lib/libssl/t1_lib.c4
-rw-r--r--src/lib/libssl/tls12_key_schedule.c4
-rw-r--r--src/lib/libssl/tls12_lib.c4
-rw-r--r--src/lib/libssl/tls12_record_layer.c4
-rw-r--r--src/lib/libssl/tls13_client.c4
-rw-r--r--src/lib/libssl/tls13_handshake.c4
-rw-r--r--src/lib/libssl/tls13_key_schedule.c4
-rw-r--r--src/lib/libssl/tls13_legacy.c4
-rw-r--r--src/lib/libssl/tls13_lib.c4
-rw-r--r--src/lib/libssl/tls13_quic.c5
-rw-r--r--src/lib/libssl/tls13_server.c4
-rw-r--r--src/lib/libssl/tls_key_share.c4
-rw-r--r--src/lib/libssl/tls_lib.c4
46 files changed, 103 insertions, 104 deletions
diff --git a/src/lib/libssl/bio_ssl.c b/src/lib/libssl/bio_ssl.c
index d6974cdb24..98a730d110 100644
--- a/src/lib/libssl/bio_ssl.c
+++ b/src/lib/libssl/bio_ssl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio_ssl.c,v 1.36 2022/11/11 11:25:18 beck Exp $ */ 1/* $OpenBSD: bio_ssl.c,v 1.37 2022/11/26 16:08:55 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -67,7 +67,7 @@
67#include <openssl/ssl.h> 67#include <openssl/ssl.h>
68 68
69#include "bio_local.h" 69#include "bio_local.h"
70#include "ssl_locl.h" 70#include "ssl_local.h"
71 71
72static int ssl_write(BIO *h, const char *buf, int num); 72static int ssl_write(BIO *h, const char *buf, int num);
73static int ssl_read(BIO *h, char *buf, int size); 73static int ssl_read(BIO *h, char *buf, int size);
diff --git a/src/lib/libssl/d1_both.c b/src/lib/libssl/d1_both.c
index 4f7f8be6ce..e94761e5d3 100644
--- a/src/lib/libssl/d1_both.c
+++ b/src/lib/libssl/d1_both.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_both.c,v 1.82 2022/10/02 16:36:41 jsing Exp $ */ 1/* $OpenBSD: d1_both.c,v 1.83 2022/11/26 16:08:55 tb 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.
@@ -123,9 +123,9 @@
123#include <openssl/x509.h> 123#include <openssl/x509.h>
124 124
125#include "bytestring.h" 125#include "bytestring.h"
126#include "dtls_locl.h" 126#include "dtls_local.h"
127#include "pqueue.h" 127#include "pqueue.h"
128#include "ssl_locl.h" 128#include "ssl_local.h"
129 129
130#define RSMBLY_BITMASK_SIZE(msg_len) (((msg_len) + 7) / 8) 130#define RSMBLY_BITMASK_SIZE(msg_len) (((msg_len) + 7) / 8)
131 131
diff --git a/src/lib/libssl/d1_lib.c b/src/lib/libssl/d1_lib.c
index fe51769530..ae6a6650ab 100644
--- a/src/lib/libssl/d1_lib.c
+++ b/src/lib/libssl/d1_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_lib.c,v 1.63 2022/11/11 17:15:26 jsing Exp $ */ 1/* $OpenBSD: d1_lib.c,v 1.64 2022/11/26 16:08:55 tb 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.
@@ -67,9 +67,9 @@
67 67
68#include <openssl/objects.h> 68#include <openssl/objects.h>
69 69
70#include "dtls_locl.h" 70#include "dtls_local.h"
71#include "pqueue.h" 71#include "pqueue.h"
72#include "ssl_locl.h" 72#include "ssl_local.h"
73 73
74void dtls1_hm_fragment_free(hm_fragment *frag); 74void dtls1_hm_fragment_free(hm_fragment *frag);
75 75
diff --git a/src/lib/libssl/d1_pkt.c b/src/lib/libssl/d1_pkt.c
index 4b33685aba..5409d3923b 100644
--- a/src/lib/libssl/d1_pkt.c
+++ b/src/lib/libssl/d1_pkt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_pkt.c,v 1.126 2022/11/23 07:31:12 tb Exp $ */ 1/* $OpenBSD: d1_pkt.c,v 1.127 2022/11/26 16:08:55 tb 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.
@@ -122,9 +122,9 @@
122#include <openssl/evp.h> 122#include <openssl/evp.h>
123 123
124#include "bytestring.h" 124#include "bytestring.h"
125#include "dtls_locl.h" 125#include "dtls_local.h"
126#include "pqueue.h" 126#include "pqueue.h"
127#include "ssl_locl.h" 127#include "ssl_local.h"
128#include "tls_content.h" 128#include "tls_content.h"
129 129
130/* mod 128 saturating subtract of two 64-bit values in big-endian order */ 130/* mod 128 saturating subtract of two 64-bit values in big-endian order */
diff --git a/src/lib/libssl/d1_srtp.c b/src/lib/libssl/d1_srtp.c
index 1c23409736..6073f0d2d4 100644
--- a/src/lib/libssl/d1_srtp.c
+++ b/src/lib/libssl/d1_srtp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_srtp.c,v 1.31 2022/10/02 16:36:41 jsing Exp $ */ 1/* $OpenBSD: d1_srtp.c,v 1.32 2022/11/26 16:08:55 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -123,8 +123,8 @@
123#ifndef OPENSSL_NO_SRTP 123#ifndef OPENSSL_NO_SRTP
124 124
125#include "bytestring.h" 125#include "bytestring.h"
126#include "dtls_locl.h" 126#include "dtls_local.h"
127#include "ssl_locl.h" 127#include "ssl_local.h"
128#include "srtp.h" 128#include "srtp.h"
129 129
130static const SRTP_PROTECTION_PROFILE srtp_known_profiles[] = { 130static const SRTP_PROTECTION_PROFILE srtp_known_profiles[] = {
diff --git a/src/lib/libssl/dtls_locl.h b/src/lib/libssl/dtls_local.h
index 784d397f7d..27d32105b7 100644
--- a/src/lib/libssl/dtls_locl.h
+++ b/src/lib/libssl/dtls_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: dtls_locl.h,v 1.11 2022/11/11 17:15:26 jsing Exp $ */ 1/* $OpenBSD: dtls_local.h,v 1.1 2022/11/26 16:08:55 tb 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.
@@ -64,7 +64,7 @@
64 64
65#include <openssl/dtls1.h> 65#include <openssl/dtls1.h>
66 66
67#include "ssl_locl.h" 67#include "ssl_local.h"
68#include "tls_content.h" 68#include "tls_content.h"
69 69
70__BEGIN_HIDDEN_DECLS 70__BEGIN_HIDDEN_DECLS
diff --git a/src/lib/libssl/s3_cbc.c b/src/lib/libssl/s3_cbc.c
index e0289d894b..32b7460870 100644
--- a/src/lib/libssl/s3_cbc.c
+++ b/src/lib/libssl/s3_cbc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_cbc.c,v 1.25 2021/12/09 17:45:49 tb Exp $ */ 1/* $OpenBSD: s3_cbc.c,v 1.26 2022/11/26 16:08:55 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2012 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2012 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -56,7 +56,7 @@
56#include <openssl/md5.h> 56#include <openssl/md5.h>
57#include <openssl/sha.h> 57#include <openssl/sha.h>
58 58
59#include "ssl_locl.h" 59#include "ssl_local.h"
60 60
61/* MAX_HASH_BIT_COUNT_BYTES is the maximum number of bytes in the hash's length 61/* MAX_HASH_BIT_COUNT_BYTES is the maximum number of bytes in the hash's length
62 * field. (SHA-384/512 have 128-bit length.) */ 62 * field. (SHA-384/512 have 128-bit length.) */
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c
index 87092069df..9e76cf93d8 100644
--- a/src/lib/libssl/s3_lib.c
+++ b/src/lib/libssl/s3_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_lib.c,v 1.241 2022/11/11 17:15:26 jsing Exp $ */ 1/* $OpenBSD: s3_lib.c,v 1.242 2022/11/26 16:08:55 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -159,8 +159,8 @@
159#include <openssl/opensslconf.h> 159#include <openssl/opensslconf.h>
160 160
161#include "bytestring.h" 161#include "bytestring.h"
162#include "dtls_locl.h" 162#include "dtls_local.h"
163#include "ssl_locl.h" 163#include "ssl_local.h"
164#include "ssl_sigalgs.h" 164#include "ssl_sigalgs.h"
165#include "ssl_tlsext.h" 165#include "ssl_tlsext.h"
166#include "tls_content.h" 166#include "tls_content.h"
diff --git a/src/lib/libssl/ssl_algs.c b/src/lib/libssl/ssl_algs.c
index 5ecbb3460c..ab23f4bc45 100644
--- a/src/lib/libssl/ssl_algs.c
+++ b/src/lib/libssl/ssl_algs.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_algs.c,v 1.30 2022/01/14 08:38:48 tb Exp $ */ 1/* $OpenBSD: ssl_algs.c,v 1.31 2022/11/26 16:08:55 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -62,7 +62,7 @@
62#include <openssl/objects.h> 62#include <openssl/objects.h>
63#include <openssl/opensslconf.h> 63#include <openssl/opensslconf.h>
64 64
65#include "ssl_locl.h" 65#include "ssl_local.h"
66 66
67int 67int
68SSL_library_init(void) 68SSL_library_init(void)
diff --git a/src/lib/libssl/ssl_asn1.c b/src/lib/libssl/ssl_asn1.c
index 6095a7370c..7684602129 100644
--- a/src/lib/libssl/ssl_asn1.c
+++ b/src/lib/libssl/ssl_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_asn1.c,v 1.65 2022/06/07 17:53:42 tb Exp $ */ 1/* $OpenBSD: ssl_asn1.c,v 1.66 2022/11/26 16:08:55 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2016 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2016 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -21,7 +21,7 @@
21#include <openssl/x509.h> 21#include <openssl/x509.h>
22 22
23#include "bytestring.h" 23#include "bytestring.h"
24#include "ssl_locl.h" 24#include "ssl_local.h"
25 25
26#define SSLASN1_TAG (CBS_ASN1_CONSTRUCTED | CBS_ASN1_CONTEXT_SPECIFIC) 26#define SSLASN1_TAG (CBS_ASN1_CONSTRUCTED | CBS_ASN1_CONTEXT_SPECIFIC)
27#define SSLASN1_TIME_TAG (SSLASN1_TAG | 1) 27#define SSLASN1_TIME_TAG (SSLASN1_TAG | 1)
diff --git a/src/lib/libssl/ssl_both.c b/src/lib/libssl/ssl_both.c
index 93f7384762..3feedc18f2 100644
--- a/src/lib/libssl/ssl_both.c
+++ b/src/lib/libssl/ssl_both.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_both.c,v 1.44 2022/10/02 16:36:41 jsing Exp $ */ 1/* $OpenBSD: ssl_both.c,v 1.45 2022/11/26 16:08:55 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -124,8 +124,8 @@
124#include <openssl/x509.h> 124#include <openssl/x509.h>
125 125
126#include "bytestring.h" 126#include "bytestring.h"
127#include "dtls_locl.h" 127#include "dtls_local.h"
128#include "ssl_locl.h" 128#include "ssl_local.h"
129 129
130/* 130/*
131 * Send s->init_buf in records of type 'type' (SSL3_RT_HANDSHAKE or 131 * Send s->init_buf in records of type 'type' (SSL3_RT_HANDSHAKE or
diff --git a/src/lib/libssl/ssl_cert.c b/src/lib/libssl/ssl_cert.c
index d102e2e29d..4fe805212b 100644
--- a/src/lib/libssl/ssl_cert.c
+++ b/src/lib/libssl/ssl_cert.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_cert.c,v 1.104 2022/10/02 16:36:41 jsing Exp $ */ 1/* $OpenBSD: ssl_cert.c,v 1.105 2022/11/26 16:08:55 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -128,7 +128,7 @@
128#include <openssl/pem.h> 128#include <openssl/pem.h>
129#include <openssl/x509v3.h> 129#include <openssl/x509v3.h>
130 130
131#include "ssl_locl.h" 131#include "ssl_local.h"
132 132
133int 133int
134SSL_get_ex_data_X509_STORE_CTX_idx(void) 134SSL_get_ex_data_X509_STORE_CTX_idx(void)
diff --git a/src/lib/libssl/ssl_ciph.c b/src/lib/libssl/ssl_ciph.c
index f39cd2f098..a71c5042c7 100644
--- a/src/lib/libssl/ssl_ciph.c
+++ b/src/lib/libssl/ssl_ciph.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_ciph.c,v 1.134 2022/09/08 15:31:12 millert Exp $ */ 1/* $OpenBSD: ssl_ciph.c,v 1.135 2022/11/26 16:08:55 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -149,7 +149,7 @@
149#include <openssl/engine.h> 149#include <openssl/engine.h>
150#endif 150#endif
151 151
152#include "ssl_locl.h" 152#include "ssl_local.h"
153 153
154#define CIPHER_ADD 1 154#define CIPHER_ADD 1
155#define CIPHER_KILL 2 155#define CIPHER_KILL 2
diff --git a/src/lib/libssl/ssl_ciphers.c b/src/lib/libssl/ssl_ciphers.c
index 09b4805820..4ec1b099bc 100644
--- a/src/lib/libssl/ssl_ciphers.c
+++ b/src/lib/libssl/ssl_ciphers.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_ciphers.c,v 1.16 2022/10/02 16:36:41 jsing Exp $ */ 1/* $OpenBSD: ssl_ciphers.c,v 1.17 2022/11/26 16:08:55 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2015-2017 Doug Hogan <doug@openbsd.org> 3 * Copyright (c) 2015-2017 Doug Hogan <doug@openbsd.org>
4 * Copyright (c) 2015-2018, 2020 Joel Sing <jsing@openbsd.org> 4 * Copyright (c) 2015-2018, 2020 Joel Sing <jsing@openbsd.org>
@@ -20,7 +20,7 @@
20#include <openssl/safestack.h> 20#include <openssl/safestack.h>
21 21
22#include "bytestring.h" 22#include "bytestring.h"
23#include "ssl_locl.h" 23#include "ssl_local.h"
24 24
25int 25int
26ssl_cipher_in_list(STACK_OF(SSL_CIPHER) *ciphers, const SSL_CIPHER *cipher) 26ssl_cipher_in_list(STACK_OF(SSL_CIPHER) *ciphers, const SSL_CIPHER *cipher)
diff --git a/src/lib/libssl/ssl_clnt.c b/src/lib/libssl/ssl_clnt.c
index 9cedc084ab..64085b953f 100644
--- a/src/lib/libssl/ssl_clnt.c
+++ b/src/lib/libssl/ssl_clnt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_clnt.c,v 1.156 2022/10/20 15:18:54 tb Exp $ */ 1/* $OpenBSD: ssl_clnt.c,v 1.157 2022/11/26 16:08:55 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -169,8 +169,8 @@
169#endif 169#endif
170 170
171#include "bytestring.h" 171#include "bytestring.h"
172#include "dtls_locl.h" 172#include "dtls_local.h"
173#include "ssl_locl.h" 173#include "ssl_local.h"
174#include "ssl_sigalgs.h" 174#include "ssl_sigalgs.h"
175#include "ssl_tlsext.h" 175#include "ssl_tlsext.h"
176 176
diff --git a/src/lib/libssl/ssl_err.c b/src/lib/libssl/ssl_err.c
index 31925026d4..59d8119e10 100644
--- a/src/lib/libssl/ssl_err.c
+++ b/src/lib/libssl/ssl_err.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_err.c,v 1.44 2022/08/21 19:18:57 jsing Exp $ */ 1/* $OpenBSD: ssl_err.c,v 1.45 2022/11/26 16:08:55 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -59,7 +59,7 @@
59#include <openssl/opensslconf.h> 59#include <openssl/opensslconf.h>
60#include <openssl/ssl.h> 60#include <openssl/ssl.h>
61 61
62#include "ssl_locl.h" 62#include "ssl_local.h"
63 63
64#ifndef OPENSSL_NO_ERR 64#ifndef OPENSSL_NO_ERR
65 65
diff --git a/src/lib/libssl/ssl_init.c b/src/lib/libssl/ssl_init.c
index b521d22d07..65f38e25db 100644
--- a/src/lib/libssl/ssl_init.c
+++ b/src/lib/libssl/ssl_init.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_init.c,v 1.2 2018/03/30 14:59:46 jsing Exp $ */ 1/* $OpenBSD: ssl_init.c,v 1.3 2022/11/26 16:08:55 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2018 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -22,7 +22,7 @@
22 22
23#include <openssl/objects.h> 23#include <openssl/objects.h>
24 24
25#include "ssl_locl.h" 25#include "ssl_local.h"
26 26
27static pthread_t ssl_init_thread; 27static pthread_t ssl_init_thread;
28 28
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index c9c63e9d3f..de4ef3fb5e 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_lib.c,v 1.307 2022/11/07 11:58:45 jsing Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.308 2022/11/26 16:08:55 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -159,8 +159,8 @@
159#endif 159#endif
160 160
161#include "bytestring.h" 161#include "bytestring.h"
162#include "dtls_locl.h" 162#include "dtls_local.h"
163#include "ssl_locl.h" 163#include "ssl_local.h"
164#include "ssl_sigalgs.h" 164#include "ssl_sigalgs.h"
165#include "ssl_tlsext.h" 165#include "ssl_tlsext.h"
166#include "tls12_internal.h" 166#include "tls12_internal.h"
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_local.h
index 8387513d99..8590243884 100644
--- a/src/lib/libssl/ssl_locl.h
+++ b/src/lib/libssl/ssl_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_locl.h,v 1.432 2022/11/11 17:15:26 jsing Exp $ */ 1/* $OpenBSD: ssl_local.h,v 1.1 2022/11/26 16:08:55 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
diff --git a/src/lib/libssl/ssl_methods.c b/src/lib/libssl/ssl_methods.c
index d8ffbb7b51..dac28011f4 100644
--- a/src/lib/libssl/ssl_methods.c
+++ b/src/lib/libssl/ssl_methods.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_methods.c,v 1.28 2021/07/26 03:17:38 jsing Exp $ */ 1/* $OpenBSD: ssl_methods.c,v 1.29 2022/11/26 16:08:56 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -56,8 +56,8 @@
56 * [including the GNU Public Licence.] 56 * [including the GNU Public Licence.]
57 */ 57 */
58 58
59#include "dtls_locl.h" 59#include "dtls_local.h"
60#include "ssl_locl.h" 60#include "ssl_local.h"
61#include "tls13_internal.h" 61#include "tls13_internal.h"
62 62
63static const SSL_METHOD DTLS_method_data = { 63static const SSL_METHOD DTLS_method_data = {
diff --git a/src/lib/libssl/ssl_packet.c b/src/lib/libssl/ssl_packet.c
index b2c3d0f2a0..70017b4664 100644
--- a/src/lib/libssl/ssl_packet.c
+++ b/src/lib/libssl/ssl_packet.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_packet.c,v 1.14 2022/10/02 16:36:41 jsing Exp $ */ 1/* $OpenBSD: ssl_packet.c,v 1.15 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -16,7 +16,7 @@
16 */ 16 */
17 17
18#include "bytestring.h" 18#include "bytestring.h"
19#include "ssl_locl.h" 19#include "ssl_local.h"
20 20
21static int 21static int
22ssl_is_sslv2_client_hello(CBS *header) 22ssl_is_sslv2_client_hello(CBS *header)
diff --git a/src/lib/libssl/ssl_pkt.c b/src/lib/libssl/ssl_pkt.c
index 4d79981484..728ac141e5 100644
--- a/src/lib/libssl/ssl_pkt.c
+++ b/src/lib/libssl/ssl_pkt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_pkt.c,v 1.64 2022/11/11 17:15:26 jsing Exp $ */ 1/* $OpenBSD: ssl_pkt.c,v 1.65 2022/11/26 16:08:56 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -117,8 +117,8 @@
117#include <openssl/evp.h> 117#include <openssl/evp.h>
118 118
119#include "bytestring.h" 119#include "bytestring.h"
120#include "dtls_locl.h" 120#include "dtls_local.h"
121#include "ssl_locl.h" 121#include "ssl_local.h"
122#include "tls_content.h" 122#include "tls_content.h"
123 123
124static int do_ssl3_write(SSL *s, int type, const unsigned char *buf, 124static int do_ssl3_write(SSL *s, int type, const unsigned char *buf,
diff --git a/src/lib/libssl/ssl_rsa.c b/src/lib/libssl/ssl_rsa.c
index 70c29359f0..f84315ba3e 100644
--- a/src/lib/libssl/ssl_rsa.c
+++ b/src/lib/libssl/ssl_rsa.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_rsa.c,v 1.48 2022/08/31 20:49:37 tb Exp $ */ 1/* $OpenBSD: ssl_rsa.c,v 1.49 2022/11/26 16:08:56 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -64,7 +64,7 @@
64#include <openssl/pem.h> 64#include <openssl/pem.h>
65#include <openssl/x509.h> 65#include <openssl/x509.h>
66 66
67#include "ssl_locl.h" 67#include "ssl_local.h"
68 68
69static int ssl_get_password_cb_and_arg(SSL_CTX *ctx, SSL *ssl, 69static int ssl_get_password_cb_and_arg(SSL_CTX *ctx, SSL *ssl,
70 pem_password_cb **passwd_cb, void **passwd_arg); 70 pem_password_cb **passwd_cb, void **passwd_arg);
diff --git a/src/lib/libssl/ssl_seclevel.c b/src/lib/libssl/ssl_seclevel.c
index 7026b330cf..1869c8108d 100644
--- a/src/lib/libssl/ssl_seclevel.c
+++ b/src/lib/libssl/ssl_seclevel.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_seclevel.c,v 1.26 2022/10/02 16:36:41 jsing Exp $ */ 1/* $OpenBSD: ssl_seclevel.c,v 1.27 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2020-2022 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2020-2022 Theo Buehler <tb@openbsd.org>
4 * 4 *
@@ -28,7 +28,7 @@
28#include <openssl/x509v3.h> 28#include <openssl/x509v3.h>
29 29
30#include "bytestring.h" 30#include "bytestring.h"
31#include "ssl_locl.h" 31#include "ssl_local.h"
32 32
33static int 33static int
34ssl_security_normalize_level(const SSL_CTX *ctx, const SSL *ssl, int *out_level) 34ssl_security_normalize_level(const SSL_CTX *ctx, const SSL *ssl, int *out_level)
diff --git a/src/lib/libssl/ssl_sess.c b/src/lib/libssl/ssl_sess.c
index dcf9b103da..5847a43dcd 100644
--- a/src/lib/libssl/ssl_sess.c
+++ b/src/lib/libssl/ssl_sess.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_sess.c,v 1.120 2022/10/20 15:22:51 tb Exp $ */ 1/* $OpenBSD: ssl_sess.c,v 1.121 2022/11/26 16:08:56 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -142,7 +142,7 @@
142#include <openssl/engine.h> 142#include <openssl/engine.h>
143#endif 143#endif
144 144
145#include "ssl_locl.h" 145#include "ssl_local.h"
146 146
147static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *s); 147static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *s);
148static void SSL_SESSION_list_add(SSL_CTX *ctx, SSL_SESSION *s); 148static void SSL_SESSION_list_add(SSL_CTX *ctx, SSL_SESSION *s);
diff --git a/src/lib/libssl/ssl_sigalgs.c b/src/lib/libssl/ssl_sigalgs.c
index c3e07e5c65..f59beb4320 100644
--- a/src/lib/libssl/ssl_sigalgs.c
+++ b/src/lib/libssl/ssl_sigalgs.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_sigalgs.c,v 1.47 2022/07/02 16:31:04 tb Exp $ */ 1/* $OpenBSD: ssl_sigalgs.c,v 1.48 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018-2020 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2018-2020 Bob Beck <beck@openbsd.org>
4 * Copyright (c) 2021 Joel Sing <jsing@openbsd.org> 4 * Copyright (c) 2021 Joel Sing <jsing@openbsd.org>
@@ -23,7 +23,7 @@
23#include <openssl/opensslconf.h> 23#include <openssl/opensslconf.h>
24 24
25#include "bytestring.h" 25#include "bytestring.h"
26#include "ssl_locl.h" 26#include "ssl_local.h"
27#include "ssl_sigalgs.h" 27#include "ssl_sigalgs.h"
28#include "tls13_internal.h" 28#include "tls13_internal.h"
29 29
diff --git a/src/lib/libssl/ssl_srvr.c b/src/lib/libssl/ssl_srvr.c
index 098e82e339..efb71bb717 100644
--- a/src/lib/libssl/ssl_srvr.c
+++ b/src/lib/libssl/ssl_srvr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_srvr.c,v 1.151 2022/10/02 16:36:41 jsing Exp $ */ 1/* $OpenBSD: ssl_srvr.c,v 1.152 2022/11/26 16:08:56 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -167,8 +167,8 @@
167#endif 167#endif
168 168
169#include "bytestring.h" 169#include "bytestring.h"
170#include "dtls_locl.h" 170#include "dtls_local.h"
171#include "ssl_locl.h" 171#include "ssl_local.h"
172#include "ssl_sigalgs.h" 172#include "ssl_sigalgs.h"
173#include "ssl_tlsext.h" 173#include "ssl_tlsext.h"
174 174
diff --git a/src/lib/libssl/ssl_stat.c b/src/lib/libssl/ssl_stat.c
index e4303e171a..b423033e43 100644
--- a/src/lib/libssl/ssl_stat.c
+++ b/src/lib/libssl/ssl_stat.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_stat.c,v 1.19 2022/10/02 16:36:41 jsing Exp $ */ 1/* $OpenBSD: ssl_stat.c,v 1.20 2022/11/26 16:08:56 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -84,7 +84,7 @@
84 84
85#include <stdio.h> 85#include <stdio.h>
86 86
87#include "ssl_locl.h" 87#include "ssl_local.h"
88 88
89const char * 89const char *
90SSL_state_string_long(const SSL *s) 90SSL_state_string_long(const SSL *s)
diff --git a/src/lib/libssl/ssl_tlsext.c b/src/lib/libssl/ssl_tlsext.c
index 647a95e485..e576384118 100644
--- a/src/lib/libssl/ssl_tlsext.c
+++ b/src/lib/libssl/ssl_tlsext.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_tlsext.c,v 1.130 2022/10/02 16:36:41 jsing Exp $ */ 1/* $OpenBSD: ssl_tlsext.c,v 1.131 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> 4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -28,7 +28,7 @@
28#include <openssl/opensslconf.h> 28#include <openssl/opensslconf.h>
29 29
30#include "bytestring.h" 30#include "bytestring.h"
31#include "ssl_locl.h" 31#include "ssl_local.h"
32#include "ssl_sigalgs.h" 32#include "ssl_sigalgs.h"
33#include "ssl_tlsext.h" 33#include "ssl_tlsext.h"
34 34
diff --git a/src/lib/libssl/ssl_transcript.c b/src/lib/libssl/ssl_transcript.c
index e4a041f67d..22cd6c3cfa 100644
--- a/src/lib/libssl/ssl_transcript.c
+++ b/src/lib/libssl/ssl_transcript.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_transcript.c,v 1.8 2022/07/22 19:54:46 jsing Exp $ */ 1/* $OpenBSD: ssl_transcript.c,v 1.9 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -17,7 +17,7 @@
17 17
18#include <openssl/ssl.h> 18#include <openssl/ssl.h>
19 19
20#include "ssl_locl.h" 20#include "ssl_local.h"
21#include "tls_internal.h" 21#include "tls_internal.h"
22 22
23int 23int
diff --git a/src/lib/libssl/ssl_txt.c b/src/lib/libssl/ssl_txt.c
index 33b067a73b..270e60a389 100644
--- a/src/lib/libssl/ssl_txt.c
+++ b/src/lib/libssl/ssl_txt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_txt.c,v 1.35 2022/06/07 17:55:08 tb Exp $ */ 1/* $OpenBSD: ssl_txt.c,v 1.36 2022/11/26 16:08:56 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -86,7 +86,7 @@
86 86
87#include <openssl/buffer.h> 87#include <openssl/buffer.h>
88 88
89#include "ssl_locl.h" 89#include "ssl_local.h"
90 90
91int 91int
92SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *x) 92SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *x)
diff --git a/src/lib/libssl/ssl_versions.c b/src/lib/libssl/ssl_versions.c
index 3cd6db01ca..fbc0004f4b 100644
--- a/src/lib/libssl/ssl_versions.c
+++ b/src/lib/libssl/ssl_versions.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_versions.c,v 1.25 2022/10/02 16:36:41 jsing Exp $ */ 1/* $OpenBSD: ssl_versions.c,v 1.26 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -15,7 +15,7 @@
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 */ 16 */
17 17
18#include "ssl_locl.h" 18#include "ssl_local.h"
19 19
20static uint16_t 20static uint16_t
21ssl_dtls_to_tls_version(uint16_t dtls_ver) 21ssl_dtls_to_tls_version(uint16_t dtls_ver)
diff --git a/src/lib/libssl/t1_enc.c b/src/lib/libssl/t1_enc.c
index dc627c5a8b..c6140e9b34 100644
--- a/src/lib/libssl/t1_enc.c
+++ b/src/lib/libssl/t1_enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t1_enc.c,v 1.156 2022/11/07 11:58:45 jsing Exp $ */ 1/* $OpenBSD: t1_enc.c,v 1.157 2022/11/26 16:08:56 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -143,8 +143,8 @@
143#include <openssl/md5.h> 143#include <openssl/md5.h>
144#include <openssl/opensslconf.h> 144#include <openssl/opensslconf.h>
145 145
146#include "dtls_locl.h" 146#include "dtls_local.h"
147#include "ssl_locl.h" 147#include "ssl_local.h"
148 148
149void 149void
150tls1_cleanup_key_block(SSL *s) 150tls1_cleanup_key_block(SSL *s)
diff --git a/src/lib/libssl/t1_lib.c b/src/lib/libssl/t1_lib.c
index c326575231..85d5eaa633 100644
--- a/src/lib/libssl/t1_lib.c
+++ b/src/lib/libssl/t1_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t1_lib.c,v 1.196 2022/10/02 16:36:42 jsing Exp $ */ 1/* $OpenBSD: t1_lib.c,v 1.197 2022/11/26 16:08:56 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -117,7 +117,7 @@
117#include <openssl/ocsp.h> 117#include <openssl/ocsp.h>
118 118
119#include "bytestring.h" 119#include "bytestring.h"
120#include "ssl_locl.h" 120#include "ssl_local.h"
121#include "ssl_sigalgs.h" 121#include "ssl_sigalgs.h"
122#include "ssl_tlsext.h" 122#include "ssl_tlsext.h"
123 123
diff --git a/src/lib/libssl/tls12_key_schedule.c b/src/lib/libssl/tls12_key_schedule.c
index e603e2c222..6d714c1183 100644
--- a/src/lib/libssl/tls12_key_schedule.c
+++ b/src/lib/libssl/tls12_key_schedule.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls12_key_schedule.c,v 1.2 2022/11/07 11:58:45 jsing Exp $ */ 1/* $OpenBSD: tls12_key_schedule.c,v 1.3 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2021 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2021 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -20,7 +20,7 @@
20#include <openssl/evp.h> 20#include <openssl/evp.h>
21 21
22#include "bytestring.h" 22#include "bytestring.h"
23#include "ssl_locl.h" 23#include "ssl_local.h"
24#include "tls12_internal.h" 24#include "tls12_internal.h"
25 25
26struct tls12_key_block { 26struct tls12_key_block {
diff --git a/src/lib/libssl/tls12_lib.c b/src/lib/libssl/tls12_lib.c
index 14c8fd53cb..96b3abcd2a 100644
--- a/src/lib/libssl/tls12_lib.c
+++ b/src/lib/libssl/tls12_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls12_lib.c,v 1.5 2022/06/07 17:19:09 tb Exp $ */ 1/* $OpenBSD: tls12_lib.c,v 1.6 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2021 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2021 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -15,7 +15,7 @@
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 */ 16 */
17 17
18#include "ssl_locl.h" 18#include "ssl_local.h"
19 19
20static int 20static int
21tls12_finished_verify_data(SSL *s, const char *finished_label, 21tls12_finished_verify_data(SSL *s, const char *finished_label,
diff --git a/src/lib/libssl/tls12_record_layer.c b/src/lib/libssl/tls12_record_layer.c
index a65906697d..59f5d32452 100644
--- a/src/lib/libssl/tls12_record_layer.c
+++ b/src/lib/libssl/tls12_record_layer.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls12_record_layer.c,v 1.37 2022/11/11 17:15:26 jsing Exp $ */ 1/* $OpenBSD: tls12_record_layer.c,v 1.38 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2020 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2020 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -20,7 +20,7 @@
20 20
21#include <openssl/evp.h> 21#include <openssl/evp.h>
22 22
23#include "ssl_locl.h" 23#include "ssl_local.h"
24 24
25#define TLS12_RECORD_SEQ_NUM_LEN 8 25#define TLS12_RECORD_SEQ_NUM_LEN 8
26#define TLS12_AEAD_FIXED_NONCE_MAX_LEN 12 26#define TLS12_AEAD_FIXED_NONCE_MAX_LEN 12
diff --git a/src/lib/libssl/tls13_client.c b/src/lib/libssl/tls13_client.c
index 746447cc13..3555ebadd1 100644
--- a/src/lib/libssl/tls13_client.c
+++ b/src/lib/libssl/tls13_client.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_client.c,v 1.100 2022/10/02 16:36:42 jsing Exp $ */ 1/* $OpenBSD: tls13_client.c,v 1.101 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -18,7 +18,7 @@
18#include <openssl/ssl3.h> 18#include <openssl/ssl3.h>
19 19
20#include "bytestring.h" 20#include "bytestring.h"
21#include "ssl_locl.h" 21#include "ssl_local.h"
22#include "ssl_sigalgs.h" 22#include "ssl_sigalgs.h"
23#include "ssl_tlsext.h" 23#include "ssl_tlsext.h"
24#include "tls13_handshake.h" 24#include "tls13_handshake.h"
diff --git a/src/lib/libssl/tls13_handshake.c b/src/lib/libssl/tls13_handshake.c
index c40442fdf9..9723edfea4 100644
--- a/src/lib/libssl/tls13_handshake.c
+++ b/src/lib/libssl/tls13_handshake.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_handshake.c,v 1.71 2022/04/19 17:01:43 tb Exp $ */ 1/* $OpenBSD: tls13_handshake.c,v 1.72 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018-2021 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2018-2021 Theo Buehler <tb@openbsd.org>
4 * Copyright (c) 2019 Joel Sing <jsing@openbsd.org> 4 * Copyright (c) 2019 Joel Sing <jsing@openbsd.org>
@@ -18,7 +18,7 @@
18 18
19#include <stddef.h> 19#include <stddef.h>
20 20
21#include "ssl_locl.h" 21#include "ssl_local.h"
22#include "tls13_handshake.h" 22#include "tls13_handshake.h"
23#include "tls13_internal.h" 23#include "tls13_internal.h"
24 24
diff --git a/src/lib/libssl/tls13_key_schedule.c b/src/lib/libssl/tls13_key_schedule.c
index abc35c4e83..05bcf0f006 100644
--- a/src/lib/libssl/tls13_key_schedule.c
+++ b/src/lib/libssl/tls13_key_schedule.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_key_schedule.c,v 1.17 2022/11/07 11:53:39 jsing Exp $ */ 1/* $OpenBSD: tls13_key_schedule.c,v 1.18 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018, Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2018, Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -21,7 +21,7 @@
21#include <openssl/hkdf.h> 21#include <openssl/hkdf.h>
22 22
23#include "bytestring.h" 23#include "bytestring.h"
24#include "ssl_locl.h" 24#include "ssl_local.h"
25#include "tls13_internal.h" 25#include "tls13_internal.h"
26 26
27int 27int
diff --git a/src/lib/libssl/tls13_legacy.c b/src/lib/libssl/tls13_legacy.c
index 57fb84cefb..1d6a5a1299 100644
--- a/src/lib/libssl/tls13_legacy.c
+++ b/src/lib/libssl/tls13_legacy.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_legacy.c,v 1.39 2022/10/02 16:36:42 jsing Exp $ */ 1/* $OpenBSD: tls13_legacy.c,v 1.40 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -17,7 +17,7 @@
17 17
18#include <limits.h> 18#include <limits.h>
19 19
20#include "ssl_locl.h" 20#include "ssl_local.h"
21#include "tls13_internal.h" 21#include "tls13_internal.h"
22 22
23static ssize_t 23static ssize_t
diff --git a/src/lib/libssl/tls13_lib.c b/src/lib/libssl/tls13_lib.c
index 3bb6d3d3db..05f125adc8 100644
--- a/src/lib/libssl/tls13_lib.c
+++ b/src/lib/libssl/tls13_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_lib.c,v 1.75 2022/11/07 11:53:39 jsing Exp $ */ 1/* $OpenBSD: tls13_lib.c,v 1.76 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2019 Bob Beck <beck@openbsd.org> 4 * Copyright (c) 2019 Bob Beck <beck@openbsd.org>
@@ -20,7 +20,7 @@
20 20
21#include <openssl/evp.h> 21#include <openssl/evp.h>
22 22
23#include "ssl_locl.h" 23#include "ssl_local.h"
24#include "ssl_tlsext.h" 24#include "ssl_tlsext.h"
25#include "tls13_internal.h" 25#include "tls13_internal.h"
26 26
diff --git a/src/lib/libssl/tls13_quic.c b/src/lib/libssl/tls13_quic.c
index bb7317d4c5..e5c386ea36 100644
--- a/src/lib/libssl/tls13_quic.c
+++ b/src/lib/libssl/tls13_quic.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_quic.c,v 1.6 2022/08/30 18:23:40 tb Exp $ */ 1/* $OpenBSD: tls13_quic.c,v 1.7 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2022 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -15,8 +15,7 @@
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 */ 16 */
17 17
18#include <ssl_locl.h> 18#include "ssl_local.h"
19
20#include "tls13_internal.h" 19#include "tls13_internal.h"
21 20
22static ssize_t 21static ssize_t
diff --git a/src/lib/libssl/tls13_server.c b/src/lib/libssl/tls13_server.c
index 7bbc541c82..75510a9085 100644
--- a/src/lib/libssl/tls13_server.c
+++ b/src/lib/libssl/tls13_server.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_server.c,v 1.104 2022/10/02 16:36:42 jsing Exp $ */ 1/* $OpenBSD: tls13_server.c,v 1.105 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2019, 2020 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2019, 2020 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2020 Bob Beck <beck@openbsd.org> 4 * Copyright (c) 2020 Bob Beck <beck@openbsd.org>
@@ -18,7 +18,7 @@
18 18
19#include <openssl/x509v3.h> 19#include <openssl/x509v3.h>
20 20
21#include "ssl_locl.h" 21#include "ssl_local.h"
22#include "ssl_sigalgs.h" 22#include "ssl_sigalgs.h"
23#include "ssl_tlsext.h" 23#include "ssl_tlsext.h"
24#include "tls13_handshake.h" 24#include "tls13_handshake.h"
diff --git a/src/lib/libssl/tls_key_share.c b/src/lib/libssl/tls_key_share.c
index 048db25bd5..cf7b1da262 100644
--- a/src/lib/libssl/tls_key_share.c
+++ b/src/lib/libssl/tls_key_share.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls_key_share.c,v 1.7 2022/07/02 16:00:12 tb Exp $ */ 1/* $OpenBSD: tls_key_share.c,v 1.8 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2020, 2021 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2020, 2021 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -23,7 +23,7 @@
23#include <openssl/evp.h> 23#include <openssl/evp.h>
24 24
25#include "bytestring.h" 25#include "bytestring.h"
26#include "ssl_locl.h" 26#include "ssl_local.h"
27#include "tls_internal.h" 27#include "tls_internal.h"
28 28
29struct tls_key_share { 29struct tls_key_share {
diff --git a/src/lib/libssl/tls_lib.c b/src/lib/libssl/tls_lib.c
index eb5ed380e0..db734c34e4 100644
--- a/src/lib/libssl/tls_lib.c
+++ b/src/lib/libssl/tls_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls_lib.c,v 1.2 2022/08/20 21:48:25 tb Exp $ */ 1/* $OpenBSD: tls_lib.c,v 1.3 2022/11/26 16:08:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2019, 2021 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2019, 2021 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -15,7 +15,7 @@
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 */ 16 */
17 17
18#include "ssl_locl.h" 18#include "ssl_local.h"
19 19
20int 20int
21tls_process_peer_certs(SSL *s, STACK_OF(X509) *peer_certs) 21tls_process_peer_certs(SSL *s, STACK_OF(X509) *peer_certs)