summaryrefslogtreecommitdiff
path: root/lib/curl_addrinfo.c
Commit message (Collapse)AuthorAgeFilesLines
* stdio.h, stdlib.h, string.h, stdarg.h and ctype.h inclusion done in setup_once.hYang Tse2011-07-261-1/+0
|
* compiler warning: fixYang Tse2011-05-261-0/+1
| | | | Fix compiler warning: conversion may lose significant bits
* source cleanup: unify look, style and indent levelsDaniel Stenberg2011-04-271-2/+2
| | | | | By the use of a the new lib/checksrc.pl script that checks that our basic source style rules are followed.
* In lib/, change 'wanna' to 'want to'.Fabian Keil2011-04-211-2/+2
| | | | Found with codespell.
* Curl_getaddrinfo_ex: sanitize function results follow-up.Yang Tse2010-11-241-0/+12
|
* Curl_getaddrinfo_ex: sanitize function results.Yang Tse2010-11-231-19/+31
| | | | | | | | Ensure that spurious results from system's getaddrinfo() ares not propagated by Curl_getaddrinfo_ex() into the library. Also ensure that the ai_addrlen member of Curl_getaddrinfo_ex()'s output linked list of Curl_addrinfo structures has appropriate family-specific address size.
* CURLOPT_RESOLVE: addedDaniel Stenberg2010-11-081-0/+21
| | | | | | | | | | | | CURLOPT_RESOLVE is a new option that sends along a curl_slist with name:port:address sets that will populate the DNS cache with entries so that request can be "fooled" to use another host than what otherwise would've been used. Previously we've encouraged the use of Host: for that when dealing with HTTP, but this new feature has the added bonus that it allows the name from the URL to be used for TLS SNI and server certificate name checks as well. This is a first change. Surely more will follow to make it decent.
* warning: silence a win64 compiler warningDaniel Stenberg2010-07-301-1/+4
| | | | | | conversion from 'size_t' to 'curl_socklen_t', possible loss of data Reported by: Adam Light
* remove the CVSish $Id$ linesDaniel Stenberg2010-03-241-1/+0
|
* Constantine Sapuntzakis enhancements to make memory tracking log file writingYang Tse2010-01-181-14/+9
| | | | of messages atomic, on systems where an fwrite of a memory buffer is atomic.
* VMS specific preprocessor symbol checking adjustmentsYang Tse2009-12-301-3/+3
|
* Fix type castYang Tse2009-05-101-1/+1
|
* Use build-time configured curl_socklen_t instead of socklen_tYang Tse2009-05-021-1/+1
|
* Further narrow the use of the icc 9.1 optimizer workaround.Yang Tse2009-04-251-1/+1
| | | | Previous workaround proved useful, and finally did not trigger any warning!
* Try a simpler variation of the 'volatile' variables icc 9.1 on unix IA32 ↵Yang Tse2009-04-241-6/+8
| | | | | | | | workaround. Previous workaround proved useful, but triggered the following warning: warning #556: a value of type "volatile Curl_addrinfo *" cannot be assigned to an entity of type "Curl_addrinfo *"
* Try another variation of the 'volatile' variables icc 9.1 on unix IA32 ↵Yang Tse2009-04-231-9/+7
| | | | | | workaround. The #pragma optimize("", off) attempt did not fix the problem and SIGSEGV's in Curl_freeaddrinfo() were back.
* Disable optimizations when compiling function Curl_freeaddrinfo() with icc ↵Yang Tse2009-04-221-7/+9
| | | | | | | | 9.1 on unix IA32. Previous 'volatile' variables workaround proved useful, but it triggered the following warning: warning #167: argument of type "volatile Curl_addrinfo *" is incompatible with parameter of type "void *"
* libcurl's memory.h renamed to curl_memory.hYang Tse2009-04-211-1/+1
|
* Moved potential inclusion of system's malloc.h and memory.h header files toYang Tse2009-04-211-3/+0
| | | | | setup_once.h. Inclusion of each header file is based on the definition of NEED_MALLOC_H and NEED_MEMORY_H respectively.
* further narrow the use of the icc 9.1 optimizer workaroundYang Tse2009-04-171-1/+3
|
* attempt to workaround icc 9.1 optimizer induced problemYang Tse2009-04-161-0/+5
|
* fix compiler warning: implicit conversion shortens 64-bit value into a ↵Yang Tse2009-04-141-2/+2
| | | | 32-bit value
* fix compiler warning: implicit conversion shortens 64-bit value into a ↵Yang Tse2009-04-131-2/+2
| | | | 32-bit value
* Merged existing IPv4 and IPv6 Curl_ip2addr functions into a single oneYang Tse2008-11-061-3/+100
| | | | which now also takes a protocol address family argument.
* Fix typos.Gisle Vanem2008-11-011-3/+3
|
* Move curl_dofreeaddrinfo() and curl_dofreeaddrinfo()Yang Tse2008-10-301-0/+54
| | | | | implementation from lib/hostip6.c to lib/curl_addrinfo.c and prototypes from lib/hostip.h to lib/curl_addrinfo.h
* remove bogus commentYang Tse2008-10-301-1/+0
|
* Use our Curl_addrinfo definition even when an addrinfo struct is available.Yang Tse2008-10-301-0/+332
Use a wrapper function to call system's getaddrinfo().