diff options
author | jsing <> | 2019-01-21 00:24:19 +0000 |
---|---|---|
committer | jsing <> | 2019-01-21 00:24:19 +0000 |
commit | ec0a42c8a74417f7ba05753597cf210a41fb6fc8 (patch) | |
tree | 19d1d694cd987d664b59664078018347ca4cc5e4 /src/lib/libssl/tls13_record.h | |
parent | 5aeed39af0ab7b8b55b8ea5588529ff784c1c6be (diff) | |
download | openbsd-ec0a42c8a74417f7ba05753597cf210a41fb6fc8.tar.gz openbsd-ec0a42c8a74417f7ba05753597cf210a41fb6fc8.tar.bz2 openbsd-ec0a42c8a74417f7ba05753597cf210a41fb6fc8.zip |
Store the record version and make it available for use.
While here correct an int vs size_t mismatch.
ok tb@
Diffstat (limited to 'src/lib/libssl/tls13_record.h')
-rw-r--r-- | src/lib/libssl/tls13_record.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libssl/tls13_record.h b/src/lib/libssl/tls13_record.h index 72350d5d49..400153ba77 100644 --- a/src/lib/libssl/tls13_record.h +++ b/src/lib/libssl/tls13_record.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls13_record.h,v 1.2 2019/01/20 09:12:05 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_record.h,v 1.3 2019/01/21 00:24:19 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2019 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -46,10 +46,13 @@ __BEGIN_HIDDEN_DECLS | |||
46 | */ | 46 | */ |
47 | #define TLS13_RECORD_SEQ_NUM_LEN 8 | 47 | #define TLS13_RECORD_SEQ_NUM_LEN 8 |
48 | 48 | ||
49 | struct tls13_record; | ||
50 | |||
49 | struct tls13_record *tls13_record_new(void); | 51 | struct tls13_record *tls13_record_new(void); |
50 | void tls13_record_free(struct tls13_record *_rec); | 52 | void tls13_record_free(struct tls13_record *_rec); |
51 | int tls13_record_header(struct tls13_record *_rec, CBS *_cbs); | 53 | uint16_t tls13_record_version(struct tls13_record *_rec); |
52 | uint8_t tls13_record_content_type(struct tls13_record *_rec); | 54 | uint8_t tls13_record_content_type(struct tls13_record *_rec); |
55 | int tls13_record_header(struct tls13_record *_rec, CBS *_cbs); | ||
53 | int tls13_record_content(struct tls13_record *_rec, CBS *_cbs); | 56 | int tls13_record_content(struct tls13_record *_rec, CBS *_cbs); |
54 | void tls13_record_data(struct tls13_record *_rec, CBS *_cbs); | 57 | void tls13_record_data(struct tls13_record *_rec, CBS *_cbs); |
55 | int tls13_record_set_data(struct tls13_record *_rec, uint8_t *_data, | 58 | int tls13_record_set_data(struct tls13_record *_rec, uint8_t *_data, |