summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2021-01-20 07:05:25 +0000
committertb <>2021-01-20 07:05:25 +0000
commite8aa8e021a786a5b182cdc6d6541243fbdfba7a4 (patch)
treec8d7e084570cff6bd8a0ea8ac72808019a75a542 /src
parente99005f53b351b3c662664891d988adaa02c4d0b (diff)
downloadopenbsd-e8aa8e021a786a5b182cdc6d6541243fbdfba7a4.tar.gz
openbsd-e8aa8e021a786a5b182cdc6d6541243fbdfba7a4.tar.bz2
openbsd-e8aa8e021a786a5b182cdc6d6541243fbdfba7a4.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 'src')
-rw-r--r--src/lib/libssl/tls12_record_layer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/tls12_record_layer.c b/src/lib/libssl/tls12_record_layer.c
index 83d71d1c7a..b45a625fd4 100644
--- a/src/lib/libssl/tls12_record_layer.c
+++ b/src/lib/libssl/tls12_record_layer.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls12_record_layer.c,v 1.13 2021/01/19 19:07:39 jsing Exp $ */ 1/* $OpenBSD: tls12_record_layer.c,v 1.14 2021/01/20 07:05:25 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2020 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2020 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -1041,7 +1041,7 @@ tls12_record_layer_seal_record_protected_cipher(struct tls12_record_layer *rl,
1041 goto err; 1041 goto err;
1042 } 1042 }
1043 1043
1044 plain_len = (size_t)eiv_len + content_len + mac_len; 1044 plain_len = eiv_len + content_len + mac_len;
1045 1045
1046 /* Add padding to block size, if necessary. */ 1046 /* Add padding to block size, if necessary. */
1047 if (!tls12_record_protection_block_size(rl->write, &block_size)) 1047 if (!tls12_record_protection_block_size(rl->write, &block_size))