diff options
| author | jsing <> | 2019-02-09 15:20:05 +0000 |
|---|---|---|
| committer | jsing <> | 2019-02-09 15:20:05 +0000 |
| commit | 697813b6701818d308182e24502b82a16067be78 (patch) | |
| tree | b270ca4e8a5c9f3f80b183036bb1fd42b2ed9a70 /src/lib/libssl/tls13_internal.h | |
| parent | fa558a77721eb21feb6a123f6212126f9de94b24 (diff) | |
| download | openbsd-697813b6701818d308182e24502b82a16067be78.tar.gz openbsd-697813b6701818d308182e24502b82a16067be78.tar.bz2 openbsd-697813b6701818d308182e24502b82a16067be78.zip | |
Provide a reference from the TLSv1.3 context to the handshake state.
This allows ctx->hs to be used throughout the TLSv1.3 code, rather than
S3I(ctx->ssl)->hs_tls13.
ok inoguchi@ tb@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/tls13_internal.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index 4b23e74ae1..0637b34ff7 100644 --- a/src/lib/libssl/tls13_internal.h +++ b/src/lib/libssl/tls13_internal.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls13_internal.h,v 1.16 2019/02/04 16:18:15 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.17 2019/02/09 15:20:05 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> |
| 4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
| @@ -147,8 +147,11 @@ struct tls13_handshake_stage { | |||
| 147 | uint8_t message_number; | 147 | uint8_t message_number; |
| 148 | }; | 148 | }; |
| 149 | 149 | ||
| 150 | typedef struct ssl_handshake_tls13_st SSL_HANDSHAKE_TLS13; | ||
| 151 | |||
| 150 | struct tls13_ctx { | 152 | struct tls13_ctx { |
| 151 | SSL *ssl; | 153 | SSL *ssl; |
| 154 | SSL_HANDSHAKE_TLS13 *hs; | ||
| 152 | uint8_t mode; | 155 | uint8_t mode; |
| 153 | struct tls13_handshake_stage handshake_stage; | 156 | struct tls13_handshake_stage handshake_stage; |
| 154 | 157 | ||
