CHANGES 163 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121
  1. Changelog for the c-ares project. Generated with git2changes.pl
  2. Version 1.18.1 (26 Oct 2021)
  3. bradh352 (26 Oct 2021)
  4. - missed version
  5. - 1.18.1 release prep
  6. - ares_getaddrinfo() was returning the wrong size for ai_addrlen
  7. ai_addrlen was erroneously returning 16 bytes instead of the
  8. sizeof(struct sockaddr_in6). This is a regression introduced
  9. in 1.18.0.
  10. Reported by: James Brown <[email protected]>
  11. Fix By: Brad House (@bradh352)
  12. - Windows: autotools force linking to iphlpapi
  13. GitHub (26 Oct 2021)
  14. - [Gregor Jasny brought this change]
  15. Fix typo detected by lintian (#434)
  16. typo in docs for ares_parse_uri_reply
  17. Fix By: Gregor Jasny (@gjasny)
  18. Version 1.18.0 (25 Oct 2021)
  19. bradh352 (25 Oct 2021)
  20. - replace Travis badge with Cirrus-CI badge
  21. - c-ares 1.18.0 release prep
  22. GitHub (21 Oct 2021)
  23. - [Jérôme Duval brought this change]
  24. Haiku: port (#431)
  25. Port for Haiku. Slight CMake changes, header changes, and resolv.conf/hosts paths specific to Haiku.
  26. Port By: Jérôme Duval (@korli)
  27. bradh352 (19 Oct 2021)
  28. - valgrind: fix reported invalid read
  29. - make sure distcheck runs
  30. - detect oddities and skip test if necessary
  31. - fix null ptr deref in strlen
  32. - bend over backwards for testing file access, something is weird on debian
  33. - chmod(fn, 0) is failing on debian
  34. - maybe process needs to be called
  35. - split test output
  36. - clean up a couple of compiler warnings
  37. - use helper function for addrinfo to simplify code
  38. - INSTANTIATE_TEST_CASE_P -> INSTANTIATE_TEST_SUITE_P as new convention in googletest
  39. - gmock: update from 1.8.0 to 1.11.0
  40. - Cirrus-CI: fix debian arm build
  41. - Cirrus-CI: more updates for proper testing
  42. - install proper packages for asan and analyze
  43. - fix crash in tests
  44. - try to disable container tests
  45. - need g++ for tests on debian
  46. - try cirrus-ci again
  47. - whitespace
  48. - start bringing up cirrus-ci
  49. - prep for adding new ci
  50. - fix cut and paste error
  51. GitHub (18 Oct 2021)
  52. - [Brad House brought this change]
  53. RFC6761: special case "localhost" (#430)
  54. As per RFC6761 Section 6.3, "localhost" lookups need to be special cased to return loopback addresses, and not forward queries to recursive dns servers.
  55. We first look up via files (/etc/hosts or equivalent), and if that fails, we then attempt a system-specific address enumeration for loopback addresses (currently Windows-only), and finally fallback to ::1 and 127.0.0.1.
  56. Fix By: Brad House (@bradh352)
  57. Fixes Bug: #399
  58. - [Brad House brought this change]
  59. Reimplement ares_gethostbyname() by wrapping ares_getaddrinfo() (#428)
  60. ares_gethostbyname() and ares_getaddrinfo() do a lot of similar things, however ares_getaddrinfo() has some desirable behaviors that should be imported into ares_gethostbyname(). For one, it sorts the address lists for the most likely to succeed based on the current system routes. Next, when AF_UNSPEC is specified, it properly handles search lists instead of first searching all of AF_INET6 then AF_INET, since ares_gethostbyname() searches in parallel. Therefore, this PR should also resolve the issues attempted in #94.
  61. A few things this PR does:
  62. 1. ares_parse_a_reply() and ares_parse_aaaa_reply() had very similar code to translate struct ares_addrinfo into a struct hostent as well as into struct ares_addrttl/ares_addr6ttl this has been split out into helper functions of ares__addrinfo2hostent() and ares__addrinfo2addrttl() to prevent this duplicative code.
  63. 2. ares_getaddrinfo() was apparently never honoring HOSTALIASES, and this was discovered once ares_gethostbyname() was turned into a wrapper, the affected test cases started failing.
  64. 3. A slight API modification to save the query hostname into struct ares_addrinfo as the last element of name. Since this is the last element, and all user-level instances of struct ares_addrinfo are allocated internally by c-ares, this is not an ABI-breaking change nor would it impact any API compatibility. This was needed since struct hostent has an h_name element.
  65. 4. Test Framework: MockServer tests via TCP would fail if more than 1 request was received at a time which is common when ares_getaddrinfo() queries for both A and AAAA records simultaneously. Infact, this was a long standing issue in which the ares_getaddrinfo() test were bypassing TCP alltogether. This has been corrected, the message is now processed in a loop.
  66. 5. Some tests had to be updated for overall correctness as they were invalid but somehow passing prior to this change.
  67. Change By: Brad House (@bradh352)
  68. bradh352 (9 Oct 2021)
  69. - ares_getaddrinfo() missing sanity check to fix #426
  70. - ares_getaddrinfo(): continue to next domain in search if query returns ARES_ENODATA
  71. Some DNS servers may behave badly and return a valid response with no data, in this
  72. case, continue on to the next search domain, but cache the result.
  73. Fixes Bug: #426
  74. Fix By: Brad House (@bradh352)
  75. - Allow '/' as a valid character for a returned name
  76. As of c-ares 1.17.2, a CNAME an in-addr.arpa delegation broke due
  77. to not allowing '/'. This needs to be allowed to not break valid
  78. functionality.
  79. Fixes Bug: #427
  80. Reported By: Adrian (@leftshift)
  81. Fix By: Brad House (@bradh352)
  82. Daniel Stenberg (5 Oct 2021)
  83. - libcares.pc.in: update the URL
  84. bradh352 (8 Sep 2021)
  85. - ares_expand_name should allow underscores (_) as SRV records legitimately use them
  86. c-ares 1.17.2 introduced response validation to prevent a security issue, however
  87. it did not have (_) listed as a valid character for domain name responses which
  88. caused issues when a CNAME referenced a SRV record which contained underscores.
  89. While RFC2181 section 11 does explicitly state not to do validation, that applies
  90. to servers not clients.
  91. Fixes: #424
  92. Fix By: Brad House (@bradh352)
  93. Daniel Stenberg (7 Sep 2021)
  94. - domain: update to use c-ares.org
  95. Closes #423
  96. - mailing list: moved to lists.haxx.se
  97. GitHub (3 Sep 2021)
  98. - [Biswapriyo Nath brought this change]
  99. CMake: Fix build in cygwin (#422)
  100. As cygwin environment has both socket.h and winsock2.h headers check WIN32 not to include the later one here
  101. Fix By: Biswapriyo Nath (@Biswa96)
  102. bradh352 (23 Aug 2021)
  103. - make building more verbose
  104. - add appveyor cmake/mingw static-only build
  105. GitHub (17 Aug 2021)
  106. - [Sinan Kaya brought this change]
  107. CMake: lower case advapi32 for cross-building with mingw (#420)
  108. When cross compiling with yocto's meta-mingw layer, getting a dependency
  109. error.
  110. This is caused by the fact that advapi32 is lower case in mingw builds.
  111. Fix By: Sinan Kaya <[email protected]>
  112. bradh352 (17 Aug 2021)
  113. - autotools: add ax_check_gnu_make.m4
  114. - autotools: add ax_require_defined.m4
  115. - autotools: dont use newer AC_CHECK_INCLUDES_DEFAULT, don't quote AC_ERROR_MSG
  116. - import more files needed by newer ax_code_coverage.m4
  117. - import more files needed by newer ax_code_coverage.m4
  118. - work around autoreconf -fiv first call returning 'error: too many loops'
  119. - restore zz40-xc-ovr.m4
  120. - autotools: processed configure.ac through autoupdate
  121. - autotools. update ax_code_coverage.m4 to latest. don't use deprecated AC_HELP_STRING
  122. - pull out some old autotools cruft
  123. GitHub (17 Aug 2021)
  124. - [Felix Yan brought this change]
  125. Provide ares_nameser.h as a public interface (#417)
  126. NodeJS needs ares_nameser.h as a pubic header.
  127. Fixes: #415
  128. Fix By: Felix Yan (@felixonmars)
  129. - [Felix Yan brought this change]
  130. Fix building when latest ax_code_coverage.m4 is imported (#418)
  131. ax_code_coverage.m4 dropped the @CODE_COVERAGE_RULES@ macro, so we need to switch to the latest recommendation from the m4 file. This requires updates to Makefile.am.
  132. Fix By: Felix Yan (@felixonmars)
  133. bradh352 (12 Aug 2021)
  134. - bump version to match current release
  135. GitHub (12 Aug 2021)
  136. - [dhrumilrana brought this change]
  137. z/OS minor update, add missing semicolon in ares_init.c (#414)
  138. Build fix for z/OS
  139. Fix by: Dhrumil Rana (@dhrumilrana)
  140. - [Daniel Bevenius brought this change]
  141. add build to .gitignore (#410)
  142. This commit adds the build directory to be ignored by git.
  143. The motivation for adding this to .gitignore as opposed to
  144. .git/info/exclude is that the CMake example in INSTALL.md uses build
  145. as the name of the directory to be used by CMake. This will cause
  146. git to report build as an untracked file.
  147. Fix By: Daniel Bevenius (@danbev)
  148. - [Martin Holeš brought this change]
  149. Add support for URI(Uniform Resource Identifier) records. (#411)
  150. Add ares_parse_uri_reply() for parsing URI DNS replies.
  151. Fix By: Martin Holeš (@martin-256)
  152. Daniel Stenberg (10 Aug 2021)
  153. - ares_getaddrinfo.3: available since 1.16.0
  154. - README.md: use https:// links
  155. Version 1.17.2 (24 Jul 2021)
  156. bradh352 (24 Jul 2021)
  157. - fix typo
  158. - prep for 1.17.2 release
  159. GitHub (30 Jun 2021)
  160. - [jeanpierrecartal brought this change]
  161. Replace strdup() with ares_strdup() (#408)
  162. strdup() is used in src/lib/ares_parse_a_reply.c and src/lib/ares_parse_aaaa_reply.c whereas allocated memory is freed using ares_free().
  163. Bug: 407
  164. Fix By: Jean-pierre Cartal (@jeanpierrecartal)
  165. - [Brad House brought this change]
  166. Validate hostnames in DNS responses and discard from malicious servers (#406)
  167. To prevent possible users having XSS issues due to intentionally malformed DNS replies, validate hostnames returned in responses and return EBADRESP if they are not valid.
  168. It is not clear what legitimate issues this may cause at this point.
  169. Bug Reported By: [email protected]
  170. Fix By: Brad House (@bradh352)
  171. bradh352 (11 Jun 2021)
  172. - ares_expand_name(): fix formatting and handling of root name response
  173. Fixes issue introduced in prior commit with formatting and handling
  174. of parsing a root name response which should not be escaped.
  175. Fix By: Brad House
  176. - ares_expand_name() should escape more characters
  177. RFC1035 5.1 specifies some reserved characters and escaping sequences
  178. that are allowed to be specified. Expand the list of reserved characters
  179. and also escape non-printable characters using the \DDD format as
  180. specified in the RFC.
  181. Bug Reported By: [email protected]
  182. Fix By: Brad House (@bradh352)
  183. GitHub (15 Apr 2021)
  184. - [HALX99 brought this change]
  185. Fix can't get dns server on macos and ios (#401)
  186. If DNS configuration didn't include search domains on MacOS (or iOS) it would throw an error instead of ignoring.
  187. Fix By: @halx99
  188. - [catalinh-bd brought this change]
  189. Bugfix/crash in ares sortaddrinfo (#400)
  190. The bug was generated because there was no check for the number
  191. of items in the list and invalid memory was accesed when the list
  192. was empty. There is a check for null after calling malloc but on
  193. some systems it always returns a valid address for size equals 0.
  194. Relates To: #392, 0903dcecabca283d0fa771632892dc7592b7a66d
  195. Fix By: @catalinh-bd
  196. bradh352 (2 Mar 2021)
  197. - Null deref if ares_getaddrinfo() is terminated with ares_destroy()
  198. ares_freeaddrinfo() was not checking for a Null ptr during cleanup of
  199. an aborted query.
  200. Once that was resolved it uncovered another possible issue with
  201. multiple simultaneous underlying queries being outstanding and
  202. possibly prematurely cleaning up the handle.
  203. Reported By: Michael Kourlas
  204. Fix By: Brad House (@bradh352)
  205. GitHub (18 Feb 2021)
  206. - [Brad House brought this change]
  207. CMake: RANDOM_FILE not defined #397
  208. RANDOM_FILE was never defined by cmake, causing RC4 key generation to use the less secure rand() method.
  209. Also, due to clashes with chain-building from other projects (e.g. curl) that may define RANDOM_FILE, this was renamed to CARES_RANDOM_FILE.
  210. This is the proposed change for #396
  211. Fix By: Brad House (@bradh352)
  212. - [Anton Danielsson brought this change]
  213. CMake: fix Make install for iOS/MacOS (#395)
  214. INSTALL TARGETS were missing the BUNDLE DESTINATION
  215. Fix By: Anton Danielsson (@anton-danielsson)
  216. - [František Dvořák brought this change]
  217. Fix build with autotools out of source tree (#394)
  218. Add missing include directory, which fixes the build with autotools in separated build directory.
  219. Fix By: František Dvořák (@valtri)
  220. bradh352 (15 Jan 2021)
  221. - fuzzing: HAVE_CONFIG_H may not be defined so cannot include ares_setup.h. Its not needed even though we include ares_nameser.h
  222. - remove redundant header checks
  223. - properly detect netinet/tcp.h on openbsd
  224. - more portability updates
  225. - renamed nameser.h to ares_nameser.h requires Makefile.inc update for distributed files
  226. - more portability updates
  227. - remove bad files
  228. - portability updates for test cases
  229. - Portability Updates for arpa/nameser.h (#388)
  230. There is too much inconsistency between platforms for arpa/nameser.h and arpa/nameser_compat.h for the way the current files are structured. Still load the respective system files but make our private nameser.h more forgiving.
  231. Fixes: #388
  232. Fix By: Brad House (@bradh352)
  233. - ares_parse_ptr_reply() handle NULL for addr/addr_len. Fixes #392
  234. NodeJS passes NULL for addr and 0 for addrlen parameters to ares_parse_ptr_reply(). On systems where malloc(0) returned NULL, this would cause the function to return ARES_ENOMEM, but the cleanup wasn't handled properly and would crash.
  235. This patche fixes that bug, and also hardens ares_free_hostent() to not leak memory during cleanup.
  236. Fixes: #392
  237. Fix By: Brad House (@bradh352)
  238. - Define behavior of malloc(0)
  239. Some systems may return either NULL or a valid pointer on malloc(0). c-ares should never call malloc(0) so lets return NULL so we're more likely to find an issue if it were to occur.
  240. GitHub (24 Dec 2020)
  241. - [dhrumilrana brought this change]
  242. z/OS: port (#390)
  243. Port c-ares to z/OS.
  244. Fix By: Dhrumil Rana (@dhrumilrana)
  245. - [vburdo brought this change]
  246. Use unbuffered stdio for /dev/urandom to read only requested data (#391)
  247. Buffered fread() reads 4096 bytes which is completely unnecessary and potentially may cause problems.
  248. I discovered this on private linux configuration where custom /dev/urandom implementation has poor performance.
  249. Fix By: @vburdo
  250. - [Jay Freeman (saurik) brought this change]
  251. This relative header #include needs to use quotes. (#386)
  252. Fix By: Jay Freeman (@saurik)
  253. bradh352 (23 Nov 2020)
  254. - Win32: Fix tools build with autotools static library
  255. When c-ares is being built as static on Win32, CARES_STATICLIB must
  256. be defined, but it wasn't being pulled in for the tools.
  257. Fixes: #384
  258. Fix By: Brad House (@bradh352)
  259. - Loosen requirements for static c-ares library when building tests
  260. It appears that when building tests, it would hardcode enabling building
  261. of the c-ares static library. This was probably due to Windows limitations
  262. in symbol visibility.
  263. This change will use the static library if it exists for tests, always.
  264. Otherwise, it will only forcibly enable static libraries for tests on
  265. Windows.
  266. Fixes: #380
  267. Fix By: Brad House (@bradh352)
  268. - Remove legacy comment about ahost/acountry/adig targets
  269. - Distribute fuzzinput/fuzznames for fuzz tests
  270. The fuzz test files were not being distributed. This doesn't appear to be
  271. a regression, it looks like they have never been distributed.
  272. Fixes: #379
  273. Fix By: Brad House (@bradh352)
  274. Version 1.17.1 (19 Nov 2020)
  275. GitHub (19 Nov 2020)
  276. - [Brad House brought this change]
  277. Travis: add iOS target built with CMake (#378)
  278. Issue #377 suggested that CMake builds for iOS with c-ares were broken. This PR adds an automatic Travis build for iOS CMake.
  279. Fix By: Brad House (@bradh352)
  280. bradh352 (18 Nov 2020)
  281. - fix build
  282. GitHub (18 Nov 2020)
  283. - [Fabrice Fontaine brought this change]
  284. External projects were using non-public header ares_dns.h, make public again (#376)
  285. It appears some outside projects were relying on macros in ares_dns.h, even though it doesn't appear that header was ever meant to be public. That said, we don't want to break external integrators so we should distribute this header again.
  286. Fix By: Fabrice Fontaine (@ffontaine)
  287. bradh352 (17 Nov 2020)
  288. - note that so versioning has moved to configure.ac
  289. - note about 1.17.1
  290. - fix sed gone wrong
  291. GitHub (17 Nov 2020)
  292. - [Daniel Stenberg brought this change]
  293. autotools cleanup (#372)
  294. * remove: install-sh mkinstalldirs
  295. They're generated when needed, no need to store in it.
  296. * buildconf: remove custom logic with autoreconf
  297. Fix By: Daniel Stenberg (@bagder)
  298. bradh352 (17 Nov 2020)
  299. - attempt to fix 1.17.0 release distribution issues
  300. Version 1.17.0 (16 Nov 2020)
  301. bradh352 (16 Nov 2020)
  302. - 1.17.0 release prep
  303. - ares_getaddrinfo(): duplicate hints ai_socktype and ai_protocol into output
  304. ai_socktype and ai_protocol were ignored from the hints input. They are now
  305. duplicated into the output as expected. Currently no sanity checks on
  306. proper values are taking place.
  307. Fixes: #317
  308. Fix By: Brad House (@bradh352)
  309. - ares_parse_{a,aaaa}_reply could return larger *naddrttls than passed in
  310. If there are more ttls returned than the maximum provided by the requestor, then
  311. the *naddrttls response would be larger than the actual number of elements in
  312. the addrttls array.
  313. This bug could lead to invalid memory accesses in applications using c-ares.
  314. This behavior appeared to break with PR #257
  315. Fixes: #371
  316. Reported By: Momtchil Momtchev (@mmomtchev)
  317. Fix By: Brad House (@bradh352)
  318. GitHub (5 Nov 2020)
  319. - [Dustin Lundquist brought this change]
  320. docs: ares_set_local_ip4() uses host byte order (#368)
  321. Properly document brain-dead behavior of ares_set_local_ip4() using host byte order instead of expected network byte order.
  322. Fix By: Dustin Lundquist <[email protected]>
  323. - [Łukasz Marszał brought this change]
  324. empty hquery->name could lead to invalid memory access (#367)
  325. If hquery->name is empty (=="\0"), &hquery->name[strlen(hquery->name)-1] would point to "random" place in memory. This is causing some of my address sanitizer tests to fail.
  326. Fix By: Łukasz Marszał (@lmarszal)
  327. bradh352 (28 Sep 2020)
  328. - Fix OSSFuzz reported issue in CAA reply parsing
  329. OSS-Fuzz is reporting a use-of-uninitialized-value:
  330. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26012
  331. Reported By: David Drysdale (@daviddrysdale)
  332. GitHub (26 Sep 2020)
  333. - [David Hotham brought this change]
  334. fuzz CAA parsing (#363)
  335. Add fuzz support for CAA parsing
  336. Fix By: David Hotham (@dimbleby)
  337. - [Daniela Sonnenschein brought this change]
  338. Allow parsing of CAA Resource Record (#360)
  339. CAA (Certification Authority Authorization) was introduced in RFC 6844.
  340. This has been obsoleted by RFC 8659. This commit added the possibility
  341. to query CAA resource records with adig and adds a parser for CAA
  342. records, that can be used in conjunction with ares_query(3).
  343. Closes Bug: #292
  344. Fix By: Daniela Sonnenschein (@lxdicted)
  345. Daniel Stenberg (17 Sep 2020)
  346. - docs: remove the html and pdf make targets
  347. They're rarely used in our daily work flow and mostly just add friction,
  348. Closes #362
  349. bradh352 (14 Sep 2020)
  350. - ares_process needs to always include nameser.h as it has compat
  351. - Define T_OPT if system doesn't provide it
  352. GitHub (12 Sep 2020)
  353. - [Gisle Vanem brought this change]
  354. Change the mailman links (#358)
  355. Links when wrapping become misleading. Insert newline to prevent wrapping.
  356. Fix By: Gisle Vanem (@gvanem)
  357. - [Gisle Vanem brought this change]
  358. [adig] Update man-page for the '-x' option (#357)
  359. Fix By: Gisle Vanem (@gvanem)
  360. - [Gisle Vanem brought this change]
  361. [adig] add '-x' option. (#356)
  362. Added a 'dig-style' '-x' option. Also support '-xx' for a
  363. IPv6 bit-string PTR query.
  364. Fix By: Gisle Vanem (@gvanem)
  365. bradh352 (12 Sep 2020)
  366. - fix indentation
  367. - ns_t_opt -> T_OPT
  368. GitHub (12 Sep 2020)
  369. - [Gisle Vanem brought this change]
  370. Fixes for Watt-32 on djgpp + Windows (#355)
  371. No longer any relation to libcurl since '<libcurl-root>/packages/DOS/common.dj' is dropped.
  372. This Makefile.dj has been tested on Win-10 only (using the Windows hosted djgpp cross compiler).
  373. Fix By: Gisle Vanem (@gvanem)
  374. - [Gisle Vanem brought this change]
  375. Fixes for Watt-32 on Windows and MSDOS (#354)
  376. Move the prototype to 'ares_private.h'.
  377. Fix By: Gisle Vanem (@gvanem)
  378. bradh352 (11 Sep 2020)
  379. - update path for include
  380. - remove stale information
  381. - remove stale information
  382. Brad House (9 Sep 2020)
  383. - silence compiler warnings
  384. - Remove stale msvc files from makefile
  385. GitHub (9 Sep 2020)
  386. - [Brad House brought this change]
  387. Reorganize source tree (#349)
  388. Originally started by Daniel Stenberg (@bagder) with #123, this patch reorganizes the c-ares source tree to have a more modern layout. It also fixes out of tree builds for autotools, and automatically builds the tests if tests are enabled. All tests are passing which tests each of the supported build systems (autotools, cmake, nmake, mingw gmake). There may be some edge cases that will have to be caught later on for things I'm not aware of.
  389. Fix By: Brad House (@bradh352)
  390. Brad House (1 Sep 2020)
  391. - remove CURLDEBUG as per #82
  392. GitHub (1 Sep 2020)
  393. - [Erik Lax brought this change]
  394. Detect remote DNS server does not support EDNS as per RFC 6891 (#244)
  395. EDNS retry should be based on FORMERR returned without an OPT RR record as per https://tools.ietf.org/html/rfc6891#section-7 rather than just treating any unexpected error condition as a reason to disable EDNS on the channel.
  396. Fix By: Erik Lax (@eriklax)
  397. Brad House (27 Aug 2020)
  398. - Fix for #345, don't use 'true' use 1
  399. GitHub (27 Aug 2020)
  400. - [Seraphime Kirkovski brought this change]
  401. ares_gethostbyname: Fix AF_UNSPEC support when using an ip address (#204)
  402. fake_hostent() was not supporting AF_UNSPEC, so when an ip address was specified when using AF_UNSPEC it would attempt to do a DNS lookup rather than returning a fake hostent using the ip address.
  403. Fix By: Seraphime Kirkovski (@Seraphime)
  404. - [apenn-msft brought this change]
  405. Tests should use dynamic system-assigned ports rather than static port (#346)
  406. The c-ares test suite was hardcoded to use port 5300 (and possibly 5301, 5302) for the test suite. Especially in containers, there may be no guarantee these ports are available and cause tests to fail when they could otherwise succeed. Instead, request the system to assign a port to use dynamically. This is now the default. To override, the test suite still takes the "-p <port>" option as it always has and will honor that.
  407. Fix By: Anthony Penniston (@apenn-msft)
  408. Brad House (25 Aug 2020)
  409. - Unset members of the addr struct contain garbage values (#343)
  410. When generating the ares_sockaddr data by getaddrinfo() it was only filling
  411. in certain members while leaving others uninitialized. This left garbage
  412. data if a user tried to use the unset values. memset() the ares_sockaddr
  413. to 0 prior to filling in the values to prevent this.
  414. Reported By: @SmorkalovG
  415. Fix By: Brad House (@bradh352)
  416. GitHub (24 Aug 2020)
  417. - [Jonathan Maye-Hobbs brought this change]
  418. FQDN with trailing period should be queried first with larger ndot value (#345)
  419. If a query is performed for dynamodb.us-east-1.amazonaws.com. with ndots=5, it was attempting to search the search domains rather than just attempting the FQDN that was passed it. This patch now at least attempts the FQDN first.
  420. We may need to determine if we should abort any further searching, however as is probably intended.
  421. Fix by: Jonathan Maye-Hobbs (@wheelpharoah)
  422. - [Gisle Vanem brought this change]
  423. Update acountry.c country code list (#341)
  424. Updated country_list[]:
  425. * 2-letter ISO-3166 country-codes.
  426. * Add, rename some names + codes in accordance with latest table at https://en.wikipedia.org/wiki/ISO_3166-1.
  427. Fix By: Gisle Vanem (@gvanem)
  428. - [Bulat Gaifullin brought this change]
  429. Test case should honor flag HAVE_WRITEV rather than WIN32 (#344)
  430. Test cases where not honoring the HAVE_WRITEV flag but instead using WIN32 to determine if WRITEV was available or not. This patch fixes that.
  431. Fix By: Bulat Gaifullin (@bgaifullin)
  432. Brad House (18 Jul 2020)
  433. - Ensure c89 support
  434. A couple of for loops in Mac-specific code were using integer declarations
  435. inside a for loop. Move the declaration to the top of the preceding
  436. code block to retain c89 compliance.
  437. Reported By: Jeffrey Walton
  438. GitHub (2 Jul 2020)
  439. - [Fionn Fitzmaurice brought this change]
  440. Avoid buffer overflow in RC4 loop comparison (#336)
  441. The rc4 function iterates over a buffer of size buffer_len who's maximum
  442. value is INT_MAX with a counter of type short that is not guaranteed to
  443. have maximum size INT_MAX.
  444. In circumstances where short is narrower than int and where buffer_len
  445. is larger than the maximum value of a short, it may be possible to loop
  446. infinitely as counter will overflow and never be greater than or equal
  447. to buffer_len.
  448. The solution is to make the comparison be between types of equal width.
  449. This commit defines counter as an int.
  450. Fix By: Fionn Fitzmaurice (@fionn)
  451. - [anonymoushelpishere brought this change]
  452. Updated help information for adig, acountry, and ahost. (#334)
  453. Provide more descriptive help information for various utilities.
  454. Fix By: @anonymoushelpishere
  455. - [lutianxiong brought this change]
  456. avoid read-heap-buffer-overflow (#332)
  457. Fix invalid read in ares_parse_soa_reply.c found during fuzzing
  458. Fixes Bug: #333
  459. Fix By: lutianxiong (@ltx2018)
  460. - [Ivan Baidakou brought this change]
  461. Fix: sizeof(sizeof(addr.saX)) -> sizeof(addr.saX) in readaddrinfo (#331)
  462. Looks like a sed-gone-wrong, a sizeof inside of a sizeof.
  463. Fix By: Ivan Baidakou (@basiliscos)
  464. Version 1.16.1 (11 May 2020)
  465. Brad House (11 May 2020)
  466. - c-ares 1.16.1 release prep
  467. - update travis to use xcode11.4
  468. - Prevent possible double-free in ares_getaddrinfo() if ares_destroy() is called
  469. In the event that ares_destroy() is called prior to ares_getaddrinfo() completing,
  470. it would result in an invalid read and double-free due to calling end_hquery() twice.
  471. Reported By: Jann Horn @ Google Project Zero
  472. GitHub (30 Apr 2020)
  473. - [shelley vohr brought this change]
  474. fix: windows UNICODE incompatibilities with ares_getaddrinfo (#328)
  475. Fixes the following compatibility issues:
  476. * Use RegQueryValueExA instead of RegQueryValueEx
  477. * Use ExpandEnvironmentStringsA instead of ExpandEnvironmentStrings
  478. * Use RegOpenKeyExA instead of RegOpenKeyExA
  479. * Use GetWindowsDirectoryA instead of GetWindowsDirectoryA
  480. Fix By: Shelley Vohr (@codebytere)
  481. Closes: #327
  482. Brad House (13 Apr 2020)
  483. - travis: CloudFlare does not allow T_ANY requests, so live tests that use it fail. Disable.
  484. - travis: bump macos image to the latest
  485. - cast-align warnings are false for struct sockaddr, silence
  486. Create a macro to silence false cast-align warnings when casting
  487. struct sockaddr * to struct sockaddr_in * and struct sockaddr_in6 *.
  488. Fix By: Brad House (@bradh352)
  489. - MacOS: Enable libresolv support for retrieving DNS servers like iOS does.
  490. GitHub (10 Apr 2020)
  491. - [Dmitry Igrishin brought this change]
  492. CMake: Populate the INCLUDE_DIRECTORIES property of installed targets (#323)
  493. Populate the INCLUDE_DIRECTORIES property of installed targets
  494. Fix By: Dmitry Igrishin (@dmitigr)
  495. Brad House (10 Apr 2020)
  496. - travis: make valgrind use cmake for tests
  497. - dont try to use libtool to run valgrind
  498. - valgrind requires libtool installed to wrap tests
  499. - scan build 7
  500. - fix travis live test
  501. - add debug for travis
  502. - try without sudo
  503. - attempt to modernize travis build environment
  504. GitHub (6 Apr 2020)
  505. - [Teemu R brought this change]
  506. Allow TXT records on CHAOS qclass (#321)
  507. Some DNS servers intentionally "misuse" the obsoleted CHAOS (CH) qclass to provide things like `version.bind`, `version.server`, `authors.bind`, `hostname.bind` and `id.server`.
  508. C-ares was not allowing such use cases.
  509. Fix By: Teemu R. (@rytilahti)
  510. Brad House (5 Apr 2020)
  511. - Remove warnings from ares_getaddrinfo.3 man page
  512. As reported in #319, non-standard macros of .IN were used.
  513. Replace with .RS/.RE.
  514. Fixes: #319
  515. Fix By: Brad House (@bradh352)
  516. - ares_getaddrinfo man page render better for man2html
  517. - update man pages to render better for man2html
  518. Version 1.16.0 (12 Mar 2020)
  519. Brad House (12 Mar 2020)
  520. - 1.16.0 release notes draft
  521. - attempt to fix double-free introduced in e0517f9
  522. GitHub (12 Mar 2020)
  523. - [David Drysdale brought this change]
  524. test: fuzzer input triggering double free (#315)
  525. OSS-Fuzz has reported a double-free with the fuzzer input file
  526. included here; run with:
  527. ./test/aresfuzz test/fuzzinput/clusterfuzz-5637790584012800
  528. Bisecting the failure points to commit e0517f97d988 ("Parse SOA records
  529. from ns_t_any response (#103)")
  530. - [Brad House brought this change]
  531. CMake: Install Manpages (#314)
  532. CMake wasn't installing manpages.
  533. Fixes #297
  534. Fix By: Brad House (@bradh352)
  535. - [Brad House brought this change]
  536. Enable cmake tests for AppVeyor (#313)
  537. Tests require linking against the static library on Windows otherwise the symbols are not exported for internals being tested.
  538. Fix By: Brad House (@bradh352)
  539. Brad House (11 Mar 2020)
  540. - Add AppVeyor badge
  541. - bump c-ares version to 1.16.0. test AppVeyor integration.
  542. GitHub (11 Mar 2020)
  543. - [Brad House brought this change]
  544. replace all usages of inet_addr() with ares_inet_pton() which is more proper (#312)
  545. Replace usage of inet_addr() with ares_inet_pton() which is more appropriate and fixes issues with legitimate addresses like 255.255.255.0. IPv6 already used this.
  546. Fixes #309
  547. Fix By: Brad House (@bradh352)
  548. - [Brad House brought this change]
  549. CMake: Generate WinPDB files during build (#311)
  550. Build and Install PDB (Windows Debug Symbol) files if supported by underlying system.
  551. Also update AppVeyor to test cmake builds.
  552. Fixes #245
  553. Fix By: Piotr Pietraszkiewicz (@ppietrasa) and Brad House (@bradh352)
  554. - [Brad House brought this change]
  555. CMake: Rework library function checking (#310)
  556. CHECK_LIBRARY_EXISTS(), while it takes a function name, does not actually verify the function exists in the library being evaluated. Instead, if the function is found in any dependent library, and the referenced library also exists, it returns true. This is not desirable.
  557. Wrap with a Macro to change the behavior.
  558. Fixes: #307
  559. Fix By: Brad House (@bradh352)
  560. - [Dron Rathore brought this change]
  561. Parse SOA records from ns_t_any response (#103)
  562. Added the capability of parsing SOA record from a response buffer of ns_t_any type query, this implementation doesn't interfere with existing T_SOA query's response as that too is treated as a list of records. The function returns ARES_EBADRESP if no SOA record is found(as per RFC).
  563. The basic idea of sticking to RFC that a ns_t_any too should return an SOA record is something open for discussion but I have kept the functionality intact as it was previously i.e the function returns ARES_EBADRESP if it doesn't find a SOA record regardless of which response it is parsing i.e. T_SOA or T_ANY.
  564. Note that asking for T_ANY is generally a bad idea:
  565. - https://blog.cloudflare.com/what-happened-next-the-deprecation-of-any/
  566. - https://tools.ietf.org/html/draft-ietf-dnsop-refuse-any
  567. Bug: #102
  568. Fix By: Dron Rathore (@DronRathore)
  569. - [Stephen Bryant brought this change]
  570. Added CPack functionality for generating RPM or DEB packages (#283)
  571. Added CPack functionality for generating RPM or DEB packages
  572. ie: run `cpack -G RPM` (or "DEB") after building with CMake.
  573. The current configuration creates 3 separate packages for the shared library,
  574. the development files and the tools.
  575. Fix By: Stephen Bryant (@bf-bryants)
  576. - [tjwalton brought this change]
  577. ares_gethostbyname: Return ENODATA if no valid A or AAAA record found (#304)
  578. ares_gethostbyname() was returning ESUCCESS when no A or AAAA record was found but a CNAME pointing nowhere was present. ENODATA should be returned instead, however the hosts pointer will still be present to provide the alias list.
  579. * Return ENODATA if no valid A or AAAA record found
  580. * Fix and update test ParseAReplyNoData.
  581. * Add test for new ENODATA behaviour in ares_gethostbyname.
  582. Fixes Bug #303
  583. Fix By: @tjwalton
  584. - [Michal Rostecki brought this change]
  585. test: Separate live tests from SetServers* tests (#299)
  586. Before this change, SetServers, SetServersPorts and SetServersCSV
  587. contained test cases trying to make DNS queries with the google.com
  588. hostname, which requires Internet connectivity. Tests with that
  589. requirement should be defined in the ares-test-live.cc file and contain
  590. "Live" prefix to filter them out with `--gtest_filter=-*.Live*` on
  591. machines without Internet connectivity.
  592. Fix By: Michal Rostecki (@mrostecki)
  593. - [Adam Majer brought this change]
  594. Only count valid addresses when response parsing (#302)
  595. When ares_parse_a_reply or ares_parse_aaaa_reply is called in case
  596. where another AAAA and A responses exist, the resulting ares_addrttl
  597. count is invalid and the structure points to gibberish.
  598. This is a regression since 1.15.
  599. Issue: https://github.com/c-ares/c-ares/issues/300
  600. Fix By: Adam Majer (@AdamMajer)
  601. Brad House (24 Dec 2019)
  602. - [Kyle Edwards brought this change]
  603. CMake: Provide c-ares version in package export file (#296)
  604. The CMake package export file should provide version information.
  605. Fix By: Kyle Edwards (@KyleFromKitware)
  606. - [Ben Noordhuis brought this change]
  607. Accept invalid /etc/resolv.conf lookup values, ability to build container tests (#274)
  608. * Add CARES_BUILD_CONTAINER_TESTS CMake option to add ability to build the Linux-only containerized tests.
  609. * Accept invalid /etc/resolv.conf lookup values
  610. Before this commit invalid `lookup` values resulted in c-ares not using
  611. any lookups without any clear indication why. After this commit it uses
  612. the default "fb".
  613. Fix By: Ben Noordhuis (@bnoordhuis)
  614. - [Christian Ammer brought this change]
  615. Parallel A and AAAA lookups in `ares_getaddrinfo` (#290)
  616. A and AAAA lookups for ares_getaddrinfo() are now performed in parallel.
  617. For this change `ares_search` was removed from `ares_getaddrinfo`.
  618. Instead `ares_query` in combination with `next_dns_lookup` are
  619. doing the suffix search.
  620. Adding support for `.onion` addresses which are tested by
  621. `TEST_F(DefaultChannelTest, GetAddrinfoOnionDomain)`
  622. Fix By: Christian Ammer (@ChristianAmmer)
  623. - [Vy Nguyen brought this change]
  624. Move variables into the block where it is used to avoid unused-vars (#281)
  625. Warning uncovered with [-Werror, -Wunused-variables]
  626. Fix By: Vy Nguyen (@oontvoo)
  627. - [Vy Nguyen brought this change]
  628. Rename local macros to avoid conflicting with system ones and remove unsed variables. (Otherwise code will break once compiled with [-Werror,-Wmacro-redefined,-Wunused-variable] ) (#280)
  629. Fix new getaddrinfo code to not redefine macros on some systems.
  630. Fix By: Vy Nguyen (@oontvoo)
  631. - [Egor Pugin brought this change]
  632. [ares_getenv] Return NULL in all cases. (#279)
  633. if ares_getenv is defined, it must return a value on all platforms.
  634. Fix By: Egor Pugin (@egorpugin)
  635. - [Abhishek Arya brought this change]
  636. Add OSS-Fuzz fuzzing badge (#278)
  637. Adds based on instructions at
  638. https://google.github.io/oss-fuzz/getting-started/new-project-guide/#status-badge
  639. Patch By: Abhishek Arya (@inferno-chromium)
  640. - [Peter Eisentraut brought this change]
  641. ares_init_options.3: Fix layout (#275)
  642. 7e6af8e inserted the documentation of resolvconf_path in the middle of
  643. the item for ednspsz, leading to broken layout. Fix that.
  644. Fix By: Peter Eisentraut (@petere)
  645. - [Gregor Jasny brought this change]
  646. manpages: Fix typos detected by lintian (#269)
  647. Fix By: Gregor Jasny (@gjasny)
  648. - [lifenjoiner brought this change]
  649. keep command line usage up to date (#256)
  650. adig and ahost built-in help did not match args taken.
  651. Fix-By: @lifenjoiner
  652. - [Dan Noé brought this change]
  653. ares-test.cc: Handle nullptr in AddrInfo ostream. (#268)
  654. The const AddrInfo& argument to operator<< overload for AddrInfo can be
  655. a nullptr unique_ptr. Handle this explicitly by printing {nullptr} if
  656. the rest of the function cannot be safely executed.
  657. Fix-by: Dan Noé <[email protected]>
  658. - [Dan Noé brought this change]
  659. Add missing limits.h include from ares_getaddrinfo.c (#267)
  660. This files references INT_MAX, but does not include limits.h. This can
  661. cause a build failure on some platforms. Include limits.h if we have it.
  662. Fix-by: Dan Noé <[email protected]>
  663. - [Andrew Selivanov brought this change]
  664. fix fuzzer docs and add missing getaddrinfo docs (#265)
  665. There is a fix for a bit outdated clang fuzzer docs and ares_getaddrinfo docs.
  666. Fix By: Andrew Selivanov (@ki11roy)
  667. - [Andrew Selivanov brought this change]
  668. Fix leak and crash in ares_parse_a/aaaa_reply (#264)
  669. * fix leak if naddress of particular type found
  670. * fix segfault when wanted ttls count lesser than count of result records
  671. * add fuzzer input files that trigger problems (from #263)
  672. Reported-By: David Drysdale (@daviddrysdale)
  673. Fix-By: Andrew Selivanov (@ki11roy)
  674. - [Andrew Selivanov brought this change]
  675. fix segfault when parsing wrong type of record (#262)
  676. Fixes segfault when trying to ares_parse_aaaa with AF_INET and vise versa.
  677. Fix By: Andrew Selivanov (@ki11roy)
  678. - work around mingw compile failure
  679. - c++ requires explicit casts
  680. - support EnvValue on Windows by implementing setenv/unsetenv
  681. - [Andrew Selivanov brought this change]
  682. getaddrinfo enhancements (#257)
  683. * Service support has been added to getaddrinfo.
  684. * ares_parse_a/aaaa_record now share code with the addrinfo parser.
  685. * Private ares_addrinfo structure with useful extensions such as ttls (including cname ttls),
  686. as well as the ability to list multiple cnames in chain of lookups
  687. Work By: Andrew Selivanov @ki11roy
  688. - [Andrew Selivanov brought this change]
  689. fix ares__sortaddrinfo, use wrappers for sock_funcs (#258)
  690. Some socket functions weren't exposed for use by other areas of the library. Expose
  691. those and make use of them in ares__sortaddrinfo().
  692. Fix By: Andrew Selivanov (@ki11roy)
  693. - Fix c89 compilation support broken by .onion rejection changes
  694. Move .onion check lower after all variables have been declared.
  695. Bug: #246
  696. - [kedixa brought this change]
  697. getaddrinfo: callback must be called on bad domain (#249)
  698. Due to an order of incrementing the remaining queries and calling ares_query, on a bad domain
  699. the registered callback wouldn't be called.
  700. Bug: #248
  701. Fixed-By: @kedixa
  702. - [Darrin W. Cullop brought this change]
  703. Windows ARM/ARM64 requires AdvApi32 (#252)
  704. Fix link issues caused by missing library that appears to only be required on ARM (though
  705. docs don't list this restriction). Doesn't hurt to require it everywhere.
  706. Bug: #251
  707. Fixed-By: Darrin Cullop (@dwcullop)
  708. - [kedixa brought this change]
  709. getaddrinfo: avoid infinite loop in case of NXDOMAIN(#240) (#242)
  710. There are two possible causes for infinite loops fo NXDOMAIN, based on how many dots are in the domain name (one for < ARES_OPT_NDOTS and one for >= ARES_OPT_NDOTS), where it will repeat the same query over and over as the hquery->next_domain doesn't increment.
  711. Fix By: @kedixa
  712. - Portability fix for ares__sortaddrinfo()
  713. replace uint32_t with unsigned int and socklen_t with ares_socklen_t
  714. By: Brad House
  715. - [Khaidi Chu brought this change]
  716. fix: init bufp before reject .onion to make it can be free correctly (#241)
  717. When querying a .onion domain, it returns directly without setting bufp to NULL. A subsequent free() that occurs can cause a segmentation fault.
  718. Fix By: Khaidi Chu (@XadillaX)
  719. - [Andrew Selivanov brought this change]
  720. Add ares__sortaddrinfo() to support getaddrinfo() sorted results (#239)
  721. This is a port of RFC 6724 compliant sorting function from Android Bionic project:
  722. https://android.googlesource.com/platform/bionic/+/e919b116d35aa7deb24ddece69c491e24c3b0d6f/libc/netbsd/net/getaddrinfo.c
  723. The latest version is essentially the same, except two additional parameters to test connection with (mark/uid):
  724. https://android.googlesource.com/platform/bionic/+/master/libc/dns/net/getaddrinfo.c
  725. Please note that even that version has some restrictions. It doesn't support some rules from RFC 6724:
  726. Rule 3 (Avoid deprecated addresses)
  727. Rule 4 (Prefer home addresses)
  728. Rule 7 (Prefer native transport)
  729. Submitted By: Andrew Selivanov (@ki11roy)
  730. - [Christian Ammer brought this change]
  731. Increase portability of `ares-test-mock-ai.cc` (#235)
  732. * using portable ares_inet_pton and updated includes in ares-test-mock-ai
  733. * forgot to remove deleted ares-test-ai.cc in Makefile.inc
  734. Fix By: Christian Ammer (@ChristianAmmer)
  735. - [Fabrice Fontaine brought this change]
  736. m4/xc-cc-check.m4: use XC_CHECK_BUILD_FLAGS (#236)
  737. Use XC_CHECK_BUILD_FLAGS instead of XC_CHECK_USER_FLAGS.
  738. Otherwise it complains of CPPFLAGS in CFLAGS.
  739. [Retrieved from:
  740. https://git.buildroot.net/buildroot/tree/package/c-ares/0001-use_check_build_instead_of_check_user.patch]
  741. Signed-off-by: Gustavo Zacarias <[email protected]>
  742. Signed-off-by: Fabrice Fontaine <[email protected]>
  743. Submitted by: Fabrice Fontaine
  744. - [Christian Ammer brought this change]
  745. Bugfix for `ares_getaddrinfo` and additional unit tests (#234)
  746. This PullRequest fixes a bug in the function add_to_addrinfo which task is to add new addrinfo items to the ai_next linked list. Also additional unit tests for testing ares_getaddrinfo will be added:
  747. Additional mock server test classes (ares-test-mock-ai.cc):
  748. MockTCPChannelTestAI
  749. MockExtraOptsTestAI
  750. MockNoCheckRespChannelTestAI
  751. MockEDNSChannelTestAI
  752. RotateMultiMockTestAI
  753. NoRotateMultiMockTestAI
  754. Additional live tests (ares-test-live-ai.cc):
  755. LiveGetHostByNameV4
  756. LiveGetHostByNameV6
  757. LiveGetHostByNameV4AndV6
  758. Fix By: Christian Ammer (@ChristianAmmer)
  759. - [Christian Ammer brought this change]
  760. Remaining queries counter fix, additional unit tests for `ares_getaddrinfo` (#233)
  761. Remaining queries counter fix, added tests (ParallelLookups,
  762. SearchDomains, SearchDomainsServFailOnAAAA). Removed unnecessary
  763. if and commented code in test.
  764. Fix By: Christian Ammer (@ChristianAmmer)
  765. - [Christian Ammer brought this change]
  766. Add initial implementation for ares_getaddrinfo (#112)
  767. Initial implementation for ares_getaddrinfo(). It is NOT compliant with RFC6724, though
  768. it is expected to come closer to conformance prior to the next release.
  769. Features not supported include sorted addresses and honoring of service and hints
  770. parameters.
  771. Implementation by: Christian Ammer (@ChristianAmmer)
  772. - [Ben Noordhuis brought this change]
  773. test: fix bad expectation in ipv6 localhost test (#227)
  774. The LiveGetLocalhostByAddrV6 test expected to see "localhost" in the
  775. result when doing an address-to-name lookup for ::1 but on my system
  776. that resolves to "ip6-loopback" because of this stanza in /etc/hosts:
  777. $ grep ^::1 /etc/hosts
  778. ::1 ip6-localhost ip6-loopback
  779. Fix By: Ben Noordhuis (@bnoordhuis)
  780. Bug: #85
  781. - [Ben Noordhuis brought this change]
  782. ares_version.h: bump version (#230)
  783. Version change not committed from maketgz.sh
  784. Bug: #229
  785. Daniel Stenberg (24 Oct 2018)
  786. - ares_library_init_android.3: minor syntax edits, fixed AVAILABILITY
  787. Version 1.15.0 (23 Oct 2018)
  788. Brad House (23 Oct 2018)
  789. - last minute 1.15.0 addition
  790. - [Ben Noordhuis brought this change]
  791. Report ARES_ENOTFOUND for .onion domain names as per RFC7686. (#228)
  792. Quoting RFC 7686:
  793. Name Resolution APIs and Libraries (...) MUST either respond
  794. to requests for .onion names by resolving them according to
  795. [tor-rendezvous] or by responding with NXDOMAIN.
  796. A legacy client may inadvertently attempt to resolve a .onion
  797. name through the DNS. This causes a disclosure that the client
  798. is attempting to use Tor to reach a specific service. Malicious
  799. resolvers could be engineered to capture and record such leaks,
  800. which might have very adverse consequences for the well-being
  801. of the user.
  802. Bug: #196
  803. Fix By: Ben Noordhuis @bnoordhuis
  804. - prepare for c-ares 1.15.0 release
  805. - AIX Build Fix
  806. AIX attempts to include both nameser_compat.h and onameser_compat.h. It appears
  807. the proper fix is to define _USE_IRS so that only nameser_compat.h is used.
  808. Bug: #224
  809. Fix By: Brad House (@bradh352)
  810. - Fix crash in ares_dup() due to new ARES_OPT_RESOLVCONF
  811. ares_dup() calls ares_init_options() by making its own fake option
  812. mask since the original mask isn't stored but ARES_OPT_RESOLVCONF
  813. was always set, instead of conditionally set. This caused a crash
  814. because ares_strdup() isn't NULL-safe if no custom path was set.
  815. Made ares_dup() set ARES_OPT_RESOLVCONF conditionally.
  816. Fix By: Brad House (@bradh352)
  817. - [Sarat Addepalli brought this change]
  818. Add ares_init_options() configurability for path to resolv.conf file
  819. Add resolvconf_path to end of struct ares_options with ARES_OPT_RESOLVCONF option
  820. so on Unix-like systems a custom path can be specified. If no path is specified,
  821. /etc/resolv.conf is used like normal.
  822. Fix By: Sarat Addepalli @SirR4T
  823. Fixes Bug: #220
  824. Review By: Brad House @bradh352
  825. - remove stale variables
  826. - fix prototype name for ares_strsplit_free()
  827. - add missing prototype
  828. - simplify ares_strsplit() and create ares_strsplit_free() helper function
  829. - missing ares_strsplit.h from HHEADERS for inclusion in distribution
  830. - [Ruslan Baratov brought this change]
  831. Add CARES_BUILD_TOOLS CMake option (#214)
  832. Add ability to exclude building of tools (adig, ahost, acountry) in CMake. This should also close #200.
  833. Fix By: Ruslan Baratov (@ruslo)
  834. Bug: #200
  835. - [flyingdutchman23 brought this change]
  836. Style. Whitespace cleanup. (#213)
  837. Small whitespace cleanups.
  838. Fix By: @flyingdutchman23
  839. - [John Schember brought this change]
  840. Android: Support for domain search suffix (#211)
  841. Fixes issue #207. Uses LinkProperties.getDomains() to get a list of search domains and adds them to the suffix list. This also adds a new helper function to split strings into an array based on multiple delimiters replacing multiple other functions for dealing with string splitting.
  842. Submitter: John Schember (@user-none)
  843. Fixes: #207
  844. Approved-by: Brad House (@bradh352)
  845. - [afalin brought this change]
  846. Improve DNS suffixes extracting from WinNT registry (#202)
  847. Join all global and connection specific suffix lists. Use 'HKLM\Software\Policies\Microsoft\Windows NT\DNSClient\SearchList', 'HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\Domain' as global suffix lists.
  848. Fix By: @afalin
  849. - Be consistent with indention in CMakeLists.txt
  850. The imported TRANSFORM_MAKEFILE_INC function from curl used space indention
  851. but the rest of the file used tabs. Go ahead and make it tabs for
  852. consistency as well.
  853. Committed By: Brad House
  854. - [flyingdutchman23 brought this change]
  855. Fix modern gcc warning: argument to 'sizeof' in 'strncpy' call is the same expression as the source
  856. Silence warning about using src to determine number of bytes to copy.
  857. In this case it doesn't matter whether it is `src` or `dest`. So there
  858. is no functionality change.
  859. Bug: #210
  860. Fix By: @flyingdutchman23
  861. - [Andi Schnebinger brought this change]
  862. fix stringop-overflow warning of GCC (#201)
  863. When using a modern GCC to compile c-ares, there is a stringop-overflow warning.
  864. This patch simply silences the false-positive warning, there is no actual code flaw.
  865. Bug: https://github.com/c-ares/c-ares/pull/201
  866. Fixed By: Andi Schnebinger @Iniesta8
  867. GitHub (18 May 2018)
  868. - [David Drysdale brought this change]
  869. travis: do coverage in "coverage" build (#195)
  870. Fixes #194, a mistake from commit a255081f2c3c ("travis: Only do
  871. coverage/distcheck on normal build")
  872. Brad House (17 May 2018)
  873. - [Brad Spencer brought this change]
  874. Apply the IPv6 server blacklist to all nameserver sources, not just Windows (#193)
  875. For #164, I mentioned that it seemed like the IPv6 nameserver blacklist should apply to all OSes. In a mailing list post, @bradh352 agreed and suggested that I file a PR to make it so.
  876. This moves the blacklist check from being Windows-specific to being a general feature of config_nameservers(), no matter the nameserver source. It also simplifies the ares_ipv6_server_blacklisted() implementation to not parse and re-parse the blacklisted IPv6 addresses from strings on every check. I think they're almost as easy to read as a sequence of hex bytes in an array initializer, and it's definitely less work on each trip through the code.
  877. Fix By: Brad Spencer @b-spencer
  878. PR: https://github.com/c-ares/c-ares/pull/193
  879. - [Brad Spencer brought this change]
  880. Fix warnings emitted by MSVC when using -W4 (#192)
  881. These changes fix a few warnings emitted by recent versions of MSVC when compiling with -W4. Half of the changes are in Windows-specific code, and the other half should be safe no matter the compiler or OS.
  882. The allocation function change is probably the only one that needs explanation. MSVC gives warnings about the function pointers not being stable across DLL boundaries or something to that effect, so for Windows, I've made them be called indirectly, which at least made the compiler happy. I can't say I've tested every linking combination on Windows with them before or after the change, but it seems harmless.
  883. Fix By: Brad Spencer @b-spencer
  884. PR: https://github.com/c-ares/c-ares/pull/192
  885. - [David Hotham brought this change]
  886. Prevent changing name servers while queries are outstanding (#191)
  887. Changing name servers doesn't work, per #41. Better to return an error code than to crash.
  888. Fix-by: David Hotham @dimbleby
  889. David Drysdale (15 May 2018)
  890. - [Tobias Nießen brought this change]
  891. Fix comment in ares_rules.h (#189)
  892. Brad House (6 May 2018)
  893. - [Brad Spencer brought this change]
  894. Harden and rationalize c-ares timeout computation (#187)
  895. * Harden and rationalize c-ares timeout computation
  896. * Remove the rand() part of the timeout calculation completely.
  897. When c-ares sends a DNS query, it computes the timeout for that request as follows:
  898. timeplus = channel->timeout << (query->try_count / channel->nservers);
  899. timeplus = (timeplus * (9 + (rand () & 7))) / 16;
  900. I see two issues with this code. Firstly, when either try_count or channel->timeout are large enough, this can end up as an illegal shift.
  901. Secondly, the algorithm for adding the random timeout (added in 2009) is surprising. The original commit that introduced this algorithm says it was done to avoid a "packet storm". But, the algorithm appears to only reduce the timeout by an amount proportional to the scaled timeout's magnitude. It isn't clear to me that, for example, cutting a 30 second timeout almost in half to roughly 17 seconds is appropriate. Even with the default timeout of 5000 ms, this algorithm computes values between 2812 ms and 5000 ms, which is enough to cause a slightly latent DNS response to get spuriously dropped.
  902. If preventing the timers from all expiring at the same time really is desirable, then it seems better to extend the timeout by a small factor so that the application gets at least the timeout it asked for, and maybe a little more. In my experience, this is common practice for timeouts: applications expect that a timeout will happen at or after the designated time (but not before), allowing for delay in detecting and reporting the timeout. Furthermore, it seems like the timeout shouldn't be extended by very much (we don't want a 30 second timeout changing into a 45 second timeout, either).
  903. Consider also the documentation of channel->timeout in ares_init_options():
  904. The number of milliseconds each name server is given to respond to a query on the first try. (After the first try, the timeout algorithm becomes more complicated, but scales linearly with the value of timeout.) The default is five seconds.
  905. In the current implementation, even the first try does not use the value that the user supplies; it will use anywhere between 56% and 100% of that value.
  906. The attached patch attempts to address all of these concerns without trying to make the algorithm much more sophisticated. After performing a safe shift, this patch simply adds a small random timeout to the computed value of between 0 ms and 511 ms. I could see limiting the random amount to be no greater than a proportion of the configured magnitude, but I can't see scaling the random with the overall computed timeout. As far as I understand, the goal is just to schedule retries "not at the same exact time", so a small difference seems sufficient.
  907. UPDATE: randomization removed.
  908. Closes PR #187
  909. Fix by: Brad Spencer
  910. - distribute ares_android.h
  911. Distribute ares_android.h when a release distribution package is
  912. created.
  913. Reported By: Andrey Khranovsky
  914. Bug: https://c-ares.haxx.se/mail/c-ares-archive-2018-04/0000.shtml
  915. - ares_set_servers_csv() on failure should not leave channel in a bad state
  916. If bad data is passed to ares_set_servers_csv() or
  917. ares_set_servers_ports_csv() it will clear the existing channel
  918. configured DNS servers, then a call to ares_send() will fail due
  919. to a bad malloc which may have undefined behavior.
  920. The fix now only clears existing servers on success. An additional
  921. sanity check was added in ares_send() to ensure nservers >= 1 or
  922. will result in ARES_ESERVFAIL.
  923. Bug: https://c-ares.haxx.se/mail/c-ares-archive-2018-03/0000.shtml
  924. Reported-by: Francisco Sedano Crippa
  925. - docs: Not all manpages are listed
  926. Some docs aren't installed or not showing up on
  927. https://c-ares.haxx.se/docs.html
  928. due to not being listed in Makefile.inc. Add missing docs and
  929. ensure docs are alphabetized.
  930. Version 1.14.0 (16 Feb 2018)
  931. Daniel Stenberg (16 Feb 2018)
  932. - ares_android.c: fix warning: ISO C forbids an empty translation unit
  933. - RELEASE-NOTES: some more work we did and people who helped
  934. Brad House (16 Feb 2018)
  935. - travis: skip Autotools style testing for cmake
  936. Fix cmake test build by skipping autotools portion of test script.
  937. - travis: standardize CMake test off of Autotools tests
  938. Instead of running 'make test', run the tests directly like autotools
  939. does. It provides more verbose output.
  940. - travis: Enable building tests for CMake
  941. Travis should auto-build and run tests for cmake builds now that
  942. PR #168 is merged.
  943. - fix version in pkgconfig
  944. - Add version update to CMakeLists in maketgz
  945. - Release prep. Add support for pkgconfig in cmake, set versions appropriately
  946. Gregor Jasny (15 Feb 2018)
  947. - CMake: Add tests
  948. Brad House (14 Feb 2018)
  949. - [Gregor Jasny brought this change]
  950. Use cmake3 package provided by Ubuntu (#182)
  951. - Cmake 3.1 instead of 3.2.1 should be the minimum
  952. - Update RELEASE-NOTES and RELEASE-PROCEDURE.md to prepare for next release
  953. - get rid of c++ style comments
  954. - Use trusty for all builds, precise is EOL. Update clang and cmake versions.
  955. - Current CMakeLists.txt doesn't support 2.8.12 anymore, we need to bump the version to 3.2.1 minimum
  956. - Re-organize sections in INSTALL.md and add CMake section
  957. - [Sergey Kolomenkin brought this change]
  958. remove compilation warnings in MSVC (#47)
  959. - document handling of timeouts for ares_process and ares_process_fd to close PR #57
  960. - As per Issue #155, since we do not require gethostname() during init, if it fails, there's no reason for init to fail as it is only used to populate the domain
  961. GitHub (7 Feb 2018)
  962. - [David Drysdale brought this change]
  963. Document WSAStartup requirement (#180)
  964. David Drysdale (6 Feb 2018)
  965. - [Antonio Tajuelo brought this change]
  966. Added coderelease.io badge to readme.md for letting people subscribe to new versions (#174)
  967. - [Sheel Bedi brought this change]
  968. Update year in LICENSE.md to 2018 (#170)
  969. GitHub (4 Feb 2018)
  970. - [David Drysdale brought this change]
  971. travis: use VM not container for {L,A}SAN builds (#177)
  972. As per https://github.com/travis-ci/travis-ci/issues/9033, container
  973. based builds do not currently allow ptrace, which is used by LSAN and
  974. ASAN.
  975. Brad House (3 Feb 2018)
  976. - [acthompson-google-com brought this change]
  977. Android JNI code leaks local references in some cases (#175)
  978. * Add Google LLC to AUTHORS.
  979. * android: Explicitly delete all JNI local references, and cache JNI method IDs at initialization.
  980. * android: Only return ARES_ENOTINITIALIZED on failures in initialization code.
  981. Gregor Jasny (2 Jan 2018)
  982. - Embed fused Google Test 1.8.0
  983. Brad House (21 Dec 2017)
  984. - [John Schember brought this change]
  985. android: Check returns for obj and classes are not NULL. Document API levels for various Android functions and objects used. (#166)
  986. - CARES_CHECK_TYPE should reference variable so a warning is not produced for -Werror compatibility
  987. - [Brad Spencer brought this change]
  988. Fix computation of IPv6 blacklist mask for values of netmask > 8. (#164)
  989. David Drysdale (14 Dec 2017)
  990. - travis: Only do coverage/distcheck on normal build
  991. - travis: only do pip install on Linux
  992. - travis: only test in IPv4 mode
  993. Travis' Trusty environment does not support IPv6.
  994. - test: allow restriction to one IP address family
  995. - [Roman Teterin brought this change]
  996. Fix a typo in init_by_resolv_conf (#160)
  997. Brad House (11 Dec 2017)
  998. - @gvanem says MSVC -RTCc option fails, looks erroneous to me, but the additional mask is harmless
  999. - Fix some other mingw warnings
  1000. - Issue #143, get rid of windows build warning due to passing 'char **' to argument expecting 'const char **'
  1001. - [Gregor Jasny brought this change]
  1002. Distribute CMake files (#130)
  1003. - Android variants may not have __system_property_get
  1004. Some android systems like ARM64 may not have the __system_property_get
  1005. symbol in libc (but still have it in the public headers). Detect this
  1006. condition at build time. The __system_property_get method of retrieving
  1007. name servers is deprecated as of Oreo so should strictly be a fallback
  1008. mechanism anyhow.
  1009. David Drysdale (9 Nov 2017)
  1010. - [David Hotham brought this change]
  1011. Wrong function name throughout man page (#154)
  1012. - ares_data.c: iterate through substructs when freeing
  1013. Previous code recursed into substructures, which makes it more likely
  1014. that large/heavily-nested responses could use up lots of stack.
  1015. - test: test ares_free_data on long chain of structs
  1016. - [Felix Yan brought this change]
  1017. Fix a typo in inet_ntop.c (#151)
  1018. Daniel Stenberg (29 Sep 2017)
  1019. - ares_gethostbyname.3: fix callback status values
  1020. - ARES_ENOTFOUND means the _name_ wasn't found
  1021. - ARES_ENODATA can be returned when a resolve fails
  1022. Reported-by: Jakub Hrozek
  1023. Bug: https://c-ares.haxx.se/mail/c-ares-archive-2011-06/0012.shtml
  1024. Brad House (28 Sep 2017)
  1025. - [John Schember brought this change]
  1026. Fix DNS server lookup breaking with Android O due to Android removing access to net.dns# system properties. (#148)
  1027. As of Android 8 (Oreo) access to net.dns# has been removed (https://developer.android.com/about/versions/oreo/android-8.0-changes.html). The reasoning given is that it, "improves privacy on the platform". Currently c-ares uses this to get the list of DNS servers.
  1028. Now the only way to access the DNS server list is by using the Connectivity Manager though Java. This adds the necessary JNI code to use the Connectivity Manager and pull the DNS server list. The old way using __system_property_get with net.dns# remains for compatibilty.
  1029. Using the Connectivity Manager requires the ACCESS_NETWORK_STATE permission to be set on the app. Existing applications most likely are not setting this and keeping the previous method as a fallback will at the very least ensure those apps don't break on older versions of Android. They will need to add this permission for Android 8 compatibility.
  1030. Included in the patch are two initalization functions which are required. The JVM must be registered as well as the Connectivity Manager itself. There is no way to get the Connectivity Manager except though Java. Either being passed down to C directly or by passing in an Android Context which can be used to get the Connectivity Manager. Examples are provided in the documentation.
  1031. - [Konstantinos Sofokleous brought this change]
  1032. allow linking against the static msvc runtime library (#133)
  1033. allow linking against the static msvc runtime library
  1034. - [Gergely Nagy brought this change]
  1035. Force using the ANSI versions of WinAPI functions (#142)
  1036. When compiling c-ares with a build system that defines UNICODE,
  1037. bad versions of WinAPI functions are used causing failures or even
  1038. crashes. When windows.h is included in MBCS mode (like in the default
  1039. build system), the ..A versions are the same as using the one without
  1040. any suffix.
  1041. - [cmake] build fix on Solaris
  1042. GitHub (11 Sep 2017)
  1043. - [Brad House brought this change]
  1044. Win32 exclude legacy ipv6 subnets (#144)
  1045. win32 ipv6: add infrastructure to exclude ipv6 subnets that are known to cause issues
  1046. - [David Drysdale brought this change]
  1047. windows: only look for ancient compilers (#146)
  1048. Also drop the use of a versioned output directory; just use
  1049. .\msvc
  1050. - [David Drysdale brought this change]
  1051. ares_init_options.3: match up sock_state_cb args (#141)
  1052. Fixes #140
  1053. Daniel Stenberg (25 Aug 2017)
  1054. - [Anna Henningsen brought this change]
  1055. gethostbyaddr: fail with `ECANCELLED` for `ares_cancel()`
  1056. When `ares_cancel()` was invoked, `ares_gethostbyaddr()`
  1057. queries would fail with `ENOTFOUND` instead of `ECANCELLED`.
  1058. It seems appropriate to treat `ares_cancel()` like `ares_destroy()`,
  1059. but I would appreciate review of the correctness of this change.
  1060. Ref: https://github.com/nodejs/node/issues/14814
  1061. Closes #138
  1062. David Drysdale (18 Aug 2017)
  1063. - [David Hotham brought this change]
  1064. support most recent Visual Studio 2017
  1065. Brad House (26 Jul 2017)
  1066. - Preserve original DNS server order on Windows for equal metrics.
  1067. qsort is not stable, in order to make it stable we need to record
  1068. the original index and add it as a secondary sort value when the
  1069. metrics are equal to prevent using DNS servers that may not work
  1070. at all as reported by some users.
  1071. David Drysdale (15 Jul 2017)
  1072. - [Anna Henningsen brought this change]
  1073. ares_parse_naptr_reply: make buffer length check more accurate
  1074. 9478908a490a6bf009ba58d81de8c1d06d50a117 introduced a length check
  1075. for records parsed by `ares_parse_naptr_reply()`. However, that
  1076. function is designed to parse replies which also contain non-NAPTR
  1077. records; for A records, the `rr_len > 7` check will fail as there
  1078. are only 4 bytes of payload.
  1079. In particular, parsing ANY replies for NAPTR records was broken
  1080. by that patch.
  1081. Fix that by moving the check into the case in which it is already
  1082. known that the record is a NAPTR record.
  1083. - appveyor: run dnsdump as a sanity check
  1084. - travis: run dnsdump as a sanity check
  1085. - test: use ares_free_string() throughout
  1086. As pointed out by Gisle Vanem in #125.
  1087. Daniel Stenberg (3 Jul 2017)
  1088. - RELEASE-PROCEDURE.md: how to release
  1089. Fixes #115
  1090. Closes #116
  1091. David Drysdale (2 Jul 2017)
  1092. - test: Build dnsdump on Windows too
  1093. Thanks to Gisle Vanem for showing the way:
  1094. https://github.com/c-ares/c-ares/commit/b701af8a24cf9d173b1dbe5faedcea34642e92da#commitcomment-22830845
  1095. Brad House (26 Jun 2017)
  1096. - [Christian Ammer brought this change]
  1097. fix statement like #define - ares ssize_t define had a trailing semicolon (#120)
  1098. David Drysdale (21 Jun 2017)
  1099. - test: distribute the fuzzcheck.sh script
  1100. The TESTS target runs fuzzcheck.sh so make sure it is included
  1101. in the distributed tarball.
  1102. (The test itself will be pointless when run on a distribution, because
  1103. the fuzzing corpus directories are not shipped, but at least this
  1104. means that `make -C test test` should work.)
  1105. - test: run the name-parsing corpus check too
  1106. Daniel Stenberg (21 Jun 2017)
  1107. - dist: don't build/ship PDF versions in release archives
  1108. ... experience says very few read them and they can still get build by
  1109. those who want them.a
  1110. - ares_version.h: bump version
  1111. Version 1.13.0 (20 Jun 2017)
  1112. Daniel Stenberg (20 Jun 2017)
  1113. - RELEASE-NOTES: 1.13.0
  1114. - ares_set_socket_functions.3: added in 1.13.0
  1115. David Drysdale (18 Jun 2017)
  1116. - ares_parse_naptr_reply: check sufficient data
  1117. Check that there is enough data for the required elements
  1118. of an NAPTR record (2 int16, 3 bytes for string lengths)
  1119. before processing a record.
  1120. - test: Feed in short NAPTR
  1121. - test: Add fuzz input with short NAPTR
  1122. - test: add ares_parse_naptr_reply to fuzzer
  1123. - [noiz brought this change]
  1124. Update ares.h to support compiling with QNX
  1125. - [Dionna Glaze brought this change]
  1126. Simple changes to appease stricter compilers.
  1127. ares_process.c uses htonl, which needs <arpa/inet.h> included.
  1128. ares_getnameinfo.c uses a dynamically selected format string for
  1129. sprintf, which -Wformat-literal doesn't like. Usually one would use
  1130. inttypes.h and a format string "%" PRIu32, but C99 is too new for some
  1131. supported platforms.
  1132. GitHub (16 Jun 2017)
  1133. - [Gregor Jasny brought this change]
  1134. CMake: Emulate interface library on import (#108)
  1135. Closes: #104
  1136. Signed-off-by: Gregor Jasny <[email protected]>
  1137. Brad House (6 Jun 2017)
  1138. - [ChristianAmmer brought this change]
  1139. Added support for Windows DNS Suffix Search List (#93)
  1140. This change solves issue #53.
  1141. Support for suffix search lists was already built in for Linux. The search list could be set via set_search. With this change the suffix search list from Windows is read from the registry and then set into the ares configuration via set_search. There are two sources for the search list:
  1142. The global DNS suffix search list.
  1143. The primary and connection specific DNS suffixes if the global is not available.
  1144. Contributed by @ChristianAmmer
  1145. Daniel Stenberg (25 May 2017)
  1146. - [Thomas Köckerbauer brought this change]
  1147. configure: do not heck for ar if specified manually
  1148. Closes #62
  1149. David Drysdale (23 May 2017)
  1150. - ares_expand_name: limit number of indirections
  1151. - test: fuzz input file that takes a while to process
  1152. - test: copy data in fuzz regression driver
  1153. Oops.
  1154. GitHub (23 May 2017)
  1155. - [David Drysdale brought this change]
  1156. Convert char from ISO-8859-1 to UTF-8 (#99)
  1157. Fixes #97
  1158. - [Gregor Jasny brought this change]
  1159. travis: Use trusty for cmake builds (#109)
  1160. kubuntu-backports dropped the CMake package for Precise
  1161. David Drysdale (2 May 2017)
  1162. - [David Hotham brought this change]
  1163. msvc_ver.inc support most recent Visual Studio 2017 (#101)
  1164. - test: use io.h not unistd.h for Windows
  1165. - test: try building fuzz binaries on Windows
  1166. - test: stick to int in ares-fuzz.c
  1167. Using int rather than ares_ssize_t means this file
  1168. needs no c-ares dependency - it's a general driver for
  1169. any libFuzzer-style entrypoint.
  1170. - test: force ARES_OPT_NOROTATE for no-rotate tests
  1171. - test: check expected NOROTATE value
  1172. - ares_create_query: use ares_free not naked free
  1173. Accidentally added in commit 65c71be1cbe5
  1174. ("ares_create_query: avoid single-byte buffer overwrite")
  1175. Brad House (17 Mar 2017)
  1176. - Need ares.h for ares_ssize_t
  1177. - tests should not use ssize_t, use ares_ssize_t
  1178. GitHub (16 Mar 2017)
  1179. - [Brad House brought this change]
  1180. Portability updates for legacy systems. (#92)
  1181. Socklen_t should not be used in code, instead ares_socklen_t should be used.
  1182. Convert ssize_t to ares_ssize_t for portability since the public API now exposes this.
  1183. David Drysdale (14 Mar 2017)
  1184. - [Michael Osei brought this change]
  1185. Update msvc_ver.inc (#91)
  1186. For Visual Studio 2017 builds
  1187. Daniel Stenberg (13 Mar 2017)
  1188. - [Brad House brought this change]
  1189. Windows DNS server sorting (#81)
  1190. Original Patch From Brad Spencer:
  1191. https://c-ares.haxx.se/mail/c-ares-archive-2016-04/0000.shtml
  1192. My modifications include:
  1193. * Dynamically find GetBestRoute2 since it is a Windows Vista+ symbol, and will fall back to prior behavior when not available.
  1194. * Prefer get_DNS_AdaptersAddresses as the modifications should alleviate the concerns which caused us to prefer get_DNS_NetworkParams
  1195. * Update AppVeyor to use MinGW-w64 instead of the legacy MinGW
  1196. * Fix compile error in test suite for Windows.
  1197. Original message from patch below:
  1198. From: Brad Spencer <[email protected]>
  1199. Date: Fri, 29 Apr 2016 14:26:23 -0300
  1200. On Windows, the c-ares DNS resolver tries first to get a full list of
  1201. DNS server addresses by enumerating the system's IPv4/v6 interfaces and
  1202. then getting the per-interface DNS server lists from those interfaces
  1203. and joining them together. The OS, at least in the way the c-ares
  1204. prefers to query them (which also may be the only or best way in some
  1205. environments), does not provide a unified list of DNS servers ordered
  1206. according to "current network conditions". Currently, c-ares will then
  1207. try to use them in whatever order the nested enumeration produces, which
  1208. may result in DNS requests being sent to servers on one interface
  1209. (hosting the current default route, for example) that are only intended
  1210. to be used via another interface (intended to be used when the first
  1211. interface is not available, for example). This, in turn, can lead to
  1212. spurious failures and timeouts simply because of the server address
  1213. order that resulted because of the enumeration process.
  1214. This patch makes the (safe?) assumption that there is no other better
  1215. rule to chose which interface's DNS server list should be prioritized.
  1216. After all, a DNS lookup isn't something "per network"; applications
  1217. don't look up "these DNS names on this interface and those DNS names on
  1218. that interface". There is a single resource pool of DNS servers and the
  1219. application should presume that any server will give it the "right"
  1220. answer. However, even if all DNS servers are assumed to give equally
  1221. useful responses, it is reasonable to expect that some DNS servers will
  1222. not accept requests on all interfaces. This patch avoids the problem by
  1223. sorting the DNS server addresses using the Windows IPv4/v6 routing tables.
  1224. For example, a request to DNS server C on interface 2 that is actually
  1225. sent over interface 1 (which may happen to have the default route) may
  1226. be rejected by or not delivered to DNS server C. So, better to use DNS
  1227. servers A and B associated with interface 1, at least as a first try.
  1228. By using the metric of the route to the DNS server itself as a proxy for
  1229. priority of the DNS server in the list, this patch is able to adapt
  1230. dynamically to changes in the interface list, the DNS server lists per
  1231. interface, which interfaces are active, the routing table, and so on,
  1232. while always picking a good "best" DNS server first.
  1233. In cases where any DNS server on any interface will do, this patch still
  1234. seems useful because it will prioritize a lower-metric route's (and thus
  1235. interface's) servers.
  1236. David Drysdale (22 Feb 2017)
  1237. - [Sergii Pylypenko brought this change]
  1238. docs: fixed references to ares_set_local_ip4 and ares_set_local_ip6
  1239. - [Calle Wilund brought this change]
  1240. ares test: fix win32 build errors with virtual socket function tests
  1241. The added api requires both some typedefs not previously imported
  1242. into the test build + the test code did not fully deal with
  1243. socket differences on windows.
  1244. - [Calle Wilund brought this change]
  1245. ares_process: fix return type of socket_create function (win32 warning)
  1246. Daniel Stenberg (31 Jan 2017)
  1247. - [Calle Wilund brought this change]
  1248. ares_set_socket_functions: Add man page
  1249. Providing some rudimentary documentation for the added functionality
  1250. Closes #72
  1251. - [Calle Wilund brought this change]
  1252. ares-test: Add test helpers and cases for virtual socket IO
  1253. * Added test case macro to automatically run tests twice, once "normal",
  1254. once with virtual IO.
  1255. * Changed most "live" query tests to run in dual mode to verify
  1256. at least simple socket IO via virtual functions
  1257. * Added test case for settings/duping socket functions & callback data
  1258. - [elcallio brought this change]
  1259. Implement using virtual socket IO functions when set
  1260. Uses virtual socket IO functions when set on a channel.
  1261. Note that no socket options are set, nor is any binding
  1262. done by the library in this case, since the client defining
  1263. these is probably more suited to deal with this.
  1264. - [elcallio brought this change]
  1265. Add virtual function set for socket IO
  1266. Defines a structure of basic create, close, read/write
  1267. functions as virtual function calls, settable for individual
  1268. c-ares channels.
  1269. David Drysdale (30 Jan 2017)
  1270. - test: ignore aresfuzzname binary
  1271. Gregor Jasny (14 Jan 2017)
  1272. - [Stephen Sorley brought this change]
  1273. Always use check_symbol_exists instead of check_function_exists.
  1274. - Also add includes to TARGETS_INST_DEST
  1275. - [Stephen Sorley brought this change]
  1276. Windows build fixes
  1277. - CMake: Export targets
  1278. - CMake: Use GNUInstallDirs for install location defaults
  1279. David Drysdale (11 Jan 2017)
  1280. - Update Makefile.am for renamed INSTALL.md
  1281. GitHub (11 Jan 2017)
  1282. - [David Drysdale brought this change]
  1283. docs: convert INSTALL to MarkDown & tweak (#83)
  1284. - [Gregor Jasny brought this change]
  1285. Merge pull request #77 from stephen-sorley/cmake_modernize
  1286. Updated CMake minimum version to 2.8.12.
  1287. Stephen Sorley (4 Jan 2017)
  1288. - Changed executables to depend directly on internal libcares target, instead of against
  1289. the external-facing alias targets.
  1290. - Updated Travis to pull CMake 2.8.12 from kubuntu-backports ppa.
  1291. - Updated CMake minimum version to 2.8.12.
  1292. Changed the way usage requirements (include dirs, compile defs, dependent libraries) are specified, to match the recommended standard practice for modern CMake. This involves using target-specific functions (target_include_directories, target_compile_definitions, etc.), along with the PUBLIC, PRIVATE or INTERFACE modifiers.
  1293. Updated chain-building support to imitate new-style Find modules (import libs), instead of old-style Find modules (cache variables).
  1294. David Drysdale (26 Dec 2016)
  1295. - [Chris Araman brought this change]
  1296. configure: clock_gettime workaround (#75)
  1297. Commits 7518c26, c41726b, and bc14ee7 brought this workaround to the CMake build system. This expands it to the autoconf build system.
  1298. Fixes #71
  1299. - test: add fuzz entrypoint for ares_create_query()
  1300. - test: Add gTest/gMock files to SOURCES
  1301. Built tarballs are not including all of the files needed
  1302. to build the test suite because they are missing from the
  1303. <target>_SOURCES variable in Makefile.am.
  1304. - travis: Move build scripts under travis/
  1305. Travis doesn't always propagate errors in inline multi-line
  1306. scripts, so move them all to be explicit shell scripts, each
  1307. with set -e.
  1308. - travis: check distributed tarball builds
  1309. Daniel Stenberg (25 Oct 2016)
  1310. - dist: ship msvc_ver.inc too
  1311. Reported-by: Bruce Stephens
  1312. Fixes #69
  1313. - [Aaron Bieber brought this change]
  1314. fix build on OpenBSD
  1315. - ares_version.h: bump, working on 1.12.1 now
  1316. GitHub (18 Oct 2016)
  1317. - [Gregor Jasny brought this change]
  1318. Merge pull request #64 from bradh352/master
  1319. Add CMake build system support to C-Ares.
  1320. Brad House (5 Oct 2016)
  1321. - suggested PROJECT_NAME change broke chain building as it needs the magic PROJECT_NAME set in the ADD_LIBRARY for matching. Fix to make both goals work
  1322. - update MacOSX 10.12 detection
  1323. - Expand XCode clock_gettime fix to include MacOS 10.12, not just iOS10
  1324. David Drysdale (4 Oct 2016)
  1325. - Revert "travis: work around bug in PyCParser"
  1326. This reverts commit a24a10a348fc00b8cfd684d91894a1df14880ea9.
  1327. - travis: work around bug in PyCParser
  1328. See https://github.com/pyca/cryptography/issues/3187
  1329. Brad House (3 Oct 2016)
  1330. - PROJECT_SOURCE_DIR instead of CMAKE_CURRENT_SOURCE_DIR as per @gjasny
  1331. - use a project name of c-ares as per @gjasny
  1332. - Import curl conversion of Makefile.inc to cmake form dynamically as per [email protected] to make maintaining multiple build systems easier
  1333. Daniel Stenberg (30 Sep 2016)
  1334. - dist: add ares_library_initialized.* to the tarball
  1335. David Drysdale (30 Sep 2016)
  1336. - test: check ares_create_query with too-long name
  1337. Daniel Stenberg (30 Sep 2016)
  1338. - man pages: minor formatting edits
  1339. Brad House (29 Sep 2016)
  1340. - merge fc7917e from @daviddrysdale ... travis build updates for cmake
  1341. - cleanups as per @gjasny ... Use naked IF statements and use NOT DEFINED
  1342. Version 1.12.0 (29 Sep 2016)
  1343. Daniel Stenberg (29 Sep 2016)
  1344. - RELEASE-NOTES: 1.12.0
  1345. - [David Drysdale brought this change]
  1346. ares-test-misc: test ares_create_query with escaped trailing dot
  1347. - ares_create_query: avoid single-byte buffer overwrite
  1348. ... when the name ends with an escaped dot.
  1349. CVE-2016-5180
  1350. Bug: https://c-ares.haxx.se/adv_20160929.html
  1351. Brad House (29 Sep 2016)
  1352. - CMake: Unify library versioning with the libtool methodology to make keeping library versions in sync easier with the autotools build system
  1353. Daniel Stenberg (29 Sep 2016)
  1354. - ares_library_initialized.3: added
  1355. - make: bump CARES_VERSION_INFO for release
  1356. David Drysdale (29 Sep 2016)
  1357. - man: update ares_init_options.3
  1358. Daniel Stenberg (29 Sep 2016)
  1359. - ares_library_init.3: corrected the ares_library_init_mem proto
  1360. Brad House (28 Sep 2016)
  1361. - XCode v8 introduced clock_gettime() for iOS v10. However, it is a weak symbol, which means when earlier iOS versions try to use clock_gettime() it results in a crash due to the missing symbol. Detect this condition and do not set HAVE_CLOCK_GETTIME_MONOTONIC.
  1362. - Adds cmake build system support to C-Ares.
  1363. The patch does not modify any source files, it only adds 3 new files
  1364. (CMakelists.txt, ares_build.h.cmake, ares_config.h.cmake) which form the
  1365. build system. I've tried to go through as much of the autotools tests and
  1366. extracted what I thought was appropriate, though many of the tests aren't
  1367. as in-depth in CMake as they are for autotools ... it is unclear why some
  1368. of them exist at all, I'm guessing for legacy systems that CMake probably
  1369. doesn't support anyhow.
  1370. Building the library, and examples (adig, ahost, acountry) plus installation
  1371. should work across a large number of tested platforms. The tests have not
  1372. yet been integrated.
  1373. Daniel Stenberg (27 Sep 2016)
  1374. - README.md: remove space from link
  1375. - README: link to the correct c-ares badge!
  1376. Reported-by: David Hotham
  1377. Fixes #63
  1378. - docs: minor formatting edits
  1379. - ares_destroy.3: formatting polish
  1380. - ares_init.3: split the init docs into two separate man pages
  1381. - SECURITY: point to the vulnerabilities page now
  1382. - RELEASE-NOTES: synced with daa7235b1a5
  1383. - ares_create_query.3: edit language
  1384. Tried to make the man page more readable.
  1385. David Drysdale (26 Sep 2016)
  1386. - test: fix gMock to work with gcc >= 6.x
  1387. Taken from:
  1388. https://github.com/google/googletest/issues/705#issuecomment-235067917
  1389. Daniel Stenberg (26 Sep 2016)
  1390. - [Brad House brought this change]
  1391. headers: remove checks for and defines of variable sizes
  1392. ... they're not really used and by avoiding them in the ares_build.h
  1393. output we make the public header less dependent on data sizes.
  1394. David Drysdale (24 Sep 2016)
  1395. - api: add ARES_OPT_NOROTATE optmask value
  1396. Fix up a couple of problems with configuring whether c-ares rotates
  1397. between different name servers between requests.
  1398. Firstly, ares_save_options() returns (in *optmask) the value of
  1399. (channel->optmask & ARES_OPT_ROTATE), which doesn't necessarily
  1400. indicate whether the channel is or is not actually doing rotation.
  1401. This can be confusing/incorrect if:
  1402. - the channel was originally configured without ARES_OPT_ROTATE
  1403. (so it appears that the channel is not rotating)
  1404. - the /etc/resolv.conf file includes the 'rotate' option
  1405. (so the channel is actually performing rotation).
  1406. Secondly, it is not possible to reliably configure a channel
  1407. to not-rotate; leaving off ARES_OPT_ROTATE is not enough, since
  1408. a 'rotate' option in /etc/resolv.conf will turn it on again.
  1409. Therefore:
  1410. - add an ARES_OPT_NOROTATE optmask value to allow explicit
  1411. configuration of no-rotate behaviour
  1412. - in ares_save_options(), report the value of channel->rotate
  1413. as exactly one of (optmask & ARES_OPT_ROTATE) or
  1414. (optmask & ARES_OPT_NOROTATE).
  1415. In terms of back-compatibility:
  1416. - existing apps that set ARES_OPT_ROTATE will continue to rotate,
  1417. and to have ARES_OPT_ROTATE reported back from ares_save_options()
  1418. - existing apps that don't set ARES_OPT_ROTATE will continue to
  1419. use local config/defaults to decide whether to rotate, and will
  1420. now get ARES_OPT_ROTATE or ARES_OPT_NOROTATE reported back from
  1421. ares_save_options() rather than 0.
  1422. - ares_init_options: only propagate init failures from options
  1423. Commit 46bb820be3a8 ("ares_init_options: don't lose init failure")
  1424. changed init behaviour so that earlier errors in initialization
  1425. weren't lost. In particular, if the user passes in specific
  1426. options but they are not applied (e.g. because of an allocation
  1427. failure), that failure needs to be reported back to the user; this
  1428. also applies when duplicating a channel with ares_dup().
  1429. However, other initialization failures can be ignored and
  1430. overridden -- in particular, if init_by_resolv_conf() or
  1431. init_by_environment() fail, then falling back to default values
  1432. is OK.
  1433. So only preserve failures from the init_by_options() stage, not
  1434. from all initialization stages.
  1435. Fixes issue 60.
  1436. - test: Force reinstall of libtool on OSX
  1437. Travis build environment appears to have changed.
  1438. - test: Add valgrind build variant
  1439. - test: Add null pointer to gtest args
  1440. GoogleTest assumes that there is a null pointer in argv[argc],
  1441. so make it look like that. Without this change, tests run with
  1442. command-line arguments get memory errors under valgrind/ASAN.
  1443. Daniel Stenberg (21 Aug 2016)
  1444. - AUTHOR: maybe gitgub isn't really an author =)
  1445. - AUTHORS: added contributors from the git log
  1446. - LICENSE.md: add a stand-alone license file
  1447. Just the MIT license used in the top the source files moved out to a
  1448. stand-alone file for easier reference and discovery.
  1449. - README: added "CII best practices" badge
  1450. - SECURITY.md: suggested "security process" for the project
  1451. David Drysdale (17 Aug 2016)
  1452. - test: Add Clang static analysis build to Travis
  1453. Run scan-build over the library source code, but skip the
  1454. tests. Needs a later Clang install in Travis
  1455. - test: more info on how to run fuzz testing
  1456. - test: make fuzzer driver code C not C++
  1457. - test: fuzzer mode for AFL's persistent mode
  1458. When fuzzing with AFL, if the LLVM-based instrumentation is
  1459. used (via the afl-clang-fast wrapper), then it is possible to
  1460. have a single execution of the fuzzer program iterate multiple
  1461. times over the fuzzing entrypoint (similar to libFuzzer's normal
  1462. mode of execution) with different data. This is much (e.g. 10x)
  1463. faster.
  1464. Add code to support this, by checking whether __AFL_LOOP is
  1465. defined at compile-time.
  1466. Also, shift the code to effectively be C rather than C++.
  1467. - test: simplify deps for fuzzer entrypoint
  1468. No need to depend on the rest of the test code (ares-test.h) for
  1469. the fuzzer entrypoint; this makes the entrypoint slightly simpler
  1470. to build with LLVM's libFuzzer.
  1471. Also shift the code to effectively be C rather than C++
  1472. - test: disable MinGW tests
  1473. The test binary built in the MinGW build is failing for some
  1474. reason. It works for me when I build locally, so I'm guessing
  1475. it's down to some sort of AppVeyor environment issue.
  1476. Disable for now.
  1477. Daniel Stenberg (16 Aug 2016)
  1478. - read_tcp_data: remove superfluous NULL check
  1479. CID 56884 by Coverity. The pointer is already derefenced before this
  1480. point so it can't be NULL here anyway.
  1481. - web: http => https
  1482. GitHub (20 Jul 2016)
  1483. - [David Drysdale brought this change]
  1484. Merge pull request #59 from fuze/master
  1485. Update msvc_ver.inc for VS2015 Update 3
  1486. - [Chris Araman brought this change]
  1487. Update msvc_ver.inc
  1488. support Visual Studio 2015 Update 3
  1489. David Drysdale (2 May 2016)
  1490. - Fix trailing comment for #endif
  1491. Daniel Stenberg (30 Apr 2016)
  1492. - email: use Gisle's "new" address
  1493. David Drysdale (18 Apr 2016)
  1494. - test: drop superfluous fuzz inputs
  1495. Where there are multiple fuzz input files that only differ in
  1496. the first two bytes (the query ID), just keep the first such
  1497. file.
  1498. svante karlsson (15 Apr 2016)
  1499. - Update msvc_ver.inc
  1500. support Visual Studio 2015 Update 2
  1501. David Drysdale (31 Mar 2016)
  1502. - test: Run fuzzcheck.sh in Travis build
  1503. - test: add fuzzing check script to tests
  1504. Add a test script that runs the fuzzing command over the
  1505. corpus of DNS packets. This doesn't actually do any fuzzing
  1506. (it just runs them as inputs without generating any variations)
  1507. but it does ensure that the fuzzing entrypoint is still working.
  1508. - test: allow multiple files in aresfuzz command line
  1509. If no arguments are specified, use stdin as input.
  1510. Otherwise treat each argument as a filename and feed
  1511. its contents to the fuzz entrypoint.
  1512. - test: Add corpus of DNS packets
  1513. For fuzz testing it is useful to start from a corpus of valid
  1514. packets, so fill out the test/fuzzinput/ directory with a bunch
  1515. of inputs.
  1516. These packets were generated by temporarily modifying the c-ares
  1517. process_answer() function to save off any incoming response messages.
  1518. - test: Add utility to show DNS packet from file
  1519. - [nordsturm brought this change]
  1520. Fix nsort initialization
  1521. Author: Alexander Drachevskiy
  1522. http://c-ares.haxx.se/mail/c-ares-archive-2014-07/0004.shtml
  1523. http://c-ares.haxx.se/mail/c-ares-archive-2014-07/0014.shtml
  1524. - test: Check setting nsort=0 option is respected
  1525. - test: Update fuzzing function prototype
  1526. libFuzzer changed expected return type from void to int
  1527. in LLVM 3.8.
  1528. - Explicitly clear struct servent before use
  1529. On a build where MSAN has been manually set up (which involves
  1530. using an MSAN-instrumented version of the standard C++ library, see
  1531. https://github.com/google/sanitizers/wiki/MemorySanitizerLibcxxHowTo)
  1532. there's a warning about use of uninitialized memory here. It
  1533. might be a false positive, but the fix is trivial so include it.
  1534. - test: for AF_UNSPEC, return CNAME only for AAAA, but valid A record
  1535. Also shuffle expected responses rsp6/rsp4 into the order they will occur.
  1536. - [Chris Araman brought this change]
  1537. msvc_ver.inc: support Visual Studio 2015 Update 1
  1538. - build: commonize MSVC version detection
  1539. Remove the need to copy/paste version number mapping between
  1540. Makefile.msvc and test/Makefile.msvc.
  1541. - test: Use different name in live test
  1542. - test: Only pass unused args to GoogleTest
  1543. - ahost.c: add cast to fix C++ compile
  1544. If ahost.c is force-compiled as C++ the missing cast from
  1545. (void *) to (char **) is problematic.
  1546. - ares_library_cleanup: reset ares_realloc too
  1547. Otherwise a subsequent use of the library might use a previous
  1548. incarnation's realloc() implementation.
  1549. Daniel Stenberg (9 Mar 2016)
  1550. - [Brad House brought this change]
  1551. configure: check if tests can get built before enabled
  1552. The current approach for disabling tests is not a good solution because
  1553. it forces you to pass --disable-tests, rather than auto-detect if your
  1554. system can support the tests in the first place. Many (most?) systems
  1555. do not have C++11. This also causes issues when chain-building c-ares,
  1556. the hosting system needs to be updated to support passing this
  1557. additional flag if necessary, it doesn't seem reasonable to add this
  1558. requirement which breaks compatibility.
  1559. This change auto-detects if the system can build the tests and
  1560. automatically disable them if it cannot. If you pass --enable-tests to
  1561. configure and the system cannot build them either due to lack of system
  1562. support, or because cross-compilation is being used, it will throw an
  1563. appropriate error since the user indicated they really did want the
  1564. tests.
  1565. David Drysdale (3 Mar 2016)
  1566. - [Viktor Szakats brought this change]
  1567. Makefile.m32: add support for CROSSPREFIX
  1568. - [Viktor Szakats brought this change]
  1569. Makefile.m32: add support for extra flags
  1570. Allow specification of CARES_{LD,C}FLAG_EXTRAS envvars
  1571. for mingw
  1572. - test: Build with MinGW on AppVeyor
  1573. - test: avoid in6addr_* constants
  1574. These aren't available on MinGW, so use explicit addresses instead.
  1575. - test: add missing #includes for dns-proto.cc
  1576. - [Gregor Jasny brought this change]
  1577. Fix man page typos detected by Lintian
  1578. Daniel Stenberg (19 Feb 2016)
  1579. - configure: acknowledge --disable-tests
  1580. Fixes #44
  1581. - AUTHORS: added contributors from the 1.11.0 release
  1582. - bump: start working on the next version
  1583. Version 1.11.0 (19 Feb 2016)
  1584. Daniel Stenberg (19 Feb 2016)
  1585. - RELEASE-NOTES: final edits for 1.11.0
  1586. David Drysdale (15 Feb 2016)
  1587. - ares_dup.3: remove mention of nonexistent function
  1588. ares_dup_options() doesn't exist, so don't document it.
  1589. - test: skip repeated build steps
  1590. Top-level buildconf/configure now triggers for the
  1591. test/ subdir too, so don't need to do explicitly.
  1592. - test: namespaces unavailable when cross-compiling
  1593. Daniel Stenberg (13 Feb 2016)
  1594. - configure: only run configure in test when NOT cross-compiling
  1595. ... as the tests won't run cross-compiled anyway
  1596. David Drysdale (13 Feb 2016)
  1597. - test: prefer ON_CALL to EXPECT_CALL to reduce flakes
  1598. For UDP tests, there's a chance of a retry. EXPECT_CALL only
  1599. expects a single request to arrive at the server; ON_CALL allows
  1600. for a UDP retry and repeats the same answer.
  1601. Note that ON_CALL and EXPECT_CALL can't be mixed in the same
  1602. test, and that tests that have a varied sequence of responses
  1603. for the same repeated request still have to use EXPECT_CALL.
  1604. Daniel Stenberg (13 Feb 2016)
  1605. - configure: run configure in 'test' too
  1606. Having the test dir completely stand-alone causes too many issues for
  1607. users and devs. It still needs to be built specifically.
  1608. - configure: build silently by default
  1609. - buildconf: run test/buildconf too if present
  1610. - test/configure: build silently by default
  1611. - [Gregor Jasny brought this change]
  1612. dist: Distribute README.md
  1613. Closes #42
  1614. Version 1.11.0 (11 Feb 2016)
  1615. Daniel Stenberg (11 Feb 2016)
  1616. - Makefile.am: distribute the test dir too
  1617. - RELEASE-NOTES: synced with 385582bd14b68a
  1618. - [Nicolas \"Pixel\" Noble brought this change]
  1619. ares_win32_init: make LoadLibrary work when using UNICODE too
  1620. Closes #17
  1621. David Drysdale (11 Feb 2016)
  1622. - Use "resolve" as synonym of "dns" in nsswitch.conf
  1623. Modern Linux systems may have libnss_resolve from systemd as the
  1624. resolver, which is then configured in /etc/nsswitch.conf with
  1625. the "resolve" keyword rather than "dns".
  1626. Fixes #33
  1627. - ares_set_socket_callback: make manpage match code
  1628. The code in ares_process.c that invokes the socket creation/connection
  1629. callback only checks for rc < 0, not for standard ares error codes.
  1630. - Merge pull request #36 from AGWA-forks/master
  1631. Add ares_set_socket_configure_callback()
  1632. - test: Update init tests to match behaviour
  1633. Unreadable config files are now treated the same way
  1634. as absent config files.
  1635. - [Fedor Indutny brought this change]
  1636. Ignore `fopen` errors to use default values
  1637. After 46bb820be3a83520e70e6c5f0c5133253fcd69cd `init_by_resolv_conf`
  1638. errors are no longer swallowed in `ares_init_options`. This has exposed
  1639. a previously unknown bug in `lookups` initialization code.
  1640. If there is no lookup configuration in `resolv.conf`,
  1641. `init_by_resolv_conf` will attempt to read it from other files available
  1642. on the system. However, some of these files may have restricted
  1643. permissions (like `600`), which will lead to `EACCESS` errno, which in
  1644. turn is handled like a fatal error by `init_by_resolv_conf`.
  1645. However, it sounds illogical that this error should be handled as a
  1646. fatal. There is a `init_by_defaults` call that overrides `lookups` with
  1647. default value, and certainly possible absence of lookup information is
  1648. the reason why this function exists in a first place!
  1649. I suggest handling any `fopen` errors as non-fatal ones, allowing to
  1650. pick up the `lookups` value from different config files, or to pick up
  1651. default value.
  1652. Andrew Ayer (9 Feb 2016)
  1653. - Document callback type in man page for ares_set_socket_callback
  1654. - Add ares_set_socket_configure_callback()
  1655. This function sets a callback that is invoked after the socket is
  1656. created, but before the connection is established. This is an ideal
  1657. time to customize various socket options.
  1658. David Drysdale (9 Feb 2016)
  1659. - test: ares_set_socket_callback failure behaviour
  1660. - test: Check ares_parse_txt_reply_ext() entrypoint
  1661. - [Fedor Indutny brought this change]
  1662. txt: introduce `ares_parse_txt_reply_ext`
  1663. Introduce `ares_txt_ext` structure with an extra `record_start`
  1664. field, which indicates a start of a new TXT record, thus allowing to
  1665. differentiate the chunks in the same record, from a chunks in a
  1666. different record.
  1667. Introduce a new API method: `ares_parse_txt_reply_ext` that works with
  1668. this kind of struct.
  1669. - doc: Update missed repo references
  1670. - doc: Update docs on contributing
  1671. - test: Run command line tools in Travis
  1672. Do a quick execution of each of the command line tools
  1673. in the continuous integration build, so that any (say)
  1674. sanitizer failures show up.
  1675. - acountry: drop inert test
  1676. If ver_1 is true, then z0 and z1 must both be 'z', and so
  1677. (z0 != 'z' && z1 != 'z') can never be true.
  1678. CID 56879, pointed out by Coverity.
  1679. - doc: update badge locations to master repo
  1680. - test: Enable maintainer mode + debug in Travis
  1681. - test: Add an iOS build target
  1682. - test: Ignore SIGPIPE in tests
  1683. - test: More initialization tests
  1684. - test: Improve containerized test mechanism
  1685. Aim is to ensure that code coverage information can escape the
  1686. container. To do this:
  1687. - Enter a new mount namespace too, so that we can...
  1688. - Bind mount the expected source directory into the container
  1689. - Share memory with the sub-process so coverage information is
  1690. shared too.
  1691. - test: Make contained tests easier to write
  1692. - test: Add framework for containerized testing
  1693. On Linux we can potentially use user and UTS namespaces to run a test
  1694. in a pseudo-container with:
  1695. - arbitrary filesystem (e.g. /etc/resolv.conf, /etc/nsswitch.conf, /etc/hosts)
  1696. - arbitrary hostname/domainname.
  1697. Include a first pass at the framework code to allow this, along with a
  1698. first test case that uses the container.
  1699. - test: Use a longer timeout for less flakiness
  1700. Having occasional test failures from timeout before multiple
  1701. queries can complete, so up the default timeout for the test
  1702. from 100ms to 1500ms.
  1703. - test: Make failure tests more robust
  1704. Different platforms will do different numbers of allocations
  1705. in the processing of a given API call; just check that the
  1706. return code is either success or ENOMEM, and free off any
  1707. returned state in the former case.
  1708. Also cope with ECONNREFUSED as well as ENOTFOUND.
  1709. - test: Get test code building under Windows
  1710. - Initial nmake file based off library nmake file
  1711. - Cast socket call arguments to (char *)
  1712. - Use wrapper sclose() that maps to closesocket() or close()
  1713. - Build a config.h indicating presence of headers
  1714. - Conditionally include netdb.h
  1715. - Remove unnecessary include of sys/socket.h
  1716. - Force longer bitmask for allocation failure tracking
  1717. - Call WSAStartup() / WSACleanup() in main()
  1718. - Set TCP_NODELAY for mock server
  1719. - Turn on tests in AppVeyor build
  1720. - test: Disable tests that manipulate env on Windows
  1721. - test: Move file lists into Makefile.inc
  1722. In preparation for a Win32 build of the test suite.
  1723. - test: Add a simple multi-server test
  1724. Check rotate option does something
  1725. - test: Allow for multiple mock servers
  1726. - Update the MockServer to allow separate specification of
  1727. UDP and TCP ports
  1728. - Have an array of mock servers listening on consecutive
  1729. sets of ports.
  1730. - Rename Process(fd) to ProcessFD(fd) to avoid confusion.
  1731. - Initialize channel by using the new ares_set_servers_ports()
  1732. entrypoint, so multiple ports on the same loopback address
  1733. can be used.
  1734. - test: Update test for set/get_servers variants
  1735. Ports are significant in the _ports_ variant functions, so update test to cope.
  1736. - test: Make GetNameServers() utility function port-aware
  1737. Also make it generally available.
  1738. - test: more testing, including of internal static functions
  1739. - test: more tests, especially fallback processing
  1740. - Make mock server listen on UDP + TCP in parallel.
  1741. - Test UDP->TCP fallback on truncation
  1742. - Test EDNS->no-EDNS fallback
  1743. - Test some environment init options
  1744. - Test nonsense reply
  1745. test: short response
  1746. - test: more tests, particularly of initialization
  1747. - test: Run mock tests over both TCP and UDP
  1748. With the exception of a few tests that make use of the timed
  1749. retry aspect of UDP.
  1750. - test: Run mock tests over both IPv4 and IPv6
  1751. - test: Add more tests for edge cases
  1752. - test: more nooks and crannies of pton functions
  1753. - test: More tests for PTR parsing
  1754. - test: Use of HOSTALIAS environment variable
  1755. - test: Add RAII utility classes for testing
  1756. - TempFile holds specific contents
  1757. - EnvValue sets an environment variable
  1758. - test: More search domain scenarios
  1759. - test: Remove duplicate flags from Makefile.am
  1760. - test: Make test code leak-free
  1761. - test: More tests
  1762. - test use of sortlist
  1763. - test gethostbyname(AF_UNSPEC)
  1764. - test: Test ares_gethostbyname_file()
  1765. - test: Add more tests of ares_getnameinfo()
  1766. - test: Tweak tests, add alloc failure test
  1767. - test: Test init with options
  1768. - test: More tests
  1769. - ares_inet_net_pton() variants
  1770. - ares_getsock() variants
  1771. - test: Expose ProcessWork() function
  1772. - test: More parsing tests
  1773. Including:
  1774. - Split each parse function test set out into separate files.
  1775. - Add an allocation failure test for each parsing function.
  1776. - Add error check test for each parsing function.
  1777. - test: Add various additional tests
  1778. - test: More tests
  1779. Include tests of internal functions, based on the value of the
  1780. CARES_SYMBOL_HIDING macro; need to configure the library with
  1781. --disable-symbol-hiding to enable these tests.
  1782. - test: Allow command line override of mock server port
  1783. - test: Add README.md documentation
  1784. - test: Temporarily avoid latest Python requests package
  1785. Currently get error from Travis on this install step, and downgrading one
  1786. version appears to fix the problem.
  1787. "Could not find any downloads that satisfy the requirement pyOpenSSL>=0.13
  1788. (from requests[security])"
  1789. - test: Add AppVeyor config file for Windows build
  1790. - test: Add configuration for a Travis build
  1791. Cover Linux & OSX on the container infrastructure, but install
  1792. a later G++ to satisfy the tests' need for C++11.
  1793. Use a build matrix to include a variety of build variants:
  1794. - ASAN
  1795. - UBSAN
  1796. - LSAN
  1797. - Coverage via coveralls.io
  1798. test: invoke ASAN and coverage in Travis build
  1799. Also shift to use explicit build matrix
  1800. test: Use coveralls.io for coverage tracking
  1801. test: Add a build with UBSAN
  1802. Also expand and re-order the setting of environment variables
  1803. for easier modification.
  1804. test: Add LSAN build to Travis config
  1805. - test: Add initial unit tests for c-ares library
  1806. The tests are written in C++11, using the GoogleTest and GoogleMock
  1807. frameworks. They have their own independent autoconf setup, so that
  1808. users of the library need not have a C++ compiler just to get c-ares
  1809. working (however, the test/configure.ac file does assume the use of
  1810. a shared top-level m4/ directory). However, this autoconf setup has
  1811. only been tested on Linux and OSX so far.
  1812. Run with "./arestest", or "./arestest -v" to see extra debug info.
  1813. The GoogleTest options for running specific tests are also
  1814. available (e.g. "./arestest --gtest_filter=*Live*").
  1815. The tests are nowhere near complete yet (currently hitting around
  1816. 60% coverage as reported by gcov), but they do include examples
  1817. of a few different styles of testing:
  1818. - There are live tests (ares-test-live.cc), which assume that the
  1819. current machine has a valid DNS setup and connection to the
  1820. internet; these tests issue queries for real domains but don't
  1821. particularly check what gets returned. The tests will fail on
  1822. an offline machine.
  1823. - There a few mock tests (ares-test-mock.cc) that set up a fake DNS
  1824. server and inject its port into the c-ares library configuration.
  1825. These tests allow specific response messages to be crafted and
  1826. injected, and so are likely to be used for many more tests in
  1827. future.
  1828. - To make this generation/injection easier, the dns-proto.h file
  1829. includes C++ helper classes for building DNS packets.
  1830. - Other library entrypoints that don't require network activity
  1831. (e.g. ares_parse_*_reply) are tested directly.
  1832. - There are few tests of library-internal functions that are not
  1833. normally visible to API users (in ares-test-internal.cc).
  1834. - A couple of the tests use a helper method of the test fixture to
  1835. inject memory allocation failures, using the earlier change to the
  1836. library to allow override of malloc/realloc/free.
  1837. - There is also an entrypoint to allow Clang's libfuzzer to drive
  1838. the packet parsing code in ares_parse_*_reply, together with a
  1839. standalone wrapper for it (./aresfuzz) to allow use of afl-fuzz
  1840. for further fuzz testing.
  1841. - test: Add local copy of GoogleMock/GoogleTest 1.7.0
  1842. Don't check in gtest/m4 files, as they are unused and interfere
  1843. with the top-level configure process.
  1844. - doc: Show build badges in README.md
  1845. Note that these URLs will need to be updated if/when the test branch
  1846. gets pulled into the master repo/branch.
  1847. - doc: Convert README to README.md
  1848. Gives better display on GitHub
  1849. - doc: Update in preparation for next release
  1850. Assume 1.11.0 is next (as there are various API additions).
  1851. Also add myself to AUTHORS.
  1852. - build: Allow header compilation by Windows C++ compiler
  1853. - build: Expose whether symbol hiding is on
  1854. Adding the CARES_SYMBOL_HIDING definition allows the test suite to
  1855. detect whether internal symbols are available or not.
  1856. - build: Add autoconf macros for C++11 code using pthreads
  1857. Pull in testing macros from the GNU autoconf archive to allow
  1858. configure scripts to test for and setup use of a C++11 compiler
  1859. (AX_CXX_COMPILE_STDCXX_11) and the pthreads library (AX_PTHREAD).
  1860. Note that these macros are not used by the main library autoconf,
  1861. just by the tests (which share the same m4/ directory).
  1862. - build: Add a code coverage option
  1863. Configure with:
  1864. ./configure --enable-code-coverage
  1865. Show coverage output with:
  1866. make code-coverage-capture
  1867. Built on m4/ax_code_coverage.m4 from the GNU autoconf archive
  1868. to provide the macros to check for presence of gcov + lcov;
  1869. upstream macro modified to:
  1870. - Remove use of $(AM_DEFAULT_VERBOSITY) , as earlier versions of
  1871. autoconf (such as the one used by default on Travis) do not have this.
  1872. - Rather than automatically defining CODE_COVERAGE_RULES to be a set
  1873. of makefile rules that use ifeq/endif (which is GNU make-specific),
  1874. instead only define CODE_COVERAGE_RULES if coverages is turned on,
  1875. and in that case don't use conditionals in the makefile.
  1876. - api: Add entrypoints to allow use of per-server ports
  1877. Add user-visible entrypoints ares_{get,set}_servers_ports(3), which
  1878. take struct ares_addr_port_node rather than struct ares_addr_node.
  1879. This structure includes a UDP and TCP port number; if this is set
  1880. to zero, the channel-wide port values are used as before.
  1881. Similarly, add a new ares_set_servers_ports_csv(3) entrypoint, which
  1882. is analogous to ares_set_servers(3) except it doesn't ignore any
  1883. specified port information; instead, any per-server specified port
  1884. is used as both the UDP and TCP port for that server.
  1885. The internal struct ares_addr is extended to hold the UDP/TCP ports,
  1886. stored in network order, with the convention that a value of zero
  1887. indicates that the channel-wide UDP/TCP port should be used.
  1888. For the internal implementation of ares_dup(3), shift to use the
  1889. _ports() version of the get/set functions, so port information is
  1890. transferred correctly to the new channel.
  1891. Update manpages, and add missing ares_set_servers_csv to the lists
  1892. while we're at it
  1893. - api: Add ares_set_sortlist(3) entrypoint
  1894. Allow explicit configuration of the channel's sortlist, by
  1895. specifying a string in the same format as the equivalent
  1896. /etc/resolv.conf option.
  1897. This allows library users to perform the same configuration
  1898. that is available via /etc/resolv.conf, but without needing
  1899. to change that file.
  1900. - api: Allow injection of user-specified malloc/free functions
  1901. Add a new ares_library_init_mem() initialization function for the
  1902. library which allows the library user to specify their own malloc,
  1903. realloc & free equivalents for use library-wide.
  1904. Store these function pointers in library-wide global variables,
  1905. defaulting to libc's malloc(), realloc() and free().
  1906. Change all calls to malloc, realloc and free to use the function pointer
  1907. instead. Also ensure that ares_strdup() is always available
  1908. (even if the local environment includes strdup(3)), and change the
  1909. library code to always use it.
  1910. Convert calls to calloc() to use ares_malloc() + memset
  1911. - api: Add option to expose some internal functions
  1912. Purely for testing, add --enable-expose-statics option to configure
  1913. which converts some static internal functions to be externally visible.
  1914. - api: Expose the ares_library_initialized() function
  1915. - ahost: Allow repeated -s <domain> options
  1916. This also removes a potential leak where later -s options would
  1917. replace earlier ones without freeing the relevant string.
  1918. - Mark unhittable lines
  1919. Add comments for the benefit of the lcov tool, marking
  1920. lines that cannot be hit. Typically these are fall-back
  1921. protection arms that are already covered by earlier checks,
  1922. and so it's not worth taking out the unhittable code (in case
  1923. someone changes the code between the two places in future).
  1924. - ares_set_servers_csv.3: make return type match code
  1925. - bitncmp: update comment to match code behaviour
  1926. - ares_striendstr: fix so non-NULL return can happen
  1927. This looks to have been broken since it was first introduced in 2005 in
  1928. commit aba0b775ea30 ("Added ares_getnameinfo which mimics the
  1929. getnameinfo API")
  1930. - config_sortlist: free any existing sortlist on (re)alloc failure
  1931. If we get an allocation failure on 2nd or later entry in the sortlist, the
  1932. code would return ENOMEM but still leave the initial entries allocated.
  1933. Ensure that *sortlist is set to NULL whenever ENOMEM is returned.
  1934. - ares_dup: clear new channel on failure
  1935. If the attempt to transfer IPv6 servers from the old to the new channel
  1936. fails, the previous code would still return a channel to the user even though
  1937. an error return code was generated. This makes it likely that users would
  1938. leak the channel, so explicitly clear the channel in this case.
  1939. - ares_init_options: don't lose init failure
  1940. If (say) init_by_options() fails, the subsequent call to
  1941. init_by_defaults() was overwriting the return code with
  1942. success. Still call init_by_defaults() regardless, but track
  1943. its return value separately
  1944. - ares_gethostbyname: don't leak valid-but-empty hostent
  1945. If an AF_UNSPEC query gets a valid response to its AAAA query,
  1946. but which has no IPv6 addresses in it, then the code chains on to
  1947. a A record query. However, the hostent from the AAAA response
  1948. was being leaked along the way (because it gets replaced before
  1949. the follow-on end_hquery() invocation).
  1950. - ares_parse_txt_reply: propagate errors from per-substring loop
  1951. If we get an allocation failure when processing a particular substring in a
  1952. TXT record, that failure is silently lost; fix that by propagating errors from
  1953. the inner loop to the outer loop.
  1954. - process_answer: fix things up correctly when removing EDNS option
  1955. When a server rejects an EDNS-equipped request, we retry without
  1956. the EDNS option. However, in TCP mode, the 2-byte length prefix was
  1957. being calculated wrong -- it was built from the answer length rather than
  1958. the length of the original request.
  1959. Also, it is theoretically possible that the call to realloc() might change
  1960. the data pointed to; to allow for this, qbuf also needs updating.
  1961. (Both these fixes were actually included in a patchset sent on the mailing
  1962. list in Oct 2012, but were included with other functional changes that
  1963. didn't get merged:
  1964. http://c-ares.haxx.se/mail/c-ares-archive-2012-10/0004.shtml)
  1965. - ares__read_line: clear buf pointer on realloc failure
  1966. - ares_expand_name: check for valid bits in label length
  1967. The top two bits of the label length indicate whether this is a
  1968. label length (00) or an index to a name elsewhere in the message
  1969. (11). RFC1035 4.1.4 says that the other possible values for the
  1970. top two bits (01, 10) are reserved for future use.
  1971. Daniel Stenberg (23 Jan 2016)
  1972. - [Gregor Jasny brought this change]
  1973. Fix typos detected by lintian
  1974. Closes #32
  1975. - [Gregor Jasny brought this change]
  1976. Distribute all man pages
  1977. - README.cares: s/I/Daniel
  1978. ... and add a pointer to an existing version of the original area 1.1.1
  1979. package.a
  1980. - read_tcp_data: don't try to use NULL pointer after malloc failure
  1981. CID 56884, pointed out by Coverity. We really should make this function
  1982. return an error code so that a malloc() failure can return back a major
  1983. failure.
  1984. - configure_socket: explicitly ignore return code
  1985. CID 56889 in Coverity pointed out the return code from setsocknonblock()
  1986. is ignored, and this added typecast to (void) makes it explicit.
  1987. - ahost: check the select() return code
  1988. Fixes CID 137189, pointed out by Coverity
  1989. David Drysdale (18 Jan 2016)
  1990. - Fix buildconf on platforms using glibtoolize
  1991. Commit c49a87eea538 changed buildconf to only check for
  1992. libtoolize, but missed a line
  1993. - Don't exit loop early leaving uninitialized entries
  1994. Update for commit affc63cba875d.
  1995. The original patch from Gregor Jasny did not have the break
  1996. statement; I incorrectly added it to prevent continuing the loop.
  1997. However, the later entries in the array would then be left
  1998. uninitialized, causing problems for later cleanup.
  1999. So fix to match Gregor's original patch, with apologies.
  2000. Daniel Stenberg (18 Jan 2016)
  2001. - buildconf: remove check for libtool, it only requires libtoolize
  2002. David Drysdale (17 Jan 2016)
  2003. - [Gregor Jasny brought this change]
  2004. Use libresolv to initialize cares on iPhone targets
  2005. On iPhone targets like iOS, watchOS or tvOS the file
  2006. /etc/resolv.conf cannot be used to configure cares.
  2007. Instead the resolver library is queried for configuration
  2008. values.
  2009. CC: Yury Kirpichev <[email protected]>
  2010. Daniel Stenberg (17 Jan 2016)
  2011. - README: updated to new repo URL
  2012. David Drysdale (14 Jan 2016)
  2013. - [Lei Shi brought this change]
  2014. Fixing slow DNS lookup issue
  2015. This patch is fixing the dns lookup issue due to dummy dns information
  2016. of a disconnected adapter(in my case is a bluetooth adapter). I changed
  2017. the dns lookup policy to try GetNetworkParams first because the
  2018. GetNetworkParams provides the most reliable dns information (lots of
  2019. checks were done by system). I also filter out inoperable adapter in
  2020. DNS_AdaptersAddresses in case GetNetworkParams fail.
  2021. - Merge pull request #30 from p-push/vs-2015
  2022. Support Visual Studio 2015
  2023. Oleg Pudeyev (3 Jan 2016)
  2024. - [Gisle Vanem brought this change]
  2025. Support Visual Studio 2015
  2026. David Drysdale (11 Nov 2015)
  2027. - [Andrew Andkjar brought this change]
  2028. added another version case to Makefile.msvc
  2029. nmake version 11.00.61030.0 resolves to CC_VERS_NUM = 110
  2030. - Merge pull request #26 from bitbouncer/vs-2013
  2031. added define for visual studio 2013
  2032. svante karlsson (25 Jun 2015)
  2033. - added define for visual studio 2013
  2034. Jakub Hrozek (6 Nov 2014)
  2035. - ares__read_line: free buf on realloc failure
  2036. - Destroy options if ares_save_options fails
  2037. It's possible that, if ares_save_options failed, the opts structure
  2038. would contain some allocated memory. Calling ares_destroy_options in
  2039. this case is safe, because ares_save_options zeroes out the memory
  2040. initially.
  2041. - [David Drysdale brought this change]
  2042. Continue loop if space for hostname not large enough
  2043. When attempting to build a search domain from the local hostname
  2044. (used as a fallback when no other methods have given a search
  2045. domain), the code doubles the buffer size on each loop iteration.
  2046. However, the loop previously had a WHILE_FALSE terminator so the continue
  2047. statement exited the loop rather than going round again.
  2048. Daniel Stenberg (30 Oct 2014)
  2049. - ares_getnameinfo.3: there is no ares_getaddrinfo
  2050. David Drysdale (30 Sep 2014)
  2051. - [Gregor Jasny brought this change]
  2052. Prevent tmpbuf from overrunning
  2053. Fix Coverity error CID 56886.
  2054. Signed-off-by: Gregor Jasny <[email protected]>
  2055. - [Gregor Jasny brought this change]
  2056. Re-start loop if select fails
  2057. Fix Coverity error CID 56882
  2058. Signed-off-by: Gregor Jasny <[email protected]>
  2059. - [Gregor Jasny brought this change]
  2060. Free temporary variable in error path
  2061. Fix Coverity CID 56890
  2062. Signed-off-by: Gregor Jasny <[email protected]>
  2063. - [Gregor Jasny brought this change]
  2064. Fix integer shift overflow if both tcp_socket and udp_socket are set
  2065. The problem occurs if at the start of the loop the sockindex is at the
  2066. last valid ARES_GETSOCK_MAXNUM position. If then both udp_socket and
  2067. tcp_socket are valid, sockindex gets incremented for UDP first and
  2068. points one entry behind the array for the tcp block.
  2069. So the fix is to check after every increment of sockindex if it is still
  2070. valid.
  2071. Fix Coverity error CID 56878
  2072. Signed-off-by: Gregor Jasny <[email protected]>
  2073. - [Gregor Jasny brought this change]
  2074. Null check before dereference
  2075. Fix Coverity error CID 56880
  2076. Signed-off-by: Gregor Jasny <[email protected]>
  2077. Jakub Hrozek (28 Jul 2014)
  2078. - [Gisle Vanem brought this change]
  2079. Comment in ares_ipv6.h
  2080. David Drysdale (25 Jul 2014)
  2081. - CONTRIBUTING: add file to indicate mailing list is preferred
  2082. - Add -t u option to ahost
  2083. Add an option to allow specification of the AF_UNSPEC
  2084. address family.
  2085. Jakub Hrozek (24 Jul 2014)
  2086. - host_callback: Fall back to AF_INET on searching with AF_UNSPEC
  2087. Previously, when an ares_gethostbyname() searched with AF_UNSPEC and the
  2088. first AF_INET6 call only returned CNAMEs, the host_callback never
  2089. retried AF_INET.
  2090. This patch makes sure than on ARES_SUCCESS, the result of AF_INET6 is
  2091. taken as authoritative only if the result contains some addresses.
  2092. - [David Drysdale brought this change]
  2093. Move memset call below platform-specific declarations
  2094. A GitHub commenter [1] says that my recent change to ahost.c has
  2095. problems compiling on Windows + C89 platforms.
  2096. [1] https://github.com/bagder/c-ares/commit/ee22246507c9#commitcomment-6587616
  2097. - [David Drysdale brought this change]
  2098. Update ahost man page to describe -s option.
  2099. Commit ee22246507c9 added the -s <domain> option to the
  2100. ahost command, but neglected to update the man page to
  2101. describe it.
  2102. Also fix typo in description of -t option.
  2103. - ares_parse_soa_reply: Do not leak rr_name on allocation failure
  2104. If ares_malloc_data failed, already allocated rr_name would go out of
  2105. scope.
  2106. - [David Drysdale brought this change]
  2107. Don't override explicitly specified search domains
  2108. Only set search domains from /etc/resolv.conf if there isn't a value
  2109. already present in the channel.
  2110. - [David Drysdale brought this change]
  2111. Allow specification of search domain in ahost
  2112. Add the "-s domain" command line option to override the search
  2113. domains.
  2114. Daniel Stenberg (12 May 2014)
  2115. - Revert "ares_parse_aaaa_reply: fix leak when reply contains 1 alias and no address"
  2116. This reverts commit 440110b303fdbfadb3ad53d30eeb98cc45d70451.
  2117. - [Frederic Germain brought this change]
  2118. ares_parse_aaaa_reply: fix leak when reply contains 1 alias and no address
  2119. - [Doug Kwan brought this change]
  2120. ares_build.h: fix building on 64-bit powerpc
  2121. There are two issues.
  2122. 1. gcc actually does not use __ppc__ and __ppc64__ but __PPC__ and
  2123. __PPC64__. The tests of __ILP32__ and __LP64__ are sufficient for gcc.
  2124. 2. clang defines __GNU__ and defines both __ppc64__ and __ppc__ when
  2125. targeting ppc64. This makes CARES_SIZEOF_LONG to be 4 on a ppc64 system
  2126. when building with clang.
  2127. My patch is two change the order of the checks so that we check the
  2128. 64-bit case first.
  2129. - refresh: updated now with automake 1.14
  2130. - [David Drysdale brought this change]
  2131. single_domain: Invalid memory access for empty string input
  2132. We noticed a small buglet in ares_search() when it gets an empty string
  2133. as input -- the single_domain() utility function in ares_search.c
  2134. accesses invalid memory (before the start of the string).
  2135. Guenter Knauf (31 Aug 2013)
  2136. - Fixed warning 'type specifier missing'.
  2137. Daniel Stenberg (30 Aug 2013)
  2138. - [Tor Arntsen brought this change]
  2139. ares_rules.h: CARES_SIZEOF_LONG doesn't exist anymore, don't test for it
  2140. It was removed in f19387dd72432
  2141. - nowarn: use <limits.h> instead of configure for size of long
  2142. This makes the header file much more multi-arch friendly and can be used
  2143. as-is with both 32 bit and 64 bit builds.
  2144. - timeoffset: made static and private
  2145. ares__timeoffset() was only used once within this single source file
  2146. - timeadd: make static
  2147. ares__timeadd() was only ever used from within the same source
  2148. Yang Tse (18 Jul 2013)
  2149. - xc-am-iface.m4: comments refinement
  2150. - configure: fix 'subdir-objects' distclean related issue
  2151. See XC_AMEND_DISTCLEAN comments for details.
  2152. - configure: automake 1.14 compatibility tweak (use XC_AUTOMAKE)
  2153. - xc-am-iface.m4: provide XC_AUTOMAKE macro
  2154. Daniel Stenberg (12 May 2013)
  2155. - gitignore: ignore all ares_*pdf but also CHANGES.dist
  2156. - bump: start working towards 1.10.1
  2157. Version 1.10.0 (12 May 2013)
  2158. Daniel Stenberg (12 May 2013)
  2159. - RELEASE-NOTES: two more bug fixes
  2160. - [Keith Shaw brought this change]
  2161. ares_set_servers_csv: fixed IPv6 address parsing
  2162. Fixed bug that caused the last part of an IPv6 address to be parsed as
  2163. the port number when the last part is all numeric.
  2164. - nroff: fix two syntax mistakes
  2165. ares_parse_a_reply and ares_parse_aaaa_reply both had two \fB instead of
  2166. \fP
  2167. Reported-by: Alexander Klauer
  2168. Bug: http://c-ares.haxx.se/mail/c-ares-archive-2013-03/0010.shtml
  2169. - [Alex Loukissas brought this change]
  2170. build: fix build on msvc11
  2171. - Makefile.am: increment -version-info for 1.10.0 release
  2172. - README: remove unnecessary comment
  2173. - ares_version.h: copyright end range year is now 2013
  2174. - RELEASE-NOTES: synced with fb0737f3a0a1c37
  2175. - [Paul Saab brought this change]
  2176. ares_parse_aaaa_reply: Plug memory leak
  2177. This change is similar to ares_parse_a_reply.c in commit
  2178. bffd67f16a8f42fe6dbf79ab2e39d92eea05c8a6
  2179. - [Patrick Valsecchi brought this change]
  2180. ares_parse_txt_reply: return a ares_txt_reply node for each sub-string
  2181. Previously, the function would wrongly return all substrings merged into
  2182. one.
  2183. - [Alexander Klauer brought this change]
  2184. library init: documentation update
  2185. This commit updates the documentation of ares_library_init() and
  2186. ares_library_cleanup() with regard to the newly introduced reference
  2187. counting of initializations and deinitializations.
  2188. - [Alexander Klauer brought this change]
  2189. library init: be recursive
  2190. Previously, a single call to ares_library_cleanup() would deinitialise
  2191. the c-ares library, regardless of how many times ares_library_init() was
  2192. called. This behaviour may cause problems in programs linking two or
  2193. more libraries which, in turn, use c-ares. The present commit fixes this
  2194. problem, deinitializing the library only after a number of calls to
  2195. ares_library_cleanup() matching the number of calls to
  2196. ares_library_init().
  2197. - [Patrick Valsecchi brought this change]
  2198. protocol parsing: check input data stricter
  2199. ... so that bad length fields aren't blindly accepted
  2200. Bug: http://c-ares.haxx.se/mail/c-ares-archive-2013-04/0016.shtml
  2201. Guenter Knauf (11 Apr 2013)
  2202. - Create ares_build.h when buidling from Git.
  2203. - Added -DCARES_STATICLIB to CFLAGS.
  2204. Currently this static makefile does only support building the
  2205. static library libcares.a.
  2206. Daniel Stenberg (8 Apr 2013)
  2207. - [Alexander Klauer brought this change]
  2208. .gitignore: ignore patch files
  2209. This commit adds a line to .gitignore to the effect that patch files
  2210. generated by 'git format-patch' are excluded from the repository.
  2211. - [Alexander Klauer brought this change]
  2212. ares_destroy() documentation: no new requests
  2213. Clarify that no new requests may be added to a resolver channel that is
  2214. currently being destroyed.
  2215. - [Alexander Klauer brought this change]
  2216. Documentation: properly document ARES_ECANCELLED
  2217. This commit clarifies the behaviour of ares_cancel() with respect to
  2218. callbacks and adds missing documentation of ARES_ECANCELLED to the man
  2219. pages of the affected functions.
  2220. - [Alexander Klauer brought this change]
  2221. ares_cancel(): cancel requests safely
  2222. An invocation of ares_cancel() walks through the request list, calling
  2223. the callbacks of all pending requests on a channel. Previously, if such
  2224. a callback added a new request to the channel, the request list might
  2225. not end up empty, causing an abort by assertion failure. The present
  2226. commit ensures that precisely all requests present upon entry of
  2227. ares_cancel() are cancelled, and that adding new requests through
  2228. callbacks is safe.
  2229. Yang Tse (10 Mar 2013)
  2230. - ares.h: stricter CARES_EXTERN linkage decorations logic
  2231. No API change involved.
  2232. - ares_build.h.dist: enhance non-configure GCC ABI detection logic
  2233. GCC specific adjustments:
  2234. - check __ILP32__ before 32 and 64bit processor architectures in
  2235. order to detect ILP32 programming model on 64 bit processors
  2236. which, of course, also support LP64 programming model, when using
  2237. gcc 4.7 or newer.
  2238. - keep 32bit processor architecture checks in order to support gcc
  2239. versions older than 4.7 which don't define __ILP32__
  2240. - check __LP64__ for gcc 3.3 and newer, while keeping 64bit processor
  2241. architecture checks for older versions which don't define __LP64__
  2242. Daniel Stenberg (9 Mar 2013)
  2243. - ares.h: there is no ares_free_soa function
  2244. Yang Tse (9 Mar 2013)
  2245. - Makefile.am: empty AM_LDFLAGS definition for automake 1.7 compatibility
  2246. - ares_inet_ntop.3: s/socklen_t/ares_socklen_t
  2247. - configure: use XC_LIBTOOL for portability across libtool versions
  2248. - xc-lt-iface.m4: provide XC_LIBTOOL macro
  2249. - Makefile.am: use AM_CPPFLAGS instead of INCLUDES
  2250. - inet_ntop.c: s/socklen_t/ares_socklen_t
  2251. - inet_ntop.c: s/socklen_t/ares_socklen_t for portability
  2252. Daniel Stenberg (19 Feb 2013)
  2253. - ares.h: s/socklen_t/ares_socklen_t for portability
  2254. - ares_inet_ntop.3: 4th argument is socklen_t!
  2255. - spell inet correctly!
  2256. - ares_inet_pton/ntop: cleanup
  2257. Make sure that the symbols are always exported and present in c-ares.
  2258. Make the headers prefixed with 'ares'.
  2259. Removed the inet_ntop.h version as it no longer features any content.
  2260. - ares_inet_ntop/ares_inet_pton: added man pages
  2261. Yang Tse (15 Feb 2013)
  2262. - [Gisle Vanem brought this change]
  2263. curl_setup_once.h: definition of HAVE_CLOSE_S defines sclose() to close_s()
  2264. - [Gisle Vanem brought this change]
  2265. config-dos.h: define HAVE_CLOSE_S for MSDOS/Watt-32
  2266. - [Gisle Vanem brought this change]
  2267. config-dos.h: define strerror() to strerror_s_() for High-C
  2268. Daniel Stenberg (13 Feb 2013)
  2269. - ares_get_datatype: removed unused function
  2270. it was also wrongly named as internal functions require two underscores
  2271. - ares__bitncmp: use two underscores for private functions
  2272. It used a single one previously making it look like a public one
  2273. - ares__generate_new_id: moved to ares_query.c
  2274. ... and ares__rc4 is turned into a local static function.
  2275. - ares__swap_lists: make private and static
  2276. ... since there's only one user, make it static within ares_process.c
  2277. Yang Tse (13 Feb 2013)
  2278. - Makefile.msvc: add four VS version strings
  2279. Daniel Stenberg (13 Feb 2013)
  2280. - ares_expand_name.3: clarify how to free the data
  2281. Yang Tse (30 Jan 2013)
  2282. - zz40-xc-ovr.m4: fix 'wc' detection - follow-up 2
  2283. - Fix a pair of single quotes to double quotes.
  2284. URL: http://curl.haxx.se/mail/lib-2013-01/0355.html
  2285. Reported by: Tor Arntsen
  2286. - zz40-xc-ovr.m4: fix 'wc' detection - follow-up
  2287. - Take into account that 'wc' may return leading spaces and/or tabs.
  2288. - Set initial IFS to space, tab and newline.
  2289. - zz40-xc-ovr.m4: fix 'wc' detection
  2290. - Take into account that 'wc' may return leading spaces.
  2291. - Set internationalization behavior variables.
  2292. Tor Arntsen analyzed and reported the issue.
  2293. URL: http://curl.haxx.se/mail/lib-2013-01/0351.html
  2294. - zz40-xc-ovr.m4: check another three basic utilities
  2295. - zz40-xc-ovr.m4: 1.0 interface stabilization
  2296. - Stabilization results in 4 public interface m4 macros:
  2297. XC_CONFIGURE_PREAMBLE
  2298. XC_CONFIGURE_PREAMBLE_VER_MAJOR
  2299. XC_CONFIGURE_PREAMBLE_VER_MINOR
  2300. XC_CHECK_PATH_SEPARATOR
  2301. - Avoid one level of internal indirection
  2302. - Update comments
  2303. - Drop XC_OVR_ZZ40 macro
  2304. - zz40-xc-ovr.m4: emit witness message in configure BODY
  2305. This avoids witness message in output when running configure --help,
  2306. while sending the message to config.log for other configure runs.
  2307. - zz40-xc-ovr.m4: truly do version conditional overriding
  2308. - version conditional overriding
  2309. - catch unexpanded XC macros
  2310. - fix double words in comments
  2311. - zz40-xc-ovr.m4: fix variable assignment of subshell output bashism
  2312. Tor Arntsen analyzed and reported the issue.
  2313. URL: http://curl.haxx.se/mail/lib-2013-01/0306.html
  2314. - zz40-xc-ovr.m4: reinstate strict AC_REQUIRE macro dependencies
  2315. - zz40-xc-ovr.m4: avoid double single-quote usage
  2316. - zz40-xc-ovr.m4: parentheses balancing of 'case' statements
  2317. m4 quadrigraph shell comment technique allows proper autoconf
  2318. parentheses balancing in shell 'case' statements. The presence
  2319. of unbalanced parentheses may otherwise trigger expansion bugs.
  2320. - zz40-xc-ovr.m4: internals overhauling
  2321. - Update comments
  2322. - Execute commands in subshells
  2323. - Faster path separator check
  2324. - Fix missing 'test' command
  2325. - Rename private macros
  2326. - Minimize AC_REQUIRE usage
  2327. - zz40-xc-ovr.m4: redirect errors and warnings to stderr
  2328. - configure: use XC_CONFIGURE_PREAMBLE early checks
  2329. Some basic checks we make were placed early enough in generated
  2330. configure script when using autoconf 2.5X versions. Newer autoconf
  2331. versions expand these checks much further into the configure script,
  2332. rendering them useless. Using XC_CONFIGURE_PREAMBLE fixes placement
  2333. of early intended checks across all our autoconf supported versions.
  2334. - zz40-xc-ovr.m4: provide XC_CONFIGURE_PREAMBLE macro
  2335. - configure: autotools compatibility fixes - step I
  2336. Fix proper macro expansion order across autotools versions for
  2337. C compiler and preprocessor program checks.
  2338. - configure: fix automake 1.13 compatibility
  2339. Tested with:
  2340. buildconf: autoconf version 2.69
  2341. buildconf: autom4te version 2.69
  2342. buildconf: autoheader version 2.69
  2343. buildconf: automake version 1.13.1
  2344. buildconf: aclocal version 1.13.1
  2345. buildconf: libtool version 2.4
  2346. buildconf: GNU m4 version 1.4.16
  2347. - ares_private.h: use again memdebug.h instead of curl_memdebug.h
  2348. - configure.ac: replace AM_CONFIG_HEADER with AC_CONFIG_HEADERS
  2349. automake 1.13 errors if AM_CONFIG_HEADER is used in configure script.
  2350. - cares-override.m4: provide AC_CONFIG_MACRO_DIR definition conditionally
  2351. Provide a 'traceable' AC_CONFIG_MACRO_DIR definition only when using
  2352. an autoconf version that does not provide it, instead of what we were
  2353. doing up to now of providing and overriding AC_CONFIG_MACRO_DIR for
  2354. all autoconf versions.
  2355. - ares_private.h: use curl_memdebug.h instead of memdebug.h
  2356. - vc6cares.dsp: add ares_create_query.c and ares_parse_soa_reply.c
  2357. - cares-functions.m4: improve gethostname arg 2 data type check
  2358. - setup_once.h: HP-UX specific 'bool', 'false' and 'true' definitions.
  2359. Also reverts commit bceb40095a
  2360. - configure: check if compiler halts on function prototype mismatch
  2361. - cares-functions.m4: add gethostname arg 2 data type check and definition
  2362. - cares-functions.m4: update thread-safeness detection of getaddrinfo()
  2363. Take in account that POSIX standard Issue 7 drops h_errno support. Now, we also
  2364. consider getaddrinfo() to be thread-safe when (_POSIX_C_SOURCE >= 200809L) or
  2365. (_XOPEN_SOURCE >= 700) independently of whether h_errno exists or not.
  2366. Take in account that h_errno might be a modifiable lvalue not defined as
  2367. a C preprocessor macro.
  2368. - setup_once.h: HP-UX <sys/socket.h> issue workaround
  2369. Issue: When building a 32bit target with large file support HP-UX
  2370. <sys/socket.h> header file may simultaneously provide two different
  2371. sets of declarations for sendfile and sendpath functions, one with
  2372. static and another with external linkage. Given that we do not use
  2373. mentioned functions we really don't care which linkage is the
  2374. appropriate one, but on the other hand, the double declaration emmits
  2375. warnings when using the HP-UX compiler and errors when using modern
  2376. gcc versions resulting in fatal compilation errors.
  2377. Mentioned issue is now fixed as long as we don't use sendfile nor
  2378. sendpath functions.
  2379. - setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>
  2380. Inclusion of these two header files now done in setup_once.h
  2381. - Header inclusion clean-up
  2382. Remove header inclusions already done in setup_once.h
  2383. - setup_once.h: HP-UX specific TRUE and FALSE definitions
  2384. Some HP-UX system headers require TRUE defined to 1 and FALSE to 0.
  2385. - ares_timeout.c: fix compiler warning
  2386. - ares_create_query.c: IRIX compilation fix
  2387. - c-ares/nameser.h: add some T_* defines for ns_t_* values
  2388. Daniel Stenberg (7 Nov 2012)
  2389. - Revert "ares_parse_aaaa_reply: fix memory leak"
  2390. This reverts commit 50f25d8a4b2d16f4c5e0ef620238688b7a315c7a.
  2391. - ares_parse_aaaa_reply: fix memory leak
  2392. an allocated buffer was not freed in the successful case.
  2393. - [Gisle Vanem brought this change]
  2394. adig: perror() doesn't work for socket errors on windows
  2395. ... so print the SOCKERRNO instead
  2396. - get_DNS_AdaptersAddresses: fix IPv6 parsing
  2397. Use of the wrong define made the function not parse IPv6 addresses
  2398. properly.
  2399. Bug: http://c-ares.haxx.se/mail/c-ares-archive-2012-06/0028.shtml
  2400. Reported by: Saúl Ibarra Corretgé
  2401. - version: bumped to 1.10.0
  2402. Due to the newly added function: ares_create_query()
  2403. - AUTHORS: synced with 83093ac450
  2404. Added 21 authors since this document was last updated
  2405. - ares_create_query.3: mention when this is added
  2406. - [[email protected] brought this change]
  2407. Added new feature (rfc2671)
  2408. - code police: fix indents, < 80 columns, reflowed comments
  2409. Guenter Knauf (11 Jul 2012)
  2410. - Cleaned up version awk script.
  2411. Daniel Stenberg (30 Jun 2012)
  2412. - [Gisle Vanem brought this change]
  2413. read_udp_packets: bail out loop on bad sockets
  2414. I can see that recvfrom() in ares_process.c many times is called with
  2415. 'udp_socket' == ARES_SOCKET_BAD. The code takes care not to call
  2416. recv/recvfrom with ARES_SOCKET_BAD in the outer-loop. So should the
  2417. inner-loop.
  2418. Yang Tse (29 Jun 2012)
  2419. - cares-compilers.m4: remove -Wstrict-aliasing=3 from clang
  2420. Currently it is unknown if there is any version of clang that
  2421. actually supports -Wstrict-aliasing. What is known is that there
  2422. are several that don't support it.
  2423. - cares-compilers.m4: -Wstrict-aliasing=3 for warning enabled gcc and clang builds
  2424. Daniel Stenberg (18 Jun 2012)
  2425. - version: work towards 1.9.2 (at least)
  2426. Version 1.9.1 (18 Jun 2012)
  2427. Daniel Stenberg (18 Jun 2012)
  2428. - RELEASE-NOTES: 1.9.1 coming up
  2429. Version 1.9.0 (16 Jun 2012)
  2430. Daniel Stenberg (16 Jun 2012)
  2431. - ares_version.h: next version is 1.9.0
  2432. - [Marko Kreen brought this change]
  2433. ares_data.h: ARES_DATATYPE_SOA_REPLY is added in 1.9.0
  2434. - RELEASE-NOTES: synced with 979bf951d
  2435. Next release deemed to become 1.9.0 due to the new function
  2436. - [Marko Kreen brought this change]
  2437. SOA parser added
  2438. I need to do SOA queries, so here is a parser for them.
  2439. - ares_soa_reply: new struct
  2440. - ares_malloc_data/ares_free_soa: ARES_DATATYPE_SOA_REPLY
  2441. - ares_parse_soa_reply: actual function
  2442. Yang Tse (14 Jun 2012)
  2443. - Kill compiler warning
  2444. - Fix libcares.pc generation for static MingW* cross builds
  2445. Daniel Stenberg (21 May 2012)
  2446. - [Nick Alcock brought this change]
  2447. Fix UDP and TCP port byte order in saved options.
  2448. The UDP and TCP port are stored in network byte order in the
  2449. ares_channeldata, but are passed in to ares_init_options() in host byte
  2450. order. Thus we must return them from ares_save_options() in host byte
  2451. order too, or a duplicated channel will convert them again, leading to a
  2452. nonfunctional channel and a mysterious connection refused error from
  2453. ares_gethostbyname(). This breaks ares_dup(), thus the curl easy API
  2454. when c-ares is used by curl, and thus all the curl easy API's users.
  2455. Yang Tse (28 Apr 2012)
  2456. - version: start working on 1.8.1-DEV
  2457. Version 1.8.0 (27 Apr 2012)
  2458. Daniel Stenberg (27 Apr 2012)
  2459. - RELEASE-NOTES: call next 1.8 instead
  2460. Since we added a function, let's use a stricter bumping scheme
  2461. Yang Tse (25 Apr 2012)
  2462. - INSTALL: some adjustments
  2463. Daniel Stenberg (25 Apr 2012)
  2464. - GIT-INFO: mention buildconf
  2465. Yang Tse (25 Apr 2012)
  2466. - INSTALL: remove more sections that don't apply to c-ares
  2467. - ares_timeout.c: fix compiler warning
  2468. Daniel Stenberg (25 Apr 2012)
  2469. - [Ben Noordhuis brought this change]
  2470. Makefile.m32: fix mingw32 build
  2471. * add . to include path so ares_build.h is picked up
  2472. * make ar configurable to ease cross-compiling
  2473. - RELEASE-NOTES: added what's happened since 1.7.5
  2474. Guenter Knauf (22 Apr 2012)
  2475. - Updated copyright year.
  2476. Yang Tse (21 Apr 2012)
  2477. - ares_init.c: Further refactoring of Windows system's DNS fetching code
  2478. Guenter Knauf (20 Apr 2012)
  2479. - Android: small changes to dns property part.
  2480. Prefix prop vars; kill var; use DNS_PROP_NAME_PREFIX macro.
  2481. - Handle CNAME-only in ares_parse_aaaa_reply().
  2482. posted to the c-ares list by Peter Griess <[email protected]>.
  2483. - Add support for multiple DNS servers on Android.
  2484. Before, c-ares always used the first DNS server on Android, causing
  2485. network problems if this DNS server was not available.
  2486. Signed-off-by: Geert Uytterhoeven <[email protected]>
  2487. - Added INSTALL so it gets into tarballs.
  2488. - Added some more ifdefs to silent compiler warnings.
  2489. Yang Tse (17 Apr 2012)
  2490. - INSTALL: remove a non c-ares section
  2491. - cares-compilers.m4: -Wno-pedantic-ms-format for Windows gcc 4.5 builds
  2492. When building a Windows target with gcc 4.5 or newer and strict compiler
  2493. warnings enabled use -Wno-pedantic-ms-format in addition to other flags.
  2494. - setup_once.h: tighten requirements for stdbool.h header inclusion
  2495. Include stdbool.h only when it is available and configure is capable of
  2496. detecting a proper 'bool' data type when the header is included.
  2497. - configure: NATIVE_WINDOWS no longer defined in config file
  2498. - cares-compilers.m4: double underscore decoration for visibility attribute
  2499. - build adjustments: CARES_SYMBOL_HIDING no longer defined in config files
  2500. configure script now provides conditional definitions for Makefile.am
  2501. that result in CARES_SYMBOL_HIDING being defined by resulting makefiles
  2502. when appropriate.
  2503. - configure: Windows cross-compilation fixes
  2504. CARES_BUILDING_LIBRARY and CARES_STATICLIB no longer defined in ares_config.h,
  2505. configure will generate appropriate conditionals so that mentioned symbols
  2506. get defined and used in Makefile derived from Makefile.am at compilation time.
  2507. Guenter Knauf (17 Apr 2012)
  2508. - Added INSTALL file adapted from libcurl.
  2509. Not yet ready, and needs further edits.
  2510. Yang Tse (16 Apr 2012)
  2511. - ares_init.c: get_iphlpapi_dns_info() refactoring
  2512. Guenter Knauf (16 Apr 2012)
  2513. - Kill some more compiler warnings.
  2514. - Kill compiler warning about unused var.
  2515. - Fixed my last commit: wrong preprocessor directive.
  2516. - Check for __ANDROID__ in addition to ANDROID macro.
  2517. - Check for __ANDROID__ in addition to ANDROID macro.
  2518. Posted to c-ares list by Wayne.
  2519. - Fix for Android to disable useless arpa/nameser.h.
  2520. - Fix for Android to include sys/select.h for fd_set.
  2521. Yang Tse (17 Mar 2012)
  2522. - ares_data.c: some NAPTR related fixes
  2523. Daniel Stenberg (16 Mar 2012)
  2524. - port numbers: convert them to network order!
  2525. When the config options ARES_OPT_UDP_PORT or ARES_OPT_TCP_PORT are used,
  2526. make sure to convert them to network byte order!
  2527. Bug: http://c-ares.haxx.se/mail/c-ares-archive-2012-02/0004.shtml
  2528. - white space cleanup
  2529. - Keep code within 80 columns
  2530. - Removed funny spaces after open paren and before closing paren
  2531. - [Poul Thomas Lomholt brought this change]
  2532. get_iphlpapi_dns_info: fix buffer overrun
  2533. I experienced a buffer overrun exception in c-ares on Windows and
  2534. tracked it down to be an error in the calculation of the 'left' variable
  2535. in get_iphlpapi_dns_info().
  2536. I changed the variable type of 'left' to a _signed_ type because of the
  2537. subtraction arithmetic; not sure if a long is the best choice
  2538. - Merge pull request #7 from saghul/naptr
  2539. Added support for parsing NAPTR records
  2540. saghul (23 Feb 2012)
  2541. - Added support for parsing NAPTR records
  2542. Yang Tse (19 Jan 2012)
  2543. - ares_init.c: fix compiler warning on winsock builds
  2544. - configure: libtool 1.5 tweaks
  2545. Daniel Stenberg (19 Dec 2011)
  2546. - ares_timeout.3: fix the NAME section
  2547. It was clearly a copy n' paste error
  2548. Yang Tse (27 Sep 2011)
  2549. - [Albert Chin brought this change]
  2550. configure - m4: make CURL_CHECK_DEF ignore leading whitespace on symbol def
  2551. When using Sun C compiler the preprocessor somehow inserts an extra space
  2552. in front of replaced symbol, breaking CURL_CHECK_DEF macro. To workaround
  2553. this, macro CURL_CHECK_DEF now ignores all leading whitespace in front of
  2554. symbol substitution result.
  2555. - ares_init.c: fix segfault triggered in ares_init_options() upon previous
  2556. failure of init_by_defaults() and incomplete cleanup there.
  2557. - ares_process.c: fix compiler warning
  2558. - fix MSVC compiler warning 'conditional expression is constant'
  2559. - setup_once.h cleanup and sync
  2560. - [Denis Bilenko brought this change]
  2561. ares_getnameinfo: fix random results with c-ares 1.7.5
  2562. In ares_getnameinfo memcpy did not copy enough bytes, causing
  2563. it to return arbitrary memory contents as a result.
  2564. - warnings: fix another 'conversion may lose significant bits' compiler warning
  2565. - ares_dns.h: adjust DNS__16BIT and DNS__32BIT macro definitions
  2566. Fixing compiler warnings existing definitions triggered on these.
  2567. - ares_destroy.c: fix segfault in ares_destroy_options()
  2568. Daniel Stenberg (21 Aug 2011)
  2569. - ares_parse_srv_reply: silence compiler warnings
  2570. ... by adding ugly typecasts.
  2571. - CHANGES: generate from script
  2572. The CHANGES file is now generated automatically with 'git2changes.pl',
  2573. invoked by the maketgz script which is used to build release archives.
  2574. The former human edited CHANGES file was renamed to CHANGES.0 in git.
  2575. Yang Tse (21 Aug 2011)
  2576. - Makefile.netware: SIZEOF_SHORT definition
  2577. - warnings: fix some 'conversion may lose significant bits' compiler warnings
  2578. - configure: fix symbol hiding usability check
  2579. A more thorough test is done now in order to determine visibility attribute
  2580. usability, given that some compilers don't support visibility attribute on
  2581. all configurations.
  2582. Daniel Stenberg (16 Aug 2011)
  2583. - 1.7.6: start working...
  2584. Version 1.7.5 (16 Aug 2011)
  2585. Daniel Stenberg (16 Aug 2011)
  2586. - CHANGES: synced for 1.7.5 release
  2587. - RELEASE-NOTES: synced with bb4096effef7f000
  2588. Jakub Hrozek (15 Aug 2011)
  2589. - Only fall back to AF_INET searches when looking for AF_UNSPEC addresses
  2590. Yang Tse (10 Aug 2011)
  2591. - [Gisle Vanem brought this change]
  2592. ares_iphlpapi.h: Watcom C fix
  2593. Added "!defined(_WS2DEF_)" since Watcom doesn't have
  2594. a per type guard for the typedefs 'CSADDR_INFO' (that MingW has) or
  2595. 'SOCKET_ADDRESS' (that MSVC has). But we can use the header-guard for
  2596. <ws2def.h> instead.
  2597. - [Gisle Vanem brought this change]
  2598. Makefile.Watcom:
  2599. * The 'NTDDI_VERSION' needs to be raised to 0x05010000
  2600. in order for SOCKADDR_STORAGE etc. to be typedefed.
  2601. * Replaced '-dUSE_WATT32' with '-dWATT32'.
  2602. * Added $(DEMOS) to the 'all' target and removed the 'demos'
  2603. target to be consistent with e.g. Makefile.msvc etc.
  2604. * 'ENABLE_IPV6' is no longer used. Hence removed the '%use_ipv6' construct.
  2605. * object-file order seems to be important (Watcom v.19). Hence
  2606. 'ares_getopt.obj' must be put after the .obj that references getopt().
  2607. - cares-compilers.m4: CARES_CONVERT_INCLUDE_TO_ISYSTEM adjustments
  2608. Add CARES_CHECK_COMPILER as a requirement.
  2609. Ensure macro does nothing unless GNU_C or CLANG compiler is used.
  2610. This should allow usage of this macro in unforeseen placements.
  2611. - config-win32.h: comments adjustments - followup
  2612. - config-win32.h: comments adjustments
  2613. Daniel Stenberg (5 Aug 2011)
  2614. - [Tom Hughes brought this change]
  2615. ares_parse_a_reply: fix memleak
  2616. Yang Tse (29 Jul 2011)
  2617. - cares-functions.m4 serial # bump
  2618. - Revert "configure: additional flag checks for fcntl() and socket()"
  2619. This reverts commit 5f2a3b0e48f26d24cb1fefea0dccb92d417dcbf7.
  2620. - configure: additional flag checks for fcntl() and socket()
  2621. - xc-translit.m4 fix quoting
  2622. - configure: avoid direct usage of AS_TR_* macros
  2623. - xc-translit.m4 provides transliteration macros with well defined behavior.
  2624. Jakub Hrozek (15 Jun 2011)
  2625. - Revert "Only fall back to AF_INET searches when looking for AF_UNSPEC addresses"
  2626. This reverts commit b5823d65706af687c0e5110af8f0cfdcd068997d.
  2627. This patch was not reviewed properly before pushing
  2628. - Revert "Do not use sized constants in public headers"
  2629. This reverts commit 22c01e96f7b2ae9923e1baa50bfe3c0d22297a7d.
  2630. This is a Red Hat specific patch that does not belong into upstream
  2631. - Use correct sizeof in ares_getnameinfo()
  2632. - Do not leak rr_name on failures inside ares_parse_ptr_reply
  2633. - Do not leak rr_name on failures inside ares_parse_a_reply
  2634. - Do not leak rr_name on failures inside ares_parse_aaaa_reply
  2635. - Do not leak rr_name on failures inside ares_parse_ns_reply
  2636. - Fix incorrect sizeof() in ares_save_options
  2637. - Fix incorrect allocation in ares_parse_ptr_reply()
  2638. - Only fall back to AF_INET searches when looking for AF_UNSPEC addresses
  2639. - Do not use sized constants in public headers
  2640. Daniel Stenberg (13 Jun 2011)
  2641. - [Jakub Hrozek brought this change]
  2642. ares_free_hostent(NULL) should be a noop
  2643. Yang Tse (8 Jun 2011)
  2644. - configure: fix recvfrom 5th arg type qualifier detection (followup)
  2645. - configure: fix recvfrom 5th arg type qualifier detection
  2646. Additionally remove whitespace from EOL
  2647. Daniel Stenberg (4 Jun 2011)
  2648. - strlen: use size_t to receive the return
  2649. Yang Tse (4 Jun 2011)
  2650. - xlc: avoid preprocessor definition usage when linking
  2651. - ares_nowarn: icc 9.1 workaround
  2652. - ares_nowarn: header inclusion fix
  2653. - ares_init: make ares_private.h last included header again
  2654. - compiler warning: fix
  2655. Fix compiler warning: conversion may lose significant bits
  2656. - compiler warning: fix
  2657. Fix compiler warning: variable was set but never used
  2658. Fix compiler warning: clobber ignored
  2659. - ares_iphlpapi: fix compiler warnings
  2660. - winsock: compilation fixes
  2661. Provide winsock iphlpapi alternative definitions to prevent compilation
  2662. failures when using a variety of winsock header implementations.
  2663. Daniel Stenberg (17 May 2011)
  2664. - [David Stuart brought this change]
  2665. IPv6-on-windows: find DNS servers correctly
  2666. - man pages: docs for the c-ares utility programs
  2667. - ares_parse_ns_reply.c: remove CVSism
  2668. Yang Tse (27 Mar 2011)
  2669. - build: fix header inclusion
  2670. - getservbyport replacement for Win CE
  2671. - renamed getplatform() to ares__getplatform() to avoid namespace pollution
  2672. - configure: fix libtool warning
  2673. Recent versions of libtool are now tracing usage of AC_CONFIG_MACRO_DIR
  2674. macro and warn heavily when not used in configure script along with
  2675. ACLOCAL_AMFLAGS in Makefile.am. So in order to make libtool happy
  2676. while keeping backwards compatibility this is added.
  2677. - adig: RFC4034 resource record type detection
  2678. Can be tested with: adig -s 8.8.8.8 -t ANY example.com
  2679. - nameser.h: RFC4034 resource record type definitions
  2680. - build: move platform stuff to ares_platform.c and ares_platform.h
  2681. - build: find out windows platform using GetVersionEx()
  2682. - build: use getenv() replacement function for systems which lack it
  2683. - setup_once: system error codes for Windows CE
  2684. - ares_search: use ERRNO macro for portability sake
  2685. - System's errno.h inclusion cleanup follow-up.
  2686. System's errno.h is conditionally included from setup_once.h
  2687. - Windows CE specific adjustment
  2688. All versions of Windows CE support Winsock 1.1
  2689. - System's errno.h inclusion cleanup.
  2690. System's errno.h is conditionally included from setup_once.h
  2691. - ares_init: fix gethostname error detection on winsock platforms
  2692. - configure: r-enable temporarily disabled detection of system's inet_ntop()
  2693. Detection was temporarily disabled in commit 674e044ccb21f2f63537da53565fce868f
  2694. Daniel Stenberg (15 Mar 2011)
  2695. - configure: stop using the deprecated AM_INIT_AUTOMAKE syntax
  2696. - [Gisle Vanem brought this change]
  2697. Watt-32: use errno
  2698. Make sure Watt-32 programs use 'errno' even on Win32 targets
  2699. Guenter Knauf (18 Feb 2011)
  2700. - Removed commented CLFAGS no longer needed.
  2701. - Fixed CFLAGS for NetWare.
  2702. Added -m32 to enable compilation with x86_64 compilers;
  2703. added conditional to set -fpcc-struct-return only for gcc compiler.
  2704. Daniel Stenberg (18 Feb 2011)
  2705. - [Gisle Vanem brought this change]
  2706. Watt32: fix server init
  2707. Somewhere in the process, programs using the Watt-32 tcp/ip stack
  2708. stopped working.
  2709. - [Dima Tisnek brought this change]
  2710. config_sortlist: (win32) missing else
  2711. Without an else there, contents of "pat" that could have been
  2712. successfully set just above, may be clobbered by successive unsuccessful
  2713. calls to "xxx_pton" or "ip_addr".
  2714. Yang Tse (17 Jan 2011)
  2715. - Makefile.msvc: add a couple of VS version strings
  2716. - Makefile.msvc: add a couple of VS version strings
  2717. - build: add install target to Makefile.msvc
  2718. Daniel Stenberg (27 Dec 2010)
  2719. - ares_set_servers_csv: remove unused variables
  2720. - init_by_resolv_conf: fix compiler warnings
  2721. The code received the return codes in the 'status' variable without
  2722. using it. Instead we just ignore those particular errors.
  2723. - getv4: Value stored to 'dst' is never read
  2724. - advance_tcp_send_queue: avoid NULL ptr dereference
  2725. If given a too large 'num_bytes' value, it would cause a NULL ptr
  2726. dereference. Instead the code will now break out of the loop at the end
  2727. of the list.
  2728. - [Peter Pentchev brought this change]
  2729. configure: fix a bashism
  2730. - cleanup: avoid unsafe typecasts
  2731. Avoid the risk of reading 16bit data from an unaligned address by using
  2732. a macro that is adapted for this.
  2733. - [Stefan Bühler brought this change]
  2734. ares_expand_name: Fix encoded length for indirect root
  2735. Yang Tse (18 Dec 2010)
  2736. - build: add some explicit file references to VS project files
  2737. - config-win32: provide HAVE_ASSERT_H definition
  2738. - build: include ares_nowarn in sample program VS project files
  2739. - build: include ares_nowarn among SAMPLESOURCES and SAMPLEHEADERS
  2740. - configure: temporarily disable detection of system's inet_ntop()
  2741. This is done to allow compilation of ares_inet_ntop() by some daily
  2742. builds picky compilers that otherwise do not need this function.
  2743. - changes: mention last fix
  2744. - ares_inet_ntop: remove definition and usage of macro SPRINTF
  2745. Existing definition of SPRINTF always resulted in sprintf() being used,
  2746. and sprintf() returning 'int' is already used throughout the library.
  2747. - ares_inet_ntop: reapply changes from previous c-ares version (III)
  2748. - Replace 'u_char' with 'unsigned char'.
  2749. - Replace 'u_int' with 'unsigned int'.
  2750. - use macros ERRNO and SET_ERRNO() for errno handling.
  2751. - ares_inet_ntop: reapply changes from previous c-ares version (II)
  2752. - Remove rcsid.
  2753. - Adjust header file inclusions.
  2754. - ares_inet_ntop used only on systems without a proper inet_ntop function.
  2755. - ares_inet_ntop: reapply changes from previous c-ares version (I)
  2756. - Replace tabs with spaces.
  2757. - Use ANSI C style for function declarations and definitions.
  2758. - Use sizeof with parentheses.
  2759. - ares_inet_ntop: fix off by one error triggering out of bounds write
  2760. ares_inet_ntop would trigger an out of bounds write when the representation
  2761. of the address required 15 characters, due to not taking in account null
  2762. termination character.
  2763. Full import of inet_ntop.c from bind-9.5.3rc1 to pull additional fixes.
  2764. - ares_nowarn: add conditional inclusion of assert.h header
  2765. - fix compiler warning: conversion may lose significant bits
  2766. - ares_inet_net_pton: fix non-rejection of some malformed literals
  2767. ares_inet_net_pton would return wrong values when excessively large,
  2768. and invalid, netmasks are used. Fixes are from bind-9.5.3rc1,
  2769. issue also described in the WLB-2008080064 advisory.
  2770. - setup_once: provide ISASCII macro
  2771. - configure: inet_net_pton function check adjustments
  2772. Define HAVE_INET_NET_PTON only when system's inet_net_pton function is IPv6
  2773. capable and is not affected by the WLB-2008080064 advisory.
  2774. HAVE_INET_NET_PTON_IPV6 is no longer defined nor used.
  2775. - ares_init: fix detection of semicolon comments in resolv.conf
  2776. File resolv.conf may either use a hash '#' or a semicolon ';' character as an
  2777. indication that the rest of the line is a comment. This fixes not recognizing
  2778. the semicolon as a valid comment indicator in resolv.conf.
  2779. - version: start working on 1.7.5
  2780. Version 1.7.4 (8 Dec 2010)
  2781. Daniel Stenberg (8 Dec 2010)
  2782. - release-preps: CHANGES and RELEASE-NOTES synced
  2783. - ares_set_local_*: added in 1.7.4, not before
  2784. Yang Tse (3 Dec 2010)
  2785. - build: provide SIZEOF_SIZE_T definition for non-configure builds
  2786. - build: config.dos renamed to config-dos.h
  2787. - build: provide SIZEOF_SIZE_T netware definition
  2788. - ares_gethostbyaddr: fix compiler warning: conversion may lose significant bits
  2789. - configure: undo using autobuilds to temporarily verify strict aliasing warnings.
  2790. - fix compiler warning: rounding, sign extension, or loss of accuracy may result
  2791. Daniel Stenberg (2 Dec 2010)
  2792. - [Ben Noordhuis brought this change]
  2793. ares_parse_a_reply: fix CNAME response parsing
  2794. Reply to a CNAME query doesn't contain addresses, causing
  2795. ares_parse_a_reply() to bail out with ARES_ENODATA
  2796. Bug: http://groups.google.com/group/nodejs/browse_thread/thread/a1268c9ea5e9ad9b
  2797. Yang Tse (1 Dec 2010)
  2798. - fix compiler warning: conversion may lose significant bits
  2799. - atoi: remove atoi usage
  2800. - ares_init: fix compiler warning: conversion may lose significant bits
  2801. - configure: fix autoconf warning
  2802. - inet_pton: fix compiler warning
  2803. - configure: use autobuilds to temporarily verify strict aliasing warnings.
  2804. Temporarily, When cross-compiling with gcc 3.0 or later, enable strict aliasing
  2805. rules and warnings. Given that cross-compiled targets autobuilds do not run the
  2806. test-suite, there is no risk of running code that violates strict aliasing rules
  2807. - ares_getnameinfo: Partially revert commit 85520d66e0ac7ac73411bc25e98769a88b2f
  2808. Upon socket address family and length validation failure return ARES_ENOTIMP
  2809. in callback again, this is the error code documented in man page and used
  2810. mostly all over the library.
  2811. - ares_getnameinfo: Validate socket address family and length.
  2812. Validate socket address family and that the socket address length is appropriate
  2813. for the specified family. Failure is reported with ARES_EBADFAMILY in callback.
  2814. - ares_getnameinfo: fix two compiler warnings
  2815. - Added another VS10 version string
  2816. - Fix GCC 4 compiler warning 'dereferencing type-punned pointer might break strict-aliasing rules'.
  2817. - Revert commit 494274e653936335c255a47599970de3df21e7c4
  2818. - configure: fix autoconf 2.68 warning: no AC_LANG_SOURCE call detected in body
  2819. - Fix compiler warning: array subscript has type 'char'
  2820. - Fix GCC 4 compiler warning 'dereferencing type-punned pointer might break strict-aliasing rules'.
  2821. - Revert following commits:
  2822. 07bc7ea79509bcc9ef6e09151e81766ed00d3392
  2823. 3392a50ea3f8573ea4b7a9d82b9833dab60cb0e9
  2824. 9912637d32c9987719a1ea12db591aee2941891c
  2825. The purpose of the whole patch was to silence a compiler warning triggered
  2826. with GCC 4 on file ares_process.c The specific compiler warning was
  2827. 'dereferencing type-punned pointer might break strict-aliasing rules'.
  2828. A simpler patch will follow to equally silence the warning.
  2829. - ares_options: reorder header inclusions to make inclusion of
  2830. ares_private.h the last included one again.
  2831. Daniel Stenberg (12 Nov 2010)
  2832. - [Patrik Thunstrom brought this change]
  2833. adig: fix NAPTR parsing
  2834. I ran across a small "issue" in your adig example.
  2835. It is simply the last part of the NAPTR record, the replacement element,
  2836. which is not a string, as currently handled in adig, but a domain name.
  2837. - ares_save_options: assignments instead of memcpy
  2838. - init_by_options: don't copy an empty sortlist
  2839. If there aren't any sort items to copy, don't bother. Without this
  2840. little precaution it would do a malloc(0) which causes undefined
  2841. behaviors and is frowned upon by curl's memdebug-system.
  2842. Guenter Knauf (3 Oct 2010)
  2843. - Minor Watcom makefile tweaks.
  2844. Daniel Stenberg (30 Sep 2010)
  2845. - [Mike Crowe brought this change]
  2846. Fix lookup with HOSTALIASES set.
  2847. ares__read_line returns ARES_EOF when it reaches the end of the
  2848. file. This will happen every time when reading to the end of the
  2849. HOSTALIASES file. Unfortunately single_domain treats this error as
  2850. being fatal.
  2851. Signed-off-by: Mike Crowe <[email protected]>
  2852. Ben Greear (24 Aug 2010)
  2853. - Add missing break that caused get_ares_servers to fail.
  2854. Reported-by: Ning Dong <[email protected]>
  2855. Signed-off-by: Ben Greear <[email protected]>
  2856. Yang Tse (11 Aug 2010)
  2857. - configure: werror related adjustments
  2858. Guenter Knauf (8 Aug 2010)
  2859. - Added copyright string to ares_version.h and make use of it in other files.
  2860. - Block created ares_build.h for NetWare to avoid usage from other platforms.
  2861. - Fix to overwrite default libname.
  2862. - Some more Watcom makefile massage ...
  2863. - Some more Watcom makefile massage ...
  2864. Ben Greear (4 Aug 2010)
  2865. - sock-addr-storage: Detect and deal with lack of .ss_family member.
  2866. AIX, at least, does not have sockaddr_storage.ss_family member.
  2867. Detect this in the configure logic and use proper #ifdefs in the
  2868. ares_process logic.
  2869. Signed-off-by: Ben Greear <[email protected]>
  2870. Tested-by: Tor Arntsen <[email protected]>
  2871. Guenter Knauf (3 Aug 2010)
  2872. - Added Watcom makefile based on libcurl's Makefile.Watcom.
  2873. Ben Greear (31 Jul 2010)
  2874. - typo: Fix compile bug for platforms that don't have sockaddr_storage.
  2875. Bug was introduced by me in previous commit.
  2876. Signed-off-by: Ben Greear <[email protected]>
  2877. - Fix aliasing warning in gcc 4.4.4 (at least).
  2878. Should be no functional change, though the code gets a bit
  2879. ugglier.
  2880. Signed-off-by: Ben Greear <[email protected]>
  2881. Daniel Stenberg (31 Jul 2010)
  2882. - ares_set_servers_csv: use ISDIGIT
  2883. The IS*() set of macros are preferred to the regular is*() functions as
  2884. they help us avoid the most common pitfalls.
  2885. Ben Greear (30 Jul 2010)
  2886. - cast arg to isdigit to int
  2887. Looks like it might silence a warning on Netware build.
  2888. Signed-off-by: Ben Greear <[email protected]>
  2889. - remove all uses of uint32_t
  2890. Previous fix forgot a few.
  2891. Signed-off-by: Ben Greear <[email protected]>
  2892. - fix signed v/s unsigned casts warning in ares_gethostbyaddr.c
  2893. Signed-off-by: Ben Greear <[email protected]>
  2894. - local-bind-fixup: Fix inet_pton warning.
  2895. Conditionally include <arpa/inet.h> for inet_pton
  2896. headers.
  2897. Signed-off-by: Ben Greear <[email protected]>
  2898. - build: Enable compiling with -Werror.
  2899. This helps find compile warnings because they simply break
  2900. the build.
  2901. To use:
  2902. ./configure --enable-warnings --enable-werror
  2903. Signed-off-by: Ben Greear <[email protected]>
  2904. - ipv6: Fix some build issues related to the local-bind feature.
  2905. Signed-off-by: Ben Greear <[email protected]>
  2906. Guenter Knauf (29 Jul 2010)
  2907. - Replaced uint32_t with unsigned int to fix broken builds on a couple of platforms.
  2908. Daniel Stenberg (18 Jul 2010)
  2909. - [Ben Greear brought this change]
  2910. local-bind: Support binding to local interface/IPs
  2911. Add 3 new functions to set the local binding for the out-going
  2912. socket connection, and add ares_set_servers_csv() to set a
  2913. list of servers at once as a comma-separated string.
  2914. Signed-off-by: Ben Greear <[email protected]>
  2915. - version: now start on 1.7.4
  2916. - [Andrew C. Morrow brought this change]
  2917. fix memory leak in ares_getnameinfo
  2918. Version 1.7.3 (11 Jun 2010)
  2919. Daniel Stenberg (11 Jun 2010)
  2920. - changelogs: updated for 1.7.3
  2921. - [BogDan Vatra brought this change]
  2922. init: allow c-ares to work on Android OS
  2923. - changelog: fill in the 1.7.2 changes
  2924. - added another pdf to ignore
  2925. Yang Tse (11 Jun 2010)
  2926. - add ares_parse_mx_reply.c to VS dsp file
  2927. Daniel Stenberg (10 Jun 2010)
  2928. - tarball: add $(CSOURCES) $(HHEADERS) to EXTRA_DIST
  2929. It's not clear to me why we need this, but we apparently may
  2930. otherwise not get all files bundled in the dist tarball.
  2931. - version: start working on 1.7.3
  2932. Version 1.7.2 (10 Jun 2010)
  2933. Daniel Stenberg (10 Jun 2010)
  2934. - RELEASE-NOTES: 1.7.2 details added
  2935. - [Jakub Hrozek brought this change]
  2936. ares_init: Last, not first instance of domain or search should win
  2937. - style: make code less than 80 columns wide
  2938. Yang Tse (31 May 2010)
  2939. - [Tor Arntsen brought this change]
  2940. improve alternative definition of bool to use enum instead of unsigned char
  2941. - fix VS2010 compiler warnings
  2942. Daniel Stenberg (18 Apr 2010)
  2943. - [Jérémy Lal brought this change]
  2944. added ares_parse_mx_reply
  2945. - repair the file mode
  2946. - remove all $Id$ lines
  2947. - remove all .cvsignore files
  2948. - spell fix
  2949. reported by Gregor Jasny on the mailing list
  2950. - [Peter Pentchev brought this change]
  2951. Fix a couple of typos and grammar nits.
  2952. - ignore the GPG signature files too
  2953. - start the journey towards 1.7.2
  2954. - no longer CVS tagging
  2955. - ignore generated PDFs
  2956. Version 1.7.1 (23 Mar 2010)
  2957. Daniel Stenberg (23 Mar 2010)
  2958. - 1.7.1
  2959. - made README the primary readme file
  2960. ... and did README.cares to contain a historic reason etc.
  2961. - s/CVS/git
  2962. - git now, not CVS
  2963. - ignore lots of generated files
  2964. - [Daniel Johnson brought this change]
  2965. Fix warnings for clang
  2966. Yang Tse (17 Mar 2010)
  2967. - replaced intel compiler option -no-ansi-alias with -fno-strict-aliasing
  2968. - update outdated serial number
  2969. - fix compiler warning
  2970. - watt32 compilation fix
  2971. - Added another VS10 version string
  2972. - fix line break
  2973. - removed usage of 's6_addr', fixing compilation issue triggered with no
  2974. longer using 'in6_addr' but only our 'ares_in6_addr' struct
  2975. Daniel Stenberg (5 Mar 2010)
  2976. - Daniel Johnson provided fixes for building with the clang compiler
  2977. Yang Tse (5 Mar 2010)
  2978. - Added IPv6 name servers support
  2979. Gisle Vanem (5 Mar 2010)
  2980. - Ops!. Readded ares_nowarn.h.
  2981. - Added ares_nowarn.c.
  2982. Yang Tse (28 Feb 2010)
  2983. - Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems
  2984. - Added ares_nowarn.* to VC6 project file
  2985. - Added SIZEOF_INT definition
  2986. - fix compiler warning
  2987. - fix compiler warning
  2988. - fix compiler warning
  2989. Daniel Stenberg (17 Feb 2010)
  2990. - ares_reinit()
  2991. - To allow an app to force a re-read of /etc/resolv.conf etc, pretty much
  2992. like the res_init() resolver function offers
  2993. - - Tommie Gannert pointed out a silly bug in ares_process_fd() since it didn't
  2994. check for broken connections like ares_process() did. Based on that, I
  2995. merged the two functions into a single generic one with two front-ends.
  2996. Yang Tse (30 Dec 2009)
  2997. - VMS specific preprocessor symbol checking adjustments
  2998. - Mention last changes
  2999. - - Fix configure_socket() to use ares_socket_t instead of int data type.
  3000. - - Where run-time error checks enabling compiler option /GZ was used it is now
  3001. replaced with equivalent /RTCsu for Visual Studio 2003 and newer versions.
  3002. - Compiler option /GX is now replaced with equivalent /EHsc for all versions.
  3003. - - Ingmar Runge noticed that Windows config-win32.h configuration file
  3004. did not include a definition for HAVE_CLOSESOCKET which resulted in
  3005. function close() being inappropriately used to close sockets.
  3006. Daniel Stenberg (30 Nov 2009)
  3007. - start working on 1.7.1
  3008. Version 1.7.0 (27 Nov 2009)
  3009. Yang Tse (27 Nov 2009)
  3010. - Preserve empty line following last target
  3011. - - Larry Lansing fixed ares_parse_srv_reply to properly parse replies
  3012. which might contain non-SRV answers, skipping over potential non-SRV
  3013. ones such as CNAMEs.
  3014. - When using icc, compile with -fpic and link with intel dynamic libraries.
  3015. - Added 'currently' in italics to insist on transient situation.
  3016. - Fix language
  3017. - Daniel wants upcoming release to be 1.7.0
  3018. - Mention last changes
  3019. - - Removed from external interface preprocessor symbol definition for
  3020. CARES_HAVE_ARES_FREE_DATA. Current functionality of ares_free_data()
  3021. makes it unnecessary.
  3022. - Added README.msvc
  3023. - Changed c-ares naming conventions when using MSVC as described in README.msvc
  3024. - - Mention other recent changes
  3025. - - Jakub Hrozek renamed addrttl and addr6ttl structs to ares_addrttl and
  3026. ares_addr6ttl in order to prevent name space pollution, along with
  3027. necessary changes to code base and man pages.This change does not break
  3028. ABI, there is no need to recompile existing applications. But existing
  3029. applications using these structs with the old name will need source code
  3030. adjustments when recompiled using c-ares 1.6.1.
  3031. - - Jakub Hrozek fixed more function prototypes in man pages to sync them
  3032. with the ones declared in ares.h
  3033. - Make configure remove the ares_build.h file included in distribution tarballs.
  3034. - Fix macro redefinition.
  3035. - Fix name space pollution.
  3036. - Allow using different extra import libraries for debug and release builds.
  3037. - Add manifest stuff to msvc makefile
  3038. - Sync man page with reality
  3039. - Add missing external API decoration for ares_set_socket_callback()
  3040. - Add ares_free_data() man page.
  3041. - - Provide in external interface preprocessor symbol definitions for
  3042. CARES_HAVE_ARES_FREE_DATA as an indication of function availability.
  3043. - Remove typecast
  3044. - Fix comment
  3045. - Add ares_data.c and ares_data.h
  3046. - Jakub Hrozek modified ares_parse_srv_reply() and ares_parse_txt_reply() API
  3047. to return a linked lists of results. These were also modified to internally
  3048. use the ares_data memory struct and as such its result must be free'ed with
  3049. ares_free_data().
  3050. - Initial support for the generic ares_free_data() function that will allow
  3051. applications to free memory allocated and returned by some c-ares funtions.
  3052. - Make usage of calloc()'s arguments consistent with rest of code base
  3053. - workaround icc 9.1 optimizer issue
  3054. - Add icc fvisibility bug test
  3055. - Fix icc 9.0 compiler warning: external definition with no prior declaration
  3056. - Fix three var names
  3057. - Add check for assert.h header file
  3058. - getaddrinfo is fully thread safe on solaris versions which
  3059. implement the function even when h_errno is not a macro.
  3060. The h_errno macro test now only done on systems for which there
  3061. is no hard coded knowledge about getaddrinfo's thread safeness.
  3062. - Remove files generated on previous buildconf/configure run
  3063. - Remove enable-thread / disable-thread configure option. These were only placebo
  3064. options. The library is always built as thread safe as possible on every system.
  3065. - Refactor how preprocessor symbol _THREAD_SAFE definition is done.
  3066. - Assume that getaddrinfo is thread safe, unless hard coded
  3067. knowledge says the contrary or h_errno is not defined.
  3068. - Related with the threadsafe capability of getaddrinfo:
  3069. - Constantine Sapuntzakis reported that Darwin 6.0 a.k.a. MAC OS X 10.2
  3070. and newer have a threadsafe getaddrinfo.
  3071. - Fix Dragonfly BSD triplet detection.
  3072. - In case the hard-coded knowledge says that getaddrinfo is threadsafe,
  3073. an additional check is done to verify that h_errno is also defined.
  3074. If h_errno isn't defined, we finally assume that it isn't threadsafe.
  3075. Jamie Lokier provided the inspiration for this extra check.
  3076. - AIX 5.2 and newer have threadsafe getaddrinfo.
  3077. Add some comments to better understand what the regex's pretend to achieve.
  3078. - HP-UX 11.11 and later have threadsafe getaddrinfo
  3079. - Check if getaddrinfo is threadsafe when function check allows it to be used
  3080. - Renamed fpGetNetworkParams and fpSystemFunction036 to avoid namespace pollution with static library
  3081. - Add kernel32.lib
  3082. - Mention last changes
  3083. - Reinstate copyright symbol lost in previous commit
  3084. - Make some strings different in resource file for debug or release builds
  3085. - Ignore more subdirs
  3086. - Fix compiler warning: conditional expression is constant
  3087. - Sync linker and resource compiler options with Makefile.msvc
  3088. - Follow Makefile.msvc subdirectory naming scheme, and sync compiler options
  3089. - Updated MSVC makefile that allows building dynamic and static
  3090. c-ares libraries in debug and release flavours.
  3091. Additionally each of the three sample programs is built against
  3092. each of the four possible c-ares libraries, generating all this
  3093. a total number of 12 executables and 4 libraries.
  3094. - Test for USE_WINSOCK since it is more restrictive than WIN32
  3095. - Make header inclusion depend on HAVE_*_H definition
  3096. - Remove unneeded preprocessor directives
  3097. - Adjust c-ares include paths for memory tracking enabled (--enable-curldebug) builds
  3098. - source files used by sample programs
  3099. - Renamed c-ares setup.h to ares_setup.h
  3100. - Adjust include paths to take in account that currently:
  3101. c-ares with --enable-curldebug uses memdebug.h from libcurl's lib subdirectory.
  3102. memdebug.h needs access to libcurl's setup.h from libcurl's lib subdirectory
  3103. and also needs access to libcurl's generated curl_config.h