diff options
author | jsing <> | 2021-01-19 18:51:08 +0000 |
---|---|---|
committer | jsing <> | 2021-01-19 18:51:08 +0000 |
commit | ac4995fa26f1a8ba3ff386c0caf843a423a4abc7 (patch) | |
tree | 5ff1746dcd8d564bdb0c60d5075f307fbaeac57d /src/lib/libssl/ssl_locl.h | |
parent | 0e9595ce9da2c27470d495fbfc1b189eb4a3df24 (diff) | |
download | openbsd-ac4995fa26f1a8ba3ff386c0caf843a423a4abc7.tar.gz openbsd-ac4995fa26f1a8ba3ff386c0caf843a423a4abc7.tar.bz2 openbsd-ac4995fa26f1a8ba3ff386c0caf843a423a4abc7.zip |
Provide record layer overhead for DTLS.
Rather than manually calculating the maximum record layer overhead in the
DTLS code, have the record layer provide this information. This also makes
it work correctly with AEAD ciphersuites.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 560fcdc1a4..e09f668121 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.312 2021/01/13 18:20:54 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.313 2021/01/19 18:51:08 jsing 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 | * |
@@ -477,6 +477,8 @@ struct tls12_record_layer *tls12_record_layer_new(void); | |||
477 | void tls12_record_layer_free(struct tls12_record_layer *rl); | 477 | void tls12_record_layer_free(struct tls12_record_layer *rl); |
478 | void tls12_record_layer_alert(struct tls12_record_layer *rl, | 478 | void tls12_record_layer_alert(struct tls12_record_layer *rl, |
479 | uint8_t *alert_desc); | 479 | uint8_t *alert_desc); |
480 | int tls12_record_layer_write_overhead(struct tls12_record_layer *rl, | ||
481 | size_t *overhead); | ||
480 | void tls12_record_layer_set_version(struct tls12_record_layer *rl, | 482 | void tls12_record_layer_set_version(struct tls12_record_layer *rl, |
481 | uint16_t version); | 483 | uint16_t version); |
482 | void tls12_record_layer_set_write_epoch(struct tls12_record_layer *rl, | 484 | void tls12_record_layer_set_write_epoch(struct tls12_record_layer *rl, |