mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-01-06 11:41:12 +03:00
Use better IP parsing in x509 programs
Remove unnecessary duplicated code. Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
@@ -2862,7 +2862,6 @@ static int x509_inet_pton_ipv4(const char *src, void *dst)
|
||||
|
||||
#endif /* !AF_INET6 || MBEDTLS_TEST_SW_INET_PTON */ //no-check-names
|
||||
|
||||
MBEDTLS_STATIC_TESTABLE
|
||||
size_t mbedtls_x509_crt_parse_cn_inet_pton(const char *cn, void *dst)
|
||||
{
|
||||
return strchr(cn, ':') == NULL
|
||||
|
||||
Reference in New Issue
Block a user