diff options
author | beck <> | 2022-06-29 17:39:21 +0000 |
---|---|---|
committer | beck <> | 2022-06-29 17:39:21 +0000 |
commit | fc8a9f3799769566fe4b424c43a81a1a71f91328 (patch) | |
tree | 3406a8350556d9a6c42a2677a30e2dabf013942c /src/lib/libssl/ssl_locl.h | |
parent | 6f4618c6c03ccd1d0f1b55dd8ff05af4a05abe78 (diff) | |
download | openbsd-fc8a9f3799769566fe4b424c43a81a1a71f91328.tar.gz openbsd-fc8a9f3799769566fe4b424c43a81a1a71f91328.tar.bz2 openbsd-fc8a9f3799769566fe4b424c43a81a1a71f91328.zip |
Add support for sending QUIC transport parameters
This is the start of adding the boringssl API for QUIC support,
and the TLS extensions necessary to send and receive QUIC transport
data.
Inspired by boringssl's https://boringssl-review.googlesource.com/24464
ok jsing@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index da21758815..102f7deaf5 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_locl.h,v 1.401 2022/06/29 12:03:38 tb Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.402 2022/06/29 17:39:20 beck 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 | * |
@@ -932,6 +932,10 @@ typedef struct ssl_internal_st { | |||
932 | unsigned char *alpn_client_proto_list; | 932 | unsigned char *alpn_client_proto_list; |
933 | unsigned int alpn_client_proto_list_len; | 933 | unsigned int alpn_client_proto_list_len; |
934 | 934 | ||
935 | /* QUIC transport params we will send */ | ||
936 | uint8_t *quic_transport_params; | ||
937 | size_t quic_transport_params_len; | ||
938 | |||
935 | /* XXX Callbacks */ | 939 | /* XXX Callbacks */ |
936 | 940 | ||
937 | /* true when we are actually in SSL_accept() or SSL_connect() */ | 941 | /* true when we are actually in SSL_accept() or SSL_connect() */ |
@@ -1218,6 +1222,10 @@ typedef struct ssl3_state_st { | |||
1218 | */ | 1222 | */ |
1219 | unsigned char *alpn_selected; | 1223 | unsigned char *alpn_selected; |
1220 | size_t alpn_selected_len; | 1224 | size_t alpn_selected_len; |
1225 | |||
1226 | /* Contains the QUIC transport params received from our peer. */ | ||
1227 | uint8_t *peer_quic_transport_params; | ||
1228 | size_t peer_quic_transport_params_len; | ||
1221 | } SSL3_STATE; | 1229 | } SSL3_STATE; |
1222 | 1230 | ||
1223 | /* | 1231 | /* |