CHANGES 202 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784
  1. _ _ ____ _
  2. ___| | | | _ \| |
  3. / __| | | | |_) | |
  4. | (__| |_| | _ <| |___
  5. \___|\___/|_| \_\_____|
  6. Changelog
  7. Version 7.85.0 (31 Aug 2022)
  8. Daniel Stenberg (31 Aug 2022)
  9. - RELEASE-NOTES: synced
  10. curl 7.85.0 release
  11. - THANKS: add contributors from the 7.85.0 release
  12. - getparam: correctly clean args
  13. Follow-up to bf7e887b2442783ab52
  14. The previous fix for #9128 was incomplete and caused #9397.
  15. Fixes #9397
  16. Closes #9399
  17. - zuul: remove the clang-tidy job
  18. Turns out we don't see the warnings, but the warnings right now are
  19. plain ridiculous and unhelpful so we can just as well just kill this
  20. job.
  21. Closes #9390
  22. - cmake: set feature PSL if present
  23. ... make test 1014 pass when libpsl is used.
  24. Closes #9391
  25. - lib530: simplify realloc failure exit path
  26. To make code analyzers happier
  27. Closes #9392
  28. - [Orgad Shaneh brought this change]
  29. tests: add tests for netrc login/password combinations
  30. Covers the following PRs:
  31. - #9066
  32. - #9247
  33. - #9248
  34. Closes #9256
  35. - [Orgad Shaneh brought this change]
  36. url: really use the user provided in the url when netrc entry exists
  37. If the user is specified as part of the URL, and the same user exists
  38. in .netrc, Authorization header was not sent at all.
  39. The user and password fields were assigned in conn->user and password
  40. but the user was not assigned to data->state.aptr, which is the field
  41. that is used in output_auth_headers and friends.
  42. Fix by assigning the user also to aptr.
  43. Amends commit d1237ac906ae7e3cd7a22c3a2d3a135a97edfbf5.
  44. Fixes #9243
  45. - [Orgad Shaneh brought this change]
  46. netrc: Use the password from lines without login
  47. If netrc entry has password with empty login, use it for any username.
  48. Example:
  49. .netrc:
  50. machine example.com password 123456
  51. curl -vn http://[email protected]/
  52. Fix it by initializing state_our_login to TRUE, and reset it only when
  53. finding an entry with the same host and different login.
  54. Closes #9248
  55. - [Jay Satiro brought this change]
  56. url: treat missing usernames in netrc as empty
  57. - If, after parsing netrc, there is a password with no username then
  58. set a blank username.
  59. This used to be the case prior to 7d600ad (precedes 7.82). Note
  60. parseurlandfillconn already does the same thing for URLs.
  61. Reported-by: Raivis <[email protected]>
  62. Testing-by: Domen Kožar
  63. Fixes https://github.com/curl/curl/issues/8653
  64. Closes #9334
  65. Closes #9066
  66. - test8: verify that "ctrl-byte cookies" are ignored
  67. - cookie: reject cookies with "control bytes"
  68. Rejects 0x01 - 0x1f (except 0x09) plus 0x7f
  69. Reported-by: Axel Chong
  70. Bug: https://curl.se/docs/CVE-2022-35252.html
  71. CVE-2022-35252
  72. Closes #9381
  73. - libssh: ignore deprecation warnings
  74. libssh 0.10.0 marks all SCP functions as "deprecated" which causes
  75. compiler warnings and errors in our CI jobs and elsewhere. Ignore
  76. deprecation warnings if 0.10.0 or later is found in the build.
  77. If they actually remove the functions at a later point, then someone can
  78. deal with that pain and functionality break then.
  79. Fixes #9382
  80. Closes #9383
  81. - Revert "schannel: when importing PFX, disable key persistence"
  82. This reverts commit 70d010d285315e5f1cad6bdb4953e167b069b692.
  83. Due to further reports in #9300 that indicate this commit might
  84. introduce problems.
  85. - multi: use larger dns hash table for multi interface
  86. Have curl_multi_init() use a much larger DNS hash table than used for
  87. the easy interface to scale and perform better when used with _many_
  88. host names.
  89. curl_share_init() sets an in-between size.
  90. Inspired-by: Ivan Tsybulin
  91. See #9340
  92. Closes #9376
  93. Marc Hoersken (28 Aug 2022)
  94. - CI/runtests.pl: add param for dedicated curl to talk to APIs
  95. This should make it possible to also report test failures
  96. if our freshly build curl binary is not fully functional.
  97. Reviewed-by: Daniel Stenberg
  98. Closes #9360
  99. Daniel Stenberg (27 Aug 2022)
  100. - [Jacob Tolar brought this change]
  101. openssl: add cert path in error message
  102. Closes #9349
  103. - [Jacob Tolar brought this change]
  104. cert.d: clarify that escape character works for file paths
  105. Closes #9349
  106. - gha: move over ngtcp2-gnutls CI job from zuul
  107. Closes #9331
  108. Marc Hoersken (26 Aug 2022)
  109. - cmake: add detection of threadsafe feature
  110. Avoids failing test 1014 by replicating configure checks
  111. for HAVE_ATOMIC and _WIN32_WINNT with custom CMake tests.
  112. Reviewed-by: Marcel Raad
  113. Follow up to #8680
  114. Closes #9312
  115. Daniel Stenberg (26 Aug 2022)
  116. - RELEASE-NOTES: synced
  117. Marc Hoersken (26 Aug 2022)
  118. - CI/azure: align torture shallowness with GHA
  119. There 25 is used with FTP tests skipped, and 20 for FTP tests.
  120. This should make torture tests stay within the 60min timeout.
  121. Reviewed-by: Daniel Stenberg
  122. Closes #9371
  123. - multi_wait: fix and improve Curl_poll error handling on Windows
  124. First check for errors and return CURLM_UNRECOVERABLE_POLL
  125. before moving forward and waiting on socket readiness events.
  126. Reviewed-by: Jay Satiro
  127. Reviewed-by: Marcel Raad
  128. Reported-by: Daniel Stenberg
  129. Ref: #9361
  130. Follow up to #8961
  131. Closes #9372
  132. - multi_wait: fix skipping to populate revents for extra_fds
  133. On Windows revents was not populated for extra_fds if
  134. multi_wait had to wait due to the Curl_poll pre-check
  135. not signalling any readiness. This commit fixes that.
  136. Reviewed-by: Marcel Raad
  137. Reviewed-by: Jay Satiro
  138. Closes #9361
  139. - CI/appveyor: disable TLS in msys2-native autotools builds
  140. Schannel cannot be used from msys2-native Linux-emulated builds.
  141. Reviewed-by: Marcel Raad
  142. Reviewed-by: Daniel Stenberg
  143. Follow up to #9367
  144. Closes #9370
  145. Jay Satiro (25 Aug 2022)
  146. - tests: fix http2 tests to use CRLF headers
  147. Prior to this change some tests that rely on nghttpx proxy did not use
  148. CRLF headers everywhere. A recent change in nghttp2, which updated its
  149. version of llhttp (HTTP parser), requires curl's HTTP/1.1 test server to
  150. use CRLF headers.
  151. Ref: https://github.com/nghttp2/nghttp2/commit/9d389e8
  152. Fixes https://github.com/curl/curl/issues/9364
  153. Closes https://github.com/curl/curl/pull/9365
  154. Daniel Stenberg (25 Aug 2022)
  155. - [rcombs brought this change]
  156. multi: use a pipe instead of a socketpair on apple platforms
  157. Sockets may be shut down by the kernel when the app is moved to the
  158. background, but pipes are not.
  159. Removed from KNOWN_BUGS
  160. Fixes #6132
  161. Closes #9368
  162. - [Somnath Kundu brought this change]
  163. libssh2: provide symlink name in SFTP dir listing
  164. When reading the symbolic link name for a file, we need to add the file
  165. name to base path name.
  166. Closes #9369
  167. - configure: if asked to use TLS, fail if no TLS lib was detected
  168. Previously the configure script would just warn about this fact and
  169. continue with TLS disabled build which is not always helpful. TLS should
  170. be explicitly disabled if that is what the user wants.
  171. Closes #9367
  172. - [Dustin Howett brought this change]
  173. schannel: when importing PFX, disable key persistence
  174. By default, the PFXImportCertStore API persists the key in the user's
  175. key store (as though the certificate was being imported for permanent,
  176. ongoing use.)
  177. The documentation specifies that keys that are not to be persisted
  178. should be imported with the flag `PKCS12_NO_PERSIST_KEY`.
  179. NOTE: this flag is only supported on versions of Windows newer than XP
  180. and Server 2003.
  181. Fixes #9300
  182. Closes #9363
  183. - unit1303: four tests should have TRUE for 'connecting'
  184. To match the comments.
  185. Reported-by: Wu Zheng
  186. See #9355
  187. Closes #9356
  188. - CURLOPT_BUFFERSIZE.3: add upload buffersize to see also
  189. Closes #9354
  190. - [Fabian Fischer brought this change]
  191. HTTP3.md: add missing autoreconf command for building with wolfssl
  192. Closes #9353
  193. - RELEASE-NOTES: synced
  194. - multi: have curl_multi_remove_handle close CONNECT_ONLY transfer
  195. Ẃhen it has been used in the multi interface, it is otherwise left in
  196. the connection cache, can't be reused and nothing will close them since
  197. the easy handle loses the association with the multi handle and thus the
  198. connection cache - until the multi handle is closed or it gets pruned
  199. because the cache is full.
  200. Reported-by: Dominik Thalhammer
  201. Fixes #9335
  202. Closes #9342
  203. - docs/cmdline-opts: remove \& escapes from all .d files
  204. gen.pl escapes them itself now
  205. - docs/cmdline-opts/gen.pl: encode leading single and double quotes
  206. As "(aq" and "(dq" to prevent them from implying a meaning in the nroff
  207. output. This removes the need for using \& escapes in the .d files'
  208. description parts.
  209. Closes #9352
  210. Marc Hoersken (23 Aug 2022)
  211. - tests/server/sockfilt.c: avoid race condition without a mutex
  212. Avoid loosing any triggered handles by first aborting and joining
  213. the waiting threads before evaluating the individual signal state.
  214. This removes the race condition and therefore need for a mutex.
  215. Closes #9023
  216. Daniel Stenberg (22 Aug 2022)
  217. - [Emil Engler brought this change]
  218. url: output the maximum when rejecting a url
  219. This commit changes the failf message to output the maximum length, when
  220. curl refuses to process a URL because it is too long.
  221. See: #9317
  222. Closes: #9327
  223. - [Chris Paulson-Ellis brought this change]
  224. configure: fix broken m4 syntax in TLS options
  225. Commit b589696f added lines to some shell within AC_ARG_WITH macros, but
  226. inadvertently failed to move the final closing ).
  227. Quote the script section using braces.
  228. So, if these problems have been around for a while, how did I find them?
  229. Only because I did a configure including these options:
  230. $ ./configure --with-openssl --without-rustls
  231. SSL: enabled (OpenSSL)
  232. Closes #9344
  233. - tests/data/CMakeLists: remove making the 'show' makefile target
  234. It is not used by runtests since 3c0f462
  235. Closes #9333
  236. - tests/data/Makefile: remove 'filecheck' target
  237. No practical use anymore since 3c0f4622cdfd6
  238. Closes #9332
  239. - libssh2: make atime/mtime date overflow return error
  240. Closes #9328
  241. - libssh: make atime/mtime date overflow return error
  242. Closes #9328
  243. - examples/curlx.c: remove
  244. This example is a bit convoluted to use as an example, combined with the
  245. special license for it makes it unsuitable.
  246. Closes #9330
  247. - [Tobias Nygren brought this change]
  248. curl.h: include <sys/select.h> on SunOS
  249. It is needed for fd_set to be visible to downstream consumers that use
  250. <curl/multi.h>. Header is known to exist at least as far back as Solaris
  251. 2.6.
  252. Closes #9329
  253. - DEPRECATE.md: push the NSS deprecation date forward one year to 2023
  254. URL: https://curl.se/mail/lib-2022-08/0016.html
  255. - libssh2: setting atime or mtime >32bit on 4-bytes-long systems
  256. Since the libssh2 API uses 'long' to store the timestamp, it cannot
  257. transfer >32bit times on Windows and 32bit architecture builds.
  258. Avoid nasty surprises by instead not setting such time.
  259. Spotted by Coverity
  260. Closes #9325
  261. - libssh: setting atime or mtime > 32bit is now just skipped
  262. The libssh API used caps the time to an unsigned 32bit variable. Avoid
  263. nasty surprises by instead not setting such time.
  264. Spotted by Coverity.
  265. Closes #9324
  266. Jay Satiro (16 Aug 2022)
  267. - KNOWN_BUGS: Windows Unicode builds use homedir in current locale
  268. Bug: https://github.com/curl/curl/pull/7252
  269. Reported-by: [email protected]
  270. Ref: https://github.com/curl/curl/pull/7281
  271. Closes https://github.com/curl/curl/pull/9305
  272. Daniel Stenberg (16 Aug 2022)
  273. - test399: switch it to use a config file instead
  274. ... as using a 65535 bytes host name in a URL does not fit on the
  275. command line on some systems - like Windows.
  276. Reported-by: Marcel Raad
  277. Fixes #9321
  278. Closes #9322
  279. - RELEASE-NOTES: synced
  280. - asyn-ares: make a single alloc out of hostname + async data
  281. This saves one alloc per name resolve and simplifies the exit path.
  282. Closes #9310
  283. - Curl_close: call Curl_resolver_cancel to avoid memory-leak
  284. There might be a pending (c-ares) resolve that isn't free'd up yet.
  285. Closes #9310
  286. - asyn-thread: fix socket leak on OOM
  287. Closes #9310
  288. - GHA: mv CI torture test from Zuul
  289. Closes #9310
  290. - ngtcp2-wolfssl.yml: add GHA to build ngtcp2 + wolfSSL
  291. Closes #9318
  292. - test399: verify check of too long host name
  293. - url: reject URLs with hostnames longer than 65535 bytes
  294. It *probably* causes other problems too since DNS can't resolve such
  295. long names, but the SNI field in TLS is limited to 16 bits length.
  296. Closes #9317
  297. - curl_multi_perform.3: minor language fix
  298. Closes #9316
  299. - ngtcp2: fix picky compiler warnings with wolfSSL for QUIC
  300. Follow-up to 8a13be227eede2
  301. Closes #9315
  302. - ngtcp2: remove leftover variable
  303. Mistake leftover from my edit before push.
  304. Follow-up from 8a13be227eede2601c2b3b
  305. Reported-by: Viktor Szakats
  306. Bug: https://github.com/curl/curl/pull/9290#issuecomment-1214569167
  307. Viktor Szakats (15 Aug 2022)
  308. - Makefile.m32: allow -nghttp3/-ngtcp2 without -ssl [ci skip]
  309. Before this patch `-nghttp3`/`-ngtcp2` had an effect only when `-ssl`
  310. was also enabled. `-ssl` meaning OpenSSL (and its forks). After
  311. 8a13be227eede2601c2b3b1c63e08b3dc9b35dd5 nghttp3/ngtcp2 can also be
  312. used together with wolfSSL. This patch adds the ability to enable
  313. `-nghttp3`/`-ngtcp2` independently from `-ssl` (OpenSSL), allowing to
  314. use it with wolfSSL or other, future TLS backends.
  315. Before this patch, it was fine to enable `-nghttp3`/`-ngtcp2`
  316. unconditionally. After this patch, this is no longer the case, and now
  317. it's the user's responsibility to enable `-nghttp3`/`-ngtcp2` only
  318. together with a compatible TLS backend.
  319. When using a TLS backend other than OpenSSL, the TLS-specific ngtcp2
  320. library must be configured manually, e.g.:
  321. `export CURL_LDFLAG_EXTRAS=-lngtcp2_crypto_wolfssl`
  322. (or via `NGTCP2_LIBS`)
  323. Closes #9314
  324. Daniel Stenberg (15 Aug 2022)
  325. - [Stefan Eissing brought this change]
  326. quic: add support via wolfSSL
  327. - based on ngtcp2 PR https://github.com/ngtcp2/ngtcp2/pull/505
  328. - configure adapted to build against ngtcp2 wolfssl crypto lib
  329. - quic code added for creation of WOLFSSL* instances
  330. Closes #9290
  331. Marcel Raad (14 Aug 2022)
  332. - [David Carlier brought this change]
  333. memdebug: add annotation attributes
  334. memory debug tracking annotates whether the returned pointer does not
  335. `alias`, hints where the size required is, for Windows to be better
  336. debugged via Visual Studio.
  337. Closes https://github.com/curl/curl/pull/9306
  338. Daniel Stenberg (14 Aug 2022)
  339. - GHA: move libressl CI from zuul to GitHub
  340. Closes #9309
  341. - KNOWN_BUGS: FTPS directory listing hangs on Windows with Schannel
  342. Closes #9161
  343. - KNOWN_BUGS: CURLOPT_CERTINFO results in CURLE_OUT_OF_MEMORY with Schannel
  344. Closes #8741
  345. - KNOWN_BUGS: libssh blocking and infinite loop problem
  346. Closes #8632
  347. - RELEASE-NOTES: synced
  348. - msh3: fix the QUIC disconnect function
  349. And free request related memory better in 'done'. Fixes a memory-leak.
  350. Reported-by: Gisle Vanem
  351. Fixes #8915
  352. Closes #9304
  353. - connect: close the happy eyeballs loser connection when using QUIC
  354. Reviewed-by: Nick Banks
  355. Closes #9303
  356. - [Emil Engler brought this change]
  357. refactor: split resolve_server() into functions
  358. This commit splits the branch-heavy resolve_server() function into
  359. various sub-functions, in order to reduce the amount of nested
  360. if/else-statements.
  361. Beside this, it also removes many else-sequences, by returning in the
  362. previous if-statement.
  363. Closes #9283
  364. - schannel: re-indent to use curl style better
  365. Only white space changes
  366. Closes #9301
  367. - [Emanuele Torre brought this change]
  368. docs/cmdline-opts: fix example and categories for --form-escape
  369. The example was missing a "--form" argument
  370. I also replaced "--form" with "-F" to shorten the line a bit since it
  371. was already very long.
  372. And I also moved --form-escape from the "post" category to the "upload"
  373. category (this is what I originally wanted to fix, before also noticing
  374. the mistake in the example).
  375. Closes #9298
  376. - [Nick Banks brought this change]
  377. HTTP3.md: update to msh3 v0.4.0
  378. Closes #9297
  379. - hostip: resolve *.localhost to 127.0.0.1/::1
  380. Following the footsteps of other clients like Firefox/Chrome. RFC 6761
  381. says clients SHOULD do this.
  382. Add test 389 to verify.
  383. Reported-by: TheKnarf on github
  384. Fixes #9192
  385. Closes #9296
  386. Jay Satiro (11 Aug 2022)
  387. - KNOWN_BUGS: long paths are not fully supported on Windows
  388. Bug: https://github.com/curl/curl/issues/8361
  389. Reported-by: Gisle Vanem
  390. Closes https://github.com/curl/curl/pull/9288
  391. Daniel Stenberg (11 Aug 2022)
  392. - config: remove the check for and use of SIZEOF_SHORT
  393. shorts are 2 bytes on all platforms curl runs and have ever run on.
  394. Closes #9291
  395. - configure: introduce CURL_SIZEOF
  396. This is a rewrite of the previously used GPLv3+exception licensed
  397. file. With this change, there is no more reference to GPL so we can
  398. remove that from LICENSES/.
  399. Ref: #9220
  400. Closes #9291
  401. - [Sean McArthur brought this change]
  402. hyper: customize test1274 to how hyper unfolds headers
  403. Closes #9217
  404. - [Orgad Shaneh brought this change]
  405. curl-config: quote directories with potential space
  406. On Windows (at least with CMake), the default prefix is
  407. C:/Program Files (x86)/CURL.
  408. Closes #9253
  409. - [Oliver Roberts brought this change]
  410. amigaos: fix threaded resolver on AmigaOS 4.x
  411. Replace ip4 resolution function on AmigaOS 4.x, as it requires runtime
  412. feature detection and extra code to make it thread safe.
  413. Closes #9265
  414. - [Emil Engler brought this change]
  415. imap: use ISALNUM() for alphanumeric checks
  416. This commit replaces a self-made character check for alphanumeric
  417. characters within imap_is_bchar() with the ISALNUM() macro, as it is
  418. reduces the size of the code and makes the performance better, due to
  419. ASCII arithmetic.
  420. Closes #9289
  421. - RELEASE-NOTES: synced
  422. - [Cering on github brought this change]
  423. connect: add quic connection information
  424. Fixes #9286
  425. Closes #9287
  426. - [Philip H brought this change]
  427. cirrus/freebsd-ci: bootstrap the pip installer
  428. Signed-off-by: Philip H <[email protected]>
  429. Closes #9213
  430. - urldata: move smaller fields down in connectdata struct
  431. By (almost) sorting the struct fields in connectdata in a decending size
  432. order, having the single char ones last, we reduce the number of holes
  433. in the struct and thus the amount of storage needed.
  434. Closes #9280
  435. - ldap: adapt to conn->port now being an 'int'
  436. Remove typecasts. Fix printf() formats.
  437. Follow-up from 764c6bd3bf.
  438. Pointed out by Coverity CID 1507858.
  439. Closes #9281
  440. - KNOWN_BUGS: Negotiate authentication against Hadoop HDFS
  441. Closes #8264
  442. - [Oliver Roberts brought this change]
  443. file: add handling of native AmigaOS paths
  444. On AmigaOS 4.x, handle native absolute paths, whilst blocking relative
  445. paths. Also allow unix style paths if feature enabled at link time.
  446. Inspiration-from: Michael Trebilcock
  447. Closes #9259
  448. - KNOWN_BUGS: cmake build is not thread-safe
  449. The cmake build does not check for and verify presence of a working
  450. Atomic type, which then makes curl_global_init() to not build
  451. thread-safe on non-Windows platforms.
  452. Closes https://github.com/curl/curl/issues/8973
  453. Closes https://github.com/curl/curl/pull/8982
  454. - [Oliver Roberts brought this change]
  455. configure: fixup bsdsocket detection code for AmigaOS 4.x
  456. The code that detects bsdsocket.library for AmigaOS did not work
  457. for AmigaOS 4.x. This has been fixed and also cleaned up a little
  458. to reduce duplication. Wasn't technically necessary before, but is
  459. required when building with AmiSSL instead of OpenSSL.
  460. Closes #9268
  461. - [Oliver Roberts brought this change]
  462. tool: reintroduce set file comment code for AmigaOS
  463. Amiga specific code which put the URL in the file comment was perhaps
  464. accidentally removed in b88940850002a3f1c25bc6488b95ad30eb80d696 having
  465. originally been added in 5c215bdbdfde8b2350cdcbac82aae0c914da5314.
  466. Reworked to fit the code changes and added it back in.
  467. Reported-by: Michael Trebilcock
  468. Originally-added-by: Chris Young
  469. Closes #9258
  470. - urldata: make 'negnpn' use less storage
  471. The connectdata struct field 'negnpn' never holds a value larger than
  472. 30, so an unsigned char saves 3 bytes struct space.
  473. Closes #9279
  474. - urldata: make three *_proto struct fields smaller
  475. Use 'unsigned char' for storage instead of the enum, for three GSSAPI
  476. related fields in the connectdata struct.
  477. Closes #9278
  478. - connect: set socktype/protocol correctly
  479. So that an address used from the DNS cache that was previously used for
  480. QUIC can be reused for TCP and vice versa.
  481. To make this possible, set conn->transport to "unix" for unix domain
  482. connections ... and store the transport struct field in an unsigned char
  483. to use less space.
  484. Reported-by: ウさん
  485. Fixes #9274
  486. Closes #9276
  487. - [Oliver Roberts brought this change]
  488. amissl: allow AmiSSL to be used with AmigaOS 4.x builds
  489. Enable AmiSSL to be used instead of static OpenSSL link libraries.
  490. for AmigaOS 4.x, as it already is in the AmigaOS 3.x build.
  491. Closes #9269
  492. - [opensignature on github brought this change]
  493. openssl: add details to "unable to set client certificate" error
  494. from: "curl: (58) unable to set client certificate"
  495. to: curl: (58) unable to set client certificate [error:0A00018F:SSL
  496. routines::ee key too small]
  497. Closes #9228
  498. - [Oliver Roberts brought this change]
  499. amissl: make AmiSSL v5 a minimum requirement
  500. AmiSSL v5 is the latest version, featuring a port of OpenSSL 3.0.
  501. Support for previous OpenSSL 1.1.x versions has been dropped, so
  502. makes sense to enforce v5 as the minimum requirement. This also
  503. allows all the AmiSSL stub workarounds to be removed as they are
  504. now provided in a link library in the AmiSSL SDK.
  505. Closes #9267
  506. - [Oliver Roberts brought this change]
  507. configure: -pthread not available on AmigaOS 4.x
  508. The most recent GCC builds for AmigaOS 4.x do not allow -pthread and
  509. exit with an error. Instead, need to explictly specify -lpthread.
  510. Closes #9266
  511. - digest: pass over leading spaces in qop values
  512. When parsing the "qop=" parameter of the digest authentication, and the
  513. value is provided within quotes, the list of values can have leading
  514. white space which the parser previously did not handle correctly.
  515. Add test case 388 to verify.
  516. Reported-by: vlubart on github
  517. Fixes #9264
  518. Closes #9270
  519. - [Evgeny Grin (Karlson2k) brought this change]
  520. digest: reject broken header with session protocol but without qop
  521. Closes #9077
  522. - CURLINFO_SPEED_UPLOAD/DOWNLOAD.3: fix examples
  523. Reported-by: jvvprasad78 on github
  524. Assisted-by: Jay Satiro
  525. Fixes #9239
  526. Closes #9241
  527. - [Fabian Keil brought this change]
  528. test44[2-4]: add '--resolve' to the keywords
  529. ... so the tests can be automatically skipped when
  530. using an external proxy like Privoxy.
  531. Closes #9250
  532. - RELEASE-NOTES: synced
  533. - CURLOPT_CONNECT_ONLY.3: clarify multi API use
  534. Reported-by: Maxim Ivanov
  535. Fixes #9244
  536. Closes #9262
  537. - [Andrew Lambert brought this change]
  538. curl_easy_header: Add CURLH_PSEUDO to sanity check
  539. Fixes #9235
  540. Closes #9236
  541. - [Emil Engler brought this change]
  542. docs: add dns category to --resolve
  543. This commit adds the dns category to the --resolve command line option,
  544. because it can be interpreted as both: a low-level connection option and
  545. an option related to the resolving of a hostname.
  546. It is also not common for dns options to belong to the connection
  547. category and vice versa. --ipv4 and --ipv6 are both good examples.
  548. Closes #9229
  549. Jay Satiro (2 Aug 2022)
  550. - [Wyatt O'Day brought this change]
  551. schannel: Add TLS 1.3 support
  552. - Support TLS 1.3 as the default max TLS version for Windows Server 2022
  553. and Windows 11.
  554. - Support specifying TLS 1.3 ciphers via existing option
  555. CURLOPT_TLS13_CIPHERS (tool: --tls13-ciphers).
  556. Closes https://github.com/curl/curl/pull/8419
  557. Daniel Stenberg (2 Aug 2022)
  558. - [Emil Engler brought this change]
  559. cmdline-opts/gen.pl: improve performance
  560. On some systems, the gen.pl script takes nearly two minutes for the
  561. generation of the main-page, which is a completely unacceptable time.
  562. The slow performance has two causes:
  563. 1. Use of a regex locale operator
  564. 2. Useless invokations of loops
  565. The commit addresses the first issue by replacing the "\W" wiht
  566. [^a-zA-Z0-9_], which is, according to regex101.com, functionally
  567. equivalent to the previous operation, except that it is obviously
  568. limited to ASCII only, which is fine, as the curl project is
  569. English-only anyway.
  570. The second issue is being addressed by only running the loop if the line
  571. contains a "--" in it. The loop may be completeley removed in the
  572. future.
  573. Co-authored-by: Emanuele Torre <[email protected]>
  574. See #8299
  575. Fixes #9230
  576. Closes #9232
  577. - docs/cmdline: mark fail and fail-with-body as mutually exclusive
  578. Reported-by: Andreas Sommer
  579. Fixes #9221
  580. Closes #9222
  581. - [Nao Yonashiro brought this change]
  582. quiche: fix build failure
  583. Reviewed-by: Alessandro Ghedini
  584. Closes #9223
  585. Viktor Szakats (2 Aug 2022)
  586. - configure.ac: drop references to deleted functions
  587. follow-up from 4d73854462f30948acab12984b611e9e33ee41e6
  588. Reported-by: Oliver Roberts
  589. Fixes #9238
  590. Closes #9240
  591. Daniel Stenberg (28 Jul 2022)
  592. - [Sean McArthur brought this change]
  593. hyper: enable obs-folded multiline headers
  594. Closes #9216
  595. - connect: revert the use of IP*_RECVERR
  596. The options were added in #6341 and d13179d, but cause problems: Lots of
  597. POLLIN event occurs but recvfrom read nothing.
  598. Reported-by: Tatsuhiro Tsujikawa
  599. Fixes #9209
  600. Closes #9215
  601. - [Marco Kamner brought this change]
  602. docs: remove him/her/he/she from documentation
  603. Closes #9208
  604. - RELEASE-NOTES: synced
  605. - tool_getparam: make --doh-url "" switch it off
  606. A possible future addition could be to parse the URL first too to verify
  607. that it is valid before trying to use it.
  608. Assisted-by: Jay Satiro
  609. Closes #9207
  610. - mailmap: add rzrymiak on github
  611. Jay Satiro (26 Jul 2022)
  612. - ngtcp2: Fix build error due to change in nghttp3 prototypes
  613. ngtcp2/nghttp3@4a066b2 changed nghttp3_conn_block_stream and
  614. nghttp3_conn_shutdown_stream_write return from int to void.
  615. Reported-by: [email protected]
  616. Fixes https://github.com/curl/curl/issues/9204
  617. Closes https://github.com/curl/curl/pull/9200
  618. Daniel Stenberg (26 Jul 2022)
  619. - [rzrymiak on github brought this change]
  620. BUGS.md: improve language
  621. Closes #9205
  622. - [Philip H brought this change]
  623. cirrus.yml: replace py38-pip with py39-pip
  624. Reported-by: Jay Satiro
  625. Fixes #9201
  626. Closes #9202
  627. - tool_getparam: fix cleanarg() for unicode builds
  628. Use the correct type, and make cleanarg an empty macro if the cleaning
  629. ability is absent.
  630. Fixes #9195
  631. Closes #9196
  632. Reviewed-by: Jay Satiro
  633. Reviewed-by: Marcel Raad
  634. Marc Hoersken (25 Jul 2022)
  635. - test3026: add support for Windows using native Win32 threads
  636. Reviewed-by: Viktor Szakats
  637. Reviewed-by: Jay Satiro
  638. Reviewed-by: Daniel Stenberg
  639. Follow up to 7ade9c50b35d95d47a43880c3097bebab7a7e690
  640. Closes #9012
  641. Jay Satiro (25 Jul 2022)
  642. - [Evgeny Grin (Karlson2k) brought this change]
  643. digest: fix memory leak, fix not quoted 'opaque'
  644. Fix leak regression introduced by 3a6fe0c.
  645. Closes https://github.com/curl/curl/pull/9199
  646. Daniel Stenberg (23 Jul 2022)
  647. - tests: several enumerated type cleanups
  648. To please icc
  649. Closes #9179
  650. - tool_paramhlp: fix "enumerated type mixed with another type"
  651. Warning by icc
  652. Closes #9179
  653. - tool_writeout: fix enumerated type mixed with another type
  654. Closes #9179
  655. - tool_cfgable: make 'synthetic_error' a plain bool
  656. The specific reason was not used.
  657. Closes #9179
  658. - tool_paramhlp: make check_protocol return ParameterError
  659. "enumerated type mixed with another type"
  660. Closes #9179
  661. - tool_formparse: fix variable may be used before its value is set
  662. Warning by icc
  663. Closes #9179
  664. - sendf: skip storing HTTP headers if HTTP disabled
  665. Closes #9179
  666. - url: enumerated type mixed with another type
  667. Follow-up to 1c58e7ae99ce2030213f28b
  668. Closes #9179
  669. - urldata: change second proxytype field to unsigned char to match
  670. To avoid "enumerated type mixed with another type"
  671. Closes #9179
  672. - http: typecast the httpreq assignment to avoid icc compiler warning
  673. error #188: enumerated type mixed with another type
  674. Closes #9179
  675. - urldata: make state.httpreq an unsigned char
  676. To match set.method used for the same purpose.
  677. Closes #9179
  678. - splay: avoid using -1 in unsigned variable
  679. To fix icc compiler warning integer conversion resulted in a change of sign
  680. Closes #9179
  681. - sendf: store the header type in an usigned char to avoid icc warnings
  682. Closes #9179
  683. - multi: fix the return code from Curl_pgrsDone()
  684. It does not return a CURLcode. Detected by the icc compiler warning
  685. "enumerated type mixed with another type"
  686. Closes #9179
  687. - sendf: make Curl_debug a void function
  688. As virtually no called checked the return code, and those that did
  689. wrongly treated it as a CURLcode. Detected by the icc compiler warning:
  690. enumerated type mixed with another type
  691. Closes #9179
  692. - http_chunks: remove an assign + typecast
  693. As it caused icc to complain: "pointer cast involving 64-bit pointed-to
  694. type"
  695. Closes #9179
  696. - vtls: make Curl_ssl_backend() return the enum type curl_sslbackend
  697. To fix the icc warning enumerated type mixed with another type
  698. Closes #9179
  699. - curl-compilers.m4: make icc use -diag* options and disable two warnings
  700. -wd and -we are deprecated and are now -diag-disable and -diag-error
  701. Disable warning 1024 and 2259
  702. Closes #9179
  703. - [Matthew Thompson brought this change]
  704. GHA: add two Intel compiler CI jobs
  705. Closes #9179
  706. - [Daniel Katz brought this change]
  707. curl-functions.m4: check whether atomics can link rather than just compile
  708. Some build toolchains support C11 atomics (i.e., _Atomic types), but
  709. will not link the associated atomics runtime unless a flag is passed. In
  710. such an environment, linking an application with libcurl.a can fail due
  711. to undefined symbols for atomic load/store functions.
  712. I encountered this behavior when upgrading curl to 7.84.0 and attempting
  713. to build with Solaris Studio 12.6. Solaris provides the flag
  714. -xatomic=[gcc | studio], allowing users to link to one of two atomics
  715. runtime implementations. However, if the user does not provide this
  716. flag, then neither runtime is linked. This led to builds failing in CI.
  717. Closes #9190
  718. - [Rosen Penev brought this change]
  719. curl-wolfssl.m4: add options header when building test code
  720. Needed for certain configurations of wolfSSL. Otherwise, missing header
  721. error may occur.
  722. Tested with OpenWrt.
  723. Closes #9187
  724. - ftp: use a correct expire ID for timer expiry
  725. This was an accurate error pointed out by the icc warning: enumerated
  726. type mixed with another type
  727. Ref: #9179
  728. Closes #9184
  729. - sendf: fix paused header writes since after the header API
  730. Regression since d1e4a67
  731. Reported-by: Sergey Ogryzkov
  732. Fixes #9180
  733. Closes #9182
  734. - mprintf: fix *dyn_vprintf() when out-of-memory
  735. Follow-up to 0e48ac1f99a. Torture-testing 1455 would lead to a memory
  736. leak otherwise.
  737. Closes #9185
  738. - curl-confopts: remove leftover AC_REQUIREs
  739. configure.ac:3488: warning: CURL_CHECK_FUNC_IOCTL is m4_require'd but not m4_defun'd
  740. configure.ac:3488: warning: CURL_CHECK_FUNC_SETSOCKOPT is m4_require'd but not m4_defun'd
  741. follow-up from 4d73854462f30
  742. Closes #9183
  743. - file: fix icc enumerated type mixed with another type warning
  744. Ref: #9179
  745. Closes #9181
  746. Viktor Szakats (19 Jul 2022)
  747. - tidy-up: delete unused build configuration macros
  748. Most of them feature guards:
  749. - `CURL_INCLUDES_SYS_UIO` [1]
  750. - `HAVE_ALLOCA_H` [2]
  751. - `HAVE_CRYPTO_CLEANUP_ALL_EX_DATA` (unused since de71e68000c8624ea13f90b136f8734dd0fb1bdc)
  752. - `HAVE_DLFCN_H`
  753. - `HAVE_DLOPEN`
  754. - `HAVE_DOPRNT`
  755. - `HAVE_FCNTL`
  756. - `HAVE_GETHOSTBYNAME` [3]
  757. - `HAVE_GETOPT_H`
  758. - `HAVE_GETPASS`
  759. - `HAVE_GETPROTOBYNAME`
  760. - `HAVE_GETSERVBYNAME`
  761. - `HAVE_IDN_FREE*`
  762. - `HAVE_INET_ADDR`
  763. - `HAVE_IOCTL`
  764. - `HAVE_KRB4`
  765. - `HAVE_KRB_GET_OUR_IP_FOR_REALM`
  766. - `HAVE_KRB_H`
  767. - `HAVE_LDAPSSL_H`
  768. - `HAVE_LDAP_INIT_FD`
  769. - `HAVE_LIBDL`
  770. - `HAVE_LIBNSL`
  771. - `HAVE_LIBRESOLV*`
  772. - `HAVE_LIBUCB`
  773. - `HAVE_LL`
  774. - `HAVE_LOCALTIME_R`
  775. - `HAVE_MALLOC_H`
  776. - `HAVE_MEMCPY`
  777. - `HAVE_MEMORY_H`
  778. - `HAVE_NETINET_IF_ETHER_H`
  779. - `HAVE_NI_WITHSCOPEID`
  780. - `HAVE_OPENSSL_CRYPTO_H`
  781. - `HAVE_OPENSSL_ERR_H`
  782. - `HAVE_OPENSSL_PEM_H`
  783. - `HAVE_OPENSSL_PKCS12_H`
  784. - `HAVE_OPENSSL_RAND_H`
  785. - `HAVE_OPENSSL_RSA_H`
  786. - `HAVE_OPENSSL_SSL_H`
  787. - `HAVE_OPENSSL_X509_H`
  788. - `HAVE_PEM_H`
  789. - `HAVE_POLL`
  790. - `HAVE_RAND_SCREEN`
  791. - `HAVE_RAND_STATUS`
  792. - `HAVE_RECVFROM`
  793. - `HAVE_SETSOCKOPT`
  794. - `HAVE_SETVBUF`
  795. - `HAVE_SIZEOF_LONG_DOUBLE`
  796. - `HAVE_SOCKIO_H`
  797. - `HAVE_SOCK_OPTS`
  798. - `HAVE_STDIO_H`
  799. - `HAVE_STRCASESTR`
  800. - `HAVE_STRFTIME`
  801. - `HAVE_STRLCAT`
  802. - `HAVE_STRNCMPI`
  803. - `HAVE_STRNICMP`
  804. - `HAVE_STRSTR`
  805. - `HAVE_STRUCT_IN6_ADDR`
  806. - `HAVE_TLD_H`
  807. - `HAVE_TLD_STRERROR`
  808. - `HAVE_UNAME`
  809. - `HAVE_USLEEP`
  810. - `HAVE_WINBER_H`
  811. - `HAVE_WRITEV`
  812. - `HAVE_X509_H`
  813. - `LT_OBJDIR`
  814. - `NEED_BASENAME_PROTO`
  815. - `NOT_NEED_LIBNSL`
  816. - `OPENSSL_NO_KRB5`
  817. - `RECVFROM_TYPE*`
  818. - `SIZEOF_LONG_DOUBLE`
  819. - `STRERROR_R_TYPE_ARG3`
  820. - `USE_YASSLEMUL`
  821. - `_USRDLL` (from CMake) [4]
  822. [1] Related parts in `m4/curl-functions.m4` and `configure.ac` might
  823. also be deleted.
  824. [2] Related comment can possibly be deleted in
  825. `packages/vms/generate_config_vms_h_curl.com`.
  826. [3] There are more instances of this in autotools, but I did not dare to
  827. touch those. Looked like it's used to detect socket support.
  828. [4] This is necessary for MFC (Microsoft Foundation Class) DLLs to
  829. force linking MFC components statically to the DLL. `libcurl.dll`
  830. does not use MFC, so we can delete this define.
  831. Ref: https://docs.microsoft.com/cpp/build/regular-dlls-statically-linked-to-mfc
  832. Script that can help finding unused settings like above:
  833. ```shell
  834. autoheader configure.ac # generate lib/curl_config.h.in
  835. {
  836. grep -o -E 'set\([A-Z][A-Z0-9_]{3,}' CMake/Platforms/WindowsCache.cmake | sed -E 's|set\(||g'
  837. grep -o -E -h '#define +[A-Z][A-Z0-9_]{3,}' lib/config-*.h | sed -E 's|#define +||g'
  838. grep -o -E '#cmakedefine +[A-Z][A-Z0-9_]{3,}' lib/curl_config.h.cmake | sed -E 's|#cmakedefine +||g'
  839. grep -o -E '#undef +[A-Z][A-Z0-9_]{3,}' lib/curl_config.h.in | sed -E 's|#undef +||g'
  840. } | sort -u | grep -v -F 'HEADER_CURL_' | while read -r def; do
  841. c="$(git grep -w -F "${def}" | grep -v -E -c '(/libcurl\.tmpl|^lib/config-|^lib/curl_config\.h\.cmake|^CMakeLists\.txt|^CMake/Platforms/WindowsCache\.cmake|^packages/vms/config_h\.com|^m4/curl-functions\.m4|^acinclude\.m4|^configure\.ac)')"
  842. if [ "${c}" = '0' ]; then
  843. echo "${def}"
  844. fi
  845. done
  846. ```
  847. Reviewed-by: Daniel Stenberg
  848. Closes #9044
  849. Daniel Stenberg (19 Jul 2022)
  850. - RELEASE-NOTES: synced
  851. - cookie: treat a blank domain in Set-Cookie: as non-existing
  852. This matches what RFC 6265 section 5.2.3 says.
  853. Extended test 31 to verify.
  854. Fixes #9164
  855. Reported-by: Gwen Shapira
  856. Closes #9177
  857. - [Patrick Monnerat brought this change]
  858. base64: base64url encoding has no padding
  859. See RFC4648 section 5 and RFC7540 section 3.2.1.
  860. Suppress generation of '=' padding of base64url encoding. This is
  861. accomplished by considering the string beginning at offset 64 in the
  862. character table as the padding: this is "=" for base64, "" for base64url.
  863. Also use strchr() to replace character search loops where possible.
  864. Suppress erroneous comments about empty encoding results.
  865. Adjust unit test 1302 to unpadded base64url encoding and add tests for
  866. empty results.
  867. Closes #9139
  868. - easyoptions: fix icc warning
  869. easyoptions.c(360): error #188: enumerated type mixed with another type
  870. Ref: #9156
  871. Reported-by: Matthew Thompson
  872. Closes #9176
  873. - [lwthiker brought this change]
  874. h2h3: fix overriding the 'TE: Trailers' header
  875. A 'TE: Trailers' header is explicitly replaced by 'te: trailers'
  876. (lowercase) in Curl_pseudo_headers() when building the list of HTTP/2 or
  877. HTTP/3 headers. However, this is then replaced again by the original
  878. value due to a bug, resulting in the uppercased version being sent. Some
  879. HTTP/2 servers reject the whole HTTP/2 stream when this is the case.
  880. Closes #9170
  881. - lib3026: reduce the number of threads to 100
  882. Down from 1000, to make it run and work in more systems.
  883. Fixes #9172
  884. Reported-by: Érico Nogueira Rolim
  885. Closes #9173
  886. - doh: move doh related struct definitions to doh.h
  887. and make 'dnstype' in 'struct dnsprobe' use the DNStype to fix the icc compiler warning:
  888. doh.c(924): error #188: enumerated type mixed with another type
  889. Reported-by: Matthew Thompson
  890. Ref #9156
  891. Closes #9174
  892. Viktor Szakats (17 Jul 2022)
  893. - Makefile.m32: stop trying to build libcares.a [ci skip]
  894. Before this patch, `lib/Makefile.m32` had a rule to build `libcares.a` in
  895. `-cares`-enabled builds, via c-ares's own `Makefile.m32`. Committed in
  896. 2007 [1]. The commit message doesn't specifically address this particular
  897. change. This logic comes from the times when c-ares was part of the curl
  898. source tree, hence the special treatment.
  899. This feature creates problems when building c-ares first, using CMake
  900. and pointing `LIBCARES_PATH` to its install prefix, where `Makefile.m32`
  901. is missing in such case. A sub-build for c-ares is undesired also when
  902. c-ares had already been build via its own `Makefile.m32`.
  903. To avoid the sub-build, this patch deletes its Makefile rule. After this
  904. patch `libcares.a` needs to be manually built before using it in
  905. `Makefile.m32`. Aligning it with the rest of dependencies.
  906. [1] 46c92c0b806da041d7a5c6fb64dbcdc474d99b31
  907. Reviewed-by: Daniel Stenberg
  908. Closes #9169
  909. Daniel Stenberg (17 Jul 2022)
  910. - curl: writeout: fix repeated header outputs
  911. The function stored a terminating zero into the buffer for convenience,
  912. but when on repeated calls that would cause problems. Starting now, the
  913. passed in buffer is not modified.
  914. Reported-by: highmtworks on github
  915. Fixes #9150
  916. Closes #9152
  917. - curl_multi_timeout.3: clarify usage
  918. Fixes #9155
  919. Closes #9157
  920. Reported-by: jvvprasad78 on github
  921. - mprintf: make dprintf_formatf never return negative
  922. This function no longer returns a negative value if the formatting
  923. string is bad since the return value would sometimes be propagated as a
  924. return code from the mprintf* functions and they are documented to
  925. return the length of the output. Which cannot be negative.
  926. Fixes #9149
  927. Closes #9151
  928. Reported-by: yiyuaner on github
  929. Viktor Szakats (17 Jul 2022)
  930. - trace: 0x7F character is non-printable
  931. `0x7F` is `DEL`, a non-printable symbol, so print it as
  932. `UNPRINTABLE_CHAR`.
  933. Reported-by: MasterInQuestion on github
  934. Fixes #9162
  935. Closes #9166
  936. - doh: use https protocol by default
  937. The only allowed protocol is https, so it makes sense to use that
  938. by default if not passed explicitly by the user.
  939. Reported-by: MasterInQuestion on github
  940. Reviewed-by: Jay Satiro
  941. Fixes #9163
  942. Closes #9165
  943. - openssl: fix BoringSSL symbol conflicts with LDAP and Schannel
  944. Same issue as here [1], but this time when building curl with BoringSSL
  945. for Windows with LDAP(S) or Schannel support enabled.
  946. Apply the same fix [2] for these source files as well.
  947. This can also be fixed by moving `#include "urldata.h"` _before_
  948. including `winldap.h` and `schnlsp.h` respectively. This seems like
  949. a cleaner fix, though I'm not sure why it works and if it has any
  950. downside.
  951. [1] https://github.com/curl/curl/issues/5669
  952. [2] https://github.com/curl/curl/commit/fbe07c6829ba8c5793c84c2856526e19e9029ab9
  953. Co-authored-by: Jay Satiro
  954. Closes #9110
  955. Daniel Stenberg (13 Jul 2022)
  956. - asyn-thread: make getaddrinfo_complete return CURLcode
  957. ... as the only caller that cares about what it returns assumes that
  958. anyway. This caused icc to warn:
  959. asyn-thread.c(505): error #188: enumerated type mixed with another type
  960. result = getaddrinfo_complete(data);
  961. Repoorted-by: Matthew Thompson
  962. Bug: https://github.com/curl/curl/issues/9081#issuecomment-1182143076
  963. Closes #9146
  964. - easy_lock: fix build with icc
  965. The Intel compiler tries to look like GCC *and* clang *and* it lies in
  966. its __has_builtin() function (returns true when it should return false),
  967. so override it.
  968. Reported-by: Matthew Thompson
  969. Fixes #9081
  970. Closes #9144
  971. - configure: fix --disable-headers-api
  972. Reported-by: Michał Antoniak
  973. Fixes #9134
  974. Closes #9143
  975. - test3026: require 'threadsafe'
  976. Reported-by: Sukanya Hanumanthu
  977. Fixes #9141
  978. Closes #9142
  979. - [Even Rouault brought this change]
  980. CMake: link curl to its dependencies with PRIVATE
  981. The current PUBLIC visibility causes issues for downstream users.
  982. Cf https://github.com/OSGeo/PROJ/pull/3172#issuecomment-1157942986
  983. Reviewed-by: Jakub Zakrzewski
  984. Closes #9125
  985. - [Even Rouault brought this change]
  986. CMake: remove APPEND in export(TARGETS)
  987. When running cmake several times, new content was appended to already
  988. existing generated files, which is not appropriate
  989. Reviewed-by: Jakub Zakrzewski
  990. Closes #9124
  991. - [Tatsuhiro Tsujikawa brought this change]
  992. ngtcp2: implement cb_h3_stop_sending and cb_h3_reset_stream callbacks
  993. Closes #9135
  994. - RELEASE-NOTES: synced
  995. Viktor Szakats (11 Jul 2022)
  996. - build: improve OS string in CMake and `config-win32.h`
  997. This patch makes CMake fill the "OS string" with the value of
  998. `CMAKE_C_COMPILER_TARGET`, if passed. This typically contains a triplet,
  999. the same we can pass to `./configure` via `--host=`.
  1000. For non-CMake, non-autotools, Windows builds, this patch adds the ability
  1001. to override the default `OS` value in `lib/config-win32.h`.
  1002. With these its possible to get the same OS string across the three build
  1003. systems.
  1004. This patch supersedes the earlier, partial, CMake-only solution:
  1005. 435f395f3f8c11eebfcc243ca55ebcc11a19b8b8, thus retiring the
  1006. `CURL_OS_SUFFIX` CMake option.
  1007. Reviewed-by: Jay Satiro
  1008. Closes #9117
  1009. - Makefile.m32: add `CURL_RC` and `CURL_STRIP` variables [ci skip]
  1010. They allow to override the hardcoded values for the `windres` and `strip`
  1011. tools, complementing the existing set of `CURL_{CC,AR,RANLIB}` variables.
  1012. `CURL_RC` comes handy when using LLVM tools with `CROSSPREFIX=llvm-` and
  1013. `CURL_CC=clang` set on current latest debian:unstable or earlier, where
  1014. `llvm-windres` is missing, and a `CURL_RC=<triplet>-windres` fixes it.
  1015. Hopefully this will be fixed in the llvm package. FWIW `llvm-windres`
  1016. does exist in Homebrew llvm, MSYS2 llvm and llvm-mingw.
  1017. Reviewed-by: Daniel Stenberg
  1018. Closes #9132
  1019. Daniel Stenberg (10 Jul 2022)
  1020. - [Tatsuhiro Tsujikawa brought this change]
  1021. ngtcp2: fix stall or busy loop on STOP_SENDING with upload data
  1022. Fixes #9122
  1023. Closes #9123
  1024. - [Xiaoke Wang brought this change]
  1025. tool_operate: better cleanup of easy handle in exit path
  1026. Closes #9114
  1027. - [Xiaoke Wang brought this change]
  1028. getinfo: return better error on NULL as first argument
  1029. Closes #9114
  1030. - tool_getparam: repair cleanarg
  1031. Regression since 9e5669f.
  1032. Make sure the "cleaning" of command line arguments is done on the
  1033. original argv[] pointers. As a bonus, it also exits better on out of
  1034. memory error.
  1035. Reported-by: Litter White
  1036. Fixes #9128
  1037. Closes #9130
  1038. Jay Satiro (10 Jul 2022)
  1039. - docs: explain curl_easy_escape/unescape curl handle is ignored
  1040. 26101421 (precedes 7.82.0) removed character conversion support used by
  1041. very old legacy operating systems and since then the curl handle passed
  1042. to curl_easy_escape/unescape is always ignored.
  1043. Bug: https://github.com/curl/curl/discussions/9115
  1044. Reported-by: Ted Lyngmo
  1045. Closes https://github.com/curl/curl/pull/9121
  1046. Viktor Szakats (8 Jul 2022)
  1047. - openssl: add `CURL_BORINGSSL_VERSION` to identify BoringSSL
  1048. BoringSSL doesn't keep a version number, and doesn't self-identify itself
  1049. via any other revision number via its own headers. We can identify
  1050. BoringSSL revisions by their commit hash. This hash is typically known by
  1051. the builder. This patch adds a way to pass this hash to libcurl, so that
  1052. it can display in the curl version string:
  1053. For example:
  1054. `CFLAGS=-DCURL_BORINGSSL_VERSION="c239ffd0"`
  1055. ```
  1056. curl 7.84.0 (x86_64-w64-mingw32) libcurl/7.84.0 BoringSSL/c239ffd0 (Schannel) zlib/1.2.12 [...]
  1057. Release-Date: 2022-06-27
  1058. Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 [...]
  1059. Features: alt-svc AsynchDNS brotli gsasl HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Kerberos [...]
  1060. ```
  1061. The setting is optional, and if not passed, BoringSSL will appear without
  1062. a version number, like before this patch.
  1063. Closes #9113
  1064. Jay Satiro (8 Jul 2022)
  1065. - escape: remove outdated comment
  1066. Bug: https://github.com/curl/curl/discussions/9115
  1067. Reported-by: Ted Lyngmo
  1068. - [Tatsuhiro Tsujikawa brought this change]
  1069. ngtcp2: Fix missing initialization of nghttp3_nv.flags
  1070. Closes https://github.com/curl/curl/pull/9118
  1071. Daniel Stenberg (6 Jul 2022)
  1072. - [Brad Forschinger brought this change]
  1073. netrc.d: remove spurious quote
  1074. Closes #9111
  1075. Viktor Szakats (6 Jul 2022)
  1076. - Makefile.m32: add `NGTCP2_LIBS` option [ci skip]
  1077. Makefile.m32's ngtcp2 has its two libs hardwired for OpenSSL.
  1078. Add `NGTCP2_LIBS` envvar to override them with a custom list,
  1079. making it possible to use BoringSSL, or any other backend.
  1080. Closes #9109
  1081. Jay Satiro (6 Jul 2022)
  1082. - [Evgeny Grin (Karlson2k) brought this change]
  1083. digest: fix missing increment of 'nc' value for auth-int
  1084. - Increment nc regardless of qop type.
  1085. Prior to this change nc was only incremented for qop type auth even
  1086. though libcurl sends nc with any qop.
  1087. Closes https://github.com/curl/curl/pull/9090
  1088. Daniel Stenberg (5 Jul 2022)
  1089. - RELEASE-NOTES: synced
  1090. Bumped to 7.85.0
  1091. - urldata: reduce size of four ftp related members
  1092. ftp_filemethod, ftpsslauth and ftp_ccc are now uchars
  1093. accepttimeout is now unsigned int - almost 50 days ought to be enough
  1094. for this value.
  1095. Closes #9106
  1096. - urldata: reduce three type-members from int to uchar
  1097. - timecondition
  1098. - proxytype
  1099. - method
  1100. ... previously used their enum type in the struct, which made them
  1101. unnecesarily large.
  1102. Closes #9105
  1103. - CURLOPT_SERVER_RESPONSE_TIMEOUT: the new name
  1104. Starting now, CURLOPT_FTP_RESPONSE_TIMEOUT is the alias instead of the
  1105. other way around.
  1106. Since 7.20.0, CURLOPT_SERVER_RESPONSE_TIMEOUT has existed as an alias
  1107. but since the option is for more protocols than FTP the more "correct"
  1108. version of the option is the "server" one so now we switch.
  1109. Closes #9104
  1110. - urldata: make 'ftp_create_missing_dirs' a uchar
  1111. It only ever holds the values 0-2.
  1112. Closes #9103
  1113. - [Don J Olmstead brought this change]
  1114. cmake: support ngtcp2 boringssl backend
  1115. Update the ngtcp2 find module to detect the boringssl backend. Determine
  1116. if the underlying OpenSSL implementation is BoringSSL and if so use that
  1117. as the ngtcp2 backend.
  1118. Reviewed-by: Jakub Zakrzewski
  1119. Closes #9065
  1120. - urldata: change 4 timeouts to unsigned int from long
  1121. They're not used for that long times anyway, 32 bit milliseconds is long
  1122. enough.
  1123. Closes #9101
  1124. - urldata: make 'use_netrc' a uchar
  1125. Closes #9102
  1126. - urldata: make 'buffer_size' an unsigned int
  1127. It is already capped at READBUFFER_MAX which fits easily in 32 bits.
  1128. Closes #9098
  1129. - urldata: remove the unused 'rtspversion' struct member
  1130. Closes #9100
  1131. - urldata: make 'use_port' an usigned short
  1132. ... instead of a long. It is already enforced to not attempt to set any
  1133. value outside of 16 bits unsigned.
  1134. Closes #9099
  1135. - urldata: store dns cache timeout in an int
  1136. 68 years ought to be enough for most.
  1137. Closes #9097
  1138. - curl: proto2num: make sure obuf is inited
  1139. Detected by Coverity. CID 1507052.
  1140. Closes #9096
  1141. - cookie: use %zu to infof() for size_t values
  1142. Detected by Coverity. CID 1507051
  1143. Closes #9095
  1144. Viktor Szakats (4 Jul 2022)
  1145. - makefile.m32: add support for custom ARCH [ci skip]
  1146. When building curl for target platform other than x64 and x86, it is now
  1147. possible to pass `ARCH=custom`, that will omit all hardcoded logic for
  1148. setting up CFLAGS/LDFLAGS/RCFLAGS for these platforms, and let these be
  1149. customized via `CURL_CFLAG_EXTRAS`, `CURL_LDFLAG_EXTRAS`, and a newly
  1150. added one for the resource compiler: `CURL_RCFLAG_EXTRAS`.
  1151. This makes it possible to use `makefile.m32` to build for ARM64 for
  1152. example.
  1153. Reviewed-by: Daniel Stenberg
  1154. Closes #9092
  1155. - cmake: do not force Windows target versions
  1156. The goal of this patch is to avoid CMake forcing specific Windows
  1157. versions and rely on toolchain defaults or manual selection instead.
  1158. This gives back control to the user. This also brings CMake closer to
  1159. how autotools and `Makefile.m32` behaves in this regard.
  1160. - CMake had a setting `ENABLE_INET_PTON` defaulting to `ON`, which did
  1161. nothing else than fixing the Windows build target to Vista. This also
  1162. happened when the toolchain did not have Vista support (e.g. original
  1163. MinGW), breaking such builds.
  1164. In other environments it did not make a user-facing difference,
  1165. because libcurl has its own pton() implementation, so it works well
  1166. with or without Vista's inet_pton().
  1167. This patch drops this setting. inet_pton() is now used whenever
  1168. building for Vista or newer, either when requested manually or by
  1169. default with modern toolchains (e.g. mingw-w64). Older envs will fall
  1170. back to curl's pton().
  1171. Ref: https://github.com/curl/curl/pull/9027#issuecomment-1164157604
  1172. Ref: https://github.com/curl/curl/pull/8997#issuecomment-1164344155
  1173. - When the user did no select a Windows target version manually, stop
  1174. explicitly targeting Windows XP, and instead use the toolchain default.
  1175. This may pose an issue with old toolchains defaulting to pre-XP
  1176. targets. In such case you must manually target Windows XP via:
  1177. `-DCURL_TARGET_WINDOWS_VERSION=0x0501`
  1178. or
  1179. `-DCMAKE_C_FLAGS=-D_WIN32_WINNT=0x0501`
  1180. Reviewed-by: Jay Satiro
  1181. Reviewed-by: Marcel Raad
  1182. Closes #9046
  1183. - windows: improve random source
  1184. - Use the Windows API to seed the fallback random generator.
  1185. This ensures to always have a random seed, even when libcurl is built
  1186. with a vtls backend lacking a random generator API, such as rustls
  1187. (experimental), GSKit and certain mbedTLS builds, or, when libcurl is
  1188. built without a TLS backend. We reuse the Windows-specific random
  1189. function from the Schannel backend.
  1190. - Implement support for `BCryptGenRandom()` [1] on Windows, as a
  1191. replacement for the deprecated `CryptGenRandom()` [2] function.
  1192. It is used as the secure random generator for Schannel, and also to
  1193. provide entropy for libcurl's fallback random generator. The new
  1194. function is supported on Vista and newer via its `bcrypt.dll`. It is
  1195. used automatically when building for supported versions. It also works
  1196. in UWP apps (the old function did not).
  1197. - Clear entropy buffer before calling the Windows random generator.
  1198. This avoids using arbitrary application memory as entropy (with
  1199. `CryptGenRandom()`) and makes sure to return in a predictable state
  1200. when an API call fails.
  1201. [1] https://docs.microsoft.com/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom
  1202. [2] https://docs.microsoft.com/windows/win32/api/wincrypt/nf-wincrypt-cryptgenrandom
  1203. Closes #9027
  1204. Daniel Stenberg (4 Jul 2022)
  1205. - setopt: add CURLOPT_PROTOCOLS_STR and CURLOPT_REDIR_PROTOCOLS_STR
  1206. ... as replacements for deprecated CURLOPT_PROTOCOLS and
  1207. CURLOPT_REDIR_PROTOCOLS as these new ones do not risk running into the
  1208. 32 bit limit the old ones are facing.
  1209. CURLINFO_PROTCOOL is now deprecated.
  1210. The curl tool is updated to use the new options.
  1211. Added test 1597 to verify the libcurl protocol parser.
  1212. Closes #8992
  1213. - digest: simplify a switch() to a simple if
  1214. - digest: provide a special bit for "sess" algos
  1215. Also shortened the names and moved them to the .c file since they are
  1216. private for this source file only. Also made them #defines instead of
  1217. enum.
  1218. Closes #9079
  1219. Jay Satiro (4 Jul 2022)
  1220. - [Thomas Weißschuh brought this change]
  1221. select: do not return fatal error on EINTR from poll()
  1222. The same was done for select() in 5912da25 but poll() was missed.
  1223. Bug: https://bugs.archlinux.org/task/75201
  1224. Reported-by: Alexandre Bury (gyscos at archlinux)
  1225. Ref: https://github.com/curl/curl/issues/8921
  1226. Ref: https://github.com/curl/curl/pull/8961
  1227. Ref: https://github.com/curl/curl/commit/5912da25#r77584294
  1228. Closes https://github.com/curl/curl/pull/9091
  1229. - [Kai Pastor brought this change]
  1230. cmake: fix build for mingw cross compile
  1231. - Change normaliz lib name to all lowercase.
  1232. This is from a standing patch in vcpkg:
  1233. Mingw has libnormaliz.a. For case-sensitive file systems (e.g. cross
  1234. builds from Linux), the spelling must match exactly.
  1235. Closes https://github.com/curl/curl/pull/9084
  1236. - easy_lock: fix build for mingw
  1237. - Define SRWLOCK symbols missing in some mingw environments.
  1238. Closes https://github.com/curl/curl/pull/8997
  1239. Daniel Stenberg (2 Jul 2022)
  1240. - tool_progress: avoid division by zero in parallel progress meter
  1241. Reported-by: Brian Carpenter
  1242. Fixes #9082
  1243. Closes #9083
  1244. - http_aws_sigv4.c: remove two unusued includes
  1245. Closes #9080
  1246. - .mailmap: additional edit
  1247. Follow-up to 861e2a8aca6c7 so that Evgeny appears with the same in git
  1248. logs even when using old email.
  1249. - RELEASE-NOTES: synced
  1250. bumped to 7.84.1
  1251. - [Evgeny Grin (Karlson2k) brought this change]
  1252. .mailmap: updated
  1253. - [Evgeny Grin (Karlson2k) brought this change]
  1254. THANKS: merged two entries for Evgeny Grin
  1255. Also updated THANKS-filter file
  1256. Closes #9076
  1257. - [Jilayne Lovejoy brought this change]
  1258. lib/curl_path.c: add ISC to license expression
  1259. THe text of the ISC license is in this file, so the SPDX license
  1260. expression should be updated
  1261. Closes #9073
  1262. - [Sean McArthur brought this change]
  1263. hyper: use wakers for curl pause/resume
  1264. Closes #9070
  1265. Viktor Szakats (30 Jun 2022)
  1266. - Makefile.m32: do not set the libcurl.rc debug flag [ci skip]
  1267. Delete `-DDEBUGBUILD=0` windres option. This was likely meant to
  1268. disable VS_FF_DEBUG in FILEFLAGS, but any assigned value enabled
  1269. it instead. Delete this unnecessary option and thus sync up with
  1270. how CMake compiles libcurl.rc by default.
  1271. Reviewed-by: Jay Satiro
  1272. Closes #9069
  1273. Daniel Stenberg (29 Jun 2022)
  1274. - curl.h: CURLE_CONV_FAILED is obsoleted
  1275. The last use was removed in 7.82.0. Updated some docs too to reflect the
  1276. current error code situation.
  1277. Closes #9067
  1278. - curl: output warning when a cookie is dropped due to size
  1279. Dropped from the request, that is.
  1280. Closes #9064
  1281. - curl_mime_data.3: polish the wording
  1282. Closes #9063
  1283. - configure: check for the stdatomic.h header in configure
  1284. ... and only set HAVE_ATOMIC if that header exists since we use
  1285. typedefes set in it.
  1286. Reported-by: Ryan Schmidt
  1287. Fixes #9059
  1288. Closes #9060
  1289. - easy_lock: fix the #ifdef conditional for ia32_pause
  1290. To work better with new and old clang compilers.
  1291. Reported-by: Ryan Schmidt
  1292. Assisted-by: Joshua Root
  1293. Fixes #9058
  1294. Closes #9062
  1295. - easy_lock: switch to using atomic_int instead of bool
  1296. To work with more compilers without requiring separate libs to
  1297. link. Like with gcc-12 for RISC-V on Linux.
  1298. Reported-by: Adam Sampson
  1299. Fixes #9055
  1300. Closes #9061
  1301. - [vvb2060 brought this change]
  1302. ngtcp2: fix incompatible function pointer types
  1303. Closes #9056
  1304. - [vvb2060 brought this change]
  1305. easy_lock.h: use __asm__ instead of asm to fix build
  1306. Closes #9056
  1307. - [Samuel Henrique brought this change]
  1308. libcurl-security.3: fix typo on macro "SH_"
  1309. During the packaging of the latest curl release for Debian, Lintian
  1310. warned me about a typo which causes the section name "Secrets in memory"
  1311. to not be rendered in the manpage due to "SH_" not being recognized as a
  1312. header.
  1313. Closes #9057
  1314. - easy_lock.h: include sched.h if available to fix build
  1315. Patched-by: Harry Sintonen
  1316. Closes #9054
  1317. Version 7.84.0 (27 Jun 2022)
  1318. Daniel Stenberg (27 Jun 2022)
  1319. - RELEASE-NOTES: synced
  1320. Version 7.84.0 release
  1321. - THANKS: contributors from 7.84.0 release notes
  1322. - hsts: use Curl_fopen()
  1323. - altsvc: use Curl_fopen()
  1324. - fopen: add Curl_fopen() for better overwriting of files
  1325. Bug: https://curl.se/docs/CVE-2022-32207.html
  1326. CVE-2022-32207
  1327. Reported-by: Harry Sintonen
  1328. Closes #9050
  1329. - test444: test many received Set-Cookie:
  1330. The amount of sent cookies in the test is limited to 80 because hyper
  1331. has its own strict limits in how many headers it allows to be received
  1332. which triggers at some point beyond this number.
  1333. - test442/443: test cookie caps
  1334. 442 - verify that only 150 cookies are sent
  1335. 443 - verify that the cookie: header remains less than 8K in size
  1336. - cookie: apply limits
  1337. - Send no more than 150 cookies per request
  1338. - Cap the max length used for a cookie: header to 8K
  1339. - Cap the max number of received Set-Cookie: headers to 50
  1340. Bug: https://curl.se/docs/CVE-2022-32205.html
  1341. CVE-2022-32205
  1342. Reported-by: Harry Sintonen
  1343. Closes #9048
  1344. - test387: verify rejection of compression chain attack
  1345. - content_encoding: return error on too many compression steps
  1346. The max allowed steps is arbitrarily set to 5.
  1347. Bug: https://curl.se/docs/CVE-2022-32206.html
  1348. CVE-2022-32206
  1349. Reported-by: Harry Sintonen
  1350. Closes #9049
  1351. - krb5: return error properly on decode errors
  1352. Bug: https://curl.se/docs/CVE-2022-32208.html
  1353. CVE-2022-32208
  1354. Reported-by: Harry Sintonen
  1355. Closes #9051
  1356. - easy_lock.h: remove use of the deprecated ATOMIC_VAR_INIT macro
  1357. clang 14 warns about its use. It is being deprecated by the working
  1358. group for the programming language C: "The macro ATOMIC_VAR_INIT is
  1359. basically useless for the purpose for which it was designed"
  1360. Ref: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2886.htm
  1361. Reported-by: Tatsuhiro Tsujikawa
  1362. Fixes #9041
  1363. Closes #9042
  1364. - [Stefan Eissing brought this change]
  1365. ngtcp2: avoid supplying 0 length `msg_control` to sendmsg()
  1366. Testing on macOS 12.4, sendmsg() fails with EINVAL when a msg_control
  1367. buffer is provided in sengmsg(), even though msg_controllen was set to
  1368. 0.
  1369. Initialize msg.msg_controllen just as needed and also perform the size
  1370. assertion only when needed.
  1371. Closes #9039
  1372. - [Tom Eccles brought this change]
  1373. ftp: restore protocol state after http proxy CONNECT
  1374. connect_init() (lib/http_proxy.c) swaps out the protocol state while
  1375. working on the proxy connection, this is then restored by
  1376. Curl_connect_done() after the connection completes.
  1377. ftp_do_more() extracted the protocol state pointer to a local variable
  1378. at the start of the function then calls Curl_proxy_connect(). If the proxy
  1379. connection completes, Curl_proxy_connect() will call Curl_connect_done()
  1380. (via Curl_proxyCONNECT()), which restores data->req.p to point to the ftp
  1381. protocol state instead of the http proxy protocol state, but the local
  1382. variable in ftp_do_more still pointed to the old value.
  1383. Ultimately this meant that the state worked on by ftp_do_more() was the
  1384. http proxy state not the ftp state initialised by ftp_connect(), but
  1385. subsequent calls to any ftp_ function would use the original state.
  1386. For my use-case, the visible consequence was that ftp->downloadsize was
  1387. never set and so downloaded data was never returned to the application.
  1388. This commit updates the ftp protocol state pointer in ftp_do_more() after
  1389. Curl_proxy_connect() returns, ensuring that the correct state pointer is
  1390. used.
  1391. Fixes #8737
  1392. Closes #9043
  1393. Jay Satiro (23 Jun 2022)
  1394. - THANKS: add contributor missing from aea8ac1
  1395. aea8ac1 fixed #8980 which was reported by Sgharat on github, but that
  1396. info was not included in the commit message.
  1397. - curl_setup: include _mingw.h
  1398. Prior to this change _mingw.h needed to be included in each unit before
  1399. evaluating __MINGW{32,64}_xxx_VERSION macros since it defines them. It
  1400. is included only in some mingw headers (eg stdio.h) and not others
  1401. (eg windows.h) so it's better to explicitly include it once.
  1402. Closes https://github.com/curl/curl/pull/9036
  1403. Viktor Szakats (22 Jun 2022)
  1404. - rand: stop detecting /dev/urandom in cross-builds
  1405. - Prevent CMake to auto-detect /dev/urandom when cross-building.
  1406. Before this patch, it would detect it in a cross-build scenario on *nix
  1407. hosts with this device present. This was a problem for example with
  1408. Windows builds, but it could affect any target system with this device
  1409. missing. This also syncs detection behaviour with autotools, which also
  1410. skips it for cross-builds.
  1411. - Also, make sure to never use the file RANDOM_FILE as entropy for libcurl's
  1412. fallback random number generator on Windows. Windows does not have the
  1413. concept of reading a random stream from a filename, nor any guaranteed
  1414. non-world-writable path on disk. With this, a manual misconfiguration or
  1415. an overeager auto-detection can no longer result in a user-controllable
  1416. seed source.
  1417. Reviewed-by: Daniel Stenberg
  1418. Closes #9038
  1419. Daniel Stenberg (22 Jun 2022)
  1420. - [Emanuele Torre brought this change]
  1421. ci: avoid `cmake -Hpath`
  1422. This is an undocumented option similar to the `-Spath' option introduced
  1423. in cmake 3.13.
  1424. Replace all instances of `-Hpath' with `-Spath' in macos workflow.
  1425. Replace `-H. -Bpath' with `mkdir path; cd ./path; cmake ..' in zuul
  1426. scripts since it runs an older version of cmake.
  1427. Fixes #9008
  1428. Closes #9014
  1429. - INTERNALS: bring back the "Library symbols" section
  1430. Most contents was moved, but this text should remain here.
  1431. Follow-up to: d324ac8
  1432. Reported-by: Viktor Szakats
  1433. Bug: https://github.com/curl/curl/pull/9027#discussion_r903382326
  1434. Closes #9037
  1435. Viktor Szakats (22 Jun 2022)
  1436. - Makefile.m32: stop forcing XP target with ipv6 enabled [ci skip]
  1437. Since this [1] commit in 2011, `_WIN32_WINNT` was set fixed to Windows
  1438. XP when the `-ipv6` option is selected. Maybe this was added to support
  1439. pre-XP Windows versions (?). These days libcurl builds fine for both XP
  1440. and post-XP versions with IPv6 support enabled. The relevance of pre-XP
  1441. version is also low by now. Other build methods also do not impose such
  1442. limitation for a similar configuration. So, drop this hard-wired
  1443. `_WIN32_WINNT` limit from `Makefile.m32`, thus building for the default
  1444. Windows version set by the compiler. This is Vista for recent MinGW
  1445. versions.
  1446. Old behaviour can be restored by setting this envvar:
  1447. export CURL_CFLAG_EXTRAS=-D_WIN32_WINNT=0x0501
  1448. [1] 98a61d8e2e8982786aaf3916cbbcac96838316e7
  1449. Closes #9035
  1450. Daniel Stenberg (21 Jun 2022)
  1451. - CONTRIBUTE: mention how we maintain REUSE compliance
  1452. for copyright and license information of all files stored in git
  1453. Closes #9032
  1454. - CURLOPT_ALTSVC.3: document the file format
  1455. Closes #9033
  1456. Jay Satiro (21 Jun 2022)
  1457. - runtests: add "threadsafe" to detected features
  1458. Follow-up to recent commits which added thread-safety support.
  1459. Bug: https://github.com/curl/curl/pull/9012#discussion_r902018782
  1460. Reported-by: Marc Hörsken
  1461. Closes https://github.com/curl/curl/pull/9030
  1462. Daniel Stenberg (20 Jun 2022)
  1463. - easy: remove dead code
  1464. Follow-up from 5912da253b64d
  1465. Detected by Coverity (CID 1506519)
  1466. Closes #9029
  1467. - [Glenn Strauss brought this change]
  1468. transfer: upload performance; avoid tiny send
  1469. Append to the upload buffer when only small amount remains in buffer
  1470. rather than performing a separate tiny send to empty buffer.
  1471. Avoid degenerative upload behavior which might cause curl to send mostly
  1472. 1-byte DATA frames after exhausing the h2 send window size
  1473. Related discussion: https://github.com/nghttp2/nghttp2/issues/1722
  1474. Signed-off-by: Glenn Strauss <[email protected]>
  1475. Closes #8965
  1476. - [Steve Holme brought this change]
  1477. projects: fix third-party SSL library build paths for Visual Studio
  1478. The paths used by the build batch files were inconsistent with those in
  1479. the Visual Studio project files.
  1480. Closes #8991
  1481. - [Pierrick Charron brought this change]
  1482. urlapi: make curl_url_set(url, CURLUPART_URL, NULL, 0) clear all parts
  1483. As per the documentation :
  1484. > Setting a part to a NULL pointer will effectively remove that
  1485. > part's contents from the CURLU handle.
  1486. But currently clearing CURLUPART_URL does nothing and returns
  1487. CURLUE_OK. This change will clear all parts of the URL at once.
  1488. Closes #9028
  1489. - [Philip H brought this change]
  1490. CI: bump FreeBSD 13.0 to 13.1
  1491. Signed-off-by: Philip H <[email protected]>
  1492. Closes #8815
  1493. - RELEASE-NOTES: synced
  1494. and updated release date in RELEASE-PROCEDURE.md
  1495. - [divinity76 brought this change]
  1496. CURLOPT_HTTPHEADER.3: improve comment in example
  1497. Closes #9025
  1498. Marc Hoersken (16 Jun 2022)
  1499. - CI/azure: reduce flakiness by retrying install/prepare steps
  1500. Closes #9010
  1501. - CI/cirrus: align Windows timeout with Azure CI at 120 minutes
  1502. Closes #9009
  1503. Jay Satiro (16 Jun 2022)
  1504. - vtls: make curl_global_sslset thread-safe
  1505. .. and update some docs to explain curl_global_* is now thread-safe.
  1506. Follow-up to 23af112 which made curl_global_init/cleanup thread-safe.
  1507. Closes https://github.com/curl/curl/pull/9016
  1508. - curl_easy_pause.3: remove explanation of progress function
  1509. - Remove misleading text that says progress function "gets called at
  1510. least once per second, even if the connection is paused."
  1511. The progress function behavior is more nuanced and the user is better
  1512. served reading the progress function doc rather than attempt to explain
  1513. it in the curl_easy_pause doc.
  1514. The progress function can only be called at least once per second if an
  1515. appropriate multi transfer function is called (eg curl_multi_perform) in
  1516. that time. For a paused transfer there may not be such a call. Rather
  1517. than explain this in detail in the curl_easy_pause doc, rely on the user
  1518. reading the CURLOPT_PROGRESSFUNCTION doc.
  1519. Ref: https://github.com/curl/curl/issues/8983
  1520. Closes https://github.com/curl/curl/pull/9015
  1521. Daniel Stenberg (15 Jun 2022)
  1522. - libssh: skip the fake-close when libssh does the right thing
  1523. Starting in libssh 0.10.0 ssh_disconnect() will no longer close our
  1524. socket. Instead it will be kept alive as we want it, and it is our
  1525. responsibility to close it later.
  1526. Ref: #8718
  1527. Ref: https://gitlab.com/libssh/libssh-mirror/-/merge_requests/240
  1528. Closes #9021
  1529. - configure: warn about rustls being experimental
  1530. Right now a dozen test cases are disabled because they don't work with
  1531. rustls.
  1532. Closes #9019
  1533. - runtests: skip starting the ssh server if user name is lacking
  1534. Because the ssh server startup script *requires* a user name there's no
  1535. point in invoking it if no name was found.
  1536. Reported-by: Ricardo M. Correia
  1537. Ref: #9007
  1538. Closes #9013
  1539. - copyright.pl: parse and use .reuse/dep5 for skips
  1540. Also scan skipped files to be able to find superfluous ignores, shown with -v.
  1541. Closes #9006
  1542. - reuse/dep5: adjusted to parse better
  1543. ... adjusted a few files to contain copyright and license info.
  1544. Closes #9006
  1545. - buildconf.bat: update copyright year range
  1546. Closes #9006
  1547. - README.md: use the common "Copyright" style formatting
  1548. Closes #9006
  1549. - reuse: move license info from .mailmap.license to .reuse/dep5
  1550. Closes #9006
  1551. - README.md: add a REUSE badge
  1552. Closes #9004
  1553. - .reuse/dep5: remove recursive docs ignore, only skip markdown files
  1554. ... and some additional non-markdown individual files in docs/
  1555. Closes #9005
  1556. - docs/cmdline-opts: add copyright and license identifier to each file
  1557. gen.pl now insists on C: and SPDX-License-Identifier: fields to be
  1558. present in all files.
  1559. Closes #9002
  1560. - copyright: info for/ignore .github/ISSUE_TEMPLATE/bug_report.md
  1561. Follow-up from 448f7ef9ab2afb7. The adding of the copyright text in that
  1562. file broke site functionality.
  1563. Closes #9001
  1564. - bug_report.md: revert the REUSE template to see if it works again
  1565. Viktor Szakats (13 Jun 2022)
  1566. - version: rename threadsafe-init to threadsafe
  1567. Referring to Daniel's article [1], making the init function thread-safe
  1568. was the last bit to make libcurl thread-safe as a whole. So the name of
  1569. the feature may as well be the more concise 'threadsafe', also telling
  1570. the story that libcurl is now fully thread-safe, not just its init
  1571. function. Chances are high that libcurl wants to remain so in the
  1572. future, so there is little likelihood of ever needing any other distinct
  1573. `threadsafe-<name>` feature flags.
  1574. For consistency we also shorten `CURL_VERSION_THREADSAFE_INIT` to
  1575. `CURL_VERSION_THREADSAFE`, update its description and reference libcurl's
  1576. thread safety documentation.
  1577. [1]: https://daniel.haxx.se/blog/2022/06/08/making-libcurl-init-more-thread-safe/
  1578. Reviewed-by: Daniel Stenberg
  1579. Reviewed-by: Jay Satiro
  1580. Closes #8989
  1581. Daniel Stenberg (13 Jun 2022)
  1582. - test3026: disable on win32
  1583. ... as it's not likely to have working pthreads
  1584. Closes #8996
  1585. - GHA: shorten the reuse CI job name
  1586. "REUSE compliance / check" should be good enough
  1587. Closes #9000
  1588. - misc: add missing SPDX-License-Identifier info
  1589. For some reason the REUSE CI job did not find these.
  1590. Closes #8999
  1591. - copyright: verify SPDX-License-Identifier presence as well
  1592. - easy_lock: add SPDX license identifier
  1593. Closes #8998
  1594. - mailmap: Max Mehl
  1595. - [Max Mehl brought this change]
  1596. git: ignore large commit making the curl REUSE compliant
  1597. - [Max Mehl brought this change]
  1598. copyright: make repository REUSE compliant
  1599. Add licensing and copyright information for all files in this repository. This
  1600. either happens in the file itself as a comment header or in the file
  1601. `.reuse/dep5`.
  1602. This commit also adds a Github workflow to check pull requests and adapts
  1603. copyright.pl to the changes.
  1604. Closes #8869
  1605. - curl_url_set.3: clarify by default using known schemes only
  1606. Closes #8994
  1607. - scripts/copyright.pl: ignore leading spaces
  1608. Viktor Szakats (10 Jun 2022)
  1609. - ngtcp2: fix typo in preprocessor condition
  1610. Ref: 927ede7edcb7b05b8e8bbf9ced6aed523ae594a7
  1611. Bug: https://github.com/curl/curl/pull/8981#discussion_r894312185
  1612. Reported-by: Emil Engler
  1613. Closes #8987
  1614. Daniel Stenberg (10 Jun 2022)
  1615. - RELEASE-NOTES: synced
  1616. - [Tatsuhiro Tsujikawa brought this change]
  1617. ngtcp2: build without sendmsg
  1618. Closes #8981
  1619. - [Tatsuhiro Tsujikawa brought this change]
  1620. ngtcp2: use handshake helper funcs to simplify TLS handshake integration
  1621. Closes #8968
  1622. - test390: verify --parallel
  1623. Closes #8985
  1624. - test1543: verify CURLINFO_EFFECTIVE_URL with CURLOPT_CURLU set
  1625. Triggered by a bug report from Adam Light:
  1626. https://curl.se/mail/lib-2022-06/0013.html - which ended up being mostly
  1627. a misunderstanding of how CURLINFO_EFFECTIVE_URL works.
  1628. Closes #8971
  1629. - url: URL encode the path when extracted, if spaces were set
  1630. - urlapi: support CURLU_URLENCODE for curl_url_get()
  1631. - server/sws: support spaces in the HTTP request path
  1632. - tests/getpart: fix getpartattr to work with "data" and "data2"
  1633. - select: return error from "lethal" poll/select errors
  1634. Adds two new error codes: CURLE_UNRECOVERABLE_POLL and
  1635. CURLM_UNRECOVERABLE_POLL one each for the easy and the multi interfaces.
  1636. Reported-by: Harry Sintonen
  1637. Fixes #8921
  1638. Closes #8961
  1639. - test3026: add missing control file
  1640. Follow-up from 2ed101256414ea5
  1641. Makes the test run, makes 'make dist' work
  1642. This single test takes 24-25 seconds on my machine (with valgrind). For
  1643. this reason I tag it with a "slow" keyword.
  1644. Closes #8976
  1645. - runtests: fix skipping tests not done event-based
  1646. ... and call timestampskippedevents() to avoid the flood of
  1647. uninitialized variable warnings.
  1648. Closes #8977
  1649. - transfer: maintain --path-as-is after redirects
  1650. Reported-by: Marcus T
  1651. Fixes #8974
  1652. Closes #8975
  1653. - test391: verify --path-as-is with redirect
  1654. Jay Satiro (8 Jun 2022)
  1655. - curl_global_init.3: Separate the Windows loader lock warning
  1656. This is a slight correction of the parent commit which implied the
  1657. loader lock warning only applied if not thread-safe. In fact the loader
  1658. lock warning applies either way.
  1659. Ref: https://github.com/curl/curl/pull/8972#discussion_r891987030
  1660. Daniel Stenberg (8 Jun 2022)
  1661. - curl_global_init.3: this is now (usually) thread-safe
  1662. Follow-up to 23af112f5556
  1663. Closes #8972
  1664. Jay Satiro (8 Jun 2022)
  1665. - [Haxatron brought this change]
  1666. libcurl-security.3: Document CRLF header injection
  1667. - Document that user input to header options is not sanitized, which
  1668. could result in CRLF used to modify the request in a way other than
  1669. what was intended.
  1670. Ref: https://hackerone.com/reports/1589877
  1671. Ref: https://medium.com/@tomnomnom/crlf-injection-into-phps-curl-options-e2e0d7cfe545
  1672. Closes https://github.com/curl/curl/pull/8964
  1673. - CURLOPT_RANGE.3: remove ranged upload advice
  1674. The e-mail link in the advice contains instructions that are prone to
  1675. error. We need an example that works and can demonstrate how to properly
  1676. perform a ranged upload, and then we can refer to that example instead.
  1677. Bug: https://github.com/curl/curl/issues/8969
  1678. Reported-by: Simon Berger
  1679. Closes https://github.com/curl/curl/pull/8970
  1680. Daniel Stenberg (7 Jun 2022)
  1681. - [Thomas Guillem brought this change]
  1682. curl_version_info: add CURL_VERSION_THREADSAFE_INIT
  1683. This flag can be used to make sure that curl_global_init() is
  1684. thread-safe.
  1685. This can be useful for libraries that can't control what other
  1686. dependencies are doing with Curl.
  1687. Closes #8680
  1688. - [Thomas Guillem brought this change]
  1689. lib: make curl_global_init() threadsafe when possible
  1690. Use a posix pthread or a Windows SRWLOCK to lock curl_global_init*() and
  1691. curl_global_cleanup().
  1692. Closes #8680
  1693. - RELEASE-NOTES: synced
  1694. - [Fabian Keil brought this change]
  1695. test414: add the '--resolve' keyword
  1696. ... so the test can be automatically skipped when
  1697. using an external proxy like Privoxy.
  1698. Closes #8959
  1699. - [Fabian Keil brought this change]
  1700. test{440,441,493,977}: add "HTTP proxy" keywords
  1701. ... so the tests can be automatically skipped when
  1702. using an external proxy like Privoxy.
  1703. Closes #8959
  1704. - [Fabian Keil brought this change]
  1705. runtests.pl: add the --repeat parameter to the --help output
  1706. Closes #8959
  1707. - [Fabian Keil brought this change]
  1708. test 2081: add a valid reply for the second request
  1709. ... so the test works when using a HTTP proxy like
  1710. Privoxy that sends an error message if the server
  1711. doesn't send data.
  1712. Closes #8959
  1713. - [Fabian Keil brought this change]
  1714. test 675: add missing CR so the test passes when run through Privoxy
  1715. Closes #8959
  1716. - ftp: when failing to do a secure GSSAPI login, fail hard
  1717. ... instead of switching to cleartext. For the sake of security.
  1718. Reported-by: Harry Sintonen
  1719. Bug: https://hackerone.com/reports/1590102
  1720. Closes #8963
  1721. - http2: reject overly many push-promise headers
  1722. Getting more than a thousand of them is rather a sign of some kind of
  1723. attack.
  1724. Reported-by: Harry Sintonen
  1725. Bug: https://hackerone.com/reports/1589847
  1726. Closes #8962
  1727. - [Fabian Keil brought this change]
  1728. misc: spelling improvements
  1729. Closes #8956
  1730. - [Tatsuhiro Tsujikawa brought this change]
  1731. ngtcp2: fix assertion failure on EMSGSIZE
  1732. Closes #8958
  1733. - easy/transfer: fix cookie-disabled build
  1734. Follow-up from 45de940cebf6a
  1735. Reported-by: Marcel Raad
  1736. Fixes #8953
  1737. Closes #8954
  1738. - examples/crawler.c: use the curl license
  1739. With permission from Jeroen Ooms
  1740. URL: https://github.com/curl/curl/pull/8869#issuecomment-1144742731
  1741. Closes #8950
  1742. - speed-limit/time.d: mention these affect transfers in either direction
  1743. Reported-by: Ladar Levison
  1744. Fixes #8948
  1745. Closes #8951
  1746. - scripts/copyright.pl: fix the exclusion to not ignore man pages
  1747. Ref: #8869
  1748. Closes #8952
  1749. - examples: remove fopen.c and rtsp.c
  1750. To simplify the license situation, as they were the only files in the
  1751. source tree using these specific BSD-3 clause licenses.
  1752. For an fopen style API, we recommend instead going
  1753. https://github.com/curl/fcurl
  1754. Ref: #8869
  1755. Closes #8949
  1756. - [Wolf Vollprecht brought this change]
  1757. netrc: check %USERPROFILE% as well on Windows
  1758. Closes #8855
  1759. - CURLOPT_SSH_HOSTKEYDATA/FUNCTION.3: minor polish
  1760. - [michael musset brought this change]
  1761. libssh2: add CURLOPT_SSH_HOSTKEYFUNCTION
  1762. The callback set by CURLOPT_SSH_HOSTKEYFUNCTION is called to check
  1763. wether or not the connection should continue.
  1764. The host key is passed in argument with a custom handle for the
  1765. application.
  1766. It overrides CURLOPT_SSH_KNOWNHOSTS
  1767. Closes #7959
  1768. - docs/CONTRIBUTE.md: document the 'needs-votes' concept
  1769. A pull request sent to the project might get labeled `needs-votes` by a
  1770. project maintainer. This label means that in addition to meeting all
  1771. other checks and qualifications this pull request must also receive
  1772. proven support/thumbs-ups from more community members to be considered
  1773. for merging.
  1774. Closes #8910
  1775. - [Evgeny Grin (Karlson2k) brought this change]
  1776. digest: tolerate missing "realm"
  1777. Server headers may not define "realm", avoid NULL pointer dereference
  1778. in such cases.
  1779. Closes #8912
  1780. - [Evgeny Grin (Karlson2k) brought this change]
  1781. digest: added detection of more syntax error in server headers
  1782. Invalid headers should not be processed otherwise they may create
  1783. a security risk.
  1784. Closes #8912
  1785. - [Evgeny Grin (Karlson2k) brought this change]
  1786. digest: unquote realm and nonce before processing
  1787. RFC 7616 (and 2617) requires values to be "unquoted" before used for
  1788. digest calculations. The only place where unquoting can be done
  1789. correctly is header parsing function (realm="DOMAIN\\host" and
  1790. realm=DOMAN\\host are different realms).
  1791. This commit adds unquoting (de-escaping) of all values during header
  1792. parsing and quoting of the values during header forming. This approach
  1793. should be most straightforward and easy to read/maintain as all values
  1794. are processed in the same way as required by RFC.
  1795. Closes #8912
  1796. - headers: handle unfold of space-cleansed headers
  1797. Detected by OSS-fuzz
  1798. Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47767
  1799. Updated test 1274
  1800. Closes #8947
  1801. - lib: make more protocol specific struct fields #ifdefed
  1802. ... so that they don't take up space if the protocols are disabled in
  1803. the build.
  1804. Closes #8944
  1805. - DISABLED: disable 1021 for hyper again
  1806. due to flakiness in the CI builds
  1807. - urldata: store tcp_keepidle and tcp_keepintvl as ints
  1808. They can't be set larger than INT_MAX in the setsocket API calls.
  1809. Also document the max values in their respective man pages.
  1810. Closes #8940
  1811. - urldata: reduce size of a few struct fields
  1812. When the values are never larger than 32 bit, ints are better than longs.
  1813. Closes #8940
  1814. - urldata: remove three unused booleans from struct UserDefined
  1815. - is_fwrite_set
  1816. - free_referer
  1817. - strip_path_slash
  1818. Closes #8940
  1819. - remote-name.d: mention --output-dir
  1820. plus add two see-alsos
  1821. Closes #8945
  1822. Jay Satiro (1 Jun 2022)
  1823. - configure: skip libidn2 detection when winidn is used
  1824. Prior to this change --with-winidn could be overridden by libidn2
  1825. detection.
  1826. Closes https://github.com/curl/curl/pull/8934
  1827. Daniel Stenberg (31 May 2022)
  1828. - CURLOPT_FILETIME.3: fix the protocols this works with
  1829. - test681: verify --no-remote-name
  1830. Follow-up to 83ee5c428d960 (from #8931)
  1831. Closes #8942
  1832. - [Tatsuhiro Tsujikawa brought this change]
  1833. ngtcp2: enable Linux GSO
  1834. Enable Linux GSO in ngtcp2 QUIC. In order to recover from the
  1835. EAGAIN/EWOULDBLOCK by sendmsg with multiple packets in one GSO write,
  1836. packet buffer is now held by struct quicsocket. GSO write might fail in
  1837. runtime depending on NIC. Disable GSO if sendmsg returns EIO.
  1838. Closes #8909
  1839. - CURLOPT_PORT.3: We discourage using this option
  1840. Closes #8941
  1841. - RELEASE-NOTES: synced
  1842. - headers_push: error out if a folded header has no previous header
  1843. As that would indicate an illegal header. The fuzzer reached the assert
  1844. in unfold_value() proving that this case can happen.
  1845. Follow-up to c9b60f005358a364
  1846. Closes #8939
  1847. - [Boris Verkhovskiy brought this change]
  1848. curl: re-enable --no-remote-name
  1849. Closes #8931
  1850. - test680: require 'http' since it uses such a URL
  1851. Follow-up to d1b376c03524
  1852. - CURLOPT_NETRC.3: document the .netrc file format
  1853. - test680: verify rejection of malformatted .netrc quoted password
  1854. - test679: verify netrc quoted string
  1855. - netrc: support quoted strings
  1856. The .netrc parser now accepts strings within double-quotes in order to
  1857. deal with for example passwords containing white space - which
  1858. previously was not possible.
  1859. A password that starts with a double-quote also ends with one, and
  1860. double-quotes themselves are escaped with backslashes, like \". It also
  1861. supports \n, \r and \t for newline, carriage return and tabs
  1862. respectively.
  1863. If the password does not start with a double quote, it will end at first
  1864. white space and no escaping is performed.
  1865. WARNING: this change is not entirely backwards compatible. If anyone
  1866. previously used a double-quote as the first letter of their password,
  1867. the parser will now get it differently compared to before. This is
  1868. highly unfortunate but hard to avoid.
  1869. Reported-by: ImpatientHippo on GitHub
  1870. Fixes #8908
  1871. Closes #8937
  1872. - curl_getdate.3: document that some illegal dates pass through
  1873. Closes #8938
  1874. - CI: remove configure --enable-headers-api flags
  1875. - headers api: remove EXPERIMENTAL tag
  1876. Closes #8900
  1877. Daniel Gustafsson (30 May 2022)
  1878. - cookies: fix documentation comment
  1879. Commit 4073cd83b2 added the noexpire parameter to Curl_cookie_add but
  1880. missed updating the documentation comment at the head of the file.
  1881. Daniel Stenberg (30 May 2022)
  1882. - [Marc Hoersken brought this change]
  1883. tests/data/test1940: use binary mode for expected stdout
  1884. The generated stdout data is written in binary mode with [LF]
  1885. line endings, therefore we also need to do a binary comparison.
  1886. Assisted-by: Jay Satiro
  1887. Assisted-by: Daniel Stenberg
  1888. Follow up to c9b60f005358a364cbcddbebd8d12593acffdd84
  1889. Fixes #8920
  1890. Closes #8936
  1891. - CURLINFO_CAINFO/PATH.3: clarify the multiple TLS situation
  1892. Spell out the multi-TLS situation.
  1893. Reported-by: Dan Fandrich
  1894. Fixes #8926
  1895. Closes #8932
  1896. Jay Satiro (28 May 2022)
  1897. - [JustAnotherArchivist brought this change]
  1898. tool_getparam: fix --parallel-max maximum value constraint
  1899. - Clamp --parallel-max to MAX_PARALLEL (300) instead of resetting to
  1900. default value.
  1901. Previously, --parallel-max 300 would use 300 concurrent transfers, but
  1902. --parallel-max 301 would unexpectedly use only 50. This change clamps
  1903. higher values to the maximum (ie --parallel-max 301 would use 300).
  1904. Closes https://github.com/curl/curl/pull/8930
  1905. Daniel Stenberg (27 May 2022)
  1906. - curl.1: add a few see also --tls-max
  1907. Closes #8929
  1908. Viktor Szakats (26 May 2022)
  1909. - cmake: do not add libcurl.rc to the static libcurl library
  1910. Fixes: https://github.com/curl/curl/pull/8918#issuecomment-1138263855
  1911. Reviewed-By: [email protected]
  1912. Closes #8923
  1913. - cmake: support adding a suffix to the OS value
  1914. CMake automatically uses the `CMAKE_SYSTEM_NAME` value to fill the OS
  1915. string appearing in the --version output after the curl version number,
  1916. for example:
  1917. 'curl 7.83.1 (Windows)'
  1918. This patchs adds the ability to pass a suffix that is appended to this
  1919. value. It's useful to add CPU info or other platform details,
  1920. for example:
  1921. 'curl 7.83.1 (Windows-x64)'
  1922. Closes #8919
  1923. - cmake: enable curl.rc for all Windows targets
  1924. Before this patch, it was only enabled for MSVC. This syncs this
  1925. configuration with libcurl.rc, which was already included with
  1926. every Windows compiler.
  1927. Closes #8918
  1928. - cmake: fix detecting libidn2
  1929. Without this patch, libidn2 detection doesn't even seem to be
  1930. attempted. With this patch, cmake can be configured to pick it
  1931. up and enable it. Necessary configuration remains manual and
  1932. differs from most other dependencies.
  1933. If you are aware of a better fix, we're glad hearing about it
  1934. in a new Issue.
  1935. Closes #8917
  1936. - version: allow stricmp() for sorting the feature list
  1937. In CMakeLists.txt there is an attempt to detect `stricmp()`, and in
  1938. certain cases, this attempt is the only successful one to detect a
  1939. case-insensitive comparison function. `HAVE_STRICMP` is defined as
  1940. a result, but this macro wasn't used anywhere in the source. This
  1941. patch makes use of it as an alternative when alpha-sorting the
  1942. `--version` feature list.
  1943. Reviewed-by: Daniel Stenberg
  1944. Closes #8916
  1945. Daniel Stenberg (25 May 2022)
  1946. - DISABLED: add six tests that fail with hyper
  1947. 1117 1274 1940 1941 1942 1943
  1948. - c-hyper: mark status line as status for Curl_client_write()
  1949. To make sure the headers API can filter it out as not a regular header.
  1950. Reported-by: Gisle Vanem
  1951. Fixes #8894
  1952. Closes #8914
  1953. Marc Hoersken (25 May 2022)
  1954. - tests/data/test1501: kill ftp server after slow LIST response
  1955. This test is contributing to flakiness on the Windows CI runs.
  1956. Killing the ftp server after the test run like other slowness
  1957. tests already do may help resolve or reduce the flakiness.
  1958. Closes #8907
  1959. Daniel Stenberg (25 May 2022)
  1960. - headers: fix the unfold realloc to use proper new size
  1961. Previously it didn't take the old name length into acount
  1962. Follow-up to: c9b60f005358a364
  1963. Closes #8913
  1964. Marc Hoersken (25 May 2022)
  1965. - GHA: align all install, configure and build steps again
  1966. First step towards more unified build steps on GitHub Actions.
  1967. Closes #8873
  1968. - CI/azure: remove obsolete strategy for single builds
  1969. This shortens these CI job names on GitHub even more.
  1970. Follow up to #8906 which also increased their timeout.
  1971. Closes #8911
  1972. - CI/azure: shorten names of Windows CI jobs
  1973. Suggested-by: Daniel Stenberg
  1974. Closes #8906
  1975. Daniel Stenberg (24 May 2022)
  1976. - http: restore header folding behavior
  1977. Folded header lines will now get passed through like before. The headers
  1978. API is adapted and will provide the content unfolded.
  1979. Added test 1274 and extended test 1940 to verify.
  1980. Reported-by: Petr Pisar
  1981. Fixes #8844
  1982. Closes #8899
  1983. Viktor Szakats (24 May 2022)
  1984. - Makefile.m32: delete obsolete options, improve -On [ci skip]
  1985. - `-D_AMD64_` has not been necessary for mingw-w64 builds for a long time now.
  1986. - `-fno-strict-aliasing` is mentioned for Intel C compiler in autotools, and
  1987. I used this with VxWorks in another project, but otherwise this isn't
  1988. necessary anymore as a default. If a target still needs it, it can be
  1989. added with `CURL_CFLAG_EXTRAS=-fno-strict-aliasing`
  1990. - bump up default optimization level to `-O3` (from `-O2`), and also rearrange
  1991. option order so the default can now be overridden via
  1992. `CURL_CFLAG_EXTRAS`.
  1993. - delete `-g` (generate debug info) from `CFLAGS` and `-s` from `LDFLAGS`
  1994. (strip debug info). They were working against each other. Now, if someone
  1995. needs debug info, it can be enabled via `CURL_CFLAG_EXTRAS=-g`
  1996. Closes #8904
  1997. Daniel Gustafsson (24 May 2022)
  1998. - ntlm: fix one more hostname test fallout
  1999. This fixup was missed in commit 5a41abef6dca19.
  2000. Closes: #8901
  2001. Reviewed-by: Daniel Stenberg <[email protected]>
  2002. - doh: remove UNITTEST macro definition
  2003. The UNITTEST macro is defined by curl_setup.h so there is no use in
  2004. carry a local copy of the logic.
  2005. Closes: #8902
  2006. Reviewed-by: Daniel Stenberg <[email protected]>
  2007. Daniel Stenberg (24 May 2022)
  2008. - cookie: fix false positive "potentially uninitialized local variable"
  2009. Reviewed-by: Daniel Gustafsson
  2010. Closes #8903
  2011. - curl: add --rate to set max request rate per time unit
  2012. --rate "12/m" - for 12 per minute or
  2013. --rate "5/h" - for 5 per hour
  2014. Removed from TODO
  2015. Closes #8671
  2016. - [Jay Satiro brought this change]
  2017. max-time.d: clarify max-time sets max transfer time
  2018. Prior to this change the doc said --max-time set the maximum time of the
  2019. 'whole operation' which is not accurate. The option maps to
  2020. CURLOPT_TIMEOUT_MS which sets maximum transfer time.
  2021. For example, the maximum time on a transfer is reset if the transfer is
  2022. retried (--retry).
  2023. Reported-by: [email protected]
  2024. Fixes https://github.com/curl/curl/issues/8877
  2025. Closes #8879
  2026. - GHA/hyper: enable debug in the build
  2027. - hyper: use 'alt-used'
  2028. Makes test 412+413 work
  2029. Closes #8898
  2030. - RELEASE-NOTES: synced
  2031. - CURLINFO_CAPATH/CAINFO: get the default CA paths from libcurl
  2032. Closes #8888
  2033. - links: update dead links
  2034. The wiki pages are gone, remove and link to more long-living docs.
  2035. Closes #8897
  2036. - ntlm: (void) typecast msnprintf() where we ignore return code
  2037. Follow-up to 5a41abef6, to please Coverity
  2038. Daniel Gustafsson (22 May 2022)
  2039. - ntlm: copy NTLM_HOSTNAME to host buffer
  2040. Commit 709ae2454f43 added a fake hostname to avoid leaking the local
  2041. hostname, but omitted copying it to the host buffer. Fix by copying
  2042. and adjust the test fallout.
  2043. Closes: #8895
  2044. Fixes: #8893
  2045. Reported-by: Patrick Monnerat <[email protected]>
  2046. Reviewed-by: Daniel Stenberg <[email protected]>
  2047. - configure: use the SED value to invoke sed
  2048. Rather than assuming sed in PATH, use the resolved $SED variable
  2049. like in all other invocations of sed in configure.
  2050. Closes: #8891
  2051. Reviewed-by: Daniel Stenberg <[email protected]>
  2052. Reviewed-by: Marcel Raad <[email protected]>
  2053. Daniel Stenberg (20 May 2022)
  2054. - [Tatsuhiro Tsujikawa brought this change]
  2055. ngtcp2: Allow curl to send larger UDP datagrams
  2056. Allow curl to send larger UDP datagram if Path MTU Discovery finds the
  2057. availability of larger path MTU. To make it work and not to send
  2058. fragmented packet, we need to set DF bit. That makes send(2) fail with
  2059. EMSGSIZE if UDP datagram is too large. In that case, just let it be
  2060. lost. This patch enables DF bit for Linux only.
  2061. Closes #8883
  2062. - libcurl-security.3: add "Secrets in memory"
  2063. Closes #8881
  2064. - tests: update NTLM tests to use new host name
  2065. Also drop the debug requirement, remove the setenv sections, remove
  2066. prechecks and add NTLM to the top keywords.
  2067. Closes #8889
  2068. - ntlm: provide a fixed fake host name
  2069. The NTLM protocol includes providing the local host name, but apparently
  2070. other implementations already provide a fixed fake name instead to avoid
  2071. leaking the real local name.
  2072. The exact name used is 'WORKSTATION', because Firefox uses that.
  2073. The change is written to allow someone to "back-pedal" fairly easy in
  2074. case of need.
  2075. Reported-by: Carlo Alberto
  2076. Fixes #8859
  2077. Closes #8889
  2078. Daniel Gustafsson (20 May 2022)
  2079. - KNOWN_BUGS: fix typo in problem description
  2080. s/TSL/TLS/
  2081. - FEATURES: remove yassl as TLS library for NTLM
  2082. yassl was added in commit 9d904ee41b880b but is no longer available
  2083. and is thus not a library to use for NTLM. This aligns the FEATURES
  2084. doc with the FAQ.
  2085. Closes: #8886
  2086. Reviewed-by: Daniel Stenberg <[email protected]>
  2087. - FEATURES: reorder footnotes
  2088. The empty left-behind footnote confused the website rendering into
  2089. creating a nested emoty list, making the resulting page look quite
  2090. odd. Remove and re-order the remaining ones to avoid a gap in the
  2091. sequence.
  2092. Closes: #8886
  2093. Reviewed-by: Daniel Stenberg <[email protected]>
  2094. - FAQ: remove opinionated sentence on NTLM
  2095. curl is a tool that support many different things, and it doesn't
  2096. really seem like our job to tell other what to use (as they might
  2097. not have much say in the matter even). Also tidy up wording.
  2098. Closes: #8886
  2099. Reviewed-by: Daniel Stenberg <[email protected]>
  2100. Viktor Szakats (20 May 2022)
  2101. - log2changes: do not indent empty lines [ci skip]
  2102. This will omit two spaces of indentation from lines with no content,
  2103. thus avoiding 'spaces @ EOL'.
  2104. Reviewed-by: Daniel Stenberg <[email protected]>
  2105. Closes #8887
  2106. Daniel Stenberg (19 May 2022)
  2107. - wolfssl: correct the failf() message when a handle can't be made
  2108. Closes #8885
  2109. Viktor Szakats (19 May 2022)
  2110. - Makefile.m32: delete two obsolete OpenSSL options [ci skip]
  2111. - -DOPENSSL_NO_KRB5: No longer used by OpenSSL 1.1.x, 3.x, or
  2112. LibreSSL 3.5.x, yet it collides with the latter, which defines
  2113. it unconditionally, resulting in this warning:
  2114. ../../libressl/include/openssl/opensslfeatures.h:14:9: warning: 'OPENSSL_NO_KRB5' macro redefined [-Wmacro-redefined]
  2115. It was originally added to curl in 2004.
  2116. - -DHAVE_OPENSSL_PKCS12_H: No longer used by OpenSSL 1.1.x, 3.x, or
  2117. LibreSSL back to at least 2.5.5. Originally added in the same
  2118. commit as the above, in 2004.
  2119. Closes #8884
  2120. Daniel Stenberg (19 May 2022)
  2121. - RELEASE-NOTES: synced
  2122. bump to 7.84.0
  2123. - [Christian Weisgerber via curl-library brought this change]
  2124. Makefile.am: fix portability issues
  2125. Commit a04f0b961333e1a19848d073d8c7db9c20b2a371 made me notice that
  2126. there is a portability issue in curl's top-level Makefile.am.
  2127. $< can only be used in rules that deal with .SUFFIXES. Its use
  2128. for general prerequisites is a GNU make extension.
  2129. $< could be replaced by $?, but I think in an autotools context,
  2130. something like this is better:
  2131. Bug: https://curl.se/mail/lib-2022-05/0024.html
  2132. Closes #8861
  2133. - [Balakrishnan Balasubramanian brought this change]
  2134. socks: support unix sockets for socks proxy
  2135. Usage:
  2136. curl -x "socks5h://localhost/run/tor/socks" "https://example.com"
  2137. Updated runtests.pl to run a socksd server listening on unix socket
  2138. Added tests test1467 test1468
  2139. Added documentation for proxy command line option and socks proxy
  2140. options
  2141. Closes #8668
  2142. - [Vincent Torri brought this change]
  2143. cmake: add libpsl support
  2144. Fixes #8865
  2145. Closes #8867
  2146. - [Tatsuhiro Tsujikawa brought this change]
  2147. ngtcp2: extend QUIC transport parameters buffer
  2148. Extend QUIC transport parameters buffer because 64 bytes are too
  2149. short for the ever increasing parameters.
  2150. Closes #8872
  2151. - [Tatsuhiro Tsujikawa brought this change]
  2152. ngtcp2: handle error from ngtcp2_conn_submit_crypto_data
  2153. Closes #8871
  2154. - [Tatsuhiro Tsujikawa brought this change]
  2155. ngtcp2: send appropriate connection close error code
  2156. Closes #8870
  2157. - test1561: adjusted for the cookie fix
  2158. - test414: verify secure cookie domain overlay
  2159. - [Harry Sintonen brought this change]
  2160. cookie: address secure domain overlay
  2161. Bug: https://hackerone.com/reports/1560324
  2162. Co-authored-by: Daniel Stenberg
  2163. Closes #8840
  2164. - [Frank Gevaerts brought this change]
  2165. strcase: some optimisations
  2166. Lookup tables for toupper() and tolower() make Curl_strcasecompare()
  2167. about 1.5 times faster. Reorganising Curl_strcasecompare() to fully exit
  2168. early then also allows simplifying the check at the end, for another
  2169. 15%. In total, the changes make Curl_strcasecompare() around 1.6 to 1.7
  2170. times faster.
  2171. Note that these optimisation assume ASCII. The original
  2172. Curl_raw_toupper() and raw_tolower() look like they already made that
  2173. assumption.
  2174. Closes #8875
  2175. - BUG-BOUNTY.md: mention the audit exception
  2176. Dedicated - paid for - security audits that are performed in
  2177. collaboration with curl developers are not eligible for bounties.
  2178. (plus I changed the sub-titles to use ## instead of # in the markdown)
  2179. Closes #8880
  2180. - lib/vssh/wolfssh.h: removed
  2181. Unused header file
  2182. Reported-by: Illarion Taev
  2183. Fixes #8863
  2184. Closes #8866
  2185. - [Elms brought this change]
  2186. wolfSSL: explicitly use compatibility layer
  2187. This change removes adding an include `$prefix/wolfssl` or similar to
  2188. allow for openssl include aliasing. Include paths of `wolfssl/openssl/`
  2189. are used to explicitly use wolfSSL includes. This fixes cmake builds as
  2190. well as avoiding potentially using openSSL headers since include path
  2191. order is not guaranteed.
  2192. Closes #8864
  2193. - curl: deprecate --random-file and --egd-file
  2194. As libcurl no longer has any functionality for them, the tool now does
  2195. nothing with them.
  2196. Closes #8670
  2197. - opts: deprecate RANDOM_FILE and EGDSOCKET
  2198. These two options were only ever used for the OpenSSL backend for
  2199. versions before 1.1.0. They were never used for other backends and they
  2200. are not used with recent OpenSSL versions. They were never used much by
  2201. applications.
  2202. The defines RANDOM_FILE and EGD_SOCKET can still be set at build-time
  2203. for ancient EOL OpenSSL versions.
  2204. Closes #8670
  2205. - [Harry Sintonen brought this change]
  2206. bindlocal: don't use a random port if port number would wrap
  2207. Earlier if CURLOPT_LOCALPORT + CURLOPT_LOCALPORTRANGE would go past port
  2208. 65535 the code would fall back to random port rather than giving up.
  2209. Closes #8862
  2210. Daniel Gustafsson (16 May 2022)
  2211. - transfer: Fix potential NULL pointer dereference
  2212. Commit 0ef54abf5208 accidentally used the conn variable before the
  2213. assertion for it being NULL. Fix by moving the assignment which use
  2214. conn to after the assertion.
  2215. Closes: #8857
  2216. Reviewed-by: Daniel Stenberg <[email protected]>
  2217. - docs: clarify data replacement policy for MIME API
  2218. The API documentation for the MIME functions specify that the parts
  2219. can be set twice, with the last call winning. While true, the user
  2220. can set the parts n times for n > 2, reword to specify multiple API
  2221. calls instead.
  2222. Closes: #8860
  2223. Reviewed-by: Daniel Stenberg <[email protected]>
  2224. Daniel Stenberg (16 May 2022)
  2225. - [vvb2060 on github brought this change]
  2226. ngtcp2: support boringssl crypto backend
  2227. Closes #8789
  2228. - [Tatsuhiro Tsujikawa brought this change]
  2229. quic: add Curl_quic_idle
  2230. Add Curl_quic_idle which is called when no HTTP level read or write is
  2231. performed. It is a good place to handle timer expiry for QUIC transport
  2232. (.e.g, retransmission).
  2233. Closes #8698
  2234. - [Gregor Jasny brought this change]
  2235. mprintf: ignore clang non-literal format string
  2236. Closes #8740
  2237. - [Nick Zitzmann brought this change]
  2238. sectransp: check for a function defined when __BLOCKS__ is undefined
  2239. SecTrustEvaluateAsync() is defined in the macOS 10.7 SDK, but it
  2240. requires Grand Central Dispatch to be supported by the compiler, and
  2241. some third-party macOS compilers do not support Grand Central Dispatch.
  2242. SecTrustCopyPublicKey() is not present in macOS 10.6, so this shouldn't
  2243. adversely affect anything.
  2244. Fixes #8846
  2245. Reported-by: Egor Pugin
  2246. Closes #8854
  2247. Daniel Gustafsson (16 May 2022)
  2248. - test412/413: Use version macro for User-Agent
  2249. Commit 46d45ea3a incorrectly hardcoded the User-Agent in the test
  2250. output file which breaks when curlver is updated. Shift to using
  2251. the %VERSION macro instead.
  2252. Closes: #8856
  2253. - macos9: remove partial support
  2254. The support for compiling on Mac OS 9 hasn't been modified since 2001
  2255. and has no active maintainer or packager, so it's time to remove it as
  2256. it's incredibly unlikely to work. If a maintainer re-emerges it can be
  2257. resurrected from Git history.
  2258. Closes: #8836
  2259. Reviewed-by: Daniel Stenberg <[email protected]>
  2260. Daniel Stenberg (16 May 2022)
  2261. - test1635: verify --fail-with-body with --retry
  2262. Almost a dupe of 1634
  2263. Closes #8847
  2264. - tool_operate: make sure --fail-with-body works with --retry
  2265. ... in the same way --fail already does.
  2266. Reported-by: Jakub Bochenski
  2267. Fixes #8845
  2268. Closes #8847
  2269. - [Tatsuhiro Tsujikawa brought this change]
  2270. ngtcp2: Correct use of ngtcp2 and nghttp3 signed integer types
  2271. Closes #8851
  2272. - [Tatsuhiro Tsujikawa brought this change]
  2273. ngtcp2: Fix alert_read_func return value
  2274. Closes #8852
  2275. - [Harry Sintonen brought this change]
  2276. Curl_parsenetrc: don't access local pwbuf outside of scope
  2277. Accessing local variables outside of the scope is forbidden and
  2278. depending on the compiler can result in the value being
  2279. overwritten. Fixed by moving the pwbuf to be in scope.
  2280. Closes #8850
  2281. - RELEASE-NOTES: synced
  2282. and bump curlver to 7.83.2 for now (but likely to become 7.84.0 soon)
  2283. - [Frazer Smith brought this change]
  2284. ci: update github actions
  2285. - bump actions/checkout from 2 to 3
  2286. - bump actions/upload-artifact from 1 to 3
  2287. - bump github/codeql-actions from 1 to 2
  2288. - use version tag for actions/checkout
  2289. Closes #8843
  2290. - test1919: verify CURLOPT_XOAUTH2_BEARER leak fix
  2291. - url: free old conn better on reuse
  2292. Make use of conn_free() better and avoid duplicate code.
  2293. Reported-by: Andrea Pappacoda
  2294. Fixes #8841
  2295. Closes #8842
  2296. Jay Satiro (14 May 2022)
  2297. - FAQ: Clarify Windows double quote usage
  2298. - Windows command prompt doesn't use literal quoting via single quotes.
  2299. - Windows command prompt inner double quotes are escaped with a
  2300. backslash.
  2301. - Windows powershell does use single quotes but curl is not a powershell
  2302. script so the arguments may not be passed on correctly.
  2303. - Windows powershell inner double quotes seems can be passed to curl if
  2304. the outer quotes are double quotes and an escape of backslash-backtick
  2305. is used.
  2306. Command prompt example:
  2307. ~~~
  2308. getargs -v -d "\"a\""
  2309. argv[0]: getargs
  2310. argv[1]: -v
  2311. argv[2]: -d
  2312. argv[3]: "a"
  2313. ~~~
  2314. Ref: https://github.com/curl/curl/issues/8818
  2315. Ref: https://gist.github.com/jay/19aba48653bd591cf4b90eb9249a302c
  2316. Reported-by: [email protected]
  2317. Closes https://github.com/curl/curl/pull/8823
  2318. Daniel Stenberg (12 May 2022)
  2319. - github/workflows/nss: apt update first
  2320. Fix "libnss3-dev_3.49.1-1ubuntu1.6_amd64.deb 404 Not Found"
  2321. Closes #8837
  2322. - page-footer: mention exit code zero too
  2323. Success (zero) is also an "exit code" worth mentioning.
  2324. Closes #8833
  2325. Daniel Gustafsson (12 May 2022)
  2326. - gssapi: initialize gss_buffer_desc strings
  2327. Explicitly initialize gss_buffer_desc strings such that a call to
  2328. freeing resources will succeed even if no data has been allocated
  2329. to it.
  2330. Reported-by: Jay Satiro <[email protected]>
  2331. - gssapi: improve handling of errors from gss_display_status
  2332. In case gss_display_status() returns an error, avoid trying to add
  2333. it to the buffer as the message may well be a NULL pointer.
  2334. Originally this fix comes from a discussion in issue #8816.
  2335. Closes: #8832
  2336. Reviewed-by: Jay Satiro <[email protected]>
  2337. Jay Satiro (12 May 2022)
  2338. - [steini2000 brought this change]
  2339. http2: always debug print stream id in decimal with %u
  2340. Prior to this change the stream id shown could be hex or decimal which
  2341. was inconsistent and confusing.
  2342. Closes https://github.com/curl/curl/pull/8808
  2343. Kamil Dudka (11 May 2022)
  2344. - url: remove redundant #ifdefs in allocate_conn()
  2345. No change in behavior intended by this commit.
  2346. Daniel Stenberg (11 May 2022)
  2347. - [Fabian Keil brought this change]
  2348. tests 266, 116 and 1540: add a small write delay
  2349. This makes it more likely that the trailer is received
  2350. seperately from the last-chunk.
  2351. curl doesn't seem to care about this but it makes the tests
  2352. more useful when testing external proxies like Privoxy.
  2353. - [Fabian Keil brought this change]
  2354. tests 1117,1238,1523: adjust writedelay servercmds
  2355. ... so the delays are the same now that the unit
  2356. is in milliseconds.
  2357. - [Fabian Keil brought this change]
  2358. tests/server/sws.c: change the HTTP writedelay unit to milliseconds
  2359. This allows to use write delays for large responses without
  2360. resulting in the test taking an unreasonable amount of time.
  2361. In many cases delaying writes by a whole second or more isn't
  2362. necessary for the desired effect.
  2363. Closes #8827
  2364. Daniel Gustafsson (11 May 2022)
  2365. - aws-sigv4: fix potentional NULL pointer arithmetic
  2366. We need to check if the strchr() call returns NULL (due to missing
  2367. char) before we use the returned value in arithmetic. There is no
  2368. live bug here, but fixing it before it can become for hygiene.
  2369. Closes: #8814
  2370. Reviewed-by: Daniel Stenberg <[email protected]>
  2371. Daniel Stenberg (11 May 2022)
  2372. - quiche: support ca-fallback
  2373. Follow-up to b01f3e679f4c1ea3 which added this for ngtcp2/openssl
  2374. Removed from KNOWN_BUGS
  2375. Fixes #8696
  2376. Closes #8830
  2377. Daniel Gustafsson (11 May 2022)
  2378. - x509asn1: mark msnprintf return as unchecked
  2379. We have lots of unchecked msnprintf calls, and this particular msnprintf
  2380. call isn't more interesting than the others, but this one yields a Coverity
  2381. warning so let's implicitly silence it. Going over the other invocations
  2382. is probably a worthwhile project, but for now let's keep the static
  2383. analyzers happy.
  2384. Closes: #8831
  2385. Reviewed-by: Daniel Stenberg <[email protected]>
  2386. Version 7.83.1 (11 May 2022)
  2387. Daniel Stenberg (11 May 2022)
  2388. - RELEASE-NOTES: synced
  2389. curl 7.83.1 release
  2390. - THANKS: added contributors from 7.83.1
  2391. - zuul: fix the ngtcp2-gnutls build
  2392. Add packages and tweak the configure options.
  2393. Use the GnuTLS 3.7.4 branch (not main).
  2394. Closes #8829
  2395. - [Tatsuhiro Tsujikawa brought this change]
  2396. ngtcp2: add ca-fallback support for OpenSSL backend
  2397. Closes #8828
  2398. - url: check SSH config match on connection reuse
  2399. CVE-2022-27782
  2400. Reported-by: Harry Sintonen
  2401. Bug: https://curl.se/docs/CVE-2022-27782.html
  2402. Closes #8825
  2403. - tls: check more TLS details for connection reuse
  2404. CVE-2022-27782
  2405. Reported-by: Harry Sintonen
  2406. Bug: https://curl.se/docs/CVE-2022-27782.html
  2407. Closes #8825
  2408. - cookies: make bad_domain() not consider a trailing dot fine
  2409. The check for a dot in the domain must not consider a single trailing
  2410. dot to be fine, as then TLD + trailing dot is fine and curl will accept
  2411. setting cookies for it.
  2412. CVE-2022-27779
  2413. Reported-by: Axel Chong
  2414. Bug: https://curl.se/docs/CVE-2022-27779.html
  2415. Closes #8820
  2416. - test977: reproduce ability to set cookie on TLD
  2417. When PSL is not enabled
  2418. - scripts/contributors.sh: correct the copyright range
  2419. - docs/RELEASE-PROCEDURE.md: refreshed and adjsuted the release dates
  2420. - test379: verify --remove-on-error with --no-clobber
  2421. - post_per_transfer: remove the updated file name
  2422. When --remove-on-error is used with --no-clobber, it might have an
  2423. updated file name to remove.
  2424. Bug: https://curl.se/docs/CVE-2022-27778.html
  2425. CVE-2022-27778
  2426. Reported-by: Harry Sintonen
  2427. Closes #8824
  2428. - hsts: ignore trailing dots when comparing hosts names
  2429. CVE-2022-30115
  2430. Reported-by: Axel Chong
  2431. Bug: https://curl.se/docs/CVE-2022-30115.html
  2432. Closes #8821
  2433. - test440/441: verify HSTS with trailing dots
  2434. - libtest/lib1560: verify the host name percent decode fix
  2435. - urlapi: reject percent-decoding host name into separator bytes
  2436. CVE-2022-27780
  2437. Reported-by: Axel Chong
  2438. Bug: https://curl.se/docs/CVE-2022-27780.html
  2439. Closes #8826
  2440. - nss: return error if seemingly stuck in a cert loop
  2441. CVE-2022-27781
  2442. Reported-by: Florian Kohnhäuser
  2443. Bug: https://curl.se/docs/CVE-2022-27781.html
  2444. Closes #8822
  2445. - test412/413: verify alt-svc with trailing dots
  2446. - altsvc: fix host name matching for trailing dots
  2447. Closes #8819
  2448. - [Garrett Squire brought this change]
  2449. hyper: fix test 357
  2450. This change fixes the hyper API such that PUT requests that receive a
  2451. 417 response can retry without the Expect header.
  2452. Closes #8811
  2453. - [Harry Sintonen brought this change]
  2454. sectransp: bail out if SSLSetPeerDomainName fails
  2455. Before the code would just warn about SSLSetPeerDomainName() errors.
  2456. Closes #8798
  2457. - http_proxy/hyper: handle closed connections
  2458. Enable test 1021 for hyper builds.
  2459. Patched-by: Prithvi MK
  2460. Fixes #8700
  2461. Closes #8806
  2462. - KNOWN_BUGS: timeout when reusing a http3 connection
  2463. Closes #8764
  2464. - KNOWN_BUGS: configure --with-ca-fallback is not supported by h3
  2465. Closes #8696
  2466. - [Ryan Schmidt brought this change]
  2467. Makefile: fix "make ca-firefox"
  2468. Closes #8804
  2469. Daniel Gustafsson (5 May 2022)
  2470. - tests: fix markdown formatting in README
  2471. The asterisk in the abbreviation *NIX (for UNIX/Linux) needs to be
  2472. escaped to not mean start of italic formatting. This is consistent
  2473. with docs/RELEASE-PROCEDURE.md.
  2474. Closes: #8802
  2475. Reviewed-by: Daniel Stenberg <[email protected]>
  2476. Daniel Stenberg (5 May 2022)
  2477. - TODO: expand on "Expose tried IP addresses that failed"
  2478. Ref: #8794
  2479. Daniel Gustafsson (5 May 2022)
  2480. - [Fabian Keil brought this change]
  2481. tests/server: declare variable 'reqlogfile' static
  2482. Silences the warning:
  2483. CC socksd-socksd.o
  2484. socksd.c:143:13: warning: no previous extern declaration for
  2485. non-static variable 'reqlogfile' [-Wmissing-variable-declarations]
  2486. const char *reqlogfile = DEFAULT_REQFILE;
  2487. ^
  2488. socksd.c:143:7: note: declare 'static' if the variable is not
  2489. intended to be used outside of this translation unit
  2490. const char *reqlogfile = DEFAULT_REQFILE;
  2491. ^
  2492. 1 warning generated.
  2493. ... when compiling with clang 13.
  2494. Closes: #8799
  2495. Reviewed-by: Daniel Gustafsson <[email protected]>
  2496. - HTTP-COOKIES: add missing CURLOPT_COOKIESESSION
  2497. Commit 980a47b42 added support for ignoring session cookies, but it
  2498. was never added to the documentation.
  2499. Closes: #8795
  2500. Reviewed-by: Daniel Stenberg <[email protected]>
  2501. Daniel Stenberg (5 May 2022)
  2502. - docs/THANKS: remove name duplicate
  2503. - [Philip H brought this change]
  2504. .mailmap: update
  2505. Closes #8800
  2506. Jay Satiro (5 May 2022)
  2507. - mbedtls: fix some error messages
  2508. Prior to this change some of the error messages misidentified the
  2509. function that failed.
  2510. Daniel Stenberg (5 May 2022)
  2511. - RELEASE-NOTES: synced
  2512. - [Sergey Markelov brought this change]
  2513. x509asn1: make do_pubkey handle EC public keys
  2514. Closes #8757
  2515. - [Harry Sintonen brought this change]
  2516. mbedtls: bail out if rng init fails
  2517. There was a failf() call but no actual error return.
  2518. Closes #8796
  2519. - [Sergey Markelov brought this change]
  2520. urlapi: address (harmless) UndefinedBehavior sanitizer warning
  2521. `while(i--)` causes runtime error: unsigned integer overflow: 0 - 1
  2522. cannot be represented in type 'size_t' (aka 'unsigned long')
  2523. Closes #8797
  2524. - [Fabian Keil brought this change]
  2525. test{898,974,976}: add 'HTTP proxy' keywords
  2526. ... so the tests can be automatically skipped when
  2527. testing external HTTP proxies like Privoxy.
  2528. Closes #8791
  2529. - [Harry Sintonen brought this change]
  2530. gskit_connect_step1: fixed bogus setsockopt calls
  2531. setsockopt takes a reference to value, not value. With the current
  2532. code this just leads to -1 return value with errno EFAULT.
  2533. Closes #8793
  2534. - CURLOPT_SSH_AUTH_TYPES.3: fix the default
  2535. The default is all possible methods.
  2536. Closes #8792
  2537. - CURLOPT_DOH_URL.3: mention the known bug
  2538. It is mostly duplicating info from KNOWN_BUGS but make it easier to find
  2539. for users of this option.
  2540. Closes #8790
  2541. - CURLOPT_HSTS*FUNCTION.3: document the involved structs as well
  2542. Reviewed-By: Daniel Gustafsson
  2543. Closes #8788
  2544. - docs/SECURITY-PROCESS.md: "Visible command line arguments"
  2545. - SECURITY-PROCESS: mention "URL inconsistencies"
  2546. ... as common problems that are *not* vulns.
  2547. Daniel Gustafsson (2 May 2022)
  2548. - contributors: strip off final comma
  2549. The final row of contributors should not end with a comma as it's the
  2550. end of the list.
  2551. Closes: #8785
  2552. Reviewed-by: Daniel Stenberg <[email protected]>
  2553. Daniel Stenberg (2 May 2022)
  2554. - [Philip H brought this change]
  2555. misc: use "autoreconf -fi" instead buildconf
  2556. Signed-off-by: Philip H <[email protected]>
  2557. Closes #8777
  2558. Daniel Gustafsson (2 May 2022)
  2559. - [Philip H brought this change]
  2560. cirrus: Use pip for Python packages on FreeBSD
  2561. Using pip instead of easy_install is more in line with how other
  2562. CI images are being maintained.
  2563. Closes: #8783
  2564. Reviewed-by: Daniel Gustafsson <[email protected]>
  2565. - [Philip H brought this change]
  2566. cirrus: Update to FreeBSD 12.3
  2567. Closes: #8783
  2568. Reviewed-by: Daniel Gustafsson <[email protected]>
  2569. - tool_getparam: simplify conditional statement
  2570. param_place cannot be NULL here since we immediately efter this block
  2571. perform arithmetic on it (and use it in order to get here) so there is
  2572. little reason to check.
  2573. Closes: #8786
  2574. Reviewed-by: Daniel Stenberg <[email protected]>
  2575. - RELEASE-NOTES: synced
  2576. - gskit: remove unused function set_callback
  2577. This function has been unused since the initial commit of the GSKit
  2578. backend in 0eba02fd4. The motivation for the code was getting the
  2579. whole certificate chain: the only place where the latter is available
  2580. is as a callback parameter. Unfortunately it is not possible to pass
  2581. a user pointer to this callback, which precludes the possibility to
  2582. associate the cert chain with a data/conn structure.
  2583. For further information, search for pgsk_cert_validation_callback on:
  2584. https://www.ibm.com/docs/api/v1/content/ssw_ibm_i_71/apis/gsk_attribute_set_callback.htm
  2585. As the upstream library never added a parameter like that to the API,
  2586. we give up the wait and remove the dead code.
  2587. Closes: #8782
  2588. Reviewed-by: Patrick Monnerat <[email protected]>
  2589. - curl: free resource in error path
  2590. If the new filename cannot be generated due to memory pressure, free
  2591. the allocated aname on the way out to avoid a small leak.
  2592. Closes: #8770
  2593. Reviewed-by: Daniel Stenberg <[email protected]>
  2594. - curl: guard against size_t wraparound in no-clobber code
  2595. When generating the new filename, make sure we aren't overflowing the
  2596. size_t limit when calculating the new length. This is mostly academic
  2597. but good code hygeine nonetheless.
  2598. Closes: #8771
  2599. Reviewed-by: Daniel Stenberg <[email protected]>
  2600. Daniel Stenberg (30 Apr 2022)
  2601. - gha: build msh3
  2602. Closes #8779
  2603. - scripts/cijobs.pl: try "current branch" first then "master"
  2604. - [Yusuke Nakamura brought this change]
  2605. msh3: get msh3 version from MsH3Version
  2606. Closes #8762
  2607. - [Yusuke Nakamura brought this change]
  2608. msh3: psss remote_port to MsH3ConnectionOpen
  2609. MsH3 supported additional "Port" parameter to connect not hosted on
  2610. 443 port QUIC website.
  2611. * https://github.com/nibanks/msh3/releases/tag/v0.3.0
  2612. * https://github.com/nibanks/msh3/pull/37
  2613. Closes #8762
  2614. - [Christian Weisgerber brought this change]
  2615. openssl: define HAVE_SSL_CTX_SET_EC_CURVES for libressl
  2616. SSL_CTX_set1_curves_list() has been available since LibreSSL 2.5.3,
  2617. released five years ago.
  2618. Bug: https://curl.se/mail/lib-2022-04/0059.html
  2619. Closes #8773
  2620. - http: move Curl_allow_auth_to_host()
  2621. It was mistakenly put within the CURL_DISABLE_HTTP_AUTH #ifdef
  2622. Reported-by: Michael Olbrich
  2623. Fixes #8772
  2624. Closes #8775
  2625. Daniel Gustafsson (29 Apr 2022)
  2626. - msh3: print boolean value as text representation
  2627. Print the boolean value as its string representation instead of with
  2628. %hhu which isn't a format we typically use.
  2629. Closes: #8763
  2630. Reviewed-by: Nick Banks <[email protected]>
  2631. Daniel Stenberg (29 Apr 2022)
  2632. - data/test376: set a proper name
  2633. - GHA/mbedtls: enabled nghttp2 in the build
  2634. Closes #8767
  2635. - mbedtls: fix compile when h2-enabled
  2636. Fixes #8766
  2637. Reported-by: LigH-de on github
  2638. Closes #8768
  2639. - RELEASE-NOTES: synced
  2640. bumped curlver to 7.83.1-dev
  2641. - SECURITY-PROCESS: extended
  2642. Also clarify BUG-BOUNTY.md with IBB details.
  2643. Closes #8754
  2644. - [Adam Rosenfield brought this change]
  2645. conn: fix typo 'connnection' -> 'connection' in two function names
  2646. Closes #8759
  2647. Version 7.83.0 (27 Apr 2022)
  2648. Daniel Stenberg (27 Apr 2022)
  2649. - RELEASE-NOTES: synced
  2650. The 7.83.0 release
  2651. - docs/THANKS: contributors from 7.83.0
  2652. - test 898/974/976: require proxy to run
  2653. Fixes #8755
  2654. Reported-by: Marc Hörsken
  2655. Closes #8756
  2656. - gnutls: don't leak the SRP credentials in redirects
  2657. Follow-up to 620ea21410030 and 139a54ed0a172a
  2658. Reported-by: Harry Sintonen
  2659. Closes #8752
  2660. - CURLOPT*TLSAUTH: they only work with OpenSSL or GnuTLS
  2661. Closes #8753
  2662. - openssl: don't leak the SRP credentials in redirects either
  2663. Follow-up to 620ea21410030
  2664. Reported-by: Harry Sintonen
  2665. Closes #8751
  2666. - [Liam Warfield brought this change]
  2667. hyper: fix tests 580 and 581 for hyper
  2668. Hyper now has the ability to preserve header order. This commit adds a
  2669. few lines setting the connection options for this feature.
  2670. Related to issue #8617
  2671. Closes #8707
  2672. - conncache: remove name arg from Curl_conncache_find_bundle
  2673. To simplify, and also since the returned name is not the full actual
  2674. name used for the check. The port number and zone id is also involved,
  2675. so just showing the name is misleading.
  2676. Closes #8750
  2677. - tests: verify the fix for CVE-2022-27774
  2678. - Test 973 redirects from HTTP to FTP, clear auth
  2679. - Test 974 redirects from HTTP to HTTP different port, clear auth
  2680. - Test 975 redirects from HTTP to FTP, permitted to keep auth
  2681. - Test 976 redirects from HTTP to HTTP different port, permitted to keep
  2682. auth
  2683. - transfer: redirects to other protocols or ports clear auth
  2684. ... unless explicitly permitted.
  2685. Bug: https://curl.se/docs/CVE-2022-27774.html
  2686. Reported-by: Harry Sintonen
  2687. Closes #8748
  2688. - connect: store "conn_remote_port" in the info struct
  2689. To make it available after the connection ended.
  2690. - cookie.d: clarify when cookies are always sent
  2691. - test898: verify the fix for CVE-2022-27776
  2692. Do not pass on Authorization headers on redirects to another port
  2693. - http: avoid auth/cookie on redirects same host diff port
  2694. CVE-2022-27776
  2695. Reported-by: Harry Sintonen
  2696. Bug: https://curl.se/docs/CVE-2022-27776.html
  2697. Closes #8749
  2698. - libssh2: make the md5 comparison fail if wrong length
  2699. Making it just skip the check unless exactly 32 is too brittle. Even if
  2700. the docs says it needs to be exactly 32, it is be safer to make the
  2701. comparison fail here instead.
  2702. Reported-by: Harry Sintonen
  2703. Bug: https://hackerone.com/reports/1549461
  2704. Closes #8745
  2705. - conncache: include the zone id in the "bundle" hashkey
  2706. Make connections to two separate IPv6 zone ids create separate
  2707. connections.
  2708. Reported-by: Harry Sintonen
  2709. Bug: https://curl.se/docs/CVE-2022-27775.html
  2710. Closes #8747
  2711. - [Patrick Monnerat brought this change]
  2712. url: check sasl additional parameters for connection reuse.
  2713. Also move static function safecmp() as non-static Curl_safecmp() since
  2714. its purpose is needed at several places.
  2715. Bug: https://curl.se/docs/CVE-2022-22576.html
  2716. CVE-2022-22576
  2717. Closes #8746
  2718. - libssh2: compare sha256 strings case sensitively
  2719. Reported-by: Harry Sintonen
  2720. Bug: https://hackerone.com/reports/1549435
  2721. Closes #8744
  2722. - tool_getparam: error out on missing -K file
  2723. Add test 411 to verify.
  2724. Reported-by: Median Median Stride
  2725. Bug: https://hackerone.com/reports/1542881
  2726. Closes #8731
  2727. - [Tatsuhiro Tsujikawa brought this change]
  2728. ngtcp2: deal with sub-millisecond timeout
  2729. Closes #8738
  2730. - misc: update copyright year ranges
  2731. - c_escape: escape '?' in generated --libcurl code
  2732. In order to avoid the risk of it being used in an accidental trigraph in
  2733. the generated code.
  2734. Reported-by: Harry Sintonen
  2735. Bug: https://hackerone.com/reports/1548535
  2736. Closes #8742
  2737. - [Philip H brought this change]
  2738. mlc: curl.zuul.vexxhost.dev is reachable again
  2739. remove it from ignorelist for linkcheck
  2740. Closes #8736
  2741. - [Tatsuhiro Tsujikawa brought this change]
  2742. ngtcp2: avoid busy loop in low CWND situation
  2743. Closes #8739
  2744. - TODO: telnet - exit immediately upon connection if stdin is /dev/null
  2745. Suggested-by: Robin A. Meade
  2746. URL: https://curl.se/mail/archive-2022-04/0027.html
  2747. - [Kushal Das brought this change]
  2748. docs: updates spellings with full words
  2749. Closes #8730
  2750. - tests/FILEFORMAT.md: spellfix
  2751. Daniel Gustafsson (21 Apr 2022)
  2752. - misc: fix typos
  2753. Fix a few random typos is comments and workflow names.
  2754. - macos: fix .plist installation into framework
  2755. The copy command introduced in e498a9b1f had leftover '>' from the
  2756. previous sed command it replaced, which broke its syntax. Fix by
  2757. removing.
  2758. Reported-by: Emanuele Torre <[email protected]>
  2759. Daniel Stenberg (21 Apr 2022)
  2760. - [Christopher Degawa brought this change]
  2761. Makefile: fix ca-bundle due to mk-ca-bundle.pl being moved
  2762. The script was moved in 8e22fc68e7dda43e9f but the lines that called it
  2763. was not changed to reflect it's new position
  2764. Signed-off-by: Christopher Degawa <[email protected]>
  2765. Closes #8728
  2766. Daniel Gustafsson (20 Apr 2022)
  2767. - macos: set .plist version in autoconf
  2768. Set the libcurl version in libcurl.plist like how libcurl.vers is
  2769. created.
  2770. Closes: #8692
  2771. Reviewed-by: Daniel Stenberg <[email protected]>
  2772. Reviewed-by: Nick Zitzmann <[email protected]>
  2773. - cookies: Improve errorhandling for reading cookiefile
  2774. The existing programming had some issues with errorhandling for reading
  2775. the cookie file. If the file failed to open, we would silently ignore it
  2776. and continue as if there was no file (or stdin) passed. In this case, we
  2777. would also call fclose() on the NULL FILE pointer, which is undefined
  2778. behavior. Fix by ensuring that the FILE pointer is set before calling
  2779. fclose on it, and issue a warning in case the file cannot be opened.
  2780. Erroring out on nonexisting file would break backwards compatibility of
  2781. very old behavior so we can't really go there.
  2782. Closes: #8699
  2783. Reviewed-by: Daniel Stenberg <[email protected]>
  2784. Reviewed-by: Jay Satiro <[email protected]>
  2785. Daniel Stenberg (20 Apr 2022)
  2786. - libcurl-tutorial.3: spellfix and minor polish
  2787. - CURLINFO_PRIMARY_PORT.3: spellfix
  2788. Reported-by: Patrick Monnerat
  2789. - [Jay Dommaschk brought this change]
  2790. libssh: fix double close
  2791. libssh closes the socket in ssh_diconnect() so make sure that libcurl
  2792. does not also close it.
  2793. Fixes #8708
  2794. Closes #8718
  2795. Jay Satiro (20 Apr 2022)
  2796. - [Gisle Vanem brought this change]
  2797. unit1620: call global_init before calling Curl_open
  2798. Curl_open calls the resolver init and on Windows if the resolver backend
  2799. is c-ares then the Windows sockets library (winsock) must already have
  2800. been initialized (via global init).
  2801. Ref: https://github.com/curl/curl/pull/8540#issuecomment-1059771800
  2802. Closes https://github.com/curl/curl/pull/8719
  2803. Daniel Stenberg (19 Apr 2022)
  2804. - CURLINFO_PRIMARY_PORT.3: clarify which port this is
  2805. As it was not entirely clear previously.
  2806. Closes #8725
  2807. - CURLOPT_UNRESTRICTED_AUTH.3: extended explanation
  2808. Include details about Authentication headers.
  2809. Reported-by: Brad Spencer
  2810. Fixes #8724
  2811. Closes #8726
  2812. - .github/workflows/macos.yml: add a libssh job with c-ares
  2813. ... to enable the memdebug system
  2814. Closes #8720
  2815. - RELEASE-NOTES: synced
  2816. Jay Satiro (17 Apr 2022)
  2817. - [Gisle Vanem brought this change]
  2818. docs/HTTP3.md: fix typo
  2819. also fix msh3 section formatting
  2820. Ref: https://github.com/curl/curl/commit/37492ebb#r70980087
  2821. Marc Hoersken (17 Apr 2022)
  2822. - timediff.[ch]: add curlx helper functions for timeval conversions
  2823. Also move timediff_t definitions from timeval.h to timediff.h and
  2824. then make timeval.h include the new standalone-capable timediff.h.
  2825. Reviewed-by: Jay Satiro
  2826. Reviewed-by: Daniel Stenberg
  2827. Supersedes #5888
  2828. Closes #8595
  2829. Daniel Stenberg (17 Apr 2022)
  2830. - [Balakrishnan Balasubramanian brought this change]
  2831. tests: refactor server/socksd.c to support --unix-socket
  2832. Closes #8687
  2833. - [Emanuele Torre brought this change]
  2834. tool_paramhlp: use feof(3) to identify EOF correctly when using fread(3)
  2835. This loop was using the number of bytes read from the file as condition
  2836. to keep reading.
  2837. From Linux's fread(3) man page:
  2838. > On success, fread() and fwrite() return the number of items read or
  2839. > written. This number equals the number of bytes transferred only when
  2840. > size is 1. If an error occurs, or the end of the file is reached, the
  2841. > return value is a short item count (or zero).
  2842. >
  2843. > The file position indicator for the stream is advanced by the number
  2844. > of bytes successfully read or written.
  2845. >
  2846. > fread() does not distinguish between end-of-file and error, and
  2847. > callers must use feof(3) and ferror(3) to determine which occurred.
  2848. This means that nread!=0 doesn't make much sense as an end condition for
  2849. the loop: nread==0 doesn't necessarily mean that EOF has been reached or
  2850. an error has occured (but that is usually the case) and nread!=0 doesn't
  2851. necessarily mean that EOF has not been reached or that no read errors
  2852. have occured. feof(3) and ferror(3) should be uses when using fread(3).
  2853. Currently curl has to performs an extra fread(3) call to get a return
  2854. value equal to 0 to stop looping.
  2855. This usually "works" (even though nread==0 shouldn't be interpreted as
  2856. EOF) if stdin is a pipe because EOF usually marks the "real" end of the
  2857. stream, so the extra fread(3) call will return immediately and the extra
  2858. read syscall won't be noticeable:
  2859. bash-5.1$ strace -e read curl -s -F file=@- 0x0.st <<< a 2>&1 |
  2860. > tail -n 5
  2861. read(0, "a\n", 4096) = 2
  2862. read(0, "", 4096) = 0
  2863. read(0, "", 4096) = 0
  2864. http://0x0.st/oRs.txt
  2865. +++ exited with 0 +++
  2866. bash-5.1$
  2867. But this doesn't work if curl is reading from stdin, stdin is a
  2868. terminal, and the EOF is being emulated using a shell with ^D. Two
  2869. consecutive ^D will be required in this case to actually make curl stop
  2870. reading:
  2871. bash-5.1$ curl -F file=@- 0x0.st
  2872. a
  2873. ^D^D
  2874. http://0x0.st/oRs.txt
  2875. bash-5.1$
  2876. A possible workaround to this issue is to use a program that handles EOF
  2877. correctly to indirectly send data to curl's stdin:
  2878. bash-5.1$ cat - | curl -F file=@- 0x0.st
  2879. a
  2880. ^D
  2881. http://0x0.st/oRs.txt
  2882. bash-5.1$
  2883. This patch makes curl handle EOF properly when using fread(3) in
  2884. file2memory() so that the workaround is not necessary.
  2885. Since curl was previously ignoring read errors caused by this fread(3),
  2886. ferror(3) is also used in the condition of the loop: read errors and EOF
  2887. will have the same meaning; this is done to somewhat preserve the old
  2888. behaviour instead of making the command fail when a read error occurs.
  2889. Closes #8701
  2890. - gen.pl: change wording for mutexed options
  2891. Instead of saying "This option overrides NNN", now say "This option is
  2892. mutually exclusive to NNN" in the generated man page ouput, as the
  2893. option does not in all cases actually override the others but they are
  2894. always mutually exclusive.
  2895. Ref: #8704
  2896. Closes #8716
  2897. - curl: error out if -T and -d are used for the same URL
  2898. As one implies PUT and the other POST, both cannot be used
  2899. simultaneously.
  2900. Add test 378 to verify.
  2901. Reported-by: Boris Verkhovskiy
  2902. Fixes #8704
  2903. Closes #8715
  2904. - lib: remove exclamation marks
  2905. ... from infof() and failf() calls. Make them less attention seeking.
  2906. Closes #8713
  2907. - fail.d: tweak the description
  2908. Reviewed-by: Daniel Gustafsson
  2909. Suggested-by: Robert Charles Muir
  2910. Ref: https://twitter.com/rcmuir/status/1514915401574010887
  2911. Closes #8714
  2912. Daniel Gustafsson (15 Apr 2022)
  2913. - docs: Fix missing semicolon in example code
  2914. Multiple share examples were missing a semicolon on the line defining
  2915. the CURLSHcode variable.
  2916. Closes: #8697
  2917. Reported-by: Michael Kaufmann <[email protected]>
  2918. Reviewed-by: Daniel Stenberg <[email protected]>
  2919. - infof: consistent capitalization of warning messages
  2920. Ensure that all infof calls with a warning message are capitalized
  2921. in the same way. At some point we should probably set up a style-
  2922. guide for infof but until then let's aim for a little consistenncy
  2923. where we can.
  2924. Closes: #8711
  2925. Reviewed-by: Daniel Stenberg <[email protected]>
  2926. - RELEASE-NOTES: synced
  2927. - [Matteo Baccan brought this change]
  2928. perl: removed a double semicolon at end of line
  2929. Remove double semicolons at end of line in Perl code.
  2930. Closes: #8709
  2931. Reviewed-by: Daniel Gustafsson <[email protected]>
  2932. - curl_easy_header: fix typos in documentation
  2933. Closes: #8694
  2934. Reviewed-by: Daniel Stenberg <[email protected]>
  2935. Marcel Raad (11 Apr 2022)
  2936. - appveyor: add Cygwin build
  2937. Closes https://github.com/curl/curl/pull/8693
  2938. - appveyor: only add MSYS2 to PATH where required
  2939. Closes https://github.com/curl/curl/pull/8693
  2940. Daniel Stenberg (10 Apr 2022)
  2941. - [Tatsuhiro Tsujikawa brought this change]
  2942. ngtcp2: fix memory leak
  2943. Closes #8691
  2944. - [Tatsuhiro Tsujikawa brought this change]
  2945. ngtcp2: remove remote_addr which is not used in a meaningful way
  2946. Closes #8689
  2947. - [Tatsuhiro Tsujikawa brought this change]
  2948. ngtcp2: enlarge H3_SEND_SIZE
  2949. Make h3_SEND_SIZE larger because current value (20KiB) is too small
  2950. for the high latency environment.
  2951. Closes #8690
  2952. - [Tatsuhiro Tsujikawa brought this change]
  2953. ngtcp2: fix HTTP/3 upload stall and avoid busy loop
  2954. This commit fixes HTTP/3 upload stall if upload data is larger than
  2955. H3_SEND_SIZE. Only check writability of socket if a stream is
  2956. writable to avoid busy loop when QUIC flow control window is filled
  2957. up, or upload buffer is full.
  2958. Closes #8688
  2959. - [Nick Banks brought this change]
  2960. msh3: add support for QUIC and HTTP/3 using msh3
  2961. Considered experimental, as the other HTTP/3 backends.
  2962. Closes #8517
  2963. - TODO: "SFTP with SCP://"
  2964. - GHA: move bearssl jobs over from zuul
  2965. Closes #8684
  2966. - data/DISABLED: disable test 313 on bearssl builds
  2967. Closes #8684
  2968. - runtests: add 'bearssl' as testable feature
  2969. Closes #8684
  2970. - GHA: add openssl3 jobs moved over from zuul
  2971. Closes #8683
  2972. - schannel: remove dead code that will never run
  2973. As the condition can't ever evaluate true
  2974. Reported-by: Andrey Alifanov
  2975. Ref: #8675
  2976. Closes #8677
  2977. - connecache: remove duplicate connc->closure_handle check
  2978. The superfluous extra check could cause analyzer false positives
  2979. and doesn't serve any purpose.
  2980. Closes #8676
  2981. - [Michał Antoniak brought this change]
  2982. mbedtls: remove server_fd from backend
  2983. Closes #8682
  2984. - [Tatsuhiro Tsujikawa brought this change]
  2985. ngtcp2: use token when detecting :status header field
  2986. Closes #8679
  2987. - [Tatsuhiro Tsujikawa brought this change]
  2988. ngtcp2: make curl 1ms faster
  2989. Pass 0 for an already expired timer.
  2990. Closes #8678
  2991. - [Tatsuhiro Tsujikawa brought this change]
  2992. ngtcp2: fix QUIC_IDLE_TIMEOUT
  2993. QUIC_IDLE_TIMEOUT should be of type ngtcp2_duration which is
  2994. nanoseconds resolution.
  2995. Closes #8678
  2996. - English: use American spelling consistently
  2997. Authorization, Initialization, Organization etc.
  2998. Closes #8673
  2999. Daniel Gustafsson (5 Apr 2022)
  3000. - [Sascha Zengler brought this change]
  3001. BUGS: Fix incorrect punctuation
  3002. Closes #8672
  3003. Reviewed-by: Daniel Gustafsson <[email protected]>
  3004. Daniel Stenberg (4 Apr 2022)
  3005. - tool_listhelp.c: uppercase URL
  3006. - RELEASE-NOTES: synced
  3007. - http: streamclose "already downloaded"
  3008. Instead of connclose()ing, since when HTTP/2 is used it doesn't need to
  3009. close the connection as stopping the current transfer is enough.
  3010. Reported-by: Evangelos Foutras
  3011. Closes #8665
  3012. Jay Satiro (1 Apr 2022)
  3013. - ftp: fix error message for partial file upload
  3014. - Show the count of bytes written on partial file upload.
  3015. Prior to this change the error message mistakenly showed the count of
  3016. bytes read, not written.
  3017. Bug: https://github.com/curl/curl/discussions/8637
  3018. Reported-by: Taras Kushnir
  3019. Closes https://github.com/curl/curl/pull/8649
  3020. Daniel Stenberg (1 Apr 2022)
  3021. - http: correct the header error message to say colon
  3022. Not semicolon
  3023. Reported-by: Gisle Vanem
  3024. Ref: #8666
  3025. Closes #8667
  3026. - lib: #ifdef on USE_HTTP2 better
  3027. ... as nghttp2 might not be the library that provides HTTP/2 support.
  3028. Closes #8661
  3029. - [Michał Antoniak brought this change]
  3030. mbedtls: remove 'protocols' array from backend when ALPN is not used
  3031. Closes #8663
  3032. - http2: RST the stream if we stop it on our own will
  3033. For the "simulated 304" case the done-call isn't considered "premature"
  3034. but since the server didn't close the stream it needs to be reset to
  3035. stop delivering data.
  3036. Closes #8664
  3037. - http: close the stream (not connection) on time condition abort
  3038. Closes #8664
  3039. - http2: handle DONE called for the paused stream
  3040. As it could otherwise stall all streams on the connection
  3041. Reported-by: Evangelos Foutras
  3042. Fixes #8626
  3043. Closes #8664
  3044. - tls: make mbedtls and NSS check for h2, not nghttp2
  3045. This makes them able to also negotiate HTTP/2 even when built to use
  3046. hyper for h2.
  3047. Closes #8656
  3048. - tests/libtest/lib670.c: fixup the copyright year range
  3049. follow-up to b54e18640ea4b7
  3050. - [Leandro Coutinho brought this change]
  3051. lib670: avoid double check result
  3052. Closes #8660
  3053. - vtls: use a generic "ALPN, server accepted" message
  3054. Closes #8657
  3055. - vtls: use a backend standard message for "ALPN: offers %s"
  3056. I call it VTLS_INFOF_ALPN_OFFER_1STR, the '1str' meaning that the
  3057. infof() call also needs a string argument: the ALPN ID.
  3058. Closes #8657
  3059. - [Christian Schmitz brought this change]
  3060. strcase.h: add comment about the return code
  3061. Tool often we run into expecting this to work like strcmp, but it
  3062. returns 1 instead of 0 for match.
  3063. Closes #8658
  3064. - vtls: provide a unified APLN-disagree string for all backends
  3065. Also rephrase to make it sound less dangerous:
  3066. "ALPN: server did not agree on a protocol. Uses default."
  3067. Reported-by: Nick Coghlan
  3068. Fixes #8643
  3069. Closes #8651
  3070. - projects/README: converted to markdown
  3071. Closes #8652
  3072. - misc: spelling fixes
  3073. Mostly in comments but also in the -w documentation for headers_json.
  3074. Closes #8647
  3075. - KNOW_BUGS: HTTP3/Transfer closed with n bytes remaining to read
  3076. "HTTP/3 does not support client certs" considered fixed, at least with
  3077. the ngtcp2 backend.
  3078. Closes #8523
  3079. - CURLOPT_PREQUOTE.3: only works for FTP file transfers, not dirs
  3080. Also add to quote.d. Add to TODO as something to add in a future.
  3081. Reported-by: anon00000000 on github
  3082. Closes #8602
  3083. Closes #8648
  3084. - RELEASE-NOTES: synced
  3085. - pop3/smtp: return *WEIRD_SERVER_REPLY when not understood
  3086. This leaves the CURLE_RECV_ERROR error code for explicit failure to
  3087. receive network data and allows users to better separate the problems.
  3088. Ref #8356
  3089. Reported-by: Rianov Viacheslav
  3090. Closes #8506
  3091. - docs: lots of minor language polish
  3092. Mostly based on recent language decisions from "everything curl":
  3093. - remove contractions (isn't => is not)
  3094. - *an* HTTP (consistency)
  3095. - runtime (no hyphen)
  3096. - backend (no hyphen)
  3097. - URL is uppercase
  3098. Closes #8646
  3099. Jay Satiro (29 Mar 2022)
  3100. - projects: Update VC version names for VS2017, VS2022
  3101. - Rename VC15 -> VC14.10, VC17 -> VC14.30.
  3102. The projects directory that holds the pre-generated Visual Studio
  3103. project files uses VC<ver> to indicate the MSVC version. At some point
  3104. support for Visual Studio 2017 (Visual Studio version 15 which uses MSVC
  3105. 14.10) was added as VC15. Visual Studio 2022 (Visual Studio version 17
  3106. which uses MSVC 14.30) project files were recently added and followed
  3107. that same format using VC17.
  3108. There is no such MSVC version (yet) as VC15 or VC17.
  3109. For VS 2017 for example, the name we use is correct as either VS17,
  3110. VS2017, VC14.10. I opted for the latter since we use VC for earlier
  3111. versions (eg VC10, VC12, etc).
  3112. Ref: https://github.com/curl/curl/pull/8438#issuecomment-1037070192
  3113. Closes https://github.com/curl/curl/pull/8447
  3114. Daniel Stenberg (29 Mar 2022)
  3115. - mqtt: better handling of TCP disconnect mid-message
  3116. Reported-by: Jenny Heino
  3117. Bug: https://hackerone.com/reports/1521610
  3118. Closes #8644
  3119. - CURLOPT_DISALLOW_USERNAME_IN_URL.3: use uppercase URL
  3120. - [Ian Blanes brought this change]
  3121. docs/DYNBUF: clarify documentation for Curl_dyn_ptr and Curl_dyn_uptr
  3122. Closes #8606
  3123. - [Ian Blanes brought this change]
  3124. curl: fix segmentation fault for empty output file names.
  3125. Function glob_match_url set *result to NULL when called with filename =
  3126. "", producing an indirect NULL pointer dereference.
  3127. Closes #8606
  3128. - TODO: Read keys from ~/.ssh/id_ecdsa, id_ed25519
  3129. It would be nice to expand the list of key locations curl uses for the
  3130. newer key types supported by libssh2.
  3131. Closes #8586
  3132. - ngtcp2: update to work after recent ngtcp2 updates
  3133. Assisted-by: Tatsuhiro Tsujikawa
  3134. Reported-by: jurisuk on github
  3135. Fixes #8638
  3136. Closes #8639
  3137. - [Farzin brought this change]
  3138. CURLOPT_PROGRESSFUNCTION.3: fix typo in example
  3139. Closes #8636
  3140. - curl/header_json: output the header names in lowercase
  3141. To better allow json[“header”].
  3142. Reported-by: Peter Korsgaard
  3143. Bug: https://daniel.haxx.se/blog/2022/03/24/easier-header-picking-with-curl/comment-page-1/#comment-25878
  3144. Closes #8633
  3145. - RELEASE-NOTES: synced
  3146. - headers.h: make Curl_headers_push() be CURLE_OK when not built
  3147. ... to avoid errors when the function isn't there.
  3148. Reported-by: Marcel Raad
  3149. Fixes #8627
  3150. Closes #8628
  3151. - scripts: move three scripts from lib/ to scripts/
  3152. Move checksrc.pl, firefox-db2pem.sh and mk-ca-bundle.pl since they don't
  3153. particularly belong in lib/
  3154. Also created an EXTRA_DIST= in scripts/Makefile.am instead of specifying
  3155. those files in the root Makefile.am
  3156. Closes #8625
  3157. Marc Hoersken (23 Mar 2022)
  3158. - lib/warnless.[ch]: only check for WIN32 and ignore _WIN32
  3159. curl_setup.h automatically defines WIN32 if just _WIN32 is defined.
  3160. Therefore make sure curl_setup.h is included through warnless.h.
  3161. Reviewed-by: Daniel Stenberg
  3162. Reviewed-by: Jay Satiro
  3163. Closes #8594
  3164. - tests/server/util.h: align WIN32 condition with util.c
  3165. There is no need to test for both _WIN32 and WIN32 as curl_setup.h
  3166. automatically defines the later if the first one is defined.
  3167. Also tests/server/util.c is only checking for WIN32 arouund the
  3168. implementation of win32_perror, so just defining _WIN32
  3169. would not be sufficient for a successful compilation.
  3170. Reviewed-by: Daniel Stenberg
  3171. Reviewed-by: Jay Satiro
  3172. Closes #8594
  3173. Daniel Stenberg (22 Mar 2022)
  3174. - [Philip H brought this change]
  3175. firefox-db2pem.sh: make the shell script safer
  3176. Reported by lift
  3177. Closes #8616
  3178. Jay Satiro (22 Mar 2022)
  3179. - gtls: fix build for disabled TLS-SRP
  3180. Prior to this change if, at build time, the GnuTLS backend was found to
  3181. have TLS-SRP support (HAVE_GNUTLS_SRP) but TLS-SRP was disabled in curl
  3182. via --disable-tls-srp (!USE_TLS_SRP) then a build error would occur.
  3183. Bug: https://curl.se/mail/lib-2022-03/0046.html
  3184. Reported-by: Robert Brose
  3185. Closes https://github.com/curl/curl/pull/8604
  3186. - winbuild: Add a Visual Studio example to the README
  3187. - Add an example that explains in detail how the user can add libcurl to
  3188. their Visual Studio project.
  3189. Ref: https://github.com/curl/curl/issues/8591
  3190. Closes https://github.com/curl/curl/pull/8592
  3191. - docs/opts: Mention Schannel client cert type is P12
  3192. Schannel backend code behaves same as Secure Transport, it expects a P12
  3193. certificate file or the name of a certificate already in the user's OS
  3194. key store. Also, both backends ignore CURLOPT_SSLKEY (tool: --key)
  3195. because they expect the private key to already be available from the
  3196. keystore or P12 certificate.
  3197. Ref: https://github.com/curl/curl/discussions/8581#discussioncomment-2337260
  3198. Closes https://github.com/curl/curl/pull/8587
  3199. Daniel Stenberg (22 Mar 2022)
  3200. - lib1945: fix compiler warning 4706 on MSVC
  3201. Follow-up from d1e4a677340c
  3202. Closes #8623
  3203. - [Philip H brought this change]
  3204. ci/event-based.yml: improve impacket install
  3205. skip python3-pip
  3206. install impacket with library module
  3207. Closes #8621
  3208. - test1459: disable for oldlibssh
  3209. This test with libssh 0.9.3 works fine on github but fails on circleci.
  3210. Might as well disable this test for oldlibssh installations.
  3211. Closes #8622
  3212. - test1135: sync with recent API updates
  3213. This test verifies that the order of functions in public headers remain
  3214. the same but hasn't been updated to care for recently added header
  3215. files. The order is important for some few platforms - or VERSIONINFO
  3216. needs to updated.
  3217. This fix also updates VERSIONINFO to be sure.
  3218. Closes #8620
  3219. - curl_easy_nextheader.3: fix two typos
  3220. Reported-by: Timothe Litt
  3221. Bug: https://curl.se/mail/lib-2022-03/0060.html
  3222. - options: remove mistaken space before paren in prototype
  3223. - cirrus: add --enable-headers-api for some windows builds
  3224. - GHA: --enable-headers-api in all workflows
  3225. - lib: make the headers API depend on --enable-headers-api
  3226. - configure: add --enable-headers-api to enable the headers API
  3227. Defaults to disabled while labeled EXPERIMENTAL.
  3228. Make all the headers API tests require 'headers-api' to run.
  3229. - test1671: verify -w '%{header_json}
  3230. - test1670: verify -w %header{}
  3231. - curl: add %{header_json} support in -w handling
  3232. Outputs all response headers as a JSON object.
  3233. - curl: add %header{name} support in -w handling
  3234. Outputs the response header 'name'
  3235. - header api: add curl_easy_header and curl_easy_nextheader
  3236. Add test 1940 to 1946 to verify.
  3237. Closes #8593
  3238. - test1459: remove the different exit code for oldlibssh
  3239. When using libssh/0.9.3/openssl/zlib, we seem to be getting the "right"
  3240. error code.
  3241. Closes #8490
  3242. - libssh: unstick SFTP transfers when done event-based
  3243. Test 604 and 606 (at least).
  3244. Closes #8490
  3245. - gha: move the event-based test over from Zuul
  3246. Switched libssh2 to libssh
  3247. Closes #8490
  3248. - RELEASE-NOTES: synced
  3249. - http: return error on colon-less HTTP headers
  3250. It's a protocol violation and accepting them leads to no good.
  3251. Add test case 398 to verify
  3252. Closes #8610
  3253. - test718: edited slightly to return better HTTP
  3254. Since hyper is picky and won't play ball otherwise.
  3255. Bug: https://github.com/hyperium/hyper/issues/2783
  3256. Reported-by: Daniel Valenzuela
  3257. Closes #8614
  3258. - hyper: no h2c support
  3259. Make tests require h2c feature present to run, and only set h2c if
  3260. nghttp2 is used in the build. Hyper does not support it.
  3261. Remove those tests from DISABLED
  3262. Fixes #8605
  3263. Closes #8613
  3264. - configure: bump the copyright year range int the generated output
  3265. - [Andreas Falkenhahn brought this change]
  3266. BINDINGS.md: add Hollywood binding
  3267. Closes #8609
  3268. - HISTORY: add some 2022 data
  3269. - scripts/copyright.pl: ignore the new mlc_config.json file
  3270. - [Philip H brought this change]
  3271. mlc_config.json: add file to ignore known troublesome URLs
  3272. This is the config file for the CI markdown link checker and lets us
  3273. filter URLs that are known to cause problems. Like
  3274. https://curl.zuul.vexxhost.dev/ for now.
  3275. Closes #8597
  3276. - [Philip H brought this change]
  3277. winbuild/README.md: fixup dead link
  3278. Closes #8597
  3279. Jay Satiro (18 Mar 2022)
  3280. - rtsp: don't let CSeq error override earlier errors
  3281. - When done, if an error has already occurred then don't check the
  3282. sequence numbers for mismatch.
  3283. A sequence number may not have been received if an error occurred.
  3284. Prior to this change a sequence mismatch error would override earlier
  3285. errors. For example, a server that returns nothing would cause error
  3286. CURLE_GOT_NOTHING in Curl_http_done which was then overridden by
  3287. CURLE_RTSP_CSEQ_ERROR in rtsp_done.
  3288. Closes https://github.com/curl/curl/pull/8525
  3289. - lib: fix some misuse of curlx_convert_wchar_to_UTF8
  3290. curlx_convert_wchar_to_UTF8 must be freed by curlx_unicodefree, but
  3291. prior to this change some uses mistakenly called free.
  3292. I've reviewed all other uses of curlx_convert_wchar_to_UTF8 and
  3293. curlx_convert_UTF8_to_wchar.
  3294. Ref: https://github.com/curl/curl/commit/1d5d0ae
  3295. Closes https://github.com/curl/curl/pull/8521
  3296. - mk-ca-bundle.pl: Use stricter logic to process the certificates
  3297. .. and bump version to 1.29.
  3298. This change makes the script properly ignore unknown blocks and
  3299. otherwise fail when Mozilla changes the certdata format in ways we
  3300. don't expect. Though this is less flexible behavior it makes it far less
  3301. likely that an invalid certificate can slip through.
  3302. Prior to this change the state machine did not always properly reset,
  3303. and it was possible that a certificate marked as invalid could then
  3304. later be marked as valid when there was conflicting trust info or
  3305. an unknown block was erroneously processed as part of the certificate.
  3306. Ref: https://github.com/curl/curl/pull/7801#pullrequestreview-768384569
  3307. Closes https://github.com/curl/curl/pull/8411
  3308. Marcel Raad (17 Mar 2022)
  3309. - test375: fix line endings on Windows
  3310. Closes https://github.com/curl/curl/pull/8599
  3311. Daniel Stenberg (17 Mar 2022)
  3312. - http: reject header contents with nul bytes
  3313. They are not allowed by the protocol and allowing them risk that curl
  3314. misbehaves somewhere where C functions are used but won't work on the
  3315. full contents. Further, they are not supported by hyper and they cause
  3316. problems for the new coming headers API work.
  3317. Updated test 262 to verify and enabled it for hyper as well
  3318. Closes #8601
  3319. - [Philip H brought this change]
  3320. CI: Do not use buildconf. Instead, just use: autoreconf -fi
  3321. Closes #8596
  3322. - RELEASE-NOTES: synced
  3323. Jay Satiro (14 Mar 2022)
  3324. - libssh: Improve fix for missing SSH_S_ stat macros
  3325. - If building libcurl against an old libssh version missing SSH_S_IFMT
  3326. and SSH_S_IFLNK then use the values from a supported version.
  3327. Prior to this change if libssh did not define SSH_S_IFMT and SSH_S_IFLNK
  3328. then S_IFMT and S_IFLNK, respectively, were used instead. The problem
  3329. with that is the user's S_ stat macros don't have the same values across
  3330. platforms. For example Windows has values different from Linux.
  3331. Follow-up to 7b0fd39.
  3332. Ref: https://github.com/curl/curl/pull/8511#discussion_r815292391
  3333. Ref: https://github.com/curl/curl/pull/8574
  3334. Closes https://github.com/curl/curl/pull/8588
  3335. Marc Hoersken (13 Mar 2022)
  3336. - tool and tests: force flush of all buffers at end of program
  3337. On Windows data can be lost in buffers in case of abnormal program
  3338. termination, especially in process chains as seen due to flaky tests.
  3339. Therefore flushing all buffers manually should avoid this data loss.
  3340. In the curl tool we play the safe game by only flushing write buffers,
  3341. but in the testsuite where we manage all buffers, we flush everything.
  3342. This should drastically reduce Windows CI and testsuite flakiness.
  3343. Reviewed-by: Daniel Stenberg
  3344. Supersedes #7833 and #6064
  3345. Closes #8516
  3346. Daniel Stenberg (12 Mar 2022)
  3347. - [Jan Venekamp brought this change]
  3348. BearSSL: add CURLOPT_SSL_CTX_FUNCTION support
  3349. Closes #8478
  3350. - [Jan Venekamp brought this change]
  3351. BearSSL: add CURLOPT_SSL_CIPHER_LIST support
  3352. Closes #8477
  3353. Dan Fandrich (11 Mar 2022)
  3354. - tool_cb_hdr: Turn the Location: into a terminal hyperlink
  3355. This turns even relative URLs into clickable hyperlinks in a supported
  3356. terminal when --styled-output is enabled. Many terminals already turn
  3357. URLs into clickable links but there is not enough information in a
  3358. relative URL to do this automatically otherwise.
  3359. - keepalive-time.d: It takes many probes to detect brokenness
  3360. Daniel Stenberg (11 Mar 2022)
  3361. - [HexTheDragon brought this change]
  3362. curl: add --no-clobber
  3363. Does not overwrite output files if they already exist
  3364. Closes #7708
  3365. Co-authored-by: Daniel Stenberg
  3366. - RELEASE-NOTES: synced
  3367. also bump next pending version to become 7.83.0
  3368. - [Jean-Philippe Menil brought this change]
  3369. openssl: check SSL_get_peer_cert_chain return value
  3370. Signed-off-by: Jean-Philippe Menil <[email protected]>
  3371. Closes #8579
  3372. - [Jay Satiro brought this change]
  3373. mk-ca-bundle.vbs: delete this script in favor of mk-ca-bundle.pl
  3374. mk-ca-bundle.vbs is a Windows-specific script for Mozilla certificate
  3375. extraction, similar to mk-ca-bundle.pl which runs on any platform. The
  3376. vbs version has not been maintained while the perl version has been
  3377. maintained with improvements and security fixes. I don't think it's
  3378. worth the work to maintain both versions. Windows users should be able
  3379. to use mk-ca-bundle.pl without any problems, as long as they have perl.
  3380. Closes #8412
  3381. - CURLSHOPT_UNLOCKFUNC.3: fix the callback prototype
  3382. Copy and paste error
  3383. Reported-by: Francisco Olarte
  3384. Fixes #8573
  3385. Closes #8577
  3386. - remove-on-error.d: typo
  3387. Reported-by: Colin Leroy
  3388. Bug: https://github.com/curl/curl/pull/8503#pullrequestreview-906520081
  3389. - curl: add --remove-on-error
  3390. If a transfer returns an error, using this option makes curl remove the
  3391. leftover downloded (partial) local file before exiting.
  3392. Added test 376 to verify
  3393. Closes #8503
  3394. - libssh: fix build with old libssh versions
  3395. ... that don't have the SSH_S_* defines. Spotted on a machine using
  3396. libssh 0.7.3
  3397. Closes #8574
  3398. - hyper: fix status_line() return code
  3399. Detected while working on #7708 that happened to trigger an error here
  3400. with a new test case.
  3401. Closes #8572
  3402. - [Alejandro R. Sedeño brought this change]
  3403. configure.ac: move -pthread CFLAGS setting back where it used to be
  3404. The fix for #8276 proposed in #8374 set `CFLAGS="$CFLAGS -pthead"`
  3405. earlier than it used to be set, applying it in cases where it should not
  3406. have been applied.
  3407. This moves the AIX XLC check to a new `case $host in` block inside of
  3408. the `if test "$USE_THREADS_POSIX" != "1"` block, where `CFLAGS="$CFLAGS
  3409. -pthead"` used to happen.
  3410. Fixes #8541
  3411. Closes #8542
  3412. - [Tatsuhiro Tsujikawa brought this change]
  3413. ngtcp2: add client certificate authentication for OpenSSL
  3414. Closes #8522
  3415. - tool_operate: fix a scan-build warning
  3416. ... and avoid the temp storing of the return code in a diff variable.
  3417. Closes #8565
  3418. - test375: verify that --proxy errors out if proxy is disabled in the build
  3419. Closes #8565
  3420. - curl: error out when options need features not present in libcurl
  3421. Trying to use a proxy when libcurl was built with proxy support disabled
  3422. should make curl error out properly.
  3423. Remove knowledge of disabled features from the tool code and instead
  3424. make it properly respond to what libcurl returns. Update all tests to
  3425. properly require the necessary features to be present/absent so that the
  3426. test suite can still be run even with libcurl builds with disabled
  3427. features.
  3428. Ref: https://curl.se/mail/archive-2022-03/0013.html
  3429. Closes #8565
  3430. - ngtcp2: disconnect the QUIC connection proper
  3431. Reported-by: mehatzri on github
  3432. Reviewed-by: Tatsuhiro Tsujikawa
  3433. Fixes #8534
  3434. closes #8569
  3435. Dan Fandrich (9 Mar 2022)
  3436. - test386: Fix an incorrect test markup tag
  3437. Daniel Stenberg (9 Mar 2022)
  3438. - [Don J Olmstead brought this change]
  3439. nonblock: restore setsockopt method to curlx_nonblock
  3440. The implementation using setsockopt was removed when BeOS support was
  3441. purged. However this functionality wasn't BeOS specific, it is still
  3442. used by for example Orbis OS (Playstation 4/5 OS).
  3443. Closes #8562
  3444. - openssl: fix CN check error code
  3445. Due to a missing 'else' this returns error too easily.
  3446. Regressed in: d15692ebb
  3447. Reported-by: Kristoffer Gleditsch
  3448. Fixes #8559
  3449. Closes #8560
  3450. - [Frank Meier brought this change]
  3451. connect: make Curl_getconnectinfo work with conn cache from share handle
  3452. Closes #8524
  3453. - [lwthiker brought this change]
  3454. openssl: enable CURLOPT_SSL_EC_CURVES with BoringSSL
  3455. The CURLOPT_SSL_EC_CURVES option (used by the '--curves' flag) in
  3456. libcurl was ignored when compiling with BoringSSL because
  3457. HAVE_SSL_CTX_SET_EC_CURVES was explicitly disabled if BoringSSL was
  3458. detected. However, this feature is supported in BoringSSL since
  3459. 5fd1807d. This commit enables it, and also reduces the required minimal
  3460. OpenSSL version to 1.0.2 as per OpenSSL's official documentation.
  3461. Fixes #8553
  3462. Closes #8556
  3463. - [Samuel Henrique brought this change]
  3464. json.d: fix typo (overriden -> overridden)
  3465. Closes #8557
  3466. - wolfssl: fix compiler error without IPv6
  3467. Reported-by: Joseph Chen
  3468. Fixes #8550
  3469. Closes #8552
  3470. - RELEASE-NOTES: synced
  3471. and bump pending version to 7.82.1
  3472. - [Paul Howarth brought this change]
  3473. runtests: make 'oldlibssh' be before 0.9.4
  3474. The 'oldlibssh' feature indicates that the error code returned by libssh
  3475. for a broken known_hosts file should be 67 rather than 60 (test1459).
  3476. This feature was added as part of #8444 with 'oldlibssh' mapping to
  3477. libssh versions prior to 0.9.6, and then refined as part of #8511 to map
  3478. to versions prior to 0.9.5.
  3479. In Red Hat Enterprise Linux 8.5 there is a patched version of libssh
  3480. version 0.9.4 (https://git.centos.org/rpms/libssh/blob/c8/f/SOURCES) in
  3481. which test1459 fails because it returns the "new" value rather than the
  3482. "old" one. It's plausible that one of the patches is responsible for
  3483. this rather than the underlying code but I don't think so.
  3484. This change therefore drops the 'oldlibssh' version check to map to
  3485. libssh versions older than 0.9.4, which fixes builds on RHEL-8.
  3486. Closes #8548
  3487. - ipv4/6.d: clarify that they are about using IP addresses
  3488. ... they may still *resolve* other families, but not use those
  3489. addresses.
  3490. Ref: #8530
  3491. Closes #8543
  3492. - [r-a-sattarov brought this change]
  3493. curl/system.h: update ifdef condition for MCST-LCC compiler
  3494. in mcst-lcc compiler => 1.25 added a new macro definition to determine
  3495. compiler
  3496. Closes #8546
  3497. Marc Hoersken (6 Mar 2022)
  3498. - CI: install Python package impacket to run SMB test 1451
  3499. Install Python package impacket in relevant CI workflows.
  3500. Follow up to #7935
  3501. Supersedes #7940
  3502. Closes #8544
  3503. Daniel Stenberg (5 Mar 2022)
  3504. - [Michał Antoniak brought this change]
  3505. connect: use TCP_KEEPALIVE only if TCP_KEEPIDLE is not defined
  3506. Closes #8539
  3507. - docs/HYPER.md: updated to reflect current hyper build needs
  3508. - GHA: build hyper with nightly rustc
  3509. Closes #8545
  3510. Version 7.82.0 (5 Mar 2022)
  3511. Daniel Stenberg (5 Mar 2022)
  3512. - RELEASE-NOTES: synced
  3513. The 7.82.0 release
  3514. - THANKS: updates from the 7.82.0 release notes
  3515. - misc: update copyright year ranges
  3516. Jay Satiro (5 Mar 2022)
  3517. - unit1610: init SSL library before calling SHA256 functions
  3518. The SSL library must be initialized (via global initialization) because
  3519. libcurl's SHA256 functions may call SHA256 functions in the SSL library.
  3520. Reported-by: Gisle Vanem
  3521. Fixes https://github.com/curl/curl/issues/8538
  3522. Closes https://github.com/curl/curl/pull/8540
  3523. - examples/curlx: support building with OpenSSL 1.1.0+
  3524. - Access members of X509_STORE_CTX in OpenSSL 1.1.0+ by using API
  3525. functions.
  3526. The X509_STORE_CTX struct has been opaque since OpenSSL 1.1.0.
  3527. Ref: https://curl.se/mail/lib-2022-03/0004.html
  3528. Closes https://github.com/curl/curl/pull/8529
  3529. - h2h3: fix typo
  3530. Bug: https://github.com/curl/curl/issues/8381#issuecomment-1055440241
  3531. Reported-by: Michael Kaufmann
  3532. - [Farzin brought this change]
  3533. CURLOPT_XFERINFOFUNCTION.3: fix example struct assignment
  3534. Closes https://github.com/curl/curl/pull/8519
  3535. Daniel Stenberg (26 Feb 2022)
  3536. - azure-pipelines: add a build on Windows with libssh
  3537. Closes #8511
  3538. - runtests: make 'oldlibssh' be before 0.9.5
  3539. Closes #8511
  3540. - libssh: fix include files and defines use for Windows builds
  3541. Reported-by: 梦终无痕
  3542. Bug: https://curl.se/mail/lib-2022-02/0131.html
  3543. Closes #8511
  3544. - RELEASE-NOTES: synced
  3545. - [illusory-dream brought this change]
  3546. winbuild: add parameter WITH_SSH
  3547. For building with libssh
  3548. Closes #8514
  3549. - configure: change output for cross-compiled alt-svc support
  3550. It said 'no', while it actually is 'yes'
  3551. Closes #8512
  3552. - gha: add a macOS CI job with libssh
  3553. Closes #8513
  3554. - TODO: remove "Bring back libssh tests on Travis"
  3555. The job was added to Circle CI in d8ddd0e7536
  3556. - TODO: remove "better persistency for HTTP/1.0"
  3557. Let's not bother.
  3558. - TODO: remove "Option to ignore private IP"
  3559. ... as curl ignores the IP entirely by default these days.
  3560. - TODO: remove "hardcode the "localhost" addresses"
  3561. This is implmented since 1a0ebf6632f88
  3562. - TODO: 1.24 was a dupe of 1.1
  3563. - TODO: remove "Typesafe curl_easy_setopt()"
  3564. I don't consider this a serious TODO item
  3565. - KNOWN_BUGS: remove "Uploading HTTP/3 files gets interrupted"
  3566. This works now
  3567. - KNOWN_BUGS: remove "HTTP/3 multipart POST with quiche fails"
  3568. It works now
  3569. - quiche: remove two leftover debug infof() outputs
  3570. - [Tatsuhiro Tsujikawa brought this change]
  3571. ngtcp2: Reset dynbuf when it is fully drained
  3572. Reported-by: vl409 on github
  3573. Fixes #7351
  3574. Closes #8504
  3575. - [Stewart Gebbie brought this change]
  3576. hostip: avoid unused parameter error in Curl_resolv_check
  3577. When built without DNS-over-HTTP and without asynchronous resolvers,
  3578. neither the dns nor the data parameters are used.
  3579. That is Curl_resolv_check appears to call
  3580. Curl_resolver_is_resolved(data, dns). But,
  3581. with CURL_DISABLE_DOH without CURLRES_ASYNCH, the call is actually
  3582. elided via a macro definition.
  3583. This fix resolves the resultant: "unused parameter 'data'" error.
  3584. Closes #8505
  3585. - http2: move two infof calls to debug-h2-only
  3586. and remove a superflous one
  3587. Ref: https://github.com/curl/curl/discussions/8498
  3588. Closes #8502
  3589. - [Jean-Philippe Menil brought this change]
  3590. quiche: fix upload for bigger content-length
  3591. Signed-off-by: Jean-Philippe Menil <[email protected]>
  3592. Closes #8421
  3593. Jay Satiro (23 Feb 2022)
  3594. - [Farzin brought this change]
  3595. CURLOPT_PROGRESSFUNCTION.3: fix example struct assignment
  3596. Closes https://github.com/curl/curl/pull/8500
  3597. Daniel Stenberg (22 Feb 2022)
  3598. - [Rob Boeckermann brought this change]
  3599. OS400/README: clarify compilation steps
  3600. Closes #8494
  3601. - [Rob Boeckermann brought this change]
  3602. OS400: fix typos in rpg include file
  3603. This resolves issues compiling rpg code that includes the curl header
  3604. file.
  3605. Closes #8494
  3606. - [Michał Antoniak brought this change]
  3607. vtls: fix socket check conditions
  3608. fix condition to check the second socket during associate and
  3609. disassociate connection
  3610. Closes #8493
  3611. - libssh2: don't typecast socket to int for libssh2_session_handshake
  3612. Since libssh2_socket_t uses SOCKET on windows which can be larger than
  3613. int.
  3614. Closes #8492
  3615. - RELEASE-NOTES: fix typo and make one desc shorter
  3616. - RELEASE-NOTES: synced
  3617. - CURLOPT_XFERINFOFUNCTION.3: fix typo in example
  3618. Reported-by: coralw on github
  3619. Fixes #8487
  3620. Closes #8488
  3621. - README: disable linkchecks for the sponsor links
  3622. Closes #8489
  3623. Jay Satiro (21 Feb 2022)
  3624. - openssl: check if sessionid flag is enabled before retrieving session
  3625. Ideally, Curl_ssl_getsessionid should not be called unless sessionid
  3626. caching is enabled. There is a debug assertion in the function to help
  3627. ensure that. Therefore, the pattern in all vtls is basically:
  3628. if(primary.sessionid) {lock(); Curl_ssl_getsessionid(...); unlock();}
  3629. There was one instance in openssl.c where sessionid was not checked
  3630. beforehand and this change fixes that.
  3631. Prior to this change an assertion would occur in openssl debug builds
  3632. during connection stage if session caching was disabled.
  3633. Reported-by: Jim Beveridge
  3634. Fixes https://github.com/curl/curl/issues/8472
  3635. Closes https://github.com/curl/curl/pull/8484
  3636. - multi: allow user callbacks to call curl_multi_assign
  3637. Several years ago a change was made to block user callbacks from calling
  3638. back into the API when not supported (recursive calls). One of the calls
  3639. blocked was curl_multi_assign. Recently the blocking was extended to the
  3640. multi interface API, however curl_multi_assign may need to be called
  3641. from within those user callbacks (eg CURLMOPT_SOCKETFUNCTION).
  3642. I can't think of any callback where it would be unsafe to call
  3643. curl_multi_assign so I removed the restriction entirely.
  3644. Reported-by: Michael Wallner
  3645. Ref: https://github.com/curl/curl/commit/b46cfbc
  3646. Ref: https://github.com/curl/curl/commit/340bb19
  3647. Fixes https://github.com/curl/curl/issues/8480
  3648. Closes https://github.com/curl/curl/pull/8483
  3649. Daniel Stenberg (21 Feb 2022)
  3650. - [Michał Antoniak brought this change]
  3651. ssl: reduce allocated space for ssl backend when FTP is disabled
  3652. Add assert() for the backend pointer in many places
  3653. Closes #8471
  3654. - [Michał Antoniak brought this change]
  3655. checkprefix: remove strlen calls
  3656. Closes #8481
  3657. Jay Satiro (20 Feb 2022)
  3658. - [1337vt brought this change]
  3659. curl.h: fix typo
  3660. Closes https://github.com/curl/curl/pull/8482
  3661. - [Jan Venekamp brought this change]
  3662. sectransp: mark a 3DES cipher as weak
  3663. - Change TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA strength to weak.
  3664. All other 3DES ciphers are already marked as weak.
  3665. Closes https://github.com/curl/curl/pull/8479
  3666. - [Jan Venekamp brought this change]
  3667. bearssl: fix EXC_BAD_ACCESS on incomplete CA cert
  3668. - Do not create trust anchor object for a CA certificate until after it
  3669. is processed.
  3670. Prior to this change the object was created at state BR_PEM_BEGIN_OBJ
  3671. (certificate processing begin state). An incomplete certificate (for
  3672. example missing a newline at the end) never reaches BR_PEM_END_OBJ
  3673. (certificate processing end state) and therefore the trust anchor data
  3674. was not set in those objects, which caused EXC_BAD_ACCESS.
  3675. Ref: https://github.com/curl/curl/pull/8106
  3676. Closes https://github.com/curl/curl/pull/8476
  3677. - [Jan Venekamp brought this change]
  3678. bearssl: fix connect error on expired cert and no verify
  3679. - When peer verification is disabled use the x509_decode engine instead
  3680. of the x509_minimal engine to parse and extract the public key from
  3681. the first cert of the chain.
  3682. Prior to this change in such a case no key was extracted and that caused
  3683. CURLE_SSL_CONNECT_ERROR. The x509_minimal engine will stop parsing if
  3684. any validity check fails but the x509_decode won't.
  3685. Ref: https://github.com/curl/curl/pull/8106
  3686. Closes https://github.com/curl/curl/pull/8475
  3687. - [Jan Venekamp brought this change]
  3688. bearssl: fix session resumption (session id)
  3689. Prior to this change br_ssl_client_reset was mistakenly called with
  3690. resume_session param set to 0, which disabled session resumption.
  3691. Ref: https://github.com/curl/curl/pull/8106
  3692. Closes https://github.com/curl/curl/pull/8474
  3693. Daniel Stenberg (18 Feb 2022)
  3694. - [Michał Antoniak brought this change]
  3695. openssl: fix build for version < 1.1.0
  3696. Closes #8470
  3697. - [Joel Depooter brought this change]
  3698. schannel: move the algIds array out of schannel.h
  3699. This array is only used by the SCHANNEL_CRED struct in the
  3700. schannel_acquire_credential_handle function. It can therefore be kept as
  3701. a local variable. This is a minor update to
  3702. bbb71507b7bab52002f9b1e0880bed6a32834511.
  3703. This change also updates the NUM_CIPHERS value to accurately count the
  3704. number of ciphers options listed in schannel.c, which is 47 instead of
  3705. 45. It is unlikely that anyone tries to set all 47 values, but if they
  3706. had tried, the last two would not have been set.
  3707. Closes #8469
  3708. - [Alejandro R. Sedeño brought this change]
  3709. configure.ac: use user-specified gssapi dir when using pkg-config
  3710. Using the system pkg-config path in the face of a user-specified
  3711. library path is asking to link the wrong library.
  3712. Reported-by: Michael Kaufmann
  3713. Fixes #8289
  3714. Closes #8456
  3715. - [Kevin Adler brought this change]
  3716. os400: Add link to QADRT devkit to README.OS400
  3717. Closes #8455
  3718. - [Kevin Adler brought this change]
  3719. os400: Add function wrapper for system command
  3720. The wrapper will exit if the system command failed instead of blindly
  3721. continuing on.
  3722. In addition, only copy docs which exist, since now the copy failure will
  3723. cause the build to stop.
  3724. Closes #8455
  3725. - [Kevin Adler brought this change]
  3726. os400: Default build to target current release
  3727. V6R1M0 is not available as a target release since IBM i 7.2. To keep
  3728. from having to keep this up to date in git, default to the current
  3729. release. Users can configure this to whatever release they want to
  3730. actually build for.
  3731. Closes #8455
  3732. - docs/INTERNALS.md: clean up, refer to the book
  3733. The explanatory parts are now in the everything curl book (which can
  3734. also use images etc). This document now refers to that resource and only
  3735. leaves listings of supported versions of libs, tools and operating
  3736. systems. See https://everything.curl.dev/internals
  3737. Closes #8467
  3738. Marcel Raad (17 Feb 2022)
  3739. - des: fix compile break for OpenSSL without DES
  3740. When `USE_OPENSSL` was defined but OpenSSL had no DES support and a
  3741. different crypto library was used for that, `Curl_des_set_odd_parity`
  3742. was called but not defined. This could for example happen on Windows
  3743. and macOS when using OpenSSL v3 with deprecated features disabled.
  3744. Use the same condition for the function definition as used at the
  3745. caller side, but leaving out the OpenSSL part to avoid including
  3746. OpenSSL headers.
  3747. Closes https://github.com/curl/curl/pull/8459
  3748. Daniel Stenberg (17 Feb 2022)
  3749. - RELEASE-NOTES: synced
  3750. - docs/DEPRECATE: remove NPN support in August 2022
  3751. Closes #8458
  3752. - ftp: provide error message for control bytes in path
  3753. Closes #8460
  3754. - http: fix "unused parameter ‘conn’" warning
  3755. Follow-up from 7d600ad1c395
  3756. Spotted on appveyor
  3757. Closes #8465
  3758. Jay Satiro (17 Feb 2022)
  3759. - [Alejandro R. Sedeño brought this change]
  3760. sha256: Fix minimum OpenSSL version
  3761. - Change the minimum OpenSSL version for using their SHA256
  3762. implementation from 0.9.7 to 0.9.8.
  3763. EVP_sha256() does not appear in the OpenSSL source before 0.9.7h, and
  3764. does not get built by default until 0.9.8, so trying to use it for all
  3765. 0.9.7 is wrong, and before 0.9.8 is unreliable.
  3766. Closes https://github.com/curl/curl/pull/8464
  3767. Daniel Stenberg (16 Feb 2022)
  3768. - KNOWN_BUGS: remove "slow connect to localhost on Windows"
  3769. localhost is not resolved anymore since 1a0ebf6632f88
  3770. - KNOWN_BUGS: remove "HTTP/3 download is 5x times slower than HTTP/2"
  3771. It's not actually a bug. More like room for improvement.
  3772. - KNOWN_BUGS: remove "HTTP/3 download with quiche halts after a while"
  3773. Follow-up to 96f85a0fef694
  3774. - KNOWN_BUGS: remove "pulseUI vpn" as a problem
  3775. We haven't heard about this for a long time and rumours have it they
  3776. might have fixed it.
  3777. - urldata: remove conn->bits.user_passwd
  3778. The authentication status should be told by the transfer and not the
  3779. connection.
  3780. Reported-by: John H. Ayad
  3781. Fixes #8449
  3782. Closes #8451
  3783. - [Kevin Adler brought this change]
  3784. gskit: Convert to using Curl_poll
  3785. As mentioned in 32766cb, gskit was the last user of Curl_select which is
  3786. now gone. Convert to using Curl_poll to allow build to work on IBM i.
  3787. Closes #8454
  3788. - [Kevin Adler brought this change]
  3789. gskit: Fix initialization of Curl_ssl_gskit struct
  3790. In c30bf22, Curl_ssl_getsock was factored out in to a member of
  3791. struct Curl_ssl but the gskit initialization was not updated to reflect
  3792. this new member.
  3793. Closes #8454
  3794. - [Kevin Adler brought this change]
  3795. gskit: Fix errors from Curl_strerror refactor
  3796. 2f0bb864c1 replaced sterror with Curl_strerror, but the strerror buffer
  3797. shadows the set_buffer "buffer" parameter. To keep consistency with the
  3798. other functions that use Curl_strerror, rename the parameter.
  3799. In addition, strerror.h is needed for the definition of STRERROR_LEN.
  3800. Closes #8454
  3801. Marcel Raad (15 Feb 2022)
  3802. - ntlm: remove unused feature defines
  3803. They're not used anymore and always supported.
  3804. Closes https://github.com/curl/curl/pull/8453
  3805. Daniel Stenberg (15 Feb 2022)
  3806. - [Kantanat Wannapaka brought this change]
  3807. README.md: fix link and layout
  3808. replace <a></a> tags and <img></img> tags
  3809. Closes #8448
  3810. - KNOWN_BUGS: fix typo "libpsl"
  3811. Jay Satiro (14 Feb 2022)
  3812. - h2h3: fix compiler warning due to function prototype mismatch
  3813. - Add missing const qualifier in Curl_pseudo_headers declaration.
  3814. Daniel Stenberg (14 Feb 2022)
  3815. - [Stefan Eissing brought this change]
  3816. urlapi: handle "redirects" smarter
  3817. - avoid one malloc when setting a new url via curl_url_set()
  3818. and CURLUPART_URL.
  3819. - extract common pattern into a new static function.
  3820. Closes #8450
  3821. - cijobs: pick up circleci configure lines better
  3822. - circleci: add a job using wolfSSH
  3823. Build only, no tests.
  3824. Closes #8445
  3825. - scripts/ciconfig.pl: show used options not available
  3826. - circleci: add a job using libssh
  3827. Closes #8444
  3828. - runtests: set 'oldlibssh' for libssh versions before 0.9.6
  3829. ... and make test 1459 check for the different return code then.
  3830. Closes #8444
  3831. Jay Satiro (13 Feb 2022)
  3832. - Makefile.am: Generate VS 2022 projects
  3833. Follow-up to f13d4d0 which added VS 2022 project support.
  3834. Ref: https://github.com/curl/curl/pull/8438
  3835. - [Daniel Stenberg brought this change]
  3836. projects: remove support for MSVC before VC10 (Visual Studio 2010)
  3837. - Remove Visual Studio project files for VC6, VC7, VC7.1, VC8 and VC9.
  3838. Those versions are too old to be maintained any longer.
  3839. Closes https://github.com/curl/curl/pull/8442
  3840. - [Stav Nir brought this change]
  3841. projects: add support for Visual Studio 17 (2022)
  3842. Closes https://github.com/curl/curl/pull/8438
  3843. Daniel Stenberg (13 Feb 2022)
  3844. - RELEASE-NOTES: synced
  3845. - connect: follow-up fix the copyright year
  3846. - [Michał Antoniak brought this change]
  3847. misc: remove unused data when IPv6 is not supported
  3848. Closes #8430
  3849. - scripts/ciconfig: show CI job config info
  3850. Closes #8446
  3851. - quiche: handle stream reset
  3852. A stream reset now causes a CURLE_PARTIAL_FILE error. I'm not convinced
  3853. this is the right action nor the right error code.
  3854. Reported-by: Lucas Pardue
  3855. Fixes #8437
  3856. Closes #8440
  3857. - mime: use a define instead of the magic number 24
  3858. MIME_BOUNDARY_DASHES is now the number of leading dashes in the
  3859. generated boundary string.
  3860. Closes #8441
  3861. - [Henrik Holst brought this change]
  3862. hostcheck: reduce strlen calls on chained certificates
  3863. Closes #8428
  3864. - [Patrick Monnerat brought this change]
  3865. mime: some more strlen() call removals.
  3866. Closes #8423
  3867. - scripts/cijobs.pl: detect zuul cmake jobs better
  3868. - url: exclude zonefrom_url when no ipv6 is available
  3869. Closes #8439
  3870. - if2ip: make Curl_ipv6_scope a blank macro when IPv6-disabled
  3871. Closes #8439
  3872. - [Henrik Holst brought this change]
  3873. mprintf: remove strlen calls on empty strings in dprintf_formatf
  3874. Turns out that in dprintf_formatf we did a strlen on empty strings, a
  3875. bit strange is how common this actually is, 24 alone when doing a simple
  3876. GET from https://curl.se
  3877. Closes #8427
  3878. - wolfssl: return CURLE_AGAIN for the SSL_ERROR_NONE case
  3879. Closes #8431
  3880. - wolfssl: when SSL_read() returns zero, check the error
  3881. Returning zero indicates end of connection, so if there's no data read
  3882. but the connection is alive, it needs to return -1 with CURLE_AGAIN.
  3883. Closes #8431
  3884. - quiche: after leaving h3_recving state, poll again
  3885. This could otherwise easily leave libcurl "hanging" after the entire
  3886. transfer is done but without noticing the end-of-transfer signal.
  3887. Assisted-by: Lucas Pardue
  3888. Closes #8436
  3889. - quiche: when *recv_body() returns data, drain it before polling again
  3890. Assisted-by: Lucas Pardue
  3891. Closes #8429
  3892. - [gaoxingwang on github brought this change]
  3893. configure: fix '--enable-code-coverage' typo
  3894. Fixes #8425
  3895. Closes #8426
  3896. - lib/h2h3: #ifdef on ENABLE_QUIC, not the wrong define
  3897. Otherwise the build fails when H3 is enabled but the build doesn't
  3898. include nghttp2.
  3899. Closes #8424
  3900. - hostcheck: pass in pattern length too, to avoid a strlen call
  3901. Removes one strlen() call per SAN name in a cert-check.
  3902. Closes #8418
  3903. - [Henrik Holst brought this change]
  3904. misc: remove strlen for Curl_checkheaders + Curl_checkProxyheaders
  3905. Closes #8409
  3906. - configure: requires --with-nss-deprecated to build with NSS
  3907. Add deprecation plans to docs/DEPRECATE.md
  3908. Closes #8395
  3909. - mqtt: free 'sendleftovers' in disconnect
  3910. Fix a memory-leak
  3911. Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43646
  3912. Closes #8415
  3913. - [Patrick Monnerat brought this change]
  3914. openldap: pass string length arguments to client_write()
  3915. This uses the new STRCONST() macro and saves 2 strlen() calls on short
  3916. string constants per LDIF output line.
  3917. Closes #8404
  3918. - [Henrik Holst brought this change]
  3919. misc: reduce strlen() calls with Curl_dyn_add()
  3920. Use STRCONST() to switch from Curl_dyn_add() to Curl_dyn_addn() for
  3921. string literals.
  3922. Closes #8398
  3923. - http2: fix the array copy to nghttp2_nv
  3924. Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=44517
  3925. Follow-up to 9f985a11e794
  3926. Closes #8414
  3927. - RELEASE-NOTES: synced
  3928. - scripts/cijobs.pl: output data about all currect CI jobs
  3929. This script parses the config files for all the CI services currently in
  3930. use and output the information in a uniform way. The idea is that the
  3931. output from this script should be possible to massage into informational
  3932. tables or graphs to help us visualize what they are all testing and NOT
  3933. testing.
  3934. Closes #8408
  3935. - maketgz: return error if 'make dist' fails
  3936. To better detect this problem in CI jobs
  3937. Reported-by: Marcel Raad
  3938. Bug: https://curl.se/mail/lib-2022-02/0070.html
  3939. Closes #8402
  3940. - h2h3: pass correct argument types to infof()
  3941. Detected by Coverity. CID 1497993
  3942. Closes #8401
  3943. - lib/Makefile: remove config-tpf.h from the dist
  3944. Follow-up from da15443dddea2bfb. Missed before because the 'distcheck'
  3945. CI job was not working as intended.
  3946. Reported-by: Marcel Raad
  3947. Bug: https://curl.se/mail/lib-2022-02/0070.html
  3948. Closes #8403
  3949. - configure: remove support for "embedded ares"
  3950. In March 2010 (commit 4259d2df7dd) we removed the embedded 'ares'
  3951. directory from the curl source tree but we have since supported
  3952. especially detecting and using that build directory. The time has come
  3953. to remove that kludge and ask users to specify the c-ares dir correctly
  3954. with --enable-ares.
  3955. Closes #8397
  3956. - [Sebastian Sterk brought this change]
  3957. github/workflows/mbedtls: fix indent & remove unnecessary line breaks
  3958. Closes #8399
  3959. - CI: move the NSS job from zuul to GHA
  3960. Closes #8396
  3961. - tests/unit/Makefile.am: add NSS_LIBS to build with NSS fine
  3962. Closes #8396
  3963. Marcel Raad (7 Feb 2022)
  3964. - curl-openssl: fix SRP check for OpenSSL 3.0
  3965. When OpenSSL 3.0 is built with `--api=3.0` and `no-deprecated`, the SRP
  3966. functions exist in the library, but are disabled for user code. Check
  3967. if they are actually usable instead of only if they exist. Also, check
  3968. for the functions actually required for TLS-SRP.
  3969. TLS-SRP support is still enabled if OpenSSL is configured with just
  3970. `--api=3.0` or with `--api=1.1.1 no-deprecated`.
  3971. Closes https://github.com/curl/curl/pull/8394
  3972. Daniel Stenberg (7 Feb 2022)
  3973. - [Henrik Holst brought this change]
  3974. http: make Curl_compareheader() take string length arguments too
  3975. Also add STRCONST, a macro that returns a string literal and it's length
  3976. for functions that take "string,len"
  3977. Removes unnecesary calls to strlen().
  3978. Closes #8391
  3979. - vquic/vquic.h: removed the unused H3 psuedo defines
  3980. - ngtcp2: use Curl_pseudo_headers
  3981. - quiche: use Curl_pseudo_headers
  3982. - http2: use Curl_pseudo_headers
  3983. - h2h3: added Curl_pseudo_headers()
  3984. For use with both http2 and http3 requests.
  3985. - ngtcp2/quiche: make :scheme possible to set
  3986. - http2: allow CURLOPT_HTTPHEADER change ":scheme"
  3987. The only h2 psuedo header that wasn't previously possible to change by a
  3988. user. This change also makes it impossible to send a HTTP/1 header that
  3989. starts with a colon, which I don't think anyone does anyway.
  3990. The other pseudo headers are possible to change indirectly by doing the
  3991. rightly crafted request.
  3992. Reported-by: siddharthchhabrap on github
  3993. Fixes #8381
  3994. Closes #8393
  3995. - h2/h3: provide and refer to pseudo headers as defines
  3996. ... and do sizeof() on the defines to use constants better.
  3997. Closes #8389
  3998. - [Michał Antoniak brought this change]
  3999. smb: passing a socket for writing and reading data instead of FIRSTSOCKET
  4000. Closes #8383
  4001. - x509asn1: toggle off functions not needed for diff tls backends
  4002. ... and clean the header file from private defines/structs (move to C
  4003. file) and unused function prototypes.
  4004. Closes #8386
  4005. - lib: move hostcheck and x509sn1 sources to vtls/
  4006. ... since they are used strictly by TLS code.
  4007. Closes #8386
  4008. Marcel Raad (4 Feb 2022)
  4009. - version_win32: fix warning for `CURL_WINDOWS_APP`
  4010. The build version is not supported by the UWP code.
  4011. Closes https://github.com/curl/curl/pull/8385
  4012. Daniel Stenberg (4 Feb 2022)
  4013. - tests/disable-scan.pl: properly detect multiple symbols per line
  4014. Test 1165 would fail on some systems because it didn't detect
  4015. CURL_DISABLE_* symbols that were used to the right of another one on the
  4016. same line! The script would only detect and extract the first one.
  4017. Reported-by: Marcel Raad
  4018. Fixes #8384
  4019. Closes #8388
  4020. Jay Satiro (4 Feb 2022)
  4021. - config.d: Clarify _curlrc filename is still valid on Windows
  4022. Recent changes added support for filename .curlrc on Windows, and
  4023. when it's not found curl falls back on the original Windows filename
  4024. _curlrc. _curlrc was removed from the doc, however it is still valid.
  4025. Closes https://github.com/curl/curl/pull/8382
  4026. Daniel Stenberg (4 Feb 2022)
  4027. - lib: remove support for CURL_DOES_CONVERSIONS
  4028. TPF was the only user and support for that was dropped.
  4029. Closes #8378
  4030. - TPF: drop support
  4031. There has been no TPF related changes done since September 2010 (commit
  4032. 7e1a45e224e57) and since this is a platform that is relatively different
  4033. than many others (== needs attention), I draw the conclusion that this
  4034. build is broken since a long time.
  4035. Closes #8378
  4036. - scripts/delta: check the file delta for current branch
  4037. ... also polish the output style a little bit
  4038. Jay Satiro (3 Feb 2022)
  4039. - [Fabian Keil brought this change]
  4040. runtests.pl: tolerate test directories without Makefile.inc
  4041. Silences the following warnings when using a Makefile.inc-free
  4042. TESTDIR using the "-o" argument:
  4043. readline() on closed filehandle D at ./runtests.pl line 592.
  4044. Use of uninitialized value $disttests in pattern match (m//) at
  4045. ./runtests.pl line 3602.
  4046. Closes https://github.com/curl/curl/pull/8379
  4047. Daniel Stenberg (3 Feb 2022)
  4048. - [Henrik Holst brought this change]
  4049. setopt: do bounds-check before strdup
  4050. Curl_setstropt() allocated memory for the string before checking if the
  4051. string was within bounds. The bounds check should be done first.
  4052. Closes #8377
  4053. - [Michał Antoniak brought this change]
  4054. mbedtls: enable use of mbedtls without filesystem functions support
  4055. Closes #8376
  4056. - [Bernhard Walle brought this change]
  4057. configure: support specification of a nghttp2 library path
  4058. This enables using --with-nghttp2=<dir> on systems without pkg-config.
  4059. Closes #8375
  4060. - scripts/release-notes.pl: remove leftover debug output
  4061. - RELEASE-NOTES: synced
  4062. - scripts/release-notes.pl: fix number extraction for full URLs
  4063. - [Leah Neukirchen brought this change]
  4064. scripts/completion.pl: improve zsh completion
  4065. - Detect all spellings of <file>, <file name> etc as well as <path>.
  4066. - Only complete directories for <dir>.
  4067. - Complete URLs for <URL>.
  4068. - Complete --request and --ftp-method.
  4069. Closes #8363
  4070. - [Davide Cassioli brought this change]
  4071. configure: use correct CFLAGS for threaded resolver with xlC on AIX
  4072. Fixes #8276
  4073. Closes #8374
  4074. - mailmap: Henrik Holst
  4075. Jay Satiro (2 Feb 2022)
  4076. - build: fix ngtcp2 crypto library detection
  4077. - Change library link check for ngtcp2_crypto_{gnutls,openssl} to
  4078. to use function ngtcp2_crypto_recv_client_initial_cb instead of
  4079. ngtcp2_crypto_ctx_initial.
  4080. The latter function is no longer external since two days ago in
  4081. ngtcp2/ngtcp2@533451f. curl HTTP/3 CI builds have been failing since
  4082. then because they would not link to the ngtcp2 crypto library.
  4083. Ref: https://github.com/ngtcp2/ngtcp2/pull/356
  4084. Closes https://github.com/curl/curl/pull/8372
  4085. - [Henrik Holst brought this change]
  4086. urlapi: remove an unnecessary call to strlen
  4087. - Use strcpy instead of strlen+memcpy to copy the url path.
  4088. Ref: https://curl.se/mail/lib-2022-02/0006.html
  4089. Closes https://github.com/curl/curl/pull/8370
  4090. Daniel Stenberg (1 Feb 2022)
  4091. - scripts/copyright.pl: fix for handling removed files better
  4092. - vxworks: drop support
  4093. No changes or fixes in vxworks related code since 2009 leads me to
  4094. believe that this doesn't work anymore.
  4095. Closes #8362
  4096. - [Henrik Holst brought this change]
  4097. base64: remove an unnecessary call to strlen
  4098. Closes #8369
  4099. - tool_getparam: initial --json support
  4100. Adds these test cases:
  4101. 383 - simple single command line option
  4102. 384 - reading it from stdin
  4103. 385 - getting two --json options on command line
  4104. 386 - --next works after --json
  4105. Closes #8314
  4106. - [Bjarni Ingi Gislason brought this change]
  4107. curl_getdate.3: remove pointless .PP line
  4108. mandoc: WARNING: skipping paragraph macro: PP empty
  4109. Reported-by: Samuel Henrique
  4110. Closes #8365
  4111. - [Sebastian Sterk brought this change]
  4112. multi: grammar fix in comment
  4113. After 'must', the verb is used without 'to'. Correct: "must" or "have
  4114. to"
  4115. Closes #8368
  4116. - openldap: fix compiler warning when built without SSL support
  4117. openldap.c:841:52: error: unused parameter ‘data’ [-Werror=unused-parameter]
  4118. Closes #8367
  4119. - [Samuel Henrique brought this change]
  4120. CURLSHOPT_LOCKFUNC.3: fix typo "relased" -> "released"
  4121. Found when packaging 7.81.0 for Debian.
  4122. Closes #8364
  4123. - netware: remove support
  4124. There are no current users and no Netware related changes done in the
  4125. code for over 13 years is a clear sign this is abandoned.
  4126. Closes #8358
  4127. - CI: move two jobs from Zuul to Circle CI
  4128. - openssl-no-verbose
  4129. - openssl-no-proxy
  4130. Closes #8359
  4131. - cirlceci: also run a c-ares job on arm with debug enabled
  4132. Closes #8357
  4133. - ci: move the OpenSSL + c-ares job from Zuul to Circle CI
  4134. Closes #8357
  4135. - mailmap: Jan-Piet Mens
  4136. - [luminixinc on github brought this change]
  4137. multi: remember connection_id before returning connection to pool
  4138. Fix a bug that does not require a new CVE as discussed on hackerone.com.
  4139. Previously `connection_id` was accessed after returning connection to
  4140. the shared pool.
  4141. Bug: https://hackerone.com/reports/1463013
  4142. Closes #8355
  4143. Jay Satiro (31 Jan 2022)
  4144. - write-out.d: Fix num_headers formatting
  4145. - [Jan-Piet Mens brought this change]
  4146. docs: capitalize the name 'Netscape'
  4147. Closes https://github.com/curl/curl/pull/8354
  4148. Daniel Stenberg (30 Jan 2022)
  4149. - RELEASE-NOTES: synced
  4150. - [Antoine Pietri brought this change]
  4151. docs: grammar proofread, typo fixes
  4152. (Partially automated) proofread of most of the documentation, leading to
  4153. various typo fixes.
  4154. Closes #8353
  4155. - urldata: CONN_IS_PROXIED replaces bits.close when proxy can be disabled
  4156. To remove run-time checks for such builds.
  4157. Closes #8350
  4158. - setopt: fix the TLSAUTH #ifdefs for proxy-disabled builds
  4159. Closes #8350
  4160. - conncache: make conncache_add_bundle return the pointer
  4161. Simplifies the logic a little and avoids a ternary operator.
  4162. Ref: #8346
  4163. Closes #8349
  4164. - mailmap: neutric on github
  4165. Jay Satiro (30 Jan 2022)
  4166. - [neutric on github brought this change]
  4167. docs/TheArtOfHttpScripting: fix example POST URL
  4168. Closes https://github.com/curl/curl/pull/8352
  4169. Daniel Stenberg (28 Jan 2022)
  4170. - nss: handshake callback during shutdown has no conn->bundle
  4171. The callback gets called because of the call to PR_Recv() done to
  4172. attempt to avoid RST on the TCP connection. The conn->bundle pointer is
  4173. already cleared at this point so avoid dereferencing it.
  4174. Reported-by: Eric Musser
  4175. Fixes #8341
  4176. Closes #8342
  4177. - [Michał Antoniak brought this change]
  4178. mbedtls: remove #include <mbedtls/certs.h>
  4179. mbedtls/certs.h file contains only certificates example (all definitions
  4180. is beginning by mbedtls_test_*). None of them is used so we can avoid
  4181. include the file.
  4182. Closes #8343
  4183. - [Michał Antoniak brought this change]
  4184. mbedtls: enable use of mbedtls without CRL support
  4185. Closes #8344
  4186. - [Bernhard Walle brought this change]
  4187. configure: set CURL_LIBRARY_PATH for nghttp2
  4188. To execute the test program, we might need the library path so that the
  4189. lib is found at runtime.
  4190. Closes #8340
  4191. Jay Satiro (28 Jan 2022)
  4192. - schannel: restore debug message in schannel_connect_step2
  4193. This is a follow-up to recent commit 2218c3a which removed the debug
  4194. message to avoid an unused variable warning. The message has been
  4195. reworked to avoid the warning.
  4196. Ref: https://github.com/curl/curl/pull/8320#issuecomment-1022957904
  4197. Closes https://github.com/curl/curl/pull/8336
  4198. - test3021: disable all msys2 path transformation
  4199. - Disable all MSYS2 path transformation in test3021 and test3022.
  4200. Prior to this change path transformation in those tests was disabled
  4201. only for arguments that start with forward slashes. However arguments
  4202. that are in base64 contain forward slashes at any position and caused
  4203. unwanted translations.
  4204. == Info: Denied establishing ssh session: mismatch sha256 fingerprint.
  4205. Remote +/EYG2YDzDGm6yiwepEMSuExgRRMoTi8Di1UN3kixZw= is not equal to
  4206. +C:/msys64/EYG2YDzDGm6yiwepEMSuExgRRMoTi8Di1UN3kixZw
  4207. In the above example an argument containing a base64 sha256 fingerprint
  4208. was passed to curl after MSYS2 translated +/ into +C:/msys64/, and then
  4209. the fingerprint didn't match what was expected.
  4210. Ref: https://www.msys2.org/wiki/Porting/
  4211. Fixes https://github.com/curl/curl/issues/8084
  4212. Closes https://github.com/curl/curl/pull/8325
  4213. Daniel Stenberg (27 Jan 2022)
  4214. - CI: move scan-build job from Zuul to Azure Pipelines
  4215. Closes #8338
  4216. Marcel Raad (27 Jan 2022)
  4217. - openssl: fix `ctx_option_t` for OpenSSL v3+
  4218. The options have been changed to `uint64_t` in
  4219. https://github.com/openssl/openssl/commit/56bd17830f2d5855b533d923d4e0649d3ed61d11.
  4220. Closes https://github.com/curl/curl/pull/8331
  4221. Daniel Stenberg (27 Jan 2022)
  4222. - CI: move 'distcheck' job from zuul to azure pipelines
  4223. Assisted-by: Kushal Das
  4224. Closes #8334
  4225. - vtls: pass on the right SNI name
  4226. The TLS backends convert the host name to SNI name and need to use that.
  4227. This involves cutting off any trailing dot and lowercasing.
  4228. Co-authored-by: Jay Satiro
  4229. Closes #8320
  4230. - url: revert the removal of trailing dot from host name
  4231. Reverts 5de8d84098db1bd24e (May 2014, shipped in 7.37.0) and the
  4232. follow-up changes done afterward.
  4233. Keep the dot in names for everything except the SNI to make curl behave
  4234. more similar to current browsers. This means 'name' and 'name.' send the
  4235. same SNI for different 'Host:' headers.
  4236. Updated test 1322 accordingly
  4237. Fixes #8290
  4238. Reported-by: Charles Cazabon
  4239. Closes #8320
  4240. - [neutric on github brought this change]
  4241. docs/TheArtOfHttpScripting: fix capitalization
  4242. Closes #8333
  4243. - tests/memanalyze.pl: also count and show "total allocations"
  4244. This is the total number of bytes allocated, increasing for new
  4245. allocations and never reduced when freed. The existing "Maximum
  4246. allocated" is the high water mark.
  4247. Closes #8330
  4248. - mailmap: spellfix githuh => github
  4249. - RELEASE-NOTES: synced
  4250. - hostcheck: fixed to not touch used input strings
  4251. Avoids the need to clone the strings before check, thus avoiding
  4252. mallocs, which for cases where there are many SAN names in a cert could
  4253. end up numerous.
  4254. Closes #8321
  4255. - ngtcp2: adapt to changed end of headers callback proto
  4256. Closes #8322
  4257. - [Xiaoke Wang brought this change]
  4258. openssl: check SSL_get_ex_data to prevent potential NULL dereference
  4259. Closes #8268
  4260. Jay Satiro (23 Jan 2022)
  4261. - md5: check md5_init_func return value
  4262. Prior to this change the md5_init_func (my_md5_init) return value was
  4263. ignored.
  4264. Closes https://github.com/curl/curl/pull/8319
  4265. - md5: refactor for standard compliance
  4266. - Wrap OpenSSL / wolfSSL MD5 functions instead of taking their function
  4267. addresses during static initialization.
  4268. Depending on how curl was built the old way may have used a dllimport
  4269. function address during static initialization, which is not standard
  4270. compliant, resulting in Visual Studio warning C4232 (nonstandard
  4271. extension). Instead the function pointers now point to the wrappers
  4272. which call the MD5 functions.
  4273. This change only affects OpenSSL and wolfSSL because calls to other SSL
  4274. libraries' md5 functions were already wrapped. Also sha256.c already
  4275. does this for all SSL libraries.
  4276. Ref: https://github.com/curl/curl/pull/8298
  4277. Closes https://github.com/curl/curl/pull/8318
  4278. Daniel Stenberg (21 Jan 2022)
  4279. - [Lucas Pardue brought this change]
  4280. docs: update IETF links to use datatracker
  4281. The tools.ietf.org domain has been deprecated a while now, with the
  4282. links being redirected to datatracker.ietf.org.
  4283. Rather than make people eat that redirect time, this change switches the
  4284. URL to a more canonical source.
  4285. Closes #8317
  4286. - [Harry Sarson brought this change]
  4287. CI: test building wolfssl with --enable-opensslextra
  4288. Closes #8315
  4289. - [Harry Sarson brought this change]
  4290. misc: allow curl to build with wolfssl --enable-opensslextra
  4291. put all #include of openssl files behind wolfssl ifdefs so that we can
  4292. use the wolfssl/ prefixed include paths. Without these curl only builds
  4293. when wolfssl is built with enable-all.
  4294. Fixes #8292
  4295. Closes #8315
  4296. - [Lucas Pardue brought this change]
  4297. quiche: change qlog file extension to `.sqlog`
  4298. quiche has just switched it's qlog serialization format to JSON-SEQ by
  4299. default . The spec says this SHOULD use `.sqlog` extension.
  4300. I believe ngtcp2 also supports JSON-SEQ by default as of
  4301. https://github.com/ngtcp2/ngtcp2/commit/9baf06fc3f352a1d062b6953ae1de22cae30639d
  4302. Let's update curl so that tools know what format we are using!
  4303. Closes #8316
  4304. Jay Satiro (21 Jan 2022)
  4305. - projects: Fix Visual Studio wolfSSL configurations
  4306. - Change build-wolfssl.bat to disable SSLv3, enable TLSv1.3, enable
  4307. wolfSSL_DES_ecb_encrypt (needed by NTLM) and enable alt cert chains.
  4308. - Disable warning C4214 'bit field types other than int'.
  4309. - Add include directory wolfssl\wolfssl.
  4310. wolfSSL offers OpenSSL API compatibility that libcurl uses, and some
  4311. recent change in libcurl included an include file for wolfSSL like
  4312. openssl/foo.h, which has a path like wolfssl\wolfssl\openssl\foo.h.
  4313. The include directory issue was reported in #8292 but it's currently
  4314. unclear whether this type of change is needed for other build systems.
  4315. Bug: https://github.com/curl/curl/issues/8292
  4316. Reported-by: Harry Sarson
  4317. Closes https://github.com/curl/curl/pull/8298
  4318. Daniel Stenberg (21 Jan 2022)
  4319. - openssl: return error if TLS 1.3 is requested when not supported
  4320. Previously curl would just silently ignore it if the necessary defines
  4321. are not present at build-time.
  4322. Reported-by: Stefan Eissing
  4323. Fixes #8309
  4324. Closes #8310
  4325. - TODO: Passing NOTIFY option to CURLOPT_MAIL_RCPT
  4326. Closes #8232
  4327. - [Philip H brought this change]
  4328. workflows/wolfssl: install impacket
  4329. needed Python Package for SMB tests
  4330. Closes #8307
  4331. - url: make Curl_disconnect return void
  4332. 1. The function would only ever return CURLE_OK anyway
  4333. 2. Only one caller actually used the return code
  4334. 3. Most callers did (void)Curl_disconnect()
  4335. Closes #8303
  4336. - docs: document HTTP/2 not insisting on TLS 1.2
  4337. Both for --http2 and CURLOPT_HTTP_VERSION.
  4338. Reported-by: jhoyla on github
  4339. Fixes #8235
  4340. Closes #8300
  4341. - cmdline-opts/gen.pl: fix option matching to improve references
  4342. Previously it could mistakenly match partial names when there are
  4343. options that start with the same prefix, leading to the wrong references
  4344. used.
  4345. Closes #8299
  4346. - TODO: Less memory massaging with Schannel
  4347. - [Patrick Monnerat brought this change]
  4348. runtests.pl: disable debuginfod
  4349. Valgrind and gdb implement this feature: as this highly slows down tests,
  4350. disable it.
  4351. Closes #8291
  4352. - RELEASE-NOTES: synced
  4353. - CURLMOPT_TIMERFUNCTION/DATA.3: fix the examples
  4354. ... to not call libcurl recursively back.
  4355. Closes #8286
  4356. - multi: set in_callback for multi interface callbacks
  4357. This makes most libcurl functions return error if called from within a
  4358. callback using the same multi handle. For example timer or socket
  4359. callbacks calling curl_multi_socket_action.
  4360. Reported-by: updatede on github
  4361. Fixes #8282
  4362. Closes #8286
  4363. - docs/HISTORY.md: mention alt-svc and HSTS
  4364. - misc: remove the final watcom references
  4365. Follow-up to bbf8cae44dedc495e6
  4366. We removed support for the watcom builds files back in September
  4367. 2020. This removes all remaining watcom references and ifdefs.
  4368. Closes #8287
  4369. - misc: remove BeOS code and references
  4370. There has not been a mention of this OS in any commit since December
  4371. 2004 (58f4af7973e3d2). The OS is also long gone.
  4372. Closes #8288
  4373. - tool_getparam: DNS options that need c-ares now fail without it
  4374. Just silently accepting the options and then not having any effect is
  4375. not good.
  4376. Ref: #8283
  4377. Closes #8285
  4378. - curl: remove "separators" (when using globbed URLs)
  4379. Unless muted (with -s) When doing globbing, curl would output mime-like
  4380. separators between the separate transfers. This is not documented
  4381. anywhere, surprises users and clobbers the output. Gone now.
  4382. Updated test 18 and 1235
  4383. Reported-by: jonny112 on github
  4384. Bug: https://github.com/curl/curl/discussions/8257
  4385. Closes #8278
  4386. Jay Satiro (15 Jan 2022)
  4387. - [Niels Martignène brought this change]
  4388. mbedtls: fix CURLOPT_SSLCERT_BLOB (again)
  4389. - Increase the buffer length passed to mbedtls_x509_crt_parse to account
  4390. for the null byte appended to the temporary blob.
  4391. Follow-up to 867ad1c which uses a null terminated copy of the
  4392. certificate blob, because mbedtls_x509_crt_parse requires PEM data
  4393. to be null terminated.
  4394. Ref: https://github.com/curl/curl/commit/867ad1c#r63439893
  4395. Ref: https://github.com/curl/curl/pull/8146
  4396. Closes https://github.com/curl/curl/pull/8260
  4397. Daniel Stenberg (15 Jan 2022)
  4398. - [Alessandro Ghedini brought this change]
  4399. quiche: verify the server cert on connect
  4400. Similarly to c148f0f551f9bea0e3d0, make quiche correctly acknowledge
  4401. `CURLOPT_SSL_VERIFYPEER` and `CURLOPT_SSL_VERIFYHOST`.
  4402. Fixes #8173
  4403. Closes #8275
  4404. - [Ikko Ashimine brought this change]
  4405. checksrc: fix typo in comment
  4406. enfore -> enforce
  4407. Closes #8281
  4408. - curl-openssl: remove the OpenSSL headers and library versions check
  4409. It is more work to maintain that check than the (any?) benefit it
  4410. brings.
  4411. Fixes #8279
  4412. Reported-by: Satadru Pramanik
  4413. Closes #8280
  4414. - mqtt: free any leftover when done
  4415. Oss-fuzz found an issue when the "sendleftovers" pointer could leak memory.
  4416. Fix this by always freeing it (if still assigned) in the done function.
  4417. Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43515
  4418. Closes #8274
  4419. - formdata: avoid size_t => long typecast overflows
  4420. Typically a problem for platforms with 32 bit long and 64 bit size_t
  4421. Reported-by: Fabian Yamaguchi
  4422. Bug: https://hackerone.com/reports/1444539
  4423. Closes #8272
  4424. - RELEASE-NOTES: synced
  4425. bump next release to become 7.82.0
  4426. Marcel Raad (13 Jan 2022)
  4427. - build: enable -Warith-conversion
  4428. This makes the behavior consistent between GCC 10 and earlier versions.
  4429. Closes https://github.com/curl/curl/pull/8271
  4430. - build: fix -Wenum-conversion handling
  4431. Don't enable that warning when warnings are disabled.
  4432. Also add it to CMake.
  4433. Closes https://github.com/curl/curl/pull/8271
  4434. - appveyor: use VS 2017 image for the autotools builds
  4435. The newer images don't have all required MSYS2 packages.
  4436. Fixes https://github.com/curl/curl/issues/8248
  4437. Closes https://github.com/curl/curl/pull/8265
  4438. - appveyor: update images from VS 2019 to 2022
  4439. Closes https://github.com/curl/curl/pull/8265
  4440. Daniel Stenberg (12 Jan 2022)
  4441. - [Michał Antoniak brought this change]
  4442. mbedtls: return CURLcode result instead of a mbedtls error code
  4443. ... when a certificate fails to be loaded from a blob
  4444. Closes #8266
  4445. - curl_multi_socket.3: remove callback and typical usage descriptions
  4446. 1. The callback is better described in the option for setting it. Having
  4447. it in a single place reduces the risk that one of them is wrong.
  4448. 2. The "typical usage" is wrong since the functions described in this
  4449. man page are both deprecated so they cannot be used in any "typical" way
  4450. anymore.
  4451. Closes #8262
  4452. - curl-functions.m4: revert DYLD_LIBRARY_PATH tricks in CURL_RUN_IFELSE
  4453. Mostly reverts ba0657c343f, but now instead just run the plain macro on
  4454. darwin. The approach as used on other platforms is simply not necessary
  4455. on macOS.
  4456. Fixes #8229
  4457. Reported-by: Ryan Schmidt
  4458. Closes #8247
  4459. - [Patrick Monnerat brought this change]
  4460. openldap: implement SASL authentication
  4461. As credentials can be quite different depending on the mechanism used,
  4462. there are no default mechanisms for LDAP and simple bind with a DN is
  4463. then used.
  4464. The caller has to provide mechanism(s) using CURLOPT_LOGIN_OPTIONS to
  4465. enable SASL authentication and disable simple bind.
  4466. Closes #8152
  4467. Jay Satiro (10 Jan 2022)
  4468. - [Cameron Will brought this change]
  4469. CURLOPT_RESOLVE.3: change example port to 443
  4470. 83cc966 changed documentation from using http to https. However,
  4471. CURLOPT_RESOLVE being set to port 80 in the documentation means that it
  4472. isn't valid for the new URL. Update to 443.
  4473. Closes https://github.com/curl/curl/pull/8258
  4474. Daniel Stenberg (10 Jan 2022)
  4475. - [Fabian Keil brought this change]
  4476. test374: gif data without new line at the end
  4477. Closes #8239
  4478. - [Fabian Keil brought this change]
  4479. runtests.pl: support the nonewline attribute for the data part
  4480. Added to FILEFORMAT
  4481. Closes #8239
  4482. - [Patrick Monnerat brought this change]
  4483. curl tool: erase some more sensitive command line arguments
  4484. As the ps command may reveal sensitive command line info, obfuscate
  4485. options --tlsuser, --tlspasswd, --proxy-tlsuser, --proxy-tlspassword and
  4486. --oauth2-bearer arguments.
  4487. Reported-by: Stephen Boost <[email protected]>
  4488. Closes #7964
  4489. - mesalink: remove support
  4490. Mesalink has ceased development. We can no longer encourage use of it.
  4491. It seems to be continued under the name TabbySSL, but no attempts have
  4492. (yet) been to make curl support it.
  4493. Fixes #8188
  4494. Closes #8191
  4495. - ldap: return CURLE_URL_MALFORMAT for bad URL
  4496. For consistency, use the same return code for URL malformats,
  4497. independently of what scheme that is used. Previously this would return
  4498. CURLE_LDAP_INVALID_URL, but starting now that error cannot be returned.
  4499. Closes #8170
  4500. - docs/cmdline-opts: add "mutexed" options for more http versions
  4501. Update four http version man page sections.
  4502. Closes #8254
  4503. - [Stephen M. Coakley brought this change]
  4504. rustls: add CURLOPT_CAINFO_BLOB support
  4505. Add support for `CURLOPT_CAINFO_BLOB` `CURLOPT_PROXY_CAINFO_BLOB` to the
  4506. rustls TLS backend. Multiple certificates in a single PEM string are
  4507. supported just like OpenSSL does with this option.
  4508. This is compatible at least with rustls-ffi 0.8+ which is our new
  4509. minimum version anyway.
  4510. I was able to build and run this on Windows, pulling trusted certs from
  4511. the system and then add them to rustls by setting
  4512. `CURLOPT_CAINFO_BLOB`. Handy!
  4513. Closes #8255
  4514. - scripts/copyright.pl: ignore missing files
  4515. - RELEASE-NOTES: synced
  4516. - data/DISABLED: disable test 313 for wolfssl builds
  4517. It was previously disabled only in the CI jobs yaml
  4518. Closes #8252
  4519. - runtests: make 'wolfssl' a testable feature
  4520. Closes #8252
  4521. - GHA: install stunnel in the medbtls + wolfssl CI jobs
  4522. Closes #8252
  4523. - CI: move the rustls CI job to GHA from Zuul
  4524. Closes #8251
  4525. - DISABLE: disable a dozen tests in the rustls build
  4526. Disables tests that don't yet work with the rustls backend.
  4527. Fixes #8004
  4528. Closes #8250
  4529. - runtests: make 'rustls' a testable feature
  4530. - remote-header-name.d: clarify
  4531. - it strips off the path from the server provided name
  4532. - it saves in current directory or --output-dir
  4533. Ref: https://curl.se/mail/archive-2022-01/0032.html
  4534. Closes #8249
  4535. - url: given a user in the URL, find pwd for that user in netrc
  4536. Add test 380 and 381 to verify, edited test 133
  4537. Reported-by: Manfred Schwarb
  4538. Fixes #8241
  4539. Closes #8243
  4540. - [Niels Martignène brought this change]
  4541. mbedtls: Fix ssl_init error with mbedTLS 3.1.0+
  4542. Since mbedTLS 3.1.0, mbedtls_ssl_setup() fails if the provided
  4543. config struct is not valid.
  4544. mbedtls_ssl_config_defaults() needs to be called before the config
  4545. struct is passed to mbedtls_ssl_setup().
  4546. Closes #8238
  4547. - [Filip Lundgren brought this change]
  4548. cmake: fix iOS CMake project generation error
  4549. Closes #8244
  4550. - ngtcp2: fix declaration of ‘result’ shadows a previous local
  4551. Follow-up to 8fbd6feddfa587cfd3
  4552. Closes #8245
  4553. - openssl.h: avoid including OpenSSL headers here
  4554. ... by instead using the struct version of the typedef'ed pointer. To
  4555. fix build errors when both Schannel and OpenSSL are enabled.
  4556. Fixes #8240
  4557. Reported-by: Jan Ehrhardt
  4558. Closes #8246
  4559. - curl_url_set.3: mention when CURLU_ALLOW_SPACE was added
  4560. - tool_findfile: free mem properly
  4561. Follow-up to 764e4f066d5
  4562. Closes #8242
  4563. - tool_findfile: check ~/.config/curlrc too
  4564. ... after the initial checks for .curlrc and if XDG_CONFIG_HOME is not
  4565. set, use $HOME and $CURL_HOME to check if ~/.config/curlrc is present.
  4566. Add test 436 to verify
  4567. Reported-by: Sandro Jaeckel
  4568. Fixes #8208
  4569. Closes #8213
  4570. - runtests: allow client/file to specify multiple directories
  4571. ... and make sure to mkdir them all
  4572. - scripts/copyright.pl: support many provided file names on the cmdline
  4573. - [Fabian Keil brought this change]
  4574. tests/FILEFORMAT.md: fix typo
  4575. - [Fabian Keil brought this change]
  4576. Add test373: multiple chunks with binary zeros
  4577. - [Fabian Keil brought this change]
  4578. Add test372: binary zero in data element
  4579. - [Fabian Keil brought this change]
  4580. tests/server/getpart.c: properly deal with binary data containing NUL bytes
  4581. - [Fabian Keil brought this change]
  4582. runtests.pl: properly print the test if it contains binary zeros
  4583. - mailmap: Xiaoke Wang
  4584. - openssl: copyright year update
  4585. Follow-up to 30aea2b1ede
  4586. - scripts/copyright.pl: hush unless -v (for verbose) is used
  4587. - [Xiaoke Wang brought this change]
  4588. openssl: check the return value of BIO_new_mem_buf()
  4589. Closes #8233
  4590. - examples/multi-app.c: call curl_multi_remove_handle as well
  4591. Fixes #8234
  4592. Reported-by: Melroy van den Berg
  4593. Closes #8236
  4594. - COPYING: bump copyright year range
  4595. - RELEASE-NOTES: synced
  4596. and bump curlver after release
  4597. - docs: fix mandoc -T lint formatting complaints
  4598. Closes #8228
  4599. - next.d. remove .fi/.nf as they are handled by gen.pl
  4600. Closes #8228
  4601. - gen.pl: terminate "example" sections better
  4602. If the example (section that is prefixed with spaces) ends the
  4603. description gen.pl would previously miss to output the terminating .fi
  4604. Closes #8228
  4605. - [Satadru Pramanik brought this change]
  4606. curl-functions.m4: fix LIBRARY_PATH adjustment to avoid eval
  4607. $$ usage in a m4 file introduces the PID in linux.
  4608. Instead, just duplicate previous working code with a case switch.
  4609. Fixes #8229
  4610. Closes #8230
  4611. Version 7.81.0 (5 Jan 2022)
  4612. Daniel Stenberg (5 Jan 2022)
  4613. - RELEASE-NOTES: synced
  4614. curl 7.81.0 release
  4615. - THANKS: add names from 7.81.0 release
  4616. - curl_multi_init.3: fix the copyright year range
  4617. - test719-721: require "proxy" feature present to run
  4618. Bug: https://github.com/curl/curl/pull/8223#issuecomment-1005188696
  4619. Reported-by: Marc Hörsken
  4620. Closes #8226
  4621. - test719: require ipv6 support to run
  4622. Follow-up to effd2bd7ba2a5fd244
  4623. Reported-by: Marc Hörsken
  4624. Bug: https://github.com/curl/curl/pull/8217#issuecomment-1004681145
  4625. Closes #8223
  4626. - test719-721: verify SOCKS details
  4627. Using the new verify/socks details
  4628. - runtests: add verify/socks check
  4629. If used, this data is compared with the data in log/socksd-request.log
  4630. which the socksd server logs.
  4631. Added to FILEFORMAT.md
  4632. - server/socksd: log atyp + address in a separate log
  4633. To allow the test suite to verify that the right data arrived
  4634. - socks5: use appropriate ATYP for numerical IP address host names
  4635. When not resolving the address locallly (known as socks5h).
  4636. Add test 719 and 720 to verify.
  4637. Reported-by: Peter Piekarski
  4638. Fixes #8216
  4639. Closes #8217
  4640. Jay Satiro (3 Jan 2022)
  4641. - curl_multi_init.3: fix EXAMPLE formatting
  4642. Daniel Stenberg (3 Jan 2022)
  4643. - RELEASE-NOTES: synced
  4644. - libtest: avoid "assignment within conditional expression"
  4645. In lib530, lib540 and lib582
  4646. Closes #8218
  4647. - ftp: disable warning 4706 in MSVC
  4648. Follow-up to 21248e052d
  4649. Disabling "assignment within conditional expression" for MSVC needs to
  4650. be done before the function starts, for it to take effect.
  4651. Closes #8218
  4652. - tool_operate: warn if too many output arguments were found
  4653. More output instructions than URLs is likely a user error.
  4654. Add test case 371 to verify
  4655. Closes #8210
  4656. - .github/workflows/mbedtls.yml: bump to mbedtls 3.1.0
  4657. Closes #8215
  4658. - zuul: remove the mbedtls jobs
  4659. Now running as github workflows
  4660. Closes #8215
  4661. - github/workflows: add mbedtls and mbedtls-clang
  4662. Closes #8215
  4663. - [Valentin Richter brought this change]
  4664. mbedtls: fix private member designations for v3.1.0
  4665. "As a last resort, you can access the field foo of a structure bar by
  4666. writing bar.MBEDTLS_PRIVATE(foo). Note that you do so at your own risk,
  4667. since such code is likely to break in a future minor version of Mbed
  4668. TLS." -
  4669. https://github.com/ARMmbed/mbedtls/blob/f2d1199edc5834df4297f247f213e614f7782d1d/docs/3.0-migration-guide.md
  4670. That future minor version is v3.1.0. I set the >= to == for the version
  4671. checks because v3.1.0 is a release, and I am not sure when the private
  4672. designation was reverted after v3.0.0.
  4673. Closes #8214
  4674. - [Valentin Richter brought this change]
  4675. cmake: prevent dev warning due to mismatched arg
  4676. -- curl version=[7.81.0-DEV]
  4677. CMake Warning (dev) at /usr/share/cmake-3.22.1/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  4678. The package name passed to `find_package_handle_standard_args` (MBEDTLS)
  4679. does not match the name of the calling package (MbedTLS). This can lead to
  4680. problems in calling code that expects `find_package` result variables
  4681. (e.g., `_FOUND`) to follow a certain pattern.
  4682. Call Stack (most recent call first):
  4683. deps/curl/CMake/FindMbedTLS.cmake:31 (find_package_handle_standard_args)
  4684. deps/curl/CMakeLists.txt:473 (find_package)
  4685. This warning is for project developers. Use -Wno-dev to suppress it.
  4686. Closes #8207
  4687. - urlapi: if possible, shorten given numerical IPv6 addresses
  4688. Extended test 1560 to verify
  4689. Closes #8206
  4690. - [Michał Antoniak brought this change]
  4691. url: reduce ssl backend count for CURL_DISABLE_PROXY builds
  4692. Closes #8212
  4693. - KNOWN_BUGS: "Trying local ports fails on Windows"
  4694. Reported-by: gclinch on github
  4695. Closes #8112
  4696. - misc: update copyright year range
  4697. - zuul: remove the wolfssl even more
  4698. Follow-up to 1914465cf180d32b3d
  4699. - examples/multi-single.c: remove WAITMS()
  4700. As it isn't used.
  4701. Reported-by: Melroy van den Berg
  4702. Fixes #8200
  4703. Closes #8201
  4704. - gtls: add gnutls include for the session type
  4705. Follow-up to 8fbd6feddfa5 to make it build more universally
  4706. - m4/curl-compilers: tell clang -Wno-pointer-bool-conversion
  4707. To hush compiler warnings we don't care for: error: address of function
  4708. 'X' will always evaluate to 'true'
  4709. Fixes #8197
  4710. Closes #8198
  4711. - http_proxy: don't close the socket (too early)
  4712. ... and double-check in the OpenSSL shutdown that the socket is actually
  4713. still there before it is used.
  4714. Fixes #8193
  4715. Closes #8195
  4716. Reported-by: Leszek Kubik
  4717. - ngtcp2: verify the server certificate for the gnutls case
  4718. Closes #8178
  4719. - ngtcp2: verify the server cert on connect (quictls)
  4720. Make ngtcp2+quictls correctly acknowledge `CURLOPT_SSL_VERIFYPEER` and
  4721. `CURLOPT_SSL_VERIFYHOST`.
  4722. The name check now uses a function from lib/vtls/openssl.c which will
  4723. need attention for when TLS is not done by OpenSSL or is disabled while
  4724. QUIC is enabled.
  4725. Possibly the servercert() function in openssl.c should be adjusted to be
  4726. able to use for both regular TLS and QUIC.
  4727. Ref: #8173
  4728. Closes #8178
  4729. - zuul: remove the wolfssl build
  4730. - github workflow: add wolfssl
  4731. Closes #8196
  4732. - [Nicolas Sterchele brought this change]
  4733. zuul: fix quiche build pointing to wrong Cargo
  4734. Fixes #8184
  4735. Closes #8189
  4736. - checksrc: detect more kinds of NULL comparisons we avoid
  4737. Co-authored-by: Jay Satiro
  4738. Closes #8180
  4739. - RELEASE-NOTES: synced
  4740. - mesalink: remove the BACKEND define kludge
  4741. Closes #8183
  4742. - schannel: remove the BACKEND define kludge
  4743. Closes #8182
  4744. - gtls: check return code for gnutls_alpn_set_protocols
  4745. Closes #8181
  4746. - [Stefan Huber brought this change]
  4747. README: label the link to the support document
  4748. Closes #8185