summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_record.h
diff options
context:
space:
mode:
authorjsing <>2019-01-21 00:24:19 +0000
committerjsing <>2019-01-21 00:24:19 +0000
commitec0a42c8a74417f7ba05753597cf210a41fb6fc8 (patch)
tree19d1d694cd987d664b59664078018347ca4cc5e4 /src/lib/libssl/tls13_record.h
parent5aeed39af0ab7b8b55b8ea5588529ff784c1c6be (diff)
downloadopenbsd-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.h7
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
49struct tls13_record;
50
49struct tls13_record *tls13_record_new(void); 51struct tls13_record *tls13_record_new(void);
50void tls13_record_free(struct tls13_record *_rec); 52void tls13_record_free(struct tls13_record *_rec);
51int tls13_record_header(struct tls13_record *_rec, CBS *_cbs); 53uint16_t tls13_record_version(struct tls13_record *_rec);
52uint8_t tls13_record_content_type(struct tls13_record *_rec); 54uint8_t tls13_record_content_type(struct tls13_record *_rec);
55int tls13_record_header(struct tls13_record *_rec, CBS *_cbs);
53int tls13_record_content(struct tls13_record *_rec, CBS *_cbs); 56int tls13_record_content(struct tls13_record *_rec, CBS *_cbs);
54void tls13_record_data(struct tls13_record *_rec, CBS *_cbs); 57void tls13_record_data(struct tls13_record *_rec, CBS *_cbs);
55int tls13_record_set_data(struct tls13_record *_rec, uint8_t *_data, 58int tls13_record_set_data(struct tls13_record *_rec, uint8_t *_data,