]> git.ipfire.org Git - thirdparty/openvpn.git/commit
ssl_openssl: Use uint16_t internally for TLS versions
authorFrank Lichtenheld <frank@lichtenheld.com>
Wed, 24 Sep 2025 15:02:55 +0000 (17:02 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 26 Sep 2025 20:49:10 +0000 (22:49 +0200)
commit04d24fbeb529991734cc0951037cd4a94376b025
tree7d25bdc734f942d4f60856f0156a86b3f17149f1
parentb2d5d7110cee0f6d1065617098fa8de4d0e24754
ssl_openssl: Use uint16_t internally for TLS versions

libressl changed the API for the involved functions. Since
uint16_t is a true subset of int it should be safe to switch
to that for all OpenSSL variants.

One trivial drive-by fix in unrelated code to be able
to enable -Wconversion fully for the file. This just
adds a cast where the comment says we intend a cast.

Change-Id: I9ea87531afb553f789289787403900a4758b8e1c
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: MaxF <max@max-fillinger.net>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1212
Message-Id: <20250924150300.29318-1-gert@greenie.muc.de>
URL: https://sourceforge.net/p/openvpn/mailman/message/59238230/
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl_openssl.c