mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-04 14:08:39 +00:00
Avoid use of ip_len as it clashes with a macro in AIX system headers
Fixes #8624 Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
parent
0f60c673f0
commit
656d4b3c74
4 changed files with 15 additions and 15 deletions
|
|
@ -261,10 +261,10 @@ usage:
|
|||
} else if (strcmp(q, "DNS") == 0) {
|
||||
cur->node.type = MBEDTLS_X509_SAN_DNS_NAME;
|
||||
} else if (strcmp(q, "IP") == 0) {
|
||||
size_t ip_len = 0;
|
||||
size_t ip_addr_len = 0;
|
||||
cur->node.type = MBEDTLS_X509_SAN_IP_ADDRESS;
|
||||
ip_len = mbedtls_x509_crt_parse_cn_inet_pton(subtype_value, ip);
|
||||
if (ip_len == 0) {
|
||||
ip_addr_len = mbedtls_x509_crt_parse_cn_inet_pton(subtype_value, ip);
|
||||
if (ip_addr_len == 0) {
|
||||
mbedtls_printf("mbedtls_x509_crt_parse_cn_inet_pton failed to parse %s\n",
|
||||
subtype_value);
|
||||
goto exit;
|
||||
|
|
|
|||
|
|
@ -583,10 +583,10 @@ usage:
|
|||
} else if (strcmp(q, "DNS") == 0) {
|
||||
cur->node.type = MBEDTLS_X509_SAN_DNS_NAME;
|
||||
} else if (strcmp(q, "IP") == 0) {
|
||||
size_t ip_len = 0;
|
||||
size_t ip_addr_len = 0;
|
||||
cur->node.type = MBEDTLS_X509_SAN_IP_ADDRESS;
|
||||
ip_len = mbedtls_x509_crt_parse_cn_inet_pton(subtype_value, ip);
|
||||
if (ip_len == 0) {
|
||||
ip_addr_len = mbedtls_x509_crt_parse_cn_inet_pton(subtype_value, ip);
|
||||
if (ip_addr_len == 0) {
|
||||
mbedtls_printf("mbedtls_x509_crt_parse_cn_inet_pton failed to parse %s\n",
|
||||
subtype_value);
|
||||
goto exit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue