]> git.ipfire.org Git - thirdparty/openvpn.git/commit
tls_crypt: Avoid some conversion warnings
authorFrank Lichtenheld <frank@lichtenheld.com>
Sun, 16 Nov 2025 14:07:48 +0000 (15:07 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 16 Nov 2025 18:03:23 +0000 (19:03 +0100)
commit8cd99b9185865ca9c3ce329bb050c8505ba2acc3
treefe0ff304f9447643d6218f80360ea47d423969ae
parent7835c371c72b42a55a451356246733e32bdbdffa
tls_crypt: Avoid some conversion warnings

The casts should be safe, since one is a constant
(but got type from sizeof()) and the other is
limited by the buffer length.

While here make the code in tls_crypt_v2_wrap_client_key
as little easier to follow.

Change-Id: I3f11423834814bab5d653f160fc2326dae4c0e8e
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1379
Message-Id: <20251116140754.17177-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34466.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tls_crypt.c