Lines Matching refs:dst
2723 static int x509_inet_pton_ipv4(const char *src, void *dst);
2728 static int x509_inet_pton_ipv6(const char *src, void *dst)
2821 memcpy(dst, addr, sizeof(addr));
2825 static int x509_inet_pton_ipv4(const char *src, void *dst)
2828 uint8_t *res = (uint8_t *) dst;
2863 static int x509_inet_pton_ipv6(const char *src, void *dst)
2865 return inet_pton(AF_INET6, src, dst) == 1 ? 0 : -1;
2868 static int x509_inet_pton_ipv4(const char *src, void *dst)
2870 return inet_pton(AF_INET, src, dst) == 1 ? 0 : -1;
2875 size_t mbedtls_x509_crt_parse_cn_inet_pton(const char *cn, void *dst)
2878 ? x509_inet_pton_ipv4(cn, dst) == 0 ? 4 : 0
2879 : x509_inet_pton_ipv6(cn, dst) == 0 ? 16 : 0;