summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-01-20 07:05:26 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-01-20 07:05:26 +0000
commit3529bfd4e8fc4fe8448ba5a7c17124b51bfe6752 (patch)
tree29a281a436281eebbaa41eb302deda15c78b09dc /lib
parent6d5b56a80ff41b94b0e39eaa21fa440d83d73f9b (diff)
Drop unneeded cast in seal_record_protected_cipher
eiv_len was changed from an int to a size_t in r1.10, so casting it to a size_t is now a noop. ok jsing
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/tls12_record_layer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/tls12_record_layer.c b/lib/libssl/tls12_record_layer.c
index 83d71d1c7a0..b45a625fd48 100644
--- a/lib/libssl/tls12_record_layer.c
+++ b/lib/libssl/tls12_record_layer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls12_record_layer.c,v 1.13 2021/01/19 19:07:39 jsing Exp $ */
+/* $OpenBSD: tls12_record_layer.c,v 1.14 2021/01/20 07:05:25 tb Exp $ */
/*
* Copyright (c) 2020 Joel Sing <jsing@openbsd.org>
*
@@ -1041,7 +1041,7 @@ tls12_record_layer_seal_record_protected_cipher(struct tls12_record_layer *rl,
goto err;
}
- plain_len = (size_t)eiv_len + content_len + mac_len;
+ plain_len = eiv_len + content_len + mac_len;
/* Add padding to block size, if necessary. */
if (!tls12_record_protection_block_size(rl->write, &block_size))