Lines Matching defs:host
40 #define IDN2_LOOKUP(name, host, flags) \
41 idn2_lookup_u8((const uint8_t *)name, (uint8_t **)host, flags)
43 #define IDN2_LOOKUP(name, host, flags) \
44 idn2_lookup_ul((const char *)name, (char **)host, flags)
153 * CURLE_URL_MALFORMAT - the host name could not be converted
247 void Curl_free_idnconverted_hostname(struct hostname *host)
249 if(host->encalloc) {
251 Curl_idn_free(host->encalloc);
252 host->encalloc = NULL;
261 CURLcode Curl_idnconvert_hostname(struct hostname *host)
263 /* set the name we use to display the host name */
264 host->dispname = host->name;
268 if(!Curl_is_ASCII_name(host->name)) {
270 CURLcode result = idn_decode(host->name, &decoded);
273 /* zero length is a bad host name */
278 host->encalloc = decoded;
280 host->name = host->encalloc;