Jeremy Levartovsky 954307bb75
Fix IPv6 SAN overflow in cert_write and cert_req
mbedtls_x509_crt_parse_cn_inet_pton() requires a 16-byte buffer and
writes 16 bytes for an IPv6 address, but both programs passed a 4-byte
one. Use a 16-byte buffer and record the length the function returns
instead of sizeof(ip), so IPv6 addresses are encoded as 16 bytes.

Signed-off-by: Jeremy Levartovsky <140487034+JayOfTheKeyboard@users.noreply.github.com>
2026-10-12 21:37:06 +11:00
..
cert_app.c Remove Deprecated Items From Sample Programs 2026-01-14 13:01:22 +00:00
cert_req.c Fix IPv6 SAN overflow in cert_write and cert_req 2026-10-12 21:37:06 +11:00
cert_write.c Fix IPv6 SAN overflow in cert_write and cert_req 2026-10-12 21:37:06 +11:00
CMakeLists.txt Revert "Remove mbedtls_test" 2024-12-10 16:56:49 +01:00
crl_app.c Remove Deprecated Items From Sample Programs 2026-01-14 13:01:22 +00:00
load_roots.c Don't use printf("%llu") 2026-02-19 16:53:52 +01:00
req_app.c Remove Deprecated Items From Sample Programs 2026-01-14 13:01:22 +00:00