mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-30 02:47:24 +08:00
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> |
||
|---|---|---|
| .. | ||
| cert_app.c | ||
| cert_req.c | ||
| cert_write.c | ||
| CMakeLists.txt | ||
| crl_app.c | ||
| load_roots.c | ||
| req_app.c | ||