]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Remove openvpn_snprintf and similar functions
authorArne Schwabe <arne@rfc2549.org>
Mon, 6 May 2024 10:27:10 +0000 (12:27 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 6 May 2024 14:56:24 +0000 (16:56 +0200)
commit130548fe4d23afac5d2948d4e5ee164eef635cfd
tree02565892077e937a24fe58fe2c172ab2013f1c19
parent9d92221eb4e773cae913752af6d70082ae305fe8
Remove openvpn_snprintf and similar functions

Old Microsoft versions did strange behaviour but according to the
newly added unit test and
https://stackoverflow.com/questions/7706936/is-snprintf-always-null-terminating
this is now standard conforming and we can use the normal snprintf
method.

Microsoft own documentation to swprintf also says you nowadays need to
define _CRT_NON_CONFORMING_SWPRINTFS to get to non-standard behaviour.

Change-Id: I07096977e3b562bcb5d2c6f11673a4175b8e12ac
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20240506102710.8976-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28617.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
38 files changed:
src/openvpn/buffer.c
src/openvpn/buffer.h
src/openvpn/crypto.c
src/openvpn/crypto_mbedtls.c
src/openvpn/dns.c
src/openvpn/env_set.c
src/openvpn/error.c
src/openvpn/init.c
src/openvpn/manage.c
src/openvpn/options.c
src/openvpn/pkcs11.c
src/openvpn/platform.c
src/openvpn/plugin.c
src/openvpn/pool.c
src/openvpn/proxy.c
src/openvpn/ps.c
src/openvpn/route.c
src/openvpn/run_command.h
src/openvpn/socket.c
src/openvpn/socks.c
src/openvpn/ssl_mbedtls.c
src/openvpn/ssl_ncp.c
src/openvpn/ssl_openssl.c
src/openvpn/ssl_verify.c
src/openvpn/ssl_verify_mbedtls.c
src/openvpn/ssl_verify_openssl.c
src/openvpn/tls_crypt.c
src/openvpn/tun.c
src/openvpn/win32.c
src/openvpn/win32.h
src/openvpn/xkey_helper.c
src/openvpnserv/common.c
src/openvpnserv/interactive.c
src/openvpnserv/service.h
src/openvpnserv/validate.c
tests/unit_tests/openvpn/test_buffer.c
tests/unit_tests/openvpn/test_cryptoapi.c
tests/unit_tests/openvpn/test_pkcs11.c