summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2021-01-20 07:05:25 +0000
committertb <tb@openbsd.org>2021-01-20 07:05:25 +0000
commit679f355aa8bcbc3c7b8e90a70f23352c47bd32c0 (patch)
tree069d55d09c24036e4715236f57783cef164af5d4 /lib
parentpflog(4) tried to log the translated packet with rdr-to, nat-to, (diff)
downloadwireguard-openbsd-679f355aa8bcbc3c7b8e90a70f23352c47bd32c0.tar.xz
wireguard-openbsd-679f355aa8bcbc3c7b8e90a70f23352c47bd32c0.zip
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))