CMakeOutput.log 1.7 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469
  1. The system is: Linux - 4.13.0-37-generic - x86_64
  2. Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
  3. Compiler: /usr/bin/gcc
  4. Build flags:
  5. Id flags:
  6. The output was:
  7. 0
  8. Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"
  9. The C compiler identification is GNU, found in "/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/3.11.0/CompilerIdC/a.out"
  10. Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
  11. Compiler: /usr/bin/g++
  12. Build flags:
  13. Id flags:
  14. The output was:
  15. 0
  16. Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"
  17. The CXX compiler identification is GNU, found in "/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/3.11.0/CompilerIdCXX/a.out"
  18. Determining if the C compiler works passed with the following output:
  19. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  20. Run Build Command:"/usr/bin/make" "cmTC_d3955/fast"
  21. make -f CMakeFiles/cmTC_d3955.dir/build.make CMakeFiles/cmTC_d3955.dir/build
  22. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  23. Building C object CMakeFiles/cmTC_d3955.dir/testCCompiler.c.o
  24. /usr/bin/gcc -o CMakeFiles/cmTC_d3955.dir/testCCompiler.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/testCCompiler.c
  25. Linking C executable cmTC_d3955
  26. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d3955.dir/link.txt --verbose=1
  27. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_d3955.dir/testCCompiler.c.o -o cmTC_d3955
  28. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  29. Detecting C compiler ABI info compiled with the following output:
  30. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  31. Run Build Command:"/usr/bin/make" "cmTC_09081/fast"
  32. make -f CMakeFiles/cmTC_09081.dir/build.make CMakeFiles/cmTC_09081.dir/build
  33. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  34. Building C object CMakeFiles/cmTC_09081.dir/CMakeCCompilerABI.c.o
  35. /usr/bin/gcc -o CMakeFiles/cmTC_09081.dir/CMakeCCompilerABI.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CMakeCCompilerABI.c
  36. Linking C executable cmTC_09081
  37. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_09081.dir/link.txt --verbose=1
  38. /usr/bin/gcc -v -rdynamic CMakeFiles/cmTC_09081.dir/CMakeCCompilerABI.c.o -o cmTC_09081
  39. Using built-in specs.
  40. COLLECT_GCC=/usr/bin/gcc
  41. COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
  42. Target: x86_64-linux-gnu
  43. Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.9' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
  44. Thread model: posix
  45. gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)
  46. COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/
  47. LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/
  48. COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_09081' '-mtune=generic' '-march=x86-64'
  49. /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccctS8bG.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_09081 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_09081.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o
  50. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  51. Parsed C implicit link information from above output:
  52. link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
  53. ignore line: [Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp]
  54. ignore line: []
  55. ignore line: [Run Build Command:"/usr/bin/make" "cmTC_09081/fast"]
  56. ignore line: [make -f CMakeFiles/cmTC_09081.dir/build.make CMakeFiles/cmTC_09081.dir/build]
  57. ignore line: [make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp']
  58. ignore line: [Building C object CMakeFiles/cmTC_09081.dir/CMakeCCompilerABI.c.o]
  59. ignore line: [/usr/bin/gcc -o CMakeFiles/cmTC_09081.dir/CMakeCCompilerABI.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CMakeCCompilerABI.c]
  60. ignore line: [Linking C executable cmTC_09081]
  61. ignore line: [/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_09081.dir/link.txt --verbose=1]
  62. ignore line: [/usr/bin/gcc -v -rdynamic CMakeFiles/cmTC_09081.dir/CMakeCCompilerABI.c.o -o cmTC_09081 ]
  63. ignore line: [Using built-in specs.]
  64. ignore line: [COLLECT_GCC=/usr/bin/gcc]
  65. ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper]
  66. ignore line: [Target: x86_64-linux-gnu]
  67. ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.9' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu]
  68. ignore line: [Thread model: posix]
  69. ignore line: [gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9) ]
  70. ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/]
  71. ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/]
  72. ignore line: [COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_09081' '-mtune=generic' '-march=x86-64']
  73. link line: [ /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccctS8bG.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_09081 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_09081.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o]
  74. arg [/usr/lib/gcc/x86_64-linux-gnu/5/collect2] ==> ignore
  75. arg [-plugin] ==> ignore
  76. arg [/usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so] ==> ignore
  77. arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper] ==> ignore
  78. arg [-plugin-opt=-fresolution=/tmp/ccctS8bG.res] ==> ignore
  79. arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
  80. arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
  81. arg [-plugin-opt=-pass-through=-lc] ==> ignore
  82. arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
  83. arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
  84. arg [--sysroot=/] ==> ignore
  85. arg [--build-id] ==> ignore
  86. arg [--eh-frame-hdr] ==> ignore
  87. arg [-m] ==> ignore
  88. arg [elf_x86_64] ==> ignore
  89. arg [--hash-style=gnu] ==> ignore
  90. arg [--as-needed] ==> ignore
  91. arg [-export-dynamic] ==> ignore
  92. arg [-dynamic-linker] ==> ignore
  93. arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
  94. arg [-zrelro] ==> ignore
  95. arg [-o] ==> ignore
  96. arg [cmTC_09081] ==> ignore
  97. arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o] ==> ignore
  98. arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o] ==> ignore
  99. arg [/usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o] ==> ignore
  100. arg [-L/usr/lib/gcc/x86_64-linux-gnu/5] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5]
  101. arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu]
  102. arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib]
  103. arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu]
  104. arg [-L/lib/../lib] ==> dir [/lib/../lib]
  105. arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu]
  106. arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
  107. arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../..]
  108. arg [CMakeFiles/cmTC_09081.dir/CMakeCCompilerABI.c.o] ==> ignore
  109. arg [-lgcc] ==> lib [gcc]
  110. arg [--as-needed] ==> ignore
  111. arg [-lgcc_s] ==> lib [gcc_s]
  112. arg [--no-as-needed] ==> ignore
  113. arg [-lc] ==> lib [c]
  114. arg [-lgcc] ==> lib [gcc]
  115. arg [--as-needed] ==> ignore
  116. arg [-lgcc_s] ==> lib [gcc_s]
  117. arg [--no-as-needed] ==> ignore
  118. arg [/usr/lib/gcc/x86_64-linux-gnu/5/crtend.o] ==> ignore
  119. arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o] ==> ignore
  120. collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5] ==> [/usr/lib/gcc/x86_64-linux-gnu/5]
  121. collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
  122. collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib] ==> [/usr/lib]
  123. collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu]
  124. collapse library dir [/lib/../lib] ==> [/lib]
  125. collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
  126. collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
  127. collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../..] ==> [/usr/lib]
  128. implicit libs: [gcc;gcc_s;c;gcc;gcc_s]
  129. implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/5;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib]
  130. implicit fwks: []
  131. Detecting C [-std=c11] compiler features compiled with the following output:
  132. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  133. Run Build Command:"/usr/bin/make" "cmTC_19886/fast"
  134. make -f CMakeFiles/cmTC_19886.dir/build.make CMakeFiles/cmTC_19886.dir/build
  135. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  136. Building C object CMakeFiles/cmTC_19886.dir/feature_tests.c.o
  137. /usr/bin/gcc -std=c11 -o CMakeFiles/cmTC_19886.dir/feature_tests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/feature_tests.c
  138. Linking C executable cmTC_19886
  139. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_19886.dir/link.txt --verbose=1
  140. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_19886.dir/feature_tests.c.o -o cmTC_19886
  141. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  142. Feature record: C_FEATURE:1c_function_prototypes
  143. Feature record: C_FEATURE:1c_restrict
  144. Feature record: C_FEATURE:1c_static_assert
  145. Feature record: C_FEATURE:1c_variadic_macros
  146. Detecting C [-std=c99] compiler features compiled with the following output:
  147. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  148. Run Build Command:"/usr/bin/make" "cmTC_af6fe/fast"
  149. make -f CMakeFiles/cmTC_af6fe.dir/build.make CMakeFiles/cmTC_af6fe.dir/build
  150. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  151. Building C object CMakeFiles/cmTC_af6fe.dir/feature_tests.c.o
  152. /usr/bin/gcc -std=c99 -o CMakeFiles/cmTC_af6fe.dir/feature_tests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/feature_tests.c
  153. Linking C executable cmTC_af6fe
  154. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_af6fe.dir/link.txt --verbose=1
  155. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_af6fe.dir/feature_tests.c.o -o cmTC_af6fe
  156. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  157. Feature record: C_FEATURE:1c_function_prototypes
  158. Feature record: C_FEATURE:1c_restrict
  159. Feature record: C_FEATURE:0c_static_assert
  160. Feature record: C_FEATURE:1c_variadic_macros
  161. Detecting C [-std=c90] compiler features compiled with the following output:
  162. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  163. Run Build Command:"/usr/bin/make" "cmTC_1d3c0/fast"
  164. make -f CMakeFiles/cmTC_1d3c0.dir/build.make CMakeFiles/cmTC_1d3c0.dir/build
  165. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  166. Building C object CMakeFiles/cmTC_1d3c0.dir/feature_tests.c.o
  167. /usr/bin/gcc -std=c90 -o CMakeFiles/cmTC_1d3c0.dir/feature_tests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/feature_tests.c
  168. Linking C executable cmTC_1d3c0
  169. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1d3c0.dir/link.txt --verbose=1
  170. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_1d3c0.dir/feature_tests.c.o -o cmTC_1d3c0
  171. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  172. Feature record: C_FEATURE:1c_function_prototypes
  173. Feature record: C_FEATURE:0c_restrict
  174. Feature record: C_FEATURE:0c_static_assert
  175. Feature record: C_FEATURE:0c_variadic_macros
  176. Determining if the CXX compiler works passed with the following output:
  177. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  178. Run Build Command:"/usr/bin/make" "cmTC_c3dea/fast"
  179. make -f CMakeFiles/cmTC_c3dea.dir/build.make CMakeFiles/cmTC_c3dea.dir/build
  180. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  181. Building CXX object CMakeFiles/cmTC_c3dea.dir/testCXXCompiler.cxx.o
  182. /usr/bin/g++ -o CMakeFiles/cmTC_c3dea.dir/testCXXCompiler.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
  183. Linking CXX executable cmTC_c3dea
  184. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c3dea.dir/link.txt --verbose=1
  185. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_c3dea.dir/testCXXCompiler.cxx.o -o cmTC_c3dea
  186. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  187. Detecting CXX compiler ABI info compiled with the following output:
  188. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  189. Run Build Command:"/usr/bin/make" "cmTC_a1760/fast"
  190. make -f CMakeFiles/cmTC_a1760.dir/build.make CMakeFiles/cmTC_a1760.dir/build
  191. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  192. Building CXX object CMakeFiles/cmTC_a1760.dir/CMakeCXXCompilerABI.cpp.o
  193. /usr/bin/g++ -o CMakeFiles/cmTC_a1760.dir/CMakeCXXCompilerABI.cpp.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CMakeCXXCompilerABI.cpp
  194. Linking CXX executable cmTC_a1760
  195. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a1760.dir/link.txt --verbose=1
  196. /usr/bin/g++ -v -rdynamic CMakeFiles/cmTC_a1760.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_a1760
  197. Using built-in specs.
  198. COLLECT_GCC=/usr/bin/g++
  199. COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
  200. Target: x86_64-linux-gnu
  201. Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.9' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
  202. Thread model: posix
  203. gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)
  204. COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/
  205. LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/
  206. COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_a1760' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
  207. /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccSh7Ww7.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_a1760 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_a1760.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o
  208. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  209. Parsed CXX implicit link information from above output:
  210. link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
  211. ignore line: [Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp]
  212. ignore line: []
  213. ignore line: [Run Build Command:"/usr/bin/make" "cmTC_a1760/fast"]
  214. ignore line: [make -f CMakeFiles/cmTC_a1760.dir/build.make CMakeFiles/cmTC_a1760.dir/build]
  215. ignore line: [make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp']
  216. ignore line: [Building CXX object CMakeFiles/cmTC_a1760.dir/CMakeCXXCompilerABI.cpp.o]
  217. ignore line: [/usr/bin/g++ -o CMakeFiles/cmTC_a1760.dir/CMakeCXXCompilerABI.cpp.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CMakeCXXCompilerABI.cpp]
  218. ignore line: [Linking CXX executable cmTC_a1760]
  219. ignore line: [/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a1760.dir/link.txt --verbose=1]
  220. ignore line: [/usr/bin/g++ -v -rdynamic CMakeFiles/cmTC_a1760.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_a1760 ]
  221. ignore line: [Using built-in specs.]
  222. ignore line: [COLLECT_GCC=/usr/bin/g++]
  223. ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper]
  224. ignore line: [Target: x86_64-linux-gnu]
  225. ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.9' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu]
  226. ignore line: [Thread model: posix]
  227. ignore line: [gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9) ]
  228. ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/]
  229. ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/]
  230. ignore line: [COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_a1760' '-shared-libgcc' '-mtune=generic' '-march=x86-64']
  231. link line: [ /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccSh7Ww7.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_a1760 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_a1760.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o]
  232. arg [/usr/lib/gcc/x86_64-linux-gnu/5/collect2] ==> ignore
  233. arg [-plugin] ==> ignore
  234. arg [/usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so] ==> ignore
  235. arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper] ==> ignore
  236. arg [-plugin-opt=-fresolution=/tmp/ccSh7Ww7.res] ==> ignore
  237. arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
  238. arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
  239. arg [-plugin-opt=-pass-through=-lc] ==> ignore
  240. arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
  241. arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
  242. arg [--sysroot=/] ==> ignore
  243. arg [--build-id] ==> ignore
  244. arg [--eh-frame-hdr] ==> ignore
  245. arg [-m] ==> ignore
  246. arg [elf_x86_64] ==> ignore
  247. arg [--hash-style=gnu] ==> ignore
  248. arg [--as-needed] ==> ignore
  249. arg [-export-dynamic] ==> ignore
  250. arg [-dynamic-linker] ==> ignore
  251. arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
  252. arg [-zrelro] ==> ignore
  253. arg [-o] ==> ignore
  254. arg [cmTC_a1760] ==> ignore
  255. arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o] ==> ignore
  256. arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o] ==> ignore
  257. arg [/usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o] ==> ignore
  258. arg [-L/usr/lib/gcc/x86_64-linux-gnu/5] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5]
  259. arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu]
  260. arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib]
  261. arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu]
  262. arg [-L/lib/../lib] ==> dir [/lib/../lib]
  263. arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu]
  264. arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
  265. arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../..]
  266. arg [CMakeFiles/cmTC_a1760.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
  267. arg [-lstdc++] ==> lib [stdc++]
  268. arg [-lm] ==> lib [m]
  269. arg [-lgcc_s] ==> lib [gcc_s]
  270. arg [-lgcc] ==> lib [gcc]
  271. arg [-lc] ==> lib [c]
  272. arg [-lgcc_s] ==> lib [gcc_s]
  273. arg [-lgcc] ==> lib [gcc]
  274. arg [/usr/lib/gcc/x86_64-linux-gnu/5/crtend.o] ==> ignore
  275. arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o] ==> ignore
  276. collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5] ==> [/usr/lib/gcc/x86_64-linux-gnu/5]
  277. collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
  278. collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib] ==> [/usr/lib]
  279. collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu]
  280. collapse library dir [/lib/../lib] ==> [/lib]
  281. collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu]
  282. collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
  283. collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../..] ==> [/usr/lib]
  284. implicit libs: [stdc++;m;gcc_s;gcc;c;gcc_s;gcc]
  285. implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/5;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib]
  286. implicit fwks: []
  287. Detecting CXX [-std=c++1z] compiler features compiled with the following output:
  288. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  289. Run Build Command:"/usr/bin/make" "cmTC_0cfea/fast"
  290. make -f CMakeFiles/cmTC_0cfea.dir/build.make CMakeFiles/cmTC_0cfea.dir/build
  291. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  292. Building CXX object CMakeFiles/cmTC_0cfea.dir/feature_tests.cxx.o
  293. /usr/bin/g++ -std=c++1z -o CMakeFiles/cmTC_0cfea.dir/feature_tests.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/feature_tests.cxx
  294. Linking CXX executable cmTC_0cfea
  295. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0cfea.dir/link.txt --verbose=1
  296. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_0cfea.dir/feature_tests.cxx.o -o cmTC_0cfea
  297. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  298. Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers
  299. Feature record: CXX_FEATURE:1cxx_alias_templates
  300. Feature record: CXX_FEATURE:1cxx_alignas
  301. Feature record: CXX_FEATURE:1cxx_alignof
  302. Feature record: CXX_FEATURE:1cxx_attributes
  303. Feature record: CXX_FEATURE:1cxx_attribute_deprecated
  304. Feature record: CXX_FEATURE:1cxx_auto_type
  305. Feature record: CXX_FEATURE:1cxx_binary_literals
  306. Feature record: CXX_FEATURE:1cxx_constexpr
  307. Feature record: CXX_FEATURE:1cxx_contextual_conversions
  308. Feature record: CXX_FEATURE:1cxx_decltype
  309. Feature record: CXX_FEATURE:1cxx_decltype_auto
  310. Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types
  311. Feature record: CXX_FEATURE:1cxx_default_function_template_args
  312. Feature record: CXX_FEATURE:1cxx_defaulted_functions
  313. Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers
  314. Feature record: CXX_FEATURE:1cxx_delegating_constructors
  315. Feature record: CXX_FEATURE:1cxx_deleted_functions
  316. Feature record: CXX_FEATURE:1cxx_digit_separators
  317. Feature record: CXX_FEATURE:1cxx_enum_forward_declarations
  318. Feature record: CXX_FEATURE:1cxx_explicit_conversions
  319. Feature record: CXX_FEATURE:1cxx_extended_friend_declarations
  320. Feature record: CXX_FEATURE:1cxx_extern_templates
  321. Feature record: CXX_FEATURE:1cxx_final
  322. Feature record: CXX_FEATURE:1cxx_func_identifier
  323. Feature record: CXX_FEATURE:1cxx_generalized_initializers
  324. Feature record: CXX_FEATURE:1cxx_generic_lambdas
  325. Feature record: CXX_FEATURE:1cxx_inheriting_constructors
  326. Feature record: CXX_FEATURE:1cxx_inline_namespaces
  327. Feature record: CXX_FEATURE:1cxx_lambdas
  328. Feature record: CXX_FEATURE:1cxx_lambda_init_captures
  329. Feature record: CXX_FEATURE:1cxx_local_type_template_args
  330. Feature record: CXX_FEATURE:1cxx_long_long_type
  331. Feature record: CXX_FEATURE:1cxx_noexcept
  332. Feature record: CXX_FEATURE:1cxx_nonstatic_member_init
  333. Feature record: CXX_FEATURE:1cxx_nullptr
  334. Feature record: CXX_FEATURE:1cxx_override
  335. Feature record: CXX_FEATURE:1cxx_range_for
  336. Feature record: CXX_FEATURE:1cxx_raw_string_literals
  337. Feature record: CXX_FEATURE:1cxx_reference_qualified_functions
  338. Feature record: CXX_FEATURE:1cxx_relaxed_constexpr
  339. Feature record: CXX_FEATURE:1cxx_return_type_deduction
  340. Feature record: CXX_FEATURE:1cxx_right_angle_brackets
  341. Feature record: CXX_FEATURE:1cxx_rvalue_references
  342. Feature record: CXX_FEATURE:1cxx_sizeof_member
  343. Feature record: CXX_FEATURE:1cxx_static_assert
  344. Feature record: CXX_FEATURE:1cxx_strong_enums
  345. Feature record: CXX_FEATURE:1cxx_template_template_parameters
  346. Feature record: CXX_FEATURE:1cxx_thread_local
  347. Feature record: CXX_FEATURE:1cxx_trailing_return_types
  348. Feature record: CXX_FEATURE:1cxx_unicode_literals
  349. Feature record: CXX_FEATURE:1cxx_uniform_initialization
  350. Feature record: CXX_FEATURE:1cxx_unrestricted_unions
  351. Feature record: CXX_FEATURE:1cxx_user_literals
  352. Feature record: CXX_FEATURE:1cxx_variable_templates
  353. Feature record: CXX_FEATURE:1cxx_variadic_macros
  354. Feature record: CXX_FEATURE:1cxx_variadic_templates
  355. Detecting CXX [-std=c++14] compiler features compiled with the following output:
  356. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  357. Run Build Command:"/usr/bin/make" "cmTC_7cbdc/fast"
  358. make -f CMakeFiles/cmTC_7cbdc.dir/build.make CMakeFiles/cmTC_7cbdc.dir/build
  359. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  360. Building CXX object CMakeFiles/cmTC_7cbdc.dir/feature_tests.cxx.o
  361. /usr/bin/g++ -std=c++14 -o CMakeFiles/cmTC_7cbdc.dir/feature_tests.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/feature_tests.cxx
  362. Linking CXX executable cmTC_7cbdc
  363. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7cbdc.dir/link.txt --verbose=1
  364. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_7cbdc.dir/feature_tests.cxx.o -o cmTC_7cbdc
  365. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  366. Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers
  367. Feature record: CXX_FEATURE:1cxx_alias_templates
  368. Feature record: CXX_FEATURE:1cxx_alignas
  369. Feature record: CXX_FEATURE:1cxx_alignof
  370. Feature record: CXX_FEATURE:1cxx_attributes
  371. Feature record: CXX_FEATURE:1cxx_attribute_deprecated
  372. Feature record: CXX_FEATURE:1cxx_auto_type
  373. Feature record: CXX_FEATURE:1cxx_binary_literals
  374. Feature record: CXX_FEATURE:1cxx_constexpr
  375. Feature record: CXX_FEATURE:1cxx_contextual_conversions
  376. Feature record: CXX_FEATURE:1cxx_decltype
  377. Feature record: CXX_FEATURE:1cxx_decltype_auto
  378. Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types
  379. Feature record: CXX_FEATURE:1cxx_default_function_template_args
  380. Feature record: CXX_FEATURE:1cxx_defaulted_functions
  381. Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers
  382. Feature record: CXX_FEATURE:1cxx_delegating_constructors
  383. Feature record: CXX_FEATURE:1cxx_deleted_functions
  384. Feature record: CXX_FEATURE:1cxx_digit_separators
  385. Feature record: CXX_FEATURE:1cxx_enum_forward_declarations
  386. Feature record: CXX_FEATURE:1cxx_explicit_conversions
  387. Feature record: CXX_FEATURE:1cxx_extended_friend_declarations
  388. Feature record: CXX_FEATURE:1cxx_extern_templates
  389. Feature record: CXX_FEATURE:1cxx_final
  390. Feature record: CXX_FEATURE:1cxx_func_identifier
  391. Feature record: CXX_FEATURE:1cxx_generalized_initializers
  392. Feature record: CXX_FEATURE:1cxx_generic_lambdas
  393. Feature record: CXX_FEATURE:1cxx_inheriting_constructors
  394. Feature record: CXX_FEATURE:1cxx_inline_namespaces
  395. Feature record: CXX_FEATURE:1cxx_lambdas
  396. Feature record: CXX_FEATURE:1cxx_lambda_init_captures
  397. Feature record: CXX_FEATURE:1cxx_local_type_template_args
  398. Feature record: CXX_FEATURE:1cxx_long_long_type
  399. Feature record: CXX_FEATURE:1cxx_noexcept
  400. Feature record: CXX_FEATURE:1cxx_nonstatic_member_init
  401. Feature record: CXX_FEATURE:1cxx_nullptr
  402. Feature record: CXX_FEATURE:1cxx_override
  403. Feature record: CXX_FEATURE:1cxx_range_for
  404. Feature record: CXX_FEATURE:1cxx_raw_string_literals
  405. Feature record: CXX_FEATURE:1cxx_reference_qualified_functions
  406. Feature record: CXX_FEATURE:1cxx_relaxed_constexpr
  407. Feature record: CXX_FEATURE:1cxx_return_type_deduction
  408. Feature record: CXX_FEATURE:1cxx_right_angle_brackets
  409. Feature record: CXX_FEATURE:1cxx_rvalue_references
  410. Feature record: CXX_FEATURE:1cxx_sizeof_member
  411. Feature record: CXX_FEATURE:1cxx_static_assert
  412. Feature record: CXX_FEATURE:1cxx_strong_enums
  413. Feature record: CXX_FEATURE:1cxx_template_template_parameters
  414. Feature record: CXX_FEATURE:1cxx_thread_local
  415. Feature record: CXX_FEATURE:1cxx_trailing_return_types
  416. Feature record: CXX_FEATURE:1cxx_unicode_literals
  417. Feature record: CXX_FEATURE:1cxx_uniform_initialization
  418. Feature record: CXX_FEATURE:1cxx_unrestricted_unions
  419. Feature record: CXX_FEATURE:1cxx_user_literals
  420. Feature record: CXX_FEATURE:1cxx_variable_templates
  421. Feature record: CXX_FEATURE:1cxx_variadic_macros
  422. Feature record: CXX_FEATURE:1cxx_variadic_templates
  423. Detecting CXX [-std=c++11] compiler features compiled with the following output:
  424. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  425. Run Build Command:"/usr/bin/make" "cmTC_10e0f/fast"
  426. make -f CMakeFiles/cmTC_10e0f.dir/build.make CMakeFiles/cmTC_10e0f.dir/build
  427. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  428. Building CXX object CMakeFiles/cmTC_10e0f.dir/feature_tests.cxx.o
  429. /usr/bin/g++ -std=c++11 -o CMakeFiles/cmTC_10e0f.dir/feature_tests.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/feature_tests.cxx
  430. Linking CXX executable cmTC_10e0f
  431. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_10e0f.dir/link.txt --verbose=1
  432. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_10e0f.dir/feature_tests.cxx.o -o cmTC_10e0f
  433. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  434. Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers
  435. Feature record: CXX_FEATURE:1cxx_alias_templates
  436. Feature record: CXX_FEATURE:1cxx_alignas
  437. Feature record: CXX_FEATURE:1cxx_alignof
  438. Feature record: CXX_FEATURE:1cxx_attributes
  439. Feature record: CXX_FEATURE:0cxx_attribute_deprecated
  440. Feature record: CXX_FEATURE:1cxx_auto_type
  441. Feature record: CXX_FEATURE:0cxx_binary_literals
  442. Feature record: CXX_FEATURE:1cxx_constexpr
  443. Feature record: CXX_FEATURE:0cxx_contextual_conversions
  444. Feature record: CXX_FEATURE:1cxx_decltype
  445. Feature record: CXX_FEATURE:0cxx_decltype_auto
  446. Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types
  447. Feature record: CXX_FEATURE:1cxx_default_function_template_args
  448. Feature record: CXX_FEATURE:1cxx_defaulted_functions
  449. Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers
  450. Feature record: CXX_FEATURE:1cxx_delegating_constructors
  451. Feature record: CXX_FEATURE:1cxx_deleted_functions
  452. Feature record: CXX_FEATURE:0cxx_digit_separators
  453. Feature record: CXX_FEATURE:1cxx_enum_forward_declarations
  454. Feature record: CXX_FEATURE:1cxx_explicit_conversions
  455. Feature record: CXX_FEATURE:1cxx_extended_friend_declarations
  456. Feature record: CXX_FEATURE:1cxx_extern_templates
  457. Feature record: CXX_FEATURE:1cxx_final
  458. Feature record: CXX_FEATURE:1cxx_func_identifier
  459. Feature record: CXX_FEATURE:1cxx_generalized_initializers
  460. Feature record: CXX_FEATURE:0cxx_generic_lambdas
  461. Feature record: CXX_FEATURE:1cxx_inheriting_constructors
  462. Feature record: CXX_FEATURE:1cxx_inline_namespaces
  463. Feature record: CXX_FEATURE:1cxx_lambdas
  464. Feature record: CXX_FEATURE:0cxx_lambda_init_captures
  465. Feature record: CXX_FEATURE:1cxx_local_type_template_args
  466. Feature record: CXX_FEATURE:1cxx_long_long_type
  467. Feature record: CXX_FEATURE:1cxx_noexcept
  468. Feature record: CXX_FEATURE:1cxx_nonstatic_member_init
  469. Feature record: CXX_FEATURE:1cxx_nullptr
  470. Feature record: CXX_FEATURE:1cxx_override
  471. Feature record: CXX_FEATURE:1cxx_range_for
  472. Feature record: CXX_FEATURE:1cxx_raw_string_literals
  473. Feature record: CXX_FEATURE:1cxx_reference_qualified_functions
  474. Feature record: CXX_FEATURE:0cxx_relaxed_constexpr
  475. Feature record: CXX_FEATURE:0cxx_return_type_deduction
  476. Feature record: CXX_FEATURE:1cxx_right_angle_brackets
  477. Feature record: CXX_FEATURE:1cxx_rvalue_references
  478. Feature record: CXX_FEATURE:1cxx_sizeof_member
  479. Feature record: CXX_FEATURE:1cxx_static_assert
  480. Feature record: CXX_FEATURE:1cxx_strong_enums
  481. Feature record: CXX_FEATURE:1cxx_template_template_parameters
  482. Feature record: CXX_FEATURE:1cxx_thread_local
  483. Feature record: CXX_FEATURE:1cxx_trailing_return_types
  484. Feature record: CXX_FEATURE:1cxx_unicode_literals
  485. Feature record: CXX_FEATURE:1cxx_uniform_initialization
  486. Feature record: CXX_FEATURE:1cxx_unrestricted_unions
  487. Feature record: CXX_FEATURE:1cxx_user_literals
  488. Feature record: CXX_FEATURE:0cxx_variable_templates
  489. Feature record: CXX_FEATURE:1cxx_variadic_macros
  490. Feature record: CXX_FEATURE:1cxx_variadic_templates
  491. Detecting CXX [-std=c++98] compiler features compiled with the following output:
  492. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  493. Run Build Command:"/usr/bin/make" "cmTC_36f82/fast"
  494. make -f CMakeFiles/cmTC_36f82.dir/build.make CMakeFiles/cmTC_36f82.dir/build
  495. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  496. Building CXX object CMakeFiles/cmTC_36f82.dir/feature_tests.cxx.o
  497. /usr/bin/g++ -std=c++98 -o CMakeFiles/cmTC_36f82.dir/feature_tests.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/feature_tests.cxx
  498. Linking CXX executable cmTC_36f82
  499. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_36f82.dir/link.txt --verbose=1
  500. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_36f82.dir/feature_tests.cxx.o -o cmTC_36f82
  501. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  502. Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers
  503. Feature record: CXX_FEATURE:0cxx_alias_templates
  504. Feature record: CXX_FEATURE:0cxx_alignas
  505. Feature record: CXX_FEATURE:0cxx_alignof
  506. Feature record: CXX_FEATURE:0cxx_attributes
  507. Feature record: CXX_FEATURE:0cxx_attribute_deprecated
  508. Feature record: CXX_FEATURE:0cxx_auto_type
  509. Feature record: CXX_FEATURE:0cxx_binary_literals
  510. Feature record: CXX_FEATURE:0cxx_constexpr
  511. Feature record: CXX_FEATURE:0cxx_contextual_conversions
  512. Feature record: CXX_FEATURE:0cxx_decltype
  513. Feature record: CXX_FEATURE:0cxx_decltype_auto
  514. Feature record: CXX_FEATURE:0cxx_decltype_incomplete_return_types
  515. Feature record: CXX_FEATURE:0cxx_default_function_template_args
  516. Feature record: CXX_FEATURE:0cxx_defaulted_functions
  517. Feature record: CXX_FEATURE:0cxx_defaulted_move_initializers
  518. Feature record: CXX_FEATURE:0cxx_delegating_constructors
  519. Feature record: CXX_FEATURE:0cxx_deleted_functions
  520. Feature record: CXX_FEATURE:0cxx_digit_separators
  521. Feature record: CXX_FEATURE:0cxx_enum_forward_declarations
  522. Feature record: CXX_FEATURE:0cxx_explicit_conversions
  523. Feature record: CXX_FEATURE:0cxx_extended_friend_declarations
  524. Feature record: CXX_FEATURE:0cxx_extern_templates
  525. Feature record: CXX_FEATURE:0cxx_final
  526. Feature record: CXX_FEATURE:0cxx_func_identifier
  527. Feature record: CXX_FEATURE:0cxx_generalized_initializers
  528. Feature record: CXX_FEATURE:0cxx_generic_lambdas
  529. Feature record: CXX_FEATURE:0cxx_inheriting_constructors
  530. Feature record: CXX_FEATURE:0cxx_inline_namespaces
  531. Feature record: CXX_FEATURE:0cxx_lambdas
  532. Feature record: CXX_FEATURE:0cxx_lambda_init_captures
  533. Feature record: CXX_FEATURE:0cxx_local_type_template_args
  534. Feature record: CXX_FEATURE:0cxx_long_long_type
  535. Feature record: CXX_FEATURE:0cxx_noexcept
  536. Feature record: CXX_FEATURE:0cxx_nonstatic_member_init
  537. Feature record: CXX_FEATURE:0cxx_nullptr
  538. Feature record: CXX_FEATURE:0cxx_override
  539. Feature record: CXX_FEATURE:0cxx_range_for
  540. Feature record: CXX_FEATURE:0cxx_raw_string_literals
  541. Feature record: CXX_FEATURE:0cxx_reference_qualified_functions
  542. Feature record: CXX_FEATURE:0cxx_relaxed_constexpr
  543. Feature record: CXX_FEATURE:0cxx_return_type_deduction
  544. Feature record: CXX_FEATURE:0cxx_right_angle_brackets
  545. Feature record: CXX_FEATURE:0cxx_rvalue_references
  546. Feature record: CXX_FEATURE:0cxx_sizeof_member
  547. Feature record: CXX_FEATURE:0cxx_static_assert
  548. Feature record: CXX_FEATURE:0cxx_strong_enums
  549. Feature record: CXX_FEATURE:1cxx_template_template_parameters
  550. Feature record: CXX_FEATURE:0cxx_thread_local
  551. Feature record: CXX_FEATURE:0cxx_trailing_return_types
  552. Feature record: CXX_FEATURE:0cxx_unicode_literals
  553. Feature record: CXX_FEATURE:0cxx_uniform_initialization
  554. Feature record: CXX_FEATURE:0cxx_unrestricted_unions
  555. Feature record: CXX_FEATURE:0cxx_user_literals
  556. Feature record: CXX_FEATURE:0cxx_variable_templates
  557. Feature record: CXX_FEATURE:0cxx_variadic_macros
  558. Feature record: CXX_FEATURE:0cxx_variadic_templates
  559. Determining if compiler supports C11 _Thread_local passed with the following output:
  560. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  561. Run Build Command:"/usr/bin/make" "cmTC_10295/fast"
  562. make -f CMakeFiles/cmTC_10295.dir/build.make CMakeFiles/cmTC_10295.dir/build
  563. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  564. Building C object CMakeFiles/cmTC_10295.dir/cm_c11_thread_local.c.o
  565. /usr/bin/gcc -std=gnu11 -o CMakeFiles/cmTC_10295.dir/cm_c11_thread_local.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/Checks/cm_c11_thread_local.c
  566. Linking C executable cmTC_10295
  567. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_10295.dir/link.txt --verbose=1
  568. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_10295.dir/cm_c11_thread_local.c.o -o cmTC_10295
  569. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  570. Determining if compiler supports needed C++17 constructs passed with the following output:
  571. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  572. Run Build Command:"/usr/bin/make" "cmTC_36c3e/fast"
  573. make -f CMakeFiles/cmTC_36c3e.dir/build.make CMakeFiles/cmTC_36c3e.dir/build
  574. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  575. Building CXX object CMakeFiles/cmTC_36c3e.dir/cm_cxx17_check.cpp.o
  576. /usr/bin/g++ -std=gnu++1z -o CMakeFiles/cmTC_36c3e.dir/cm_cxx17_check.cpp.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/Checks/cm_cxx17_check.cpp
  577. Linking CXX executable cmTC_36c3e
  578. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_36c3e.dir/link.txt --verbose=1
  579. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_36c3e.dir/cm_cxx17_check.cpp.o -o cmTC_36c3e
  580. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  581. Determining if compiler supports C++ make_unique passed with the following output:
  582. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  583. Run Build Command:"/usr/bin/make" "cmTC_14014/fast"
  584. make -f CMakeFiles/cmTC_14014.dir/build.make CMakeFiles/cmTC_14014.dir/build
  585. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  586. Building CXX object CMakeFiles/cmTC_14014.dir/cm_cxx_make_unique.cxx.o
  587. /usr/bin/g++ -std=gnu++1z -o CMakeFiles/cmTC_14014.dir/cm_cxx_make_unique.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/Checks/cm_cxx_make_unique.cxx
  588. Linking CXX executable cmTC_14014
  589. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_14014.dir/link.txt --verbose=1
  590. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_14014.dir/cm_cxx_make_unique.cxx.o -o cmTC_14014
  591. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  592. Determining if the unsetenv exist passed with the following output:
  593. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  594. Run Build Command:"/usr/bin/make" "cmTC_a3629/fast"
  595. make -f CMakeFiles/cmTC_a3629.dir/build.make CMakeFiles/cmTC_a3629.dir/build
  596. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  597. Building C object CMakeFiles/cmTC_a3629.dir/CheckSymbolExists.c.o
  598. /usr/bin/gcc -o CMakeFiles/cmTC_a3629.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  599. Linking C executable cmTC_a3629
  600. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a3629.dir/link.txt --verbose=1
  601. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_a3629.dir/CheckSymbolExists.c.o -o cmTC_a3629
  602. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  603. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  604. /* */
  605. #include <stdlib.h>
  606. int main(int argc, char** argv)
  607. {
  608. (void)argv;
  609. #ifndef unsetenv
  610. return ((int*)(&unsetenv))[argc];
  611. #else
  612. (void)argc;
  613. return 0;
  614. #endif
  615. }
  616. Determining if the include file pthread.h exists passed with the following output:
  617. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  618. Run Build Command:"/usr/bin/make" "cmTC_3f7b0/fast"
  619. make -f CMakeFiles/cmTC_3f7b0.dir/build.make CMakeFiles/cmTC_3f7b0.dir/build
  620. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  621. Building C object CMakeFiles/cmTC_3f7b0.dir/CheckIncludeFile.c.o
  622. /usr/bin/gcc -o CMakeFiles/cmTC_3f7b0.dir/CheckIncludeFile.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckIncludeFile.c
  623. Linking C executable cmTC_3f7b0
  624. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3f7b0.dir/link.txt --verbose=1
  625. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_3f7b0.dir/CheckIncludeFile.c.o -o cmTC_3f7b0
  626. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  627. Determining if the function pthread_create exists in the pthread passed with the following output:
  628. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  629. Run Build Command:"/usr/bin/make" "cmTC_f2532/fast"
  630. make -f CMakeFiles/cmTC_f2532.dir/build.make CMakeFiles/cmTC_f2532.dir/build
  631. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  632. Building C object CMakeFiles/cmTC_f2532.dir/CheckFunctionExists.c.o
  633. /usr/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_f2532.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  634. Linking C executable cmTC_f2532
  635. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f2532.dir/link.txt --verbose=1
  636. /usr/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_f2532.dir/CheckFunctionExists.c.o -o cmTC_f2532 -lpthread
  637. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  638. Checking whether header cstdio is available compiled with the following output:
  639. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  640. Run Build Command:"/usr/bin/make" "cmTC_60355/fast"
  641. make -f CMakeFiles/cmTC_60355.dir/build.make CMakeFiles/cmTC_60355.dir/build
  642. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  643. Building CXX object CMakeFiles/cmTC_60355.dir/kwsysPlatformTestsCXX.cxx.o
  644. /usr/bin/g++ -DTEST_KWSYS_CXX_HAS_CSTDIO -o CMakeFiles/cmTC_60355.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  645. Linking CXX executable cmTC_60355
  646. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_60355.dir/link.txt --verbose=1
  647. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_60355.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_60355
  648. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  649. Checking for Large File Support compiled and ran with the following output:
  650. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  651. Run Build Command:"/usr/bin/make" "cmTC_1aa74/fast"
  652. make -f CMakeFiles/cmTC_1aa74.dir/build.make CMakeFiles/cmTC_1aa74.dir/build
  653. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  654. Building CXX object CMakeFiles/cmTC_1aa74.dir/kwsysPlatformTestsCXX.cxx.o
  655. /usr/bin/g++ -DKWSYS_CXX_HAS_CSTDIO=1 -DTEST_KWSYS_LFS_WORKS -o CMakeFiles/cmTC_1aa74.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  656. Linking CXX executable cmTC_1aa74
  657. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1aa74.dir/link.txt --verbose=1
  658. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_1aa74.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_1aa74
  659. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  660. Checking whether C++ compiler has 'long long' compiled with the following output:
  661. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  662. Run Build Command:"/usr/bin/make" "cmTC_60de9/fast"
  663. make -f CMakeFiles/cmTC_60de9.dir/build.make CMakeFiles/cmTC_60de9.dir/build
  664. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  665. Building CXX object CMakeFiles/cmTC_60de9.dir/kwsysPlatformTestsCXX.cxx.o
  666. /usr/bin/g++ -DTEST_KWSYS_CXX_HAS_LONG_LONG -o CMakeFiles/cmTC_60de9.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  667. Linking CXX executable cmTC_60de9
  668. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_60de9.dir/link.txt --verbose=1
  669. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_60de9.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_60de9
  670. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  671. Checking whether wstring is available compiled with the following output:
  672. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  673. Run Build Command:"/usr/bin/make" "cmTC_1b5e2/fast"
  674. make -f CMakeFiles/cmTC_1b5e2.dir/build.make CMakeFiles/cmTC_1b5e2.dir/build
  675. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  676. Building CXX object CMakeFiles/cmTC_1b5e2.dir/kwsysPlatformTestsCXX.cxx.o
  677. /usr/bin/g++ -DTEST_KWSYS_STL_HAS_WSTRING -o CMakeFiles/cmTC_1b5e2.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  678. Linking CXX executable cmTC_1b5e2
  679. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1b5e2.dir/link.txt --verbose=1
  680. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_1b5e2.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_1b5e2
  681. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  682. Checking if istream supports long long compiled with the following output:
  683. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  684. Run Build Command:"/usr/bin/make" "cmTC_cc34b/fast"
  685. make -f CMakeFiles/cmTC_cc34b.dir/build.make CMakeFiles/cmTC_cc34b.dir/build
  686. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  687. Building CXX object CMakeFiles/cmTC_cc34b.dir/kwsysPlatformTestsCXX.cxx.o
  688. /usr/bin/g++ -DTEST_KWSYS_IOS_HAS_ISTREAM_LONG_LONG -o CMakeFiles/cmTC_cc34b.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  689. Linking CXX executable cmTC_cc34b
  690. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_cc34b.dir/link.txt --verbose=1
  691. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_cc34b.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_cc34b
  692. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  693. Checking if ostream supports long long compiled with the following output:
  694. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  695. Run Build Command:"/usr/bin/make" "cmTC_2cf0a/fast"
  696. make -f CMakeFiles/cmTC_2cf0a.dir/build.make CMakeFiles/cmTC_2cf0a.dir/build
  697. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  698. Building CXX object CMakeFiles/cmTC_2cf0a.dir/kwsysPlatformTestsCXX.cxx.o
  699. /usr/bin/g++ -DTEST_KWSYS_IOS_HAS_OSTREAM_LONG_LONG -o CMakeFiles/cmTC_2cf0a.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  700. Linking CXX executable cmTC_2cf0a
  701. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2cf0a.dir/link.txt --verbose=1
  702. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_2cf0a.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_2cf0a
  703. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  704. Checking whether C compiler has ptrdiff_t in stddef.h compiled with the following output:
  705. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  706. Run Build Command:"/usr/bin/make" "cmTC_984f6/fast"
  707. make -f CMakeFiles/cmTC_984f6.dir/build.make CMakeFiles/cmTC_984f6.dir/build
  708. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  709. Building C object CMakeFiles/cmTC_984f6.dir/kwsysPlatformTestsC.c.o
  710. /usr/bin/gcc -DTEST_KWSYS_C_HAS_PTRDIFF_T -o CMakeFiles/cmTC_984f6.dir/kwsysPlatformTestsC.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsC.c
  711. Linking C executable cmTC_984f6
  712. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_984f6.dir/link.txt --verbose=1
  713. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_984f6.dir/kwsysPlatformTestsC.c.o -o cmTC_984f6
  714. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  715. Checking whether C compiler has ssize_t in unistd.h compiled with the following output:
  716. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  717. Run Build Command:"/usr/bin/make" "cmTC_ae9b0/fast"
  718. make -f CMakeFiles/cmTC_ae9b0.dir/build.make CMakeFiles/cmTC_ae9b0.dir/build
  719. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  720. Building C object CMakeFiles/cmTC_ae9b0.dir/kwsysPlatformTestsC.c.o
  721. /usr/bin/gcc -DTEST_KWSYS_C_HAS_SSIZE_T -o CMakeFiles/cmTC_ae9b0.dir/kwsysPlatformTestsC.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsC.c
  722. Linking C executable cmTC_ae9b0
  723. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ae9b0.dir/link.txt --verbose=1
  724. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_ae9b0.dir/kwsysPlatformTestsC.c.o -o cmTC_ae9b0
  725. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  726. Checking whether C compiler has clock_gettime compiled with the following output:
  727. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  728. Run Build Command:"/usr/bin/make" "cmTC_84ff8/fast"
  729. make -f CMakeFiles/cmTC_84ff8.dir/build.make CMakeFiles/cmTC_84ff8.dir/build
  730. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  731. Building C object CMakeFiles/cmTC_84ff8.dir/kwsysPlatformTestsC.c.o
  732. /usr/bin/gcc -DTEST_KWSYS_C_HAS_CLOCK_GETTIME_MONOTONIC -o CMakeFiles/cmTC_84ff8.dir/kwsysPlatformTestsC.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsC.c
  733. Linking C executable cmTC_84ff8
  734. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_84ff8.dir/link.txt --verbose=1
  735. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_84ff8.dir/kwsysPlatformTestsC.c.o -o cmTC_84ff8
  736. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  737. Checking whether CXX compiler has setenv compiled with the following output:
  738. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  739. Run Build Command:"/usr/bin/make" "cmTC_7d0a4/fast"
  740. make -f CMakeFiles/cmTC_7d0a4.dir/build.make CMakeFiles/cmTC_7d0a4.dir/build
  741. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  742. Building CXX object CMakeFiles/cmTC_7d0a4.dir/kwsysPlatformTestsCXX.cxx.o
  743. /usr/bin/g++ -DTEST_KWSYS_CXX_HAS_SETENV -o CMakeFiles/cmTC_7d0a4.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  744. Linking CXX executable cmTC_7d0a4
  745. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7d0a4.dir/link.txt --verbose=1
  746. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_7d0a4.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_7d0a4
  747. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  748. Checking whether CXX compiler has unsetenv compiled with the following output:
  749. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  750. Run Build Command:"/usr/bin/make" "cmTC_26590/fast"
  751. make -f CMakeFiles/cmTC_26590.dir/build.make CMakeFiles/cmTC_26590.dir/build
  752. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  753. Building CXX object CMakeFiles/cmTC_26590.dir/kwsysPlatformTestsCXX.cxx.o
  754. /usr/bin/g++ -DTEST_KWSYS_CXX_HAS_UNSETENV -o CMakeFiles/cmTC_26590.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  755. Linking CXX executable cmTC_26590
  756. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_26590.dir/link.txt --verbose=1
  757. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_26590.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_26590
  758. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  759. Checking whether CXX compiler has utimes compiled with the following output:
  760. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  761. Run Build Command:"/usr/bin/make" "cmTC_397d2/fast"
  762. make -f CMakeFiles/cmTC_397d2.dir/build.make CMakeFiles/cmTC_397d2.dir/build
  763. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  764. Building CXX object CMakeFiles/cmTC_397d2.dir/kwsysPlatformTestsCXX.cxx.o
  765. /usr/bin/g++ -DTEST_KWSYS_CXX_HAS_UTIMES -o CMakeFiles/cmTC_397d2.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  766. Linking CXX executable cmTC_397d2
  767. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_397d2.dir/link.txt --verbose=1
  768. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_397d2.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_397d2
  769. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  770. Checking whether CXX compiler has utimensat compiled with the following output:
  771. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  772. Run Build Command:"/usr/bin/make" "cmTC_00388/fast"
  773. make -f CMakeFiles/cmTC_00388.dir/build.make CMakeFiles/cmTC_00388.dir/build
  774. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  775. Building CXX object CMakeFiles/cmTC_00388.dir/kwsysPlatformTestsCXX.cxx.o
  776. /usr/bin/g++ -DTEST_KWSYS_CXX_HAS_UTIMENSAT -o CMakeFiles/cmTC_00388.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  777. Linking CXX executable cmTC_00388
  778. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_00388.dir/link.txt --verbose=1
  779. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_00388.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_00388
  780. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  781. Checking whether CXX compiler struct stat has st_mtim member compiled with the following output:
  782. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  783. Run Build Command:"/usr/bin/make" "cmTC_e439f/fast"
  784. make -f CMakeFiles/cmTC_e439f.dir/build.make CMakeFiles/cmTC_e439f.dir/build
  785. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  786. Building CXX object CMakeFiles/cmTC_e439f.dir/kwsysPlatformTestsCXX.cxx.o
  787. /usr/bin/g++ -DTEST_KWSYS_CXX_STAT_HAS_ST_MTIM -o CMakeFiles/cmTC_e439f.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  788. Linking CXX executable cmTC_e439f
  789. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e439f.dir/link.txt --verbose=1
  790. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_e439f.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_e439f
  791. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  792. Determining if files sys/types.h;ifaddrs.h exist passed with the following output:
  793. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  794. Run Build Command:"/usr/bin/make" "cmTC_72c80/fast"
  795. make -f CMakeFiles/cmTC_72c80.dir/build.make CMakeFiles/cmTC_72c80.dir/build
  796. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  797. Building C object CMakeFiles/cmTC_72c80.dir/KWSYS_SYS_HAS_IFADDRS_H.c.o
  798. /usr/bin/gcc -o CMakeFiles/cmTC_72c80.dir/KWSYS_SYS_HAS_IFADDRS_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/KWSYS_SYS_HAS_IFADDRS_H.c
  799. Linking C executable cmTC_72c80
  800. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_72c80.dir/link.txt --verbose=1
  801. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_72c80.dir/KWSYS_SYS_HAS_IFADDRS_H.c.o -o cmTC_72c80
  802. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  803. Checking whether CXX compiler has rlimit64 compiled with the following output:
  804. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  805. Run Build Command:"/usr/bin/make" "cmTC_e64fb/fast"
  806. make -f CMakeFiles/cmTC_e64fb.dir/build.make CMakeFiles/cmTC_e64fb.dir/build
  807. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  808. Building CXX object CMakeFiles/cmTC_e64fb.dir/kwsysPlatformTestsCXX.cxx.o
  809. /usr/bin/g++ -DKWSYS_HAS_LFS=1 -DTEST_KWSYS_CXX_HAS_RLIMIT64 -o CMakeFiles/cmTC_e64fb.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  810. Linking CXX executable cmTC_e64fb
  811. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e64fb.dir/link.txt --verbose=1
  812. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_e64fb.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_e64fb
  813. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  814. Checking whether CXX compiler has atol compiled with the following output:
  815. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  816. Run Build Command:"/usr/bin/make" "cmTC_e5284/fast"
  817. make -f CMakeFiles/cmTC_e5284.dir/build.make CMakeFiles/cmTC_e5284.dir/build
  818. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  819. Building CXX object CMakeFiles/cmTC_e5284.dir/kwsysPlatformTestsCXX.cxx.o
  820. /usr/bin/g++ -DTEST_KWSYS_CXX_HAS_ATOL -o CMakeFiles/cmTC_e5284.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  821. Linking CXX executable cmTC_e5284
  822. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e5284.dir/link.txt --verbose=1
  823. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_e5284.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_e5284
  824. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  825. Checking whether CXX compiler has atoll compiled with the following output:
  826. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  827. Run Build Command:"/usr/bin/make" "cmTC_1d5d9/fast"
  828. make -f CMakeFiles/cmTC_1d5d9.dir/build.make CMakeFiles/cmTC_1d5d9.dir/build
  829. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  830. Building CXX object CMakeFiles/cmTC_1d5d9.dir/kwsysPlatformTestsCXX.cxx.o
  831. /usr/bin/g++ -DTEST_KWSYS_CXX_HAS_ATOLL -o CMakeFiles/cmTC_1d5d9.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  832. Linking CXX executable cmTC_1d5d9
  833. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1d5d9.dir/link.txt --verbose=1
  834. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_1d5d9.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_1d5d9
  835. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  836. Determining if the include file execinfo.h exists passed with the following output:
  837. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  838. Run Build Command:"/usr/bin/make" "cmTC_7f79c/fast"
  839. make -f CMakeFiles/cmTC_7f79c.dir/build.make CMakeFiles/cmTC_7f79c.dir/build
  840. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  841. Building CXX object CMakeFiles/cmTC_7f79c.dir/CheckIncludeFile.cxx.o
  842. /usr/bin/g++ -o CMakeFiles/cmTC_7f79c.dir/CheckIncludeFile.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx
  843. Linking CXX executable cmTC_7f79c
  844. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7f79c.dir/link.txt --verbose=1
  845. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_7f79c.dir/CheckIncludeFile.cxx.o -o cmTC_7f79c
  846. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  847. Checking whether backtrace works with this C++ compiler compiled with the following output:
  848. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  849. Run Build Command:"/usr/bin/make" "cmTC_1d5f1/fast"
  850. make -f CMakeFiles/cmTC_1d5f1.dir/build.make CMakeFiles/cmTC_1d5f1.dir/build
  851. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  852. Building CXX object CMakeFiles/cmTC_1d5f1.dir/kwsysPlatformTestsCXX.cxx.o
  853. /usr/bin/g++ -DTEST_KWSYS_CXX_HAS_BACKTRACE -o CMakeFiles/cmTC_1d5f1.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  854. Linking CXX executable cmTC_1d5f1
  855. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1d5f1.dir/link.txt --verbose=1
  856. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_1d5f1.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_1d5f1
  857. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  858. Determining if the include file dlfcn.h exists passed with the following output:
  859. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  860. Run Build Command:"/usr/bin/make" "cmTC_e11c6/fast"
  861. make -f CMakeFiles/cmTC_e11c6.dir/build.make CMakeFiles/cmTC_e11c6.dir/build
  862. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  863. Building CXX object CMakeFiles/cmTC_e11c6.dir/CheckIncludeFile.cxx.o
  864. /usr/bin/g++ -o CMakeFiles/cmTC_e11c6.dir/CheckIncludeFile.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx
  865. Linking CXX executable cmTC_e11c6
  866. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e11c6.dir/link.txt --verbose=1
  867. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_e11c6.dir/CheckIncludeFile.cxx.o -o cmTC_e11c6
  868. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  869. Checking whether dladdr works with this C++ compiler compiled with the following output:
  870. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  871. Run Build Command:"/usr/bin/make" "cmTC_d8b35/fast"
  872. make -f CMakeFiles/cmTC_d8b35.dir/build.make CMakeFiles/cmTC_d8b35.dir/build
  873. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  874. Building CXX object CMakeFiles/cmTC_d8b35.dir/kwsysPlatformTestsCXX.cxx.o
  875. /usr/bin/g++ -DTEST_KWSYS_CXX_HAS_DLADDR -o CMakeFiles/cmTC_d8b35.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  876. Linking CXX executable cmTC_d8b35
  877. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d8b35.dir/link.txt --verbose=1
  878. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_d8b35.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_d8b35 -ldl
  879. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  880. Determining if the include file cxxabi.h exists passed with the following output:
  881. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  882. Run Build Command:"/usr/bin/make" "cmTC_fa509/fast"
  883. make -f CMakeFiles/cmTC_fa509.dir/build.make CMakeFiles/cmTC_fa509.dir/build
  884. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  885. Building CXX object CMakeFiles/cmTC_fa509.dir/CheckIncludeFile.cxx.o
  886. /usr/bin/g++ -o CMakeFiles/cmTC_fa509.dir/CheckIncludeFile.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx
  887. Linking CXX executable cmTC_fa509
  888. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_fa509.dir/link.txt --verbose=1
  889. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_fa509.dir/CheckIncludeFile.cxx.o -o cmTC_fa509
  890. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  891. Checking whether cxxabi works with this C++ compiler compiled with the following output:
  892. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  893. Run Build Command:"/usr/bin/make" "cmTC_fa24d/fast"
  894. make -f CMakeFiles/cmTC_fa24d.dir/build.make CMakeFiles/cmTC_fa24d.dir/build
  895. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  896. Building CXX object CMakeFiles/cmTC_fa24d.dir/kwsysPlatformTestsCXX.cxx.o
  897. /usr/bin/g++ -DTEST_KWSYS_CXX_HAS_CXXABI -o CMakeFiles/cmTC_fa24d.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  898. Linking CXX executable cmTC_fa24d
  899. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_fa24d.dir/link.txt --verbose=1
  900. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_fa24d.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_fa24d
  901. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  902. Checking whether CXX compiler has getloadavg compiled with the following output:
  903. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  904. Run Build Command:"/usr/bin/make" "cmTC_f23e0/fast"
  905. make -f CMakeFiles/cmTC_f23e0.dir/build.make CMakeFiles/cmTC_f23e0.dir/build
  906. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  907. Building CXX object CMakeFiles/cmTC_f23e0.dir/kwsysPlatformTestsCXX.cxx.o
  908. /usr/bin/g++ -DTEST_KWSYS_CXX_HAS_GETLOADAVG -o CMakeFiles/cmTC_f23e0.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  909. Linking CXX executable cmTC_f23e0
  910. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f23e0.dir/link.txt --verbose=1
  911. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_f23e0.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_f23e0
  912. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  913. Checking whether <ext/stdio_filebuf.h> is available compiled with the following output:
  914. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp
  915. Run Build Command:"/usr/bin/make" "cmTC_af0e1/fast"
  916. make -f CMakeFiles/cmTC_af0e1.dir/build.make CMakeFiles/cmTC_af0e1.dir/build
  917. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  918. Building CXX object CMakeFiles/cmTC_af0e1.dir/kwsysPlatformTestsCXX.cxx.o
  919. /usr/bin/g++ -DTEST_KWSYS_CXX_HAS_EXT_STDIO_FILEBUF_H -o CMakeFiles/cmTC_af0e1.dir/kwsysPlatformTestsCXX.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/kwsysPlatformTestsCXX.cxx
  920. Linking CXX executable cmTC_af0e1
  921. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_af0e1.dir/link.txt --verbose=1
  922. /usr/bin/g++ -rdynamic CMakeFiles/cmTC_af0e1.dir/kwsysPlatformTestsCXX.cxx.o -o cmTC_af0e1
  923. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Source/kwsys/CMakeFiles/CMakeTmp'
  924. Determining if the function gethostbyname exists in the c passed with the following output:
  925. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  926. Run Build Command:"/usr/bin/make" "cmTC_b9e94/fast"
  927. make -f CMakeFiles/cmTC_b9e94.dir/build.make CMakeFiles/cmTC_b9e94.dir/build
  928. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  929. Building C object CMakeFiles/cmTC_b9e94.dir/CheckFunctionExists.c.o
  930. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=gethostbyname -o CMakeFiles/cmTC_b9e94.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  931. Linking C executable cmTC_b9e94
  932. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b9e94.dir/link.txt --verbose=1
  933. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=gethostbyname -rdynamic CMakeFiles/cmTC_b9e94.dir/CheckFunctionExists.c.o -o cmTC_b9e94 -lc
  934. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  935. Determining if the function gethostname exists passed with the following output:
  936. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  937. Run Build Command:"/usr/bin/make" "cmTC_cdcdd/fast"
  938. make -f CMakeFiles/cmTC_cdcdd.dir/build.make CMakeFiles/cmTC_cdcdd.dir/build
  939. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  940. Building C object CMakeFiles/cmTC_cdcdd.dir/CheckFunctionExists.c.o
  941. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=gethostname -o CMakeFiles/cmTC_cdcdd.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  942. Linking C executable cmTC_cdcdd
  943. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_cdcdd.dir/link.txt --verbose=1
  944. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=gethostname -rdynamic CMakeFiles/cmTC_cdcdd.dir/CheckFunctionExists.c.o -o cmTC_cdcdd
  945. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  946. Determining if the include file openssl/crypto.h exists passed with the following output:
  947. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  948. Run Build Command:"/usr/bin/make" "cmTC_a5c51/fast"
  949. make -f CMakeFiles/cmTC_a5c51.dir/build.make CMakeFiles/cmTC_a5c51.dir/build
  950. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  951. Building C object CMakeFiles/cmTC_a5c51.dir/CheckIncludeFile.c.o
  952. /usr/bin/gcc -w -o CMakeFiles/cmTC_a5c51.dir/CheckIncludeFile.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckIncludeFile.c
  953. Linking C executable cmTC_a5c51
  954. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a5c51.dir/link.txt --verbose=1
  955. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_a5c51.dir/CheckIncludeFile.c.o -o cmTC_a5c51
  956. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  957. Determining if the include file openssl/engine.h exists passed with the following output:
  958. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  959. Run Build Command:"/usr/bin/make" "cmTC_ca299/fast"
  960. make -f CMakeFiles/cmTC_ca299.dir/build.make CMakeFiles/cmTC_ca299.dir/build
  961. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  962. Building C object CMakeFiles/cmTC_ca299.dir/CheckIncludeFile.c.o
  963. /usr/bin/gcc -w -o CMakeFiles/cmTC_ca299.dir/CheckIncludeFile.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckIncludeFile.c
  964. Linking C executable cmTC_ca299
  965. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ca299.dir/link.txt --verbose=1
  966. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_ca299.dir/CheckIncludeFile.c.o -o cmTC_ca299
  967. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  968. Determining if the include file openssl/err.h exists passed with the following output:
  969. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  970. Run Build Command:"/usr/bin/make" "cmTC_0f158/fast"
  971. make -f CMakeFiles/cmTC_0f158.dir/build.make CMakeFiles/cmTC_0f158.dir/build
  972. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  973. Building C object CMakeFiles/cmTC_0f158.dir/CheckIncludeFile.c.o
  974. /usr/bin/gcc -w -o CMakeFiles/cmTC_0f158.dir/CheckIncludeFile.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckIncludeFile.c
  975. Linking C executable cmTC_0f158
  976. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0f158.dir/link.txt --verbose=1
  977. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_0f158.dir/CheckIncludeFile.c.o -o cmTC_0f158
  978. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  979. Determining if the include file openssl/pem.h exists passed with the following output:
  980. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  981. Run Build Command:"/usr/bin/make" "cmTC_757c4/fast"
  982. make -f CMakeFiles/cmTC_757c4.dir/build.make CMakeFiles/cmTC_757c4.dir/build
  983. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  984. Building C object CMakeFiles/cmTC_757c4.dir/CheckIncludeFile.c.o
  985. /usr/bin/gcc -w -o CMakeFiles/cmTC_757c4.dir/CheckIncludeFile.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckIncludeFile.c
  986. Linking C executable cmTC_757c4
  987. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_757c4.dir/link.txt --verbose=1
  988. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_757c4.dir/CheckIncludeFile.c.o -o cmTC_757c4
  989. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  990. Determining if the include file openssl/rsa.h exists passed with the following output:
  991. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  992. Run Build Command:"/usr/bin/make" "cmTC_5eb0c/fast"
  993. make -f CMakeFiles/cmTC_5eb0c.dir/build.make CMakeFiles/cmTC_5eb0c.dir/build
  994. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  995. Building C object CMakeFiles/cmTC_5eb0c.dir/CheckIncludeFile.c.o
  996. /usr/bin/gcc -w -o CMakeFiles/cmTC_5eb0c.dir/CheckIncludeFile.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckIncludeFile.c
  997. Linking C executable cmTC_5eb0c
  998. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_5eb0c.dir/link.txt --verbose=1
  999. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_5eb0c.dir/CheckIncludeFile.c.o -o cmTC_5eb0c
  1000. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1001. Determining if the include file openssl/ssl.h exists passed with the following output:
  1002. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1003. Run Build Command:"/usr/bin/make" "cmTC_248d9/fast"
  1004. make -f CMakeFiles/cmTC_248d9.dir/build.make CMakeFiles/cmTC_248d9.dir/build
  1005. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1006. Building C object CMakeFiles/cmTC_248d9.dir/CheckIncludeFile.c.o
  1007. /usr/bin/gcc -w -o CMakeFiles/cmTC_248d9.dir/CheckIncludeFile.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckIncludeFile.c
  1008. Linking C executable cmTC_248d9
  1009. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_248d9.dir/link.txt --verbose=1
  1010. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_248d9.dir/CheckIncludeFile.c.o -o cmTC_248d9
  1011. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1012. Determining if the include file openssl/x509.h exists passed with the following output:
  1013. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1014. Run Build Command:"/usr/bin/make" "cmTC_8f454/fast"
  1015. make -f CMakeFiles/cmTC_8f454.dir/build.make CMakeFiles/cmTC_8f454.dir/build
  1016. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1017. Building C object CMakeFiles/cmTC_8f454.dir/CheckIncludeFile.c.o
  1018. /usr/bin/gcc -w -o CMakeFiles/cmTC_8f454.dir/CheckIncludeFile.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckIncludeFile.c
  1019. Linking C executable cmTC_8f454
  1020. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8f454.dir/link.txt --verbose=1
  1021. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_8f454.dir/CheckIncludeFile.c.o -o cmTC_8f454
  1022. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1023. Determining if the include file openssl/rand.h exists passed with the following output:
  1024. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1025. Run Build Command:"/usr/bin/make" "cmTC_fc112/fast"
  1026. make -f CMakeFiles/cmTC_fc112.dir/build.make CMakeFiles/cmTC_fc112.dir/build
  1027. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1028. Building C object CMakeFiles/cmTC_fc112.dir/CheckIncludeFile.c.o
  1029. /usr/bin/gcc -w -o CMakeFiles/cmTC_fc112.dir/CheckIncludeFile.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckIncludeFile.c
  1030. Linking C executable cmTC_fc112
  1031. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_fc112.dir/link.txt --verbose=1
  1032. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_fc112.dir/CheckIncludeFile.c.o -o cmTC_fc112
  1033. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1034. Determining if the function dlopen exists in the dl;/usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so passed with the following output:
  1035. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1036. Run Build Command:"/usr/bin/make" "cmTC_0cea7/fast"
  1037. make -f CMakeFiles/cmTC_0cea7.dir/build.make CMakeFiles/cmTC_0cea7.dir/build
  1038. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1039. Building C object CMakeFiles/cmTC_0cea7.dir/CheckFunctionExists.c.o
  1040. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=dlopen -o CMakeFiles/cmTC_0cea7.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  1041. Linking C executable cmTC_0cea7
  1042. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0cea7.dir/link.txt --verbose=1
  1043. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=dlopen -rdynamic CMakeFiles/cmTC_0cea7.dir/CheckFunctionExists.c.o -o cmTC_0cea7 -ldl -lssl -lcrypto
  1044. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1045. Determining if files ;stdio.h exist passed with the following output:
  1046. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1047. Run Build Command:"/usr/bin/make" "cmTC_44ea3/fast"
  1048. make -f CMakeFiles/cmTC_44ea3.dir/build.make CMakeFiles/cmTC_44ea3.dir/build
  1049. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1050. Building C object CMakeFiles/cmTC_44ea3.dir/HAVE_STDIO_H.c.o
  1051. /usr/bin/gcc -w -o CMakeFiles/cmTC_44ea3.dir/HAVE_STDIO_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_STDIO_H.c
  1052. Linking C executable cmTC_44ea3
  1053. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_44ea3.dir/link.txt --verbose=1
  1054. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_44ea3.dir/HAVE_STDIO_H.c.o -o cmTC_44ea3
  1055. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1056. Determining if files stdio.h;inttypes.h exist passed with the following output:
  1057. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1058. Run Build Command:"/usr/bin/make" "cmTC_d9ade/fast"
  1059. make -f CMakeFiles/cmTC_d9ade.dir/build.make CMakeFiles/cmTC_d9ade.dir/build
  1060. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1061. Building C object CMakeFiles/cmTC_d9ade.dir/HAVE_INTTYPES_H.c.o
  1062. /usr/bin/gcc -w -o CMakeFiles/cmTC_d9ade.dir/HAVE_INTTYPES_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_INTTYPES_H.c
  1063. Linking C executable cmTC_d9ade
  1064. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d9ade.dir/link.txt --verbose=1
  1065. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_d9ade.dir/HAVE_INTTYPES_H.c.o -o cmTC_d9ade
  1066. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1067. Determining if files stdio.h;inttypes.h;sys/ioctl.h exist passed with the following output:
  1068. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1069. Run Build Command:"/usr/bin/make" "cmTC_b0def/fast"
  1070. make -f CMakeFiles/cmTC_b0def.dir/build.make CMakeFiles/cmTC_b0def.dir/build
  1071. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1072. Building C object CMakeFiles/cmTC_b0def.dir/HAVE_SYS_IOCTL_H.c.o
  1073. /usr/bin/gcc -w -o CMakeFiles/cmTC_b0def.dir/HAVE_SYS_IOCTL_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_IOCTL_H.c
  1074. Linking C executable cmTC_b0def
  1075. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b0def.dir/link.txt --verbose=1
  1076. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_b0def.dir/HAVE_SYS_IOCTL_H.c.o -o cmTC_b0def
  1077. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1078. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h exist passed with the following output:
  1079. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1080. Run Build Command:"/usr/bin/make" "cmTC_ba001/fast"
  1081. make -f CMakeFiles/cmTC_ba001.dir/build.make CMakeFiles/cmTC_ba001.dir/build
  1082. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1083. Building C object CMakeFiles/cmTC_ba001.dir/HAVE_SYS_PARAM_H.c.o
  1084. /usr/bin/gcc -w -o CMakeFiles/cmTC_ba001.dir/HAVE_SYS_PARAM_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_PARAM_H.c
  1085. Linking C executable cmTC_ba001
  1086. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ba001.dir/link.txt --verbose=1
  1087. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_ba001.dir/HAVE_SYS_PARAM_H.c.o -o cmTC_ba001
  1088. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1089. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h exist passed with the following output:
  1090. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1091. Run Build Command:"/usr/bin/make" "cmTC_0441b/fast"
  1092. make -f CMakeFiles/cmTC_0441b.dir/build.make CMakeFiles/cmTC_0441b.dir/build
  1093. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1094. Building C object CMakeFiles/cmTC_0441b.dir/HAVE_SYS_POLL_H.c.o
  1095. /usr/bin/gcc -w -o CMakeFiles/cmTC_0441b.dir/HAVE_SYS_POLL_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_POLL_H.c
  1096. Linking C executable cmTC_0441b
  1097. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0441b.dir/link.txt --verbose=1
  1098. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_0441b.dir/HAVE_SYS_POLL_H.c.o -o cmTC_0441b
  1099. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1100. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h exist passed with the following output:
  1101. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1102. Run Build Command:"/usr/bin/make" "cmTC_ee5c1/fast"
  1103. make -f CMakeFiles/cmTC_ee5c1.dir/build.make CMakeFiles/cmTC_ee5c1.dir/build
  1104. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1105. Building C object CMakeFiles/cmTC_ee5c1.dir/HAVE_SYS_RESOURCE_H.c.o
  1106. /usr/bin/gcc -w -o CMakeFiles/cmTC_ee5c1.dir/HAVE_SYS_RESOURCE_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_RESOURCE_H.c
  1107. Linking C executable cmTC_ee5c1
  1108. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ee5c1.dir/link.txt --verbose=1
  1109. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_ee5c1.dir/HAVE_SYS_RESOURCE_H.c.o -o cmTC_ee5c1
  1110. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1111. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h exist passed with the following output:
  1112. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1113. Run Build Command:"/usr/bin/make" "cmTC_b5760/fast"
  1114. make -f CMakeFiles/cmTC_b5760.dir/build.make CMakeFiles/cmTC_b5760.dir/build
  1115. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1116. Building C object CMakeFiles/cmTC_b5760.dir/HAVE_SYS_SELECT_H.c.o
  1117. /usr/bin/gcc -w -o CMakeFiles/cmTC_b5760.dir/HAVE_SYS_SELECT_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_SELECT_H.c
  1118. Linking C executable cmTC_b5760
  1119. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b5760.dir/link.txt --verbose=1
  1120. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_b5760.dir/HAVE_SYS_SELECT_H.c.o -o cmTC_b5760
  1121. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1122. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h exist passed with the following output:
  1123. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1124. Run Build Command:"/usr/bin/make" "cmTC_28a8d/fast"
  1125. make -f CMakeFiles/cmTC_28a8d.dir/build.make CMakeFiles/cmTC_28a8d.dir/build
  1126. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1127. Building C object CMakeFiles/cmTC_28a8d.dir/HAVE_SYS_SOCKET_H.c.o
  1128. /usr/bin/gcc -w -o CMakeFiles/cmTC_28a8d.dir/HAVE_SYS_SOCKET_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_SOCKET_H.c
  1129. Linking C executable cmTC_28a8d
  1130. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_28a8d.dir/link.txt --verbose=1
  1131. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_28a8d.dir/HAVE_SYS_SOCKET_H.c.o -o cmTC_28a8d
  1132. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1133. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h exist passed with the following output:
  1134. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1135. Run Build Command:"/usr/bin/make" "cmTC_8dee2/fast"
  1136. make -f CMakeFiles/cmTC_8dee2.dir/build.make CMakeFiles/cmTC_8dee2.dir/build
  1137. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1138. Building C object CMakeFiles/cmTC_8dee2.dir/HAVE_SYS_STAT_H.c.o
  1139. /usr/bin/gcc -w -o CMakeFiles/cmTC_8dee2.dir/HAVE_SYS_STAT_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_STAT_H.c
  1140. Linking C executable cmTC_8dee2
  1141. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8dee2.dir/link.txt --verbose=1
  1142. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_8dee2.dir/HAVE_SYS_STAT_H.c.o -o cmTC_8dee2
  1143. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1144. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h exist passed with the following output:
  1145. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1146. Run Build Command:"/usr/bin/make" "cmTC_ac57d/fast"
  1147. make -f CMakeFiles/cmTC_ac57d.dir/build.make CMakeFiles/cmTC_ac57d.dir/build
  1148. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1149. Building C object CMakeFiles/cmTC_ac57d.dir/HAVE_SYS_TIME_H.c.o
  1150. /usr/bin/gcc -w -o CMakeFiles/cmTC_ac57d.dir/HAVE_SYS_TIME_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_TIME_H.c
  1151. Linking C executable cmTC_ac57d
  1152. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ac57d.dir/link.txt --verbose=1
  1153. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_ac57d.dir/HAVE_SYS_TIME_H.c.o -o cmTC_ac57d
  1154. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1155. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h exist passed with the following output:
  1156. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1157. Run Build Command:"/usr/bin/make" "cmTC_750ce/fast"
  1158. make -f CMakeFiles/cmTC_750ce.dir/build.make CMakeFiles/cmTC_750ce.dir/build
  1159. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1160. Building C object CMakeFiles/cmTC_750ce.dir/HAVE_SYS_TYPES_H.c.o
  1161. /usr/bin/gcc -w -o CMakeFiles/cmTC_750ce.dir/HAVE_SYS_TYPES_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_TYPES_H.c
  1162. Linking C executable cmTC_750ce
  1163. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_750ce.dir/link.txt --verbose=1
  1164. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_750ce.dir/HAVE_SYS_TYPES_H.c.o -o cmTC_750ce
  1165. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1166. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h exist passed with the following output:
  1167. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1168. Run Build Command:"/usr/bin/make" "cmTC_ae840/fast"
  1169. make -f CMakeFiles/cmTC_ae840.dir/build.make CMakeFiles/cmTC_ae840.dir/build
  1170. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1171. Building C object CMakeFiles/cmTC_ae840.dir/HAVE_SYS_UIO_H.c.o
  1172. /usr/bin/gcc -w -o CMakeFiles/cmTC_ae840.dir/HAVE_SYS_UIO_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_UIO_H.c
  1173. Linking C executable cmTC_ae840
  1174. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ae840.dir/link.txt --verbose=1
  1175. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_ae840.dir/HAVE_SYS_UIO_H.c.o -o cmTC_ae840
  1176. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1177. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h exist passed with the following output:
  1178. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1179. Run Build Command:"/usr/bin/make" "cmTC_49d7e/fast"
  1180. make -f CMakeFiles/cmTC_49d7e.dir/build.make CMakeFiles/cmTC_49d7e.dir/build
  1181. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1182. Building C object CMakeFiles/cmTC_49d7e.dir/HAVE_SYS_UN_H.c.o
  1183. /usr/bin/gcc -w -o CMakeFiles/cmTC_49d7e.dir/HAVE_SYS_UN_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_UN_H.c
  1184. Linking C executable cmTC_49d7e
  1185. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_49d7e.dir/link.txt --verbose=1
  1186. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_49d7e.dir/HAVE_SYS_UN_H.c.o -o cmTC_49d7e
  1187. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1188. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h exist passed with the following output:
  1189. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1190. Run Build Command:"/usr/bin/make" "cmTC_4d3af/fast"
  1191. make -f CMakeFiles/cmTC_4d3af.dir/build.make CMakeFiles/cmTC_4d3af.dir/build
  1192. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1193. Building C object CMakeFiles/cmTC_4d3af.dir/HAVE_SYS_XATTR_H.c.o
  1194. /usr/bin/gcc -w -o CMakeFiles/cmTC_4d3af.dir/HAVE_SYS_XATTR_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_XATTR_H.c
  1195. Linking C executable cmTC_4d3af
  1196. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_4d3af.dir/link.txt --verbose=1
  1197. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_4d3af.dir/HAVE_SYS_XATTR_H.c.o -o cmTC_4d3af
  1198. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1199. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h exist passed with the following output:
  1200. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1201. Run Build Command:"/usr/bin/make" "cmTC_b199d/fast"
  1202. make -f CMakeFiles/cmTC_b199d.dir/build.make CMakeFiles/cmTC_b199d.dir/build
  1203. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1204. Building C object CMakeFiles/cmTC_b199d.dir/HAVE_ALLOCA_H.c.o
  1205. /usr/bin/gcc -w -o CMakeFiles/cmTC_b199d.dir/HAVE_ALLOCA_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_ALLOCA_H.c
  1206. Linking C executable cmTC_b199d
  1207. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b199d.dir/link.txt --verbose=1
  1208. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_b199d.dir/HAVE_ALLOCA_H.c.o -o cmTC_b199d
  1209. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1210. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h exist passed with the following output:
  1211. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1212. Run Build Command:"/usr/bin/make" "cmTC_92dd0/fast"
  1213. make -f CMakeFiles/cmTC_92dd0.dir/build.make CMakeFiles/cmTC_92dd0.dir/build
  1214. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1215. Building C object CMakeFiles/cmTC_92dd0.dir/HAVE_ARPA_INET_H.c.o
  1216. /usr/bin/gcc -w -o CMakeFiles/cmTC_92dd0.dir/HAVE_ARPA_INET_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_ARPA_INET_H.c
  1217. Linking C executable cmTC_92dd0
  1218. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_92dd0.dir/link.txt --verbose=1
  1219. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_92dd0.dir/HAVE_ARPA_INET_H.c.o -o cmTC_92dd0
  1220. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1221. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h exist passed with the following output:
  1222. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1223. Run Build Command:"/usr/bin/make" "cmTC_8cbf0/fast"
  1224. make -f CMakeFiles/cmTC_8cbf0.dir/build.make CMakeFiles/cmTC_8cbf0.dir/build
  1225. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1226. Building C object CMakeFiles/cmTC_8cbf0.dir/HAVE_ARPA_TFTP_H.c.o
  1227. /usr/bin/gcc -w -o CMakeFiles/cmTC_8cbf0.dir/HAVE_ARPA_TFTP_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_ARPA_TFTP_H.c
  1228. Linking C executable cmTC_8cbf0
  1229. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8cbf0.dir/link.txt --verbose=1
  1230. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_8cbf0.dir/HAVE_ARPA_TFTP_H.c.o -o cmTC_8cbf0
  1231. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1232. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h exist passed with the following output:
  1233. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1234. Run Build Command:"/usr/bin/make" "cmTC_88bd2/fast"
  1235. make -f CMakeFiles/cmTC_88bd2.dir/build.make CMakeFiles/cmTC_88bd2.dir/build
  1236. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1237. Building C object CMakeFiles/cmTC_88bd2.dir/HAVE_ASSERT_H.c.o
  1238. /usr/bin/gcc -w -o CMakeFiles/cmTC_88bd2.dir/HAVE_ASSERT_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_ASSERT_H.c
  1239. Linking C executable cmTC_88bd2
  1240. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_88bd2.dir/link.txt --verbose=1
  1241. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_88bd2.dir/HAVE_ASSERT_H.c.o -o cmTC_88bd2
  1242. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1243. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h exist passed with the following output:
  1244. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1245. Run Build Command:"/usr/bin/make" "cmTC_b7f05/fast"
  1246. make -f CMakeFiles/cmTC_b7f05.dir/build.make CMakeFiles/cmTC_b7f05.dir/build
  1247. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1248. Building C object CMakeFiles/cmTC_b7f05.dir/HAVE_ERR_H.c.o
  1249. /usr/bin/gcc -w -o CMakeFiles/cmTC_b7f05.dir/HAVE_ERR_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_ERR_H.c
  1250. Linking C executable cmTC_b7f05
  1251. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b7f05.dir/link.txt --verbose=1
  1252. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_b7f05.dir/HAVE_ERR_H.c.o -o cmTC_b7f05
  1253. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1254. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h exist passed with the following output:
  1255. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1256. Run Build Command:"/usr/bin/make" "cmTC_049f7/fast"
  1257. make -f CMakeFiles/cmTC_049f7.dir/build.make CMakeFiles/cmTC_049f7.dir/build
  1258. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1259. Building C object CMakeFiles/cmTC_049f7.dir/HAVE_ERRNO_H.c.o
  1260. /usr/bin/gcc -w -o CMakeFiles/cmTC_049f7.dir/HAVE_ERRNO_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_ERRNO_H.c
  1261. Linking C executable cmTC_049f7
  1262. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_049f7.dir/link.txt --verbose=1
  1263. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_049f7.dir/HAVE_ERRNO_H.c.o -o cmTC_049f7
  1264. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1265. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h exist passed with the following output:
  1266. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1267. Run Build Command:"/usr/bin/make" "cmTC_2f173/fast"
  1268. make -f CMakeFiles/cmTC_2f173.dir/build.make CMakeFiles/cmTC_2f173.dir/build
  1269. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1270. Building C object CMakeFiles/cmTC_2f173.dir/HAVE_FCNTL_H.c.o
  1271. /usr/bin/gcc -w -o CMakeFiles/cmTC_2f173.dir/HAVE_FCNTL_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_FCNTL_H.c
  1272. Linking C executable cmTC_2f173
  1273. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2f173.dir/link.txt --verbose=1
  1274. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_2f173.dir/HAVE_FCNTL_H.c.o -o cmTC_2f173
  1275. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1276. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h exist passed with the following output:
  1277. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1278. Run Build Command:"/usr/bin/make" "cmTC_49d83/fast"
  1279. make -f CMakeFiles/cmTC_49d83.dir/build.make CMakeFiles/cmTC_49d83.dir/build
  1280. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1281. Building C object CMakeFiles/cmTC_49d83.dir/HAVE_IFADDRS_H.c.o
  1282. /usr/bin/gcc -w -o CMakeFiles/cmTC_49d83.dir/HAVE_IFADDRS_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_IFADDRS_H.c
  1283. Linking C executable cmTC_49d83
  1284. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_49d83.dir/link.txt --verbose=1
  1285. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_49d83.dir/HAVE_IFADDRS_H.c.o -o cmTC_49d83
  1286. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1287. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h exist passed with the following output:
  1288. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1289. Run Build Command:"/usr/bin/make" "cmTC_a2924/fast"
  1290. make -f CMakeFiles/cmTC_a2924.dir/build.make CMakeFiles/cmTC_a2924.dir/build
  1291. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1292. Building C object CMakeFiles/cmTC_a2924.dir/HAVE_LIBGEN_H.c.o
  1293. /usr/bin/gcc -w -o CMakeFiles/cmTC_a2924.dir/HAVE_LIBGEN_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_LIBGEN_H.c
  1294. Linking C executable cmTC_a2924
  1295. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a2924.dir/link.txt --verbose=1
  1296. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_a2924.dir/HAVE_LIBGEN_H.c.o -o cmTC_a2924
  1297. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1298. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h exist passed with the following output:
  1299. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1300. Run Build Command:"/usr/bin/make" "cmTC_512d0/fast"
  1301. make -f CMakeFiles/cmTC_512d0.dir/build.make CMakeFiles/cmTC_512d0.dir/build
  1302. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1303. Building C object CMakeFiles/cmTC_512d0.dir/HAVE_LOCALE_H.c.o
  1304. /usr/bin/gcc -w -o CMakeFiles/cmTC_512d0.dir/HAVE_LOCALE_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_LOCALE_H.c
  1305. Linking C executable cmTC_512d0
  1306. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_512d0.dir/link.txt --verbose=1
  1307. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_512d0.dir/HAVE_LOCALE_H.c.o -o cmTC_512d0
  1308. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1309. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h exist passed with the following output:
  1310. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1311. Run Build Command:"/usr/bin/make" "cmTC_71d0f/fast"
  1312. make -f CMakeFiles/cmTC_71d0f.dir/build.make CMakeFiles/cmTC_71d0f.dir/build
  1313. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1314. Building C object CMakeFiles/cmTC_71d0f.dir/HAVE_NET_IF_H.c.o
  1315. /usr/bin/gcc -w -o CMakeFiles/cmTC_71d0f.dir/HAVE_NET_IF_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_NET_IF_H.c
  1316. Linking C executable cmTC_71d0f
  1317. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_71d0f.dir/link.txt --verbose=1
  1318. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_71d0f.dir/HAVE_NET_IF_H.c.o -o cmTC_71d0f
  1319. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1320. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h exist passed with the following output:
  1321. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1322. Run Build Command:"/usr/bin/make" "cmTC_85757/fast"
  1323. make -f CMakeFiles/cmTC_85757.dir/build.make CMakeFiles/cmTC_85757.dir/build
  1324. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1325. Building C object CMakeFiles/cmTC_85757.dir/HAVE_NETDB_H.c.o
  1326. /usr/bin/gcc -w -o CMakeFiles/cmTC_85757.dir/HAVE_NETDB_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_NETDB_H.c
  1327. Linking C executable cmTC_85757
  1328. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_85757.dir/link.txt --verbose=1
  1329. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_85757.dir/HAVE_NETDB_H.c.o -o cmTC_85757
  1330. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1331. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h exist passed with the following output:
  1332. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1333. Run Build Command:"/usr/bin/make" "cmTC_02ae7/fast"
  1334. make -f CMakeFiles/cmTC_02ae7.dir/build.make CMakeFiles/cmTC_02ae7.dir/build
  1335. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1336. Building C object CMakeFiles/cmTC_02ae7.dir/HAVE_NETINET_IN_H.c.o
  1337. /usr/bin/gcc -w -o CMakeFiles/cmTC_02ae7.dir/HAVE_NETINET_IN_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_NETINET_IN_H.c
  1338. Linking C executable cmTC_02ae7
  1339. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_02ae7.dir/link.txt --verbose=1
  1340. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_02ae7.dir/HAVE_NETINET_IN_H.c.o -o cmTC_02ae7
  1341. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1342. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h exist passed with the following output:
  1343. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1344. Run Build Command:"/usr/bin/make" "cmTC_54acd/fast"
  1345. make -f CMakeFiles/cmTC_54acd.dir/build.make CMakeFiles/cmTC_54acd.dir/build
  1346. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1347. Building C object CMakeFiles/cmTC_54acd.dir/HAVE_NETINET_TCP_H.c.o
  1348. /usr/bin/gcc -w -o CMakeFiles/cmTC_54acd.dir/HAVE_NETINET_TCP_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_NETINET_TCP_H.c
  1349. Linking C executable cmTC_54acd
  1350. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_54acd.dir/link.txt --verbose=1
  1351. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_54acd.dir/HAVE_NETINET_TCP_H.c.o -o cmTC_54acd
  1352. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1353. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h exist passed with the following output:
  1354. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1355. Run Build Command:"/usr/bin/make" "cmTC_eb341/fast"
  1356. make -f CMakeFiles/cmTC_eb341.dir/build.make CMakeFiles/cmTC_eb341.dir/build
  1357. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1358. Building C object CMakeFiles/cmTC_eb341.dir/HAVE_POLL_H.c.o
  1359. /usr/bin/gcc -w -o CMakeFiles/cmTC_eb341.dir/HAVE_POLL_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_POLL_H.c
  1360. Linking C executable cmTC_eb341
  1361. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_eb341.dir/link.txt --verbose=1
  1362. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_eb341.dir/HAVE_POLL_H.c.o -o cmTC_eb341
  1363. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1364. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h exist passed with the following output:
  1365. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1366. Run Build Command:"/usr/bin/make" "cmTC_c5955/fast"
  1367. make -f CMakeFiles/cmTC_c5955.dir/build.make CMakeFiles/cmTC_c5955.dir/build
  1368. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1369. Building C object CMakeFiles/cmTC_c5955.dir/HAVE_PWD_H.c.o
  1370. /usr/bin/gcc -w -o CMakeFiles/cmTC_c5955.dir/HAVE_PWD_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_PWD_H.c
  1371. Linking C executable cmTC_c5955
  1372. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c5955.dir/link.txt --verbose=1
  1373. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_c5955.dir/HAVE_PWD_H.c.o -o cmTC_c5955
  1374. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1375. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h exist passed with the following output:
  1376. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1377. Run Build Command:"/usr/bin/make" "cmTC_29a6b/fast"
  1378. make -f CMakeFiles/cmTC_29a6b.dir/build.make CMakeFiles/cmTC_29a6b.dir/build
  1379. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1380. Building C object CMakeFiles/cmTC_29a6b.dir/HAVE_SETJMP_H.c.o
  1381. /usr/bin/gcc -w -o CMakeFiles/cmTC_29a6b.dir/HAVE_SETJMP_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SETJMP_H.c
  1382. Linking C executable cmTC_29a6b
  1383. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_29a6b.dir/link.txt --verbose=1
  1384. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_29a6b.dir/HAVE_SETJMP_H.c.o -o cmTC_29a6b
  1385. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1386. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h exist passed with the following output:
  1387. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1388. Run Build Command:"/usr/bin/make" "cmTC_a2eef/fast"
  1389. make -f CMakeFiles/cmTC_a2eef.dir/build.make CMakeFiles/cmTC_a2eef.dir/build
  1390. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1391. Building C object CMakeFiles/cmTC_a2eef.dir/HAVE_SGTTY_H.c.o
  1392. /usr/bin/gcc -w -o CMakeFiles/cmTC_a2eef.dir/HAVE_SGTTY_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SGTTY_H.c
  1393. Linking C executable cmTC_a2eef
  1394. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a2eef.dir/link.txt --verbose=1
  1395. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_a2eef.dir/HAVE_SGTTY_H.c.o -o cmTC_a2eef
  1396. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1397. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h exist passed with the following output:
  1398. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1399. Run Build Command:"/usr/bin/make" "cmTC_a7378/fast"
  1400. make -f CMakeFiles/cmTC_a7378.dir/build.make CMakeFiles/cmTC_a7378.dir/build
  1401. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1402. Building C object CMakeFiles/cmTC_a7378.dir/HAVE_SIGNAL_H.c.o
  1403. /usr/bin/gcc -w -o CMakeFiles/cmTC_a7378.dir/HAVE_SIGNAL_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SIGNAL_H.c
  1404. Linking C executable cmTC_a7378
  1405. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a7378.dir/link.txt --verbose=1
  1406. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_a7378.dir/HAVE_SIGNAL_H.c.o -o cmTC_a7378
  1407. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1408. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h exist passed with the following output:
  1409. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1410. Run Build Command:"/usr/bin/make" "cmTC_904c7/fast"
  1411. make -f CMakeFiles/cmTC_904c7.dir/build.make CMakeFiles/cmTC_904c7.dir/build
  1412. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1413. Building C object CMakeFiles/cmTC_904c7.dir/HAVE_STDBOOL_H.c.o
  1414. /usr/bin/gcc -w -o CMakeFiles/cmTC_904c7.dir/HAVE_STDBOOL_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_STDBOOL_H.c
  1415. Linking C executable cmTC_904c7
  1416. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_904c7.dir/link.txt --verbose=1
  1417. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_904c7.dir/HAVE_STDBOOL_H.c.o -o cmTC_904c7
  1418. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1419. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h exist passed with the following output:
  1420. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1421. Run Build Command:"/usr/bin/make" "cmTC_2b35d/fast"
  1422. make -f CMakeFiles/cmTC_2b35d.dir/build.make CMakeFiles/cmTC_2b35d.dir/build
  1423. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1424. Building C object CMakeFiles/cmTC_2b35d.dir/HAVE_STDINT_H.c.o
  1425. /usr/bin/gcc -w -o CMakeFiles/cmTC_2b35d.dir/HAVE_STDINT_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_STDINT_H.c
  1426. Linking C executable cmTC_2b35d
  1427. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2b35d.dir/link.txt --verbose=1
  1428. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_2b35d.dir/HAVE_STDINT_H.c.o -o cmTC_2b35d
  1429. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1430. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h exist passed with the following output:
  1431. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1432. Run Build Command:"/usr/bin/make" "cmTC_b367e/fast"
  1433. make -f CMakeFiles/cmTC_b367e.dir/build.make CMakeFiles/cmTC_b367e.dir/build
  1434. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1435. Building C object CMakeFiles/cmTC_b367e.dir/HAVE_STDLIB_H.c.o
  1436. /usr/bin/gcc -w -o CMakeFiles/cmTC_b367e.dir/HAVE_STDLIB_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_STDLIB_H.c
  1437. Linking C executable cmTC_b367e
  1438. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b367e.dir/link.txt --verbose=1
  1439. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_b367e.dir/HAVE_STDLIB_H.c.o -o cmTC_b367e
  1440. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1441. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h exist passed with the following output:
  1442. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1443. Run Build Command:"/usr/bin/make" "cmTC_127b8/fast"
  1444. make -f CMakeFiles/cmTC_127b8.dir/build.make CMakeFiles/cmTC_127b8.dir/build
  1445. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1446. Building C object CMakeFiles/cmTC_127b8.dir/HAVE_STRING_H.c.o
  1447. /usr/bin/gcc -w -o CMakeFiles/cmTC_127b8.dir/HAVE_STRING_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_STRING_H.c
  1448. Linking C executable cmTC_127b8
  1449. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_127b8.dir/link.txt --verbose=1
  1450. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_127b8.dir/HAVE_STRING_H.c.o -o cmTC_127b8
  1451. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1452. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h exist passed with the following output:
  1453. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1454. Run Build Command:"/usr/bin/make" "cmTC_8bbc9/fast"
  1455. make -f CMakeFiles/cmTC_8bbc9.dir/build.make CMakeFiles/cmTC_8bbc9.dir/build
  1456. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1457. Building C object CMakeFiles/cmTC_8bbc9.dir/HAVE_STRINGS_H.c.o
  1458. /usr/bin/gcc -w -o CMakeFiles/cmTC_8bbc9.dir/HAVE_STRINGS_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_STRINGS_H.c
  1459. Linking C executable cmTC_8bbc9
  1460. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8bbc9.dir/link.txt --verbose=1
  1461. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_8bbc9.dir/HAVE_STRINGS_H.c.o -o cmTC_8bbc9
  1462. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1463. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h exist passed with the following output:
  1464. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1465. Run Build Command:"/usr/bin/make" "cmTC_e2edb/fast"
  1466. make -f CMakeFiles/cmTC_e2edb.dir/build.make CMakeFiles/cmTC_e2edb.dir/build
  1467. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1468. Building C object CMakeFiles/cmTC_e2edb.dir/HAVE_STROPTS_H.c.o
  1469. /usr/bin/gcc -w -o CMakeFiles/cmTC_e2edb.dir/HAVE_STROPTS_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_STROPTS_H.c
  1470. Linking C executable cmTC_e2edb
  1471. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e2edb.dir/link.txt --verbose=1
  1472. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_e2edb.dir/HAVE_STROPTS_H.c.o -o cmTC_e2edb
  1473. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1474. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h exist passed with the following output:
  1475. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1476. Run Build Command:"/usr/bin/make" "cmTC_5ecba/fast"
  1477. make -f CMakeFiles/cmTC_5ecba.dir/build.make CMakeFiles/cmTC_5ecba.dir/build
  1478. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1479. Building C object CMakeFiles/cmTC_5ecba.dir/HAVE_TERMIO_H.c.o
  1480. /usr/bin/gcc -w -o CMakeFiles/cmTC_5ecba.dir/HAVE_TERMIO_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_TERMIO_H.c
  1481. Linking C executable cmTC_5ecba
  1482. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_5ecba.dir/link.txt --verbose=1
  1483. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_5ecba.dir/HAVE_TERMIO_H.c.o -o cmTC_5ecba
  1484. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1485. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h exist passed with the following output:
  1486. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1487. Run Build Command:"/usr/bin/make" "cmTC_8d5e9/fast"
  1488. make -f CMakeFiles/cmTC_8d5e9.dir/build.make CMakeFiles/cmTC_8d5e9.dir/build
  1489. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1490. Building C object CMakeFiles/cmTC_8d5e9.dir/HAVE_TERMIOS_H.c.o
  1491. /usr/bin/gcc -w -o CMakeFiles/cmTC_8d5e9.dir/HAVE_TERMIOS_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_TERMIOS_H.c
  1492. Linking C executable cmTC_8d5e9
  1493. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8d5e9.dir/link.txt --verbose=1
  1494. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_8d5e9.dir/HAVE_TERMIOS_H.c.o -o cmTC_8d5e9
  1495. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1496. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h exist passed with the following output:
  1497. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1498. Run Build Command:"/usr/bin/make" "cmTC_bbe1c/fast"
  1499. make -f CMakeFiles/cmTC_bbe1c.dir/build.make CMakeFiles/cmTC_bbe1c.dir/build
  1500. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1501. Building C object CMakeFiles/cmTC_bbe1c.dir/HAVE_TIME_H.c.o
  1502. /usr/bin/gcc -w -o CMakeFiles/cmTC_bbe1c.dir/HAVE_TIME_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_TIME_H.c
  1503. Linking C executable cmTC_bbe1c
  1504. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_bbe1c.dir/link.txt --verbose=1
  1505. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_bbe1c.dir/HAVE_TIME_H.c.o -o cmTC_bbe1c
  1506. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1507. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;unistd.h exist passed with the following output:
  1508. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1509. Run Build Command:"/usr/bin/make" "cmTC_43eb4/fast"
  1510. make -f CMakeFiles/cmTC_43eb4.dir/build.make CMakeFiles/cmTC_43eb4.dir/build
  1511. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1512. Building C object CMakeFiles/cmTC_43eb4.dir/HAVE_UNISTD_H.c.o
  1513. /usr/bin/gcc -w -o CMakeFiles/cmTC_43eb4.dir/HAVE_UNISTD_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_UNISTD_H.c
  1514. Linking C executable cmTC_43eb4
  1515. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_43eb4.dir/link.txt --verbose=1
  1516. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_43eb4.dir/HAVE_UNISTD_H.c.o -o cmTC_43eb4
  1517. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1518. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;unistd.h;utime.h exist passed with the following output:
  1519. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1520. Run Build Command:"/usr/bin/make" "cmTC_93d6c/fast"
  1521. make -f CMakeFiles/cmTC_93d6c.dir/build.make CMakeFiles/cmTC_93d6c.dir/build
  1522. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1523. Building C object CMakeFiles/cmTC_93d6c.dir/HAVE_UTIME_H.c.o
  1524. /usr/bin/gcc -w -o CMakeFiles/cmTC_93d6c.dir/HAVE_UTIME_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_UTIME_H.c
  1525. Linking C executable cmTC_93d6c
  1526. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_93d6c.dir/link.txt --verbose=1
  1527. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_93d6c.dir/HAVE_UTIME_H.c.o -o cmTC_93d6c
  1528. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1529. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;unistd.h;utime.h;stddef.h exist passed with the following output:
  1530. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1531. Run Build Command:"/usr/bin/make" "cmTC_56b23/fast"
  1532. make -f CMakeFiles/cmTC_56b23.dir/build.make CMakeFiles/cmTC_56b23.dir/build
  1533. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1534. Building C object CMakeFiles/cmTC_56b23.dir/HAVE_STDDEF_H.c.o
  1535. /usr/bin/gcc -w -o CMakeFiles/cmTC_56b23.dir/HAVE_STDDEF_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_STDDEF_H.c
  1536. Linking C executable cmTC_56b23
  1537. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_56b23.dir/link.txt --verbose=1
  1538. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_56b23.dir/HAVE_STDDEF_H.c.o -o cmTC_56b23
  1539. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1540. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;unistd.h;utime.h;stddef.h;dlfcn.h exist passed with the following output:
  1541. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1542. Run Build Command:"/usr/bin/make" "cmTC_11183/fast"
  1543. make -f CMakeFiles/cmTC_11183.dir/build.make CMakeFiles/cmTC_11183.dir/build
  1544. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1545. Building C object CMakeFiles/cmTC_11183.dir/HAVE_DLFCN_H.c.o
  1546. /usr/bin/gcc -w -o CMakeFiles/cmTC_11183.dir/HAVE_DLFCN_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_DLFCN_H.c
  1547. Linking C executable cmTC_11183
  1548. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_11183.dir/link.txt --verbose=1
  1549. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_11183.dir/HAVE_DLFCN_H.c.o -o cmTC_11183
  1550. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1551. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;unistd.h;utime.h;stddef.h;dlfcn.h;malloc.h exist passed with the following output:
  1552. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1553. Run Build Command:"/usr/bin/make" "cmTC_8e3ef/fast"
  1554. make -f CMakeFiles/cmTC_8e3ef.dir/build.make CMakeFiles/cmTC_8e3ef.dir/build
  1555. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1556. Building C object CMakeFiles/cmTC_8e3ef.dir/HAVE_MALLOC_H.c.o
  1557. /usr/bin/gcc -w -o CMakeFiles/cmTC_8e3ef.dir/HAVE_MALLOC_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_MALLOC_H.c
  1558. Linking C executable cmTC_8e3ef
  1559. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8e3ef.dir/link.txt --verbose=1
  1560. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_8e3ef.dir/HAVE_MALLOC_H.c.o -o cmTC_8e3ef
  1561. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1562. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;unistd.h;utime.h;stddef.h;dlfcn.h;malloc.h;memory.h exist passed with the following output:
  1563. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1564. Run Build Command:"/usr/bin/make" "cmTC_75979/fast"
  1565. make -f CMakeFiles/cmTC_75979.dir/build.make CMakeFiles/cmTC_75979.dir/build
  1566. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1567. Building C object CMakeFiles/cmTC_75979.dir/HAVE_MEMORY_H.c.o
  1568. /usr/bin/gcc -w -o CMakeFiles/cmTC_75979.dir/HAVE_MEMORY_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_MEMORY_H.c
  1569. Linking C executable cmTC_75979
  1570. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_75979.dir/link.txt --verbose=1
  1571. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_75979.dir/HAVE_MEMORY_H.c.o -o cmTC_75979
  1572. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1573. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;unistd.h;utime.h;stddef.h;dlfcn.h;malloc.h;memory.h;netinet/if_ether.h exist passed with the following output:
  1574. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1575. Run Build Command:"/usr/bin/make" "cmTC_d17e8/fast"
  1576. make -f CMakeFiles/cmTC_d17e8.dir/build.make CMakeFiles/cmTC_d17e8.dir/build
  1577. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1578. Building C object CMakeFiles/cmTC_d17e8.dir/HAVE_NETINET_IF_ETHER_H.c.o
  1579. /usr/bin/gcc -w -o CMakeFiles/cmTC_d17e8.dir/HAVE_NETINET_IF_ETHER_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_NETINET_IF_ETHER_H.c
  1580. Linking C executable cmTC_d17e8
  1581. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d17e8.dir/link.txt --verbose=1
  1582. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_d17e8.dir/HAVE_NETINET_IF_ETHER_H.c.o -o cmTC_d17e8
  1583. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1584. Determining if files stdio.h;inttypes.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/resource.h;sys/select.h;sys/socket.h;sys/stat.h;sys/time.h;sys/types.h;sys/uio.h;sys/un.h;sys/xattr.h;alloca.h;arpa/inet.h;arpa/tftp.h;assert.h;err.h;errno.h;fcntl.h;ifaddrs.h;libgen.h;locale.h;net/if.h;netdb.h;netinet/in.h;netinet/tcp.h;poll.h;pwd.h;setjmp.h;sgtty.h;signal.h;stdbool.h;stdint.h;stdio.h;stdlib.h;string.h;strings.h;stropts.h;termio.h;termios.h;time.h;unistd.h;utime.h;stddef.h;dlfcn.h;malloc.h;memory.h;netinet/if_ether.h;stdint.h;sys/utsname.h exist passed with the following output:
  1585. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1586. Run Build Command:"/usr/bin/make" "cmTC_c6e7d/fast"
  1587. make -f CMakeFiles/cmTC_c6e7d.dir/build.make CMakeFiles/cmTC_c6e7d.dir/build
  1588. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1589. Building C object CMakeFiles/cmTC_c6e7d.dir/HAVE_SYS_UTSNAME_H.c.o
  1590. /usr/bin/gcc -w -o CMakeFiles/cmTC_c6e7d.dir/HAVE_SYS_UTSNAME_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_UTSNAME_H.c
  1591. Linking C executable cmTC_c6e7d
  1592. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c6e7d.dir/link.txt --verbose=1
  1593. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_c6e7d.dir/HAVE_SYS_UTSNAME_H.c.o -o cmTC_c6e7d
  1594. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1595. Determining size of size_t passed with the following output:
  1596. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1597. Run Build Command:"/usr/bin/make" "cmTC_96696/fast"
  1598. make -f CMakeFiles/cmTC_96696.dir/build.make CMakeFiles/cmTC_96696.dir/build
  1599. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1600. Building C object CMakeFiles/cmTC_96696.dir/SIZEOF_SIZE_T.c.o
  1601. /usr/bin/gcc -w -o CMakeFiles/cmTC_96696.dir/SIZEOF_SIZE_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZEOF_SIZE_T.c
  1602. Linking C executable cmTC_96696
  1603. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_96696.dir/link.txt --verbose=1
  1604. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_96696.dir/SIZEOF_SIZE_T.c.o -o cmTC_96696
  1605. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1606. Determining size of ssize_t passed with the following output:
  1607. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1608. Run Build Command:"/usr/bin/make" "cmTC_98f19/fast"
  1609. make -f CMakeFiles/cmTC_98f19.dir/build.make CMakeFiles/cmTC_98f19.dir/build
  1610. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1611. Building C object CMakeFiles/cmTC_98f19.dir/SIZEOF_SSIZE_T.c.o
  1612. /usr/bin/gcc -w -o CMakeFiles/cmTC_98f19.dir/SIZEOF_SSIZE_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZEOF_SSIZE_T.c
  1613. Linking C executable cmTC_98f19
  1614. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_98f19.dir/link.txt --verbose=1
  1615. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_98f19.dir/SIZEOF_SSIZE_T.c.o -o cmTC_98f19
  1616. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1617. Determining size of long long passed with the following output:
  1618. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1619. Run Build Command:"/usr/bin/make" "cmTC_7be0d/fast"
  1620. make -f CMakeFiles/cmTC_7be0d.dir/build.make CMakeFiles/cmTC_7be0d.dir/build
  1621. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1622. Building C object CMakeFiles/cmTC_7be0d.dir/SIZEOF_LONG_LONG.c.o
  1623. /usr/bin/gcc -w -o CMakeFiles/cmTC_7be0d.dir/SIZEOF_LONG_LONG.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZEOF_LONG_LONG.c
  1624. Linking C executable cmTC_7be0d
  1625. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7be0d.dir/link.txt --verbose=1
  1626. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_7be0d.dir/SIZEOF_LONG_LONG.c.o -o cmTC_7be0d
  1627. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1628. Determining size of long passed with the following output:
  1629. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1630. Run Build Command:"/usr/bin/make" "cmTC_0b7f4/fast"
  1631. make -f CMakeFiles/cmTC_0b7f4.dir/build.make CMakeFiles/cmTC_0b7f4.dir/build
  1632. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1633. Building C object CMakeFiles/cmTC_0b7f4.dir/SIZEOF_LONG.c.o
  1634. /usr/bin/gcc -w -o CMakeFiles/cmTC_0b7f4.dir/SIZEOF_LONG.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZEOF_LONG.c
  1635. Linking C executable cmTC_0b7f4
  1636. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0b7f4.dir/link.txt --verbose=1
  1637. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_0b7f4.dir/SIZEOF_LONG.c.o -o cmTC_0b7f4
  1638. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1639. Determining size of short passed with the following output:
  1640. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1641. Run Build Command:"/usr/bin/make" "cmTC_8f5b0/fast"
  1642. make -f CMakeFiles/cmTC_8f5b0.dir/build.make CMakeFiles/cmTC_8f5b0.dir/build
  1643. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1644. Building C object CMakeFiles/cmTC_8f5b0.dir/SIZEOF_SHORT.c.o
  1645. /usr/bin/gcc -w -o CMakeFiles/cmTC_8f5b0.dir/SIZEOF_SHORT.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZEOF_SHORT.c
  1646. Linking C executable cmTC_8f5b0
  1647. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8f5b0.dir/link.txt --verbose=1
  1648. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_8f5b0.dir/SIZEOF_SHORT.c.o -o cmTC_8f5b0
  1649. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1650. Determining size of int passed with the following output:
  1651. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1652. Run Build Command:"/usr/bin/make" "cmTC_52696/fast"
  1653. make -f CMakeFiles/cmTC_52696.dir/build.make CMakeFiles/cmTC_52696.dir/build
  1654. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1655. Building C object CMakeFiles/cmTC_52696.dir/SIZEOF_INT.c.o
  1656. /usr/bin/gcc -w -o CMakeFiles/cmTC_52696.dir/SIZEOF_INT.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZEOF_INT.c
  1657. Linking C executable cmTC_52696
  1658. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_52696.dir/link.txt --verbose=1
  1659. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_52696.dir/SIZEOF_INT.c.o -o cmTC_52696
  1660. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1661. Determining size of time_t passed with the following output:
  1662. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1663. Run Build Command:"/usr/bin/make" "cmTC_9c61d/fast"
  1664. make -f CMakeFiles/cmTC_9c61d.dir/build.make CMakeFiles/cmTC_9c61d.dir/build
  1665. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1666. Building C object CMakeFiles/cmTC_9c61d.dir/SIZEOF_TIME_T.c.o
  1667. /usr/bin/gcc -w -o CMakeFiles/cmTC_9c61d.dir/SIZEOF_TIME_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZEOF_TIME_T.c
  1668. Linking C executable cmTC_9c61d
  1669. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9c61d.dir/link.txt --verbose=1
  1670. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_9c61d.dir/SIZEOF_TIME_T.c.o -o cmTC_9c61d
  1671. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1672. Determining if the basename exist passed with the following output:
  1673. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1674. Run Build Command:"/usr/bin/make" "cmTC_2eb94/fast"
  1675. make -f CMakeFiles/cmTC_2eb94.dir/build.make CMakeFiles/cmTC_2eb94.dir/build
  1676. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1677. Building C object CMakeFiles/cmTC_2eb94.dir/CheckSymbolExists.c.o
  1678. /usr/bin/gcc -w -o CMakeFiles/cmTC_2eb94.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  1679. Linking C executable cmTC_2eb94
  1680. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2eb94.dir/link.txt --verbose=1
  1681. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_2eb94.dir/CheckSymbolExists.c.o -o cmTC_2eb94
  1682. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1683. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  1684. /* */
  1685. #include <stdio.h>
  1686. #include <inttypes.h>
  1687. #include <sys/ioctl.h>
  1688. #include <sys/param.h>
  1689. #include <sys/poll.h>
  1690. #include <sys/resource.h>
  1691. #include <sys/select.h>
  1692. #include <sys/socket.h>
  1693. #include <sys/stat.h>
  1694. #include <sys/time.h>
  1695. #include <sys/types.h>
  1696. #include <sys/uio.h>
  1697. #include <sys/un.h>
  1698. #include <sys/xattr.h>
  1699. #include <alloca.h>
  1700. #include <arpa/inet.h>
  1701. #include <arpa/tftp.h>
  1702. #include <assert.h>
  1703. #include <err.h>
  1704. #include <errno.h>
  1705. #include <fcntl.h>
  1706. #include <ifaddrs.h>
  1707. #include <libgen.h>
  1708. #include <locale.h>
  1709. #include <net/if.h>
  1710. #include <netdb.h>
  1711. #include <netinet/in.h>
  1712. #include <netinet/tcp.h>
  1713. #include <poll.h>
  1714. #include <pwd.h>
  1715. #include <setjmp.h>
  1716. #include <sgtty.h>
  1717. #include <signal.h>
  1718. #include <stdbool.h>
  1719. #include <stdint.h>
  1720. #include <stdio.h>
  1721. #include <stdlib.h>
  1722. #include <string.h>
  1723. #include <strings.h>
  1724. #include <stropts.h>
  1725. #include <termio.h>
  1726. #include <termios.h>
  1727. #include <time.h>
  1728. #include <unistd.h>
  1729. #include <utime.h>
  1730. #include <stddef.h>
  1731. #include <dlfcn.h>
  1732. #include <malloc.h>
  1733. #include <memory.h>
  1734. #include <netinet/if_ether.h>
  1735. #include <stdint.h>
  1736. #include <sys/utsname.h>
  1737. int main(int argc, char** argv)
  1738. {
  1739. (void)argv;
  1740. #ifndef basename
  1741. return ((int*)(&basename))[argc];
  1742. #else
  1743. (void)argc;
  1744. return 0;
  1745. #endif
  1746. }
  1747. Determining if the socket exist passed with the following output:
  1748. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1749. Run Build Command:"/usr/bin/make" "cmTC_c4cf5/fast"
  1750. make -f CMakeFiles/cmTC_c4cf5.dir/build.make CMakeFiles/cmTC_c4cf5.dir/build
  1751. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1752. Building C object CMakeFiles/cmTC_c4cf5.dir/CheckSymbolExists.c.o
  1753. /usr/bin/gcc -w -o CMakeFiles/cmTC_c4cf5.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  1754. Linking C executable cmTC_c4cf5
  1755. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c4cf5.dir/link.txt --verbose=1
  1756. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_c4cf5.dir/CheckSymbolExists.c.o -o cmTC_c4cf5
  1757. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1758. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  1759. /* */
  1760. #include <stdio.h>
  1761. #include <inttypes.h>
  1762. #include <sys/ioctl.h>
  1763. #include <sys/param.h>
  1764. #include <sys/poll.h>
  1765. #include <sys/resource.h>
  1766. #include <sys/select.h>
  1767. #include <sys/socket.h>
  1768. #include <sys/stat.h>
  1769. #include <sys/time.h>
  1770. #include <sys/types.h>
  1771. #include <sys/uio.h>
  1772. #include <sys/un.h>
  1773. #include <sys/xattr.h>
  1774. #include <alloca.h>
  1775. #include <arpa/inet.h>
  1776. #include <arpa/tftp.h>
  1777. #include <assert.h>
  1778. #include <err.h>
  1779. #include <errno.h>
  1780. #include <fcntl.h>
  1781. #include <ifaddrs.h>
  1782. #include <libgen.h>
  1783. #include <locale.h>
  1784. #include <net/if.h>
  1785. #include <netdb.h>
  1786. #include <netinet/in.h>
  1787. #include <netinet/tcp.h>
  1788. #include <poll.h>
  1789. #include <pwd.h>
  1790. #include <setjmp.h>
  1791. #include <sgtty.h>
  1792. #include <signal.h>
  1793. #include <stdbool.h>
  1794. #include <stdint.h>
  1795. #include <stdio.h>
  1796. #include <stdlib.h>
  1797. #include <string.h>
  1798. #include <strings.h>
  1799. #include <stropts.h>
  1800. #include <termio.h>
  1801. #include <termios.h>
  1802. #include <time.h>
  1803. #include <unistd.h>
  1804. #include <utime.h>
  1805. #include <stddef.h>
  1806. #include <dlfcn.h>
  1807. #include <malloc.h>
  1808. #include <memory.h>
  1809. #include <netinet/if_ether.h>
  1810. #include <stdint.h>
  1811. #include <sys/utsname.h>
  1812. int main(int argc, char** argv)
  1813. {
  1814. (void)argv;
  1815. #ifndef socket
  1816. return ((int*)(&socket))[argc];
  1817. #else
  1818. (void)argc;
  1819. return 0;
  1820. #endif
  1821. }
  1822. Determining if the poll exist passed with the following output:
  1823. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1824. Run Build Command:"/usr/bin/make" "cmTC_970b4/fast"
  1825. make -f CMakeFiles/cmTC_970b4.dir/build.make CMakeFiles/cmTC_970b4.dir/build
  1826. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1827. Building C object CMakeFiles/cmTC_970b4.dir/CheckSymbolExists.c.o
  1828. /usr/bin/gcc -w -o CMakeFiles/cmTC_970b4.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  1829. Linking C executable cmTC_970b4
  1830. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_970b4.dir/link.txt --verbose=1
  1831. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_970b4.dir/CheckSymbolExists.c.o -o cmTC_970b4
  1832. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1833. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  1834. /* */
  1835. #include <stdio.h>
  1836. #include <inttypes.h>
  1837. #include <sys/ioctl.h>
  1838. #include <sys/param.h>
  1839. #include <sys/poll.h>
  1840. #include <sys/resource.h>
  1841. #include <sys/select.h>
  1842. #include <sys/socket.h>
  1843. #include <sys/stat.h>
  1844. #include <sys/time.h>
  1845. #include <sys/types.h>
  1846. #include <sys/uio.h>
  1847. #include <sys/un.h>
  1848. #include <sys/xattr.h>
  1849. #include <alloca.h>
  1850. #include <arpa/inet.h>
  1851. #include <arpa/tftp.h>
  1852. #include <assert.h>
  1853. #include <err.h>
  1854. #include <errno.h>
  1855. #include <fcntl.h>
  1856. #include <ifaddrs.h>
  1857. #include <libgen.h>
  1858. #include <locale.h>
  1859. #include <net/if.h>
  1860. #include <netdb.h>
  1861. #include <netinet/in.h>
  1862. #include <netinet/tcp.h>
  1863. #include <poll.h>
  1864. #include <pwd.h>
  1865. #include <setjmp.h>
  1866. #include <sgtty.h>
  1867. #include <signal.h>
  1868. #include <stdbool.h>
  1869. #include <stdint.h>
  1870. #include <stdio.h>
  1871. #include <stdlib.h>
  1872. #include <string.h>
  1873. #include <strings.h>
  1874. #include <stropts.h>
  1875. #include <termio.h>
  1876. #include <termios.h>
  1877. #include <time.h>
  1878. #include <unistd.h>
  1879. #include <utime.h>
  1880. #include <stddef.h>
  1881. #include <dlfcn.h>
  1882. #include <malloc.h>
  1883. #include <memory.h>
  1884. #include <netinet/if_ether.h>
  1885. #include <stdint.h>
  1886. #include <sys/utsname.h>
  1887. int main(int argc, char** argv)
  1888. {
  1889. (void)argv;
  1890. #ifndef poll
  1891. return ((int*)(&poll))[argc];
  1892. #else
  1893. (void)argc;
  1894. return 0;
  1895. #endif
  1896. }
  1897. Determining if the select exist passed with the following output:
  1898. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1899. Run Build Command:"/usr/bin/make" "cmTC_0e5d4/fast"
  1900. make -f CMakeFiles/cmTC_0e5d4.dir/build.make CMakeFiles/cmTC_0e5d4.dir/build
  1901. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1902. Building C object CMakeFiles/cmTC_0e5d4.dir/CheckSymbolExists.c.o
  1903. /usr/bin/gcc -w -o CMakeFiles/cmTC_0e5d4.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  1904. Linking C executable cmTC_0e5d4
  1905. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0e5d4.dir/link.txt --verbose=1
  1906. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_0e5d4.dir/CheckSymbolExists.c.o -o cmTC_0e5d4
  1907. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1908. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  1909. /* */
  1910. #include <stdio.h>
  1911. #include <inttypes.h>
  1912. #include <sys/ioctl.h>
  1913. #include <sys/param.h>
  1914. #include <sys/poll.h>
  1915. #include <sys/resource.h>
  1916. #include <sys/select.h>
  1917. #include <sys/socket.h>
  1918. #include <sys/stat.h>
  1919. #include <sys/time.h>
  1920. #include <sys/types.h>
  1921. #include <sys/uio.h>
  1922. #include <sys/un.h>
  1923. #include <sys/xattr.h>
  1924. #include <alloca.h>
  1925. #include <arpa/inet.h>
  1926. #include <arpa/tftp.h>
  1927. #include <assert.h>
  1928. #include <err.h>
  1929. #include <errno.h>
  1930. #include <fcntl.h>
  1931. #include <ifaddrs.h>
  1932. #include <libgen.h>
  1933. #include <locale.h>
  1934. #include <net/if.h>
  1935. #include <netdb.h>
  1936. #include <netinet/in.h>
  1937. #include <netinet/tcp.h>
  1938. #include <poll.h>
  1939. #include <pwd.h>
  1940. #include <setjmp.h>
  1941. #include <sgtty.h>
  1942. #include <signal.h>
  1943. #include <stdbool.h>
  1944. #include <stdint.h>
  1945. #include <stdio.h>
  1946. #include <stdlib.h>
  1947. #include <string.h>
  1948. #include <strings.h>
  1949. #include <stropts.h>
  1950. #include <termio.h>
  1951. #include <termios.h>
  1952. #include <time.h>
  1953. #include <unistd.h>
  1954. #include <utime.h>
  1955. #include <stddef.h>
  1956. #include <dlfcn.h>
  1957. #include <malloc.h>
  1958. #include <memory.h>
  1959. #include <netinet/if_ether.h>
  1960. #include <stdint.h>
  1961. #include <sys/utsname.h>
  1962. int main(int argc, char** argv)
  1963. {
  1964. (void)argv;
  1965. #ifndef select
  1966. return ((int*)(&select))[argc];
  1967. #else
  1968. (void)argc;
  1969. return 0;
  1970. #endif
  1971. }
  1972. Determining if the strdup exist passed with the following output:
  1973. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  1974. Run Build Command:"/usr/bin/make" "cmTC_febc6/fast"
  1975. make -f CMakeFiles/cmTC_febc6.dir/build.make CMakeFiles/cmTC_febc6.dir/build
  1976. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1977. Building C object CMakeFiles/cmTC_febc6.dir/CheckSymbolExists.c.o
  1978. /usr/bin/gcc -w -o CMakeFiles/cmTC_febc6.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  1979. Linking C executable cmTC_febc6
  1980. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_febc6.dir/link.txt --verbose=1
  1981. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_febc6.dir/CheckSymbolExists.c.o -o cmTC_febc6
  1982. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  1983. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  1984. /* */
  1985. #include <stdio.h>
  1986. #include <inttypes.h>
  1987. #include <sys/ioctl.h>
  1988. #include <sys/param.h>
  1989. #include <sys/poll.h>
  1990. #include <sys/resource.h>
  1991. #include <sys/select.h>
  1992. #include <sys/socket.h>
  1993. #include <sys/stat.h>
  1994. #include <sys/time.h>
  1995. #include <sys/types.h>
  1996. #include <sys/uio.h>
  1997. #include <sys/un.h>
  1998. #include <sys/xattr.h>
  1999. #include <alloca.h>
  2000. #include <arpa/inet.h>
  2001. #include <arpa/tftp.h>
  2002. #include <assert.h>
  2003. #include <err.h>
  2004. #include <errno.h>
  2005. #include <fcntl.h>
  2006. #include <ifaddrs.h>
  2007. #include <libgen.h>
  2008. #include <locale.h>
  2009. #include <net/if.h>
  2010. #include <netdb.h>
  2011. #include <netinet/in.h>
  2012. #include <netinet/tcp.h>
  2013. #include <poll.h>
  2014. #include <pwd.h>
  2015. #include <setjmp.h>
  2016. #include <sgtty.h>
  2017. #include <signal.h>
  2018. #include <stdbool.h>
  2019. #include <stdint.h>
  2020. #include <stdio.h>
  2021. #include <stdlib.h>
  2022. #include <string.h>
  2023. #include <strings.h>
  2024. #include <stropts.h>
  2025. #include <termio.h>
  2026. #include <termios.h>
  2027. #include <time.h>
  2028. #include <unistd.h>
  2029. #include <utime.h>
  2030. #include <stddef.h>
  2031. #include <dlfcn.h>
  2032. #include <malloc.h>
  2033. #include <memory.h>
  2034. #include <netinet/if_ether.h>
  2035. #include <stdint.h>
  2036. #include <sys/utsname.h>
  2037. int main(int argc, char** argv)
  2038. {
  2039. (void)argv;
  2040. #ifndef strdup
  2041. return ((int*)(&strdup))[argc];
  2042. #else
  2043. (void)argc;
  2044. return 0;
  2045. #endif
  2046. }
  2047. Determining if the strstr exist passed with the following output:
  2048. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  2049. Run Build Command:"/usr/bin/make" "cmTC_fc656/fast"
  2050. make -f CMakeFiles/cmTC_fc656.dir/build.make CMakeFiles/cmTC_fc656.dir/build
  2051. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2052. Building C object CMakeFiles/cmTC_fc656.dir/CheckSymbolExists.c.o
  2053. /usr/bin/gcc -w -o CMakeFiles/cmTC_fc656.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  2054. Linking C executable cmTC_fc656
  2055. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_fc656.dir/link.txt --verbose=1
  2056. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_fc656.dir/CheckSymbolExists.c.o -o cmTC_fc656
  2057. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2058. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  2059. /* */
  2060. #include <stdio.h>
  2061. #include <inttypes.h>
  2062. #include <sys/ioctl.h>
  2063. #include <sys/param.h>
  2064. #include <sys/poll.h>
  2065. #include <sys/resource.h>
  2066. #include <sys/select.h>
  2067. #include <sys/socket.h>
  2068. #include <sys/stat.h>
  2069. #include <sys/time.h>
  2070. #include <sys/types.h>
  2071. #include <sys/uio.h>
  2072. #include <sys/un.h>
  2073. #include <sys/xattr.h>
  2074. #include <alloca.h>
  2075. #include <arpa/inet.h>
  2076. #include <arpa/tftp.h>
  2077. #include <assert.h>
  2078. #include <err.h>
  2079. #include <errno.h>
  2080. #include <fcntl.h>
  2081. #include <ifaddrs.h>
  2082. #include <libgen.h>
  2083. #include <locale.h>
  2084. #include <net/if.h>
  2085. #include <netdb.h>
  2086. #include <netinet/in.h>
  2087. #include <netinet/tcp.h>
  2088. #include <poll.h>
  2089. #include <pwd.h>
  2090. #include <setjmp.h>
  2091. #include <sgtty.h>
  2092. #include <signal.h>
  2093. #include <stdbool.h>
  2094. #include <stdint.h>
  2095. #include <stdio.h>
  2096. #include <stdlib.h>
  2097. #include <string.h>
  2098. #include <strings.h>
  2099. #include <stropts.h>
  2100. #include <termio.h>
  2101. #include <termios.h>
  2102. #include <time.h>
  2103. #include <unistd.h>
  2104. #include <utime.h>
  2105. #include <stddef.h>
  2106. #include <dlfcn.h>
  2107. #include <malloc.h>
  2108. #include <memory.h>
  2109. #include <netinet/if_ether.h>
  2110. #include <stdint.h>
  2111. #include <sys/utsname.h>
  2112. int main(int argc, char** argv)
  2113. {
  2114. (void)argv;
  2115. #ifndef strstr
  2116. return ((int*)(&strstr))[argc];
  2117. #else
  2118. (void)argc;
  2119. return 0;
  2120. #endif
  2121. }
  2122. Determining if the strtok_r exist passed with the following output:
  2123. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  2124. Run Build Command:"/usr/bin/make" "cmTC_508ae/fast"
  2125. make -f CMakeFiles/cmTC_508ae.dir/build.make CMakeFiles/cmTC_508ae.dir/build
  2126. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2127. Building C object CMakeFiles/cmTC_508ae.dir/CheckSymbolExists.c.o
  2128. /usr/bin/gcc -w -o CMakeFiles/cmTC_508ae.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  2129. Linking C executable cmTC_508ae
  2130. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_508ae.dir/link.txt --verbose=1
  2131. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_508ae.dir/CheckSymbolExists.c.o -o cmTC_508ae
  2132. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2133. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  2134. /* */
  2135. #include <stdio.h>
  2136. #include <inttypes.h>
  2137. #include <sys/ioctl.h>
  2138. #include <sys/param.h>
  2139. #include <sys/poll.h>
  2140. #include <sys/resource.h>
  2141. #include <sys/select.h>
  2142. #include <sys/socket.h>
  2143. #include <sys/stat.h>
  2144. #include <sys/time.h>
  2145. #include <sys/types.h>
  2146. #include <sys/uio.h>
  2147. #include <sys/un.h>
  2148. #include <sys/xattr.h>
  2149. #include <alloca.h>
  2150. #include <arpa/inet.h>
  2151. #include <arpa/tftp.h>
  2152. #include <assert.h>
  2153. #include <err.h>
  2154. #include <errno.h>
  2155. #include <fcntl.h>
  2156. #include <ifaddrs.h>
  2157. #include <libgen.h>
  2158. #include <locale.h>
  2159. #include <net/if.h>
  2160. #include <netdb.h>
  2161. #include <netinet/in.h>
  2162. #include <netinet/tcp.h>
  2163. #include <poll.h>
  2164. #include <pwd.h>
  2165. #include <setjmp.h>
  2166. #include <sgtty.h>
  2167. #include <signal.h>
  2168. #include <stdbool.h>
  2169. #include <stdint.h>
  2170. #include <stdio.h>
  2171. #include <stdlib.h>
  2172. #include <string.h>
  2173. #include <strings.h>
  2174. #include <stropts.h>
  2175. #include <termio.h>
  2176. #include <termios.h>
  2177. #include <time.h>
  2178. #include <unistd.h>
  2179. #include <utime.h>
  2180. #include <stddef.h>
  2181. #include <dlfcn.h>
  2182. #include <malloc.h>
  2183. #include <memory.h>
  2184. #include <netinet/if_ether.h>
  2185. #include <stdint.h>
  2186. #include <sys/utsname.h>
  2187. int main(int argc, char** argv)
  2188. {
  2189. (void)argv;
  2190. #ifndef strtok_r
  2191. return ((int*)(&strtok_r))[argc];
  2192. #else
  2193. (void)argc;
  2194. return 0;
  2195. #endif
  2196. }
  2197. Determining if the strftime exist passed with the following output:
  2198. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  2199. Run Build Command:"/usr/bin/make" "cmTC_4f8a4/fast"
  2200. make -f CMakeFiles/cmTC_4f8a4.dir/build.make CMakeFiles/cmTC_4f8a4.dir/build
  2201. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2202. Building C object CMakeFiles/cmTC_4f8a4.dir/CheckSymbolExists.c.o
  2203. /usr/bin/gcc -w -o CMakeFiles/cmTC_4f8a4.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  2204. Linking C executable cmTC_4f8a4
  2205. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_4f8a4.dir/link.txt --verbose=1
  2206. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_4f8a4.dir/CheckSymbolExists.c.o -o cmTC_4f8a4
  2207. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2208. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  2209. /* */
  2210. #include <stdio.h>
  2211. #include <inttypes.h>
  2212. #include <sys/ioctl.h>
  2213. #include <sys/param.h>
  2214. #include <sys/poll.h>
  2215. #include <sys/resource.h>
  2216. #include <sys/select.h>
  2217. #include <sys/socket.h>
  2218. #include <sys/stat.h>
  2219. #include <sys/time.h>
  2220. #include <sys/types.h>
  2221. #include <sys/uio.h>
  2222. #include <sys/un.h>
  2223. #include <sys/xattr.h>
  2224. #include <alloca.h>
  2225. #include <arpa/inet.h>
  2226. #include <arpa/tftp.h>
  2227. #include <assert.h>
  2228. #include <err.h>
  2229. #include <errno.h>
  2230. #include <fcntl.h>
  2231. #include <ifaddrs.h>
  2232. #include <libgen.h>
  2233. #include <locale.h>
  2234. #include <net/if.h>
  2235. #include <netdb.h>
  2236. #include <netinet/in.h>
  2237. #include <netinet/tcp.h>
  2238. #include <poll.h>
  2239. #include <pwd.h>
  2240. #include <setjmp.h>
  2241. #include <sgtty.h>
  2242. #include <signal.h>
  2243. #include <stdbool.h>
  2244. #include <stdint.h>
  2245. #include <stdio.h>
  2246. #include <stdlib.h>
  2247. #include <string.h>
  2248. #include <strings.h>
  2249. #include <stropts.h>
  2250. #include <termio.h>
  2251. #include <termios.h>
  2252. #include <time.h>
  2253. #include <unistd.h>
  2254. #include <utime.h>
  2255. #include <stddef.h>
  2256. #include <dlfcn.h>
  2257. #include <malloc.h>
  2258. #include <memory.h>
  2259. #include <netinet/if_ether.h>
  2260. #include <stdint.h>
  2261. #include <sys/utsname.h>
  2262. int main(int argc, char** argv)
  2263. {
  2264. (void)argv;
  2265. #ifndef strftime
  2266. return ((int*)(&strftime))[argc];
  2267. #else
  2268. (void)argc;
  2269. return 0;
  2270. #endif
  2271. }
  2272. Determining if the uname exist passed with the following output:
  2273. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  2274. Run Build Command:"/usr/bin/make" "cmTC_f3526/fast"
  2275. make -f CMakeFiles/cmTC_f3526.dir/build.make CMakeFiles/cmTC_f3526.dir/build
  2276. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2277. Building C object CMakeFiles/cmTC_f3526.dir/CheckSymbolExists.c.o
  2278. /usr/bin/gcc -w -o CMakeFiles/cmTC_f3526.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  2279. Linking C executable cmTC_f3526
  2280. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f3526.dir/link.txt --verbose=1
  2281. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_f3526.dir/CheckSymbolExists.c.o -o cmTC_f3526
  2282. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2283. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  2284. /* */
  2285. #include <stdio.h>
  2286. #include <inttypes.h>
  2287. #include <sys/ioctl.h>
  2288. #include <sys/param.h>
  2289. #include <sys/poll.h>
  2290. #include <sys/resource.h>
  2291. #include <sys/select.h>
  2292. #include <sys/socket.h>
  2293. #include <sys/stat.h>
  2294. #include <sys/time.h>
  2295. #include <sys/types.h>
  2296. #include <sys/uio.h>
  2297. #include <sys/un.h>
  2298. #include <sys/xattr.h>
  2299. #include <alloca.h>
  2300. #include <arpa/inet.h>
  2301. #include <arpa/tftp.h>
  2302. #include <assert.h>
  2303. #include <err.h>
  2304. #include <errno.h>
  2305. #include <fcntl.h>
  2306. #include <ifaddrs.h>
  2307. #include <libgen.h>
  2308. #include <locale.h>
  2309. #include <net/if.h>
  2310. #include <netdb.h>
  2311. #include <netinet/in.h>
  2312. #include <netinet/tcp.h>
  2313. #include <poll.h>
  2314. #include <pwd.h>
  2315. #include <setjmp.h>
  2316. #include <sgtty.h>
  2317. #include <signal.h>
  2318. #include <stdbool.h>
  2319. #include <stdint.h>
  2320. #include <stdio.h>
  2321. #include <stdlib.h>
  2322. #include <string.h>
  2323. #include <strings.h>
  2324. #include <stropts.h>
  2325. #include <termio.h>
  2326. #include <termios.h>
  2327. #include <time.h>
  2328. #include <unistd.h>
  2329. #include <utime.h>
  2330. #include <stddef.h>
  2331. #include <dlfcn.h>
  2332. #include <malloc.h>
  2333. #include <memory.h>
  2334. #include <netinet/if_ether.h>
  2335. #include <stdint.h>
  2336. #include <sys/utsname.h>
  2337. int main(int argc, char** argv)
  2338. {
  2339. (void)argv;
  2340. #ifndef uname
  2341. return ((int*)(&uname))[argc];
  2342. #else
  2343. (void)argc;
  2344. return 0;
  2345. #endif
  2346. }
  2347. Determining if the strcasecmp exist passed with the following output:
  2348. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  2349. Run Build Command:"/usr/bin/make" "cmTC_b92f9/fast"
  2350. make -f CMakeFiles/cmTC_b92f9.dir/build.make CMakeFiles/cmTC_b92f9.dir/build
  2351. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2352. Building C object CMakeFiles/cmTC_b92f9.dir/CheckSymbolExists.c.o
  2353. /usr/bin/gcc -w -o CMakeFiles/cmTC_b92f9.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  2354. Linking C executable cmTC_b92f9
  2355. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b92f9.dir/link.txt --verbose=1
  2356. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_b92f9.dir/CheckSymbolExists.c.o -o cmTC_b92f9
  2357. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2358. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  2359. /* */
  2360. #include <stdio.h>
  2361. #include <inttypes.h>
  2362. #include <sys/ioctl.h>
  2363. #include <sys/param.h>
  2364. #include <sys/poll.h>
  2365. #include <sys/resource.h>
  2366. #include <sys/select.h>
  2367. #include <sys/socket.h>
  2368. #include <sys/stat.h>
  2369. #include <sys/time.h>
  2370. #include <sys/types.h>
  2371. #include <sys/uio.h>
  2372. #include <sys/un.h>
  2373. #include <sys/xattr.h>
  2374. #include <alloca.h>
  2375. #include <arpa/inet.h>
  2376. #include <arpa/tftp.h>
  2377. #include <assert.h>
  2378. #include <err.h>
  2379. #include <errno.h>
  2380. #include <fcntl.h>
  2381. #include <ifaddrs.h>
  2382. #include <libgen.h>
  2383. #include <locale.h>
  2384. #include <net/if.h>
  2385. #include <netdb.h>
  2386. #include <netinet/in.h>
  2387. #include <netinet/tcp.h>
  2388. #include <poll.h>
  2389. #include <pwd.h>
  2390. #include <setjmp.h>
  2391. #include <sgtty.h>
  2392. #include <signal.h>
  2393. #include <stdbool.h>
  2394. #include <stdint.h>
  2395. #include <stdio.h>
  2396. #include <stdlib.h>
  2397. #include <string.h>
  2398. #include <strings.h>
  2399. #include <stropts.h>
  2400. #include <termio.h>
  2401. #include <termios.h>
  2402. #include <time.h>
  2403. #include <unistd.h>
  2404. #include <utime.h>
  2405. #include <stddef.h>
  2406. #include <dlfcn.h>
  2407. #include <malloc.h>
  2408. #include <memory.h>
  2409. #include <netinet/if_ether.h>
  2410. #include <stdint.h>
  2411. #include <sys/utsname.h>
  2412. int main(int argc, char** argv)
  2413. {
  2414. (void)argv;
  2415. #ifndef strcasecmp
  2416. return ((int*)(&strcasecmp))[argc];
  2417. #else
  2418. (void)argc;
  2419. return 0;
  2420. #endif
  2421. }
  2422. Determining if the alarm exist passed with the following output:
  2423. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  2424. Run Build Command:"/usr/bin/make" "cmTC_868b6/fast"
  2425. make -f CMakeFiles/cmTC_868b6.dir/build.make CMakeFiles/cmTC_868b6.dir/build
  2426. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2427. Building C object CMakeFiles/cmTC_868b6.dir/CheckSymbolExists.c.o
  2428. /usr/bin/gcc -w -o CMakeFiles/cmTC_868b6.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  2429. Linking C executable cmTC_868b6
  2430. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_868b6.dir/link.txt --verbose=1
  2431. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_868b6.dir/CheckSymbolExists.c.o -o cmTC_868b6
  2432. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2433. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  2434. /* */
  2435. #include <stdio.h>
  2436. #include <inttypes.h>
  2437. #include <sys/ioctl.h>
  2438. #include <sys/param.h>
  2439. #include <sys/poll.h>
  2440. #include <sys/resource.h>
  2441. #include <sys/select.h>
  2442. #include <sys/socket.h>
  2443. #include <sys/stat.h>
  2444. #include <sys/time.h>
  2445. #include <sys/types.h>
  2446. #include <sys/uio.h>
  2447. #include <sys/un.h>
  2448. #include <sys/xattr.h>
  2449. #include <alloca.h>
  2450. #include <arpa/inet.h>
  2451. #include <arpa/tftp.h>
  2452. #include <assert.h>
  2453. #include <err.h>
  2454. #include <errno.h>
  2455. #include <fcntl.h>
  2456. #include <ifaddrs.h>
  2457. #include <libgen.h>
  2458. #include <locale.h>
  2459. #include <net/if.h>
  2460. #include <netdb.h>
  2461. #include <netinet/in.h>
  2462. #include <netinet/tcp.h>
  2463. #include <poll.h>
  2464. #include <pwd.h>
  2465. #include <setjmp.h>
  2466. #include <sgtty.h>
  2467. #include <signal.h>
  2468. #include <stdbool.h>
  2469. #include <stdint.h>
  2470. #include <stdio.h>
  2471. #include <stdlib.h>
  2472. #include <string.h>
  2473. #include <strings.h>
  2474. #include <stropts.h>
  2475. #include <termio.h>
  2476. #include <termios.h>
  2477. #include <time.h>
  2478. #include <unistd.h>
  2479. #include <utime.h>
  2480. #include <stddef.h>
  2481. #include <dlfcn.h>
  2482. #include <malloc.h>
  2483. #include <memory.h>
  2484. #include <netinet/if_ether.h>
  2485. #include <stdint.h>
  2486. #include <sys/utsname.h>
  2487. int main(int argc, char** argv)
  2488. {
  2489. (void)argv;
  2490. #ifndef alarm
  2491. return ((int*)(&alarm))[argc];
  2492. #else
  2493. (void)argc;
  2494. return 0;
  2495. #endif
  2496. }
  2497. Determining if the gethostbyaddr exist passed with the following output:
  2498. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  2499. Run Build Command:"/usr/bin/make" "cmTC_c0e7c/fast"
  2500. make -f CMakeFiles/cmTC_c0e7c.dir/build.make CMakeFiles/cmTC_c0e7c.dir/build
  2501. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2502. Building C object CMakeFiles/cmTC_c0e7c.dir/CheckSymbolExists.c.o
  2503. /usr/bin/gcc -w -o CMakeFiles/cmTC_c0e7c.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  2504. Linking C executable cmTC_c0e7c
  2505. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c0e7c.dir/link.txt --verbose=1
  2506. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_c0e7c.dir/CheckSymbolExists.c.o -o cmTC_c0e7c
  2507. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2508. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  2509. /* */
  2510. #include <stdio.h>
  2511. #include <inttypes.h>
  2512. #include <sys/ioctl.h>
  2513. #include <sys/param.h>
  2514. #include <sys/poll.h>
  2515. #include <sys/resource.h>
  2516. #include <sys/select.h>
  2517. #include <sys/socket.h>
  2518. #include <sys/stat.h>
  2519. #include <sys/time.h>
  2520. #include <sys/types.h>
  2521. #include <sys/uio.h>
  2522. #include <sys/un.h>
  2523. #include <sys/xattr.h>
  2524. #include <alloca.h>
  2525. #include <arpa/inet.h>
  2526. #include <arpa/tftp.h>
  2527. #include <assert.h>
  2528. #include <err.h>
  2529. #include <errno.h>
  2530. #include <fcntl.h>
  2531. #include <ifaddrs.h>
  2532. #include <libgen.h>
  2533. #include <locale.h>
  2534. #include <net/if.h>
  2535. #include <netdb.h>
  2536. #include <netinet/in.h>
  2537. #include <netinet/tcp.h>
  2538. #include <poll.h>
  2539. #include <pwd.h>
  2540. #include <setjmp.h>
  2541. #include <sgtty.h>
  2542. #include <signal.h>
  2543. #include <stdbool.h>
  2544. #include <stdint.h>
  2545. #include <stdio.h>
  2546. #include <stdlib.h>
  2547. #include <string.h>
  2548. #include <strings.h>
  2549. #include <stropts.h>
  2550. #include <termio.h>
  2551. #include <termios.h>
  2552. #include <time.h>
  2553. #include <unistd.h>
  2554. #include <utime.h>
  2555. #include <stddef.h>
  2556. #include <dlfcn.h>
  2557. #include <malloc.h>
  2558. #include <memory.h>
  2559. #include <netinet/if_ether.h>
  2560. #include <stdint.h>
  2561. #include <sys/utsname.h>
  2562. int main(int argc, char** argv)
  2563. {
  2564. (void)argv;
  2565. #ifndef gethostbyaddr
  2566. return ((int*)(&gethostbyaddr))[argc];
  2567. #else
  2568. (void)argc;
  2569. return 0;
  2570. #endif
  2571. }
  2572. Determining if the gethostbyaddr_r exist passed with the following output:
  2573. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  2574. Run Build Command:"/usr/bin/make" "cmTC_ec0c7/fast"
  2575. make -f CMakeFiles/cmTC_ec0c7.dir/build.make CMakeFiles/cmTC_ec0c7.dir/build
  2576. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2577. Building C object CMakeFiles/cmTC_ec0c7.dir/CheckSymbolExists.c.o
  2578. /usr/bin/gcc -w -o CMakeFiles/cmTC_ec0c7.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  2579. Linking C executable cmTC_ec0c7
  2580. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ec0c7.dir/link.txt --verbose=1
  2581. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_ec0c7.dir/CheckSymbolExists.c.o -o cmTC_ec0c7
  2582. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2583. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  2584. /* */
  2585. #include <stdio.h>
  2586. #include <inttypes.h>
  2587. #include <sys/ioctl.h>
  2588. #include <sys/param.h>
  2589. #include <sys/poll.h>
  2590. #include <sys/resource.h>
  2591. #include <sys/select.h>
  2592. #include <sys/socket.h>
  2593. #include <sys/stat.h>
  2594. #include <sys/time.h>
  2595. #include <sys/types.h>
  2596. #include <sys/uio.h>
  2597. #include <sys/un.h>
  2598. #include <sys/xattr.h>
  2599. #include <alloca.h>
  2600. #include <arpa/inet.h>
  2601. #include <arpa/tftp.h>
  2602. #include <assert.h>
  2603. #include <err.h>
  2604. #include <errno.h>
  2605. #include <fcntl.h>
  2606. #include <ifaddrs.h>
  2607. #include <libgen.h>
  2608. #include <locale.h>
  2609. #include <net/if.h>
  2610. #include <netdb.h>
  2611. #include <netinet/in.h>
  2612. #include <netinet/tcp.h>
  2613. #include <poll.h>
  2614. #include <pwd.h>
  2615. #include <setjmp.h>
  2616. #include <sgtty.h>
  2617. #include <signal.h>
  2618. #include <stdbool.h>
  2619. #include <stdint.h>
  2620. #include <stdio.h>
  2621. #include <stdlib.h>
  2622. #include <string.h>
  2623. #include <strings.h>
  2624. #include <stropts.h>
  2625. #include <termio.h>
  2626. #include <termios.h>
  2627. #include <time.h>
  2628. #include <unistd.h>
  2629. #include <utime.h>
  2630. #include <stddef.h>
  2631. #include <dlfcn.h>
  2632. #include <malloc.h>
  2633. #include <memory.h>
  2634. #include <netinet/if_ether.h>
  2635. #include <stdint.h>
  2636. #include <sys/utsname.h>
  2637. int main(int argc, char** argv)
  2638. {
  2639. (void)argv;
  2640. #ifndef gethostbyaddr_r
  2641. return ((int*)(&gethostbyaddr_r))[argc];
  2642. #else
  2643. (void)argc;
  2644. return 0;
  2645. #endif
  2646. }
  2647. Determining if the gettimeofday exist passed with the following output:
  2648. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  2649. Run Build Command:"/usr/bin/make" "cmTC_2824e/fast"
  2650. make -f CMakeFiles/cmTC_2824e.dir/build.make CMakeFiles/cmTC_2824e.dir/build
  2651. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2652. Building C object CMakeFiles/cmTC_2824e.dir/CheckSymbolExists.c.o
  2653. /usr/bin/gcc -w -o CMakeFiles/cmTC_2824e.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  2654. Linking C executable cmTC_2824e
  2655. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2824e.dir/link.txt --verbose=1
  2656. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_2824e.dir/CheckSymbolExists.c.o -o cmTC_2824e
  2657. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2658. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  2659. /* */
  2660. #include <stdio.h>
  2661. #include <inttypes.h>
  2662. #include <sys/ioctl.h>
  2663. #include <sys/param.h>
  2664. #include <sys/poll.h>
  2665. #include <sys/resource.h>
  2666. #include <sys/select.h>
  2667. #include <sys/socket.h>
  2668. #include <sys/stat.h>
  2669. #include <sys/time.h>
  2670. #include <sys/types.h>
  2671. #include <sys/uio.h>
  2672. #include <sys/un.h>
  2673. #include <sys/xattr.h>
  2674. #include <alloca.h>
  2675. #include <arpa/inet.h>
  2676. #include <arpa/tftp.h>
  2677. #include <assert.h>
  2678. #include <err.h>
  2679. #include <errno.h>
  2680. #include <fcntl.h>
  2681. #include <ifaddrs.h>
  2682. #include <libgen.h>
  2683. #include <locale.h>
  2684. #include <net/if.h>
  2685. #include <netdb.h>
  2686. #include <netinet/in.h>
  2687. #include <netinet/tcp.h>
  2688. #include <poll.h>
  2689. #include <pwd.h>
  2690. #include <setjmp.h>
  2691. #include <sgtty.h>
  2692. #include <signal.h>
  2693. #include <stdbool.h>
  2694. #include <stdint.h>
  2695. #include <stdio.h>
  2696. #include <stdlib.h>
  2697. #include <string.h>
  2698. #include <strings.h>
  2699. #include <stropts.h>
  2700. #include <termio.h>
  2701. #include <termios.h>
  2702. #include <time.h>
  2703. #include <unistd.h>
  2704. #include <utime.h>
  2705. #include <stddef.h>
  2706. #include <dlfcn.h>
  2707. #include <malloc.h>
  2708. #include <memory.h>
  2709. #include <netinet/if_ether.h>
  2710. #include <stdint.h>
  2711. #include <sys/utsname.h>
  2712. int main(int argc, char** argv)
  2713. {
  2714. (void)argv;
  2715. #ifndef gettimeofday
  2716. return ((int*)(&gettimeofday))[argc];
  2717. #else
  2718. (void)argc;
  2719. return 0;
  2720. #endif
  2721. }
  2722. Determining if the inet_addr exist passed with the following output:
  2723. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  2724. Run Build Command:"/usr/bin/make" "cmTC_76df5/fast"
  2725. make -f CMakeFiles/cmTC_76df5.dir/build.make CMakeFiles/cmTC_76df5.dir/build
  2726. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2727. Building C object CMakeFiles/cmTC_76df5.dir/CheckSymbolExists.c.o
  2728. /usr/bin/gcc -w -o CMakeFiles/cmTC_76df5.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  2729. Linking C executable cmTC_76df5
  2730. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_76df5.dir/link.txt --verbose=1
  2731. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_76df5.dir/CheckSymbolExists.c.o -o cmTC_76df5
  2732. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2733. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  2734. /* */
  2735. #include <stdio.h>
  2736. #include <inttypes.h>
  2737. #include <sys/ioctl.h>
  2738. #include <sys/param.h>
  2739. #include <sys/poll.h>
  2740. #include <sys/resource.h>
  2741. #include <sys/select.h>
  2742. #include <sys/socket.h>
  2743. #include <sys/stat.h>
  2744. #include <sys/time.h>
  2745. #include <sys/types.h>
  2746. #include <sys/uio.h>
  2747. #include <sys/un.h>
  2748. #include <sys/xattr.h>
  2749. #include <alloca.h>
  2750. #include <arpa/inet.h>
  2751. #include <arpa/tftp.h>
  2752. #include <assert.h>
  2753. #include <err.h>
  2754. #include <errno.h>
  2755. #include <fcntl.h>
  2756. #include <ifaddrs.h>
  2757. #include <libgen.h>
  2758. #include <locale.h>
  2759. #include <net/if.h>
  2760. #include <netdb.h>
  2761. #include <netinet/in.h>
  2762. #include <netinet/tcp.h>
  2763. #include <poll.h>
  2764. #include <pwd.h>
  2765. #include <setjmp.h>
  2766. #include <sgtty.h>
  2767. #include <signal.h>
  2768. #include <stdbool.h>
  2769. #include <stdint.h>
  2770. #include <stdio.h>
  2771. #include <stdlib.h>
  2772. #include <string.h>
  2773. #include <strings.h>
  2774. #include <stropts.h>
  2775. #include <termio.h>
  2776. #include <termios.h>
  2777. #include <time.h>
  2778. #include <unistd.h>
  2779. #include <utime.h>
  2780. #include <stddef.h>
  2781. #include <dlfcn.h>
  2782. #include <malloc.h>
  2783. #include <memory.h>
  2784. #include <netinet/if_ether.h>
  2785. #include <stdint.h>
  2786. #include <sys/utsname.h>
  2787. int main(int argc, char** argv)
  2788. {
  2789. (void)argv;
  2790. #ifndef inet_addr
  2791. return ((int*)(&inet_addr))[argc];
  2792. #else
  2793. (void)argc;
  2794. return 0;
  2795. #endif
  2796. }
  2797. Determining if the inet_ntoa exist passed with the following output:
  2798. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  2799. Run Build Command:"/usr/bin/make" "cmTC_82141/fast"
  2800. make -f CMakeFiles/cmTC_82141.dir/build.make CMakeFiles/cmTC_82141.dir/build
  2801. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2802. Building C object CMakeFiles/cmTC_82141.dir/CheckSymbolExists.c.o
  2803. /usr/bin/gcc -w -o CMakeFiles/cmTC_82141.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  2804. Linking C executable cmTC_82141
  2805. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_82141.dir/link.txt --verbose=1
  2806. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_82141.dir/CheckSymbolExists.c.o -o cmTC_82141
  2807. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2808. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  2809. /* */
  2810. #include <stdio.h>
  2811. #include <inttypes.h>
  2812. #include <sys/ioctl.h>
  2813. #include <sys/param.h>
  2814. #include <sys/poll.h>
  2815. #include <sys/resource.h>
  2816. #include <sys/select.h>
  2817. #include <sys/socket.h>
  2818. #include <sys/stat.h>
  2819. #include <sys/time.h>
  2820. #include <sys/types.h>
  2821. #include <sys/uio.h>
  2822. #include <sys/un.h>
  2823. #include <sys/xattr.h>
  2824. #include <alloca.h>
  2825. #include <arpa/inet.h>
  2826. #include <arpa/tftp.h>
  2827. #include <assert.h>
  2828. #include <err.h>
  2829. #include <errno.h>
  2830. #include <fcntl.h>
  2831. #include <ifaddrs.h>
  2832. #include <libgen.h>
  2833. #include <locale.h>
  2834. #include <net/if.h>
  2835. #include <netdb.h>
  2836. #include <netinet/in.h>
  2837. #include <netinet/tcp.h>
  2838. #include <poll.h>
  2839. #include <pwd.h>
  2840. #include <setjmp.h>
  2841. #include <sgtty.h>
  2842. #include <signal.h>
  2843. #include <stdbool.h>
  2844. #include <stdint.h>
  2845. #include <stdio.h>
  2846. #include <stdlib.h>
  2847. #include <string.h>
  2848. #include <strings.h>
  2849. #include <stropts.h>
  2850. #include <termio.h>
  2851. #include <termios.h>
  2852. #include <time.h>
  2853. #include <unistd.h>
  2854. #include <utime.h>
  2855. #include <stddef.h>
  2856. #include <dlfcn.h>
  2857. #include <malloc.h>
  2858. #include <memory.h>
  2859. #include <netinet/if_ether.h>
  2860. #include <stdint.h>
  2861. #include <sys/utsname.h>
  2862. int main(int argc, char** argv)
  2863. {
  2864. (void)argv;
  2865. #ifndef inet_ntoa
  2866. return ((int*)(&inet_ntoa))[argc];
  2867. #else
  2868. (void)argc;
  2869. return 0;
  2870. #endif
  2871. }
  2872. Determining if the tcsetattr exist passed with the following output:
  2873. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  2874. Run Build Command:"/usr/bin/make" "cmTC_3843b/fast"
  2875. make -f CMakeFiles/cmTC_3843b.dir/build.make CMakeFiles/cmTC_3843b.dir/build
  2876. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2877. Building C object CMakeFiles/cmTC_3843b.dir/CheckSymbolExists.c.o
  2878. /usr/bin/gcc -w -o CMakeFiles/cmTC_3843b.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  2879. Linking C executable cmTC_3843b
  2880. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3843b.dir/link.txt --verbose=1
  2881. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_3843b.dir/CheckSymbolExists.c.o -o cmTC_3843b
  2882. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2883. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  2884. /* */
  2885. #include <stdio.h>
  2886. #include <inttypes.h>
  2887. #include <sys/ioctl.h>
  2888. #include <sys/param.h>
  2889. #include <sys/poll.h>
  2890. #include <sys/resource.h>
  2891. #include <sys/select.h>
  2892. #include <sys/socket.h>
  2893. #include <sys/stat.h>
  2894. #include <sys/time.h>
  2895. #include <sys/types.h>
  2896. #include <sys/uio.h>
  2897. #include <sys/un.h>
  2898. #include <sys/xattr.h>
  2899. #include <alloca.h>
  2900. #include <arpa/inet.h>
  2901. #include <arpa/tftp.h>
  2902. #include <assert.h>
  2903. #include <err.h>
  2904. #include <errno.h>
  2905. #include <fcntl.h>
  2906. #include <ifaddrs.h>
  2907. #include <libgen.h>
  2908. #include <locale.h>
  2909. #include <net/if.h>
  2910. #include <netdb.h>
  2911. #include <netinet/in.h>
  2912. #include <netinet/tcp.h>
  2913. #include <poll.h>
  2914. #include <pwd.h>
  2915. #include <setjmp.h>
  2916. #include <sgtty.h>
  2917. #include <signal.h>
  2918. #include <stdbool.h>
  2919. #include <stdint.h>
  2920. #include <stdio.h>
  2921. #include <stdlib.h>
  2922. #include <string.h>
  2923. #include <strings.h>
  2924. #include <stropts.h>
  2925. #include <termio.h>
  2926. #include <termios.h>
  2927. #include <time.h>
  2928. #include <unistd.h>
  2929. #include <utime.h>
  2930. #include <stddef.h>
  2931. #include <dlfcn.h>
  2932. #include <malloc.h>
  2933. #include <memory.h>
  2934. #include <netinet/if_ether.h>
  2935. #include <stdint.h>
  2936. #include <sys/utsname.h>
  2937. int main(int argc, char** argv)
  2938. {
  2939. (void)argv;
  2940. #ifndef tcsetattr
  2941. return ((int*)(&tcsetattr))[argc];
  2942. #else
  2943. (void)argc;
  2944. return 0;
  2945. #endif
  2946. }
  2947. Determining if the tcgetattr exist passed with the following output:
  2948. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  2949. Run Build Command:"/usr/bin/make" "cmTC_d1d4e/fast"
  2950. make -f CMakeFiles/cmTC_d1d4e.dir/build.make CMakeFiles/cmTC_d1d4e.dir/build
  2951. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2952. Building C object CMakeFiles/cmTC_d1d4e.dir/CheckSymbolExists.c.o
  2953. /usr/bin/gcc -w -o CMakeFiles/cmTC_d1d4e.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  2954. Linking C executable cmTC_d1d4e
  2955. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d1d4e.dir/link.txt --verbose=1
  2956. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_d1d4e.dir/CheckSymbolExists.c.o -o cmTC_d1d4e
  2957. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  2958. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  2959. /* */
  2960. #include <stdio.h>
  2961. #include <inttypes.h>
  2962. #include <sys/ioctl.h>
  2963. #include <sys/param.h>
  2964. #include <sys/poll.h>
  2965. #include <sys/resource.h>
  2966. #include <sys/select.h>
  2967. #include <sys/socket.h>
  2968. #include <sys/stat.h>
  2969. #include <sys/time.h>
  2970. #include <sys/types.h>
  2971. #include <sys/uio.h>
  2972. #include <sys/un.h>
  2973. #include <sys/xattr.h>
  2974. #include <alloca.h>
  2975. #include <arpa/inet.h>
  2976. #include <arpa/tftp.h>
  2977. #include <assert.h>
  2978. #include <err.h>
  2979. #include <errno.h>
  2980. #include <fcntl.h>
  2981. #include <ifaddrs.h>
  2982. #include <libgen.h>
  2983. #include <locale.h>
  2984. #include <net/if.h>
  2985. #include <netdb.h>
  2986. #include <netinet/in.h>
  2987. #include <netinet/tcp.h>
  2988. #include <poll.h>
  2989. #include <pwd.h>
  2990. #include <setjmp.h>
  2991. #include <sgtty.h>
  2992. #include <signal.h>
  2993. #include <stdbool.h>
  2994. #include <stdint.h>
  2995. #include <stdio.h>
  2996. #include <stdlib.h>
  2997. #include <string.h>
  2998. #include <strings.h>
  2999. #include <stropts.h>
  3000. #include <termio.h>
  3001. #include <termios.h>
  3002. #include <time.h>
  3003. #include <unistd.h>
  3004. #include <utime.h>
  3005. #include <stddef.h>
  3006. #include <dlfcn.h>
  3007. #include <malloc.h>
  3008. #include <memory.h>
  3009. #include <netinet/if_ether.h>
  3010. #include <stdint.h>
  3011. #include <sys/utsname.h>
  3012. int main(int argc, char** argv)
  3013. {
  3014. (void)argv;
  3015. #ifndef tcgetattr
  3016. return ((int*)(&tcgetattr))[argc];
  3017. #else
  3018. (void)argc;
  3019. return 0;
  3020. #endif
  3021. }
  3022. Determining if the perror exist passed with the following output:
  3023. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  3024. Run Build Command:"/usr/bin/make" "cmTC_2bf20/fast"
  3025. make -f CMakeFiles/cmTC_2bf20.dir/build.make CMakeFiles/cmTC_2bf20.dir/build
  3026. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3027. Building C object CMakeFiles/cmTC_2bf20.dir/CheckSymbolExists.c.o
  3028. /usr/bin/gcc -w -o CMakeFiles/cmTC_2bf20.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  3029. Linking C executable cmTC_2bf20
  3030. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2bf20.dir/link.txt --verbose=1
  3031. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_2bf20.dir/CheckSymbolExists.c.o -o cmTC_2bf20
  3032. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3033. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  3034. /* */
  3035. #include <stdio.h>
  3036. #include <inttypes.h>
  3037. #include <sys/ioctl.h>
  3038. #include <sys/param.h>
  3039. #include <sys/poll.h>
  3040. #include <sys/resource.h>
  3041. #include <sys/select.h>
  3042. #include <sys/socket.h>
  3043. #include <sys/stat.h>
  3044. #include <sys/time.h>
  3045. #include <sys/types.h>
  3046. #include <sys/uio.h>
  3047. #include <sys/un.h>
  3048. #include <sys/xattr.h>
  3049. #include <alloca.h>
  3050. #include <arpa/inet.h>
  3051. #include <arpa/tftp.h>
  3052. #include <assert.h>
  3053. #include <err.h>
  3054. #include <errno.h>
  3055. #include <fcntl.h>
  3056. #include <ifaddrs.h>
  3057. #include <libgen.h>
  3058. #include <locale.h>
  3059. #include <net/if.h>
  3060. #include <netdb.h>
  3061. #include <netinet/in.h>
  3062. #include <netinet/tcp.h>
  3063. #include <poll.h>
  3064. #include <pwd.h>
  3065. #include <setjmp.h>
  3066. #include <sgtty.h>
  3067. #include <signal.h>
  3068. #include <stdbool.h>
  3069. #include <stdint.h>
  3070. #include <stdio.h>
  3071. #include <stdlib.h>
  3072. #include <string.h>
  3073. #include <strings.h>
  3074. #include <stropts.h>
  3075. #include <termio.h>
  3076. #include <termios.h>
  3077. #include <time.h>
  3078. #include <unistd.h>
  3079. #include <utime.h>
  3080. #include <stddef.h>
  3081. #include <dlfcn.h>
  3082. #include <malloc.h>
  3083. #include <memory.h>
  3084. #include <netinet/if_ether.h>
  3085. #include <stdint.h>
  3086. #include <sys/utsname.h>
  3087. int main(int argc, char** argv)
  3088. {
  3089. (void)argv;
  3090. #ifndef perror
  3091. return ((int*)(&perror))[argc];
  3092. #else
  3093. (void)argc;
  3094. return 0;
  3095. #endif
  3096. }
  3097. Determining if the setvbuf exist passed with the following output:
  3098. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  3099. Run Build Command:"/usr/bin/make" "cmTC_a03f7/fast"
  3100. make -f CMakeFiles/cmTC_a03f7.dir/build.make CMakeFiles/cmTC_a03f7.dir/build
  3101. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3102. Building C object CMakeFiles/cmTC_a03f7.dir/CheckSymbolExists.c.o
  3103. /usr/bin/gcc -w -o CMakeFiles/cmTC_a03f7.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  3104. Linking C executable cmTC_a03f7
  3105. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a03f7.dir/link.txt --verbose=1
  3106. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_a03f7.dir/CheckSymbolExists.c.o -o cmTC_a03f7
  3107. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3108. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  3109. /* */
  3110. #include <stdio.h>
  3111. #include <inttypes.h>
  3112. #include <sys/ioctl.h>
  3113. #include <sys/param.h>
  3114. #include <sys/poll.h>
  3115. #include <sys/resource.h>
  3116. #include <sys/select.h>
  3117. #include <sys/socket.h>
  3118. #include <sys/stat.h>
  3119. #include <sys/time.h>
  3120. #include <sys/types.h>
  3121. #include <sys/uio.h>
  3122. #include <sys/un.h>
  3123. #include <sys/xattr.h>
  3124. #include <alloca.h>
  3125. #include <arpa/inet.h>
  3126. #include <arpa/tftp.h>
  3127. #include <assert.h>
  3128. #include <err.h>
  3129. #include <errno.h>
  3130. #include <fcntl.h>
  3131. #include <ifaddrs.h>
  3132. #include <libgen.h>
  3133. #include <locale.h>
  3134. #include <net/if.h>
  3135. #include <netdb.h>
  3136. #include <netinet/in.h>
  3137. #include <netinet/tcp.h>
  3138. #include <poll.h>
  3139. #include <pwd.h>
  3140. #include <setjmp.h>
  3141. #include <sgtty.h>
  3142. #include <signal.h>
  3143. #include <stdbool.h>
  3144. #include <stdint.h>
  3145. #include <stdio.h>
  3146. #include <stdlib.h>
  3147. #include <string.h>
  3148. #include <strings.h>
  3149. #include <stropts.h>
  3150. #include <termio.h>
  3151. #include <termios.h>
  3152. #include <time.h>
  3153. #include <unistd.h>
  3154. #include <utime.h>
  3155. #include <stddef.h>
  3156. #include <dlfcn.h>
  3157. #include <malloc.h>
  3158. #include <memory.h>
  3159. #include <netinet/if_ether.h>
  3160. #include <stdint.h>
  3161. #include <sys/utsname.h>
  3162. int main(int argc, char** argv)
  3163. {
  3164. (void)argv;
  3165. #ifndef setvbuf
  3166. return ((int*)(&setvbuf))[argc];
  3167. #else
  3168. (void)argc;
  3169. return 0;
  3170. #endif
  3171. }
  3172. Determining if the sigsetjmp exist passed with the following output:
  3173. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  3174. Run Build Command:"/usr/bin/make" "cmTC_927f0/fast"
  3175. make -f CMakeFiles/cmTC_927f0.dir/build.make CMakeFiles/cmTC_927f0.dir/build
  3176. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3177. Building C object CMakeFiles/cmTC_927f0.dir/CheckSymbolExists.c.o
  3178. /usr/bin/gcc -w -o CMakeFiles/cmTC_927f0.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  3179. Linking C executable cmTC_927f0
  3180. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_927f0.dir/link.txt --verbose=1
  3181. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_927f0.dir/CheckSymbolExists.c.o -o cmTC_927f0
  3182. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3183. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  3184. /* */
  3185. #include <stdio.h>
  3186. #include <inttypes.h>
  3187. #include <sys/ioctl.h>
  3188. #include <sys/param.h>
  3189. #include <sys/poll.h>
  3190. #include <sys/resource.h>
  3191. #include <sys/select.h>
  3192. #include <sys/socket.h>
  3193. #include <sys/stat.h>
  3194. #include <sys/time.h>
  3195. #include <sys/types.h>
  3196. #include <sys/uio.h>
  3197. #include <sys/un.h>
  3198. #include <sys/xattr.h>
  3199. #include <alloca.h>
  3200. #include <arpa/inet.h>
  3201. #include <arpa/tftp.h>
  3202. #include <assert.h>
  3203. #include <err.h>
  3204. #include <errno.h>
  3205. #include <fcntl.h>
  3206. #include <ifaddrs.h>
  3207. #include <libgen.h>
  3208. #include <locale.h>
  3209. #include <net/if.h>
  3210. #include <netdb.h>
  3211. #include <netinet/in.h>
  3212. #include <netinet/tcp.h>
  3213. #include <poll.h>
  3214. #include <pwd.h>
  3215. #include <setjmp.h>
  3216. #include <sgtty.h>
  3217. #include <signal.h>
  3218. #include <stdbool.h>
  3219. #include <stdint.h>
  3220. #include <stdio.h>
  3221. #include <stdlib.h>
  3222. #include <string.h>
  3223. #include <strings.h>
  3224. #include <stropts.h>
  3225. #include <termio.h>
  3226. #include <termios.h>
  3227. #include <time.h>
  3228. #include <unistd.h>
  3229. #include <utime.h>
  3230. #include <stddef.h>
  3231. #include <dlfcn.h>
  3232. #include <malloc.h>
  3233. #include <memory.h>
  3234. #include <netinet/if_ether.h>
  3235. #include <stdint.h>
  3236. #include <sys/utsname.h>
  3237. int main(int argc, char** argv)
  3238. {
  3239. (void)argv;
  3240. #ifndef sigsetjmp
  3241. return ((int*)(&sigsetjmp))[argc];
  3242. #else
  3243. (void)argc;
  3244. return 0;
  3245. #endif
  3246. }
  3247. Determining if the getpwuid exist passed with the following output:
  3248. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  3249. Run Build Command:"/usr/bin/make" "cmTC_3dba1/fast"
  3250. make -f CMakeFiles/cmTC_3dba1.dir/build.make CMakeFiles/cmTC_3dba1.dir/build
  3251. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3252. Building C object CMakeFiles/cmTC_3dba1.dir/CheckSymbolExists.c.o
  3253. /usr/bin/gcc -w -o CMakeFiles/cmTC_3dba1.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  3254. Linking C executable cmTC_3dba1
  3255. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3dba1.dir/link.txt --verbose=1
  3256. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_3dba1.dir/CheckSymbolExists.c.o -o cmTC_3dba1
  3257. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3258. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  3259. /* */
  3260. #include <stdio.h>
  3261. #include <inttypes.h>
  3262. #include <sys/ioctl.h>
  3263. #include <sys/param.h>
  3264. #include <sys/poll.h>
  3265. #include <sys/resource.h>
  3266. #include <sys/select.h>
  3267. #include <sys/socket.h>
  3268. #include <sys/stat.h>
  3269. #include <sys/time.h>
  3270. #include <sys/types.h>
  3271. #include <sys/uio.h>
  3272. #include <sys/un.h>
  3273. #include <sys/xattr.h>
  3274. #include <alloca.h>
  3275. #include <arpa/inet.h>
  3276. #include <arpa/tftp.h>
  3277. #include <assert.h>
  3278. #include <err.h>
  3279. #include <errno.h>
  3280. #include <fcntl.h>
  3281. #include <ifaddrs.h>
  3282. #include <libgen.h>
  3283. #include <locale.h>
  3284. #include <net/if.h>
  3285. #include <netdb.h>
  3286. #include <netinet/in.h>
  3287. #include <netinet/tcp.h>
  3288. #include <poll.h>
  3289. #include <pwd.h>
  3290. #include <setjmp.h>
  3291. #include <sgtty.h>
  3292. #include <signal.h>
  3293. #include <stdbool.h>
  3294. #include <stdint.h>
  3295. #include <stdio.h>
  3296. #include <stdlib.h>
  3297. #include <string.h>
  3298. #include <strings.h>
  3299. #include <stropts.h>
  3300. #include <termio.h>
  3301. #include <termios.h>
  3302. #include <time.h>
  3303. #include <unistd.h>
  3304. #include <utime.h>
  3305. #include <stddef.h>
  3306. #include <dlfcn.h>
  3307. #include <malloc.h>
  3308. #include <memory.h>
  3309. #include <netinet/if_ether.h>
  3310. #include <stdint.h>
  3311. #include <sys/utsname.h>
  3312. int main(int argc, char** argv)
  3313. {
  3314. (void)argv;
  3315. #ifndef getpwuid
  3316. return ((int*)(&getpwuid))[argc];
  3317. #else
  3318. (void)argc;
  3319. return 0;
  3320. #endif
  3321. }
  3322. Determining if the geteuid exist passed with the following output:
  3323. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  3324. Run Build Command:"/usr/bin/make" "cmTC_4ddaa/fast"
  3325. make -f CMakeFiles/cmTC_4ddaa.dir/build.make CMakeFiles/cmTC_4ddaa.dir/build
  3326. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3327. Building C object CMakeFiles/cmTC_4ddaa.dir/CheckSymbolExists.c.o
  3328. /usr/bin/gcc -w -o CMakeFiles/cmTC_4ddaa.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  3329. Linking C executable cmTC_4ddaa
  3330. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_4ddaa.dir/link.txt --verbose=1
  3331. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_4ddaa.dir/CheckSymbolExists.c.o -o cmTC_4ddaa
  3332. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3333. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  3334. /* */
  3335. #include <stdio.h>
  3336. #include <inttypes.h>
  3337. #include <sys/ioctl.h>
  3338. #include <sys/param.h>
  3339. #include <sys/poll.h>
  3340. #include <sys/resource.h>
  3341. #include <sys/select.h>
  3342. #include <sys/socket.h>
  3343. #include <sys/stat.h>
  3344. #include <sys/time.h>
  3345. #include <sys/types.h>
  3346. #include <sys/uio.h>
  3347. #include <sys/un.h>
  3348. #include <sys/xattr.h>
  3349. #include <alloca.h>
  3350. #include <arpa/inet.h>
  3351. #include <arpa/tftp.h>
  3352. #include <assert.h>
  3353. #include <err.h>
  3354. #include <errno.h>
  3355. #include <fcntl.h>
  3356. #include <ifaddrs.h>
  3357. #include <libgen.h>
  3358. #include <locale.h>
  3359. #include <net/if.h>
  3360. #include <netdb.h>
  3361. #include <netinet/in.h>
  3362. #include <netinet/tcp.h>
  3363. #include <poll.h>
  3364. #include <pwd.h>
  3365. #include <setjmp.h>
  3366. #include <sgtty.h>
  3367. #include <signal.h>
  3368. #include <stdbool.h>
  3369. #include <stdint.h>
  3370. #include <stdio.h>
  3371. #include <stdlib.h>
  3372. #include <string.h>
  3373. #include <strings.h>
  3374. #include <stropts.h>
  3375. #include <termio.h>
  3376. #include <termios.h>
  3377. #include <time.h>
  3378. #include <unistd.h>
  3379. #include <utime.h>
  3380. #include <stddef.h>
  3381. #include <dlfcn.h>
  3382. #include <malloc.h>
  3383. #include <memory.h>
  3384. #include <netinet/if_ether.h>
  3385. #include <stdint.h>
  3386. #include <sys/utsname.h>
  3387. int main(int argc, char** argv)
  3388. {
  3389. (void)argv;
  3390. #ifndef geteuid
  3391. return ((int*)(&geteuid))[argc];
  3392. #else
  3393. (void)argc;
  3394. return 0;
  3395. #endif
  3396. }
  3397. Determining if the utime exist passed with the following output:
  3398. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  3399. Run Build Command:"/usr/bin/make" "cmTC_bc7ae/fast"
  3400. make -f CMakeFiles/cmTC_bc7ae.dir/build.make CMakeFiles/cmTC_bc7ae.dir/build
  3401. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3402. Building C object CMakeFiles/cmTC_bc7ae.dir/CheckSymbolExists.c.o
  3403. /usr/bin/gcc -w -o CMakeFiles/cmTC_bc7ae.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  3404. Linking C executable cmTC_bc7ae
  3405. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_bc7ae.dir/link.txt --verbose=1
  3406. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_bc7ae.dir/CheckSymbolExists.c.o -o cmTC_bc7ae
  3407. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3408. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  3409. /* */
  3410. #include <stdio.h>
  3411. #include <inttypes.h>
  3412. #include <sys/ioctl.h>
  3413. #include <sys/param.h>
  3414. #include <sys/poll.h>
  3415. #include <sys/resource.h>
  3416. #include <sys/select.h>
  3417. #include <sys/socket.h>
  3418. #include <sys/stat.h>
  3419. #include <sys/time.h>
  3420. #include <sys/types.h>
  3421. #include <sys/uio.h>
  3422. #include <sys/un.h>
  3423. #include <sys/xattr.h>
  3424. #include <alloca.h>
  3425. #include <arpa/inet.h>
  3426. #include <arpa/tftp.h>
  3427. #include <assert.h>
  3428. #include <err.h>
  3429. #include <errno.h>
  3430. #include <fcntl.h>
  3431. #include <ifaddrs.h>
  3432. #include <libgen.h>
  3433. #include <locale.h>
  3434. #include <net/if.h>
  3435. #include <netdb.h>
  3436. #include <netinet/in.h>
  3437. #include <netinet/tcp.h>
  3438. #include <poll.h>
  3439. #include <pwd.h>
  3440. #include <setjmp.h>
  3441. #include <sgtty.h>
  3442. #include <signal.h>
  3443. #include <stdbool.h>
  3444. #include <stdint.h>
  3445. #include <stdio.h>
  3446. #include <stdlib.h>
  3447. #include <string.h>
  3448. #include <strings.h>
  3449. #include <stropts.h>
  3450. #include <termio.h>
  3451. #include <termios.h>
  3452. #include <time.h>
  3453. #include <unistd.h>
  3454. #include <utime.h>
  3455. #include <stddef.h>
  3456. #include <dlfcn.h>
  3457. #include <malloc.h>
  3458. #include <memory.h>
  3459. #include <netinet/if_ether.h>
  3460. #include <stdint.h>
  3461. #include <sys/utsname.h>
  3462. int main(int argc, char** argv)
  3463. {
  3464. (void)argv;
  3465. #ifndef utime
  3466. return ((int*)(&utime))[argc];
  3467. #else
  3468. (void)argc;
  3469. return 0;
  3470. #endif
  3471. }
  3472. Determining if the gmtime_r exist passed with the following output:
  3473. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  3474. Run Build Command:"/usr/bin/make" "cmTC_bdcbf/fast"
  3475. make -f CMakeFiles/cmTC_bdcbf.dir/build.make CMakeFiles/cmTC_bdcbf.dir/build
  3476. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3477. Building C object CMakeFiles/cmTC_bdcbf.dir/CheckSymbolExists.c.o
  3478. /usr/bin/gcc -w -o CMakeFiles/cmTC_bdcbf.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  3479. Linking C executable cmTC_bdcbf
  3480. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_bdcbf.dir/link.txt --verbose=1
  3481. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_bdcbf.dir/CheckSymbolExists.c.o -o cmTC_bdcbf
  3482. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3483. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  3484. /* */
  3485. #include <stdio.h>
  3486. #include <inttypes.h>
  3487. #include <sys/ioctl.h>
  3488. #include <sys/param.h>
  3489. #include <sys/poll.h>
  3490. #include <sys/resource.h>
  3491. #include <sys/select.h>
  3492. #include <sys/socket.h>
  3493. #include <sys/stat.h>
  3494. #include <sys/time.h>
  3495. #include <sys/types.h>
  3496. #include <sys/uio.h>
  3497. #include <sys/un.h>
  3498. #include <sys/xattr.h>
  3499. #include <alloca.h>
  3500. #include <arpa/inet.h>
  3501. #include <arpa/tftp.h>
  3502. #include <assert.h>
  3503. #include <err.h>
  3504. #include <errno.h>
  3505. #include <fcntl.h>
  3506. #include <ifaddrs.h>
  3507. #include <libgen.h>
  3508. #include <locale.h>
  3509. #include <net/if.h>
  3510. #include <netdb.h>
  3511. #include <netinet/in.h>
  3512. #include <netinet/tcp.h>
  3513. #include <poll.h>
  3514. #include <pwd.h>
  3515. #include <setjmp.h>
  3516. #include <sgtty.h>
  3517. #include <signal.h>
  3518. #include <stdbool.h>
  3519. #include <stdint.h>
  3520. #include <stdio.h>
  3521. #include <stdlib.h>
  3522. #include <string.h>
  3523. #include <strings.h>
  3524. #include <stropts.h>
  3525. #include <termio.h>
  3526. #include <termios.h>
  3527. #include <time.h>
  3528. #include <unistd.h>
  3529. #include <utime.h>
  3530. #include <stddef.h>
  3531. #include <dlfcn.h>
  3532. #include <malloc.h>
  3533. #include <memory.h>
  3534. #include <netinet/if_ether.h>
  3535. #include <stdint.h>
  3536. #include <sys/utsname.h>
  3537. int main(int argc, char** argv)
  3538. {
  3539. (void)argv;
  3540. #ifndef gmtime_r
  3541. return ((int*)(&gmtime_r))[argc];
  3542. #else
  3543. (void)argc;
  3544. return 0;
  3545. #endif
  3546. }
  3547. Determining if the localtime_r exist passed with the following output:
  3548. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  3549. Run Build Command:"/usr/bin/make" "cmTC_42809/fast"
  3550. make -f CMakeFiles/cmTC_42809.dir/build.make CMakeFiles/cmTC_42809.dir/build
  3551. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3552. Building C object CMakeFiles/cmTC_42809.dir/CheckSymbolExists.c.o
  3553. /usr/bin/gcc -w -o CMakeFiles/cmTC_42809.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  3554. Linking C executable cmTC_42809
  3555. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_42809.dir/link.txt --verbose=1
  3556. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_42809.dir/CheckSymbolExists.c.o -o cmTC_42809
  3557. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3558. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  3559. /* */
  3560. #include <stdio.h>
  3561. #include <inttypes.h>
  3562. #include <sys/ioctl.h>
  3563. #include <sys/param.h>
  3564. #include <sys/poll.h>
  3565. #include <sys/resource.h>
  3566. #include <sys/select.h>
  3567. #include <sys/socket.h>
  3568. #include <sys/stat.h>
  3569. #include <sys/time.h>
  3570. #include <sys/types.h>
  3571. #include <sys/uio.h>
  3572. #include <sys/un.h>
  3573. #include <sys/xattr.h>
  3574. #include <alloca.h>
  3575. #include <arpa/inet.h>
  3576. #include <arpa/tftp.h>
  3577. #include <assert.h>
  3578. #include <err.h>
  3579. #include <errno.h>
  3580. #include <fcntl.h>
  3581. #include <ifaddrs.h>
  3582. #include <libgen.h>
  3583. #include <locale.h>
  3584. #include <net/if.h>
  3585. #include <netdb.h>
  3586. #include <netinet/in.h>
  3587. #include <netinet/tcp.h>
  3588. #include <poll.h>
  3589. #include <pwd.h>
  3590. #include <setjmp.h>
  3591. #include <sgtty.h>
  3592. #include <signal.h>
  3593. #include <stdbool.h>
  3594. #include <stdint.h>
  3595. #include <stdio.h>
  3596. #include <stdlib.h>
  3597. #include <string.h>
  3598. #include <strings.h>
  3599. #include <stropts.h>
  3600. #include <termio.h>
  3601. #include <termios.h>
  3602. #include <time.h>
  3603. #include <unistd.h>
  3604. #include <utime.h>
  3605. #include <stddef.h>
  3606. #include <dlfcn.h>
  3607. #include <malloc.h>
  3608. #include <memory.h>
  3609. #include <netinet/if_ether.h>
  3610. #include <stdint.h>
  3611. #include <sys/utsname.h>
  3612. int main(int argc, char** argv)
  3613. {
  3614. (void)argv;
  3615. #ifndef localtime_r
  3616. return ((int*)(&localtime_r))[argc];
  3617. #else
  3618. (void)argc;
  3619. return 0;
  3620. #endif
  3621. }
  3622. Determining if the gethostbyname exist passed with the following output:
  3623. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  3624. Run Build Command:"/usr/bin/make" "cmTC_f0d5d/fast"
  3625. make -f CMakeFiles/cmTC_f0d5d.dir/build.make CMakeFiles/cmTC_f0d5d.dir/build
  3626. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3627. Building C object CMakeFiles/cmTC_f0d5d.dir/CheckSymbolExists.c.o
  3628. /usr/bin/gcc -w -o CMakeFiles/cmTC_f0d5d.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  3629. Linking C executable cmTC_f0d5d
  3630. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f0d5d.dir/link.txt --verbose=1
  3631. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_f0d5d.dir/CheckSymbolExists.c.o -o cmTC_f0d5d
  3632. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3633. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  3634. /* */
  3635. #include <stdio.h>
  3636. #include <inttypes.h>
  3637. #include <sys/ioctl.h>
  3638. #include <sys/param.h>
  3639. #include <sys/poll.h>
  3640. #include <sys/resource.h>
  3641. #include <sys/select.h>
  3642. #include <sys/socket.h>
  3643. #include <sys/stat.h>
  3644. #include <sys/time.h>
  3645. #include <sys/types.h>
  3646. #include <sys/uio.h>
  3647. #include <sys/un.h>
  3648. #include <sys/xattr.h>
  3649. #include <alloca.h>
  3650. #include <arpa/inet.h>
  3651. #include <arpa/tftp.h>
  3652. #include <assert.h>
  3653. #include <err.h>
  3654. #include <errno.h>
  3655. #include <fcntl.h>
  3656. #include <ifaddrs.h>
  3657. #include <libgen.h>
  3658. #include <locale.h>
  3659. #include <net/if.h>
  3660. #include <netdb.h>
  3661. #include <netinet/in.h>
  3662. #include <netinet/tcp.h>
  3663. #include <poll.h>
  3664. #include <pwd.h>
  3665. #include <setjmp.h>
  3666. #include <sgtty.h>
  3667. #include <signal.h>
  3668. #include <stdbool.h>
  3669. #include <stdint.h>
  3670. #include <stdio.h>
  3671. #include <stdlib.h>
  3672. #include <string.h>
  3673. #include <strings.h>
  3674. #include <stropts.h>
  3675. #include <termio.h>
  3676. #include <termios.h>
  3677. #include <time.h>
  3678. #include <unistd.h>
  3679. #include <utime.h>
  3680. #include <stddef.h>
  3681. #include <dlfcn.h>
  3682. #include <malloc.h>
  3683. #include <memory.h>
  3684. #include <netinet/if_ether.h>
  3685. #include <stdint.h>
  3686. #include <sys/utsname.h>
  3687. int main(int argc, char** argv)
  3688. {
  3689. (void)argv;
  3690. #ifndef gethostbyname
  3691. return ((int*)(&gethostbyname))[argc];
  3692. #else
  3693. (void)argc;
  3694. return 0;
  3695. #endif
  3696. }
  3697. Determining if the gethostbyname_r exist passed with the following output:
  3698. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  3699. Run Build Command:"/usr/bin/make" "cmTC_cbf5f/fast"
  3700. make -f CMakeFiles/cmTC_cbf5f.dir/build.make CMakeFiles/cmTC_cbf5f.dir/build
  3701. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3702. Building C object CMakeFiles/cmTC_cbf5f.dir/CheckSymbolExists.c.o
  3703. /usr/bin/gcc -w -o CMakeFiles/cmTC_cbf5f.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  3704. Linking C executable cmTC_cbf5f
  3705. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_cbf5f.dir/link.txt --verbose=1
  3706. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_cbf5f.dir/CheckSymbolExists.c.o -o cmTC_cbf5f
  3707. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3708. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  3709. /* */
  3710. #include <stdio.h>
  3711. #include <inttypes.h>
  3712. #include <sys/ioctl.h>
  3713. #include <sys/param.h>
  3714. #include <sys/poll.h>
  3715. #include <sys/resource.h>
  3716. #include <sys/select.h>
  3717. #include <sys/socket.h>
  3718. #include <sys/stat.h>
  3719. #include <sys/time.h>
  3720. #include <sys/types.h>
  3721. #include <sys/uio.h>
  3722. #include <sys/un.h>
  3723. #include <sys/xattr.h>
  3724. #include <alloca.h>
  3725. #include <arpa/inet.h>
  3726. #include <arpa/tftp.h>
  3727. #include <assert.h>
  3728. #include <err.h>
  3729. #include <errno.h>
  3730. #include <fcntl.h>
  3731. #include <ifaddrs.h>
  3732. #include <libgen.h>
  3733. #include <locale.h>
  3734. #include <net/if.h>
  3735. #include <netdb.h>
  3736. #include <netinet/in.h>
  3737. #include <netinet/tcp.h>
  3738. #include <poll.h>
  3739. #include <pwd.h>
  3740. #include <setjmp.h>
  3741. #include <sgtty.h>
  3742. #include <signal.h>
  3743. #include <stdbool.h>
  3744. #include <stdint.h>
  3745. #include <stdio.h>
  3746. #include <stdlib.h>
  3747. #include <string.h>
  3748. #include <strings.h>
  3749. #include <stropts.h>
  3750. #include <termio.h>
  3751. #include <termios.h>
  3752. #include <time.h>
  3753. #include <unistd.h>
  3754. #include <utime.h>
  3755. #include <stddef.h>
  3756. #include <dlfcn.h>
  3757. #include <malloc.h>
  3758. #include <memory.h>
  3759. #include <netinet/if_ether.h>
  3760. #include <stdint.h>
  3761. #include <sys/utsname.h>
  3762. int main(int argc, char** argv)
  3763. {
  3764. (void)argv;
  3765. #ifndef gethostbyname_r
  3766. return ((int*)(&gethostbyname_r))[argc];
  3767. #else
  3768. (void)argc;
  3769. return 0;
  3770. #endif
  3771. }
  3772. Determining if the signal exist passed with the following output:
  3773. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  3774. Run Build Command:"/usr/bin/make" "cmTC_b8ac7/fast"
  3775. make -f CMakeFiles/cmTC_b8ac7.dir/build.make CMakeFiles/cmTC_b8ac7.dir/build
  3776. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3777. Building C object CMakeFiles/cmTC_b8ac7.dir/CheckSymbolExists.c.o
  3778. /usr/bin/gcc -w -o CMakeFiles/cmTC_b8ac7.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  3779. Linking C executable cmTC_b8ac7
  3780. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b8ac7.dir/link.txt --verbose=1
  3781. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_b8ac7.dir/CheckSymbolExists.c.o -o cmTC_b8ac7
  3782. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3783. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  3784. /* */
  3785. #include <stdio.h>
  3786. #include <inttypes.h>
  3787. #include <sys/ioctl.h>
  3788. #include <sys/param.h>
  3789. #include <sys/poll.h>
  3790. #include <sys/resource.h>
  3791. #include <sys/select.h>
  3792. #include <sys/socket.h>
  3793. #include <sys/stat.h>
  3794. #include <sys/time.h>
  3795. #include <sys/types.h>
  3796. #include <sys/uio.h>
  3797. #include <sys/un.h>
  3798. #include <sys/xattr.h>
  3799. #include <alloca.h>
  3800. #include <arpa/inet.h>
  3801. #include <arpa/tftp.h>
  3802. #include <assert.h>
  3803. #include <err.h>
  3804. #include <errno.h>
  3805. #include <fcntl.h>
  3806. #include <ifaddrs.h>
  3807. #include <libgen.h>
  3808. #include <locale.h>
  3809. #include <net/if.h>
  3810. #include <netdb.h>
  3811. #include <netinet/in.h>
  3812. #include <netinet/tcp.h>
  3813. #include <poll.h>
  3814. #include <pwd.h>
  3815. #include <setjmp.h>
  3816. #include <sgtty.h>
  3817. #include <signal.h>
  3818. #include <stdbool.h>
  3819. #include <stdint.h>
  3820. #include <stdio.h>
  3821. #include <stdlib.h>
  3822. #include <string.h>
  3823. #include <strings.h>
  3824. #include <stropts.h>
  3825. #include <termio.h>
  3826. #include <termios.h>
  3827. #include <time.h>
  3828. #include <unistd.h>
  3829. #include <utime.h>
  3830. #include <stddef.h>
  3831. #include <dlfcn.h>
  3832. #include <malloc.h>
  3833. #include <memory.h>
  3834. #include <netinet/if_ether.h>
  3835. #include <stdint.h>
  3836. #include <sys/utsname.h>
  3837. int main(int argc, char** argv)
  3838. {
  3839. (void)argv;
  3840. #ifndef signal
  3841. return ((int*)(&signal))[argc];
  3842. #else
  3843. (void)argc;
  3844. return 0;
  3845. #endif
  3846. }
  3847. Determining if the SIGALRM exist passed with the following output:
  3848. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  3849. Run Build Command:"/usr/bin/make" "cmTC_b0204/fast"
  3850. make -f CMakeFiles/cmTC_b0204.dir/build.make CMakeFiles/cmTC_b0204.dir/build
  3851. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3852. Building C object CMakeFiles/cmTC_b0204.dir/CheckSymbolExists.c.o
  3853. /usr/bin/gcc -w -o CMakeFiles/cmTC_b0204.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  3854. Linking C executable cmTC_b0204
  3855. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b0204.dir/link.txt --verbose=1
  3856. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_b0204.dir/CheckSymbolExists.c.o -o cmTC_b0204
  3857. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3858. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  3859. /* */
  3860. #include <stdio.h>
  3861. #include <inttypes.h>
  3862. #include <sys/ioctl.h>
  3863. #include <sys/param.h>
  3864. #include <sys/poll.h>
  3865. #include <sys/resource.h>
  3866. #include <sys/select.h>
  3867. #include <sys/socket.h>
  3868. #include <sys/stat.h>
  3869. #include <sys/time.h>
  3870. #include <sys/types.h>
  3871. #include <sys/uio.h>
  3872. #include <sys/un.h>
  3873. #include <sys/xattr.h>
  3874. #include <alloca.h>
  3875. #include <arpa/inet.h>
  3876. #include <arpa/tftp.h>
  3877. #include <assert.h>
  3878. #include <err.h>
  3879. #include <errno.h>
  3880. #include <fcntl.h>
  3881. #include <ifaddrs.h>
  3882. #include <libgen.h>
  3883. #include <locale.h>
  3884. #include <net/if.h>
  3885. #include <netdb.h>
  3886. #include <netinet/in.h>
  3887. #include <netinet/tcp.h>
  3888. #include <poll.h>
  3889. #include <pwd.h>
  3890. #include <setjmp.h>
  3891. #include <sgtty.h>
  3892. #include <signal.h>
  3893. #include <stdbool.h>
  3894. #include <stdint.h>
  3895. #include <stdio.h>
  3896. #include <stdlib.h>
  3897. #include <string.h>
  3898. #include <strings.h>
  3899. #include <stropts.h>
  3900. #include <termio.h>
  3901. #include <termios.h>
  3902. #include <time.h>
  3903. #include <unistd.h>
  3904. #include <utime.h>
  3905. #include <stddef.h>
  3906. #include <dlfcn.h>
  3907. #include <malloc.h>
  3908. #include <memory.h>
  3909. #include <netinet/if_ether.h>
  3910. #include <stdint.h>
  3911. #include <sys/utsname.h>
  3912. int main(int argc, char** argv)
  3913. {
  3914. (void)argv;
  3915. #ifndef SIGALRM
  3916. return ((int*)(&SIGALRM))[argc];
  3917. #else
  3918. (void)argc;
  3919. return 0;
  3920. #endif
  3921. }
  3922. Determining if the strtoll exist passed with the following output:
  3923. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  3924. Run Build Command:"/usr/bin/make" "cmTC_a6809/fast"
  3925. make -f CMakeFiles/cmTC_a6809.dir/build.make CMakeFiles/cmTC_a6809.dir/build
  3926. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3927. Building C object CMakeFiles/cmTC_a6809.dir/CheckSymbolExists.c.o
  3928. /usr/bin/gcc -w -o CMakeFiles/cmTC_a6809.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  3929. Linking C executable cmTC_a6809
  3930. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a6809.dir/link.txt --verbose=1
  3931. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_a6809.dir/CheckSymbolExists.c.o -o cmTC_a6809
  3932. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  3933. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  3934. /* */
  3935. #include <stdio.h>
  3936. #include <inttypes.h>
  3937. #include <sys/ioctl.h>
  3938. #include <sys/param.h>
  3939. #include <sys/poll.h>
  3940. #include <sys/resource.h>
  3941. #include <sys/select.h>
  3942. #include <sys/socket.h>
  3943. #include <sys/stat.h>
  3944. #include <sys/time.h>
  3945. #include <sys/types.h>
  3946. #include <sys/uio.h>
  3947. #include <sys/un.h>
  3948. #include <sys/xattr.h>
  3949. #include <alloca.h>
  3950. #include <arpa/inet.h>
  3951. #include <arpa/tftp.h>
  3952. #include <assert.h>
  3953. #include <err.h>
  3954. #include <errno.h>
  3955. #include <fcntl.h>
  3956. #include <ifaddrs.h>
  3957. #include <libgen.h>
  3958. #include <locale.h>
  3959. #include <net/if.h>
  3960. #include <netdb.h>
  3961. #include <netinet/in.h>
  3962. #include <netinet/tcp.h>
  3963. #include <poll.h>
  3964. #include <pwd.h>
  3965. #include <setjmp.h>
  3966. #include <sgtty.h>
  3967. #include <signal.h>
  3968. #include <stdbool.h>
  3969. #include <stdint.h>
  3970. #include <stdio.h>
  3971. #include <stdlib.h>
  3972. #include <string.h>
  3973. #include <strings.h>
  3974. #include <stropts.h>
  3975. #include <termio.h>
  3976. #include <termios.h>
  3977. #include <time.h>
  3978. #include <unistd.h>
  3979. #include <utime.h>
  3980. #include <stddef.h>
  3981. #include <dlfcn.h>
  3982. #include <malloc.h>
  3983. #include <memory.h>
  3984. #include <netinet/if_ether.h>
  3985. #include <stdint.h>
  3986. #include <sys/utsname.h>
  3987. int main(int argc, char** argv)
  3988. {
  3989. (void)argv;
  3990. #ifndef strtoll
  3991. return ((int*)(&strtoll))[argc];
  3992. #else
  3993. (void)argc;
  3994. return 0;
  3995. #endif
  3996. }
  3997. Determining if the strerror_r exist passed with the following output:
  3998. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  3999. Run Build Command:"/usr/bin/make" "cmTC_7f6c8/fast"
  4000. make -f CMakeFiles/cmTC_7f6c8.dir/build.make CMakeFiles/cmTC_7f6c8.dir/build
  4001. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4002. Building C object CMakeFiles/cmTC_7f6c8.dir/CheckSymbolExists.c.o
  4003. /usr/bin/gcc -w -o CMakeFiles/cmTC_7f6c8.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  4004. Linking C executable cmTC_7f6c8
  4005. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7f6c8.dir/link.txt --verbose=1
  4006. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_7f6c8.dir/CheckSymbolExists.c.o -o cmTC_7f6c8
  4007. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4008. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  4009. /* */
  4010. #include <stdio.h>
  4011. #include <inttypes.h>
  4012. #include <sys/ioctl.h>
  4013. #include <sys/param.h>
  4014. #include <sys/poll.h>
  4015. #include <sys/resource.h>
  4016. #include <sys/select.h>
  4017. #include <sys/socket.h>
  4018. #include <sys/stat.h>
  4019. #include <sys/time.h>
  4020. #include <sys/types.h>
  4021. #include <sys/uio.h>
  4022. #include <sys/un.h>
  4023. #include <sys/xattr.h>
  4024. #include <alloca.h>
  4025. #include <arpa/inet.h>
  4026. #include <arpa/tftp.h>
  4027. #include <assert.h>
  4028. #include <err.h>
  4029. #include <errno.h>
  4030. #include <fcntl.h>
  4031. #include <ifaddrs.h>
  4032. #include <libgen.h>
  4033. #include <locale.h>
  4034. #include <net/if.h>
  4035. #include <netdb.h>
  4036. #include <netinet/in.h>
  4037. #include <netinet/tcp.h>
  4038. #include <poll.h>
  4039. #include <pwd.h>
  4040. #include <setjmp.h>
  4041. #include <sgtty.h>
  4042. #include <signal.h>
  4043. #include <stdbool.h>
  4044. #include <stdint.h>
  4045. #include <stdio.h>
  4046. #include <stdlib.h>
  4047. #include <string.h>
  4048. #include <strings.h>
  4049. #include <stropts.h>
  4050. #include <termio.h>
  4051. #include <termios.h>
  4052. #include <time.h>
  4053. #include <unistd.h>
  4054. #include <utime.h>
  4055. #include <stddef.h>
  4056. #include <dlfcn.h>
  4057. #include <malloc.h>
  4058. #include <memory.h>
  4059. #include <netinet/if_ether.h>
  4060. #include <stdint.h>
  4061. #include <sys/utsname.h>
  4062. int main(int argc, char** argv)
  4063. {
  4064. (void)argv;
  4065. #ifndef strerror_r
  4066. return ((int*)(&strerror_r))[argc];
  4067. #else
  4068. (void)argc;
  4069. return 0;
  4070. #endif
  4071. }
  4072. Determining if the siginterrupt exist passed with the following output:
  4073. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  4074. Run Build Command:"/usr/bin/make" "cmTC_6a00f/fast"
  4075. make -f CMakeFiles/cmTC_6a00f.dir/build.make CMakeFiles/cmTC_6a00f.dir/build
  4076. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4077. Building C object CMakeFiles/cmTC_6a00f.dir/CheckSymbolExists.c.o
  4078. /usr/bin/gcc -w -o CMakeFiles/cmTC_6a00f.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  4079. Linking C executable cmTC_6a00f
  4080. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6a00f.dir/link.txt --verbose=1
  4081. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_6a00f.dir/CheckSymbolExists.c.o -o cmTC_6a00f
  4082. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4083. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  4084. /* */
  4085. #include <stdio.h>
  4086. #include <inttypes.h>
  4087. #include <sys/ioctl.h>
  4088. #include <sys/param.h>
  4089. #include <sys/poll.h>
  4090. #include <sys/resource.h>
  4091. #include <sys/select.h>
  4092. #include <sys/socket.h>
  4093. #include <sys/stat.h>
  4094. #include <sys/time.h>
  4095. #include <sys/types.h>
  4096. #include <sys/uio.h>
  4097. #include <sys/un.h>
  4098. #include <sys/xattr.h>
  4099. #include <alloca.h>
  4100. #include <arpa/inet.h>
  4101. #include <arpa/tftp.h>
  4102. #include <assert.h>
  4103. #include <err.h>
  4104. #include <errno.h>
  4105. #include <fcntl.h>
  4106. #include <ifaddrs.h>
  4107. #include <libgen.h>
  4108. #include <locale.h>
  4109. #include <net/if.h>
  4110. #include <netdb.h>
  4111. #include <netinet/in.h>
  4112. #include <netinet/tcp.h>
  4113. #include <poll.h>
  4114. #include <pwd.h>
  4115. #include <setjmp.h>
  4116. #include <sgtty.h>
  4117. #include <signal.h>
  4118. #include <stdbool.h>
  4119. #include <stdint.h>
  4120. #include <stdio.h>
  4121. #include <stdlib.h>
  4122. #include <string.h>
  4123. #include <strings.h>
  4124. #include <stropts.h>
  4125. #include <termio.h>
  4126. #include <termios.h>
  4127. #include <time.h>
  4128. #include <unistd.h>
  4129. #include <utime.h>
  4130. #include <stddef.h>
  4131. #include <dlfcn.h>
  4132. #include <malloc.h>
  4133. #include <memory.h>
  4134. #include <netinet/if_ether.h>
  4135. #include <stdint.h>
  4136. #include <sys/utsname.h>
  4137. int main(int argc, char** argv)
  4138. {
  4139. (void)argv;
  4140. #ifndef siginterrupt
  4141. return ((int*)(&siginterrupt))[argc];
  4142. #else
  4143. (void)argc;
  4144. return 0;
  4145. #endif
  4146. }
  4147. Determining if the fork exist passed with the following output:
  4148. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  4149. Run Build Command:"/usr/bin/make" "cmTC_8be50/fast"
  4150. make -f CMakeFiles/cmTC_8be50.dir/build.make CMakeFiles/cmTC_8be50.dir/build
  4151. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4152. Building C object CMakeFiles/cmTC_8be50.dir/CheckSymbolExists.c.o
  4153. /usr/bin/gcc -w -o CMakeFiles/cmTC_8be50.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  4154. Linking C executable cmTC_8be50
  4155. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8be50.dir/link.txt --verbose=1
  4156. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_8be50.dir/CheckSymbolExists.c.o -o cmTC_8be50
  4157. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4158. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  4159. /* */
  4160. #include <stdio.h>
  4161. #include <inttypes.h>
  4162. #include <sys/ioctl.h>
  4163. #include <sys/param.h>
  4164. #include <sys/poll.h>
  4165. #include <sys/resource.h>
  4166. #include <sys/select.h>
  4167. #include <sys/socket.h>
  4168. #include <sys/stat.h>
  4169. #include <sys/time.h>
  4170. #include <sys/types.h>
  4171. #include <sys/uio.h>
  4172. #include <sys/un.h>
  4173. #include <sys/xattr.h>
  4174. #include <alloca.h>
  4175. #include <arpa/inet.h>
  4176. #include <arpa/tftp.h>
  4177. #include <assert.h>
  4178. #include <err.h>
  4179. #include <errno.h>
  4180. #include <fcntl.h>
  4181. #include <ifaddrs.h>
  4182. #include <libgen.h>
  4183. #include <locale.h>
  4184. #include <net/if.h>
  4185. #include <netdb.h>
  4186. #include <netinet/in.h>
  4187. #include <netinet/tcp.h>
  4188. #include <poll.h>
  4189. #include <pwd.h>
  4190. #include <setjmp.h>
  4191. #include <sgtty.h>
  4192. #include <signal.h>
  4193. #include <stdbool.h>
  4194. #include <stdint.h>
  4195. #include <stdio.h>
  4196. #include <stdlib.h>
  4197. #include <string.h>
  4198. #include <strings.h>
  4199. #include <stropts.h>
  4200. #include <termio.h>
  4201. #include <termios.h>
  4202. #include <time.h>
  4203. #include <unistd.h>
  4204. #include <utime.h>
  4205. #include <stddef.h>
  4206. #include <dlfcn.h>
  4207. #include <malloc.h>
  4208. #include <memory.h>
  4209. #include <netinet/if_ether.h>
  4210. #include <stdint.h>
  4211. #include <sys/utsname.h>
  4212. int main(int argc, char** argv)
  4213. {
  4214. (void)argv;
  4215. #ifndef fork
  4216. return ((int*)(&fork))[argc];
  4217. #else
  4218. (void)argc;
  4219. return 0;
  4220. #endif
  4221. }
  4222. Determining if the getaddrinfo exist passed with the following output:
  4223. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  4224. Run Build Command:"/usr/bin/make" "cmTC_985cf/fast"
  4225. make -f CMakeFiles/cmTC_985cf.dir/build.make CMakeFiles/cmTC_985cf.dir/build
  4226. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4227. Building C object CMakeFiles/cmTC_985cf.dir/CheckSymbolExists.c.o
  4228. /usr/bin/gcc -w -o CMakeFiles/cmTC_985cf.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  4229. Linking C executable cmTC_985cf
  4230. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_985cf.dir/link.txt --verbose=1
  4231. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_985cf.dir/CheckSymbolExists.c.o -o cmTC_985cf
  4232. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4233. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  4234. /* */
  4235. #include <stdio.h>
  4236. #include <inttypes.h>
  4237. #include <sys/ioctl.h>
  4238. #include <sys/param.h>
  4239. #include <sys/poll.h>
  4240. #include <sys/resource.h>
  4241. #include <sys/select.h>
  4242. #include <sys/socket.h>
  4243. #include <sys/stat.h>
  4244. #include <sys/time.h>
  4245. #include <sys/types.h>
  4246. #include <sys/uio.h>
  4247. #include <sys/un.h>
  4248. #include <sys/xattr.h>
  4249. #include <alloca.h>
  4250. #include <arpa/inet.h>
  4251. #include <arpa/tftp.h>
  4252. #include <assert.h>
  4253. #include <err.h>
  4254. #include <errno.h>
  4255. #include <fcntl.h>
  4256. #include <ifaddrs.h>
  4257. #include <libgen.h>
  4258. #include <locale.h>
  4259. #include <net/if.h>
  4260. #include <netdb.h>
  4261. #include <netinet/in.h>
  4262. #include <netinet/tcp.h>
  4263. #include <poll.h>
  4264. #include <pwd.h>
  4265. #include <setjmp.h>
  4266. #include <sgtty.h>
  4267. #include <signal.h>
  4268. #include <stdbool.h>
  4269. #include <stdint.h>
  4270. #include <stdio.h>
  4271. #include <stdlib.h>
  4272. #include <string.h>
  4273. #include <strings.h>
  4274. #include <stropts.h>
  4275. #include <termio.h>
  4276. #include <termios.h>
  4277. #include <time.h>
  4278. #include <unistd.h>
  4279. #include <utime.h>
  4280. #include <stddef.h>
  4281. #include <dlfcn.h>
  4282. #include <malloc.h>
  4283. #include <memory.h>
  4284. #include <netinet/if_ether.h>
  4285. #include <stdint.h>
  4286. #include <sys/utsname.h>
  4287. int main(int argc, char** argv)
  4288. {
  4289. (void)argv;
  4290. #ifndef getaddrinfo
  4291. return ((int*)(&getaddrinfo))[argc];
  4292. #else
  4293. (void)argc;
  4294. return 0;
  4295. #endif
  4296. }
  4297. Determining if the freeaddrinfo exist passed with the following output:
  4298. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  4299. Run Build Command:"/usr/bin/make" "cmTC_70b48/fast"
  4300. make -f CMakeFiles/cmTC_70b48.dir/build.make CMakeFiles/cmTC_70b48.dir/build
  4301. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4302. Building C object CMakeFiles/cmTC_70b48.dir/CheckSymbolExists.c.o
  4303. /usr/bin/gcc -w -o CMakeFiles/cmTC_70b48.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  4304. Linking C executable cmTC_70b48
  4305. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_70b48.dir/link.txt --verbose=1
  4306. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_70b48.dir/CheckSymbolExists.c.o -o cmTC_70b48
  4307. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4308. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  4309. /* */
  4310. #include <stdio.h>
  4311. #include <inttypes.h>
  4312. #include <sys/ioctl.h>
  4313. #include <sys/param.h>
  4314. #include <sys/poll.h>
  4315. #include <sys/resource.h>
  4316. #include <sys/select.h>
  4317. #include <sys/socket.h>
  4318. #include <sys/stat.h>
  4319. #include <sys/time.h>
  4320. #include <sys/types.h>
  4321. #include <sys/uio.h>
  4322. #include <sys/un.h>
  4323. #include <sys/xattr.h>
  4324. #include <alloca.h>
  4325. #include <arpa/inet.h>
  4326. #include <arpa/tftp.h>
  4327. #include <assert.h>
  4328. #include <err.h>
  4329. #include <errno.h>
  4330. #include <fcntl.h>
  4331. #include <ifaddrs.h>
  4332. #include <libgen.h>
  4333. #include <locale.h>
  4334. #include <net/if.h>
  4335. #include <netdb.h>
  4336. #include <netinet/in.h>
  4337. #include <netinet/tcp.h>
  4338. #include <poll.h>
  4339. #include <pwd.h>
  4340. #include <setjmp.h>
  4341. #include <sgtty.h>
  4342. #include <signal.h>
  4343. #include <stdbool.h>
  4344. #include <stdint.h>
  4345. #include <stdio.h>
  4346. #include <stdlib.h>
  4347. #include <string.h>
  4348. #include <strings.h>
  4349. #include <stropts.h>
  4350. #include <termio.h>
  4351. #include <termios.h>
  4352. #include <time.h>
  4353. #include <unistd.h>
  4354. #include <utime.h>
  4355. #include <stddef.h>
  4356. #include <dlfcn.h>
  4357. #include <malloc.h>
  4358. #include <memory.h>
  4359. #include <netinet/if_ether.h>
  4360. #include <stdint.h>
  4361. #include <sys/utsname.h>
  4362. int main(int argc, char** argv)
  4363. {
  4364. (void)argv;
  4365. #ifndef freeaddrinfo
  4366. return ((int*)(&freeaddrinfo))[argc];
  4367. #else
  4368. (void)argc;
  4369. return 0;
  4370. #endif
  4371. }
  4372. Determining if the freeifaddrs exist passed with the following output:
  4373. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  4374. Run Build Command:"/usr/bin/make" "cmTC_d617f/fast"
  4375. make -f CMakeFiles/cmTC_d617f.dir/build.make CMakeFiles/cmTC_d617f.dir/build
  4376. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4377. Building C object CMakeFiles/cmTC_d617f.dir/CheckSymbolExists.c.o
  4378. /usr/bin/gcc -w -o CMakeFiles/cmTC_d617f.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  4379. Linking C executable cmTC_d617f
  4380. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d617f.dir/link.txt --verbose=1
  4381. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_d617f.dir/CheckSymbolExists.c.o -o cmTC_d617f
  4382. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4383. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  4384. /* */
  4385. #include <stdio.h>
  4386. #include <inttypes.h>
  4387. #include <sys/ioctl.h>
  4388. #include <sys/param.h>
  4389. #include <sys/poll.h>
  4390. #include <sys/resource.h>
  4391. #include <sys/select.h>
  4392. #include <sys/socket.h>
  4393. #include <sys/stat.h>
  4394. #include <sys/time.h>
  4395. #include <sys/types.h>
  4396. #include <sys/uio.h>
  4397. #include <sys/un.h>
  4398. #include <sys/xattr.h>
  4399. #include <alloca.h>
  4400. #include <arpa/inet.h>
  4401. #include <arpa/tftp.h>
  4402. #include <assert.h>
  4403. #include <err.h>
  4404. #include <errno.h>
  4405. #include <fcntl.h>
  4406. #include <ifaddrs.h>
  4407. #include <libgen.h>
  4408. #include <locale.h>
  4409. #include <net/if.h>
  4410. #include <netdb.h>
  4411. #include <netinet/in.h>
  4412. #include <netinet/tcp.h>
  4413. #include <poll.h>
  4414. #include <pwd.h>
  4415. #include <setjmp.h>
  4416. #include <sgtty.h>
  4417. #include <signal.h>
  4418. #include <stdbool.h>
  4419. #include <stdint.h>
  4420. #include <stdio.h>
  4421. #include <stdlib.h>
  4422. #include <string.h>
  4423. #include <strings.h>
  4424. #include <stropts.h>
  4425. #include <termio.h>
  4426. #include <termios.h>
  4427. #include <time.h>
  4428. #include <unistd.h>
  4429. #include <utime.h>
  4430. #include <stddef.h>
  4431. #include <dlfcn.h>
  4432. #include <malloc.h>
  4433. #include <memory.h>
  4434. #include <netinet/if_ether.h>
  4435. #include <stdint.h>
  4436. #include <sys/utsname.h>
  4437. int main(int argc, char** argv)
  4438. {
  4439. (void)argv;
  4440. #ifndef freeifaddrs
  4441. return ((int*)(&freeifaddrs))[argc];
  4442. #else
  4443. (void)argc;
  4444. return 0;
  4445. #endif
  4446. }
  4447. Determining if the pipe exist passed with the following output:
  4448. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  4449. Run Build Command:"/usr/bin/make" "cmTC_d39fe/fast"
  4450. make -f CMakeFiles/cmTC_d39fe.dir/build.make CMakeFiles/cmTC_d39fe.dir/build
  4451. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4452. Building C object CMakeFiles/cmTC_d39fe.dir/CheckSymbolExists.c.o
  4453. /usr/bin/gcc -w -o CMakeFiles/cmTC_d39fe.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  4454. Linking C executable cmTC_d39fe
  4455. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d39fe.dir/link.txt --verbose=1
  4456. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_d39fe.dir/CheckSymbolExists.c.o -o cmTC_d39fe
  4457. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4458. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  4459. /* */
  4460. #include <stdio.h>
  4461. #include <inttypes.h>
  4462. #include <sys/ioctl.h>
  4463. #include <sys/param.h>
  4464. #include <sys/poll.h>
  4465. #include <sys/resource.h>
  4466. #include <sys/select.h>
  4467. #include <sys/socket.h>
  4468. #include <sys/stat.h>
  4469. #include <sys/time.h>
  4470. #include <sys/types.h>
  4471. #include <sys/uio.h>
  4472. #include <sys/un.h>
  4473. #include <sys/xattr.h>
  4474. #include <alloca.h>
  4475. #include <arpa/inet.h>
  4476. #include <arpa/tftp.h>
  4477. #include <assert.h>
  4478. #include <err.h>
  4479. #include <errno.h>
  4480. #include <fcntl.h>
  4481. #include <ifaddrs.h>
  4482. #include <libgen.h>
  4483. #include <locale.h>
  4484. #include <net/if.h>
  4485. #include <netdb.h>
  4486. #include <netinet/in.h>
  4487. #include <netinet/tcp.h>
  4488. #include <poll.h>
  4489. #include <pwd.h>
  4490. #include <setjmp.h>
  4491. #include <sgtty.h>
  4492. #include <signal.h>
  4493. #include <stdbool.h>
  4494. #include <stdint.h>
  4495. #include <stdio.h>
  4496. #include <stdlib.h>
  4497. #include <string.h>
  4498. #include <strings.h>
  4499. #include <stropts.h>
  4500. #include <termio.h>
  4501. #include <termios.h>
  4502. #include <time.h>
  4503. #include <unistd.h>
  4504. #include <utime.h>
  4505. #include <stddef.h>
  4506. #include <dlfcn.h>
  4507. #include <malloc.h>
  4508. #include <memory.h>
  4509. #include <netinet/if_ether.h>
  4510. #include <stdint.h>
  4511. #include <sys/utsname.h>
  4512. int main(int argc, char** argv)
  4513. {
  4514. (void)argv;
  4515. #ifndef pipe
  4516. return ((int*)(&pipe))[argc];
  4517. #else
  4518. (void)argc;
  4519. return 0;
  4520. #endif
  4521. }
  4522. Determining if the ftruncate exist passed with the following output:
  4523. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  4524. Run Build Command:"/usr/bin/make" "cmTC_b3e71/fast"
  4525. make -f CMakeFiles/cmTC_b3e71.dir/build.make CMakeFiles/cmTC_b3e71.dir/build
  4526. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4527. Building C object CMakeFiles/cmTC_b3e71.dir/CheckSymbolExists.c.o
  4528. /usr/bin/gcc -w -o CMakeFiles/cmTC_b3e71.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  4529. Linking C executable cmTC_b3e71
  4530. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b3e71.dir/link.txt --verbose=1
  4531. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_b3e71.dir/CheckSymbolExists.c.o -o cmTC_b3e71
  4532. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4533. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  4534. /* */
  4535. #include <stdio.h>
  4536. #include <inttypes.h>
  4537. #include <sys/ioctl.h>
  4538. #include <sys/param.h>
  4539. #include <sys/poll.h>
  4540. #include <sys/resource.h>
  4541. #include <sys/select.h>
  4542. #include <sys/socket.h>
  4543. #include <sys/stat.h>
  4544. #include <sys/time.h>
  4545. #include <sys/types.h>
  4546. #include <sys/uio.h>
  4547. #include <sys/un.h>
  4548. #include <sys/xattr.h>
  4549. #include <alloca.h>
  4550. #include <arpa/inet.h>
  4551. #include <arpa/tftp.h>
  4552. #include <assert.h>
  4553. #include <err.h>
  4554. #include <errno.h>
  4555. #include <fcntl.h>
  4556. #include <ifaddrs.h>
  4557. #include <libgen.h>
  4558. #include <locale.h>
  4559. #include <net/if.h>
  4560. #include <netdb.h>
  4561. #include <netinet/in.h>
  4562. #include <netinet/tcp.h>
  4563. #include <poll.h>
  4564. #include <pwd.h>
  4565. #include <setjmp.h>
  4566. #include <sgtty.h>
  4567. #include <signal.h>
  4568. #include <stdbool.h>
  4569. #include <stdint.h>
  4570. #include <stdio.h>
  4571. #include <stdlib.h>
  4572. #include <string.h>
  4573. #include <strings.h>
  4574. #include <stropts.h>
  4575. #include <termio.h>
  4576. #include <termios.h>
  4577. #include <time.h>
  4578. #include <unistd.h>
  4579. #include <utime.h>
  4580. #include <stddef.h>
  4581. #include <dlfcn.h>
  4582. #include <malloc.h>
  4583. #include <memory.h>
  4584. #include <netinet/if_ether.h>
  4585. #include <stdint.h>
  4586. #include <sys/utsname.h>
  4587. int main(int argc, char** argv)
  4588. {
  4589. (void)argv;
  4590. #ifndef ftruncate
  4591. return ((int*)(&ftruncate))[argc];
  4592. #else
  4593. (void)argc;
  4594. return 0;
  4595. #endif
  4596. }
  4597. Determining if the getprotobyname exist passed with the following output:
  4598. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  4599. Run Build Command:"/usr/bin/make" "cmTC_3adcf/fast"
  4600. make -f CMakeFiles/cmTC_3adcf.dir/build.make CMakeFiles/cmTC_3adcf.dir/build
  4601. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4602. Building C object CMakeFiles/cmTC_3adcf.dir/CheckSymbolExists.c.o
  4603. /usr/bin/gcc -w -o CMakeFiles/cmTC_3adcf.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  4604. Linking C executable cmTC_3adcf
  4605. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3adcf.dir/link.txt --verbose=1
  4606. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_3adcf.dir/CheckSymbolExists.c.o -o cmTC_3adcf
  4607. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4608. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  4609. /* */
  4610. #include <stdio.h>
  4611. #include <inttypes.h>
  4612. #include <sys/ioctl.h>
  4613. #include <sys/param.h>
  4614. #include <sys/poll.h>
  4615. #include <sys/resource.h>
  4616. #include <sys/select.h>
  4617. #include <sys/socket.h>
  4618. #include <sys/stat.h>
  4619. #include <sys/time.h>
  4620. #include <sys/types.h>
  4621. #include <sys/uio.h>
  4622. #include <sys/un.h>
  4623. #include <sys/xattr.h>
  4624. #include <alloca.h>
  4625. #include <arpa/inet.h>
  4626. #include <arpa/tftp.h>
  4627. #include <assert.h>
  4628. #include <err.h>
  4629. #include <errno.h>
  4630. #include <fcntl.h>
  4631. #include <ifaddrs.h>
  4632. #include <libgen.h>
  4633. #include <locale.h>
  4634. #include <net/if.h>
  4635. #include <netdb.h>
  4636. #include <netinet/in.h>
  4637. #include <netinet/tcp.h>
  4638. #include <poll.h>
  4639. #include <pwd.h>
  4640. #include <setjmp.h>
  4641. #include <sgtty.h>
  4642. #include <signal.h>
  4643. #include <stdbool.h>
  4644. #include <stdint.h>
  4645. #include <stdio.h>
  4646. #include <stdlib.h>
  4647. #include <string.h>
  4648. #include <strings.h>
  4649. #include <stropts.h>
  4650. #include <termio.h>
  4651. #include <termios.h>
  4652. #include <time.h>
  4653. #include <unistd.h>
  4654. #include <utime.h>
  4655. #include <stddef.h>
  4656. #include <dlfcn.h>
  4657. #include <malloc.h>
  4658. #include <memory.h>
  4659. #include <netinet/if_ether.h>
  4660. #include <stdint.h>
  4661. #include <sys/utsname.h>
  4662. int main(int argc, char** argv)
  4663. {
  4664. (void)argv;
  4665. #ifndef getprotobyname
  4666. return ((int*)(&getprotobyname))[argc];
  4667. #else
  4668. (void)argc;
  4669. return 0;
  4670. #endif
  4671. }
  4672. Determining if the getrlimit exist passed with the following output:
  4673. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  4674. Run Build Command:"/usr/bin/make" "cmTC_db070/fast"
  4675. make -f CMakeFiles/cmTC_db070.dir/build.make CMakeFiles/cmTC_db070.dir/build
  4676. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4677. Building C object CMakeFiles/cmTC_db070.dir/CheckSymbolExists.c.o
  4678. /usr/bin/gcc -w -o CMakeFiles/cmTC_db070.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  4679. Linking C executable cmTC_db070
  4680. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_db070.dir/link.txt --verbose=1
  4681. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_db070.dir/CheckSymbolExists.c.o -o cmTC_db070
  4682. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4683. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  4684. /* */
  4685. #include <stdio.h>
  4686. #include <inttypes.h>
  4687. #include <sys/ioctl.h>
  4688. #include <sys/param.h>
  4689. #include <sys/poll.h>
  4690. #include <sys/resource.h>
  4691. #include <sys/select.h>
  4692. #include <sys/socket.h>
  4693. #include <sys/stat.h>
  4694. #include <sys/time.h>
  4695. #include <sys/types.h>
  4696. #include <sys/uio.h>
  4697. #include <sys/un.h>
  4698. #include <sys/xattr.h>
  4699. #include <alloca.h>
  4700. #include <arpa/inet.h>
  4701. #include <arpa/tftp.h>
  4702. #include <assert.h>
  4703. #include <err.h>
  4704. #include <errno.h>
  4705. #include <fcntl.h>
  4706. #include <ifaddrs.h>
  4707. #include <libgen.h>
  4708. #include <locale.h>
  4709. #include <net/if.h>
  4710. #include <netdb.h>
  4711. #include <netinet/in.h>
  4712. #include <netinet/tcp.h>
  4713. #include <poll.h>
  4714. #include <pwd.h>
  4715. #include <setjmp.h>
  4716. #include <sgtty.h>
  4717. #include <signal.h>
  4718. #include <stdbool.h>
  4719. #include <stdint.h>
  4720. #include <stdio.h>
  4721. #include <stdlib.h>
  4722. #include <string.h>
  4723. #include <strings.h>
  4724. #include <stropts.h>
  4725. #include <termio.h>
  4726. #include <termios.h>
  4727. #include <time.h>
  4728. #include <unistd.h>
  4729. #include <utime.h>
  4730. #include <stddef.h>
  4731. #include <dlfcn.h>
  4732. #include <malloc.h>
  4733. #include <memory.h>
  4734. #include <netinet/if_ether.h>
  4735. #include <stdint.h>
  4736. #include <sys/utsname.h>
  4737. int main(int argc, char** argv)
  4738. {
  4739. (void)argv;
  4740. #ifndef getrlimit
  4741. return ((int*)(&getrlimit))[argc];
  4742. #else
  4743. (void)argc;
  4744. return 0;
  4745. #endif
  4746. }
  4747. Determining if the setlocale exist passed with the following output:
  4748. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  4749. Run Build Command:"/usr/bin/make" "cmTC_f0734/fast"
  4750. make -f CMakeFiles/cmTC_f0734.dir/build.make CMakeFiles/cmTC_f0734.dir/build
  4751. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4752. Building C object CMakeFiles/cmTC_f0734.dir/CheckSymbolExists.c.o
  4753. /usr/bin/gcc -w -o CMakeFiles/cmTC_f0734.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  4754. Linking C executable cmTC_f0734
  4755. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f0734.dir/link.txt --verbose=1
  4756. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_f0734.dir/CheckSymbolExists.c.o -o cmTC_f0734
  4757. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4758. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  4759. /* */
  4760. #include <stdio.h>
  4761. #include <inttypes.h>
  4762. #include <sys/ioctl.h>
  4763. #include <sys/param.h>
  4764. #include <sys/poll.h>
  4765. #include <sys/resource.h>
  4766. #include <sys/select.h>
  4767. #include <sys/socket.h>
  4768. #include <sys/stat.h>
  4769. #include <sys/time.h>
  4770. #include <sys/types.h>
  4771. #include <sys/uio.h>
  4772. #include <sys/un.h>
  4773. #include <sys/xattr.h>
  4774. #include <alloca.h>
  4775. #include <arpa/inet.h>
  4776. #include <arpa/tftp.h>
  4777. #include <assert.h>
  4778. #include <err.h>
  4779. #include <errno.h>
  4780. #include <fcntl.h>
  4781. #include <ifaddrs.h>
  4782. #include <libgen.h>
  4783. #include <locale.h>
  4784. #include <net/if.h>
  4785. #include <netdb.h>
  4786. #include <netinet/in.h>
  4787. #include <netinet/tcp.h>
  4788. #include <poll.h>
  4789. #include <pwd.h>
  4790. #include <setjmp.h>
  4791. #include <sgtty.h>
  4792. #include <signal.h>
  4793. #include <stdbool.h>
  4794. #include <stdint.h>
  4795. #include <stdio.h>
  4796. #include <stdlib.h>
  4797. #include <string.h>
  4798. #include <strings.h>
  4799. #include <stropts.h>
  4800. #include <termio.h>
  4801. #include <termios.h>
  4802. #include <time.h>
  4803. #include <unistd.h>
  4804. #include <utime.h>
  4805. #include <stddef.h>
  4806. #include <dlfcn.h>
  4807. #include <malloc.h>
  4808. #include <memory.h>
  4809. #include <netinet/if_ether.h>
  4810. #include <stdint.h>
  4811. #include <sys/utsname.h>
  4812. int main(int argc, char** argv)
  4813. {
  4814. (void)argv;
  4815. #ifndef setlocale
  4816. return ((int*)(&setlocale))[argc];
  4817. #else
  4818. (void)argc;
  4819. return 0;
  4820. #endif
  4821. }
  4822. Determining if the setrlimit exist passed with the following output:
  4823. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  4824. Run Build Command:"/usr/bin/make" "cmTC_a3110/fast"
  4825. make -f CMakeFiles/cmTC_a3110.dir/build.make CMakeFiles/cmTC_a3110.dir/build
  4826. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4827. Building C object CMakeFiles/cmTC_a3110.dir/CheckSymbolExists.c.o
  4828. /usr/bin/gcc -w -o CMakeFiles/cmTC_a3110.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  4829. Linking C executable cmTC_a3110
  4830. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a3110.dir/link.txt --verbose=1
  4831. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_a3110.dir/CheckSymbolExists.c.o -o cmTC_a3110
  4832. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4833. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  4834. /* */
  4835. #include <stdio.h>
  4836. #include <inttypes.h>
  4837. #include <sys/ioctl.h>
  4838. #include <sys/param.h>
  4839. #include <sys/poll.h>
  4840. #include <sys/resource.h>
  4841. #include <sys/select.h>
  4842. #include <sys/socket.h>
  4843. #include <sys/stat.h>
  4844. #include <sys/time.h>
  4845. #include <sys/types.h>
  4846. #include <sys/uio.h>
  4847. #include <sys/un.h>
  4848. #include <sys/xattr.h>
  4849. #include <alloca.h>
  4850. #include <arpa/inet.h>
  4851. #include <arpa/tftp.h>
  4852. #include <assert.h>
  4853. #include <err.h>
  4854. #include <errno.h>
  4855. #include <fcntl.h>
  4856. #include <ifaddrs.h>
  4857. #include <libgen.h>
  4858. #include <locale.h>
  4859. #include <net/if.h>
  4860. #include <netdb.h>
  4861. #include <netinet/in.h>
  4862. #include <netinet/tcp.h>
  4863. #include <poll.h>
  4864. #include <pwd.h>
  4865. #include <setjmp.h>
  4866. #include <sgtty.h>
  4867. #include <signal.h>
  4868. #include <stdbool.h>
  4869. #include <stdint.h>
  4870. #include <stdio.h>
  4871. #include <stdlib.h>
  4872. #include <string.h>
  4873. #include <strings.h>
  4874. #include <stropts.h>
  4875. #include <termio.h>
  4876. #include <termios.h>
  4877. #include <time.h>
  4878. #include <unistd.h>
  4879. #include <utime.h>
  4880. #include <stddef.h>
  4881. #include <dlfcn.h>
  4882. #include <malloc.h>
  4883. #include <memory.h>
  4884. #include <netinet/if_ether.h>
  4885. #include <stdint.h>
  4886. #include <sys/utsname.h>
  4887. int main(int argc, char** argv)
  4888. {
  4889. (void)argv;
  4890. #ifndef setrlimit
  4891. return ((int*)(&setrlimit))[argc];
  4892. #else
  4893. (void)argc;
  4894. return 0;
  4895. #endif
  4896. }
  4897. Determining if the fcntl exist passed with the following output:
  4898. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  4899. Run Build Command:"/usr/bin/make" "cmTC_fe5c5/fast"
  4900. make -f CMakeFiles/cmTC_fe5c5.dir/build.make CMakeFiles/cmTC_fe5c5.dir/build
  4901. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4902. Building C object CMakeFiles/cmTC_fe5c5.dir/CheckSymbolExists.c.o
  4903. /usr/bin/gcc -w -o CMakeFiles/cmTC_fe5c5.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  4904. Linking C executable cmTC_fe5c5
  4905. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_fe5c5.dir/link.txt --verbose=1
  4906. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_fe5c5.dir/CheckSymbolExists.c.o -o cmTC_fe5c5
  4907. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4908. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  4909. /* */
  4910. #include <stdio.h>
  4911. #include <inttypes.h>
  4912. #include <sys/ioctl.h>
  4913. #include <sys/param.h>
  4914. #include <sys/poll.h>
  4915. #include <sys/resource.h>
  4916. #include <sys/select.h>
  4917. #include <sys/socket.h>
  4918. #include <sys/stat.h>
  4919. #include <sys/time.h>
  4920. #include <sys/types.h>
  4921. #include <sys/uio.h>
  4922. #include <sys/un.h>
  4923. #include <sys/xattr.h>
  4924. #include <alloca.h>
  4925. #include <arpa/inet.h>
  4926. #include <arpa/tftp.h>
  4927. #include <assert.h>
  4928. #include <err.h>
  4929. #include <errno.h>
  4930. #include <fcntl.h>
  4931. #include <ifaddrs.h>
  4932. #include <libgen.h>
  4933. #include <locale.h>
  4934. #include <net/if.h>
  4935. #include <netdb.h>
  4936. #include <netinet/in.h>
  4937. #include <netinet/tcp.h>
  4938. #include <poll.h>
  4939. #include <pwd.h>
  4940. #include <setjmp.h>
  4941. #include <sgtty.h>
  4942. #include <signal.h>
  4943. #include <stdbool.h>
  4944. #include <stdint.h>
  4945. #include <stdio.h>
  4946. #include <stdlib.h>
  4947. #include <string.h>
  4948. #include <strings.h>
  4949. #include <stropts.h>
  4950. #include <termio.h>
  4951. #include <termios.h>
  4952. #include <time.h>
  4953. #include <unistd.h>
  4954. #include <utime.h>
  4955. #include <stddef.h>
  4956. #include <dlfcn.h>
  4957. #include <malloc.h>
  4958. #include <memory.h>
  4959. #include <netinet/if_ether.h>
  4960. #include <stdint.h>
  4961. #include <sys/utsname.h>
  4962. int main(int argc, char** argv)
  4963. {
  4964. (void)argv;
  4965. #ifndef fcntl
  4966. return ((int*)(&fcntl))[argc];
  4967. #else
  4968. (void)argc;
  4969. return 0;
  4970. #endif
  4971. }
  4972. Determining if the ioctl exist passed with the following output:
  4973. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  4974. Run Build Command:"/usr/bin/make" "cmTC_b7efb/fast"
  4975. make -f CMakeFiles/cmTC_b7efb.dir/build.make CMakeFiles/cmTC_b7efb.dir/build
  4976. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4977. Building C object CMakeFiles/cmTC_b7efb.dir/CheckSymbolExists.c.o
  4978. /usr/bin/gcc -w -o CMakeFiles/cmTC_b7efb.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  4979. Linking C executable cmTC_b7efb
  4980. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b7efb.dir/link.txt --verbose=1
  4981. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_b7efb.dir/CheckSymbolExists.c.o -o cmTC_b7efb
  4982. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  4983. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  4984. /* */
  4985. #include <stdio.h>
  4986. #include <inttypes.h>
  4987. #include <sys/ioctl.h>
  4988. #include <sys/param.h>
  4989. #include <sys/poll.h>
  4990. #include <sys/resource.h>
  4991. #include <sys/select.h>
  4992. #include <sys/socket.h>
  4993. #include <sys/stat.h>
  4994. #include <sys/time.h>
  4995. #include <sys/types.h>
  4996. #include <sys/uio.h>
  4997. #include <sys/un.h>
  4998. #include <sys/xattr.h>
  4999. #include <alloca.h>
  5000. #include <arpa/inet.h>
  5001. #include <arpa/tftp.h>
  5002. #include <assert.h>
  5003. #include <err.h>
  5004. #include <errno.h>
  5005. #include <fcntl.h>
  5006. #include <ifaddrs.h>
  5007. #include <libgen.h>
  5008. #include <locale.h>
  5009. #include <net/if.h>
  5010. #include <netdb.h>
  5011. #include <netinet/in.h>
  5012. #include <netinet/tcp.h>
  5013. #include <poll.h>
  5014. #include <pwd.h>
  5015. #include <setjmp.h>
  5016. #include <sgtty.h>
  5017. #include <signal.h>
  5018. #include <stdbool.h>
  5019. #include <stdint.h>
  5020. #include <stdio.h>
  5021. #include <stdlib.h>
  5022. #include <string.h>
  5023. #include <strings.h>
  5024. #include <stropts.h>
  5025. #include <termio.h>
  5026. #include <termios.h>
  5027. #include <time.h>
  5028. #include <unistd.h>
  5029. #include <utime.h>
  5030. #include <stddef.h>
  5031. #include <dlfcn.h>
  5032. #include <malloc.h>
  5033. #include <memory.h>
  5034. #include <netinet/if_ether.h>
  5035. #include <stdint.h>
  5036. #include <sys/utsname.h>
  5037. int main(int argc, char** argv)
  5038. {
  5039. (void)argv;
  5040. #ifndef ioctl
  5041. return ((int*)(&ioctl))[argc];
  5042. #else
  5043. (void)argc;
  5044. return 0;
  5045. #endif
  5046. }
  5047. Determining if the setsockopt exist passed with the following output:
  5048. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5049. Run Build Command:"/usr/bin/make" "cmTC_a1cf2/fast"
  5050. make -f CMakeFiles/cmTC_a1cf2.dir/build.make CMakeFiles/cmTC_a1cf2.dir/build
  5051. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5052. Building C object CMakeFiles/cmTC_a1cf2.dir/CheckSymbolExists.c.o
  5053. /usr/bin/gcc -w -o CMakeFiles/cmTC_a1cf2.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  5054. Linking C executable cmTC_a1cf2
  5055. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a1cf2.dir/link.txt --verbose=1
  5056. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_a1cf2.dir/CheckSymbolExists.c.o -o cmTC_a1cf2
  5057. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5058. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  5059. /* */
  5060. #include <stdio.h>
  5061. #include <inttypes.h>
  5062. #include <sys/ioctl.h>
  5063. #include <sys/param.h>
  5064. #include <sys/poll.h>
  5065. #include <sys/resource.h>
  5066. #include <sys/select.h>
  5067. #include <sys/socket.h>
  5068. #include <sys/stat.h>
  5069. #include <sys/time.h>
  5070. #include <sys/types.h>
  5071. #include <sys/uio.h>
  5072. #include <sys/un.h>
  5073. #include <sys/xattr.h>
  5074. #include <alloca.h>
  5075. #include <arpa/inet.h>
  5076. #include <arpa/tftp.h>
  5077. #include <assert.h>
  5078. #include <err.h>
  5079. #include <errno.h>
  5080. #include <fcntl.h>
  5081. #include <ifaddrs.h>
  5082. #include <libgen.h>
  5083. #include <locale.h>
  5084. #include <net/if.h>
  5085. #include <netdb.h>
  5086. #include <netinet/in.h>
  5087. #include <netinet/tcp.h>
  5088. #include <poll.h>
  5089. #include <pwd.h>
  5090. #include <setjmp.h>
  5091. #include <sgtty.h>
  5092. #include <signal.h>
  5093. #include <stdbool.h>
  5094. #include <stdint.h>
  5095. #include <stdio.h>
  5096. #include <stdlib.h>
  5097. #include <string.h>
  5098. #include <strings.h>
  5099. #include <stropts.h>
  5100. #include <termio.h>
  5101. #include <termios.h>
  5102. #include <time.h>
  5103. #include <unistd.h>
  5104. #include <utime.h>
  5105. #include <stddef.h>
  5106. #include <dlfcn.h>
  5107. #include <malloc.h>
  5108. #include <memory.h>
  5109. #include <netinet/if_ether.h>
  5110. #include <stdint.h>
  5111. #include <sys/utsname.h>
  5112. int main(int argc, char** argv)
  5113. {
  5114. (void)argv;
  5115. #ifndef setsockopt
  5116. return ((int*)(&setsockopt))[argc];
  5117. #else
  5118. (void)argc;
  5119. return 0;
  5120. #endif
  5121. }
  5122. Determining if the function inet_pton exists passed with the following output:
  5123. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5124. Run Build Command:"/usr/bin/make" "cmTC_c260e/fast"
  5125. make -f CMakeFiles/cmTC_c260e.dir/build.make CMakeFiles/cmTC_c260e.dir/build
  5126. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5127. Building C object CMakeFiles/cmTC_c260e.dir/CheckFunctionExists.c.o
  5128. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=inet_pton -o CMakeFiles/cmTC_c260e.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  5129. Linking C executable cmTC_c260e
  5130. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c260e.dir/link.txt --verbose=1
  5131. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=inet_pton -rdynamic CMakeFiles/cmTC_c260e.dir/CheckFunctionExists.c.o -o cmTC_c260e
  5132. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5133. Determining if the fsetxattr exist passed with the following output:
  5134. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5135. Run Build Command:"/usr/bin/make" "cmTC_49db1/fast"
  5136. make -f CMakeFiles/cmTC_49db1.dir/build.make CMakeFiles/cmTC_49db1.dir/build
  5137. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5138. Building C object CMakeFiles/cmTC_49db1.dir/CheckSymbolExists.c.o
  5139. /usr/bin/gcc -w -o CMakeFiles/cmTC_49db1.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  5140. Linking C executable cmTC_49db1
  5141. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_49db1.dir/link.txt --verbose=1
  5142. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_49db1.dir/CheckSymbolExists.c.o -o cmTC_49db1
  5143. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5144. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  5145. /* */
  5146. #include <stdio.h>
  5147. #include <inttypes.h>
  5148. #include <sys/ioctl.h>
  5149. #include <sys/param.h>
  5150. #include <sys/poll.h>
  5151. #include <sys/resource.h>
  5152. #include <sys/select.h>
  5153. #include <sys/socket.h>
  5154. #include <sys/stat.h>
  5155. #include <sys/time.h>
  5156. #include <sys/types.h>
  5157. #include <sys/uio.h>
  5158. #include <sys/un.h>
  5159. #include <sys/xattr.h>
  5160. #include <alloca.h>
  5161. #include <arpa/inet.h>
  5162. #include <arpa/tftp.h>
  5163. #include <assert.h>
  5164. #include <err.h>
  5165. #include <errno.h>
  5166. #include <fcntl.h>
  5167. #include <ifaddrs.h>
  5168. #include <libgen.h>
  5169. #include <locale.h>
  5170. #include <net/if.h>
  5171. #include <netdb.h>
  5172. #include <netinet/in.h>
  5173. #include <netinet/tcp.h>
  5174. #include <poll.h>
  5175. #include <pwd.h>
  5176. #include <setjmp.h>
  5177. #include <sgtty.h>
  5178. #include <signal.h>
  5179. #include <stdbool.h>
  5180. #include <stdint.h>
  5181. #include <stdio.h>
  5182. #include <stdlib.h>
  5183. #include <string.h>
  5184. #include <strings.h>
  5185. #include <stropts.h>
  5186. #include <termio.h>
  5187. #include <termios.h>
  5188. #include <time.h>
  5189. #include <unistd.h>
  5190. #include <utime.h>
  5191. #include <stddef.h>
  5192. #include <dlfcn.h>
  5193. #include <malloc.h>
  5194. #include <memory.h>
  5195. #include <netinet/if_ether.h>
  5196. #include <stdint.h>
  5197. #include <sys/utsname.h>
  5198. int main(int argc, char** argv)
  5199. {
  5200. (void)argv;
  5201. #ifndef fsetxattr
  5202. return ((int*)(&fsetxattr))[argc];
  5203. #else
  5204. (void)argc;
  5205. return 0;
  5206. #endif
  5207. }
  5208. Determining if the sigaction exist passed with the following output:
  5209. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5210. Run Build Command:"/usr/bin/make" "cmTC_9d58f/fast"
  5211. make -f CMakeFiles/cmTC_9d58f.dir/build.make CMakeFiles/cmTC_9d58f.dir/build
  5212. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5213. Building C object CMakeFiles/cmTC_9d58f.dir/CheckSymbolExists.c.o
  5214. /usr/bin/gcc -w -o CMakeFiles/cmTC_9d58f.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  5215. Linking C executable cmTC_9d58f
  5216. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9d58f.dir/link.txt --verbose=1
  5217. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_9d58f.dir/CheckSymbolExists.c.o -o cmTC_9d58f
  5218. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5219. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  5220. /* */
  5221. #include <signal.h>
  5222. int main(int argc, char** argv)
  5223. {
  5224. (void)argv;
  5225. #ifndef sigaction
  5226. return ((int*)(&sigaction))[argc];
  5227. #else
  5228. (void)argc;
  5229. return 0;
  5230. #endif
  5231. }
  5232. Performing Curl Test HAVE_FCNTL_O_NONBLOCK passed with the following output:
  5233. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5234. Run Build Command:"/usr/bin/make" "cmTC_f51ee/fast"
  5235. make -f CMakeFiles/cmTC_f51ee.dir/build.make CMakeFiles/cmTC_f51ee.dir/build
  5236. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5237. Building C object CMakeFiles/cmTC_f51ee.dir/CurlTests.c.o
  5238. /usr/bin/gcc -w -DHAVE_FCNTL_O_NONBLOCK -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -o CMakeFiles/cmTC_f51ee.dir/CurlTests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/CMake/CurlTests.c
  5239. Linking C executable cmTC_f51ee
  5240. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f51ee.dir/link.txt --verbose=1
  5241. /usr/bin/gcc -w -DHAVE_FCNTL_O_NONBLOCK -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -rdynamic CMakeFiles/cmTC_f51ee.dir/CurlTests.c.o -o cmTC_f51ee
  5242. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5243. Performing Curl Test HAVE_IOCTL_FIONBIO passed with the following output:
  5244. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5245. Run Build Command:"/usr/bin/make" "cmTC_cfb9f/fast"
  5246. make -f CMakeFiles/cmTC_cfb9f.dir/build.make CMakeFiles/cmTC_cfb9f.dir/build
  5247. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5248. Building C object CMakeFiles/cmTC_cfb9f.dir/CurlTests.c.o
  5249. /usr/bin/gcc -w -DHAVE_IOCTL_FIONBIO -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -o CMakeFiles/cmTC_cfb9f.dir/CurlTests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/CMake/CurlTests.c
  5250. Linking C executable cmTC_cfb9f
  5251. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_cfb9f.dir/link.txt --verbose=1
  5252. /usr/bin/gcc -w -DHAVE_IOCTL_FIONBIO -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -rdynamic CMakeFiles/cmTC_cfb9f.dir/CurlTests.c.o -o cmTC_cfb9f
  5253. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5254. Performing Curl Test HAVE_IOCTL_SIOCGIFADDR passed with the following output:
  5255. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5256. Run Build Command:"/usr/bin/make" "cmTC_b0e87/fast"
  5257. make -f CMakeFiles/cmTC_b0e87.dir/build.make CMakeFiles/cmTC_b0e87.dir/build
  5258. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5259. Building C object CMakeFiles/cmTC_b0e87.dir/CurlTests.c.o
  5260. /usr/bin/gcc -w -DHAVE_IOCTL_SIOCGIFADDR -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -o CMakeFiles/cmTC_b0e87.dir/CurlTests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/CMake/CurlTests.c
  5261. Linking C executable cmTC_b0e87
  5262. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b0e87.dir/link.txt --verbose=1
  5263. /usr/bin/gcc -w -DHAVE_IOCTL_SIOCGIFADDR -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -rdynamic CMakeFiles/cmTC_b0e87.dir/CurlTests.c.o -o cmTC_b0e87
  5264. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5265. Performing Curl Test TIME_WITH_SYS_TIME passed with the following output:
  5266. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5267. Run Build Command:"/usr/bin/make" "cmTC_034db/fast"
  5268. make -f CMakeFiles/cmTC_034db.dir/build.make CMakeFiles/cmTC_034db.dir/build
  5269. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5270. Building C object CMakeFiles/cmTC_034db.dir/CurlTests.c.o
  5271. /usr/bin/gcc -w -DTIME_WITH_SYS_TIME -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -o CMakeFiles/cmTC_034db.dir/CurlTests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/CMake/CurlTests.c
  5272. Linking C executable cmTC_034db
  5273. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_034db.dir/link.txt --verbose=1
  5274. /usr/bin/gcc -w -DTIME_WITH_SYS_TIME -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -rdynamic CMakeFiles/cmTC_034db.dir/CurlTests.c.o -o cmTC_034db
  5275. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5276. Performing Curl Test HAVE_GETHOSTBYADDR_R_8 passed with the following output:
  5277. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5278. Run Build Command:"/usr/bin/make" "cmTC_73f05/fast"
  5279. make -f CMakeFiles/cmTC_73f05.dir/build.make CMakeFiles/cmTC_73f05.dir/build
  5280. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5281. Building C object CMakeFiles/cmTC_73f05.dir/CurlTests.c.o
  5282. /usr/bin/gcc -w -DHAVE_GETHOSTBYADDR_R_8 -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -o CMakeFiles/cmTC_73f05.dir/CurlTests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/CMake/CurlTests.c
  5283. Linking C executable cmTC_73f05
  5284. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_73f05.dir/link.txt --verbose=1
  5285. /usr/bin/gcc -w -DHAVE_GETHOSTBYADDR_R_8 -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -rdynamic CMakeFiles/cmTC_73f05.dir/CurlTests.c.o -o cmTC_73f05
  5286. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5287. Performing Curl Test HAVE_GETHOSTBYADDR_R_8_REENTRANT passed with the following output:
  5288. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5289. Run Build Command:"/usr/bin/make" "cmTC_abb5c/fast"
  5290. make -f CMakeFiles/cmTC_abb5c.dir/build.make CMakeFiles/cmTC_abb5c.dir/build
  5291. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5292. Building C object CMakeFiles/cmTC_abb5c.dir/CurlTests.c.o
  5293. /usr/bin/gcc -w -DHAVE_GETHOSTBYADDR_R_8_REENTRANT -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -o CMakeFiles/cmTC_abb5c.dir/CurlTests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/CMake/CurlTests.c
  5294. Linking C executable cmTC_abb5c
  5295. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_abb5c.dir/link.txt --verbose=1
  5296. /usr/bin/gcc -w -DHAVE_GETHOSTBYADDR_R_8_REENTRANT -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -rdynamic CMakeFiles/cmTC_abb5c.dir/CurlTests.c.o -o cmTC_abb5c
  5297. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5298. Performing Curl Test HAVE_GETHOSTBYNAME_R_6 passed with the following output:
  5299. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5300. Run Build Command:"/usr/bin/make" "cmTC_71099/fast"
  5301. make -f CMakeFiles/cmTC_71099.dir/build.make CMakeFiles/cmTC_71099.dir/build
  5302. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5303. Building C object CMakeFiles/cmTC_71099.dir/CurlTests.c.o
  5304. /usr/bin/gcc -w -DHAVE_GETHOSTBYNAME_R_6 -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -o CMakeFiles/cmTC_71099.dir/CurlTests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/CMake/CurlTests.c
  5305. Linking C executable cmTC_71099
  5306. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_71099.dir/link.txt --verbose=1
  5307. /usr/bin/gcc -w -DHAVE_GETHOSTBYNAME_R_6 -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -rdynamic CMakeFiles/cmTC_71099.dir/CurlTests.c.o -o cmTC_71099
  5308. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5309. Performing Curl Test HAVE_GETHOSTBYNAME_R_6_REENTRANT passed with the following output:
  5310. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5311. Run Build Command:"/usr/bin/make" "cmTC_86312/fast"
  5312. make -f CMakeFiles/cmTC_86312.dir/build.make CMakeFiles/cmTC_86312.dir/build
  5313. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5314. Building C object CMakeFiles/cmTC_86312.dir/CurlTests.c.o
  5315. /usr/bin/gcc -w -DHAVE_GETHOSTBYNAME_R_6_REENTRANT -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -o CMakeFiles/cmTC_86312.dir/CurlTests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/CMake/CurlTests.c
  5316. Linking C executable cmTC_86312
  5317. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_86312.dir/link.txt --verbose=1
  5318. /usr/bin/gcc -w -DHAVE_GETHOSTBYNAME_R_6_REENTRANT -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -rdynamic CMakeFiles/cmTC_86312.dir/CurlTests.c.o -o cmTC_86312
  5319. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5320. Performing Curl Test HAVE_SOCKLEN_T passed with the following output:
  5321. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5322. Run Build Command:"/usr/bin/make" "cmTC_1fd26/fast"
  5323. make -f CMakeFiles/cmTC_1fd26.dir/build.make CMakeFiles/cmTC_1fd26.dir/build
  5324. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5325. Building C object CMakeFiles/cmTC_1fd26.dir/CurlTests.c.o
  5326. /usr/bin/gcc -w -DHAVE_SOCKLEN_T -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -o CMakeFiles/cmTC_1fd26.dir/CurlTests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/CMake/CurlTests.c
  5327. Linking C executable cmTC_1fd26
  5328. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1fd26.dir/link.txt --verbose=1
  5329. /usr/bin/gcc -w -DHAVE_SOCKLEN_T -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -rdynamic CMakeFiles/cmTC_1fd26.dir/CurlTests.c.o -o cmTC_1fd26
  5330. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5331. Performing Curl Test HAVE_IN_ADDR_T passed with the following output:
  5332. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5333. Run Build Command:"/usr/bin/make" "cmTC_e2967/fast"
  5334. make -f CMakeFiles/cmTC_e2967.dir/build.make CMakeFiles/cmTC_e2967.dir/build
  5335. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5336. Building C object CMakeFiles/cmTC_e2967.dir/CurlTests.c.o
  5337. /usr/bin/gcc -w -DHAVE_IN_ADDR_T -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -o CMakeFiles/cmTC_e2967.dir/CurlTests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/CMake/CurlTests.c
  5338. Linking C executable cmTC_e2967
  5339. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e2967.dir/link.txt --verbose=1
  5340. /usr/bin/gcc -w -DHAVE_IN_ADDR_T -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -rdynamic CMakeFiles/cmTC_e2967.dir/CurlTests.c.o -o cmTC_e2967
  5341. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5342. Performing Curl Test HAVE_BOOL_T passed with the following output:
  5343. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5344. Run Build Command:"/usr/bin/make" "cmTC_8bb36/fast"
  5345. make -f CMakeFiles/cmTC_8bb36.dir/build.make CMakeFiles/cmTC_8bb36.dir/build
  5346. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5347. Building C object CMakeFiles/cmTC_8bb36.dir/CurlTests.c.o
  5348. /usr/bin/gcc -w -DHAVE_BOOL_T -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -o CMakeFiles/cmTC_8bb36.dir/CurlTests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/CMake/CurlTests.c
  5349. Linking C executable cmTC_8bb36
  5350. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8bb36.dir/link.txt --verbose=1
  5351. /usr/bin/gcc -w -DHAVE_BOOL_T -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -rdynamic CMakeFiles/cmTC_8bb36.dir/CurlTests.c.o -o cmTC_8bb36
  5352. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5353. Performing Curl Test STDC_HEADERS passed with the following output:
  5354. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5355. Run Build Command:"/usr/bin/make" "cmTC_c8de0/fast"
  5356. make -f CMakeFiles/cmTC_c8de0.dir/build.make CMakeFiles/cmTC_c8de0.dir/build
  5357. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5358. Building C object CMakeFiles/cmTC_c8de0.dir/CurlTests.c.o
  5359. /usr/bin/gcc -w -DSTDC_HEADERS -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -o CMakeFiles/cmTC_c8de0.dir/CurlTests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/CMake/CurlTests.c
  5360. Linking C executable cmTC_c8de0
  5361. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c8de0.dir/link.txt --verbose=1
  5362. /usr/bin/gcc -w -DSTDC_HEADERS -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -rdynamic CMakeFiles/cmTC_c8de0.dir/CurlTests.c.o -o cmTC_c8de0
  5363. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5364. Performing Curl Test RETSIGTYPE_TEST passed with the following output:
  5365. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5366. Run Build Command:"/usr/bin/make" "cmTC_8b5f0/fast"
  5367. make -f CMakeFiles/cmTC_8b5f0.dir/build.make CMakeFiles/cmTC_8b5f0.dir/build
  5368. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5369. Building C object CMakeFiles/cmTC_8b5f0.dir/CurlTests.c.o
  5370. /usr/bin/gcc -w -DRETSIGTYPE_TEST -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -o CMakeFiles/cmTC_8b5f0.dir/CurlTests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/CMake/CurlTests.c
  5371. Linking C executable cmTC_8b5f0
  5372. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8b5f0.dir/link.txt --verbose=1
  5373. /usr/bin/gcc -w -DRETSIGTYPE_TEST -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -rdynamic CMakeFiles/cmTC_8b5f0.dir/CurlTests.c.o -o cmTC_8b5f0
  5374. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5375. Performing Curl Test HAVE_FILE_OFFSET_BITS passed with the following output:
  5376. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5377. Run Build Command:"/usr/bin/make" "cmTC_d6833/fast"
  5378. make -f CMakeFiles/cmTC_d6833.dir/build.make CMakeFiles/cmTC_d6833.dir/build
  5379. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5380. Building C object CMakeFiles/cmTC_d6833.dir/CurlTests.c.o
  5381. /usr/bin/gcc -w -DHAVE_FILE_OFFSET_BITS -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -o CMakeFiles/cmTC_d6833.dir/CurlTests.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/CMake/CurlTests.c
  5382. Linking C executable cmTC_d6833
  5383. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d6833.dir/link.txt --verbose=1
  5384. /usr/bin/gcc -w -DHAVE_FILE_OFFSET_BITS -DHAVE_STDIO_H -DHAVE_INTTYPES_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_POLL_H -DHAVE_SYS_RESOURCE_H -DHAVE_SYS_SELECT_H -DHAVE_SYS_SOCKET_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_UIO_H -DHAVE_SYS_UN_H -DHAVE_SYS_XATTR_H -DHAVE_ALLOCA_H -DHAVE_ARPA_INET_H -DHAVE_ARPA_TFTP_H -DHAVE_ASSERT_H -DHAVE_ERR_H -DHAVE_ERRNO_H -DHAVE_FCNTL_H -DHAVE_IFADDRS_H -DHAVE_LIBGEN_H -DHAVE_LOCALE_H -DHAVE_NET_IF_H -DHAVE_NETDB_H -DHAVE_NETINET_IN_H -DHAVE_NETINET_TCP_H -DHAVE_POLL_H -DHAVE_PWD_H -DHAVE_SETJMP_H -DHAVE_SGTTY_H -DHAVE_SIGNAL_H -DHAVE_STDBOOL_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STRINGS_H -DHAVE_STROPTS_H -DHAVE_TERMIO_H -DHAVE_TERMIOS_H -DHAVE_TIME_H -DHAVE_UNISTD_H -DHAVE_UTIME_H -DHAVE_STDDEF_H -DHAVE_DLFCN_H -DHAVE_MALLOC_H -DHAVE_MEMORY_H -DHAVE_NETINET_IF_ETHER_H -DHAVE_STDINT_H -DHAVE_SYS_UTSNAME_H -rdynamic CMakeFiles/cmTC_d6833.dir/CurlTests.c.o -o cmTC_d6833
  5385. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5386. Determining size of off_t passed with the following output:
  5387. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5388. Run Build Command:"/usr/bin/make" "cmTC_47f49/fast"
  5389. make -f CMakeFiles/cmTC_47f49.dir/build.make CMakeFiles/cmTC_47f49.dir/build
  5390. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5391. Building C object CMakeFiles/cmTC_47f49.dir/SIZEOF_OFF_T.c.o
  5392. /usr/bin/gcc -w -D_FILE_OFFSET_BITS=64 -o CMakeFiles/cmTC_47f49.dir/SIZEOF_OFF_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZEOF_OFF_T.c
  5393. Linking C executable cmTC_47f49
  5394. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_47f49.dir/link.txt --verbose=1
  5395. /usr/bin/gcc -w -D_FILE_OFFSET_BITS=64 -rdynamic CMakeFiles/cmTC_47f49.dir/SIZEOF_OFF_T.c.o -o cmTC_47f49
  5396. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5397. Determining size of curl_off_t passed with the following output:
  5398. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5399. Run Build Command:"/usr/bin/make" "cmTC_2e2e4/fast"
  5400. make -f CMakeFiles/cmTC_2e2e4.dir/build.make CMakeFiles/cmTC_2e2e4.dir/build
  5401. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5402. Building C object CMakeFiles/cmTC_2e2e4.dir/SIZEOF_CURL_OFF_T.c.o
  5403. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/include -w -D_FILE_OFFSET_BITS=64 -o CMakeFiles/cmTC_2e2e4.dir/SIZEOF_CURL_OFF_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZEOF_CURL_OFF_T.c
  5404. Linking C executable cmTC_2e2e4
  5405. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2e2e4.dir/link.txt --verbose=1
  5406. /usr/bin/gcc -w -D_FILE_OFFSET_BITS=64 -rdynamic CMakeFiles/cmTC_2e2e4.dir/SIZEOF_CURL_OFF_T.c.o -o cmTC_2e2e4
  5407. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5408. Determining size of socklen_t passed with the following output:
  5409. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5410. Run Build Command:"/usr/bin/make" "cmTC_bcc32/fast"
  5411. make -f CMakeFiles/cmTC_bcc32.dir/build.make CMakeFiles/cmTC_bcc32.dir/build
  5412. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5413. Building C object CMakeFiles/cmTC_bcc32.dir/CURL_SIZEOF_CURL_SOCKLEN_T.c.o
  5414. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/include -w -o CMakeFiles/cmTC_bcc32.dir/CURL_SIZEOF_CURL_SOCKLEN_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/CURL_SIZEOF_CURL_SOCKLEN_T.c
  5415. Linking C executable cmTC_bcc32
  5416. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_bcc32.dir/link.txt --verbose=1
  5417. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_bcc32.dir/CURL_SIZEOF_CURL_SOCKLEN_T.c.o -o cmTC_bcc32
  5418. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5419. Performing C SOURCE FILE Test curl_cv_recv succeeded with the following output:
  5420. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5421. Run Build Command:"/usr/bin/make" "cmTC_b0ac2/fast"
  5422. make -f CMakeFiles/cmTC_b0ac2.dir/build.make CMakeFiles/cmTC_b0ac2.dir/build
  5423. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5424. Building C object CMakeFiles/cmTC_b0ac2.dir/src.c.o
  5425. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/include -w -Dcurl_cv_recv -o CMakeFiles/cmTC_b0ac2.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  5426. Linking C executable cmTC_b0ac2
  5427. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b0ac2.dir/link.txt --verbose=1
  5428. /usr/bin/gcc -w -Dcurl_cv_recv -rdynamic CMakeFiles/cmTC_b0ac2.dir/src.c.o -o cmTC_b0ac2
  5429. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5430. Source file was:
  5431. #undef inline
  5432. #include <sys/types.h>
  5433. #include <sys/socket.h>
  5434. int main(void) {
  5435. recv(0, 0, 0, 0);
  5436. return 0;
  5437. }
  5438. Performing C SOURCE FILE Test curl_cv_func_recv_test succeeded with the following output:
  5439. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5440. Run Build Command:"/usr/bin/make" "cmTC_1b9d5/fast"
  5441. make -f CMakeFiles/cmTC_1b9d5.dir/build.make CMakeFiles/cmTC_1b9d5.dir/build
  5442. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5443. Building C object CMakeFiles/cmTC_1b9d5.dir/src.c.o
  5444. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/include -w -Dcurl_cv_func_recv_test -o CMakeFiles/cmTC_1b9d5.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  5445. Linking C executable cmTC_1b9d5
  5446. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1b9d5.dir/link.txt --verbose=1
  5447. /usr/bin/gcc -w -Dcurl_cv_func_recv_test -rdynamic CMakeFiles/cmTC_1b9d5.dir/src.c.o -o cmTC_1b9d5
  5448. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5449. Source file was:
  5450. #undef inline
  5451. #include <sys/types.h>
  5452. #include <sys/socket.h>
  5453. extern ssize_t
  5454. recv(int, void *, size_t, int);
  5455. int main(void) {
  5456. int s=0;
  5457. void * buf=0;
  5458. size_t len=0;
  5459. int flags=0;
  5460. ssize_t res = recv(s, buf, len, flags);
  5461. (void) res;
  5462. return 0;
  5463. }
  5464. Performing C SOURCE FILE Test curl_cv_send succeeded with the following output:
  5465. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5466. Run Build Command:"/usr/bin/make" "cmTC_ecf1d/fast"
  5467. make -f CMakeFiles/cmTC_ecf1d.dir/build.make CMakeFiles/cmTC_ecf1d.dir/build
  5468. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5469. Building C object CMakeFiles/cmTC_ecf1d.dir/src.c.o
  5470. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/include -w -Dcurl_cv_send -o CMakeFiles/cmTC_ecf1d.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  5471. Linking C executable cmTC_ecf1d
  5472. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ecf1d.dir/link.txt --verbose=1
  5473. /usr/bin/gcc -w -Dcurl_cv_send -rdynamic CMakeFiles/cmTC_ecf1d.dir/src.c.o -o cmTC_ecf1d
  5474. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5475. Source file was:
  5476. #undef inline
  5477. #include <sys/types.h>
  5478. #include <sys/socket.h>
  5479. int main(void) {
  5480. send(0, 0, 0, 0);
  5481. return 0;
  5482. }
  5483. Performing C SOURCE FILE Test curl_cv_func_send_test succeeded with the following output:
  5484. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5485. Run Build Command:"/usr/bin/make" "cmTC_ef283/fast"
  5486. make -f CMakeFiles/cmTC_ef283.dir/build.make CMakeFiles/cmTC_ef283.dir/build
  5487. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5488. Building C object CMakeFiles/cmTC_ef283.dir/src.c.o
  5489. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/include -w -Dcurl_cv_func_send_test -o CMakeFiles/cmTC_ef283.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  5490. Linking C executable cmTC_ef283
  5491. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ef283.dir/link.txt --verbose=1
  5492. /usr/bin/gcc -w -Dcurl_cv_func_send_test -rdynamic CMakeFiles/cmTC_ef283.dir/src.c.o -o cmTC_ef283
  5493. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5494. Source file was:
  5495. #undef inline
  5496. #include <sys/types.h>
  5497. #include <sys/socket.h>
  5498. extern ssize_t
  5499. send(int, const void *, size_t, int);
  5500. int main(void) {
  5501. int s=0;
  5502. const void * buf=0;
  5503. size_t len=0;
  5504. int flags=0;
  5505. ssize_t res = send(s, buf, len, flags);
  5506. (void) res;
  5507. return 0;
  5508. }
  5509. Performing C SOURCE FILE Test HAVE_MSG_NOSIGNAL succeeded with the following output:
  5510. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5511. Run Build Command:"/usr/bin/make" "cmTC_a7db9/fast"
  5512. make -f CMakeFiles/cmTC_a7db9.dir/build.make CMakeFiles/cmTC_a7db9.dir/build
  5513. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5514. Building C object CMakeFiles/cmTC_a7db9.dir/src.c.o
  5515. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/include -w -DHAVE_MSG_NOSIGNAL -o CMakeFiles/cmTC_a7db9.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  5516. Linking C executable cmTC_a7db9
  5517. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a7db9.dir/link.txt --verbose=1
  5518. /usr/bin/gcc -w -DHAVE_MSG_NOSIGNAL -rdynamic CMakeFiles/cmTC_a7db9.dir/src.c.o -o cmTC_a7db9
  5519. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5520. Source file was:
  5521. #undef inline
  5522. #include <sys/types.h>
  5523. #include <sys/socket.h>
  5524. int main(void) {
  5525. int flag = MSG_NOSIGNAL;
  5526. (void)flag;
  5527. return 0;
  5528. }
  5529. Performing C SOURCE FILE Test HAVE_STRUCT_TIMEVAL succeeded with the following output:
  5530. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5531. Run Build Command:"/usr/bin/make" "cmTC_8782e/fast"
  5532. make -f CMakeFiles/cmTC_8782e.dir/build.make CMakeFiles/cmTC_8782e.dir/build
  5533. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5534. Building C object CMakeFiles/cmTC_8782e.dir/src.c.o
  5535. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/include -w -DHAVE_STRUCT_TIMEVAL -o CMakeFiles/cmTC_8782e.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  5536. Linking C executable cmTC_8782e
  5537. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8782e.dir/link.txt --verbose=1
  5538. /usr/bin/gcc -w -DHAVE_STRUCT_TIMEVAL -rdynamic CMakeFiles/cmTC_8782e.dir/src.c.o -o cmTC_8782e
  5539. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5540. Source file was:
  5541. #undef inline
  5542. #include <sys/types.h>
  5543. #include <sys/socket.h>
  5544. #include <sys/time.h>
  5545. #include <time.h>
  5546. #include <time.h>
  5547. int main(void) {
  5548. struct timeval ts;
  5549. ts.tv_sec = 0;
  5550. ts.tv_usec = 0;
  5551. (void)ts;
  5552. return 0;
  5553. }
  5554. Performing C SOURCE FILE Test HAVE_POLL_FINE succeeded with the following output:
  5555. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5556. Run Build Command:"/usr/bin/make" "cmTC_036f9/fast"
  5557. make -f CMakeFiles/cmTC_036f9.dir/build.make CMakeFiles/cmTC_036f9.dir/build
  5558. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5559. Building C object CMakeFiles/cmTC_036f9.dir/src.c.o
  5560. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/include -w -DHAVE_POLL_FINE -DHAVE_SYS_POLL_H -o CMakeFiles/cmTC_036f9.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  5561. Linking C executable cmTC_036f9
  5562. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_036f9.dir/link.txt --verbose=1
  5563. /usr/bin/gcc -w -DHAVE_POLL_FINE -DHAVE_SYS_POLL_H -rdynamic CMakeFiles/cmTC_036f9.dir/src.c.o -o cmTC_036f9
  5564. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5565. Return value: 1
  5566. Source file was:
  5567. #ifdef HAVE_SYS_POLL_H
  5568. # include <sys/poll.h>
  5569. #endif
  5570. int main(void) {
  5571. return poll((void *)0, 0, 10 /*ms*/);
  5572. }
  5573. Determining size of sig_atomic_t passed with the following output:
  5574. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5575. Run Build Command:"/usr/bin/make" "cmTC_4a22f/fast"
  5576. make -f CMakeFiles/cmTC_4a22f.dir/build.make CMakeFiles/cmTC_4a22f.dir/build
  5577. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5578. Building C object CMakeFiles/cmTC_4a22f.dir/SIZEOF_SIG_ATOMIC_T.c.o
  5579. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/include -w -DHAVE_SIGNAL_H -o CMakeFiles/cmTC_4a22f.dir/SIZEOF_SIG_ATOMIC_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZEOF_SIG_ATOMIC_T.c
  5580. Linking C executable cmTC_4a22f
  5581. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_4a22f.dir/link.txt --verbose=1
  5582. /usr/bin/gcc -w -DHAVE_SIGNAL_H -rdynamic CMakeFiles/cmTC_4a22f.dir/SIZEOF_SIG_ATOMIC_T.c.o -o cmTC_4a22f
  5583. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5584. Performing C SOURCE FILE Test HAVE_SIG_ATOMIC_T_NOT_VOLATILE succeeded with the following output:
  5585. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5586. Run Build Command:"/usr/bin/make" "cmTC_d054d/fast"
  5587. make -f CMakeFiles/cmTC_d054d.dir/build.make CMakeFiles/cmTC_d054d.dir/build
  5588. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5589. Building C object CMakeFiles/cmTC_d054d.dir/src.c.o
  5590. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/include -w -DHAVE_SIG_ATOMIC_T_NOT_VOLATILE -DHAVE_SIGNAL_H -o CMakeFiles/cmTC_d054d.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  5591. Linking C executable cmTC_d054d
  5592. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d054d.dir/link.txt --verbose=1
  5593. /usr/bin/gcc -w -DHAVE_SIG_ATOMIC_T_NOT_VOLATILE -DHAVE_SIGNAL_H -rdynamic CMakeFiles/cmTC_d054d.dir/src.c.o -o cmTC_d054d
  5594. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5595. Source file was:
  5596. #ifdef HAVE_SIGNAL_H
  5597. # include <signal.h>
  5598. #endif
  5599. int main(void) {
  5600. static volatile sig_atomic_t dummy = 0;
  5601. (void)dummy;
  5602. return 0;
  5603. }
  5604. Determining size of struct sockaddr_storage passed with the following output:
  5605. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5606. Run Build Command:"/usr/bin/make" "cmTC_38e1b/fast"
  5607. make -f CMakeFiles/cmTC_38e1b.dir/build.make CMakeFiles/cmTC_38e1b.dir/build
  5608. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5609. Building C object CMakeFiles/cmTC_38e1b.dir/SIZEOF_STRUCT_SOCKADDR_STORAGE.c.o
  5610. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmcurl/include -w -DHAVE_SIGNAL_H -o CMakeFiles/cmTC_38e1b.dir/SIZEOF_STRUCT_SOCKADDR_STORAGE.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZEOF_STRUCT_SOCKADDR_STORAGE.c
  5611. Linking C executable cmTC_38e1b
  5612. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_38e1b.dir/link.txt --verbose=1
  5613. /usr/bin/gcc -w -DHAVE_SIGNAL_H -rdynamic CMakeFiles/cmTC_38e1b.dir/SIZEOF_STRUCT_SOCKADDR_STORAGE.c.o -o cmTC_38e1b
  5614. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5615. Determining if the function getpagesize exists passed with the following output:
  5616. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5617. Run Build Command:"/usr/bin/make" "cmTC_24387/fast"
  5618. make -f CMakeFiles/cmTC_24387.dir/build.make CMakeFiles/cmTC_24387.dir/build
  5619. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5620. Building C object CMakeFiles/cmTC_24387.dir/CheckFunctionExists.c.o
  5621. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=getpagesize -o CMakeFiles/cmTC_24387.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  5622. Linking C executable cmTC_24387
  5623. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_24387.dir/link.txt --verbose=1
  5624. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=getpagesize -rdynamic CMakeFiles/cmTC_24387.dir/CheckFunctionExists.c.o -o cmTC_24387
  5625. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5626. Determining if the function bcopy exists passed with the following output:
  5627. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5628. Run Build Command:"/usr/bin/make" "cmTC_6ab28/fast"
  5629. make -f CMakeFiles/cmTC_6ab28.dir/build.make CMakeFiles/cmTC_6ab28.dir/build
  5630. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5631. Building C object CMakeFiles/cmTC_6ab28.dir/CheckFunctionExists.c.o
  5632. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=bcopy -o CMakeFiles/cmTC_6ab28.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  5633. Linking C executable cmTC_6ab28
  5634. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6ab28.dir/link.txt --verbose=1
  5635. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=bcopy -rdynamic CMakeFiles/cmTC_6ab28.dir/CheckFunctionExists.c.o -o cmTC_6ab28
  5636. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5637. Determining if the memmove exist passed with the following output:
  5638. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5639. Run Build Command:"/usr/bin/make" "cmTC_bc396/fast"
  5640. make -f CMakeFiles/cmTC_bc396.dir/build.make CMakeFiles/cmTC_bc396.dir/build
  5641. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5642. Building C object CMakeFiles/cmTC_bc396.dir/CheckSymbolExists.c.o
  5643. /usr/bin/gcc -w -o CMakeFiles/cmTC_bc396.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  5644. Linking C executable cmTC_bc396
  5645. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_bc396.dir/link.txt --verbose=1
  5646. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_bc396.dir/CheckSymbolExists.c.o -o cmTC_bc396
  5647. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5648. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  5649. /* */
  5650. #include <string.h>
  5651. int main(int argc, char** argv)
  5652. {
  5653. (void)argv;
  5654. #ifndef memmove
  5655. return ((int*)(&memmove))[argc];
  5656. #else
  5657. (void)argc;
  5658. return 0;
  5659. #endif
  5660. }
  5661. Determining if the function mmap exists passed with the following output:
  5662. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5663. Run Build Command:"/usr/bin/make" "cmTC_8edea/fast"
  5664. make -f CMakeFiles/cmTC_8edea.dir/build.make CMakeFiles/cmTC_8edea.dir/build
  5665. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5666. Building C object CMakeFiles/cmTC_8edea.dir/CheckFunctionExists.c.o
  5667. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=mmap -o CMakeFiles/cmTC_8edea.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  5668. Linking C executable cmTC_8edea
  5669. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8edea.dir/link.txt --verbose=1
  5670. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=mmap -rdynamic CMakeFiles/cmTC_8edea.dir/CheckFunctionExists.c.o -o cmTC_8edea
  5671. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5672. Determining size of unsigned short passed with the following output:
  5673. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5674. Run Build Command:"/usr/bin/make" "cmTC_0dd07/fast"
  5675. make -f CMakeFiles/cmTC_0dd07.dir/build.make CMakeFiles/cmTC_0dd07.dir/build
  5676. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5677. Building C object CMakeFiles/cmTC_0dd07.dir/CMAKE_SIZEOF_UNSIGNED_SHORT.c.o
  5678. /usr/bin/gcc -w -o CMakeFiles/cmTC_0dd07.dir/CMAKE_SIZEOF_UNSIGNED_SHORT.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/CMAKE_SIZEOF_UNSIGNED_SHORT.c
  5679. Linking C executable cmTC_0dd07
  5680. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0dd07.dir/link.txt --verbose=1
  5681. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_0dd07.dir/CMAKE_SIZEOF_UNSIGNED_SHORT.c.o -o cmTC_0dd07
  5682. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5683. Determining if the system is big endian passed with the following output:
  5684. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5685. Run Build Command:"/usr/bin/make" "cmTC_ebd00/fast"
  5686. make -f CMakeFiles/cmTC_ebd00.dir/build.make CMakeFiles/cmTC_ebd00.dir/build
  5687. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5688. Building C object CMakeFiles/cmTC_ebd00.dir/TestEndianess.c.o
  5689. /usr/bin/gcc -w -o CMakeFiles/cmTC_ebd00.dir/TestEndianess.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/TestEndianess.c
  5690. Linking C executable cmTC_ebd00
  5691. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ebd00.dir/link.txt --verbose=1
  5692. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_ebd00.dir/TestEndianess.c.o -o cmTC_ebd00
  5693. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5694. TestEndianess.c:
  5695. /* A 16 bit integer is required. */
  5696. typedef unsigned short cmakeint16;
  5697. /* On a little endian machine, these 16bit ints will give "THIS IS LITTLE ENDIAN."
  5698. On a big endian machine the characters will be exchanged pairwise. */
  5699. const cmakeint16 info_little[] = {0x4854, 0x5349, 0x4920, 0x2053, 0x494c, 0x5454, 0x454c, 0x4520, 0x444e, 0x4149, 0x2e4e, 0x0000};
  5700. /* on a big endian machine, these 16bit ints will give "THIS IS BIG ENDIAN."
  5701. On a little endian machine the characters will be exchanged pairwise. */
  5702. const cmakeint16 info_big[] = {0x5448, 0x4953, 0x2049, 0x5320, 0x4249, 0x4720, 0x454e, 0x4449, 0x414e, 0x2e2e, 0x0000};
  5703. #ifdef __CLASSIC_C__
  5704. int main(argc, argv) int argc; char *argv[];
  5705. #else
  5706. int main(int argc, char *argv[])
  5707. #endif
  5708. {
  5709. int require = 0;
  5710. require += info_little[argc];
  5711. require += info_big[argc];
  5712. (void)argv;
  5713. return require;
  5714. }
  5715. Performing C SOURCE FILE Test HAVE_RESTRICT succeeded with the following output:
  5716. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5717. Run Build Command:"/usr/bin/make" "cmTC_bf832/fast"
  5718. make -f CMakeFiles/cmTC_bf832.dir/build.make CMakeFiles/cmTC_bf832.dir/build
  5719. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5720. Building C object CMakeFiles/cmTC_bf832.dir/src.c.o
  5721. /usr/bin/gcc -DHAVE_RESTRICT -o CMakeFiles/cmTC_bf832.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  5722. Linking C executable cmTC_bf832
  5723. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_bf832.dir/link.txt --verbose=1
  5724. /usr/bin/gcc -DHAVE_RESTRICT -rdynamic CMakeFiles/cmTC_bf832.dir/src.c.o -o cmTC_bf832
  5725. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5726. Source file was:
  5727. int test (void *restrict x);
  5728. int main (void) {return 0;}
  5729. Performing C SOURCE FILE Test HAVE___RESTRICT succeeded with the following output:
  5730. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5731. Run Build Command:"/usr/bin/make" "cmTC_81253/fast"
  5732. make -f CMakeFiles/cmTC_81253.dir/build.make CMakeFiles/cmTC_81253.dir/build
  5733. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5734. Building C object CMakeFiles/cmTC_81253.dir/src.c.o
  5735. /usr/bin/gcc -DHAVE___RESTRICT -o CMakeFiles/cmTC_81253.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  5736. Linking C executable cmTC_81253
  5737. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_81253.dir/link.txt --verbose=1
  5738. /usr/bin/gcc -DHAVE___RESTRICT -rdynamic CMakeFiles/cmTC_81253.dir/src.c.o -o cmTC_81253
  5739. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5740. Source file was:
  5741. typedef struct abc *d;
  5742. int test (d __restrict x);
  5743. int main (void) {return 0;}
  5744. Performing C SOURCE FILE Test HAVE_INLINE succeeded with the following output:
  5745. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5746. Run Build Command:"/usr/bin/make" "cmTC_b5f25/fast"
  5747. make -f CMakeFiles/cmTC_b5f25.dir/build.make CMakeFiles/cmTC_b5f25.dir/build
  5748. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5749. Building C object CMakeFiles/cmTC_b5f25.dir/src.c.o
  5750. /usr/bin/gcc -DHAVE_INLINE -o CMakeFiles/cmTC_b5f25.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  5751. Linking C executable cmTC_b5f25
  5752. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b5f25.dir/link.txt --verbose=1
  5753. /usr/bin/gcc -DHAVE_INLINE -rdynamic CMakeFiles/cmTC_b5f25.dir/src.c.o -o cmTC_b5f25
  5754. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5755. Source file was:
  5756. static inline int test (void) {return 0;}
  5757. int main (void) {return test();}
  5758. Performing C SOURCE FILE Test HAVE___INLINE succeeded with the following output:
  5759. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5760. Run Build Command:"/usr/bin/make" "cmTC_5c154/fast"
  5761. make -f CMakeFiles/cmTC_5c154.dir/build.make CMakeFiles/cmTC_5c154.dir/build
  5762. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5763. Building C object CMakeFiles/cmTC_5c154.dir/src.c.o
  5764. /usr/bin/gcc -DHAVE___INLINE -o CMakeFiles/cmTC_5c154.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  5765. Linking C executable cmTC_5c154
  5766. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_5c154.dir/link.txt --verbose=1
  5767. /usr/bin/gcc -DHAVE___INLINE -rdynamic CMakeFiles/cmTC_5c154.dir/src.c.o -o cmTC_5c154
  5768. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5769. Source file was:
  5770. static __inline int test (void) {return 0;}
  5771. int main (void) {return test();}
  5772. Determining if the include file byteswap.h exists passed with the following output:
  5773. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5774. Run Build Command:"/usr/bin/make" "cmTC_83200/fast"
  5775. make -f CMakeFiles/cmTC_83200.dir/build.make CMakeFiles/cmTC_83200.dir/build
  5776. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5777. Building C object CMakeFiles/cmTC_83200.dir/CheckIncludeFile.c.o
  5778. /usr/bin/gcc -o CMakeFiles/cmTC_83200.dir/CheckIncludeFile.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckIncludeFile.c
  5779. Linking C executable cmTC_83200
  5780. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_83200.dir/link.txt --verbose=1
  5781. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_83200.dir/CheckIncludeFile.c.o -o cmTC_83200
  5782. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5783. Determining if the include file limits.h exists passed with the following output:
  5784. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5785. Run Build Command:"/usr/bin/make" "cmTC_7ee0c/fast"
  5786. make -f CMakeFiles/cmTC_7ee0c.dir/build.make CMakeFiles/cmTC_7ee0c.dir/build
  5787. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5788. Building C object CMakeFiles/cmTC_7ee0c.dir/CheckIncludeFile.c.o
  5789. /usr/bin/gcc -o CMakeFiles/cmTC_7ee0c.dir/CheckIncludeFile.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckIncludeFile.c
  5790. Linking C executable cmTC_7ee0c
  5791. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7ee0c.dir/link.txt --verbose=1
  5792. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_7ee0c.dir/CheckIncludeFile.c.o -o cmTC_7ee0c
  5793. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5794. Determining if the include file sys/sysctl.h exists passed with the following output:
  5795. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5796. Run Build Command:"/usr/bin/make" "cmTC_cd76b/fast"
  5797. make -f CMakeFiles/cmTC_cd76b.dir/build.make CMakeFiles/cmTC_cd76b.dir/build
  5798. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5799. Building C object CMakeFiles/cmTC_cd76b.dir/CheckIncludeFile.c.o
  5800. /usr/bin/gcc -o CMakeFiles/cmTC_cd76b.dir/CheckIncludeFile.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckIncludeFile.c
  5801. Linking C executable cmTC_cd76b
  5802. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_cd76b.dir/link.txt --verbose=1
  5803. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_cd76b.dir/CheckIncludeFile.c.o -o cmTC_cd76b
  5804. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5805. Performing C SOURCE FILE Test HAVE_BSWAP_16 succeeded with the following output:
  5806. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5807. Run Build Command:"/usr/bin/make" "cmTC_180ba/fast"
  5808. make -f CMakeFiles/cmTC_180ba.dir/build.make CMakeFiles/cmTC_180ba.dir/build
  5809. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5810. Building C object CMakeFiles/cmTC_180ba.dir/src.c.o
  5811. /usr/bin/gcc -DHAVE_BSWAP_16 -o CMakeFiles/cmTC_180ba.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  5812. Linking C executable cmTC_180ba
  5813. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_180ba.dir/link.txt --verbose=1
  5814. /usr/bin/gcc -DHAVE_BSWAP_16 -rdynamic CMakeFiles/cmTC_180ba.dir/src.c.o -o cmTC_180ba
  5815. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5816. Source file was:
  5817. #include<byteswap.h>
  5818. int main(void){bswap_16(0);return 0;}
  5819. Performing C SOURCE FILE Test HAVE_BSWAP_32 succeeded with the following output:
  5820. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5821. Run Build Command:"/usr/bin/make" "cmTC_58d5d/fast"
  5822. make -f CMakeFiles/cmTC_58d5d.dir/build.make CMakeFiles/cmTC_58d5d.dir/build
  5823. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5824. Building C object CMakeFiles/cmTC_58d5d.dir/src.c.o
  5825. /usr/bin/gcc -DHAVE_BSWAP_32 -o CMakeFiles/cmTC_58d5d.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  5826. Linking C executable cmTC_58d5d
  5827. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_58d5d.dir/link.txt --verbose=1
  5828. /usr/bin/gcc -DHAVE_BSWAP_32 -rdynamic CMakeFiles/cmTC_58d5d.dir/src.c.o -o cmTC_58d5d
  5829. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5830. Source file was:
  5831. #include<byteswap.h>
  5832. int main(void){bswap_32(0);return 0;}
  5833. Performing C SOURCE FILE Test HAVE_BSWAP_64 succeeded with the following output:
  5834. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5835. Run Build Command:"/usr/bin/make" "cmTC_d553d/fast"
  5836. make -f CMakeFiles/cmTC_d553d.dir/build.make CMakeFiles/cmTC_d553d.dir/build
  5837. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5838. Building C object CMakeFiles/cmTC_d553d.dir/src.c.o
  5839. /usr/bin/gcc -DHAVE_BSWAP_64 -o CMakeFiles/cmTC_d553d.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  5840. Linking C executable cmTC_d553d
  5841. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d553d.dir/link.txt --verbose=1
  5842. /usr/bin/gcc -DHAVE_BSWAP_64 -rdynamic CMakeFiles/cmTC_d553d.dir/src.c.o -o cmTC_d553d
  5843. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5844. Source file was:
  5845. #include<byteswap.h>
  5846. int main(void){bswap_64(0);return 0;}
  5847. Determining size of int16_t passed with the following output:
  5848. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5849. Run Build Command:"/usr/bin/make" "cmTC_d477c/fast"
  5850. make -f CMakeFiles/cmTC_d477c.dir/build.make CMakeFiles/cmTC_d477c.dir/build
  5851. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5852. Building C object CMakeFiles/cmTC_d477c.dir/INT16_T.c.o
  5853. /usr/bin/gcc -o CMakeFiles/cmTC_d477c.dir/INT16_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/INT16_T.c
  5854. Linking C executable cmTC_d477c
  5855. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d477c.dir/link.txt --verbose=1
  5856. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_d477c.dir/INT16_T.c.o -o cmTC_d477c
  5857. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5858. Determining size of int32_t passed with the following output:
  5859. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5860. Run Build Command:"/usr/bin/make" "cmTC_5219e/fast"
  5861. make -f CMakeFiles/cmTC_5219e.dir/build.make CMakeFiles/cmTC_5219e.dir/build
  5862. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5863. Building C object CMakeFiles/cmTC_5219e.dir/INT32_T.c.o
  5864. /usr/bin/gcc -o CMakeFiles/cmTC_5219e.dir/INT32_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/INT32_T.c
  5865. Linking C executable cmTC_5219e
  5866. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_5219e.dir/link.txt --verbose=1
  5867. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_5219e.dir/INT32_T.c.o -o cmTC_5219e
  5868. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5869. Determining size of int64_t passed with the following output:
  5870. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5871. Run Build Command:"/usr/bin/make" "cmTC_fc64d/fast"
  5872. make -f CMakeFiles/cmTC_fc64d.dir/build.make CMakeFiles/cmTC_fc64d.dir/build
  5873. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5874. Building C object CMakeFiles/cmTC_fc64d.dir/INT64_T.c.o
  5875. /usr/bin/gcc -o CMakeFiles/cmTC_fc64d.dir/INT64_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/INT64_T.c
  5876. Linking C executable cmTC_fc64d
  5877. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_fc64d.dir/link.txt --verbose=1
  5878. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_fc64d.dir/INT64_T.c.o -o cmTC_fc64d
  5879. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5880. Determining size of intmax_t passed with the following output:
  5881. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5882. Run Build Command:"/usr/bin/make" "cmTC_d13ba/fast"
  5883. make -f CMakeFiles/cmTC_d13ba.dir/build.make CMakeFiles/cmTC_d13ba.dir/build
  5884. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5885. Building C object CMakeFiles/cmTC_d13ba.dir/INTMAX_T.c.o
  5886. /usr/bin/gcc -o CMakeFiles/cmTC_d13ba.dir/INTMAX_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/INTMAX_T.c
  5887. Linking C executable cmTC_d13ba
  5888. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d13ba.dir/link.txt --verbose=1
  5889. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_d13ba.dir/INTMAX_T.c.o -o cmTC_d13ba
  5890. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5891. Determining size of uint8_t passed with the following output:
  5892. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5893. Run Build Command:"/usr/bin/make" "cmTC_cffd7/fast"
  5894. make -f CMakeFiles/cmTC_cffd7.dir/build.make CMakeFiles/cmTC_cffd7.dir/build
  5895. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5896. Building C object CMakeFiles/cmTC_cffd7.dir/UINT8_T.c.o
  5897. /usr/bin/gcc -o CMakeFiles/cmTC_cffd7.dir/UINT8_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/UINT8_T.c
  5898. Linking C executable cmTC_cffd7
  5899. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_cffd7.dir/link.txt --verbose=1
  5900. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_cffd7.dir/UINT8_T.c.o -o cmTC_cffd7
  5901. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5902. Determining size of uint16_t passed with the following output:
  5903. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5904. Run Build Command:"/usr/bin/make" "cmTC_c4fb2/fast"
  5905. make -f CMakeFiles/cmTC_c4fb2.dir/build.make CMakeFiles/cmTC_c4fb2.dir/build
  5906. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5907. Building C object CMakeFiles/cmTC_c4fb2.dir/UINT16_T.c.o
  5908. /usr/bin/gcc -o CMakeFiles/cmTC_c4fb2.dir/UINT16_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/UINT16_T.c
  5909. Linking C executable cmTC_c4fb2
  5910. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c4fb2.dir/link.txt --verbose=1
  5911. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_c4fb2.dir/UINT16_T.c.o -o cmTC_c4fb2
  5912. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5913. Determining size of uint32_t passed with the following output:
  5914. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5915. Run Build Command:"/usr/bin/make" "cmTC_137c1/fast"
  5916. make -f CMakeFiles/cmTC_137c1.dir/build.make CMakeFiles/cmTC_137c1.dir/build
  5917. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5918. Building C object CMakeFiles/cmTC_137c1.dir/UINT32_T.c.o
  5919. /usr/bin/gcc -o CMakeFiles/cmTC_137c1.dir/UINT32_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/UINT32_T.c
  5920. Linking C executable cmTC_137c1
  5921. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_137c1.dir/link.txt --verbose=1
  5922. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_137c1.dir/UINT32_T.c.o -o cmTC_137c1
  5923. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5924. Determining size of uint64_t passed with the following output:
  5925. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5926. Run Build Command:"/usr/bin/make" "cmTC_a246b/fast"
  5927. make -f CMakeFiles/cmTC_a246b.dir/build.make CMakeFiles/cmTC_a246b.dir/build
  5928. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5929. Building C object CMakeFiles/cmTC_a246b.dir/UINT64_T.c.o
  5930. /usr/bin/gcc -o CMakeFiles/cmTC_a246b.dir/UINT64_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/UINT64_T.c
  5931. Linking C executable cmTC_a246b
  5932. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a246b.dir/link.txt --verbose=1
  5933. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_a246b.dir/UINT64_T.c.o -o cmTC_a246b
  5934. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5935. Determining size of uintmax_t passed with the following output:
  5936. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5937. Run Build Command:"/usr/bin/make" "cmTC_3f85b/fast"
  5938. make -f CMakeFiles/cmTC_3f85b.dir/build.make CMakeFiles/cmTC_3f85b.dir/build
  5939. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5940. Building C object CMakeFiles/cmTC_3f85b.dir/UINTMAX_T.c.o
  5941. /usr/bin/gcc -o CMakeFiles/cmTC_3f85b.dir/UINTMAX_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/UINTMAX_T.c
  5942. Linking C executable cmTC_3f85b
  5943. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3f85b.dir/link.txt --verbose=1
  5944. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_3f85b.dir/UINTMAX_T.c.o -o cmTC_3f85b
  5945. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5946. Determining size of short passed with the following output:
  5947. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5948. Run Build Command:"/usr/bin/make" "cmTC_b3757/fast"
  5949. make -f CMakeFiles/cmTC_b3757.dir/build.make CMakeFiles/cmTC_b3757.dir/build
  5950. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5951. Building C object CMakeFiles/cmTC_b3757.dir/SIZE_OF_SHORT.c.o
  5952. /usr/bin/gcc -o CMakeFiles/cmTC_b3757.dir/SIZE_OF_SHORT.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZE_OF_SHORT.c
  5953. Linking C executable cmTC_b3757
  5954. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b3757.dir/link.txt --verbose=1
  5955. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_b3757.dir/SIZE_OF_SHORT.c.o -o cmTC_b3757
  5956. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5957. Determining size of int passed with the following output:
  5958. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5959. Run Build Command:"/usr/bin/make" "cmTC_fa9e8/fast"
  5960. make -f CMakeFiles/cmTC_fa9e8.dir/build.make CMakeFiles/cmTC_fa9e8.dir/build
  5961. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5962. Building C object CMakeFiles/cmTC_fa9e8.dir/SIZE_OF_INT.c.o
  5963. /usr/bin/gcc -o CMakeFiles/cmTC_fa9e8.dir/SIZE_OF_INT.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZE_OF_INT.c
  5964. Linking C executable cmTC_fa9e8
  5965. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_fa9e8.dir/link.txt --verbose=1
  5966. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_fa9e8.dir/SIZE_OF_INT.c.o -o cmTC_fa9e8
  5967. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5968. Determining size of long passed with the following output:
  5969. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5970. Run Build Command:"/usr/bin/make" "cmTC_91117/fast"
  5971. make -f CMakeFiles/cmTC_91117.dir/build.make CMakeFiles/cmTC_91117.dir/build
  5972. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5973. Building C object CMakeFiles/cmTC_91117.dir/SIZE_OF_LONG.c.o
  5974. /usr/bin/gcc -o CMakeFiles/cmTC_91117.dir/SIZE_OF_LONG.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZE_OF_LONG.c
  5975. Linking C executable cmTC_91117
  5976. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_91117.dir/link.txt --verbose=1
  5977. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_91117.dir/SIZE_OF_LONG.c.o -o cmTC_91117
  5978. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5979. Determining size of long long passed with the following output:
  5980. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5981. Run Build Command:"/usr/bin/make" "cmTC_71d8d/fast"
  5982. make -f CMakeFiles/cmTC_71d8d.dir/build.make CMakeFiles/cmTC_71d8d.dir/build
  5983. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5984. Building C object CMakeFiles/cmTC_71d8d.dir/SIZE_OF_LONG_LONG.c.o
  5985. /usr/bin/gcc -o CMakeFiles/cmTC_71d8d.dir/SIZE_OF_LONG_LONG.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZE_OF_LONG_LONG.c
  5986. Linking C executable cmTC_71d8d
  5987. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_71d8d.dir/link.txt --verbose=1
  5988. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_71d8d.dir/SIZE_OF_LONG_LONG.c.o -o cmTC_71d8d
  5989. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5990. Determining size of unsigned short passed with the following output:
  5991. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  5992. Run Build Command:"/usr/bin/make" "cmTC_5439d/fast"
  5993. make -f CMakeFiles/cmTC_5439d.dir/build.make CMakeFiles/cmTC_5439d.dir/build
  5994. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  5995. Building C object CMakeFiles/cmTC_5439d.dir/SIZE_OF_UNSIGNED_SHORT.c.o
  5996. /usr/bin/gcc -o CMakeFiles/cmTC_5439d.dir/SIZE_OF_UNSIGNED_SHORT.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZE_OF_UNSIGNED_SHORT.c
  5997. Linking C executable cmTC_5439d
  5998. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_5439d.dir/link.txt --verbose=1
  5999. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_5439d.dir/SIZE_OF_UNSIGNED_SHORT.c.o -o cmTC_5439d
  6000. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6001. Determining size of unsigned passed with the following output:
  6002. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6003. Run Build Command:"/usr/bin/make" "cmTC_68231/fast"
  6004. make -f CMakeFiles/cmTC_68231.dir/build.make CMakeFiles/cmTC_68231.dir/build
  6005. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6006. Building C object CMakeFiles/cmTC_68231.dir/SIZE_OF_UNSIGNED.c.o
  6007. /usr/bin/gcc -o CMakeFiles/cmTC_68231.dir/SIZE_OF_UNSIGNED.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZE_OF_UNSIGNED.c
  6008. Linking C executable cmTC_68231
  6009. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_68231.dir/link.txt --verbose=1
  6010. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_68231.dir/SIZE_OF_UNSIGNED.c.o -o cmTC_68231
  6011. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6012. Determining size of unsigned long passed with the following output:
  6013. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6014. Run Build Command:"/usr/bin/make" "cmTC_e0455/fast"
  6015. make -f CMakeFiles/cmTC_e0455.dir/build.make CMakeFiles/cmTC_e0455.dir/build
  6016. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6017. Building C object CMakeFiles/cmTC_e0455.dir/SIZE_OF_UNSIGNED_LONG.c.o
  6018. /usr/bin/gcc -o CMakeFiles/cmTC_e0455.dir/SIZE_OF_UNSIGNED_LONG.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZE_OF_UNSIGNED_LONG.c
  6019. Linking C executable cmTC_e0455
  6020. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e0455.dir/link.txt --verbose=1
  6021. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_e0455.dir/SIZE_OF_UNSIGNED_LONG.c.o -o cmTC_e0455
  6022. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6023. Determining size of unsigned long long passed with the following output:
  6024. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6025. Run Build Command:"/usr/bin/make" "cmTC_c2cfe/fast"
  6026. make -f CMakeFiles/cmTC_c2cfe.dir/build.make CMakeFiles/cmTC_c2cfe.dir/build
  6027. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6028. Building C object CMakeFiles/cmTC_c2cfe.dir/SIZE_OF_UNSIGNED_LONG_LONG.c.o
  6029. /usr/bin/gcc -o CMakeFiles/cmTC_c2cfe.dir/SIZE_OF_UNSIGNED_LONG_LONG.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZE_OF_UNSIGNED_LONG_LONG.c
  6030. Linking C executable cmTC_c2cfe
  6031. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c2cfe.dir/link.txt --verbose=1
  6032. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_c2cfe.dir/SIZE_OF_UNSIGNED_LONG_LONG.c.o -o cmTC_c2cfe
  6033. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6034. Determining size of size_t passed with the following output:
  6035. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6036. Run Build Command:"/usr/bin/make" "cmTC_68587/fast"
  6037. make -f CMakeFiles/cmTC_68587.dir/build.make CMakeFiles/cmTC_68587.dir/build
  6038. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6039. Building C object CMakeFiles/cmTC_68587.dir/SIZE_OF_SIZE_T.c.o
  6040. /usr/bin/gcc -o CMakeFiles/cmTC_68587.dir/SIZE_OF_SIZE_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZE_OF_SIZE_T.c
  6041. Linking C executable cmTC_68587
  6042. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_68587.dir/link.txt --verbose=1
  6043. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_68587.dir/SIZE_OF_SIZE_T.c.o -o cmTC_68587
  6044. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6045. Determining size of uintptr_t passed with the following output:
  6046. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6047. Run Build Command:"/usr/bin/make" "cmTC_5b179/fast"
  6048. make -f CMakeFiles/cmTC_5b179.dir/build.make CMakeFiles/cmTC_5b179.dir/build
  6049. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6050. Building C object CMakeFiles/cmTC_5b179.dir/UINTPTR_T.c.o
  6051. /usr/bin/gcc -o CMakeFiles/cmTC_5b179.dir/UINTPTR_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/UINTPTR_T.c
  6052. Linking C executable cmTC_5b179
  6053. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_5b179.dir/link.txt --verbose=1
  6054. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_5b179.dir/UINTPTR_T.c.o -o cmTC_5b179
  6055. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6056. Performing C SOURCE FILE Test HAVE_DIRENT_H succeeded with the following output:
  6057. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6058. Run Build Command:"/usr/bin/make" "cmTC_6bb5e/fast"
  6059. make -f CMakeFiles/cmTC_6bb5e.dir/build.make CMakeFiles/cmTC_6bb5e.dir/build
  6060. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6061. Building C object CMakeFiles/cmTC_6bb5e.dir/src.c.o
  6062. /usr/bin/gcc -w -DHAVE_DIRENT_H -o CMakeFiles/cmTC_6bb5e.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  6063. Linking C executable cmTC_6bb5e
  6064. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6bb5e.dir/link.txt --verbose=1
  6065. /usr/bin/gcc -w -DHAVE_DIRENT_H -rdynamic CMakeFiles/cmTC_6bb5e.dir/src.c.o -o cmTC_6bb5e
  6066. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6067. Source file was:
  6068. #include <dirent.h>
  6069. int main()
  6070. {
  6071. static DIR * tmp;
  6072. if (sizeof(tmp))
  6073. return 0;
  6074. return 0;
  6075. }
  6076. Determining if files sys/types.h;ctype.h exist passed with the following output:
  6077. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6078. Run Build Command:"/usr/bin/make" "cmTC_2f63b/fast"
  6079. make -f CMakeFiles/cmTC_2f63b.dir/build.make CMakeFiles/cmTC_2f63b.dir/build
  6080. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6081. Building C object CMakeFiles/cmTC_2f63b.dir/HAVE_CTYPE_H.c.o
  6082. /usr/bin/gcc -w -o CMakeFiles/cmTC_2f63b.dir/HAVE_CTYPE_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_CTYPE_H.c
  6083. Linking C executable cmTC_2f63b
  6084. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2f63b.dir/link.txt --verbose=1
  6085. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_2f63b.dir/HAVE_CTYPE_H.c.o -o cmTC_2f63b
  6086. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6087. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h exist passed with the following output:
  6088. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6089. Run Build Command:"/usr/bin/make" "cmTC_d905c/fast"
  6090. make -f CMakeFiles/cmTC_d905c.dir/build.make CMakeFiles/cmTC_d905c.dir/build
  6091. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6092. Building C object CMakeFiles/cmTC_d905c.dir/HAVE_GRP_H.c.o
  6093. /usr/bin/gcc -w -o CMakeFiles/cmTC_d905c.dir/HAVE_GRP_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_GRP_H.c
  6094. Linking C executable cmTC_d905c
  6095. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d905c.dir/link.txt --verbose=1
  6096. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_d905c.dir/HAVE_GRP_H.c.o -o cmTC_d905c
  6097. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6098. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h;inttypes.h;langinfo.h exist passed with the following output:
  6099. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6100. Run Build Command:"/usr/bin/make" "cmTC_0da2b/fast"
  6101. make -f CMakeFiles/cmTC_0da2b.dir/build.make CMakeFiles/cmTC_0da2b.dir/build
  6102. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6103. Building C object CMakeFiles/cmTC_0da2b.dir/HAVE_LANGINFO_H.c.o
  6104. /usr/bin/gcc -w -o CMakeFiles/cmTC_0da2b.dir/HAVE_LANGINFO_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_LANGINFO_H.c
  6105. Linking C executable cmTC_0da2b
  6106. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0da2b.dir/link.txt --verbose=1
  6107. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_0da2b.dir/HAVE_LANGINFO_H.c.o -o cmTC_0da2b
  6108. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6109. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h exist passed with the following output:
  6110. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6111. Run Build Command:"/usr/bin/make" "cmTC_829fa/fast"
  6112. make -f CMakeFiles/cmTC_829fa.dir/build.make CMakeFiles/cmTC_829fa.dir/build
  6113. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6114. Building C object CMakeFiles/cmTC_829fa.dir/HAVE_LINUX_TYPES_H.c.o
  6115. /usr/bin/gcc -w -o CMakeFiles/cmTC_829fa.dir/HAVE_LINUX_TYPES_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_LINUX_TYPES_H.c
  6116. Linking C executable cmTC_829fa
  6117. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_829fa.dir/link.txt --verbose=1
  6118. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_829fa.dir/HAVE_LINUX_TYPES_H.c.o -o cmTC_829fa
  6119. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6120. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h exist passed with the following output:
  6121. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6122. Run Build Command:"/usr/bin/make" "cmTC_3586d/fast"
  6123. make -f CMakeFiles/cmTC_3586d.dir/build.make CMakeFiles/cmTC_3586d.dir/build
  6124. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6125. Building C object CMakeFiles/cmTC_3586d.dir/HAVE_LINUX_FIEMAP_H.c.o
  6126. /usr/bin/gcc -w -o CMakeFiles/cmTC_3586d.dir/HAVE_LINUX_FIEMAP_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_LINUX_FIEMAP_H.c
  6127. Linking C executable cmTC_3586d
  6128. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3586d.dir/link.txt --verbose=1
  6129. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_3586d.dir/HAVE_LINUX_FIEMAP_H.c.o -o cmTC_3586d
  6130. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6131. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h exist passed with the following output:
  6132. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6133. Run Build Command:"/usr/bin/make" "cmTC_0e7d0/fast"
  6134. make -f CMakeFiles/cmTC_0e7d0.dir/build.make CMakeFiles/cmTC_0e7d0.dir/build
  6135. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6136. Building C object CMakeFiles/cmTC_0e7d0.dir/HAVE_LINUX_FS_H.c.o
  6137. /usr/bin/gcc -w -o CMakeFiles/cmTC_0e7d0.dir/HAVE_LINUX_FS_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_LINUX_FS_H.c
  6138. Linking C executable cmTC_0e7d0
  6139. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0e7d0.dir/link.txt --verbose=1
  6140. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_0e7d0.dir/HAVE_LINUX_FS_H.c.o -o cmTC_0e7d0
  6141. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6142. Performing C SOURCE FILE Test HAVE_WORKING_FS_IOC_GETFLAGS succeeded with the following output:
  6143. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6144. Run Build Command:"/usr/bin/make" "cmTC_3f01c/fast"
  6145. make -f CMakeFiles/cmTC_3f01c.dir/build.make CMakeFiles/cmTC_3f01c.dir/build
  6146. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6147. Building C object CMakeFiles/cmTC_3f01c.dir/src.c.o
  6148. /usr/bin/gcc -w -DHAVE_WORKING_FS_IOC_GETFLAGS -o CMakeFiles/cmTC_3f01c.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  6149. Linking C executable cmTC_3f01c
  6150. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3f01c.dir/link.txt --verbose=1
  6151. /usr/bin/gcc -w -DHAVE_WORKING_FS_IOC_GETFLAGS -rdynamic CMakeFiles/cmTC_3f01c.dir/src.c.o -o cmTC_3f01c
  6152. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6153. Source file was:
  6154. #include <sys/ioctl.h>
  6155. #include <linux/fs.h>
  6156. int main(void) { return FS_IOC_GETFLAGS; }
  6157. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h exist passed with the following output:
  6158. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6159. Run Build Command:"/usr/bin/make" "cmTC_03fdd/fast"
  6160. make -f CMakeFiles/cmTC_03fdd.dir/build.make CMakeFiles/cmTC_03fdd.dir/build
  6161. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6162. Building C object CMakeFiles/cmTC_03fdd.dir/HAVE_LINUX_MAGIC_H.c.o
  6163. /usr/bin/gcc -w -o CMakeFiles/cmTC_03fdd.dir/HAVE_LINUX_MAGIC_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_LINUX_MAGIC_H.c
  6164. Linking C executable cmTC_03fdd
  6165. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_03fdd.dir/link.txt --verbose=1
  6166. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_03fdd.dir/HAVE_LINUX_MAGIC_H.c.o -o cmTC_03fdd
  6167. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6168. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h exist passed with the following output:
  6169. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6170. Run Build Command:"/usr/bin/make" "cmTC_0c93a/fast"
  6171. make -f CMakeFiles/cmTC_0c93a.dir/build.make CMakeFiles/cmTC_0c93a.dir/build
  6172. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6173. Building C object CMakeFiles/cmTC_0c93a.dir/HAVE_PATHS_H.c.o
  6174. /usr/bin/gcc -w -o CMakeFiles/cmTC_0c93a.dir/HAVE_PATHS_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_PATHS_H.c
  6175. Linking C executable cmTC_0c93a
  6176. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0c93a.dir/link.txt --verbose=1
  6177. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_0c93a.dir/HAVE_PATHS_H.c.o -o cmTC_0c93a
  6178. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6179. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h exist passed with the following output:
  6180. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6181. Run Build Command:"/usr/bin/make" "cmTC_bcaae/fast"
  6182. make -f CMakeFiles/cmTC_bcaae.dir/build.make CMakeFiles/cmTC_bcaae.dir/build
  6183. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6184. Building C object CMakeFiles/cmTC_bcaae.dir/HAVE_REGEX_H.c.o
  6185. /usr/bin/gcc -w -o CMakeFiles/cmTC_bcaae.dir/HAVE_REGEX_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_REGEX_H.c
  6186. Linking C executable cmTC_bcaae
  6187. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_bcaae.dir/link.txt --verbose=1
  6188. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_bcaae.dir/HAVE_REGEX_H.c.o -o cmTC_bcaae
  6189. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6190. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h exist passed with the following output:
  6191. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6192. Run Build Command:"/usr/bin/make" "cmTC_05270/fast"
  6193. make -f CMakeFiles/cmTC_05270.dir/build.make CMakeFiles/cmTC_05270.dir/build
  6194. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6195. Building C object CMakeFiles/cmTC_05270.dir/HAVE_SPAWN_H.c.o
  6196. /usr/bin/gcc -w -o CMakeFiles/cmTC_05270.dir/HAVE_SPAWN_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SPAWN_H.c
  6197. Linking C executable cmTC_05270
  6198. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_05270.dir/link.txt --verbose=1
  6199. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_05270.dir/HAVE_SPAWN_H.c.o -o cmTC_05270
  6200. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6201. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h exist passed with the following output:
  6202. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6203. Run Build Command:"/usr/bin/make" "cmTC_12e80/fast"
  6204. make -f CMakeFiles/cmTC_12e80.dir/build.make CMakeFiles/cmTC_12e80.dir/build
  6205. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6206. Building C object CMakeFiles/cmTC_12e80.dir/HAVE_STDARG_H.c.o
  6207. /usr/bin/gcc -w -o CMakeFiles/cmTC_12e80.dir/HAVE_STDARG_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_STDARG_H.c
  6208. Linking C executable cmTC_12e80
  6209. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_12e80.dir/link.txt --verbose=1
  6210. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_12e80.dir/HAVE_STDARG_H.c.o -o cmTC_12e80
  6211. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6212. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h;stdint.h;stdlib.h;string.h;strings.h;sys/cdefs.h exist passed with the following output:
  6213. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6214. Run Build Command:"/usr/bin/make" "cmTC_8e640/fast"
  6215. make -f CMakeFiles/cmTC_8e640.dir/build.make CMakeFiles/cmTC_8e640.dir/build
  6216. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6217. Building C object CMakeFiles/cmTC_8e640.dir/HAVE_SYS_CDEFS_H.c.o
  6218. /usr/bin/gcc -w -o CMakeFiles/cmTC_8e640.dir/HAVE_SYS_CDEFS_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_CDEFS_H.c
  6219. Linking C executable cmTC_8e640
  6220. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_8e640.dir/link.txt --verbose=1
  6221. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_8e640.dir/HAVE_SYS_CDEFS_H.c.o -o cmTC_8e640
  6222. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6223. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h;stdint.h;stdlib.h;string.h;strings.h;sys/cdefs.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/select.h;sys/stat.h;sys/statfs.h exist passed with the following output:
  6224. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6225. Run Build Command:"/usr/bin/make" "cmTC_b2282/fast"
  6226. make -f CMakeFiles/cmTC_b2282.dir/build.make CMakeFiles/cmTC_b2282.dir/build
  6227. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6228. Building C object CMakeFiles/cmTC_b2282.dir/HAVE_SYS_STATFS_H.c.o
  6229. /usr/bin/gcc -w -o CMakeFiles/cmTC_b2282.dir/HAVE_SYS_STATFS_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_STATFS_H.c
  6230. Linking C executable cmTC_b2282
  6231. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b2282.dir/link.txt --verbose=1
  6232. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_b2282.dir/HAVE_SYS_STATFS_H.c.o -o cmTC_b2282
  6233. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6234. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h;stdint.h;stdlib.h;string.h;strings.h;sys/cdefs.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/select.h;sys/stat.h;sys/statfs.h;sys/statvfs.h exist passed with the following output:
  6235. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6236. Run Build Command:"/usr/bin/make" "cmTC_c952e/fast"
  6237. make -f CMakeFiles/cmTC_c952e.dir/build.make CMakeFiles/cmTC_c952e.dir/build
  6238. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6239. Building C object CMakeFiles/cmTC_c952e.dir/HAVE_SYS_STATVFS_H.c.o
  6240. /usr/bin/gcc -w -o CMakeFiles/cmTC_c952e.dir/HAVE_SYS_STATVFS_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_STATVFS_H.c
  6241. Linking C executable cmTC_c952e
  6242. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c952e.dir/link.txt --verbose=1
  6243. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_c952e.dir/HAVE_SYS_STATVFS_H.c.o -o cmTC_c952e
  6244. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6245. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h;stdint.h;stdlib.h;string.h;strings.h;sys/cdefs.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/select.h;sys/stat.h;sys/statfs.h;sys/statvfs.h;sys/time.h;sys/utsname.h;sys/vfs.h exist passed with the following output:
  6246. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6247. Run Build Command:"/usr/bin/make" "cmTC_63d8c/fast"
  6248. make -f CMakeFiles/cmTC_63d8c.dir/build.make CMakeFiles/cmTC_63d8c.dir/build
  6249. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6250. Building C object CMakeFiles/cmTC_63d8c.dir/HAVE_SYS_VFS_H.c.o
  6251. /usr/bin/gcc -w -o CMakeFiles/cmTC_63d8c.dir/HAVE_SYS_VFS_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_VFS_H.c
  6252. Linking C executable cmTC_63d8c
  6253. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_63d8c.dir/link.txt --verbose=1
  6254. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_63d8c.dir/HAVE_SYS_VFS_H.c.o -o cmTC_63d8c
  6255. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6256. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h;stdint.h;stdlib.h;string.h;strings.h;sys/cdefs.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/select.h;sys/stat.h;sys/statfs.h;sys/statvfs.h;sys/time.h;sys/utsname.h;sys/vfs.h;sys/wait.h exist passed with the following output:
  6257. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6258. Run Build Command:"/usr/bin/make" "cmTC_d39f2/fast"
  6259. make -f CMakeFiles/cmTC_d39f2.dir/build.make CMakeFiles/cmTC_d39f2.dir/build
  6260. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6261. Building C object CMakeFiles/cmTC_d39f2.dir/HAVE_SYS_WAIT_H.c.o
  6262. /usr/bin/gcc -w -o CMakeFiles/cmTC_d39f2.dir/HAVE_SYS_WAIT_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_SYS_WAIT_H.c
  6263. Linking C executable cmTC_d39f2
  6264. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d39f2.dir/link.txt --verbose=1
  6265. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_d39f2.dir/HAVE_SYS_WAIT_H.c.o -o cmTC_d39f2
  6266. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6267. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h;stdint.h;stdlib.h;string.h;strings.h;sys/cdefs.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/select.h;sys/stat.h;sys/statfs.h;sys/statvfs.h;sys/time.h;sys/utsname.h;sys/vfs.h;sys/wait.h;sys/xattr.h;time.h;unistd.h;utime.h;wchar.h exist passed with the following output:
  6268. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6269. Run Build Command:"/usr/bin/make" "cmTC_3d8fb/fast"
  6270. make -f CMakeFiles/cmTC_3d8fb.dir/build.make CMakeFiles/cmTC_3d8fb.dir/build
  6271. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6272. Building C object CMakeFiles/cmTC_3d8fb.dir/HAVE_WCHAR_H.c.o
  6273. /usr/bin/gcc -w -o CMakeFiles/cmTC_3d8fb.dir/HAVE_WCHAR_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_WCHAR_H.c
  6274. Linking C executable cmTC_3d8fb
  6275. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3d8fb.dir/link.txt --verbose=1
  6276. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_3d8fb.dir/HAVE_WCHAR_H.c.o -o cmTC_3d8fb
  6277. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6278. Determining if files sys/types.h;ctype.h;dlfcn.h;errno.h;fcntl.h;grp.h;inttypes.h;langinfo.h;limits.h;linux/types.h;linux/fiemap.h;linux/fs.h;linux/magic.h;locale.h;memory.h;paths.h;poll.h;pwd.h;regex.h;signal.h;spawn.h;stdarg.h;stdint.h;stdlib.h;string.h;strings.h;sys/cdefs.h;sys/ioctl.h;sys/param.h;sys/poll.h;sys/select.h;sys/stat.h;sys/statfs.h;sys/statvfs.h;sys/time.h;sys/utsname.h;sys/vfs.h;sys/wait.h;sys/xattr.h;time.h;unistd.h;utime.h;wchar.h;wctype.h exist passed with the following output:
  6279. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6280. Run Build Command:"/usr/bin/make" "cmTC_1e554/fast"
  6281. make -f CMakeFiles/cmTC_1e554.dir/build.make CMakeFiles/cmTC_1e554.dir/build
  6282. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6283. Building C object CMakeFiles/cmTC_1e554.dir/HAVE_WCTYPE_H.c.o
  6284. /usr/bin/gcc -w -o CMakeFiles/cmTC_1e554.dir/HAVE_WCTYPE_H.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckIncludeFiles/HAVE_WCTYPE_H.c
  6285. Linking C executable cmTC_1e554
  6286. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1e554.dir/link.txt --verbose=1
  6287. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_1e554.dir/HAVE_WCTYPE_H.c.o -o cmTC_1e554
  6288. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6289. Performing C SOURCE FILE Test SAFE_TO_DEFINE_EXTENSIONS succeeded with the following output:
  6290. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6291. Run Build Command:"/usr/bin/make" "cmTC_6b54b/fast"
  6292. make -f CMakeFiles/cmTC_6b54b.dir/build.make CMakeFiles/cmTC_6b54b.dir/build
  6293. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6294. Building C object CMakeFiles/cmTC_6b54b.dir/src.c.o
  6295. /usr/bin/gcc -w -DSAFE_TO_DEFINE_EXTENSIONS -o CMakeFiles/cmTC_6b54b.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  6296. Linking C executable cmTC_6b54b
  6297. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6b54b.dir/link.txt --verbose=1
  6298. /usr/bin/gcc -w -DSAFE_TO_DEFINE_EXTENSIONS -rdynamic CMakeFiles/cmTC_6b54b.dir/src.c.o -o cmTC_6b54b
  6299. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6300. Source file was:
  6301. #define __EXTENSIONS__ 1
  6302. int main() { return 0;}
  6303. Determining if the function chown exists passed with the following output:
  6304. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6305. Run Build Command:"/usr/bin/make" "cmTC_a56c1/fast"
  6306. make -f CMakeFiles/cmTC_a56c1.dir/build.make CMakeFiles/cmTC_a56c1.dir/build
  6307. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6308. Building C object CMakeFiles/cmTC_a56c1.dir/CheckFunctionExists.c.o
  6309. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=chown -fno-builtin -o CMakeFiles/cmTC_a56c1.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6310. Linking C executable cmTC_a56c1
  6311. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a56c1.dir/link.txt --verbose=1
  6312. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=chown -fno-builtin -rdynamic CMakeFiles/cmTC_a56c1.dir/CheckFunctionExists.c.o -o cmTC_a56c1
  6313. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6314. Determining if the function chroot exists passed with the following output:
  6315. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6316. Run Build Command:"/usr/bin/make" "cmTC_f028b/fast"
  6317. make -f CMakeFiles/cmTC_f028b.dir/build.make CMakeFiles/cmTC_f028b.dir/build
  6318. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6319. Building C object CMakeFiles/cmTC_f028b.dir/CheckFunctionExists.c.o
  6320. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=chroot -fno-builtin -o CMakeFiles/cmTC_f028b.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6321. Linking C executable cmTC_f028b
  6322. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f028b.dir/link.txt --verbose=1
  6323. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=chroot -fno-builtin -rdynamic CMakeFiles/cmTC_f028b.dir/CheckFunctionExists.c.o -o cmTC_f028b
  6324. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6325. Determining if the function ctime_r exists passed with the following output:
  6326. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6327. Run Build Command:"/usr/bin/make" "cmTC_b229f/fast"
  6328. make -f CMakeFiles/cmTC_b229f.dir/build.make CMakeFiles/cmTC_b229f.dir/build
  6329. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6330. Building C object CMakeFiles/cmTC_b229f.dir/CheckFunctionExists.c.o
  6331. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=ctime_r -fno-builtin -o CMakeFiles/cmTC_b229f.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6332. Linking C executable cmTC_b229f
  6333. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b229f.dir/link.txt --verbose=1
  6334. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=ctime_r -fno-builtin -rdynamic CMakeFiles/cmTC_b229f.dir/CheckFunctionExists.c.o -o cmTC_b229f
  6335. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6336. Determining if the function fchdir exists passed with the following output:
  6337. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6338. Run Build Command:"/usr/bin/make" "cmTC_ed01d/fast"
  6339. make -f CMakeFiles/cmTC_ed01d.dir/build.make CMakeFiles/cmTC_ed01d.dir/build
  6340. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6341. Building C object CMakeFiles/cmTC_ed01d.dir/CheckFunctionExists.c.o
  6342. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fchdir -fno-builtin -o CMakeFiles/cmTC_ed01d.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6343. Linking C executable cmTC_ed01d
  6344. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ed01d.dir/link.txt --verbose=1
  6345. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fchdir -fno-builtin -rdynamic CMakeFiles/cmTC_ed01d.dir/CheckFunctionExists.c.o -o cmTC_ed01d
  6346. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6347. Determining if the function fchmod exists passed with the following output:
  6348. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6349. Run Build Command:"/usr/bin/make" "cmTC_600f8/fast"
  6350. make -f CMakeFiles/cmTC_600f8.dir/build.make CMakeFiles/cmTC_600f8.dir/build
  6351. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6352. Building C object CMakeFiles/cmTC_600f8.dir/CheckFunctionExists.c.o
  6353. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fchmod -fno-builtin -o CMakeFiles/cmTC_600f8.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6354. Linking C executable cmTC_600f8
  6355. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_600f8.dir/link.txt --verbose=1
  6356. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fchmod -fno-builtin -rdynamic CMakeFiles/cmTC_600f8.dir/CheckFunctionExists.c.o -o cmTC_600f8
  6357. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6358. Determining if the function fchown exists passed with the following output:
  6359. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6360. Run Build Command:"/usr/bin/make" "cmTC_9a914/fast"
  6361. make -f CMakeFiles/cmTC_9a914.dir/build.make CMakeFiles/cmTC_9a914.dir/build
  6362. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6363. Building C object CMakeFiles/cmTC_9a914.dir/CheckFunctionExists.c.o
  6364. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fchown -fno-builtin -o CMakeFiles/cmTC_9a914.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6365. Linking C executable cmTC_9a914
  6366. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9a914.dir/link.txt --verbose=1
  6367. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fchown -fno-builtin -rdynamic CMakeFiles/cmTC_9a914.dir/CheckFunctionExists.c.o -o cmTC_9a914
  6368. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6369. Determining if the function fdopendir exists passed with the following output:
  6370. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6371. Run Build Command:"/usr/bin/make" "cmTC_58bf7/fast"
  6372. make -f CMakeFiles/cmTC_58bf7.dir/build.make CMakeFiles/cmTC_58bf7.dir/build
  6373. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6374. Building C object CMakeFiles/cmTC_58bf7.dir/CheckFunctionExists.c.o
  6375. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fdopendir -fno-builtin -o CMakeFiles/cmTC_58bf7.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6376. Linking C executable cmTC_58bf7
  6377. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_58bf7.dir/link.txt --verbose=1
  6378. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fdopendir -fno-builtin -rdynamic CMakeFiles/cmTC_58bf7.dir/CheckFunctionExists.c.o -o cmTC_58bf7
  6379. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6380. Determining if the function fstat exists passed with the following output:
  6381. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6382. Run Build Command:"/usr/bin/make" "cmTC_6575d/fast"
  6383. make -f CMakeFiles/cmTC_6575d.dir/build.make CMakeFiles/cmTC_6575d.dir/build
  6384. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6385. Building C object CMakeFiles/cmTC_6575d.dir/CheckFunctionExists.c.o
  6386. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fstat -fno-builtin -o CMakeFiles/cmTC_6575d.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6387. Linking C executable cmTC_6575d
  6388. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6575d.dir/link.txt --verbose=1
  6389. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fstat -fno-builtin -rdynamic CMakeFiles/cmTC_6575d.dir/CheckFunctionExists.c.o -o cmTC_6575d
  6390. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6391. Determining if the function fstatat exists passed with the following output:
  6392. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6393. Run Build Command:"/usr/bin/make" "cmTC_e83a5/fast"
  6394. make -f CMakeFiles/cmTC_e83a5.dir/build.make CMakeFiles/cmTC_e83a5.dir/build
  6395. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6396. Building C object CMakeFiles/cmTC_e83a5.dir/CheckFunctionExists.c.o
  6397. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fstatat -fno-builtin -o CMakeFiles/cmTC_e83a5.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6398. Linking C executable cmTC_e83a5
  6399. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e83a5.dir/link.txt --verbose=1
  6400. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fstatat -fno-builtin -rdynamic CMakeFiles/cmTC_e83a5.dir/CheckFunctionExists.c.o -o cmTC_e83a5
  6401. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6402. Determining if the function fstatfs exists passed with the following output:
  6403. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6404. Run Build Command:"/usr/bin/make" "cmTC_c09ef/fast"
  6405. make -f CMakeFiles/cmTC_c09ef.dir/build.make CMakeFiles/cmTC_c09ef.dir/build
  6406. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6407. Building C object CMakeFiles/cmTC_c09ef.dir/CheckFunctionExists.c.o
  6408. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fstatfs -fno-builtin -o CMakeFiles/cmTC_c09ef.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6409. Linking C executable cmTC_c09ef
  6410. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c09ef.dir/link.txt --verbose=1
  6411. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fstatfs -fno-builtin -rdynamic CMakeFiles/cmTC_c09ef.dir/CheckFunctionExists.c.o -o cmTC_c09ef
  6412. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6413. Determining if the function fstatvfs exists passed with the following output:
  6414. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6415. Run Build Command:"/usr/bin/make" "cmTC_115f5/fast"
  6416. make -f CMakeFiles/cmTC_115f5.dir/build.make CMakeFiles/cmTC_115f5.dir/build
  6417. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6418. Building C object CMakeFiles/cmTC_115f5.dir/CheckFunctionExists.c.o
  6419. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fstatvfs -fno-builtin -o CMakeFiles/cmTC_115f5.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6420. Linking C executable cmTC_115f5
  6421. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_115f5.dir/link.txt --verbose=1
  6422. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fstatvfs -fno-builtin -rdynamic CMakeFiles/cmTC_115f5.dir/CheckFunctionExists.c.o -o cmTC_115f5
  6423. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6424. Determining if the function futimens exists passed with the following output:
  6425. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6426. Run Build Command:"/usr/bin/make" "cmTC_9cf12/fast"
  6427. make -f CMakeFiles/cmTC_9cf12.dir/build.make CMakeFiles/cmTC_9cf12.dir/build
  6428. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6429. Building C object CMakeFiles/cmTC_9cf12.dir/CheckFunctionExists.c.o
  6430. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=futimens -fno-builtin -o CMakeFiles/cmTC_9cf12.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6431. Linking C executable cmTC_9cf12
  6432. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9cf12.dir/link.txt --verbose=1
  6433. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=futimens -fno-builtin -rdynamic CMakeFiles/cmTC_9cf12.dir/CheckFunctionExists.c.o -o cmTC_9cf12
  6434. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6435. Determining if the function futimes exists passed with the following output:
  6436. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6437. Run Build Command:"/usr/bin/make" "cmTC_1274d/fast"
  6438. make -f CMakeFiles/cmTC_1274d.dir/build.make CMakeFiles/cmTC_1274d.dir/build
  6439. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6440. Building C object CMakeFiles/cmTC_1274d.dir/CheckFunctionExists.c.o
  6441. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=futimes -fno-builtin -o CMakeFiles/cmTC_1274d.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6442. Linking C executable cmTC_1274d
  6443. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1274d.dir/link.txt --verbose=1
  6444. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=futimes -fno-builtin -rdynamic CMakeFiles/cmTC_1274d.dir/CheckFunctionExists.c.o -o cmTC_1274d
  6445. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6446. Determining if the function futimesat exists passed with the following output:
  6447. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6448. Run Build Command:"/usr/bin/make" "cmTC_950f8/fast"
  6449. make -f CMakeFiles/cmTC_950f8.dir/build.make CMakeFiles/cmTC_950f8.dir/build
  6450. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6451. Building C object CMakeFiles/cmTC_950f8.dir/CheckFunctionExists.c.o
  6452. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=futimesat -fno-builtin -o CMakeFiles/cmTC_950f8.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6453. Linking C executable cmTC_950f8
  6454. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_950f8.dir/link.txt --verbose=1
  6455. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=futimesat -fno-builtin -rdynamic CMakeFiles/cmTC_950f8.dir/CheckFunctionExists.c.o -o cmTC_950f8
  6456. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6457. Determining if the function getgrgid_r exists passed with the following output:
  6458. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6459. Run Build Command:"/usr/bin/make" "cmTC_6ff0d/fast"
  6460. make -f CMakeFiles/cmTC_6ff0d.dir/build.make CMakeFiles/cmTC_6ff0d.dir/build
  6461. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6462. Building C object CMakeFiles/cmTC_6ff0d.dir/CheckFunctionExists.c.o
  6463. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=getgrgid_r -fno-builtin -o CMakeFiles/cmTC_6ff0d.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6464. Linking C executable cmTC_6ff0d
  6465. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6ff0d.dir/link.txt --verbose=1
  6466. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=getgrgid_r -fno-builtin -rdynamic CMakeFiles/cmTC_6ff0d.dir/CheckFunctionExists.c.o -o cmTC_6ff0d
  6467. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6468. Determining if the function getgrnam_r exists passed with the following output:
  6469. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6470. Run Build Command:"/usr/bin/make" "cmTC_d0922/fast"
  6471. make -f CMakeFiles/cmTC_d0922.dir/build.make CMakeFiles/cmTC_d0922.dir/build
  6472. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6473. Building C object CMakeFiles/cmTC_d0922.dir/CheckFunctionExists.c.o
  6474. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=getgrnam_r -fno-builtin -o CMakeFiles/cmTC_d0922.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6475. Linking C executable cmTC_d0922
  6476. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_d0922.dir/link.txt --verbose=1
  6477. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=getgrnam_r -fno-builtin -rdynamic CMakeFiles/cmTC_d0922.dir/CheckFunctionExists.c.o -o cmTC_d0922
  6478. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6479. Determining if the function getpwnam_r exists passed with the following output:
  6480. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6481. Run Build Command:"/usr/bin/make" "cmTC_e4326/fast"
  6482. make -f CMakeFiles/cmTC_e4326.dir/build.make CMakeFiles/cmTC_e4326.dir/build
  6483. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6484. Building C object CMakeFiles/cmTC_e4326.dir/CheckFunctionExists.c.o
  6485. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=getpwnam_r -fno-builtin -o CMakeFiles/cmTC_e4326.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6486. Linking C executable cmTC_e4326
  6487. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e4326.dir/link.txt --verbose=1
  6488. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=getpwnam_r -fno-builtin -rdynamic CMakeFiles/cmTC_e4326.dir/CheckFunctionExists.c.o -o cmTC_e4326
  6489. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6490. Determining if the function getpwuid_r exists passed with the following output:
  6491. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6492. Run Build Command:"/usr/bin/make" "cmTC_9f661/fast"
  6493. make -f CMakeFiles/cmTC_9f661.dir/build.make CMakeFiles/cmTC_9f661.dir/build
  6494. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6495. Building C object CMakeFiles/cmTC_9f661.dir/CheckFunctionExists.c.o
  6496. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=getpwuid_r -fno-builtin -o CMakeFiles/cmTC_9f661.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6497. Linking C executable cmTC_9f661
  6498. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_9f661.dir/link.txt --verbose=1
  6499. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=getpwuid_r -fno-builtin -rdynamic CMakeFiles/cmTC_9f661.dir/CheckFunctionExists.c.o -o cmTC_9f661
  6500. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6501. Determining if the function getpid exists passed with the following output:
  6502. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6503. Run Build Command:"/usr/bin/make" "cmTC_b0c9a/fast"
  6504. make -f CMakeFiles/cmTC_b0c9a.dir/build.make CMakeFiles/cmTC_b0c9a.dir/build
  6505. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6506. Building C object CMakeFiles/cmTC_b0c9a.dir/CheckFunctionExists.c.o
  6507. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=getpid -fno-builtin -o CMakeFiles/cmTC_b0c9a.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6508. Linking C executable cmTC_b0c9a
  6509. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b0c9a.dir/link.txt --verbose=1
  6510. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=getpid -fno-builtin -rdynamic CMakeFiles/cmTC_b0c9a.dir/CheckFunctionExists.c.o -o cmTC_b0c9a
  6511. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6512. Determining if the function lchown exists passed with the following output:
  6513. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6514. Run Build Command:"/usr/bin/make" "cmTC_91be6/fast"
  6515. make -f CMakeFiles/cmTC_91be6.dir/build.make CMakeFiles/cmTC_91be6.dir/build
  6516. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6517. Building C object CMakeFiles/cmTC_91be6.dir/CheckFunctionExists.c.o
  6518. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=lchown -fno-builtin -o CMakeFiles/cmTC_91be6.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6519. Linking C executable cmTC_91be6
  6520. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_91be6.dir/link.txt --verbose=1
  6521. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=lchown -fno-builtin -rdynamic CMakeFiles/cmTC_91be6.dir/CheckFunctionExists.c.o -o cmTC_91be6
  6522. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6523. Determining if the function link exists passed with the following output:
  6524. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6525. Run Build Command:"/usr/bin/make" "cmTC_503a4/fast"
  6526. make -f CMakeFiles/cmTC_503a4.dir/build.make CMakeFiles/cmTC_503a4.dir/build
  6527. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6528. Building C object CMakeFiles/cmTC_503a4.dir/CheckFunctionExists.c.o
  6529. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=link -fno-builtin -o CMakeFiles/cmTC_503a4.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6530. Linking C executable cmTC_503a4
  6531. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_503a4.dir/link.txt --verbose=1
  6532. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=link -fno-builtin -rdynamic CMakeFiles/cmTC_503a4.dir/CheckFunctionExists.c.o -o cmTC_503a4
  6533. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6534. Determining if the function lstat exists passed with the following output:
  6535. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6536. Run Build Command:"/usr/bin/make" "cmTC_3a9fe/fast"
  6537. make -f CMakeFiles/cmTC_3a9fe.dir/build.make CMakeFiles/cmTC_3a9fe.dir/build
  6538. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6539. Building C object CMakeFiles/cmTC_3a9fe.dir/CheckFunctionExists.c.o
  6540. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=lstat -fno-builtin -o CMakeFiles/cmTC_3a9fe.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6541. Linking C executable cmTC_3a9fe
  6542. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3a9fe.dir/link.txt --verbose=1
  6543. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=lstat -fno-builtin -rdynamic CMakeFiles/cmTC_3a9fe.dir/CheckFunctionExists.c.o -o cmTC_3a9fe
  6544. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6545. Determining if the function lutimes exists passed with the following output:
  6546. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6547. Run Build Command:"/usr/bin/make" "cmTC_e985b/fast"
  6548. make -f CMakeFiles/cmTC_e985b.dir/build.make CMakeFiles/cmTC_e985b.dir/build
  6549. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6550. Building C object CMakeFiles/cmTC_e985b.dir/CheckFunctionExists.c.o
  6551. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=lutimes -fno-builtin -o CMakeFiles/cmTC_e985b.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6552. Linking C executable cmTC_e985b
  6553. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e985b.dir/link.txt --verbose=1
  6554. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=lutimes -fno-builtin -rdynamic CMakeFiles/cmTC_e985b.dir/CheckFunctionExists.c.o -o cmTC_e985b
  6555. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6556. Determining if the function mbrtowc exists passed with the following output:
  6557. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6558. Run Build Command:"/usr/bin/make" "cmTC_3e0a8/fast"
  6559. make -f CMakeFiles/cmTC_3e0a8.dir/build.make CMakeFiles/cmTC_3e0a8.dir/build
  6560. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6561. Building C object CMakeFiles/cmTC_3e0a8.dir/CheckFunctionExists.c.o
  6562. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=mbrtowc -fno-builtin -o CMakeFiles/cmTC_3e0a8.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6563. Linking C executable cmTC_3e0a8
  6564. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3e0a8.dir/link.txt --verbose=1
  6565. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=mbrtowc -fno-builtin -rdynamic CMakeFiles/cmTC_3e0a8.dir/CheckFunctionExists.c.o -o cmTC_3e0a8
  6566. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6567. Determining if the function mkdir exists passed with the following output:
  6568. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6569. Run Build Command:"/usr/bin/make" "cmTC_0b0c0/fast"
  6570. make -f CMakeFiles/cmTC_0b0c0.dir/build.make CMakeFiles/cmTC_0b0c0.dir/build
  6571. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6572. Building C object CMakeFiles/cmTC_0b0c0.dir/CheckFunctionExists.c.o
  6573. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=mkdir -fno-builtin -o CMakeFiles/cmTC_0b0c0.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6574. Linking C executable cmTC_0b0c0
  6575. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0b0c0.dir/link.txt --verbose=1
  6576. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=mkdir -fno-builtin -rdynamic CMakeFiles/cmTC_0b0c0.dir/CheckFunctionExists.c.o -o cmTC_0b0c0
  6577. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6578. Determining if the function mkfifo exists passed with the following output:
  6579. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6580. Run Build Command:"/usr/bin/make" "cmTC_67ce4/fast"
  6581. make -f CMakeFiles/cmTC_67ce4.dir/build.make CMakeFiles/cmTC_67ce4.dir/build
  6582. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6583. Building C object CMakeFiles/cmTC_67ce4.dir/CheckFunctionExists.c.o
  6584. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=mkfifo -fno-builtin -o CMakeFiles/cmTC_67ce4.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6585. Linking C executable cmTC_67ce4
  6586. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_67ce4.dir/link.txt --verbose=1
  6587. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=mkfifo -fno-builtin -rdynamic CMakeFiles/cmTC_67ce4.dir/CheckFunctionExists.c.o -o cmTC_67ce4
  6588. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6589. Determining if the function mknod exists passed with the following output:
  6590. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6591. Run Build Command:"/usr/bin/make" "cmTC_5eec5/fast"
  6592. make -f CMakeFiles/cmTC_5eec5.dir/build.make CMakeFiles/cmTC_5eec5.dir/build
  6593. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6594. Building C object CMakeFiles/cmTC_5eec5.dir/CheckFunctionExists.c.o
  6595. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=mknod -fno-builtin -o CMakeFiles/cmTC_5eec5.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6596. Linking C executable cmTC_5eec5
  6597. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_5eec5.dir/link.txt --verbose=1
  6598. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=mknod -fno-builtin -rdynamic CMakeFiles/cmTC_5eec5.dir/CheckFunctionExists.c.o -o cmTC_5eec5
  6599. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6600. Determining if the function mkstemp exists passed with the following output:
  6601. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6602. Run Build Command:"/usr/bin/make" "cmTC_b48a4/fast"
  6603. make -f CMakeFiles/cmTC_b48a4.dir/build.make CMakeFiles/cmTC_b48a4.dir/build
  6604. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6605. Building C object CMakeFiles/cmTC_b48a4.dir/CheckFunctionExists.c.o
  6606. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=mkstemp -fno-builtin -o CMakeFiles/cmTC_b48a4.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6607. Linking C executable cmTC_b48a4
  6608. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_b48a4.dir/link.txt --verbose=1
  6609. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=mkstemp -fno-builtin -rdynamic CMakeFiles/cmTC_b48a4.dir/CheckFunctionExists.c.o -o cmTC_b48a4
  6610. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6611. Determining if the function nl_langinfo exists passed with the following output:
  6612. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6613. Run Build Command:"/usr/bin/make" "cmTC_e6c69/fast"
  6614. make -f CMakeFiles/cmTC_e6c69.dir/build.make CMakeFiles/cmTC_e6c69.dir/build
  6615. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6616. Building C object CMakeFiles/cmTC_e6c69.dir/CheckFunctionExists.c.o
  6617. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=nl_langinfo -fno-builtin -o CMakeFiles/cmTC_e6c69.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6618. Linking C executable cmTC_e6c69
  6619. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e6c69.dir/link.txt --verbose=1
  6620. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=nl_langinfo -fno-builtin -rdynamic CMakeFiles/cmTC_e6c69.dir/CheckFunctionExists.c.o -o cmTC_e6c69
  6621. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6622. Determining if the function openat exists passed with the following output:
  6623. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6624. Run Build Command:"/usr/bin/make" "cmTC_0bfa6/fast"
  6625. make -f CMakeFiles/cmTC_0bfa6.dir/build.make CMakeFiles/cmTC_0bfa6.dir/build
  6626. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6627. Building C object CMakeFiles/cmTC_0bfa6.dir/CheckFunctionExists.c.o
  6628. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=openat -fno-builtin -o CMakeFiles/cmTC_0bfa6.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6629. Linking C executable cmTC_0bfa6
  6630. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0bfa6.dir/link.txt --verbose=1
  6631. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=openat -fno-builtin -rdynamic CMakeFiles/cmTC_0bfa6.dir/CheckFunctionExists.c.o -o cmTC_0bfa6
  6632. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6633. Determining if the function posix_spawnp exists passed with the following output:
  6634. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6635. Run Build Command:"/usr/bin/make" "cmTC_7a1c7/fast"
  6636. make -f CMakeFiles/cmTC_7a1c7.dir/build.make CMakeFiles/cmTC_7a1c7.dir/build
  6637. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6638. Building C object CMakeFiles/cmTC_7a1c7.dir/CheckFunctionExists.c.o
  6639. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=posix_spawnp -fno-builtin -o CMakeFiles/cmTC_7a1c7.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6640. Linking C executable cmTC_7a1c7
  6641. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7a1c7.dir/link.txt --verbose=1
  6642. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=posix_spawnp -fno-builtin -rdynamic CMakeFiles/cmTC_7a1c7.dir/CheckFunctionExists.c.o -o cmTC_7a1c7
  6643. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6644. Determining if the function readlink exists passed with the following output:
  6645. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6646. Run Build Command:"/usr/bin/make" "cmTC_bf19f/fast"
  6647. make -f CMakeFiles/cmTC_bf19f.dir/build.make CMakeFiles/cmTC_bf19f.dir/build
  6648. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6649. Building C object CMakeFiles/cmTC_bf19f.dir/CheckFunctionExists.c.o
  6650. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=readlink -fno-builtin -o CMakeFiles/cmTC_bf19f.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6651. Linking C executable cmTC_bf19f
  6652. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_bf19f.dir/link.txt --verbose=1
  6653. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=readlink -fno-builtin -rdynamic CMakeFiles/cmTC_bf19f.dir/CheckFunctionExists.c.o -o cmTC_bf19f
  6654. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6655. Determining if the function setenv exists passed with the following output:
  6656. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6657. Run Build Command:"/usr/bin/make" "cmTC_4a8e0/fast"
  6658. make -f CMakeFiles/cmTC_4a8e0.dir/build.make CMakeFiles/cmTC_4a8e0.dir/build
  6659. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6660. Building C object CMakeFiles/cmTC_4a8e0.dir/CheckFunctionExists.c.o
  6661. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=setenv -fno-builtin -o CMakeFiles/cmTC_4a8e0.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6662. Linking C executable cmTC_4a8e0
  6663. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_4a8e0.dir/link.txt --verbose=1
  6664. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=setenv -fno-builtin -rdynamic CMakeFiles/cmTC_4a8e0.dir/CheckFunctionExists.c.o -o cmTC_4a8e0
  6665. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6666. Determining if the function statfs exists passed with the following output:
  6667. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6668. Run Build Command:"/usr/bin/make" "cmTC_1848c/fast"
  6669. make -f CMakeFiles/cmTC_1848c.dir/build.make CMakeFiles/cmTC_1848c.dir/build
  6670. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6671. Building C object CMakeFiles/cmTC_1848c.dir/CheckFunctionExists.c.o
  6672. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=statfs -fno-builtin -o CMakeFiles/cmTC_1848c.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6673. Linking C executable cmTC_1848c
  6674. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1848c.dir/link.txt --verbose=1
  6675. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=statfs -fno-builtin -rdynamic CMakeFiles/cmTC_1848c.dir/CheckFunctionExists.c.o -o cmTC_1848c
  6676. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6677. Determining if the function statvfs exists passed with the following output:
  6678. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6679. Run Build Command:"/usr/bin/make" "cmTC_2514a/fast"
  6680. make -f CMakeFiles/cmTC_2514a.dir/build.make CMakeFiles/cmTC_2514a.dir/build
  6681. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6682. Building C object CMakeFiles/cmTC_2514a.dir/CheckFunctionExists.c.o
  6683. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=statvfs -fno-builtin -o CMakeFiles/cmTC_2514a.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6684. Linking C executable cmTC_2514a
  6685. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2514a.dir/link.txt --verbose=1
  6686. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=statvfs -fno-builtin -rdynamic CMakeFiles/cmTC_2514a.dir/CheckFunctionExists.c.o -o cmTC_2514a
  6687. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6688. Determining if the function strchr exists passed with the following output:
  6689. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6690. Run Build Command:"/usr/bin/make" "cmTC_74407/fast"
  6691. make -f CMakeFiles/cmTC_74407.dir/build.make CMakeFiles/cmTC_74407.dir/build
  6692. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6693. Building C object CMakeFiles/cmTC_74407.dir/CheckFunctionExists.c.o
  6694. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=strchr -fno-builtin -o CMakeFiles/cmTC_74407.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6695. Linking C executable cmTC_74407
  6696. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_74407.dir/link.txt --verbose=1
  6697. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=strchr -fno-builtin -rdynamic CMakeFiles/cmTC_74407.dir/CheckFunctionExists.c.o -o cmTC_74407
  6698. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6699. Determining if the function strerror exists passed with the following output:
  6700. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6701. Run Build Command:"/usr/bin/make" "cmTC_981c5/fast"
  6702. make -f CMakeFiles/cmTC_981c5.dir/build.make CMakeFiles/cmTC_981c5.dir/build
  6703. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6704. Building C object CMakeFiles/cmTC_981c5.dir/CheckFunctionExists.c.o
  6705. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=strerror -fno-builtin -o CMakeFiles/cmTC_981c5.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6706. Linking C executable cmTC_981c5
  6707. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_981c5.dir/link.txt --verbose=1
  6708. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=strerror -fno-builtin -rdynamic CMakeFiles/cmTC_981c5.dir/CheckFunctionExists.c.o -o cmTC_981c5
  6709. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6710. Determining if the function strrchr exists passed with the following output:
  6711. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6712. Run Build Command:"/usr/bin/make" "cmTC_ef6d2/fast"
  6713. make -f CMakeFiles/cmTC_ef6d2.dir/build.make CMakeFiles/cmTC_ef6d2.dir/build
  6714. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6715. Building C object CMakeFiles/cmTC_ef6d2.dir/CheckFunctionExists.c.o
  6716. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=strrchr -fno-builtin -o CMakeFiles/cmTC_ef6d2.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6717. Linking C executable cmTC_ef6d2
  6718. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ef6d2.dir/link.txt --verbose=1
  6719. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=strrchr -fno-builtin -rdynamic CMakeFiles/cmTC_ef6d2.dir/CheckFunctionExists.c.o -o cmTC_ef6d2
  6720. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6721. Determining if the function symlink exists passed with the following output:
  6722. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6723. Run Build Command:"/usr/bin/make" "cmTC_bdc2c/fast"
  6724. make -f CMakeFiles/cmTC_bdc2c.dir/build.make CMakeFiles/cmTC_bdc2c.dir/build
  6725. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6726. Building C object CMakeFiles/cmTC_bdc2c.dir/CheckFunctionExists.c.o
  6727. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=symlink -fno-builtin -o CMakeFiles/cmTC_bdc2c.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6728. Linking C executable cmTC_bdc2c
  6729. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_bdc2c.dir/link.txt --verbose=1
  6730. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=symlink -fno-builtin -rdynamic CMakeFiles/cmTC_bdc2c.dir/CheckFunctionExists.c.o -o cmTC_bdc2c
  6731. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6732. Determining if the function timegm exists passed with the following output:
  6733. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6734. Run Build Command:"/usr/bin/make" "cmTC_36687/fast"
  6735. make -f CMakeFiles/cmTC_36687.dir/build.make CMakeFiles/cmTC_36687.dir/build
  6736. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6737. Building C object CMakeFiles/cmTC_36687.dir/CheckFunctionExists.c.o
  6738. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=timegm -fno-builtin -o CMakeFiles/cmTC_36687.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6739. Linking C executable cmTC_36687
  6740. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_36687.dir/link.txt --verbose=1
  6741. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=timegm -fno-builtin -rdynamic CMakeFiles/cmTC_36687.dir/CheckFunctionExists.c.o -o cmTC_36687
  6742. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6743. Determining if the function tzset exists passed with the following output:
  6744. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6745. Run Build Command:"/usr/bin/make" "cmTC_6d30b/fast"
  6746. make -f CMakeFiles/cmTC_6d30b.dir/build.make CMakeFiles/cmTC_6d30b.dir/build
  6747. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6748. Building C object CMakeFiles/cmTC_6d30b.dir/CheckFunctionExists.c.o
  6749. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=tzset -fno-builtin -o CMakeFiles/cmTC_6d30b.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6750. Linking C executable cmTC_6d30b
  6751. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6d30b.dir/link.txt --verbose=1
  6752. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=tzset -fno-builtin -rdynamic CMakeFiles/cmTC_6d30b.dir/CheckFunctionExists.c.o -o cmTC_6d30b
  6753. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6754. Determining if the function utimes exists passed with the following output:
  6755. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6756. Run Build Command:"/usr/bin/make" "cmTC_52df8/fast"
  6757. make -f CMakeFiles/cmTC_52df8.dir/build.make CMakeFiles/cmTC_52df8.dir/build
  6758. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6759. Building C object CMakeFiles/cmTC_52df8.dir/CheckFunctionExists.c.o
  6760. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=utimes -fno-builtin -o CMakeFiles/cmTC_52df8.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6761. Linking C executable cmTC_52df8
  6762. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_52df8.dir/link.txt --verbose=1
  6763. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=utimes -fno-builtin -rdynamic CMakeFiles/cmTC_52df8.dir/CheckFunctionExists.c.o -o cmTC_52df8
  6764. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6765. Determining if the function utimensat exists passed with the following output:
  6766. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6767. Run Build Command:"/usr/bin/make" "cmTC_e8351/fast"
  6768. make -f CMakeFiles/cmTC_e8351.dir/build.make CMakeFiles/cmTC_e8351.dir/build
  6769. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6770. Building C object CMakeFiles/cmTC_e8351.dir/CheckFunctionExists.c.o
  6771. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=utimensat -fno-builtin -o CMakeFiles/cmTC_e8351.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6772. Linking C executable cmTC_e8351
  6773. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e8351.dir/link.txt --verbose=1
  6774. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=utimensat -fno-builtin -rdynamic CMakeFiles/cmTC_e8351.dir/CheckFunctionExists.c.o -o cmTC_e8351
  6775. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6776. Determining if the function vfork exists passed with the following output:
  6777. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6778. Run Build Command:"/usr/bin/make" "cmTC_c0f06/fast"
  6779. make -f CMakeFiles/cmTC_c0f06.dir/build.make CMakeFiles/cmTC_c0f06.dir/build
  6780. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6781. Building C object CMakeFiles/cmTC_c0f06.dir/CheckFunctionExists.c.o
  6782. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=vfork -fno-builtin -o CMakeFiles/cmTC_c0f06.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6783. Linking C executable cmTC_c0f06
  6784. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c0f06.dir/link.txt --verbose=1
  6785. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=vfork -fno-builtin -rdynamic CMakeFiles/cmTC_c0f06.dir/CheckFunctionExists.c.o -o cmTC_c0f06
  6786. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6787. Determining if the function wcrtomb exists passed with the following output:
  6788. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6789. Run Build Command:"/usr/bin/make" "cmTC_ceb60/fast"
  6790. make -f CMakeFiles/cmTC_ceb60.dir/build.make CMakeFiles/cmTC_ceb60.dir/build
  6791. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6792. Building C object CMakeFiles/cmTC_ceb60.dir/CheckFunctionExists.c.o
  6793. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=wcrtomb -fno-builtin -o CMakeFiles/cmTC_ceb60.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6794. Linking C executable cmTC_ceb60
  6795. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ceb60.dir/link.txt --verbose=1
  6796. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=wcrtomb -fno-builtin -rdynamic CMakeFiles/cmTC_ceb60.dir/CheckFunctionExists.c.o -o cmTC_ceb60
  6797. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6798. Determining if the function wcscmp exists passed with the following output:
  6799. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6800. Run Build Command:"/usr/bin/make" "cmTC_a5b25/fast"
  6801. make -f CMakeFiles/cmTC_a5b25.dir/build.make CMakeFiles/cmTC_a5b25.dir/build
  6802. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6803. Building C object CMakeFiles/cmTC_a5b25.dir/CheckFunctionExists.c.o
  6804. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=wcscmp -fno-builtin -o CMakeFiles/cmTC_a5b25.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6805. Linking C executable cmTC_a5b25
  6806. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_a5b25.dir/link.txt --verbose=1
  6807. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=wcscmp -fno-builtin -rdynamic CMakeFiles/cmTC_a5b25.dir/CheckFunctionExists.c.o -o cmTC_a5b25
  6808. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6809. Determining if the function wcscpy exists passed with the following output:
  6810. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6811. Run Build Command:"/usr/bin/make" "cmTC_680a2/fast"
  6812. make -f CMakeFiles/cmTC_680a2.dir/build.make CMakeFiles/cmTC_680a2.dir/build
  6813. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6814. Building C object CMakeFiles/cmTC_680a2.dir/CheckFunctionExists.c.o
  6815. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=wcscpy -fno-builtin -o CMakeFiles/cmTC_680a2.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6816. Linking C executable cmTC_680a2
  6817. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_680a2.dir/link.txt --verbose=1
  6818. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=wcscpy -fno-builtin -rdynamic CMakeFiles/cmTC_680a2.dir/CheckFunctionExists.c.o -o cmTC_680a2
  6819. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6820. Determining if the function wcslen exists passed with the following output:
  6821. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6822. Run Build Command:"/usr/bin/make" "cmTC_5ce1f/fast"
  6823. make -f CMakeFiles/cmTC_5ce1f.dir/build.make CMakeFiles/cmTC_5ce1f.dir/build
  6824. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6825. Building C object CMakeFiles/cmTC_5ce1f.dir/CheckFunctionExists.c.o
  6826. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=wcslen -fno-builtin -o CMakeFiles/cmTC_5ce1f.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6827. Linking C executable cmTC_5ce1f
  6828. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_5ce1f.dir/link.txt --verbose=1
  6829. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=wcslen -fno-builtin -rdynamic CMakeFiles/cmTC_5ce1f.dir/CheckFunctionExists.c.o -o cmTC_5ce1f
  6830. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6831. Determining if the function wctomb exists passed with the following output:
  6832. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6833. Run Build Command:"/usr/bin/make" "cmTC_46e03/fast"
  6834. make -f CMakeFiles/cmTC_46e03.dir/build.make CMakeFiles/cmTC_46e03.dir/build
  6835. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6836. Building C object CMakeFiles/cmTC_46e03.dir/CheckFunctionExists.c.o
  6837. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=wctomb -fno-builtin -o CMakeFiles/cmTC_46e03.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6838. Linking C executable cmTC_46e03
  6839. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_46e03.dir/link.txt --verbose=1
  6840. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=wctomb -fno-builtin -rdynamic CMakeFiles/cmTC_46e03.dir/CheckFunctionExists.c.o -o cmTC_46e03
  6841. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6842. Determining if the function fseeko exists passed with the following output:
  6843. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6844. Run Build Command:"/usr/bin/make" "cmTC_3ea02/fast"
  6845. make -f CMakeFiles/cmTC_3ea02.dir/build.make CMakeFiles/cmTC_3ea02.dir/build
  6846. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6847. Building C object CMakeFiles/cmTC_3ea02.dir/CheckFunctionExists.c.o
  6848. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fseeko -fno-builtin -o CMakeFiles/cmTC_3ea02.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6849. Linking C executable cmTC_3ea02
  6850. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3ea02.dir/link.txt --verbose=1
  6851. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=fseeko -fno-builtin -rdynamic CMakeFiles/cmTC_3ea02.dir/CheckFunctionExists.c.o -o cmTC_3ea02
  6852. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6853. Determining if the function vprintf exists passed with the following output:
  6854. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6855. Run Build Command:"/usr/bin/make" "cmTC_4378d/fast"
  6856. make -f CMakeFiles/cmTC_4378d.dir/build.make CMakeFiles/cmTC_4378d.dir/build
  6857. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6858. Building C object CMakeFiles/cmTC_4378d.dir/CheckFunctionExists.c.o
  6859. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=vprintf -fno-builtin -o CMakeFiles/cmTC_4378d.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6860. Linking C executable cmTC_4378d
  6861. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_4378d.dir/link.txt --verbose=1
  6862. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=vprintf -fno-builtin -rdynamic CMakeFiles/cmTC_4378d.dir/CheckFunctionExists.c.o -o cmTC_4378d
  6863. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6864. Determining if the function wmemcmp exists passed with the following output:
  6865. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6866. Run Build Command:"/usr/bin/make" "cmTC_e6c11/fast"
  6867. make -f CMakeFiles/cmTC_e6c11.dir/build.make CMakeFiles/cmTC_e6c11.dir/build
  6868. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6869. Building C object CMakeFiles/cmTC_e6c11.dir/CheckFunctionExists.c.o
  6870. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=wmemcmp -fno-builtin -o CMakeFiles/cmTC_e6c11.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6871. Linking C executable cmTC_e6c11
  6872. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e6c11.dir/link.txt --verbose=1
  6873. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=wmemcmp -fno-builtin -rdynamic CMakeFiles/cmTC_e6c11.dir/CheckFunctionExists.c.o -o cmTC_e6c11
  6874. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6875. Determining if the function wmemcpy exists passed with the following output:
  6876. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6877. Run Build Command:"/usr/bin/make" "cmTC_dcccd/fast"
  6878. make -f CMakeFiles/cmTC_dcccd.dir/build.make CMakeFiles/cmTC_dcccd.dir/build
  6879. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6880. Building C object CMakeFiles/cmTC_dcccd.dir/CheckFunctionExists.c.o
  6881. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=wmemcpy -fno-builtin -o CMakeFiles/cmTC_dcccd.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6882. Linking C executable cmTC_dcccd
  6883. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_dcccd.dir/link.txt --verbose=1
  6884. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=wmemcpy -fno-builtin -rdynamic CMakeFiles/cmTC_dcccd.dir/CheckFunctionExists.c.o -o cmTC_dcccd
  6885. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6886. Determining if the function wmemmove exists passed with the following output:
  6887. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6888. Run Build Command:"/usr/bin/make" "cmTC_3789f/fast"
  6889. make -f CMakeFiles/cmTC_3789f.dir/build.make CMakeFiles/cmTC_3789f.dir/build
  6890. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6891. Building C object CMakeFiles/cmTC_3789f.dir/CheckFunctionExists.c.o
  6892. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=wmemmove -fno-builtin -o CMakeFiles/cmTC_3789f.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  6893. Linking C executable cmTC_3789f
  6894. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3789f.dir/link.txt --verbose=1
  6895. /usr/bin/gcc -w -DCHECK_FUNCTION_EXISTS=wmemmove -fno-builtin -rdynamic CMakeFiles/cmTC_3789f.dir/CheckFunctionExists.c.o -o cmTC_3789f
  6896. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6897. Performing C SOURCE FILE Test HAVE_READDIR_R succeeded with the following output:
  6898. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6899. Run Build Command:"/usr/bin/make" "cmTC_941bf/fast"
  6900. make -f CMakeFiles/cmTC_941bf.dir/build.make CMakeFiles/cmTC_941bf.dir/build
  6901. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6902. Building C object CMakeFiles/cmTC_941bf.dir/src.c.o
  6903. /usr/bin/gcc -w -DHAVE_READDIR_R -o CMakeFiles/cmTC_941bf.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  6904. Linking C executable cmTC_941bf
  6905. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_941bf.dir/link.txt --verbose=1
  6906. /usr/bin/gcc -w -DHAVE_READDIR_R -rdynamic CMakeFiles/cmTC_941bf.dir/src.c.o -o cmTC_941bf
  6907. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6908. Source file was:
  6909. #include <dirent.h>
  6910. int main() {DIR *d = opendir("."); struct dirent e,*r; return readdir_r(d,&e,&r);}
  6911. Performing C SOURCE FILE Test HAVE_DIRFD succeeded with the following output:
  6912. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6913. Run Build Command:"/usr/bin/make" "cmTC_7ed88/fast"
  6914. make -f CMakeFiles/cmTC_7ed88.dir/build.make CMakeFiles/cmTC_7ed88.dir/build
  6915. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6916. Building C object CMakeFiles/cmTC_7ed88.dir/src.c.o
  6917. /usr/bin/gcc -w -DHAVE_DIRFD -o CMakeFiles/cmTC_7ed88.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  6918. Linking C executable cmTC_7ed88
  6919. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7ed88.dir/link.txt --verbose=1
  6920. /usr/bin/gcc -w -DHAVE_DIRFD -rdynamic CMakeFiles/cmTC_7ed88.dir/src.c.o -o cmTC_7ed88
  6921. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6922. Source file was:
  6923. #include <dirent.h>
  6924. int main() {DIR *d = opendir("."); return dirfd(d);}
  6925. Performing C SOURCE FILE Test HAVE_READLINKAT succeeded with the following output:
  6926. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6927. Run Build Command:"/usr/bin/make" "cmTC_03bb0/fast"
  6928. make -f CMakeFiles/cmTC_03bb0.dir/build.make CMakeFiles/cmTC_03bb0.dir/build
  6929. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6930. Building C object CMakeFiles/cmTC_03bb0.dir/src.c.o
  6931. /usr/bin/gcc -w -DHAVE_READLINKAT -o CMakeFiles/cmTC_03bb0.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  6932. Linking C executable cmTC_03bb0
  6933. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_03bb0.dir/link.txt --verbose=1
  6934. /usr/bin/gcc -w -DHAVE_READLINKAT -rdynamic CMakeFiles/cmTC_03bb0.dir/src.c.o -o cmTC_03bb0
  6935. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6936. Source file was:
  6937. #include <fcntl.h>
  6938. #include <unistd.h>
  6939. int main() {char buf[10]; return readlinkat(AT_FDCWD, "", buf, 0);}
  6940. Performing C SOURCE FILE Test MAJOR_IN_SYSMACROS succeeded with the following output:
  6941. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6942. Run Build Command:"/usr/bin/make" "cmTC_37c2c/fast"
  6943. make -f CMakeFiles/cmTC_37c2c.dir/build.make CMakeFiles/cmTC_37c2c.dir/build
  6944. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6945. Building C object CMakeFiles/cmTC_37c2c.dir/src.c.o
  6946. /usr/bin/gcc -w -DMAJOR_IN_SYSMACROS -o CMakeFiles/cmTC_37c2c.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  6947. Linking C executable cmTC_37c2c
  6948. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_37c2c.dir/link.txt --verbose=1
  6949. /usr/bin/gcc -w -DMAJOR_IN_SYSMACROS -rdynamic CMakeFiles/cmTC_37c2c.dir/src.c.o -o cmTC_37c2c
  6950. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6951. Source file was:
  6952. #include <sys/sysmacros.h>
  6953. int main() { return major(256); }
  6954. Determining if the EILSEQ exist passed with the following output:
  6955. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6956. Run Build Command:"/usr/bin/make" "cmTC_f127c/fast"
  6957. make -f CMakeFiles/cmTC_f127c.dir/build.make CMakeFiles/cmTC_f127c.dir/build
  6958. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6959. Building C object CMakeFiles/cmTC_f127c.dir/CheckSymbolExists.c.o
  6960. /usr/bin/gcc -w -o CMakeFiles/cmTC_f127c.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  6961. Linking C executable cmTC_f127c
  6962. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f127c.dir/link.txt --verbose=1
  6963. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_f127c.dir/CheckSymbolExists.c.o -o cmTC_f127c
  6964. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6965. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  6966. /* */
  6967. #include <errno.h>
  6968. int main(int argc, char** argv)
  6969. {
  6970. (void)argv;
  6971. #ifndef EILSEQ
  6972. return ((int*)(&EILSEQ))[argc];
  6973. #else
  6974. (void)argc;
  6975. return 0;
  6976. #endif
  6977. }
  6978. Determining if the INT32_MAX exist passed with the following output:
  6979. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  6980. Run Build Command:"/usr/bin/make" "cmTC_3cd7c/fast"
  6981. make -f CMakeFiles/cmTC_3cd7c.dir/build.make CMakeFiles/cmTC_3cd7c.dir/build
  6982. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6983. Building C object CMakeFiles/cmTC_3cd7c.dir/CheckSymbolExists.c.o
  6984. /usr/bin/gcc -w -o CMakeFiles/cmTC_3cd7c.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  6985. Linking C executable cmTC_3cd7c
  6986. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3cd7c.dir/link.txt --verbose=1
  6987. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_3cd7c.dir/CheckSymbolExists.c.o -o cmTC_3cd7c
  6988. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  6989. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  6990. /* */
  6991. #include <limits.h>
  6992. #include <stdint.h>
  6993. #include <inttypes.h>
  6994. int main(int argc, char** argv)
  6995. {
  6996. (void)argv;
  6997. #ifndef INT32_MAX
  6998. return ((int*)(&INT32_MAX))[argc];
  6999. #else
  7000. (void)argc;
  7001. return 0;
  7002. #endif
  7003. }
  7004. Determining if the INT32_MIN exist passed with the following output:
  7005. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7006. Run Build Command:"/usr/bin/make" "cmTC_71f6f/fast"
  7007. make -f CMakeFiles/cmTC_71f6f.dir/build.make CMakeFiles/cmTC_71f6f.dir/build
  7008. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7009. Building C object CMakeFiles/cmTC_71f6f.dir/CheckSymbolExists.c.o
  7010. /usr/bin/gcc -w -o CMakeFiles/cmTC_71f6f.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  7011. Linking C executable cmTC_71f6f
  7012. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_71f6f.dir/link.txt --verbose=1
  7013. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_71f6f.dir/CheckSymbolExists.c.o -o cmTC_71f6f
  7014. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7015. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  7016. /* */
  7017. #include <limits.h>
  7018. #include <stdint.h>
  7019. #include <inttypes.h>
  7020. int main(int argc, char** argv)
  7021. {
  7022. (void)argv;
  7023. #ifndef INT32_MIN
  7024. return ((int*)(&INT32_MIN))[argc];
  7025. #else
  7026. (void)argc;
  7027. return 0;
  7028. #endif
  7029. }
  7030. Determining if the INT64_MAX exist passed with the following output:
  7031. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7032. Run Build Command:"/usr/bin/make" "cmTC_0643f/fast"
  7033. make -f CMakeFiles/cmTC_0643f.dir/build.make CMakeFiles/cmTC_0643f.dir/build
  7034. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7035. Building C object CMakeFiles/cmTC_0643f.dir/CheckSymbolExists.c.o
  7036. /usr/bin/gcc -w -o CMakeFiles/cmTC_0643f.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  7037. Linking C executable cmTC_0643f
  7038. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_0643f.dir/link.txt --verbose=1
  7039. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_0643f.dir/CheckSymbolExists.c.o -o cmTC_0643f
  7040. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7041. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  7042. /* */
  7043. #include <limits.h>
  7044. #include <stdint.h>
  7045. #include <inttypes.h>
  7046. int main(int argc, char** argv)
  7047. {
  7048. (void)argv;
  7049. #ifndef INT64_MAX
  7050. return ((int*)(&INT64_MAX))[argc];
  7051. #else
  7052. (void)argc;
  7053. return 0;
  7054. #endif
  7055. }
  7056. Determining if the INT64_MIN exist passed with the following output:
  7057. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7058. Run Build Command:"/usr/bin/make" "cmTC_c2e8e/fast"
  7059. make -f CMakeFiles/cmTC_c2e8e.dir/build.make CMakeFiles/cmTC_c2e8e.dir/build
  7060. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7061. Building C object CMakeFiles/cmTC_c2e8e.dir/CheckSymbolExists.c.o
  7062. /usr/bin/gcc -w -o CMakeFiles/cmTC_c2e8e.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  7063. Linking C executable cmTC_c2e8e
  7064. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c2e8e.dir/link.txt --verbose=1
  7065. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_c2e8e.dir/CheckSymbolExists.c.o -o cmTC_c2e8e
  7066. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7067. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  7068. /* */
  7069. #include <limits.h>
  7070. #include <stdint.h>
  7071. #include <inttypes.h>
  7072. int main(int argc, char** argv)
  7073. {
  7074. (void)argv;
  7075. #ifndef INT64_MIN
  7076. return ((int*)(&INT64_MIN))[argc];
  7077. #else
  7078. (void)argc;
  7079. return 0;
  7080. #endif
  7081. }
  7082. Determining if the INTMAX_MAX exist passed with the following output:
  7083. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7084. Run Build Command:"/usr/bin/make" "cmTC_cb9aa/fast"
  7085. make -f CMakeFiles/cmTC_cb9aa.dir/build.make CMakeFiles/cmTC_cb9aa.dir/build
  7086. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7087. Building C object CMakeFiles/cmTC_cb9aa.dir/CheckSymbolExists.c.o
  7088. /usr/bin/gcc -w -o CMakeFiles/cmTC_cb9aa.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  7089. Linking C executable cmTC_cb9aa
  7090. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_cb9aa.dir/link.txt --verbose=1
  7091. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_cb9aa.dir/CheckSymbolExists.c.o -o cmTC_cb9aa
  7092. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7093. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  7094. /* */
  7095. #include <limits.h>
  7096. #include <stdint.h>
  7097. #include <inttypes.h>
  7098. int main(int argc, char** argv)
  7099. {
  7100. (void)argv;
  7101. #ifndef INTMAX_MAX
  7102. return ((int*)(&INTMAX_MAX))[argc];
  7103. #else
  7104. (void)argc;
  7105. return 0;
  7106. #endif
  7107. }
  7108. Determining if the INTMAX_MIN exist passed with the following output:
  7109. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7110. Run Build Command:"/usr/bin/make" "cmTC_318cd/fast"
  7111. make -f CMakeFiles/cmTC_318cd.dir/build.make CMakeFiles/cmTC_318cd.dir/build
  7112. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7113. Building C object CMakeFiles/cmTC_318cd.dir/CheckSymbolExists.c.o
  7114. /usr/bin/gcc -w -o CMakeFiles/cmTC_318cd.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  7115. Linking C executable cmTC_318cd
  7116. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_318cd.dir/link.txt --verbose=1
  7117. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_318cd.dir/CheckSymbolExists.c.o -o cmTC_318cd
  7118. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7119. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  7120. /* */
  7121. #include <limits.h>
  7122. #include <stdint.h>
  7123. #include <inttypes.h>
  7124. int main(int argc, char** argv)
  7125. {
  7126. (void)argv;
  7127. #ifndef INTMAX_MIN
  7128. return ((int*)(&INTMAX_MIN))[argc];
  7129. #else
  7130. (void)argc;
  7131. return 0;
  7132. #endif
  7133. }
  7134. Determining if the UINT32_MAX exist passed with the following output:
  7135. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7136. Run Build Command:"/usr/bin/make" "cmTC_7eb3b/fast"
  7137. make -f CMakeFiles/cmTC_7eb3b.dir/build.make CMakeFiles/cmTC_7eb3b.dir/build
  7138. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7139. Building C object CMakeFiles/cmTC_7eb3b.dir/CheckSymbolExists.c.o
  7140. /usr/bin/gcc -w -o CMakeFiles/cmTC_7eb3b.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  7141. Linking C executable cmTC_7eb3b
  7142. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7eb3b.dir/link.txt --verbose=1
  7143. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_7eb3b.dir/CheckSymbolExists.c.o -o cmTC_7eb3b
  7144. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7145. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  7146. /* */
  7147. #include <limits.h>
  7148. #include <stdint.h>
  7149. #include <inttypes.h>
  7150. int main(int argc, char** argv)
  7151. {
  7152. (void)argv;
  7153. #ifndef UINT32_MAX
  7154. return ((int*)(&UINT32_MAX))[argc];
  7155. #else
  7156. (void)argc;
  7157. return 0;
  7158. #endif
  7159. }
  7160. Determining if the UINT64_MAX exist passed with the following output:
  7161. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7162. Run Build Command:"/usr/bin/make" "cmTC_47141/fast"
  7163. make -f CMakeFiles/cmTC_47141.dir/build.make CMakeFiles/cmTC_47141.dir/build
  7164. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7165. Building C object CMakeFiles/cmTC_47141.dir/CheckSymbolExists.c.o
  7166. /usr/bin/gcc -w -o CMakeFiles/cmTC_47141.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  7167. Linking C executable cmTC_47141
  7168. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_47141.dir/link.txt --verbose=1
  7169. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_47141.dir/CheckSymbolExists.c.o -o cmTC_47141
  7170. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7171. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  7172. /* */
  7173. #include <limits.h>
  7174. #include <stdint.h>
  7175. #include <inttypes.h>
  7176. int main(int argc, char** argv)
  7177. {
  7178. (void)argv;
  7179. #ifndef UINT64_MAX
  7180. return ((int*)(&UINT64_MAX))[argc];
  7181. #else
  7182. (void)argc;
  7183. return 0;
  7184. #endif
  7185. }
  7186. Determining if the UINTMAX_MAX exist passed with the following output:
  7187. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7188. Run Build Command:"/usr/bin/make" "cmTC_2b144/fast"
  7189. make -f CMakeFiles/cmTC_2b144.dir/build.make CMakeFiles/cmTC_2b144.dir/build
  7190. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7191. Building C object CMakeFiles/cmTC_2b144.dir/CheckSymbolExists.c.o
  7192. /usr/bin/gcc -w -o CMakeFiles/cmTC_2b144.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  7193. Linking C executable cmTC_2b144
  7194. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_2b144.dir/link.txt --verbose=1
  7195. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_2b144.dir/CheckSymbolExists.c.o -o cmTC_2b144
  7196. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7197. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  7198. /* */
  7199. #include <limits.h>
  7200. #include <stdint.h>
  7201. #include <inttypes.h>
  7202. int main(int argc, char** argv)
  7203. {
  7204. (void)argv;
  7205. #ifndef UINTMAX_MAX
  7206. return ((int*)(&UINTMAX_MAX))[argc];
  7207. #else
  7208. (void)argc;
  7209. return 0;
  7210. #endif
  7211. }
  7212. Determining if the SIZE_MAX exist passed with the following output:
  7213. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7214. Run Build Command:"/usr/bin/make" "cmTC_87f38/fast"
  7215. make -f CMakeFiles/cmTC_87f38.dir/build.make CMakeFiles/cmTC_87f38.dir/build
  7216. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7217. Building C object CMakeFiles/cmTC_87f38.dir/CheckSymbolExists.c.o
  7218. /usr/bin/gcc -w -o CMakeFiles/cmTC_87f38.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  7219. Linking C executable cmTC_87f38
  7220. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_87f38.dir/link.txt --verbose=1
  7221. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_87f38.dir/CheckSymbolExists.c.o -o cmTC_87f38
  7222. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7223. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  7224. /* */
  7225. #include <limits.h>
  7226. #include <stdint.h>
  7227. #include <inttypes.h>
  7228. int main(int argc, char** argv)
  7229. {
  7230. (void)argv;
  7231. #ifndef SIZE_MAX
  7232. return ((int*)(&SIZE_MAX))[argc];
  7233. #else
  7234. (void)argc;
  7235. return 0;
  7236. #endif
  7237. }
  7238. Determining if the SSIZE_MAX exist passed with the following output:
  7239. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7240. Run Build Command:"/usr/bin/make" "cmTC_26ff1/fast"
  7241. make -f CMakeFiles/cmTC_26ff1.dir/build.make CMakeFiles/cmTC_26ff1.dir/build
  7242. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7243. Building C object CMakeFiles/cmTC_26ff1.dir/CheckSymbolExists.c.o
  7244. /usr/bin/gcc -w -o CMakeFiles/cmTC_26ff1.dir/CheckSymbolExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  7245. Linking C executable cmTC_26ff1
  7246. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_26ff1.dir/link.txt --verbose=1
  7247. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_26ff1.dir/CheckSymbolExists.c.o -o cmTC_26ff1
  7248. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7249. File /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  7250. /* */
  7251. #include <limits.h>
  7252. int main(int argc, char** argv)
  7253. {
  7254. (void)argv;
  7255. #ifndef SSIZE_MAX
  7256. return ((int*)(&SSIZE_MAX))[argc];
  7257. #else
  7258. (void)argc;
  7259. return 0;
  7260. #endif
  7261. }
  7262. Performing C SOURCE FILE Test HAVE_STRUCT_TM_TM_GMTOFF succeeded with the following output:
  7263. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7264. Run Build Command:"/usr/bin/make" "cmTC_f695f/fast"
  7265. make -f CMakeFiles/cmTC_f695f.dir/build.make CMakeFiles/cmTC_f695f.dir/build
  7266. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7267. Building C object CMakeFiles/cmTC_f695f.dir/src.c.o
  7268. /usr/bin/gcc -w -DHAVE_STRUCT_TM_TM_GMTOFF -o CMakeFiles/cmTC_f695f.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  7269. Linking C executable cmTC_f695f
  7270. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_f695f.dir/link.txt --verbose=1
  7271. /usr/bin/gcc -w -DHAVE_STRUCT_TM_TM_GMTOFF -rdynamic CMakeFiles/cmTC_f695f.dir/src.c.o -o cmTC_f695f
  7272. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7273. Source file was:
  7274. #include <time.h>
  7275. int main()
  7276. {
  7277. (void)sizeof(((struct tm *)0)->tm_gmtoff);
  7278. return 0;
  7279. }
  7280. Performing C SOURCE FILE Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC succeeded with the following output:
  7281. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7282. Run Build Command:"/usr/bin/make" "cmTC_e1ccd/fast"
  7283. make -f CMakeFiles/cmTC_e1ccd.dir/build.make CMakeFiles/cmTC_e1ccd.dir/build
  7284. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7285. Building C object CMakeFiles/cmTC_e1ccd.dir/src.c.o
  7286. /usr/bin/gcc -w -DHAVE_STRUCT_STAT_ST_MTIM_TV_NSEC -o CMakeFiles/cmTC_e1ccd.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  7287. Linking C executable cmTC_e1ccd
  7288. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e1ccd.dir/link.txt --verbose=1
  7289. /usr/bin/gcc -w -DHAVE_STRUCT_STAT_ST_MTIM_TV_NSEC -rdynamic CMakeFiles/cmTC_e1ccd.dir/src.c.o -o cmTC_e1ccd
  7290. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7291. Source file was:
  7292. #include <sys/types.h>
  7293. #include <sys/stat.h>
  7294. int main()
  7295. {
  7296. (void)sizeof(((struct stat *)0)->st_mtim.tv_nsec);
  7297. return 0;
  7298. }
  7299. Performing C SOURCE FILE Test HAVE_STRUCT_STAT_ST_BLKSIZE succeeded with the following output:
  7300. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7301. Run Build Command:"/usr/bin/make" "cmTC_ca24d/fast"
  7302. make -f CMakeFiles/cmTC_ca24d.dir/build.make CMakeFiles/cmTC_ca24d.dir/build
  7303. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7304. Building C object CMakeFiles/cmTC_ca24d.dir/src.c.o
  7305. /usr/bin/gcc -w -DHAVE_STRUCT_STAT_ST_BLKSIZE -o CMakeFiles/cmTC_ca24d.dir/src.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.c
  7306. Linking C executable cmTC_ca24d
  7307. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_ca24d.dir/link.txt --verbose=1
  7308. /usr/bin/gcc -w -DHAVE_STRUCT_STAT_ST_BLKSIZE -rdynamic CMakeFiles/cmTC_ca24d.dir/src.c.o -o cmTC_ca24d
  7309. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7310. Source file was:
  7311. #include <sys/types.h>
  7312. #include <sys/stat.h>
  7313. int main()
  7314. {
  7315. (void)sizeof(((struct stat *)0)->st_blksize);
  7316. return 0;
  7317. }
  7318. Determining size of dev_t passed with the following output:
  7319. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7320. Run Build Command:"/usr/bin/make" "cmTC_7e3e2/fast"
  7321. make -f CMakeFiles/cmTC_7e3e2.dir/build.make CMakeFiles/cmTC_7e3e2.dir/build
  7322. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7323. Building C object CMakeFiles/cmTC_7e3e2.dir/DEV_T.c.o
  7324. /usr/bin/gcc -w -o CMakeFiles/cmTC_7e3e2.dir/DEV_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/DEV_T.c
  7325. Linking C executable cmTC_7e3e2
  7326. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_7e3e2.dir/link.txt --verbose=1
  7327. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_7e3e2.dir/DEV_T.c.o -o cmTC_7e3e2
  7328. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7329. Determining size of gid_t passed with the following output:
  7330. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7331. Run Build Command:"/usr/bin/make" "cmTC_897c4/fast"
  7332. make -f CMakeFiles/cmTC_897c4.dir/build.make CMakeFiles/cmTC_897c4.dir/build
  7333. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7334. Building C object CMakeFiles/cmTC_897c4.dir/GID_T.c.o
  7335. /usr/bin/gcc -w -o CMakeFiles/cmTC_897c4.dir/GID_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/GID_T.c
  7336. Linking C executable cmTC_897c4
  7337. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_897c4.dir/link.txt --verbose=1
  7338. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_897c4.dir/GID_T.c.o -o cmTC_897c4
  7339. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7340. Determining size of id_t passed with the following output:
  7341. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7342. Run Build Command:"/usr/bin/make" "cmTC_06cab/fast"
  7343. make -f CMakeFiles/cmTC_06cab.dir/build.make CMakeFiles/cmTC_06cab.dir/build
  7344. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7345. Building C object CMakeFiles/cmTC_06cab.dir/ID_T.c.o
  7346. /usr/bin/gcc -w -o CMakeFiles/cmTC_06cab.dir/ID_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/ID_T.c
  7347. Linking C executable cmTC_06cab
  7348. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_06cab.dir/link.txt --verbose=1
  7349. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_06cab.dir/ID_T.c.o -o cmTC_06cab
  7350. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7351. Determining size of mode_t passed with the following output:
  7352. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7353. Run Build Command:"/usr/bin/make" "cmTC_000e8/fast"
  7354. make -f CMakeFiles/cmTC_000e8.dir/build.make CMakeFiles/cmTC_000e8.dir/build
  7355. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7356. Building C object CMakeFiles/cmTC_000e8.dir/MODE_T.c.o
  7357. /usr/bin/gcc -w -o CMakeFiles/cmTC_000e8.dir/MODE_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/MODE_T.c
  7358. Linking C executable cmTC_000e8
  7359. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_000e8.dir/link.txt --verbose=1
  7360. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_000e8.dir/MODE_T.c.o -o cmTC_000e8
  7361. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7362. Determining size of off_t passed with the following output:
  7363. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7364. Run Build Command:"/usr/bin/make" "cmTC_c0ed6/fast"
  7365. make -f CMakeFiles/cmTC_c0ed6.dir/build.make CMakeFiles/cmTC_c0ed6.dir/build
  7366. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7367. Building C object CMakeFiles/cmTC_c0ed6.dir/OFF_T.c.o
  7368. /usr/bin/gcc -w -o CMakeFiles/cmTC_c0ed6.dir/OFF_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/OFF_T.c
  7369. Linking C executable cmTC_c0ed6
  7370. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c0ed6.dir/link.txt --verbose=1
  7371. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_c0ed6.dir/OFF_T.c.o -o cmTC_c0ed6
  7372. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7373. Determining size of size_t passed with the following output:
  7374. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7375. Run Build Command:"/usr/bin/make" "cmTC_c2591/fast"
  7376. make -f CMakeFiles/cmTC_c2591.dir/build.make CMakeFiles/cmTC_c2591.dir/build
  7377. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7378. Building C object CMakeFiles/cmTC_c2591.dir/SIZE_T.c.o
  7379. /usr/bin/gcc -w -o CMakeFiles/cmTC_c2591.dir/SIZE_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZE_T.c
  7380. Linking C executable cmTC_c2591
  7381. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_c2591.dir/link.txt --verbose=1
  7382. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_c2591.dir/SIZE_T.c.o -o cmTC_c2591
  7383. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7384. Determining size of ssize_t passed with the following output:
  7385. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7386. Run Build Command:"/usr/bin/make" "cmTC_03edf/fast"
  7387. make -f CMakeFiles/cmTC_03edf.dir/build.make CMakeFiles/cmTC_03edf.dir/build
  7388. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7389. Building C object CMakeFiles/cmTC_03edf.dir/SSIZE_T.c.o
  7390. /usr/bin/gcc -w -o CMakeFiles/cmTC_03edf.dir/SSIZE_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SSIZE_T.c
  7391. Linking C executable cmTC_03edf
  7392. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_03edf.dir/link.txt --verbose=1
  7393. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_03edf.dir/SSIZE_T.c.o -o cmTC_03edf
  7394. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7395. Determining size of uid_t passed with the following output:
  7396. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7397. Run Build Command:"/usr/bin/make" "cmTC_37c4c/fast"
  7398. make -f CMakeFiles/cmTC_37c4c.dir/build.make CMakeFiles/cmTC_37c4c.dir/build
  7399. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7400. Building C object CMakeFiles/cmTC_37c4c.dir/UID_T.c.o
  7401. /usr/bin/gcc -w -o CMakeFiles/cmTC_37c4c.dir/UID_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/UID_T.c
  7402. Linking C executable cmTC_37c4c
  7403. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_37c4c.dir/link.txt --verbose=1
  7404. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_37c4c.dir/UID_T.c.o -o cmTC_37c4c
  7405. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7406. Determining size of pid_t passed with the following output:
  7407. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7408. Run Build Command:"/usr/bin/make" "cmTC_6c2e6/fast"
  7409. make -f CMakeFiles/cmTC_6c2e6.dir/build.make CMakeFiles/cmTC_6c2e6.dir/build
  7410. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7411. Building C object CMakeFiles/cmTC_6c2e6.dir/PID_T.c.o
  7412. /usr/bin/gcc -w -o CMakeFiles/cmTC_6c2e6.dir/PID_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/PID_T.c
  7413. Linking C executable cmTC_6c2e6
  7414. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_6c2e6.dir/link.txt --verbose=1
  7415. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_6c2e6.dir/PID_T.c.o -o cmTC_6c2e6
  7416. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7417. Determining size of intptr_t passed with the following output:
  7418. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7419. Run Build Command:"/usr/bin/make" "cmTC_3c529/fast"
  7420. make -f CMakeFiles/cmTC_3c529.dir/build.make CMakeFiles/cmTC_3c529.dir/build
  7421. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7422. Building C object CMakeFiles/cmTC_3c529.dir/INTPTR_T.c.o
  7423. /usr/bin/gcc -w -o CMakeFiles/cmTC_3c529.dir/INTPTR_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/INTPTR_T.c
  7424. Linking C executable cmTC_3c529
  7425. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3c529.dir/link.txt --verbose=1
  7426. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_3c529.dir/INTPTR_T.c.o -o cmTC_3c529
  7427. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7428. Determining size of wchar_t passed with the following output:
  7429. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7430. Run Build Command:"/usr/bin/make" "cmTC_cb90b/fast"
  7431. make -f CMakeFiles/cmTC_cb90b.dir/build.make CMakeFiles/cmTC_cb90b.dir/build
  7432. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7433. Building C object CMakeFiles/cmTC_cb90b.dir/SIZEOF_WCHAR_T.c.o
  7434. /usr/bin/gcc -w -o CMakeFiles/cmTC_cb90b.dir/SIZEOF_WCHAR_T.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CheckTypeSize/SIZEOF_WCHAR_T.c
  7435. Linking C executable cmTC_cb90b
  7436. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_cb90b.dir/link.txt --verbose=1
  7437. /usr/bin/gcc -w -rdynamic CMakeFiles/cmTC_cb90b.dir/SIZEOF_WCHAR_T.c.o -o cmTC_cb90b
  7438. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7439. Checking support for ARCHIVE_CRYPTO_MD5_LIBC failed with the following output:
  7440. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  7441. Run Build Command:"/usr/bin/make" "cmTC_2e39d/fast"
  7442. make -f CMakeFiles/cmTC_2e39d.dir/build.make CMakeFiles/cmTC_2e39d.dir/build
  7443. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7444. Building C object CMakeFiles/cmTC_2e39d.dir/check_crypto_md.c.o
  7445. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_2e39d.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  7446. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  7447. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:61:17: fatal error: md5.h: No such file or directory
  7448. compilation terminated.
  7449. CMakeFiles/cmTC_2e39d.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_2e39d.dir/check_crypto_md.c.o' failed
  7450. make[1]: *** [CMakeFiles/cmTC_2e39d.dir/check_crypto_md.c.o] Error 1
  7451. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  7452. Makefile:126: recipe for target 'cmTC_2e39d/fast' failed
  7453. make: *** [cmTC_2e39d/fast] Error 2
  7454. Source file was:
  7455. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  7456. #if defined(__osf__)
  7457. # define _OSF_SOURCE
  7458. #endif
  7459. /*
  7460. * Ensure we have C99-style int64_t, etc, all defined.
  7461. */
  7462. /* First, we need to know if the system has already defined them. */
  7463. #define HAVE_INT16_T
  7464. #define HAVE_INT32_T
  7465. #define HAVE_INT64_T
  7466. #define HAVE_INTMAX_T
  7467. #define HAVE_UINT8_T
  7468. #define HAVE_UINT16_T
  7469. #define HAVE_UINT32_T
  7470. #define HAVE_UINT64_T
  7471. #define HAVE_UINTMAX_T
  7472. /* We might have the types we want under other spellings. */
  7473. /* #undef HAVE___INT64 */
  7474. /* #undef HAVE_U_INT64_T */
  7475. /* #undef HAVE_UNSIGNED___INT64 */
  7476. /* The sizes of various standard integer types. */
  7477. #define SIZE_OF_SHORT 2
  7478. #define SIZE_OF_INT 4
  7479. #define SIZE_OF_LONG 8
  7480. #define SIZE_OF_LONG_LONG 8
  7481. #define SIZE_OF_UNSIGNED_SHORT 2
  7482. #define SIZE_OF_UNSIGNED 4
  7483. #define SIZE_OF_UNSIGNED_LONG 8
  7484. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  7485. /*
  7486. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  7487. * that exists and is the right size.
  7488. */
  7489. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  7490. typedef __int64 int64_t;
  7491. #define HAVE_INT64_T
  7492. #endif
  7493. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  7494. typedef int int64_t;
  7495. #define HAVE_INT64_T
  7496. #endif
  7497. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  7498. typedef long int64_t;
  7499. #define HAVE_INT64_T
  7500. #endif
  7501. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  7502. typedef long long int64_t;
  7503. #define HAVE_INT64_T
  7504. #endif
  7505. #if !defined(HAVE_INT64_T)
  7506. #error No 64-bit integer type was found.
  7507. #endif
  7508. /*
  7509. * Similarly for int32_t
  7510. */
  7511. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  7512. typedef int int32_t;
  7513. #define HAVE_INT32_T
  7514. #endif
  7515. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  7516. typedef long int32_t;
  7517. #define HAVE_INT32_T
  7518. #endif
  7519. #if !defined(HAVE_INT32_T)
  7520. #error No 32-bit integer type was found.
  7521. #endif
  7522. /*
  7523. * Similarly for int16_t
  7524. */
  7525. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  7526. typedef int int16_t;
  7527. #define HAVE_INT16_T
  7528. #endif
  7529. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  7530. typedef short int16_t;
  7531. #define HAVE_INT16_T
  7532. #endif
  7533. #if !defined(HAVE_INT16_T)
  7534. #error No 16-bit integer type was found.
  7535. #endif
  7536. /*
  7537. * Similarly for uint64_t
  7538. */
  7539. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  7540. typedef unsigned __int64 uint64_t;
  7541. #define HAVE_UINT64_T
  7542. #endif
  7543. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  7544. typedef unsigned uint64_t;
  7545. #define HAVE_UINT64_T
  7546. #endif
  7547. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  7548. typedef unsigned long uint64_t;
  7549. #define HAVE_UINT64_T
  7550. #endif
  7551. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  7552. typedef unsigned long long uint64_t;
  7553. #define HAVE_UINT64_T
  7554. #endif
  7555. #if !defined(HAVE_UINT64_T)
  7556. #error No 64-bit unsigned integer type was found.
  7557. #endif
  7558. /*
  7559. * Similarly for uint32_t
  7560. */
  7561. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  7562. typedef unsigned uint32_t;
  7563. #define HAVE_UINT32_T
  7564. #endif
  7565. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  7566. typedef unsigned long uint32_t;
  7567. #define HAVE_UINT32_T
  7568. #endif
  7569. #if !defined(HAVE_UINT32_T)
  7570. #error No 32-bit unsigned integer type was found.
  7571. #endif
  7572. /*
  7573. * Similarly for uint16_t
  7574. */
  7575. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  7576. typedef unsigned uint16_t;
  7577. #define HAVE_UINT16_T
  7578. #endif
  7579. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  7580. typedef unsigned short uint16_t;
  7581. #define HAVE_UINT16_T
  7582. #endif
  7583. #if !defined(HAVE_UINT16_T)
  7584. #error No 16-bit unsigned integer type was found.
  7585. #endif
  7586. /*
  7587. * Similarly for uint8_t
  7588. */
  7589. #if !defined(HAVE_UINT8_T)
  7590. typedef unsigned char uint8_t;
  7591. #define HAVE_UINT8_T
  7592. #endif
  7593. #if !defined(HAVE_UINT16_T)
  7594. #error No 8-bit unsigned integer type was found.
  7595. #endif
  7596. /* Define intmax_t and uintmax_t if they are not already defined. */
  7597. #if !defined(HAVE_INTMAX_T)
  7598. typedef int64_t intmax_t;
  7599. #endif
  7600. #if !defined(HAVE_UINTMAX_T)
  7601. typedef uint64_t uintmax_t;
  7602. #endif
  7603. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  7604. /* #undef ZLIB_WINAPI */
  7605. /* Darwin ACL support */
  7606. /* #undef ARCHIVE_ACL_DARWIN */
  7607. /* FreeBSD ACL support */
  7608. /* #undef ARCHIVE_ACL_FREEBSD */
  7609. /* FreeBSD NFSv4 ACL support */
  7610. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  7611. /* Linux POSIX.1e ACL support via libacl */
  7612. /* #undef ARCHIVE_ACL_LIBACL */
  7613. /* Linux NFSv4 ACL support via librichacl */
  7614. /* #undef ARCHIVE_ACL_LIBRICHACL */
  7615. /* Solaris ACL support */
  7616. /* #undef ARCHIVE_ACL_SUNOS */
  7617. /* Solaris NFSv4 ACL support */
  7618. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  7619. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  7620. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  7621. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  7622. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  7623. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  7624. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  7625. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  7626. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  7627. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  7628. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  7629. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  7630. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  7631. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  7632. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  7633. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  7634. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  7635. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  7636. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  7637. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  7638. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  7639. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  7640. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  7641. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  7642. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  7643. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  7644. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  7645. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  7646. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  7647. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  7648. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  7649. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  7650. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  7651. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  7652. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  7653. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  7654. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  7655. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  7656. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  7657. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  7658. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  7659. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  7660. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  7661. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  7662. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  7663. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  7664. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  7665. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  7666. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  7667. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  7668. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  7669. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  7670. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  7671. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  7672. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  7673. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  7674. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  7675. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  7676. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  7677. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  7678. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  7679. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  7680. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  7681. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  7682. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  7683. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  7684. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  7685. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  7686. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  7687. /* AIX xattr support */
  7688. /* #undef ARCHIVE_XATTR_AIX */
  7689. /* Darwin xattr support */
  7690. /* #undef ARCHIVE_XATTR_DARWIN */
  7691. /* FreeBSD xattr support */
  7692. /* #undef ARCHIVE_XATTR_FREEBSD */
  7693. /* Linux xattr support */
  7694. /* #undef ARCHIVE_XATTR_LINUX */
  7695. /* Version number of bsdcpio */
  7696. #define BSDCPIO_VERSION_STRING "3.3.2"
  7697. /* Version number of bsdtar */
  7698. #define BSDTAR_VERSION_STRING "3.3.2"
  7699. /* Version number of bsdcat */
  7700. #define BSDCAT_VERSION_STRING "3.3.2"
  7701. /* Define to 1 if you have the `acl_create_entry' function. */
  7702. /* #undef HAVE_ACL_CREATE_ENTRY */
  7703. /* Define to 1 if you have the `acl_get_fd_np' function. */
  7704. /* #undef HAVE_ACL_GET_FD_NP */
  7705. /* Define to 1 if you have the `acl_get_link' function. */
  7706. /* #undef HAVE_ACL_GET_LINK */
  7707. /* Define to 1 if you have the `acl_get_link_np' function. */
  7708. /* #undef HAVE_ACL_GET_LINK_NP */
  7709. /* Define to 1 if you have the `acl_get_perm' function. */
  7710. /* #undef HAVE_ACL_GET_PERM */
  7711. /* Define to 1 if you have the `acl_get_perm_np' function. */
  7712. /* #undef HAVE_ACL_GET_PERM_NP */
  7713. /* Define to 1 if you have the `acl_init' function. */
  7714. /* #undef HAVE_ACL_INIT */
  7715. /* Define to 1 if you have the <acl/libacl.h> header file. */
  7716. /* #undef HAVE_ACL_LIBACL_H */
  7717. /* Define to 1 if the system has the type `acl_permset_t'. */
  7718. /* #undef HAVE_ACL_PERMSET_T */
  7719. /* Define to 1 if you have the `acl_set_fd' function. */
  7720. /* #undef HAVE_ACL_SET_FD */
  7721. /* Define to 1 if you have the `acl_set_fd_np' function. */
  7722. /* #undef HAVE_ACL_SET_FD_NP */
  7723. /* Define to 1 if you have the `acl_set_file' function. */
  7724. /* #undef HAVE_ACL_SET_FILE */
  7725. /* Define to 1 if you have the `arc4random_buf' function. */
  7726. /* #undef HAVE_ARC4RANDOM_BUF */
  7727. /* Define to 1 if you have the <attr/xattr.h> header file. */
  7728. /* #undef HAVE_ATTR_XATTR_H */
  7729. /* Define to 1 if you have the <Bcrypt.h> header file. */
  7730. /* #undef HAVE_BCRYPT_H */
  7731. /* Define to 1 if you have the <bsdxml.h> header file. */
  7732. /* #undef HAVE_BSDXML_H */
  7733. /* Define to 1 if you have the <bzlib.h> header file. */
  7734. #define HAVE_BZLIB_H 1
  7735. /* Define to 1 if you have the `chflags' function. */
  7736. /* #undef HAVE_CHFLAGS */
  7737. /* Define to 1 if you have the `chown' function. */
  7738. #define HAVE_CHOWN 1
  7739. /* Define to 1 if you have the `chroot' function. */
  7740. #define HAVE_CHROOT 1
  7741. /* Define to 1 if you have the <copyfile.h> header file. */
  7742. /* #undef HAVE_COPYFILE_H */
  7743. /* Define to 1 if you have the `ctime_r' function. */
  7744. #define HAVE_CTIME_R 1
  7745. /* Define to 1 if you have the <ctype.h> header file. */
  7746. #define HAVE_CTYPE_H 1
  7747. /* Define to 1 if you have the `cygwin_conv_path' function. */
  7748. /* #undef HAVE_CYGWIN_CONV_PATH */
  7749. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  7750. don't. */
  7751. /* #undef HAVE_DECL_ACE_GETACL */
  7752. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  7753. don't. */
  7754. /* #undef HAVE_DECL_ACE_GETACLCNT */
  7755. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  7756. don't. */
  7757. /* #undef HAVE_DECL_ACE_SETACL */
  7758. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  7759. you don't. */
  7760. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  7761. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  7762. you don't. */
  7763. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  7764. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  7765. don't. */
  7766. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  7767. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  7768. don't. */
  7769. /* #undef HAVE_DECL_ACL_USER */
  7770. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  7771. don't. */
  7772. #define HAVE_DECL_INT32_MAX 1
  7773. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  7774. don't. */
  7775. #define HAVE_DECL_INT32_MIN 1
  7776. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  7777. don't. */
  7778. #define HAVE_DECL_INT64_MAX 1
  7779. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  7780. don't. */
  7781. #define HAVE_DECL_INT64_MIN 1
  7782. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  7783. don't. */
  7784. #define HAVE_DECL_INTMAX_MAX 1
  7785. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  7786. don't. */
  7787. #define HAVE_DECL_INTMAX_MIN 1
  7788. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  7789. */
  7790. /* #undef HAVE_DECL_SETACL */
  7791. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  7792. don't. */
  7793. #define HAVE_DECL_SIZE_MAX 1
  7794. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  7795. don't. */
  7796. #define HAVE_DECL_SSIZE_MAX 1
  7797. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  7798. don't. */
  7799. #define HAVE_DECL_STRERROR_R 1
  7800. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  7801. don't. */
  7802. #define HAVE_DECL_UINT32_MAX 1
  7803. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  7804. don't. */
  7805. #define HAVE_DECL_UINT64_MAX 1
  7806. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  7807. don't. */
  7808. #define HAVE_DECL_UINTMAX_MAX 1
  7809. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  7810. you don't. */
  7811. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  7812. /* Define to 1 if you have the <direct.h> header file. */
  7813. /* #undef HAVE_DIRECT_H */
  7814. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  7815. */
  7816. #define HAVE_DIRENT_H 1
  7817. /* Define to 1 if you have the `dirfd' function. */
  7818. #define HAVE_DIRFD 1
  7819. /* Define to 1 if you have the <dlfcn.h> header file. */
  7820. #define HAVE_DLFCN_H 1
  7821. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  7822. /* #undef HAVE_DOPRNT */
  7823. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  7824. /* #undef HAVE_D_MD_ORDER */
  7825. /* A possible errno value for invalid file format errors */
  7826. /* #undef HAVE_EFTYPE */
  7827. /* A possible errno value for invalid file format errors */
  7828. #define HAVE_EILSEQ 1
  7829. /* Define to 1 if you have the <errno.h> header file. */
  7830. #define HAVE_ERRNO_H 1
  7831. /* Define to 1 if you have the <expat.h> header file. */
  7832. /* #undef HAVE_EXPAT_H */
  7833. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  7834. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  7835. /* Define to 1 if you have the `extattr_get_file' function. */
  7836. /* #undef HAVE_EXTATTR_GET_FILE */
  7837. /* Define to 1 if you have the `extattr_list_file' function. */
  7838. /* #undef HAVE_EXTATTR_LIST_FILE */
  7839. /* Define to 1 if you have the `extattr_set_fd' function. */
  7840. /* #undef HAVE_EXTATTR_SET_FD */
  7841. /* Define to 1 if you have the `extattr_set_file' function. */
  7842. /* #undef HAVE_EXTATTR_SET_FILE */
  7843. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  7844. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  7845. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  7846. */
  7847. /* #undef HAVE_DECL_GETACL */
  7848. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  7849. don't. */
  7850. /* #undef HAVE_DECL_GETACLCNT */
  7851. /* Define to 1 if you have the `fchdir' function. */
  7852. #define HAVE_FCHDIR 1
  7853. /* Define to 1 if you have the `fchflags' function. */
  7854. /* #undef HAVE_FCHFLAGS */
  7855. /* Define to 1 if you have the `fchmod' function. */
  7856. #define HAVE_FCHMOD 1
  7857. /* Define to 1 if you have the `fchown' function. */
  7858. #define HAVE_FCHOWN 1
  7859. /* Define to 1 if you have the `fcntl' function. */
  7860. #define HAVE_FCNTL 1
  7861. /* Define to 1 if you have the <fcntl.h> header file. */
  7862. #define HAVE_FCNTL_H 1
  7863. /* Define to 1 if you have the `fdopendir' function. */
  7864. #define HAVE_FDOPENDIR 1
  7865. /* Define to 1 if you have the `fgetea' function. */
  7866. /* #undef HAVE_FGETEA */
  7867. /* Define to 1 if you have the `fgetxattr' function. */
  7868. /* #undef HAVE_FGETXATTR */
  7869. /* Define to 1 if you have the `flistea' function. */
  7870. /* #undef HAVE_FLISTEA */
  7871. /* Define to 1 if you have the `flistxattr' function. */
  7872. /* #undef HAVE_FLISTXATTR */
  7873. /* Define to 1 if you have the `fork' function. */
  7874. #define HAVE_FORK 1
  7875. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  7876. #define HAVE_FSEEKO 1
  7877. /* Define to 1 if you have the `fsetea' function. */
  7878. /* #undef HAVE_FSETEA */
  7879. /* Define to 1 if you have the `fsetxattr' function. */
  7880. #define HAVE_FSETXATTR 1
  7881. /* Define to 1 if you have the `fstat' function. */
  7882. #define HAVE_FSTAT 1
  7883. /* Define to 1 if you have the `fstatat' function. */
  7884. #define HAVE_FSTATAT 1
  7885. /* Define to 1 if you have the `fstatfs' function. */
  7886. #define HAVE_FSTATFS 1
  7887. /* Define to 1 if you have the `fstatvfs' function. */
  7888. #define HAVE_FSTATVFS 1
  7889. /* Define to 1 if you have the `ftruncate' function. */
  7890. #define HAVE_FTRUNCATE 1
  7891. /* Define to 1 if you have the `futimens' function. */
  7892. #define HAVE_FUTIMENS 1
  7893. /* Define to 1 if you have the `futimes' function. */
  7894. #define HAVE_FUTIMES 1
  7895. /* Define to 1 if you have the `futimesat' function. */
  7896. #define HAVE_FUTIMESAT 1
  7897. /* Define to 1 if you have the `getea' function. */
  7898. /* #undef HAVE_GETEA */
  7899. /* Define to 1 if you have the `geteuid' function. */
  7900. #define HAVE_GETEUID 1
  7901. /* Define to 1 if you have the `getgrgid_r' function. */
  7902. #define HAVE_GETGRGID_R 1
  7903. /* Define to 1 if you have the `getgrnam_r' function. */
  7904. #define HAVE_GETGRNAM_R 1
  7905. /* Define to 1 if you have the `getpid' function. */
  7906. #define HAVE_GETPID 1
  7907. /* Define to 1 if you have the `getpwnam_r' function. */
  7908. #define HAVE_GETPWNAM_R 1
  7909. /* Define to 1 if you have the `getpwuid_r' function. */
  7910. #define HAVE_GETPWUID_R 1
  7911. /* Define to 1 if you have the `getvfsbyname' function. */
  7912. /* #undef HAVE_GETVFSBYNAME */
  7913. /* Define to 1 if you have the `getxattr' function. */
  7914. /* #undef HAVE_GETXATTR */
  7915. /* Define to 1 if you have the `gmtime_r' function. */
  7916. #define HAVE_GMTIME_R 1
  7917. /* Define to 1 if you have the <grp.h> header file. */
  7918. #define HAVE_GRP_H 1
  7919. /* Define to 1 if you have the `iconv' function. */
  7920. /* #undef HAVE_ICONV */
  7921. /* Define to 1 if you have the <iconv.h> header file. */
  7922. /* #undef HAVE_ICONV_H */
  7923. /* Define to 1 if you have the <inttypes.h> header file. */
  7924. #define HAVE_INTTYPES_H 1
  7925. /* Define to 1 if you have the <io.h> header file. */
  7926. /* #undef HAVE_IO_H */
  7927. /* Define to 1 if you have the <langinfo.h> header file. */
  7928. #define HAVE_LANGINFO_H 1
  7929. /* Define to 1 if you have the `lchflags' function. */
  7930. /* #undef HAVE_LCHFLAGS */
  7931. /* Define to 1 if you have the `lchmod' function. */
  7932. /* #undef HAVE_LCHMOD */
  7933. /* Define to 1 if you have the `lchown' function. */
  7934. #define HAVE_LCHOWN 1
  7935. /* Define to 1 if you have the `lgetea' function. */
  7936. /* #undef HAVE_LGETEA */
  7937. /* Define to 1 if you have the `lgetxattr' function. */
  7938. /* #undef HAVE_LGETXATTR */
  7939. /* Define to 1 if you have the `acl' library (-lacl). */
  7940. /* #undef HAVE_LIBACL */
  7941. /* Define to 1 if you have the `attr' library (-lattr). */
  7942. /* #undef HAVE_LIBATTR */
  7943. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  7944. /* #undef HAVE_LIBBSDXML */
  7945. /* Define to 1 if you have the `bz2' library (-lbz2). */
  7946. #define HAVE_LIBBZ2 1
  7947. /* Define to 1 if you have the `charset' library (-lcharset). */
  7948. /* #undef HAVE_LIBCHARSET */
  7949. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  7950. #define HAVE_LIBCRYPTO 1
  7951. /* Define to 1 if you have the `expat' library (-lexpat). */
  7952. /* #undef HAVE_LIBEXPAT */
  7953. /* Define to 1 if you have the `gcc' library (-lgcc). */
  7954. /* #undef HAVE_LIBGCC */
  7955. /* Define to 1 if you have the `lz4' library (-llz4). */
  7956. /* #undef HAVE_LIBLZ4 */
  7957. /* Define to 1 if you have the `lzma' library (-llzma). */
  7958. #define HAVE_LIBLZMA 1
  7959. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  7960. /* #undef HAVE_LIBLZMADEC */
  7961. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  7962. /* #undef HAVE_LIBLZO2 */
  7963. /* Define to 1 if you have the `nettle' library (-lnettle). */
  7964. /* #undef HAVE_LIBNETTLE */
  7965. /* Define to 1 if you have the `pcre' library (-lpcre). */
  7966. /* #undef HAVE_LIBPCRE */
  7967. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  7968. /* #undef HAVE_LIBPCREPOSIX */
  7969. /* Define to 1 if you have the `xml2' library (-lxml2). */
  7970. /* #undef HAVE_LIBXML2 */
  7971. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  7972. /* #undef HAVE_LIBXML_XMLREADER_H */
  7973. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  7974. /* #undef HAVE_LIBXML_XMLWRITER_H */
  7975. /* Define to 1 if you have the `z' library (-lz). */
  7976. #define HAVE_LIBZ 1
  7977. /* Define to 1 if you have the <limits.h> header file. */
  7978. #define HAVE_LIMITS_H 1
  7979. /* Define to 1 if you have the `link' function. */
  7980. #define HAVE_LINK 1
  7981. /* Define to 1 if you have the <linux/types.h> header file. */
  7982. #define HAVE_LINUX_TYPES_H 1
  7983. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  7984. #define HAVE_LINUX_FIEMAP_H 1
  7985. /* Define to 1 if you have the <linux/fs.h> header file. */
  7986. #define HAVE_LINUX_FS_H 1
  7987. /* Define to 1 if you have the <linux/magic.h> header file. */
  7988. #define HAVE_LINUX_MAGIC_H 1
  7989. /* Define to 1 if you have the <linux/types.h> header file. */
  7990. #define HAVE_LINUX_TYPES_H 1
  7991. /* Define to 1 if you have the `listea' function. */
  7992. /* #undef HAVE_LISTEA */
  7993. /* Define to 1 if you have the `listxattr' function. */
  7994. /* #undef HAVE_LISTXATTR */
  7995. /* Define to 1 if you have the `llistea' function. */
  7996. /* #undef HAVE_LLISTEA */
  7997. /* Define to 1 if you have the `llistxattr' function. */
  7998. /* #undef HAVE_LLISTXATTR */
  7999. /* Define to 1 if you have the <localcharset.h> header file. */
  8000. /* #undef HAVE_LOCALCHARSET_H */
  8001. /* Define to 1 if you have the `locale_charset' function. */
  8002. /* #undef HAVE_LOCALE_CHARSET */
  8003. /* Define to 1 if you have the <locale.h> header file. */
  8004. #define HAVE_LOCALE_H 1
  8005. /* Define to 1 if you have the `localtime_r' function. */
  8006. #define HAVE_LOCALTIME_R 1
  8007. /* Define to 1 if the system has the type `long long int'. */
  8008. /* #undef HAVE_LONG_LONG_INT */
  8009. /* Define to 1 if you have the `lsetea' function. */
  8010. /* #undef HAVE_LSETEA */
  8011. /* Define to 1 if you have the `lsetxattr' function. */
  8012. /* #undef HAVE_LSETXATTR */
  8013. /* Define to 1 if you have the `lstat' function. */
  8014. #define HAVE_LSTAT 1
  8015. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  8016. zero-length file name argument. */
  8017. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  8018. /* Define to 1 if you have the `lutimes' function. */
  8019. #define HAVE_LUTIMES 1
  8020. /* Define to 1 if you have the <lz4hc.h> header file. */
  8021. /* #undef HAVE_LZ4HC_H */
  8022. /* Define to 1 if you have the <lz4.h> header file. */
  8023. /* #undef HAVE_LZ4_H */
  8024. /* Define to 1 if you have the <lzmadec.h> header file. */
  8025. /* #undef HAVE_LZMADEC_H */
  8026. /* Define to 1 if you have the <lzma.h> header file. */
  8027. #define HAVE_LZMA_H 1
  8028. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  8029. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  8030. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  8031. /* #undef HAVE_LZO_LZO1X_H */
  8032. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  8033. /* #undef HAVE_LZO_LZOCONF_H */
  8034. /* Define to 1 if you have the `mbrtowc' function. */
  8035. #define HAVE_MBRTOWC 1
  8036. /* Define to 1 if you have the <membership.h> header file. */
  8037. /* #undef HAVE_MEMBERSHIP_H */
  8038. /* Define to 1 if you have the `memmove' function. */
  8039. #define HAVE_MEMMOVE 1
  8040. /* Define to 1 if you have the <memory.h> header file. */
  8041. #define HAVE_MEMORY_H 1
  8042. /* Define to 1 if you have the `mkdir' function. */
  8043. #define HAVE_MKDIR 1
  8044. /* Define to 1 if you have the `mkfifo' function. */
  8045. #define HAVE_MKFIFO 1
  8046. /* Define to 1 if you have the `mknod' function. */
  8047. #define HAVE_MKNOD 1
  8048. /* Define to 1 if you have the `mkstemp' function. */
  8049. #define HAVE_MKSTEMP 1
  8050. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  8051. /* #undef HAVE_NDIR_H */
  8052. /* Define to 1 if you have the <nettle/aes.h> header file. */
  8053. /* #undef HAVE_NETTLE_AES_H */
  8054. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  8055. /* #undef HAVE_NETTLE_HMAC_H */
  8056. /* Define to 1 if you have the <nettle/md5.h> header file. */
  8057. /* #undef HAVE_NETTLE_MD5_H */
  8058. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  8059. /* #undef HAVE_NETTLE_PBKDF2_H */
  8060. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  8061. /* #undef HAVE_NETTLE_RIPEMD160_H */
  8062. /* Define to 1 if you have the <nettle/sha.h> header file. */
  8063. /* #undef HAVE_NETTLE_SHA_H */
  8064. /* Define to 1 if you have the `nl_langinfo' function. */
  8065. #define HAVE_NL_LANGINFO 1
  8066. /* Define to 1 if you have the `openat' function. */
  8067. #define HAVE_OPENAT 1
  8068. /* Define to 1 if you have the <paths.h> header file. */
  8069. #define HAVE_PATHS_H 1
  8070. /* Define to 1 if you have the <pcreposix.h> header file. */
  8071. /* #undef HAVE_PCREPOSIX_H */
  8072. /* Define to 1 if you have the `pipe' function. */
  8073. #define HAVE_PIPE 1
  8074. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  8075. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  8076. /* Define to 1 if you have the `poll' function. */
  8077. #define HAVE_POLL 1
  8078. /* Define to 1 if you have the <poll.h> header file. */
  8079. #define HAVE_POLL_H 1
  8080. /* Define to 1 if you have the `posix_spawnp' function. */
  8081. #define HAVE_POSIX_SPAWNP 1
  8082. /* Define to 1 if you have the <process.h> header file. */
  8083. /* #undef HAVE_PROCESS_H */
  8084. /* Define to 1 if you have the <pthread.h> header file. */
  8085. /* #undef HAVE_PTHREAD_H */
  8086. /* Define to 1 if you have the <pwd.h> header file. */
  8087. #define HAVE_PWD_H 1
  8088. /* Define to 1 if you have the `readdir_r' function. */
  8089. #define HAVE_READDIR_R 1
  8090. /* Define to 1 if you have the `readlink' function. */
  8091. #define HAVE_READLINK 1
  8092. /* Define to 1 if you have the `readlinkat' function. */
  8093. #define HAVE_READLINKAT 1
  8094. /* Define to 1 if you have the `readpassphrase' function. */
  8095. /* #undef HAVE_READPASSPHRASE */
  8096. /* Define to 1 if you have the <readpassphrase.h> header file. */
  8097. /* #undef HAVE_READPASSPHRASE_H */
  8098. /* Define to 1 if you have the <regex.h> header file. */
  8099. #define HAVE_REGEX_H 1
  8100. /* Define to 1 if you have the `select' function. */
  8101. #define HAVE_SELECT 1
  8102. /* Define to 1 if you have the `setenv' function. */
  8103. #define HAVE_SETENV 1
  8104. /* Define to 1 if you have the `setlocale' function. */
  8105. #define HAVE_SETLOCALE 1
  8106. /* Define to 1 if you have the `sigaction' function. */
  8107. #define HAVE_SIGACTION 1
  8108. /* Define to 1 if you have the <signal.h> header file. */
  8109. #define HAVE_SIGNAL_H 1
  8110. /* Define to 1 if you have the <spawn.h> header file. */
  8111. #define HAVE_SPAWN_H 1
  8112. /* Define to 1 if you have the `statfs' function. */
  8113. #define HAVE_STATFS 1
  8114. /* Define to 1 if you have the `statvfs' function. */
  8115. #define HAVE_STATVFS 1
  8116. /* Define to 1 if `stat' has the bug that it succeeds when given the
  8117. zero-length file name argument. */
  8118. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  8119. /* Define to 1 if you have the <stdarg.h> header file. */
  8120. #define HAVE_STDARG_H 1
  8121. /* Define to 1 if you have the <stdint.h> header file. */
  8122. #define HAVE_STDINT_H 1
  8123. /* Define to 1 if you have the <stdlib.h> header file. */
  8124. #define HAVE_STDLIB_H 1
  8125. /* Define to 1 if you have the `strchr' function. */
  8126. #define HAVE_STRCHR 1
  8127. /* Define to 1 if you have the `strdup' function. */
  8128. #define HAVE_STRDUP 1
  8129. /* Define to 1 if you have the `strerror' function. */
  8130. #define HAVE_STRERROR 1
  8131. /* Define to 1 if you have the `strerror_r' function. */
  8132. #define HAVE_STRERROR_R 1
  8133. /* Define to 1 if you have the `strftime' function. */
  8134. #define HAVE_STRFTIME 1
  8135. /* Define to 1 if you have the <strings.h> header file. */
  8136. #define HAVE_STRINGS_H 1
  8137. /* Define to 1 if you have the <string.h> header file. */
  8138. #define HAVE_STRING_H 1
  8139. /* Define to 1 if you have the `strrchr' function. */
  8140. #define HAVE_STRRCHR 1
  8141. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  8142. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  8143. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  8144. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  8145. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  8146. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  8147. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  8148. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  8149. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  8150. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  8151. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  8152. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  8153. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  8154. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  8155. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  8156. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  8157. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  8158. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  8159. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  8160. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  8161. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  8162. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  8163. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  8164. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  8165. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  8166. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  8167. /* Define to 1 if you have `struct vfsconf'. */
  8168. /* #undef HAVE_STRUCT_VFSCONF */
  8169. /* Define to 1 if you have `struct xvfsconf'. */
  8170. /* #undef HAVE_STRUCT_XVFSCONF */
  8171. /* Define to 1 if you have the `symlink' function. */
  8172. #define HAVE_SYMLINK 1
  8173. /* Define to 1 if you have the <sys/acl.h> header file. */
  8174. /* #undef HAVE_SYS_ACL_H */
  8175. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  8176. #define HAVE_SYS_CDEFS_H 1
  8177. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  8178. */
  8179. /* #undef HAVE_SYS_DIR_H */
  8180. /* Define to 1 if you have the <sys/ea.h> header file. */
  8181. /* #undef HAVE_SYS_EA_H */
  8182. /* Define to 1 if you have the <sys/extattr.h> header file. */
  8183. /* #undef HAVE_SYS_EXTATTR_H */
  8184. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  8185. #define HAVE_SYS_IOCTL_H 1
  8186. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  8187. /* #undef HAVE_SYS_MKDEV_H */
  8188. /* Define to 1 if you have the <sys/mount.h> header file. */
  8189. /* #undef HAVE_SYS_MOUNT_H */
  8190. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  8191. */
  8192. /* #undef HAVE_SYS_NDIR_H */
  8193. /* Define to 1 if you have the <sys/param.h> header file. */
  8194. #define HAVE_SYS_PARAM_H 1
  8195. /* Define to 1 if you have the <sys/poll.h> header file. */
  8196. #define HAVE_SYS_POLL_H 1
  8197. /* Define to 1 if you have the <sys/richacl.h> header file. */
  8198. /* #undef HAVE_SYS_RICHACL_H */
  8199. /* Define to 1 if you have the <sys/select.h> header file. */
  8200. #define HAVE_SYS_SELECT_H 1
  8201. /* Define to 1 if you have the <sys/statfs.h> header file. */
  8202. #define HAVE_SYS_STATFS_H 1
  8203. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  8204. #define HAVE_SYS_STATVFS_H 1
  8205. /* Define to 1 if you have the <sys/stat.h> header file. */
  8206. #define HAVE_SYS_STAT_H 1
  8207. /* Define to 1 if you have the <sys/time.h> header file. */
  8208. #define HAVE_SYS_TIME_H 1
  8209. /* Define to 1 if you have the <sys/types.h> header file. */
  8210. #define HAVE_SYS_TYPES_H 1
  8211. /* Define to 1 if you have the <sys/utime.h> header file. */
  8212. /* #undef HAVE_SYS_UTIME_H */
  8213. /* Define to 1 if you have the <sys/utsname.h> header file. */
  8214. #define HAVE_SYS_UTSNAME_H 1
  8215. /* Define to 1 if you have the <sys/vfs.h> header file. */
  8216. #define HAVE_SYS_VFS_H 1
  8217. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  8218. #define HAVE_SYS_WAIT_H 1
  8219. /* Define to 1 if you have the <sys/xattr.h> header file. */
  8220. #define HAVE_SYS_XATTR_H 1
  8221. /* Define to 1 if you have the `timegm' function. */
  8222. #define HAVE_TIMEGM 1
  8223. /* Define to 1 if you have the <time.h> header file. */
  8224. #define HAVE_TIME_H 1
  8225. /* Define to 1 if you have the `tzset' function. */
  8226. #define HAVE_TZSET 1
  8227. /* Define to 1 if you have the <unistd.h> header file. */
  8228. #define HAVE_UNISTD_H 1
  8229. /* Define to 1 if you have the `unsetenv' function. */
  8230. #define HAVE_UNSETENV 1
  8231. /* Define to 1 if the system has the type `unsigned long long'. */
  8232. /* #undef HAVE_UNSIGNED_LONG_LONG */
  8233. /* Define to 1 if the system has the type `unsigned long long int'. */
  8234. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  8235. /* Define to 1 if you have the `utime' function. */
  8236. #define HAVE_UTIME 1
  8237. /* Define to 1 if you have the `utimensat' function. */
  8238. #define HAVE_UTIMENSAT 1
  8239. /* Define to 1 if you have the `utimes' function. */
  8240. #define HAVE_UTIMES 1
  8241. /* Define to 1 if you have the <utime.h> header file. */
  8242. #define HAVE_UTIME_H 1
  8243. /* Define to 1 if you have the `vfork' function. */
  8244. #define HAVE_VFORK 1
  8245. /* Define to 1 if you have the `vprintf' function. */
  8246. #define HAVE_VPRINTF 1
  8247. /* Define to 1 if you have the <wchar.h> header file. */
  8248. #define HAVE_WCHAR_H 1
  8249. /* Define to 1 if the system has the type `wchar_t'. */
  8250. #define HAVE_WCHAR_T 1
  8251. /* Define to 1 if you have the `wcrtomb' function. */
  8252. #define HAVE_WCRTOMB 1
  8253. /* Define to 1 if you have the `wcscmp' function. */
  8254. #define HAVE_WCSCMP 1
  8255. /* Define to 1 if you have the `wcscpy' function. */
  8256. #define HAVE_WCSCPY 1
  8257. /* Define to 1 if you have the `wcslen' function. */
  8258. #define HAVE_WCSLEN 1
  8259. /* Define to 1 if you have the `wctomb' function. */
  8260. #define HAVE_WCTOMB 1
  8261. /* Define to 1 if you have the <wctype.h> header file. */
  8262. #define HAVE_WCTYPE_H 1
  8263. /* Define to 1 if you have the <wincrypt.h> header file. */
  8264. /* #undef HAVE_WINCRYPT_H */
  8265. /* Define to 1 if you have the <windows.h> header file. */
  8266. /* #undef HAVE_WINDOWS_H */
  8267. /* Define to 1 if you have the <winioctl.h> header file. */
  8268. /* #undef HAVE_WINIOCTL_H */
  8269. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  8270. /* #undef HAVE__CrtSetReportMode */
  8271. /* Define to 1 if you have the `wmemcmp' function. */
  8272. #define HAVE_WMEMCMP 1
  8273. /* Define to 1 if you have the `wmemcpy' function. */
  8274. #define HAVE_WMEMCPY 1
  8275. /* Define to 1 if you have the `wmemmove' function. */
  8276. #define HAVE_WMEMMOVE 1
  8277. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  8278. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  8279. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  8280. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  8281. /* Define to 1 if you have the <zlib.h> header file. */
  8282. #define HAVE_ZLIB_H 1
  8283. /* Define to 1 if you have the `_ctime64_s' function. */
  8284. /* #undef HAVE__CTIME64_S */
  8285. /* Define to 1 if you have the `_fseeki64' function. */
  8286. /* #undef HAVE__FSEEKI64 */
  8287. /* Define to 1 if you have the `_get_timezone' function. */
  8288. /* #undef HAVE__GET_TIMEZONE */
  8289. /* Define to 1 if you have the `_localtime64_s' function. */
  8290. /* #undef HAVE__LOCALTIME64_S */
  8291. /* Define to 1 if you have the `_mkgmtime64' function. */
  8292. /* #undef HAVE__MKGMTIME64 */
  8293. /* Define as const if the declaration of iconv() needs const. */
  8294. #define ICONV_CONST
  8295. /* Version number of libarchive as a single integer */
  8296. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  8297. /* Version number of libarchive */
  8298. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  8299. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  8300. slash. */
  8301. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  8302. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  8303. */
  8304. /* #undef MAJOR_IN_MKDEV */
  8305. /* Define to 1 if `major', `minor', and `makedev' are declared in
  8306. <sysmacros.h>. */
  8307. #define MAJOR_IN_SYSMACROS 1
  8308. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  8309. /* #undef NO_MINUS_C_MINUS_O */
  8310. /* The size of `wchar_t', as computed by sizeof. */
  8311. #define SIZEOF_WCHAR_T 4
  8312. /* Define to 1 if strerror_r returns char *. */
  8313. /* #undef STRERROR_R_CHAR_P */
  8314. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  8315. #define TIME_WITH_SYS_TIME 1
  8316. /*
  8317. * Some platform requires a macro to use extension functions.
  8318. */
  8319. #define SAFE_TO_DEFINE_EXTENSIONS 1
  8320. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  8321. /* Enable extensions on AIX 3, Interix. */
  8322. #ifndef _ALL_SOURCE
  8323. # define _ALL_SOURCE 1
  8324. #endif
  8325. /* Enable GNU extensions on systems that have them. */
  8326. #ifndef _GNU_SOURCE
  8327. # define _GNU_SOURCE 1
  8328. #endif
  8329. /* Enable threading extensions on Solaris. */
  8330. #ifndef _POSIX_PTHREAD_SEMANTICS
  8331. # define _POSIX_PTHREAD_SEMANTICS 1
  8332. #endif
  8333. /* Enable extensions on HP NonStop. */
  8334. #ifndef _TANDEM_SOURCE
  8335. # define _TANDEM_SOURCE 1
  8336. #endif
  8337. /* Enable general extensions on Solaris. */
  8338. #ifndef __EXTENSIONS__
  8339. # define __EXTENSIONS__ 1
  8340. #endif
  8341. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  8342. /* Version number of package */
  8343. #define VERSION "3.3.2"
  8344. /* Number of bits in a file offset, on hosts where this is settable. */
  8345. /* #undef _FILE_OFFSET_BITS */
  8346. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  8347. /* #undef _LARGEFILE_SOURCE */
  8348. /* Define for large files, on AIX-style hosts. */
  8349. /* #undef _LARGE_FILES */
  8350. /* Define to control Windows SDK version */
  8351. #ifndef NTDDI_VERSION
  8352. /* #undef NTDDI_VERSION */
  8353. #endif // NTDDI_VERSION
  8354. #ifndef _WIN32_WINNT
  8355. /* #undef _WIN32_WINNT */
  8356. #endif // _WIN32_WINNT
  8357. #ifndef WINVER
  8358. /* #undef WINVER */
  8359. #endif // WINVER
  8360. /* Define to empty if `const' does not conform to ANSI C. */
  8361. /* #undef const */
  8362. /* Define to `int' if <sys/types.h> doesn't define. */
  8363. /* #undef gid_t */
  8364. /* Define to `unsigned long' if <sys/types.h> does not define. */
  8365. /* #undef id_t */
  8366. /* Define to `int' if <sys/types.h> does not define. */
  8367. /* #undef mode_t */
  8368. /* Define to `long long' if <sys/types.h> does not define. */
  8369. /* #undef off_t */
  8370. /* Define to `int' if <sys/types.h> doesn't define. */
  8371. /* #undef pid_t */
  8372. /* Define to `unsigned int' if <sys/types.h> does not define. */
  8373. /* #undef size_t */
  8374. /* Define to `int' if <sys/types.h> does not define. */
  8375. /* #undef ssize_t */
  8376. /* Define to `int' if <sys/types.h> doesn't define. */
  8377. /* #undef uid_t */
  8378. /* Define to `int' if <sys/types.h> does not define. */
  8379. /* #undef intptr_t */
  8380. /* Define to `unsigned int' if <sys/types.h> does not define. */
  8381. /* #undef uintptr_t */
  8382. #define ARCHIVE_MD5_COMPILE_TEST
  8383. #define ARCHIVE_CRYPTO_MD5_LIBC
  8384. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  8385. /*-
  8386. * Copyright (c) 2003-2007 Tim Kientzle
  8387. * Copyright (c) 2011 Andres Mejia
  8388. * Copyright (c) 2011 Michihiro NAKAJIMA
  8389. * All rights reserved.
  8390. *
  8391. * Redistribution and use in source and binary forms, with or without
  8392. * modification, are permitted provided that the following conditions
  8393. * are met:
  8394. * 1. Redistributions of source code must retain the above copyright
  8395. * notice, this list of conditions and the following disclaimer.
  8396. * 2. Redistributions in binary form must reproduce the above copyright
  8397. * notice, this list of conditions and the following disclaimer in the
  8398. * documentation and/or other materials provided with the distribution.
  8399. *
  8400. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  8401. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  8402. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  8403. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  8404. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  8405. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  8406. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  8407. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  8408. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  8409. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  8410. */
  8411. #include "archive_platform.h"
  8412. #include "archive.h"
  8413. #include "archive_digest_private.h"
  8414. /* In particular, force the configure probe to break if it tries
  8415. * to test a combination of OpenSSL and libmd. */
  8416. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  8417. #error Cannot use both OpenSSL and libmd.
  8418. #endif
  8419. /*
  8420. * Message digest functions for Windows platform.
  8421. */
  8422. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  8423. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  8424. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  8425. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  8426. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  8427. /*
  8428. * Initialize a Message digest.
  8429. */
  8430. static int
  8431. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  8432. {
  8433. ctx->valid = 0;
  8434. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  8435. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  8436. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  8437. return (ARCHIVE_FAILED);
  8438. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  8439. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  8440. return (ARCHIVE_FAILED);
  8441. }
  8442. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  8443. CryptReleaseContext(ctx->cryptProv, 0);
  8444. return (ARCHIVE_FAILED);
  8445. }
  8446. ctx->valid = 1;
  8447. return (ARCHIVE_OK);
  8448. }
  8449. /*
  8450. * Update a Message digest.
  8451. */
  8452. static int
  8453. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  8454. {
  8455. if (!ctx->valid)
  8456. return (ARCHIVE_FAILED);
  8457. CryptHashData(ctx->hash,
  8458. (unsigned char *)(uintptr_t)buf,
  8459. (DWORD)len, 0);
  8460. return (ARCHIVE_OK);
  8461. }
  8462. static int
  8463. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  8464. {
  8465. DWORD siglen = (DWORD)bufsize;
  8466. if (!ctx->valid)
  8467. return (ARCHIVE_FAILED);
  8468. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  8469. CryptDestroyHash(ctx->hash);
  8470. CryptReleaseContext(ctx->cryptProv, 0);
  8471. ctx->valid = 0;
  8472. return (ARCHIVE_OK);
  8473. }
  8474. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  8475. /* MD5 implementations */
  8476. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  8477. static int
  8478. __archive_libc_md5init(archive_md5_ctx *ctx)
  8479. {
  8480. MD5Init(ctx);
  8481. return (ARCHIVE_OK);
  8482. }
  8483. static int
  8484. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  8485. size_t insize)
  8486. {
  8487. MD5Update(ctx, indata, insize);
  8488. return (ARCHIVE_OK);
  8489. }
  8490. static int
  8491. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  8492. {
  8493. MD5Final(md, ctx);
  8494. return (ARCHIVE_OK);
  8495. }
  8496. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  8497. static int
  8498. __archive_libmd_md5init(archive_md5_ctx *ctx)
  8499. {
  8500. MD5Init(ctx);
  8501. return (ARCHIVE_OK);
  8502. }
  8503. static int
  8504. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  8505. size_t insize)
  8506. {
  8507. MD5Update(ctx, indata, insize);
  8508. return (ARCHIVE_OK);
  8509. }
  8510. static int
  8511. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  8512. {
  8513. MD5Final(md, ctx);
  8514. return (ARCHIVE_OK);
  8515. }
  8516. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  8517. static int
  8518. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  8519. {
  8520. CC_MD5_Init(ctx);
  8521. return (ARCHIVE_OK);
  8522. }
  8523. static int
  8524. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  8525. size_t insize)
  8526. {
  8527. CC_MD5_Update(ctx, indata, insize);
  8528. return (ARCHIVE_OK);
  8529. }
  8530. static int
  8531. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  8532. {
  8533. CC_MD5_Final(md, ctx);
  8534. return (ARCHIVE_OK);
  8535. }
  8536. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  8537. static int
  8538. __archive_nettle_md5init(archive_md5_ctx *ctx)
  8539. {
  8540. md5_init(ctx);
  8541. return (ARCHIVE_OK);
  8542. }
  8543. static int
  8544. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  8545. size_t insize)
  8546. {
  8547. md5_update(ctx, insize, indata);
  8548. return (ARCHIVE_OK);
  8549. }
  8550. static int
  8551. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  8552. {
  8553. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  8554. return (ARCHIVE_OK);
  8555. }
  8556. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  8557. static int
  8558. __archive_openssl_md5init(archive_md5_ctx *ctx)
  8559. {
  8560. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  8561. return (ARCHIVE_FAILED);
  8562. EVP_DigestInit(*ctx, EVP_md5());
  8563. return (ARCHIVE_OK);
  8564. }
  8565. static int
  8566. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  8567. size_t insize)
  8568. {
  8569. EVP_DigestUpdate(*ctx, indata, insize);
  8570. return (ARCHIVE_OK);
  8571. }
  8572. static int
  8573. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  8574. {
  8575. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  8576. * this is meant to cope with that. Real fix is probably to fix
  8577. * archive_write_set_format_xar.c
  8578. */
  8579. if (*ctx) {
  8580. EVP_DigestFinal(*ctx, md, NULL);
  8581. EVP_MD_CTX_free(*ctx);
  8582. *ctx = NULL;
  8583. }
  8584. return (ARCHIVE_OK);
  8585. }
  8586. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  8587. static int
  8588. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  8589. {
  8590. return (win_crypto_init(ctx, CALG_MD5));
  8591. }
  8592. static int
  8593. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  8594. size_t insize)
  8595. {
  8596. return (win_crypto_Update(ctx, indata, insize));
  8597. }
  8598. static int
  8599. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  8600. {
  8601. return (win_crypto_Final(md, 16, ctx));
  8602. }
  8603. #else
  8604. static int
  8605. __archive_stub_md5init(archive_md5_ctx *ctx)
  8606. {
  8607. (void)ctx; /* UNUSED */
  8608. return (ARCHIVE_FAILED);
  8609. }
  8610. static int
  8611. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  8612. size_t insize)
  8613. {
  8614. (void)ctx; /* UNUSED */
  8615. (void)indata; /* UNUSED */
  8616. (void)insize; /* UNUSED */
  8617. return (ARCHIVE_FAILED);
  8618. }
  8619. static int
  8620. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  8621. {
  8622. (void)ctx; /* UNUSED */
  8623. (void)md; /* UNUSED */
  8624. return (ARCHIVE_FAILED);
  8625. }
  8626. #endif
  8627. /* RIPEMD160 implementations */
  8628. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  8629. static int
  8630. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  8631. {
  8632. RMD160Init(ctx);
  8633. return (ARCHIVE_OK);
  8634. }
  8635. static int
  8636. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  8637. size_t insize)
  8638. {
  8639. RMD160Update(ctx, indata, insize);
  8640. return (ARCHIVE_OK);
  8641. }
  8642. static int
  8643. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  8644. {
  8645. RMD160Final(md, ctx);
  8646. return (ARCHIVE_OK);
  8647. }
  8648. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  8649. static int
  8650. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  8651. {
  8652. RIPEMD160_Init(ctx);
  8653. return (ARCHIVE_OK);
  8654. }
  8655. static int
  8656. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  8657. size_t insize)
  8658. {
  8659. RIPEMD160_Update(ctx, indata, insize);
  8660. return (ARCHIVE_OK);
  8661. }
  8662. static int
  8663. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  8664. {
  8665. RIPEMD160_Final(md, ctx);
  8666. return (ARCHIVE_OK);
  8667. }
  8668. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  8669. static int
  8670. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  8671. {
  8672. ripemd160_init(ctx);
  8673. return (ARCHIVE_OK);
  8674. }
  8675. static int
  8676. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  8677. size_t insize)
  8678. {
  8679. ripemd160_update(ctx, insize, indata);
  8680. return (ARCHIVE_OK);
  8681. }
  8682. static int
  8683. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  8684. {
  8685. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  8686. return (ARCHIVE_OK);
  8687. }
  8688. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  8689. static int
  8690. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  8691. {
  8692. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  8693. return (ARCHIVE_FAILED);
  8694. EVP_DigestInit(*ctx, EVP_ripemd160());
  8695. return (ARCHIVE_OK);
  8696. }
  8697. static int
  8698. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  8699. size_t insize)
  8700. {
  8701. EVP_DigestUpdate(*ctx, indata, insize);
  8702. return (ARCHIVE_OK);
  8703. }
  8704. static int
  8705. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  8706. {
  8707. if (*ctx) {
  8708. EVP_DigestFinal(*ctx, md, NULL);
  8709. EVP_MD_CTX_free(*ctx);
  8710. *ctx = NULL;
  8711. }
  8712. return (ARCHIVE_OK);
  8713. }
  8714. #else
  8715. static int
  8716. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  8717. {
  8718. (void)ctx; /* UNUSED */
  8719. return (ARCHIVE_FAILED);
  8720. }
  8721. static int
  8722. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  8723. size_t insize)
  8724. {
  8725. (void)ctx; /* UNUSED */
  8726. (void)indata; /* UNUSED */
  8727. (void)insize; /* UNUSED */
  8728. return (ARCHIVE_FAILED);
  8729. }
  8730. static int
  8731. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  8732. {
  8733. (void)ctx; /* UNUSED */
  8734. (void)md; /* UNUSED */
  8735. return (ARCHIVE_FAILED);
  8736. }
  8737. #endif
  8738. /* SHA1 implementations */
  8739. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  8740. static int
  8741. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  8742. {
  8743. SHA1Init(ctx);
  8744. return (ARCHIVE_OK);
  8745. }
  8746. static int
  8747. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  8748. size_t insize)
  8749. {
  8750. SHA1Update(ctx, indata, insize);
  8751. return (ARCHIVE_OK);
  8752. }
  8753. static int
  8754. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  8755. {
  8756. SHA1Final(md, ctx);
  8757. return (ARCHIVE_OK);
  8758. }
  8759. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  8760. static int
  8761. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  8762. {
  8763. SHA1_Init(ctx);
  8764. return (ARCHIVE_OK);
  8765. }
  8766. static int
  8767. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  8768. size_t insize)
  8769. {
  8770. SHA1_Update(ctx, indata, insize);
  8771. return (ARCHIVE_OK);
  8772. }
  8773. static int
  8774. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  8775. {
  8776. SHA1_Final(md, ctx);
  8777. return (ARCHIVE_OK);
  8778. }
  8779. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  8780. static int
  8781. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  8782. {
  8783. CC_SHA1_Init(ctx);
  8784. return (ARCHIVE_OK);
  8785. }
  8786. static int
  8787. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  8788. size_t insize)
  8789. {
  8790. CC_SHA1_Update(ctx, indata, insize);
  8791. return (ARCHIVE_OK);
  8792. }
  8793. static int
  8794. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  8795. {
  8796. CC_SHA1_Final(md, ctx);
  8797. return (ARCHIVE_OK);
  8798. }
  8799. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  8800. static int
  8801. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  8802. {
  8803. sha1_init(ctx);
  8804. return (ARCHIVE_OK);
  8805. }
  8806. static int
  8807. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  8808. size_t insize)
  8809. {
  8810. sha1_update(ctx, insize, indata);
  8811. return (ARCHIVE_OK);
  8812. }
  8813. static int
  8814. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  8815. {
  8816. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  8817. return (ARCHIVE_OK);
  8818. }
  8819. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  8820. static int
  8821. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  8822. {
  8823. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  8824. return (ARCHIVE_FAILED);
  8825. EVP_DigestInit(*ctx, EVP_sha1());
  8826. return (ARCHIVE_OK);
  8827. }
  8828. static int
  8829. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  8830. size_t insize)
  8831. {
  8832. EVP_DigestUpdate(*ctx, indata, insize);
  8833. return (ARCHIVE_OK);
  8834. }
  8835. static int
  8836. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  8837. {
  8838. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  8839. * this is meant to cope with that. Real fix is probably to fix
  8840. * archive_write_set_format_xar.c
  8841. */
  8842. if (*ctx) {
  8843. EVP_DigestFinal(*ctx, md, NULL);
  8844. EVP_MD_CTX_free(*ctx);
  8845. *ctx = NULL;
  8846. }
  8847. return (ARCHIVE_OK);
  8848. }
  8849. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  8850. static int
  8851. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  8852. {
  8853. return (win_crypto_init(ctx, CALG_SHA1));
  8854. }
  8855. static int
  8856. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  8857. size_t insize)
  8858. {
  8859. return (win_crypto_Update(ctx, indata, insize));
  8860. }
  8861. static int
  8862. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  8863. {
  8864. return (win_crypto_Final(md, 20, ctx));
  8865. }
  8866. #else
  8867. static int
  8868. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  8869. {
  8870. (void)ctx; /* UNUSED */
  8871. return (ARCHIVE_FAILED);
  8872. }
  8873. static int
  8874. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  8875. size_t insize)
  8876. {
  8877. (void)ctx; /* UNUSED */
  8878. (void)indata; /* UNUSED */
  8879. (void)insize; /* UNUSED */
  8880. return (ARCHIVE_FAILED);
  8881. }
  8882. static int
  8883. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  8884. {
  8885. (void)ctx; /* UNUSED */
  8886. (void)md; /* UNUSED */
  8887. return (ARCHIVE_FAILED);
  8888. }
  8889. #endif
  8890. /* SHA256 implementations */
  8891. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  8892. static int
  8893. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  8894. {
  8895. SHA256_Init(ctx);
  8896. return (ARCHIVE_OK);
  8897. }
  8898. static int
  8899. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  8900. size_t insize)
  8901. {
  8902. SHA256_Update(ctx, indata, insize);
  8903. return (ARCHIVE_OK);
  8904. }
  8905. static int
  8906. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  8907. {
  8908. SHA256_Final(md, ctx);
  8909. return (ARCHIVE_OK);
  8910. }
  8911. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  8912. static int
  8913. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  8914. {
  8915. SHA256Init(ctx);
  8916. return (ARCHIVE_OK);
  8917. }
  8918. static int
  8919. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  8920. size_t insize)
  8921. {
  8922. SHA256Update(ctx, indata, insize);
  8923. return (ARCHIVE_OK);
  8924. }
  8925. static int
  8926. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  8927. {
  8928. SHA256Final(md, ctx);
  8929. return (ARCHIVE_OK);
  8930. }
  8931. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  8932. static int
  8933. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  8934. {
  8935. SHA256Init(ctx);
  8936. return (ARCHIVE_OK);
  8937. }
  8938. static int
  8939. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  8940. size_t insize)
  8941. {
  8942. SHA256Update(ctx, indata, insize);
  8943. return (ARCHIVE_OK);
  8944. }
  8945. static int
  8946. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  8947. {
  8948. SHA256Final(md, ctx);
  8949. return (ARCHIVE_OK);
  8950. }
  8951. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  8952. static int
  8953. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  8954. {
  8955. SHA256_Init(ctx);
  8956. return (ARCHIVE_OK);
  8957. }
  8958. static int
  8959. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  8960. size_t insize)
  8961. {
  8962. SHA256_Update(ctx, indata, insize);
  8963. return (ARCHIVE_OK);
  8964. }
  8965. static int
  8966. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  8967. {
  8968. SHA256_Final(md, ctx);
  8969. return (ARCHIVE_OK);
  8970. }
  8971. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  8972. static int
  8973. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  8974. {
  8975. CC_SHA256_Init(ctx);
  8976. return (ARCHIVE_OK);
  8977. }
  8978. static int
  8979. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  8980. size_t insize)
  8981. {
  8982. CC_SHA256_Update(ctx, indata, insize);
  8983. return (ARCHIVE_OK);
  8984. }
  8985. static int
  8986. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  8987. {
  8988. CC_SHA256_Final(md, ctx);
  8989. return (ARCHIVE_OK);
  8990. }
  8991. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  8992. static int
  8993. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  8994. {
  8995. sha256_init(ctx);
  8996. return (ARCHIVE_OK);
  8997. }
  8998. static int
  8999. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  9000. size_t insize)
  9001. {
  9002. sha256_update(ctx, insize, indata);
  9003. return (ARCHIVE_OK);
  9004. }
  9005. static int
  9006. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  9007. {
  9008. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  9009. return (ARCHIVE_OK);
  9010. }
  9011. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  9012. static int
  9013. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  9014. {
  9015. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  9016. return (ARCHIVE_FAILED);
  9017. EVP_DigestInit(*ctx, EVP_sha256());
  9018. return (ARCHIVE_OK);
  9019. }
  9020. static int
  9021. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  9022. size_t insize)
  9023. {
  9024. EVP_DigestUpdate(*ctx, indata, insize);
  9025. return (ARCHIVE_OK);
  9026. }
  9027. static int
  9028. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  9029. {
  9030. if (*ctx) {
  9031. EVP_DigestFinal(*ctx, md, NULL);
  9032. EVP_MD_CTX_free(*ctx);
  9033. *ctx = NULL;
  9034. }
  9035. return (ARCHIVE_OK);
  9036. }
  9037. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  9038. static int
  9039. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  9040. {
  9041. return (win_crypto_init(ctx, CALG_SHA_256));
  9042. }
  9043. static int
  9044. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  9045. size_t insize)
  9046. {
  9047. return (win_crypto_Update(ctx, indata, insize));
  9048. }
  9049. static int
  9050. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  9051. {
  9052. return (win_crypto_Final(md, 32, ctx));
  9053. }
  9054. #else
  9055. static int
  9056. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  9057. {
  9058. (void)ctx; /* UNUSED */
  9059. return (ARCHIVE_FAILED);
  9060. }
  9061. static int
  9062. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  9063. size_t insize)
  9064. {
  9065. (void)ctx; /* UNUSED */
  9066. (void)indata; /* UNUSED */
  9067. (void)insize; /* UNUSED */
  9068. return (ARCHIVE_FAILED);
  9069. }
  9070. static int
  9071. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  9072. {
  9073. (void)ctx; /* UNUSED */
  9074. (void)md; /* UNUSED */
  9075. return (ARCHIVE_FAILED);
  9076. }
  9077. #endif
  9078. /* SHA384 implementations */
  9079. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  9080. static int
  9081. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  9082. {
  9083. SHA384_Init(ctx);
  9084. return (ARCHIVE_OK);
  9085. }
  9086. static int
  9087. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  9088. size_t insize)
  9089. {
  9090. SHA384_Update(ctx, indata, insize);
  9091. return (ARCHIVE_OK);
  9092. }
  9093. static int
  9094. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  9095. {
  9096. SHA384_Final(md, ctx);
  9097. return (ARCHIVE_OK);
  9098. }
  9099. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  9100. static int
  9101. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  9102. {
  9103. SHA384Init(ctx);
  9104. return (ARCHIVE_OK);
  9105. }
  9106. static int
  9107. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  9108. size_t insize)
  9109. {
  9110. SHA384Update(ctx, indata, insize);
  9111. return (ARCHIVE_OK);
  9112. }
  9113. static int
  9114. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  9115. {
  9116. SHA384Final(md, ctx);
  9117. return (ARCHIVE_OK);
  9118. }
  9119. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  9120. static int
  9121. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  9122. {
  9123. SHA384Init(ctx);
  9124. return (ARCHIVE_OK);
  9125. }
  9126. static int
  9127. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  9128. size_t insize)
  9129. {
  9130. SHA384Update(ctx, indata, insize);
  9131. return (ARCHIVE_OK);
  9132. }
  9133. static int
  9134. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  9135. {
  9136. SHA384Final(md, ctx);
  9137. return (ARCHIVE_OK);
  9138. }
  9139. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  9140. static int
  9141. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  9142. {
  9143. CC_SHA384_Init(ctx);
  9144. return (ARCHIVE_OK);
  9145. }
  9146. static int
  9147. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  9148. size_t insize)
  9149. {
  9150. CC_SHA384_Update(ctx, indata, insize);
  9151. return (ARCHIVE_OK);
  9152. }
  9153. static int
  9154. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  9155. {
  9156. CC_SHA384_Final(md, ctx);
  9157. return (ARCHIVE_OK);
  9158. }
  9159. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  9160. static int
  9161. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  9162. {
  9163. sha384_init(ctx);
  9164. return (ARCHIVE_OK);
  9165. }
  9166. static int
  9167. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  9168. size_t insize)
  9169. {
  9170. sha384_update(ctx, insize, indata);
  9171. return (ARCHIVE_OK);
  9172. }
  9173. static int
  9174. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  9175. {
  9176. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  9177. return (ARCHIVE_OK);
  9178. }
  9179. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  9180. static int
  9181. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  9182. {
  9183. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  9184. return (ARCHIVE_FAILED);
  9185. EVP_DigestInit(*ctx, EVP_sha384());
  9186. return (ARCHIVE_OK);
  9187. }
  9188. static int
  9189. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  9190. size_t insize)
  9191. {
  9192. EVP_DigestUpdate(*ctx, indata, insize);
  9193. return (ARCHIVE_OK);
  9194. }
  9195. static int
  9196. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  9197. {
  9198. if (*ctx) {
  9199. EVP_DigestFinal(*ctx, md, NULL);
  9200. EVP_MD_CTX_free(*ctx);
  9201. *ctx = NULL;
  9202. }
  9203. return (ARCHIVE_OK);
  9204. }
  9205. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  9206. static int
  9207. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  9208. {
  9209. return (win_crypto_init(ctx, CALG_SHA_384));
  9210. }
  9211. static int
  9212. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  9213. size_t insize)
  9214. {
  9215. return (win_crypto_Update(ctx, indata, insize));
  9216. }
  9217. static int
  9218. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  9219. {
  9220. return (win_crypto_Final(md, 48, ctx));
  9221. }
  9222. #else
  9223. static int
  9224. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  9225. {
  9226. (void)ctx; /* UNUSED */
  9227. return (ARCHIVE_FAILED);
  9228. }
  9229. static int
  9230. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  9231. size_t insize)
  9232. {
  9233. (void)ctx; /* UNUSED */
  9234. (void)indata; /* UNUSED */
  9235. (void)insize; /* UNUSED */
  9236. return (ARCHIVE_FAILED);
  9237. }
  9238. static int
  9239. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  9240. {
  9241. (void)ctx; /* UNUSED */
  9242. (void)md; /* UNUSED */
  9243. return (ARCHIVE_FAILED);
  9244. }
  9245. #endif
  9246. /* SHA512 implementations */
  9247. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  9248. static int
  9249. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  9250. {
  9251. SHA512_Init(ctx);
  9252. return (ARCHIVE_OK);
  9253. }
  9254. static int
  9255. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  9256. size_t insize)
  9257. {
  9258. SHA512_Update(ctx, indata, insize);
  9259. return (ARCHIVE_OK);
  9260. }
  9261. static int
  9262. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  9263. {
  9264. SHA512_Final(md, ctx);
  9265. return (ARCHIVE_OK);
  9266. }
  9267. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  9268. static int
  9269. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  9270. {
  9271. SHA512Init(ctx);
  9272. return (ARCHIVE_OK);
  9273. }
  9274. static int
  9275. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  9276. size_t insize)
  9277. {
  9278. SHA512Update(ctx, indata, insize);
  9279. return (ARCHIVE_OK);
  9280. }
  9281. static int
  9282. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  9283. {
  9284. SHA512Final(md, ctx);
  9285. return (ARCHIVE_OK);
  9286. }
  9287. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  9288. static int
  9289. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  9290. {
  9291. SHA512Init(ctx);
  9292. return (ARCHIVE_OK);
  9293. }
  9294. static int
  9295. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  9296. size_t insize)
  9297. {
  9298. SHA512Update(ctx, indata, insize);
  9299. return (ARCHIVE_OK);
  9300. }
  9301. static int
  9302. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  9303. {
  9304. SHA512Final(md, ctx);
  9305. return (ARCHIVE_OK);
  9306. }
  9307. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  9308. static int
  9309. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  9310. {
  9311. SHA512_Init(ctx);
  9312. return (ARCHIVE_OK);
  9313. }
  9314. static int
  9315. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  9316. size_t insize)
  9317. {
  9318. SHA512_Update(ctx, indata, insize);
  9319. return (ARCHIVE_OK);
  9320. }
  9321. static int
  9322. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  9323. {
  9324. SHA512_Final(md, ctx);
  9325. return (ARCHIVE_OK);
  9326. }
  9327. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  9328. static int
  9329. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  9330. {
  9331. CC_SHA512_Init(ctx);
  9332. return (ARCHIVE_OK);
  9333. }
  9334. static int
  9335. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  9336. size_t insize)
  9337. {
  9338. CC_SHA512_Update(ctx, indata, insize);
  9339. return (ARCHIVE_OK);
  9340. }
  9341. static int
  9342. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  9343. {
  9344. CC_SHA512_Final(md, ctx);
  9345. return (ARCHIVE_OK);
  9346. }
  9347. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  9348. static int
  9349. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  9350. {
  9351. sha512_init(ctx);
  9352. return (ARCHIVE_OK);
  9353. }
  9354. static int
  9355. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  9356. size_t insize)
  9357. {
  9358. sha512_update(ctx, insize, indata);
  9359. return (ARCHIVE_OK);
  9360. }
  9361. static int
  9362. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  9363. {
  9364. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  9365. return (ARCHIVE_OK);
  9366. }
  9367. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  9368. static int
  9369. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  9370. {
  9371. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  9372. return (ARCHIVE_FAILED);
  9373. EVP_DigestInit(*ctx, EVP_sha512());
  9374. return (ARCHIVE_OK);
  9375. }
  9376. static int
  9377. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  9378. size_t insize)
  9379. {
  9380. EVP_DigestUpdate(*ctx, indata, insize);
  9381. return (ARCHIVE_OK);
  9382. }
  9383. static int
  9384. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  9385. {
  9386. if (*ctx) {
  9387. EVP_DigestFinal(*ctx, md, NULL);
  9388. EVP_MD_CTX_free(*ctx);
  9389. *ctx = NULL;
  9390. }
  9391. return (ARCHIVE_OK);
  9392. }
  9393. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  9394. static int
  9395. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  9396. {
  9397. return (win_crypto_init(ctx, CALG_SHA_512));
  9398. }
  9399. static int
  9400. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  9401. size_t insize)
  9402. {
  9403. return (win_crypto_Update(ctx, indata, insize));
  9404. }
  9405. static int
  9406. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  9407. {
  9408. return (win_crypto_Final(md, 64, ctx));
  9409. }
  9410. #else
  9411. static int
  9412. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  9413. {
  9414. (void)ctx; /* UNUSED */
  9415. return (ARCHIVE_FAILED);
  9416. }
  9417. static int
  9418. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  9419. size_t insize)
  9420. {
  9421. (void)ctx; /* UNUSED */
  9422. (void)indata; /* UNUSED */
  9423. (void)insize; /* UNUSED */
  9424. return (ARCHIVE_FAILED);
  9425. }
  9426. static int
  9427. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  9428. {
  9429. (void)ctx; /* UNUSED */
  9430. (void)md; /* UNUSED */
  9431. return (ARCHIVE_FAILED);
  9432. }
  9433. #endif
  9434. /* NOTE: Message Digest functions are set based on availability and by the
  9435. * following order of preference.
  9436. * 1. libc
  9437. * 2. libc2
  9438. * 3. libc3
  9439. * 4. libSystem
  9440. * 5. Nettle
  9441. * 6. OpenSSL
  9442. * 7. libmd
  9443. * 8. Windows API
  9444. */
  9445. const struct archive_digest __archive_digest =
  9446. {
  9447. /* MD5 */
  9448. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  9449. &__archive_libc_md5init,
  9450. &__archive_libc_md5update,
  9451. &__archive_libc_md5final,
  9452. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  9453. &__archive_libmd_md5init,
  9454. &__archive_libmd_md5update,
  9455. &__archive_libmd_md5final,
  9456. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  9457. &__archive_libsystem_md5init,
  9458. &__archive_libsystem_md5update,
  9459. &__archive_libsystem_md5final,
  9460. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  9461. &__archive_nettle_md5init,
  9462. &__archive_nettle_md5update,
  9463. &__archive_nettle_md5final,
  9464. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  9465. &__archive_openssl_md5init,
  9466. &__archive_openssl_md5update,
  9467. &__archive_openssl_md5final,
  9468. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  9469. &__archive_windowsapi_md5init,
  9470. &__archive_windowsapi_md5update,
  9471. &__archive_windowsapi_md5final,
  9472. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  9473. &__archive_stub_md5init,
  9474. &__archive_stub_md5update,
  9475. &__archive_stub_md5final,
  9476. #endif
  9477. /* RIPEMD160 */
  9478. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  9479. &__archive_libc_ripemd160init,
  9480. &__archive_libc_ripemd160update,
  9481. &__archive_libc_ripemd160final,
  9482. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  9483. &__archive_libmd_ripemd160init,
  9484. &__archive_libmd_ripemd160update,
  9485. &__archive_libmd_ripemd160final,
  9486. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  9487. &__archive_nettle_ripemd160init,
  9488. &__archive_nettle_ripemd160update,
  9489. &__archive_nettle_ripemd160final,
  9490. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  9491. &__archive_openssl_ripemd160init,
  9492. &__archive_openssl_ripemd160update,
  9493. &__archive_openssl_ripemd160final,
  9494. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  9495. &__archive_stub_ripemd160init,
  9496. &__archive_stub_ripemd160update,
  9497. &__archive_stub_ripemd160final,
  9498. #endif
  9499. /* SHA1 */
  9500. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  9501. &__archive_libc_sha1init,
  9502. &__archive_libc_sha1update,
  9503. &__archive_libc_sha1final,
  9504. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  9505. &__archive_libmd_sha1init,
  9506. &__archive_libmd_sha1update,
  9507. &__archive_libmd_sha1final,
  9508. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  9509. &__archive_libsystem_sha1init,
  9510. &__archive_libsystem_sha1update,
  9511. &__archive_libsystem_sha1final,
  9512. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  9513. &__archive_nettle_sha1init,
  9514. &__archive_nettle_sha1update,
  9515. &__archive_nettle_sha1final,
  9516. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  9517. &__archive_openssl_sha1init,
  9518. &__archive_openssl_sha1update,
  9519. &__archive_openssl_sha1final,
  9520. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  9521. &__archive_windowsapi_sha1init,
  9522. &__archive_windowsapi_sha1update,
  9523. &__archive_windowsapi_sha1final,
  9524. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  9525. &__archive_stub_sha1init,
  9526. &__archive_stub_sha1update,
  9527. &__archive_stub_sha1final,
  9528. #endif
  9529. /* SHA256 */
  9530. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  9531. &__archive_libc_sha256init,
  9532. &__archive_libc_sha256update,
  9533. &__archive_libc_sha256final,
  9534. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  9535. &__archive_libc2_sha256init,
  9536. &__archive_libc2_sha256update,
  9537. &__archive_libc2_sha256final,
  9538. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  9539. &__archive_libc3_sha256init,
  9540. &__archive_libc3_sha256update,
  9541. &__archive_libc3_sha256final,
  9542. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  9543. &__archive_libmd_sha256init,
  9544. &__archive_libmd_sha256update,
  9545. &__archive_libmd_sha256final,
  9546. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  9547. &__archive_libsystem_sha256init,
  9548. &__archive_libsystem_sha256update,
  9549. &__archive_libsystem_sha256final,
  9550. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  9551. &__archive_nettle_sha256init,
  9552. &__archive_nettle_sha256update,
  9553. &__archive_nettle_sha256final,
  9554. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  9555. &__archive_openssl_sha256init,
  9556. &__archive_openssl_sha256update,
  9557. &__archive_openssl_sha256final,
  9558. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  9559. &__archive_windowsapi_sha256init,
  9560. &__archive_windowsapi_sha256update,
  9561. &__archive_windowsapi_sha256final,
  9562. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  9563. &__archive_stub_sha256init,
  9564. &__archive_stub_sha256update,
  9565. &__archive_stub_sha256final,
  9566. #endif
  9567. /* SHA384 */
  9568. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  9569. &__archive_libc_sha384init,
  9570. &__archive_libc_sha384update,
  9571. &__archive_libc_sha384final,
  9572. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  9573. &__archive_libc2_sha384init,
  9574. &__archive_libc2_sha384update,
  9575. &__archive_libc2_sha384final,
  9576. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  9577. &__archive_libc3_sha384init,
  9578. &__archive_libc3_sha384update,
  9579. &__archive_libc3_sha384final,
  9580. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  9581. &__archive_libsystem_sha384init,
  9582. &__archive_libsystem_sha384update,
  9583. &__archive_libsystem_sha384final,
  9584. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  9585. &__archive_nettle_sha384init,
  9586. &__archive_nettle_sha384update,
  9587. &__archive_nettle_sha384final,
  9588. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  9589. &__archive_openssl_sha384init,
  9590. &__archive_openssl_sha384update,
  9591. &__archive_openssl_sha384final,
  9592. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  9593. &__archive_windowsapi_sha384init,
  9594. &__archive_windowsapi_sha384update,
  9595. &__archive_windowsapi_sha384final,
  9596. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  9597. &__archive_stub_sha384init,
  9598. &__archive_stub_sha384update,
  9599. &__archive_stub_sha384final,
  9600. #endif
  9601. /* SHA512 */
  9602. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  9603. &__archive_libc_sha512init,
  9604. &__archive_libc_sha512update,
  9605. &__archive_libc_sha512final
  9606. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  9607. &__archive_libc2_sha512init,
  9608. &__archive_libc2_sha512update,
  9609. &__archive_libc2_sha512final
  9610. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  9611. &__archive_libc3_sha512init,
  9612. &__archive_libc3_sha512update,
  9613. &__archive_libc3_sha512final
  9614. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  9615. &__archive_libmd_sha512init,
  9616. &__archive_libmd_sha512update,
  9617. &__archive_libmd_sha512final
  9618. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  9619. &__archive_libsystem_sha512init,
  9620. &__archive_libsystem_sha512update,
  9621. &__archive_libsystem_sha512final
  9622. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  9623. &__archive_nettle_sha512init,
  9624. &__archive_nettle_sha512update,
  9625. &__archive_nettle_sha512final
  9626. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  9627. &__archive_openssl_sha512init,
  9628. &__archive_openssl_sha512update,
  9629. &__archive_openssl_sha512final
  9630. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  9631. &__archive_windowsapi_sha512init,
  9632. &__archive_windowsapi_sha512update,
  9633. &__archive_windowsapi_sha512final
  9634. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  9635. &__archive_stub_sha512init,
  9636. &__archive_stub_sha512update,
  9637. &__archive_stub_sha512final
  9638. #endif
  9639. };
  9640. int
  9641. main(int argc, char **argv)
  9642. {
  9643. archive_md5_ctx ctx;
  9644. archive_md5_init(&ctx);
  9645. archive_md5_update(&ctx, *argv, argc);
  9646. archive_md5_final(&ctx, NULL);
  9647. return 0;
  9648. }
  9649. Checking support for ARCHIVE_CRYPTO_RMD160_LIBC failed with the following output:
  9650. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  9651. Run Build Command:"/usr/bin/make" "cmTC_e8ebb/fast"
  9652. make -f CMakeFiles/cmTC_e8ebb.dir/build.make CMakeFiles/cmTC_e8ebb.dir/build
  9653. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  9654. Building C object CMakeFiles/cmTC_e8ebb.dir/check_crypto_md.c.o
  9655. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_e8ebb.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  9656. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  9657. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:64:20: fatal error: rmd160.h: No such file or directory
  9658. compilation terminated.
  9659. CMakeFiles/cmTC_e8ebb.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_e8ebb.dir/check_crypto_md.c.o' failed
  9660. make[1]: *** [CMakeFiles/cmTC_e8ebb.dir/check_crypto_md.c.o] Error 1
  9661. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  9662. Makefile:126: recipe for target 'cmTC_e8ebb/fast' failed
  9663. make: *** [cmTC_e8ebb/fast] Error 2
  9664. Source file was:
  9665. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  9666. #if defined(__osf__)
  9667. # define _OSF_SOURCE
  9668. #endif
  9669. /*
  9670. * Ensure we have C99-style int64_t, etc, all defined.
  9671. */
  9672. /* First, we need to know if the system has already defined them. */
  9673. #define HAVE_INT16_T
  9674. #define HAVE_INT32_T
  9675. #define HAVE_INT64_T
  9676. #define HAVE_INTMAX_T
  9677. #define HAVE_UINT8_T
  9678. #define HAVE_UINT16_T
  9679. #define HAVE_UINT32_T
  9680. #define HAVE_UINT64_T
  9681. #define HAVE_UINTMAX_T
  9682. /* We might have the types we want under other spellings. */
  9683. /* #undef HAVE___INT64 */
  9684. /* #undef HAVE_U_INT64_T */
  9685. /* #undef HAVE_UNSIGNED___INT64 */
  9686. /* The sizes of various standard integer types. */
  9687. #define SIZE_OF_SHORT 2
  9688. #define SIZE_OF_INT 4
  9689. #define SIZE_OF_LONG 8
  9690. #define SIZE_OF_LONG_LONG 8
  9691. #define SIZE_OF_UNSIGNED_SHORT 2
  9692. #define SIZE_OF_UNSIGNED 4
  9693. #define SIZE_OF_UNSIGNED_LONG 8
  9694. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  9695. /*
  9696. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  9697. * that exists and is the right size.
  9698. */
  9699. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  9700. typedef __int64 int64_t;
  9701. #define HAVE_INT64_T
  9702. #endif
  9703. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  9704. typedef int int64_t;
  9705. #define HAVE_INT64_T
  9706. #endif
  9707. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  9708. typedef long int64_t;
  9709. #define HAVE_INT64_T
  9710. #endif
  9711. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  9712. typedef long long int64_t;
  9713. #define HAVE_INT64_T
  9714. #endif
  9715. #if !defined(HAVE_INT64_T)
  9716. #error No 64-bit integer type was found.
  9717. #endif
  9718. /*
  9719. * Similarly for int32_t
  9720. */
  9721. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  9722. typedef int int32_t;
  9723. #define HAVE_INT32_T
  9724. #endif
  9725. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  9726. typedef long int32_t;
  9727. #define HAVE_INT32_T
  9728. #endif
  9729. #if !defined(HAVE_INT32_T)
  9730. #error No 32-bit integer type was found.
  9731. #endif
  9732. /*
  9733. * Similarly for int16_t
  9734. */
  9735. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  9736. typedef int int16_t;
  9737. #define HAVE_INT16_T
  9738. #endif
  9739. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  9740. typedef short int16_t;
  9741. #define HAVE_INT16_T
  9742. #endif
  9743. #if !defined(HAVE_INT16_T)
  9744. #error No 16-bit integer type was found.
  9745. #endif
  9746. /*
  9747. * Similarly for uint64_t
  9748. */
  9749. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  9750. typedef unsigned __int64 uint64_t;
  9751. #define HAVE_UINT64_T
  9752. #endif
  9753. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  9754. typedef unsigned uint64_t;
  9755. #define HAVE_UINT64_T
  9756. #endif
  9757. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  9758. typedef unsigned long uint64_t;
  9759. #define HAVE_UINT64_T
  9760. #endif
  9761. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  9762. typedef unsigned long long uint64_t;
  9763. #define HAVE_UINT64_T
  9764. #endif
  9765. #if !defined(HAVE_UINT64_T)
  9766. #error No 64-bit unsigned integer type was found.
  9767. #endif
  9768. /*
  9769. * Similarly for uint32_t
  9770. */
  9771. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  9772. typedef unsigned uint32_t;
  9773. #define HAVE_UINT32_T
  9774. #endif
  9775. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  9776. typedef unsigned long uint32_t;
  9777. #define HAVE_UINT32_T
  9778. #endif
  9779. #if !defined(HAVE_UINT32_T)
  9780. #error No 32-bit unsigned integer type was found.
  9781. #endif
  9782. /*
  9783. * Similarly for uint16_t
  9784. */
  9785. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  9786. typedef unsigned uint16_t;
  9787. #define HAVE_UINT16_T
  9788. #endif
  9789. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  9790. typedef unsigned short uint16_t;
  9791. #define HAVE_UINT16_T
  9792. #endif
  9793. #if !defined(HAVE_UINT16_T)
  9794. #error No 16-bit unsigned integer type was found.
  9795. #endif
  9796. /*
  9797. * Similarly for uint8_t
  9798. */
  9799. #if !defined(HAVE_UINT8_T)
  9800. typedef unsigned char uint8_t;
  9801. #define HAVE_UINT8_T
  9802. #endif
  9803. #if !defined(HAVE_UINT16_T)
  9804. #error No 8-bit unsigned integer type was found.
  9805. #endif
  9806. /* Define intmax_t and uintmax_t if they are not already defined. */
  9807. #if !defined(HAVE_INTMAX_T)
  9808. typedef int64_t intmax_t;
  9809. #endif
  9810. #if !defined(HAVE_UINTMAX_T)
  9811. typedef uint64_t uintmax_t;
  9812. #endif
  9813. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  9814. /* #undef ZLIB_WINAPI */
  9815. /* Darwin ACL support */
  9816. /* #undef ARCHIVE_ACL_DARWIN */
  9817. /* FreeBSD ACL support */
  9818. /* #undef ARCHIVE_ACL_FREEBSD */
  9819. /* FreeBSD NFSv4 ACL support */
  9820. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  9821. /* Linux POSIX.1e ACL support via libacl */
  9822. /* #undef ARCHIVE_ACL_LIBACL */
  9823. /* Linux NFSv4 ACL support via librichacl */
  9824. /* #undef ARCHIVE_ACL_LIBRICHACL */
  9825. /* Solaris ACL support */
  9826. /* #undef ARCHIVE_ACL_SUNOS */
  9827. /* Solaris NFSv4 ACL support */
  9828. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  9829. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  9830. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  9831. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  9832. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  9833. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  9834. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  9835. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  9836. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  9837. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  9838. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  9839. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  9840. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  9841. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  9842. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  9843. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  9844. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  9845. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  9846. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  9847. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  9848. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  9849. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  9850. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  9851. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  9852. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  9853. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  9854. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  9855. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  9856. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  9857. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  9858. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  9859. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  9860. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  9861. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  9862. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  9863. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  9864. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  9865. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  9866. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  9867. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  9868. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  9869. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  9870. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  9871. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  9872. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  9873. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  9874. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  9875. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  9876. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  9877. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  9878. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  9879. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  9880. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  9881. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  9882. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  9883. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  9884. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  9885. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  9886. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  9887. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  9888. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  9889. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  9890. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  9891. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  9892. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  9893. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  9894. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  9895. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  9896. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  9897. /* AIX xattr support */
  9898. /* #undef ARCHIVE_XATTR_AIX */
  9899. /* Darwin xattr support */
  9900. /* #undef ARCHIVE_XATTR_DARWIN */
  9901. /* FreeBSD xattr support */
  9902. /* #undef ARCHIVE_XATTR_FREEBSD */
  9903. /* Linux xattr support */
  9904. /* #undef ARCHIVE_XATTR_LINUX */
  9905. /* Version number of bsdcpio */
  9906. #define BSDCPIO_VERSION_STRING "3.3.2"
  9907. /* Version number of bsdtar */
  9908. #define BSDTAR_VERSION_STRING "3.3.2"
  9909. /* Version number of bsdcat */
  9910. #define BSDCAT_VERSION_STRING "3.3.2"
  9911. /* Define to 1 if you have the `acl_create_entry' function. */
  9912. /* #undef HAVE_ACL_CREATE_ENTRY */
  9913. /* Define to 1 if you have the `acl_get_fd_np' function. */
  9914. /* #undef HAVE_ACL_GET_FD_NP */
  9915. /* Define to 1 if you have the `acl_get_link' function. */
  9916. /* #undef HAVE_ACL_GET_LINK */
  9917. /* Define to 1 if you have the `acl_get_link_np' function. */
  9918. /* #undef HAVE_ACL_GET_LINK_NP */
  9919. /* Define to 1 if you have the `acl_get_perm' function. */
  9920. /* #undef HAVE_ACL_GET_PERM */
  9921. /* Define to 1 if you have the `acl_get_perm_np' function. */
  9922. /* #undef HAVE_ACL_GET_PERM_NP */
  9923. /* Define to 1 if you have the `acl_init' function. */
  9924. /* #undef HAVE_ACL_INIT */
  9925. /* Define to 1 if you have the <acl/libacl.h> header file. */
  9926. /* #undef HAVE_ACL_LIBACL_H */
  9927. /* Define to 1 if the system has the type `acl_permset_t'. */
  9928. /* #undef HAVE_ACL_PERMSET_T */
  9929. /* Define to 1 if you have the `acl_set_fd' function. */
  9930. /* #undef HAVE_ACL_SET_FD */
  9931. /* Define to 1 if you have the `acl_set_fd_np' function. */
  9932. /* #undef HAVE_ACL_SET_FD_NP */
  9933. /* Define to 1 if you have the `acl_set_file' function. */
  9934. /* #undef HAVE_ACL_SET_FILE */
  9935. /* Define to 1 if you have the `arc4random_buf' function. */
  9936. /* #undef HAVE_ARC4RANDOM_BUF */
  9937. /* Define to 1 if you have the <attr/xattr.h> header file. */
  9938. /* #undef HAVE_ATTR_XATTR_H */
  9939. /* Define to 1 if you have the <Bcrypt.h> header file. */
  9940. /* #undef HAVE_BCRYPT_H */
  9941. /* Define to 1 if you have the <bsdxml.h> header file. */
  9942. /* #undef HAVE_BSDXML_H */
  9943. /* Define to 1 if you have the <bzlib.h> header file. */
  9944. #define HAVE_BZLIB_H 1
  9945. /* Define to 1 if you have the `chflags' function. */
  9946. /* #undef HAVE_CHFLAGS */
  9947. /* Define to 1 if you have the `chown' function. */
  9948. #define HAVE_CHOWN 1
  9949. /* Define to 1 if you have the `chroot' function. */
  9950. #define HAVE_CHROOT 1
  9951. /* Define to 1 if you have the <copyfile.h> header file. */
  9952. /* #undef HAVE_COPYFILE_H */
  9953. /* Define to 1 if you have the `ctime_r' function. */
  9954. #define HAVE_CTIME_R 1
  9955. /* Define to 1 if you have the <ctype.h> header file. */
  9956. #define HAVE_CTYPE_H 1
  9957. /* Define to 1 if you have the `cygwin_conv_path' function. */
  9958. /* #undef HAVE_CYGWIN_CONV_PATH */
  9959. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  9960. don't. */
  9961. /* #undef HAVE_DECL_ACE_GETACL */
  9962. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  9963. don't. */
  9964. /* #undef HAVE_DECL_ACE_GETACLCNT */
  9965. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  9966. don't. */
  9967. /* #undef HAVE_DECL_ACE_SETACL */
  9968. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  9969. you don't. */
  9970. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  9971. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  9972. you don't. */
  9973. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  9974. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  9975. don't. */
  9976. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  9977. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  9978. don't. */
  9979. /* #undef HAVE_DECL_ACL_USER */
  9980. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  9981. don't. */
  9982. #define HAVE_DECL_INT32_MAX 1
  9983. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  9984. don't. */
  9985. #define HAVE_DECL_INT32_MIN 1
  9986. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  9987. don't. */
  9988. #define HAVE_DECL_INT64_MAX 1
  9989. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  9990. don't. */
  9991. #define HAVE_DECL_INT64_MIN 1
  9992. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  9993. don't. */
  9994. #define HAVE_DECL_INTMAX_MAX 1
  9995. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  9996. don't. */
  9997. #define HAVE_DECL_INTMAX_MIN 1
  9998. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  9999. */
  10000. /* #undef HAVE_DECL_SETACL */
  10001. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  10002. don't. */
  10003. #define HAVE_DECL_SIZE_MAX 1
  10004. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  10005. don't. */
  10006. #define HAVE_DECL_SSIZE_MAX 1
  10007. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  10008. don't. */
  10009. #define HAVE_DECL_STRERROR_R 1
  10010. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  10011. don't. */
  10012. #define HAVE_DECL_UINT32_MAX 1
  10013. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  10014. don't. */
  10015. #define HAVE_DECL_UINT64_MAX 1
  10016. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  10017. don't. */
  10018. #define HAVE_DECL_UINTMAX_MAX 1
  10019. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  10020. you don't. */
  10021. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  10022. /* Define to 1 if you have the <direct.h> header file. */
  10023. /* #undef HAVE_DIRECT_H */
  10024. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  10025. */
  10026. #define HAVE_DIRENT_H 1
  10027. /* Define to 1 if you have the `dirfd' function. */
  10028. #define HAVE_DIRFD 1
  10029. /* Define to 1 if you have the <dlfcn.h> header file. */
  10030. #define HAVE_DLFCN_H 1
  10031. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  10032. /* #undef HAVE_DOPRNT */
  10033. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  10034. /* #undef HAVE_D_MD_ORDER */
  10035. /* A possible errno value for invalid file format errors */
  10036. /* #undef HAVE_EFTYPE */
  10037. /* A possible errno value for invalid file format errors */
  10038. #define HAVE_EILSEQ 1
  10039. /* Define to 1 if you have the <errno.h> header file. */
  10040. #define HAVE_ERRNO_H 1
  10041. /* Define to 1 if you have the <expat.h> header file. */
  10042. /* #undef HAVE_EXPAT_H */
  10043. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  10044. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  10045. /* Define to 1 if you have the `extattr_get_file' function. */
  10046. /* #undef HAVE_EXTATTR_GET_FILE */
  10047. /* Define to 1 if you have the `extattr_list_file' function. */
  10048. /* #undef HAVE_EXTATTR_LIST_FILE */
  10049. /* Define to 1 if you have the `extattr_set_fd' function. */
  10050. /* #undef HAVE_EXTATTR_SET_FD */
  10051. /* Define to 1 if you have the `extattr_set_file' function. */
  10052. /* #undef HAVE_EXTATTR_SET_FILE */
  10053. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  10054. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  10055. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  10056. */
  10057. /* #undef HAVE_DECL_GETACL */
  10058. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  10059. don't. */
  10060. /* #undef HAVE_DECL_GETACLCNT */
  10061. /* Define to 1 if you have the `fchdir' function. */
  10062. #define HAVE_FCHDIR 1
  10063. /* Define to 1 if you have the `fchflags' function. */
  10064. /* #undef HAVE_FCHFLAGS */
  10065. /* Define to 1 if you have the `fchmod' function. */
  10066. #define HAVE_FCHMOD 1
  10067. /* Define to 1 if you have the `fchown' function. */
  10068. #define HAVE_FCHOWN 1
  10069. /* Define to 1 if you have the `fcntl' function. */
  10070. #define HAVE_FCNTL 1
  10071. /* Define to 1 if you have the <fcntl.h> header file. */
  10072. #define HAVE_FCNTL_H 1
  10073. /* Define to 1 if you have the `fdopendir' function. */
  10074. #define HAVE_FDOPENDIR 1
  10075. /* Define to 1 if you have the `fgetea' function. */
  10076. /* #undef HAVE_FGETEA */
  10077. /* Define to 1 if you have the `fgetxattr' function. */
  10078. /* #undef HAVE_FGETXATTR */
  10079. /* Define to 1 if you have the `flistea' function. */
  10080. /* #undef HAVE_FLISTEA */
  10081. /* Define to 1 if you have the `flistxattr' function. */
  10082. /* #undef HAVE_FLISTXATTR */
  10083. /* Define to 1 if you have the `fork' function. */
  10084. #define HAVE_FORK 1
  10085. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  10086. #define HAVE_FSEEKO 1
  10087. /* Define to 1 if you have the `fsetea' function. */
  10088. /* #undef HAVE_FSETEA */
  10089. /* Define to 1 if you have the `fsetxattr' function. */
  10090. #define HAVE_FSETXATTR 1
  10091. /* Define to 1 if you have the `fstat' function. */
  10092. #define HAVE_FSTAT 1
  10093. /* Define to 1 if you have the `fstatat' function. */
  10094. #define HAVE_FSTATAT 1
  10095. /* Define to 1 if you have the `fstatfs' function. */
  10096. #define HAVE_FSTATFS 1
  10097. /* Define to 1 if you have the `fstatvfs' function. */
  10098. #define HAVE_FSTATVFS 1
  10099. /* Define to 1 if you have the `ftruncate' function. */
  10100. #define HAVE_FTRUNCATE 1
  10101. /* Define to 1 if you have the `futimens' function. */
  10102. #define HAVE_FUTIMENS 1
  10103. /* Define to 1 if you have the `futimes' function. */
  10104. #define HAVE_FUTIMES 1
  10105. /* Define to 1 if you have the `futimesat' function. */
  10106. #define HAVE_FUTIMESAT 1
  10107. /* Define to 1 if you have the `getea' function. */
  10108. /* #undef HAVE_GETEA */
  10109. /* Define to 1 if you have the `geteuid' function. */
  10110. #define HAVE_GETEUID 1
  10111. /* Define to 1 if you have the `getgrgid_r' function. */
  10112. #define HAVE_GETGRGID_R 1
  10113. /* Define to 1 if you have the `getgrnam_r' function. */
  10114. #define HAVE_GETGRNAM_R 1
  10115. /* Define to 1 if you have the `getpid' function. */
  10116. #define HAVE_GETPID 1
  10117. /* Define to 1 if you have the `getpwnam_r' function. */
  10118. #define HAVE_GETPWNAM_R 1
  10119. /* Define to 1 if you have the `getpwuid_r' function. */
  10120. #define HAVE_GETPWUID_R 1
  10121. /* Define to 1 if you have the `getvfsbyname' function. */
  10122. /* #undef HAVE_GETVFSBYNAME */
  10123. /* Define to 1 if you have the `getxattr' function. */
  10124. /* #undef HAVE_GETXATTR */
  10125. /* Define to 1 if you have the `gmtime_r' function. */
  10126. #define HAVE_GMTIME_R 1
  10127. /* Define to 1 if you have the <grp.h> header file. */
  10128. #define HAVE_GRP_H 1
  10129. /* Define to 1 if you have the `iconv' function. */
  10130. /* #undef HAVE_ICONV */
  10131. /* Define to 1 if you have the <iconv.h> header file. */
  10132. /* #undef HAVE_ICONV_H */
  10133. /* Define to 1 if you have the <inttypes.h> header file. */
  10134. #define HAVE_INTTYPES_H 1
  10135. /* Define to 1 if you have the <io.h> header file. */
  10136. /* #undef HAVE_IO_H */
  10137. /* Define to 1 if you have the <langinfo.h> header file. */
  10138. #define HAVE_LANGINFO_H 1
  10139. /* Define to 1 if you have the `lchflags' function. */
  10140. /* #undef HAVE_LCHFLAGS */
  10141. /* Define to 1 if you have the `lchmod' function. */
  10142. /* #undef HAVE_LCHMOD */
  10143. /* Define to 1 if you have the `lchown' function. */
  10144. #define HAVE_LCHOWN 1
  10145. /* Define to 1 if you have the `lgetea' function. */
  10146. /* #undef HAVE_LGETEA */
  10147. /* Define to 1 if you have the `lgetxattr' function. */
  10148. /* #undef HAVE_LGETXATTR */
  10149. /* Define to 1 if you have the `acl' library (-lacl). */
  10150. /* #undef HAVE_LIBACL */
  10151. /* Define to 1 if you have the `attr' library (-lattr). */
  10152. /* #undef HAVE_LIBATTR */
  10153. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  10154. /* #undef HAVE_LIBBSDXML */
  10155. /* Define to 1 if you have the `bz2' library (-lbz2). */
  10156. #define HAVE_LIBBZ2 1
  10157. /* Define to 1 if you have the `charset' library (-lcharset). */
  10158. /* #undef HAVE_LIBCHARSET */
  10159. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  10160. #define HAVE_LIBCRYPTO 1
  10161. /* Define to 1 if you have the `expat' library (-lexpat). */
  10162. /* #undef HAVE_LIBEXPAT */
  10163. /* Define to 1 if you have the `gcc' library (-lgcc). */
  10164. /* #undef HAVE_LIBGCC */
  10165. /* Define to 1 if you have the `lz4' library (-llz4). */
  10166. /* #undef HAVE_LIBLZ4 */
  10167. /* Define to 1 if you have the `lzma' library (-llzma). */
  10168. #define HAVE_LIBLZMA 1
  10169. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  10170. /* #undef HAVE_LIBLZMADEC */
  10171. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  10172. /* #undef HAVE_LIBLZO2 */
  10173. /* Define to 1 if you have the `nettle' library (-lnettle). */
  10174. /* #undef HAVE_LIBNETTLE */
  10175. /* Define to 1 if you have the `pcre' library (-lpcre). */
  10176. /* #undef HAVE_LIBPCRE */
  10177. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  10178. /* #undef HAVE_LIBPCREPOSIX */
  10179. /* Define to 1 if you have the `xml2' library (-lxml2). */
  10180. /* #undef HAVE_LIBXML2 */
  10181. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  10182. /* #undef HAVE_LIBXML_XMLREADER_H */
  10183. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  10184. /* #undef HAVE_LIBXML_XMLWRITER_H */
  10185. /* Define to 1 if you have the `z' library (-lz). */
  10186. #define HAVE_LIBZ 1
  10187. /* Define to 1 if you have the <limits.h> header file. */
  10188. #define HAVE_LIMITS_H 1
  10189. /* Define to 1 if you have the `link' function. */
  10190. #define HAVE_LINK 1
  10191. /* Define to 1 if you have the <linux/types.h> header file. */
  10192. #define HAVE_LINUX_TYPES_H 1
  10193. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  10194. #define HAVE_LINUX_FIEMAP_H 1
  10195. /* Define to 1 if you have the <linux/fs.h> header file. */
  10196. #define HAVE_LINUX_FS_H 1
  10197. /* Define to 1 if you have the <linux/magic.h> header file. */
  10198. #define HAVE_LINUX_MAGIC_H 1
  10199. /* Define to 1 if you have the <linux/types.h> header file. */
  10200. #define HAVE_LINUX_TYPES_H 1
  10201. /* Define to 1 if you have the `listea' function. */
  10202. /* #undef HAVE_LISTEA */
  10203. /* Define to 1 if you have the `listxattr' function. */
  10204. /* #undef HAVE_LISTXATTR */
  10205. /* Define to 1 if you have the `llistea' function. */
  10206. /* #undef HAVE_LLISTEA */
  10207. /* Define to 1 if you have the `llistxattr' function. */
  10208. /* #undef HAVE_LLISTXATTR */
  10209. /* Define to 1 if you have the <localcharset.h> header file. */
  10210. /* #undef HAVE_LOCALCHARSET_H */
  10211. /* Define to 1 if you have the `locale_charset' function. */
  10212. /* #undef HAVE_LOCALE_CHARSET */
  10213. /* Define to 1 if you have the <locale.h> header file. */
  10214. #define HAVE_LOCALE_H 1
  10215. /* Define to 1 if you have the `localtime_r' function. */
  10216. #define HAVE_LOCALTIME_R 1
  10217. /* Define to 1 if the system has the type `long long int'. */
  10218. /* #undef HAVE_LONG_LONG_INT */
  10219. /* Define to 1 if you have the `lsetea' function. */
  10220. /* #undef HAVE_LSETEA */
  10221. /* Define to 1 if you have the `lsetxattr' function. */
  10222. /* #undef HAVE_LSETXATTR */
  10223. /* Define to 1 if you have the `lstat' function. */
  10224. #define HAVE_LSTAT 1
  10225. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  10226. zero-length file name argument. */
  10227. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  10228. /* Define to 1 if you have the `lutimes' function. */
  10229. #define HAVE_LUTIMES 1
  10230. /* Define to 1 if you have the <lz4hc.h> header file. */
  10231. /* #undef HAVE_LZ4HC_H */
  10232. /* Define to 1 if you have the <lz4.h> header file. */
  10233. /* #undef HAVE_LZ4_H */
  10234. /* Define to 1 if you have the <lzmadec.h> header file. */
  10235. /* #undef HAVE_LZMADEC_H */
  10236. /* Define to 1 if you have the <lzma.h> header file. */
  10237. #define HAVE_LZMA_H 1
  10238. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  10239. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  10240. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  10241. /* #undef HAVE_LZO_LZO1X_H */
  10242. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  10243. /* #undef HAVE_LZO_LZOCONF_H */
  10244. /* Define to 1 if you have the `mbrtowc' function. */
  10245. #define HAVE_MBRTOWC 1
  10246. /* Define to 1 if you have the <membership.h> header file. */
  10247. /* #undef HAVE_MEMBERSHIP_H */
  10248. /* Define to 1 if you have the `memmove' function. */
  10249. #define HAVE_MEMMOVE 1
  10250. /* Define to 1 if you have the <memory.h> header file. */
  10251. #define HAVE_MEMORY_H 1
  10252. /* Define to 1 if you have the `mkdir' function. */
  10253. #define HAVE_MKDIR 1
  10254. /* Define to 1 if you have the `mkfifo' function. */
  10255. #define HAVE_MKFIFO 1
  10256. /* Define to 1 if you have the `mknod' function. */
  10257. #define HAVE_MKNOD 1
  10258. /* Define to 1 if you have the `mkstemp' function. */
  10259. #define HAVE_MKSTEMP 1
  10260. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  10261. /* #undef HAVE_NDIR_H */
  10262. /* Define to 1 if you have the <nettle/aes.h> header file. */
  10263. /* #undef HAVE_NETTLE_AES_H */
  10264. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  10265. /* #undef HAVE_NETTLE_HMAC_H */
  10266. /* Define to 1 if you have the <nettle/md5.h> header file. */
  10267. /* #undef HAVE_NETTLE_MD5_H */
  10268. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  10269. /* #undef HAVE_NETTLE_PBKDF2_H */
  10270. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  10271. /* #undef HAVE_NETTLE_RIPEMD160_H */
  10272. /* Define to 1 if you have the <nettle/sha.h> header file. */
  10273. /* #undef HAVE_NETTLE_SHA_H */
  10274. /* Define to 1 if you have the `nl_langinfo' function. */
  10275. #define HAVE_NL_LANGINFO 1
  10276. /* Define to 1 if you have the `openat' function. */
  10277. #define HAVE_OPENAT 1
  10278. /* Define to 1 if you have the <paths.h> header file. */
  10279. #define HAVE_PATHS_H 1
  10280. /* Define to 1 if you have the <pcreposix.h> header file. */
  10281. /* #undef HAVE_PCREPOSIX_H */
  10282. /* Define to 1 if you have the `pipe' function. */
  10283. #define HAVE_PIPE 1
  10284. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  10285. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  10286. /* Define to 1 if you have the `poll' function. */
  10287. #define HAVE_POLL 1
  10288. /* Define to 1 if you have the <poll.h> header file. */
  10289. #define HAVE_POLL_H 1
  10290. /* Define to 1 if you have the `posix_spawnp' function. */
  10291. #define HAVE_POSIX_SPAWNP 1
  10292. /* Define to 1 if you have the <process.h> header file. */
  10293. /* #undef HAVE_PROCESS_H */
  10294. /* Define to 1 if you have the <pthread.h> header file. */
  10295. /* #undef HAVE_PTHREAD_H */
  10296. /* Define to 1 if you have the <pwd.h> header file. */
  10297. #define HAVE_PWD_H 1
  10298. /* Define to 1 if you have the `readdir_r' function. */
  10299. #define HAVE_READDIR_R 1
  10300. /* Define to 1 if you have the `readlink' function. */
  10301. #define HAVE_READLINK 1
  10302. /* Define to 1 if you have the `readlinkat' function. */
  10303. #define HAVE_READLINKAT 1
  10304. /* Define to 1 if you have the `readpassphrase' function. */
  10305. /* #undef HAVE_READPASSPHRASE */
  10306. /* Define to 1 if you have the <readpassphrase.h> header file. */
  10307. /* #undef HAVE_READPASSPHRASE_H */
  10308. /* Define to 1 if you have the <regex.h> header file. */
  10309. #define HAVE_REGEX_H 1
  10310. /* Define to 1 if you have the `select' function. */
  10311. #define HAVE_SELECT 1
  10312. /* Define to 1 if you have the `setenv' function. */
  10313. #define HAVE_SETENV 1
  10314. /* Define to 1 if you have the `setlocale' function. */
  10315. #define HAVE_SETLOCALE 1
  10316. /* Define to 1 if you have the `sigaction' function. */
  10317. #define HAVE_SIGACTION 1
  10318. /* Define to 1 if you have the <signal.h> header file. */
  10319. #define HAVE_SIGNAL_H 1
  10320. /* Define to 1 if you have the <spawn.h> header file. */
  10321. #define HAVE_SPAWN_H 1
  10322. /* Define to 1 if you have the `statfs' function. */
  10323. #define HAVE_STATFS 1
  10324. /* Define to 1 if you have the `statvfs' function. */
  10325. #define HAVE_STATVFS 1
  10326. /* Define to 1 if `stat' has the bug that it succeeds when given the
  10327. zero-length file name argument. */
  10328. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  10329. /* Define to 1 if you have the <stdarg.h> header file. */
  10330. #define HAVE_STDARG_H 1
  10331. /* Define to 1 if you have the <stdint.h> header file. */
  10332. #define HAVE_STDINT_H 1
  10333. /* Define to 1 if you have the <stdlib.h> header file. */
  10334. #define HAVE_STDLIB_H 1
  10335. /* Define to 1 if you have the `strchr' function. */
  10336. #define HAVE_STRCHR 1
  10337. /* Define to 1 if you have the `strdup' function. */
  10338. #define HAVE_STRDUP 1
  10339. /* Define to 1 if you have the `strerror' function. */
  10340. #define HAVE_STRERROR 1
  10341. /* Define to 1 if you have the `strerror_r' function. */
  10342. #define HAVE_STRERROR_R 1
  10343. /* Define to 1 if you have the `strftime' function. */
  10344. #define HAVE_STRFTIME 1
  10345. /* Define to 1 if you have the <strings.h> header file. */
  10346. #define HAVE_STRINGS_H 1
  10347. /* Define to 1 if you have the <string.h> header file. */
  10348. #define HAVE_STRING_H 1
  10349. /* Define to 1 if you have the `strrchr' function. */
  10350. #define HAVE_STRRCHR 1
  10351. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  10352. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  10353. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  10354. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  10355. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  10356. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  10357. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  10358. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  10359. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  10360. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  10361. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  10362. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  10363. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  10364. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  10365. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  10366. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  10367. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  10368. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  10369. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  10370. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  10371. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  10372. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  10373. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  10374. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  10375. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  10376. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  10377. /* Define to 1 if you have `struct vfsconf'. */
  10378. /* #undef HAVE_STRUCT_VFSCONF */
  10379. /* Define to 1 if you have `struct xvfsconf'. */
  10380. /* #undef HAVE_STRUCT_XVFSCONF */
  10381. /* Define to 1 if you have the `symlink' function. */
  10382. #define HAVE_SYMLINK 1
  10383. /* Define to 1 if you have the <sys/acl.h> header file. */
  10384. /* #undef HAVE_SYS_ACL_H */
  10385. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  10386. #define HAVE_SYS_CDEFS_H 1
  10387. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  10388. */
  10389. /* #undef HAVE_SYS_DIR_H */
  10390. /* Define to 1 if you have the <sys/ea.h> header file. */
  10391. /* #undef HAVE_SYS_EA_H */
  10392. /* Define to 1 if you have the <sys/extattr.h> header file. */
  10393. /* #undef HAVE_SYS_EXTATTR_H */
  10394. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  10395. #define HAVE_SYS_IOCTL_H 1
  10396. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  10397. /* #undef HAVE_SYS_MKDEV_H */
  10398. /* Define to 1 if you have the <sys/mount.h> header file. */
  10399. /* #undef HAVE_SYS_MOUNT_H */
  10400. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  10401. */
  10402. /* #undef HAVE_SYS_NDIR_H */
  10403. /* Define to 1 if you have the <sys/param.h> header file. */
  10404. #define HAVE_SYS_PARAM_H 1
  10405. /* Define to 1 if you have the <sys/poll.h> header file. */
  10406. #define HAVE_SYS_POLL_H 1
  10407. /* Define to 1 if you have the <sys/richacl.h> header file. */
  10408. /* #undef HAVE_SYS_RICHACL_H */
  10409. /* Define to 1 if you have the <sys/select.h> header file. */
  10410. #define HAVE_SYS_SELECT_H 1
  10411. /* Define to 1 if you have the <sys/statfs.h> header file. */
  10412. #define HAVE_SYS_STATFS_H 1
  10413. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  10414. #define HAVE_SYS_STATVFS_H 1
  10415. /* Define to 1 if you have the <sys/stat.h> header file. */
  10416. #define HAVE_SYS_STAT_H 1
  10417. /* Define to 1 if you have the <sys/time.h> header file. */
  10418. #define HAVE_SYS_TIME_H 1
  10419. /* Define to 1 if you have the <sys/types.h> header file. */
  10420. #define HAVE_SYS_TYPES_H 1
  10421. /* Define to 1 if you have the <sys/utime.h> header file. */
  10422. /* #undef HAVE_SYS_UTIME_H */
  10423. /* Define to 1 if you have the <sys/utsname.h> header file. */
  10424. #define HAVE_SYS_UTSNAME_H 1
  10425. /* Define to 1 if you have the <sys/vfs.h> header file. */
  10426. #define HAVE_SYS_VFS_H 1
  10427. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  10428. #define HAVE_SYS_WAIT_H 1
  10429. /* Define to 1 if you have the <sys/xattr.h> header file. */
  10430. #define HAVE_SYS_XATTR_H 1
  10431. /* Define to 1 if you have the `timegm' function. */
  10432. #define HAVE_TIMEGM 1
  10433. /* Define to 1 if you have the <time.h> header file. */
  10434. #define HAVE_TIME_H 1
  10435. /* Define to 1 if you have the `tzset' function. */
  10436. #define HAVE_TZSET 1
  10437. /* Define to 1 if you have the <unistd.h> header file. */
  10438. #define HAVE_UNISTD_H 1
  10439. /* Define to 1 if you have the `unsetenv' function. */
  10440. #define HAVE_UNSETENV 1
  10441. /* Define to 1 if the system has the type `unsigned long long'. */
  10442. /* #undef HAVE_UNSIGNED_LONG_LONG */
  10443. /* Define to 1 if the system has the type `unsigned long long int'. */
  10444. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  10445. /* Define to 1 if you have the `utime' function. */
  10446. #define HAVE_UTIME 1
  10447. /* Define to 1 if you have the `utimensat' function. */
  10448. #define HAVE_UTIMENSAT 1
  10449. /* Define to 1 if you have the `utimes' function. */
  10450. #define HAVE_UTIMES 1
  10451. /* Define to 1 if you have the <utime.h> header file. */
  10452. #define HAVE_UTIME_H 1
  10453. /* Define to 1 if you have the `vfork' function. */
  10454. #define HAVE_VFORK 1
  10455. /* Define to 1 if you have the `vprintf' function. */
  10456. #define HAVE_VPRINTF 1
  10457. /* Define to 1 if you have the <wchar.h> header file. */
  10458. #define HAVE_WCHAR_H 1
  10459. /* Define to 1 if the system has the type `wchar_t'. */
  10460. #define HAVE_WCHAR_T 1
  10461. /* Define to 1 if you have the `wcrtomb' function. */
  10462. #define HAVE_WCRTOMB 1
  10463. /* Define to 1 if you have the `wcscmp' function. */
  10464. #define HAVE_WCSCMP 1
  10465. /* Define to 1 if you have the `wcscpy' function. */
  10466. #define HAVE_WCSCPY 1
  10467. /* Define to 1 if you have the `wcslen' function. */
  10468. #define HAVE_WCSLEN 1
  10469. /* Define to 1 if you have the `wctomb' function. */
  10470. #define HAVE_WCTOMB 1
  10471. /* Define to 1 if you have the <wctype.h> header file. */
  10472. #define HAVE_WCTYPE_H 1
  10473. /* Define to 1 if you have the <wincrypt.h> header file. */
  10474. /* #undef HAVE_WINCRYPT_H */
  10475. /* Define to 1 if you have the <windows.h> header file. */
  10476. /* #undef HAVE_WINDOWS_H */
  10477. /* Define to 1 if you have the <winioctl.h> header file. */
  10478. /* #undef HAVE_WINIOCTL_H */
  10479. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  10480. /* #undef HAVE__CrtSetReportMode */
  10481. /* Define to 1 if you have the `wmemcmp' function. */
  10482. #define HAVE_WMEMCMP 1
  10483. /* Define to 1 if you have the `wmemcpy' function. */
  10484. #define HAVE_WMEMCPY 1
  10485. /* Define to 1 if you have the `wmemmove' function. */
  10486. #define HAVE_WMEMMOVE 1
  10487. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  10488. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  10489. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  10490. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  10491. /* Define to 1 if you have the <zlib.h> header file. */
  10492. #define HAVE_ZLIB_H 1
  10493. /* Define to 1 if you have the `_ctime64_s' function. */
  10494. /* #undef HAVE__CTIME64_S */
  10495. /* Define to 1 if you have the `_fseeki64' function. */
  10496. /* #undef HAVE__FSEEKI64 */
  10497. /* Define to 1 if you have the `_get_timezone' function. */
  10498. /* #undef HAVE__GET_TIMEZONE */
  10499. /* Define to 1 if you have the `_localtime64_s' function. */
  10500. /* #undef HAVE__LOCALTIME64_S */
  10501. /* Define to 1 if you have the `_mkgmtime64' function. */
  10502. /* #undef HAVE__MKGMTIME64 */
  10503. /* Define as const if the declaration of iconv() needs const. */
  10504. #define ICONV_CONST
  10505. /* Version number of libarchive as a single integer */
  10506. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  10507. /* Version number of libarchive */
  10508. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  10509. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  10510. slash. */
  10511. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  10512. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  10513. */
  10514. /* #undef MAJOR_IN_MKDEV */
  10515. /* Define to 1 if `major', `minor', and `makedev' are declared in
  10516. <sysmacros.h>. */
  10517. #define MAJOR_IN_SYSMACROS 1
  10518. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  10519. /* #undef NO_MINUS_C_MINUS_O */
  10520. /* The size of `wchar_t', as computed by sizeof. */
  10521. #define SIZEOF_WCHAR_T 4
  10522. /* Define to 1 if strerror_r returns char *. */
  10523. /* #undef STRERROR_R_CHAR_P */
  10524. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  10525. #define TIME_WITH_SYS_TIME 1
  10526. /*
  10527. * Some platform requires a macro to use extension functions.
  10528. */
  10529. #define SAFE_TO_DEFINE_EXTENSIONS 1
  10530. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  10531. /* Enable extensions on AIX 3, Interix. */
  10532. #ifndef _ALL_SOURCE
  10533. # define _ALL_SOURCE 1
  10534. #endif
  10535. /* Enable GNU extensions on systems that have them. */
  10536. #ifndef _GNU_SOURCE
  10537. # define _GNU_SOURCE 1
  10538. #endif
  10539. /* Enable threading extensions on Solaris. */
  10540. #ifndef _POSIX_PTHREAD_SEMANTICS
  10541. # define _POSIX_PTHREAD_SEMANTICS 1
  10542. #endif
  10543. /* Enable extensions on HP NonStop. */
  10544. #ifndef _TANDEM_SOURCE
  10545. # define _TANDEM_SOURCE 1
  10546. #endif
  10547. /* Enable general extensions on Solaris. */
  10548. #ifndef __EXTENSIONS__
  10549. # define __EXTENSIONS__ 1
  10550. #endif
  10551. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  10552. /* Version number of package */
  10553. #define VERSION "3.3.2"
  10554. /* Number of bits in a file offset, on hosts where this is settable. */
  10555. /* #undef _FILE_OFFSET_BITS */
  10556. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  10557. /* #undef _LARGEFILE_SOURCE */
  10558. /* Define for large files, on AIX-style hosts. */
  10559. /* #undef _LARGE_FILES */
  10560. /* Define to control Windows SDK version */
  10561. #ifndef NTDDI_VERSION
  10562. /* #undef NTDDI_VERSION */
  10563. #endif // NTDDI_VERSION
  10564. #ifndef _WIN32_WINNT
  10565. /* #undef _WIN32_WINNT */
  10566. #endif // _WIN32_WINNT
  10567. #ifndef WINVER
  10568. /* #undef WINVER */
  10569. #endif // WINVER
  10570. /* Define to empty if `const' does not conform to ANSI C. */
  10571. /* #undef const */
  10572. /* Define to `int' if <sys/types.h> doesn't define. */
  10573. /* #undef gid_t */
  10574. /* Define to `unsigned long' if <sys/types.h> does not define. */
  10575. /* #undef id_t */
  10576. /* Define to `int' if <sys/types.h> does not define. */
  10577. /* #undef mode_t */
  10578. /* Define to `long long' if <sys/types.h> does not define. */
  10579. /* #undef off_t */
  10580. /* Define to `int' if <sys/types.h> doesn't define. */
  10581. /* #undef pid_t */
  10582. /* Define to `unsigned int' if <sys/types.h> does not define. */
  10583. /* #undef size_t */
  10584. /* Define to `int' if <sys/types.h> does not define. */
  10585. /* #undef ssize_t */
  10586. /* Define to `int' if <sys/types.h> doesn't define. */
  10587. /* #undef uid_t */
  10588. /* Define to `int' if <sys/types.h> does not define. */
  10589. /* #undef intptr_t */
  10590. /* Define to `unsigned int' if <sys/types.h> does not define. */
  10591. /* #undef uintptr_t */
  10592. #define ARCHIVE_RMD160_COMPILE_TEST
  10593. #define ARCHIVE_CRYPTO_RMD160_LIBC
  10594. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  10595. /*-
  10596. * Copyright (c) 2003-2007 Tim Kientzle
  10597. * Copyright (c) 2011 Andres Mejia
  10598. * Copyright (c) 2011 Michihiro NAKAJIMA
  10599. * All rights reserved.
  10600. *
  10601. * Redistribution and use in source and binary forms, with or without
  10602. * modification, are permitted provided that the following conditions
  10603. * are met:
  10604. * 1. Redistributions of source code must retain the above copyright
  10605. * notice, this list of conditions and the following disclaimer.
  10606. * 2. Redistributions in binary form must reproduce the above copyright
  10607. * notice, this list of conditions and the following disclaimer in the
  10608. * documentation and/or other materials provided with the distribution.
  10609. *
  10610. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  10611. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  10612. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  10613. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  10614. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  10615. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  10616. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  10617. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  10618. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  10619. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  10620. */
  10621. #include "archive_platform.h"
  10622. #include "archive.h"
  10623. #include "archive_digest_private.h"
  10624. /* In particular, force the configure probe to break if it tries
  10625. * to test a combination of OpenSSL and libmd. */
  10626. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  10627. #error Cannot use both OpenSSL and libmd.
  10628. #endif
  10629. /*
  10630. * Message digest functions for Windows platform.
  10631. */
  10632. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  10633. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  10634. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  10635. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  10636. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  10637. /*
  10638. * Initialize a Message digest.
  10639. */
  10640. static int
  10641. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  10642. {
  10643. ctx->valid = 0;
  10644. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  10645. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  10646. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  10647. return (ARCHIVE_FAILED);
  10648. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  10649. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  10650. return (ARCHIVE_FAILED);
  10651. }
  10652. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  10653. CryptReleaseContext(ctx->cryptProv, 0);
  10654. return (ARCHIVE_FAILED);
  10655. }
  10656. ctx->valid = 1;
  10657. return (ARCHIVE_OK);
  10658. }
  10659. /*
  10660. * Update a Message digest.
  10661. */
  10662. static int
  10663. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  10664. {
  10665. if (!ctx->valid)
  10666. return (ARCHIVE_FAILED);
  10667. CryptHashData(ctx->hash,
  10668. (unsigned char *)(uintptr_t)buf,
  10669. (DWORD)len, 0);
  10670. return (ARCHIVE_OK);
  10671. }
  10672. static int
  10673. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  10674. {
  10675. DWORD siglen = (DWORD)bufsize;
  10676. if (!ctx->valid)
  10677. return (ARCHIVE_FAILED);
  10678. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  10679. CryptDestroyHash(ctx->hash);
  10680. CryptReleaseContext(ctx->cryptProv, 0);
  10681. ctx->valid = 0;
  10682. return (ARCHIVE_OK);
  10683. }
  10684. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  10685. /* MD5 implementations */
  10686. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  10687. static int
  10688. __archive_libc_md5init(archive_md5_ctx *ctx)
  10689. {
  10690. MD5Init(ctx);
  10691. return (ARCHIVE_OK);
  10692. }
  10693. static int
  10694. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  10695. size_t insize)
  10696. {
  10697. MD5Update(ctx, indata, insize);
  10698. return (ARCHIVE_OK);
  10699. }
  10700. static int
  10701. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  10702. {
  10703. MD5Final(md, ctx);
  10704. return (ARCHIVE_OK);
  10705. }
  10706. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  10707. static int
  10708. __archive_libmd_md5init(archive_md5_ctx *ctx)
  10709. {
  10710. MD5Init(ctx);
  10711. return (ARCHIVE_OK);
  10712. }
  10713. static int
  10714. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  10715. size_t insize)
  10716. {
  10717. MD5Update(ctx, indata, insize);
  10718. return (ARCHIVE_OK);
  10719. }
  10720. static int
  10721. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  10722. {
  10723. MD5Final(md, ctx);
  10724. return (ARCHIVE_OK);
  10725. }
  10726. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  10727. static int
  10728. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  10729. {
  10730. CC_MD5_Init(ctx);
  10731. return (ARCHIVE_OK);
  10732. }
  10733. static int
  10734. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  10735. size_t insize)
  10736. {
  10737. CC_MD5_Update(ctx, indata, insize);
  10738. return (ARCHIVE_OK);
  10739. }
  10740. static int
  10741. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  10742. {
  10743. CC_MD5_Final(md, ctx);
  10744. return (ARCHIVE_OK);
  10745. }
  10746. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  10747. static int
  10748. __archive_nettle_md5init(archive_md5_ctx *ctx)
  10749. {
  10750. md5_init(ctx);
  10751. return (ARCHIVE_OK);
  10752. }
  10753. static int
  10754. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  10755. size_t insize)
  10756. {
  10757. md5_update(ctx, insize, indata);
  10758. return (ARCHIVE_OK);
  10759. }
  10760. static int
  10761. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  10762. {
  10763. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  10764. return (ARCHIVE_OK);
  10765. }
  10766. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  10767. static int
  10768. __archive_openssl_md5init(archive_md5_ctx *ctx)
  10769. {
  10770. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  10771. return (ARCHIVE_FAILED);
  10772. EVP_DigestInit(*ctx, EVP_md5());
  10773. return (ARCHIVE_OK);
  10774. }
  10775. static int
  10776. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  10777. size_t insize)
  10778. {
  10779. EVP_DigestUpdate(*ctx, indata, insize);
  10780. return (ARCHIVE_OK);
  10781. }
  10782. static int
  10783. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  10784. {
  10785. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  10786. * this is meant to cope with that. Real fix is probably to fix
  10787. * archive_write_set_format_xar.c
  10788. */
  10789. if (*ctx) {
  10790. EVP_DigestFinal(*ctx, md, NULL);
  10791. EVP_MD_CTX_free(*ctx);
  10792. *ctx = NULL;
  10793. }
  10794. return (ARCHIVE_OK);
  10795. }
  10796. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  10797. static int
  10798. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  10799. {
  10800. return (win_crypto_init(ctx, CALG_MD5));
  10801. }
  10802. static int
  10803. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  10804. size_t insize)
  10805. {
  10806. return (win_crypto_Update(ctx, indata, insize));
  10807. }
  10808. static int
  10809. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  10810. {
  10811. return (win_crypto_Final(md, 16, ctx));
  10812. }
  10813. #else
  10814. static int
  10815. __archive_stub_md5init(archive_md5_ctx *ctx)
  10816. {
  10817. (void)ctx; /* UNUSED */
  10818. return (ARCHIVE_FAILED);
  10819. }
  10820. static int
  10821. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  10822. size_t insize)
  10823. {
  10824. (void)ctx; /* UNUSED */
  10825. (void)indata; /* UNUSED */
  10826. (void)insize; /* UNUSED */
  10827. return (ARCHIVE_FAILED);
  10828. }
  10829. static int
  10830. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  10831. {
  10832. (void)ctx; /* UNUSED */
  10833. (void)md; /* UNUSED */
  10834. return (ARCHIVE_FAILED);
  10835. }
  10836. #endif
  10837. /* RIPEMD160 implementations */
  10838. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  10839. static int
  10840. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  10841. {
  10842. RMD160Init(ctx);
  10843. return (ARCHIVE_OK);
  10844. }
  10845. static int
  10846. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  10847. size_t insize)
  10848. {
  10849. RMD160Update(ctx, indata, insize);
  10850. return (ARCHIVE_OK);
  10851. }
  10852. static int
  10853. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  10854. {
  10855. RMD160Final(md, ctx);
  10856. return (ARCHIVE_OK);
  10857. }
  10858. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  10859. static int
  10860. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  10861. {
  10862. RIPEMD160_Init(ctx);
  10863. return (ARCHIVE_OK);
  10864. }
  10865. static int
  10866. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  10867. size_t insize)
  10868. {
  10869. RIPEMD160_Update(ctx, indata, insize);
  10870. return (ARCHIVE_OK);
  10871. }
  10872. static int
  10873. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  10874. {
  10875. RIPEMD160_Final(md, ctx);
  10876. return (ARCHIVE_OK);
  10877. }
  10878. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  10879. static int
  10880. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  10881. {
  10882. ripemd160_init(ctx);
  10883. return (ARCHIVE_OK);
  10884. }
  10885. static int
  10886. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  10887. size_t insize)
  10888. {
  10889. ripemd160_update(ctx, insize, indata);
  10890. return (ARCHIVE_OK);
  10891. }
  10892. static int
  10893. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  10894. {
  10895. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  10896. return (ARCHIVE_OK);
  10897. }
  10898. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  10899. static int
  10900. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  10901. {
  10902. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  10903. return (ARCHIVE_FAILED);
  10904. EVP_DigestInit(*ctx, EVP_ripemd160());
  10905. return (ARCHIVE_OK);
  10906. }
  10907. static int
  10908. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  10909. size_t insize)
  10910. {
  10911. EVP_DigestUpdate(*ctx, indata, insize);
  10912. return (ARCHIVE_OK);
  10913. }
  10914. static int
  10915. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  10916. {
  10917. if (*ctx) {
  10918. EVP_DigestFinal(*ctx, md, NULL);
  10919. EVP_MD_CTX_free(*ctx);
  10920. *ctx = NULL;
  10921. }
  10922. return (ARCHIVE_OK);
  10923. }
  10924. #else
  10925. static int
  10926. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  10927. {
  10928. (void)ctx; /* UNUSED */
  10929. return (ARCHIVE_FAILED);
  10930. }
  10931. static int
  10932. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  10933. size_t insize)
  10934. {
  10935. (void)ctx; /* UNUSED */
  10936. (void)indata; /* UNUSED */
  10937. (void)insize; /* UNUSED */
  10938. return (ARCHIVE_FAILED);
  10939. }
  10940. static int
  10941. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  10942. {
  10943. (void)ctx; /* UNUSED */
  10944. (void)md; /* UNUSED */
  10945. return (ARCHIVE_FAILED);
  10946. }
  10947. #endif
  10948. /* SHA1 implementations */
  10949. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  10950. static int
  10951. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  10952. {
  10953. SHA1Init(ctx);
  10954. return (ARCHIVE_OK);
  10955. }
  10956. static int
  10957. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  10958. size_t insize)
  10959. {
  10960. SHA1Update(ctx, indata, insize);
  10961. return (ARCHIVE_OK);
  10962. }
  10963. static int
  10964. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  10965. {
  10966. SHA1Final(md, ctx);
  10967. return (ARCHIVE_OK);
  10968. }
  10969. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  10970. static int
  10971. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  10972. {
  10973. SHA1_Init(ctx);
  10974. return (ARCHIVE_OK);
  10975. }
  10976. static int
  10977. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  10978. size_t insize)
  10979. {
  10980. SHA1_Update(ctx, indata, insize);
  10981. return (ARCHIVE_OK);
  10982. }
  10983. static int
  10984. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  10985. {
  10986. SHA1_Final(md, ctx);
  10987. return (ARCHIVE_OK);
  10988. }
  10989. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  10990. static int
  10991. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  10992. {
  10993. CC_SHA1_Init(ctx);
  10994. return (ARCHIVE_OK);
  10995. }
  10996. static int
  10997. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  10998. size_t insize)
  10999. {
  11000. CC_SHA1_Update(ctx, indata, insize);
  11001. return (ARCHIVE_OK);
  11002. }
  11003. static int
  11004. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  11005. {
  11006. CC_SHA1_Final(md, ctx);
  11007. return (ARCHIVE_OK);
  11008. }
  11009. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  11010. static int
  11011. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  11012. {
  11013. sha1_init(ctx);
  11014. return (ARCHIVE_OK);
  11015. }
  11016. static int
  11017. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  11018. size_t insize)
  11019. {
  11020. sha1_update(ctx, insize, indata);
  11021. return (ARCHIVE_OK);
  11022. }
  11023. static int
  11024. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  11025. {
  11026. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  11027. return (ARCHIVE_OK);
  11028. }
  11029. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  11030. static int
  11031. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  11032. {
  11033. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  11034. return (ARCHIVE_FAILED);
  11035. EVP_DigestInit(*ctx, EVP_sha1());
  11036. return (ARCHIVE_OK);
  11037. }
  11038. static int
  11039. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  11040. size_t insize)
  11041. {
  11042. EVP_DigestUpdate(*ctx, indata, insize);
  11043. return (ARCHIVE_OK);
  11044. }
  11045. static int
  11046. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  11047. {
  11048. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  11049. * this is meant to cope with that. Real fix is probably to fix
  11050. * archive_write_set_format_xar.c
  11051. */
  11052. if (*ctx) {
  11053. EVP_DigestFinal(*ctx, md, NULL);
  11054. EVP_MD_CTX_free(*ctx);
  11055. *ctx = NULL;
  11056. }
  11057. return (ARCHIVE_OK);
  11058. }
  11059. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  11060. static int
  11061. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  11062. {
  11063. return (win_crypto_init(ctx, CALG_SHA1));
  11064. }
  11065. static int
  11066. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  11067. size_t insize)
  11068. {
  11069. return (win_crypto_Update(ctx, indata, insize));
  11070. }
  11071. static int
  11072. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  11073. {
  11074. return (win_crypto_Final(md, 20, ctx));
  11075. }
  11076. #else
  11077. static int
  11078. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  11079. {
  11080. (void)ctx; /* UNUSED */
  11081. return (ARCHIVE_FAILED);
  11082. }
  11083. static int
  11084. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  11085. size_t insize)
  11086. {
  11087. (void)ctx; /* UNUSED */
  11088. (void)indata; /* UNUSED */
  11089. (void)insize; /* UNUSED */
  11090. return (ARCHIVE_FAILED);
  11091. }
  11092. static int
  11093. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  11094. {
  11095. (void)ctx; /* UNUSED */
  11096. (void)md; /* UNUSED */
  11097. return (ARCHIVE_FAILED);
  11098. }
  11099. #endif
  11100. /* SHA256 implementations */
  11101. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  11102. static int
  11103. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  11104. {
  11105. SHA256_Init(ctx);
  11106. return (ARCHIVE_OK);
  11107. }
  11108. static int
  11109. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  11110. size_t insize)
  11111. {
  11112. SHA256_Update(ctx, indata, insize);
  11113. return (ARCHIVE_OK);
  11114. }
  11115. static int
  11116. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  11117. {
  11118. SHA256_Final(md, ctx);
  11119. return (ARCHIVE_OK);
  11120. }
  11121. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  11122. static int
  11123. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  11124. {
  11125. SHA256Init(ctx);
  11126. return (ARCHIVE_OK);
  11127. }
  11128. static int
  11129. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  11130. size_t insize)
  11131. {
  11132. SHA256Update(ctx, indata, insize);
  11133. return (ARCHIVE_OK);
  11134. }
  11135. static int
  11136. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  11137. {
  11138. SHA256Final(md, ctx);
  11139. return (ARCHIVE_OK);
  11140. }
  11141. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  11142. static int
  11143. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  11144. {
  11145. SHA256Init(ctx);
  11146. return (ARCHIVE_OK);
  11147. }
  11148. static int
  11149. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  11150. size_t insize)
  11151. {
  11152. SHA256Update(ctx, indata, insize);
  11153. return (ARCHIVE_OK);
  11154. }
  11155. static int
  11156. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  11157. {
  11158. SHA256Final(md, ctx);
  11159. return (ARCHIVE_OK);
  11160. }
  11161. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  11162. static int
  11163. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  11164. {
  11165. SHA256_Init(ctx);
  11166. return (ARCHIVE_OK);
  11167. }
  11168. static int
  11169. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  11170. size_t insize)
  11171. {
  11172. SHA256_Update(ctx, indata, insize);
  11173. return (ARCHIVE_OK);
  11174. }
  11175. static int
  11176. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  11177. {
  11178. SHA256_Final(md, ctx);
  11179. return (ARCHIVE_OK);
  11180. }
  11181. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  11182. static int
  11183. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  11184. {
  11185. CC_SHA256_Init(ctx);
  11186. return (ARCHIVE_OK);
  11187. }
  11188. static int
  11189. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  11190. size_t insize)
  11191. {
  11192. CC_SHA256_Update(ctx, indata, insize);
  11193. return (ARCHIVE_OK);
  11194. }
  11195. static int
  11196. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  11197. {
  11198. CC_SHA256_Final(md, ctx);
  11199. return (ARCHIVE_OK);
  11200. }
  11201. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  11202. static int
  11203. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  11204. {
  11205. sha256_init(ctx);
  11206. return (ARCHIVE_OK);
  11207. }
  11208. static int
  11209. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  11210. size_t insize)
  11211. {
  11212. sha256_update(ctx, insize, indata);
  11213. return (ARCHIVE_OK);
  11214. }
  11215. static int
  11216. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  11217. {
  11218. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  11219. return (ARCHIVE_OK);
  11220. }
  11221. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  11222. static int
  11223. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  11224. {
  11225. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  11226. return (ARCHIVE_FAILED);
  11227. EVP_DigestInit(*ctx, EVP_sha256());
  11228. return (ARCHIVE_OK);
  11229. }
  11230. static int
  11231. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  11232. size_t insize)
  11233. {
  11234. EVP_DigestUpdate(*ctx, indata, insize);
  11235. return (ARCHIVE_OK);
  11236. }
  11237. static int
  11238. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  11239. {
  11240. if (*ctx) {
  11241. EVP_DigestFinal(*ctx, md, NULL);
  11242. EVP_MD_CTX_free(*ctx);
  11243. *ctx = NULL;
  11244. }
  11245. return (ARCHIVE_OK);
  11246. }
  11247. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  11248. static int
  11249. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  11250. {
  11251. return (win_crypto_init(ctx, CALG_SHA_256));
  11252. }
  11253. static int
  11254. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  11255. size_t insize)
  11256. {
  11257. return (win_crypto_Update(ctx, indata, insize));
  11258. }
  11259. static int
  11260. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  11261. {
  11262. return (win_crypto_Final(md, 32, ctx));
  11263. }
  11264. #else
  11265. static int
  11266. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  11267. {
  11268. (void)ctx; /* UNUSED */
  11269. return (ARCHIVE_FAILED);
  11270. }
  11271. static int
  11272. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  11273. size_t insize)
  11274. {
  11275. (void)ctx; /* UNUSED */
  11276. (void)indata; /* UNUSED */
  11277. (void)insize; /* UNUSED */
  11278. return (ARCHIVE_FAILED);
  11279. }
  11280. static int
  11281. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  11282. {
  11283. (void)ctx; /* UNUSED */
  11284. (void)md; /* UNUSED */
  11285. return (ARCHIVE_FAILED);
  11286. }
  11287. #endif
  11288. /* SHA384 implementations */
  11289. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  11290. static int
  11291. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  11292. {
  11293. SHA384_Init(ctx);
  11294. return (ARCHIVE_OK);
  11295. }
  11296. static int
  11297. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  11298. size_t insize)
  11299. {
  11300. SHA384_Update(ctx, indata, insize);
  11301. return (ARCHIVE_OK);
  11302. }
  11303. static int
  11304. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  11305. {
  11306. SHA384_Final(md, ctx);
  11307. return (ARCHIVE_OK);
  11308. }
  11309. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  11310. static int
  11311. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  11312. {
  11313. SHA384Init(ctx);
  11314. return (ARCHIVE_OK);
  11315. }
  11316. static int
  11317. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  11318. size_t insize)
  11319. {
  11320. SHA384Update(ctx, indata, insize);
  11321. return (ARCHIVE_OK);
  11322. }
  11323. static int
  11324. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  11325. {
  11326. SHA384Final(md, ctx);
  11327. return (ARCHIVE_OK);
  11328. }
  11329. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  11330. static int
  11331. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  11332. {
  11333. SHA384Init(ctx);
  11334. return (ARCHIVE_OK);
  11335. }
  11336. static int
  11337. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  11338. size_t insize)
  11339. {
  11340. SHA384Update(ctx, indata, insize);
  11341. return (ARCHIVE_OK);
  11342. }
  11343. static int
  11344. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  11345. {
  11346. SHA384Final(md, ctx);
  11347. return (ARCHIVE_OK);
  11348. }
  11349. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  11350. static int
  11351. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  11352. {
  11353. CC_SHA384_Init(ctx);
  11354. return (ARCHIVE_OK);
  11355. }
  11356. static int
  11357. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  11358. size_t insize)
  11359. {
  11360. CC_SHA384_Update(ctx, indata, insize);
  11361. return (ARCHIVE_OK);
  11362. }
  11363. static int
  11364. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  11365. {
  11366. CC_SHA384_Final(md, ctx);
  11367. return (ARCHIVE_OK);
  11368. }
  11369. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  11370. static int
  11371. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  11372. {
  11373. sha384_init(ctx);
  11374. return (ARCHIVE_OK);
  11375. }
  11376. static int
  11377. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  11378. size_t insize)
  11379. {
  11380. sha384_update(ctx, insize, indata);
  11381. return (ARCHIVE_OK);
  11382. }
  11383. static int
  11384. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  11385. {
  11386. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  11387. return (ARCHIVE_OK);
  11388. }
  11389. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  11390. static int
  11391. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  11392. {
  11393. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  11394. return (ARCHIVE_FAILED);
  11395. EVP_DigestInit(*ctx, EVP_sha384());
  11396. return (ARCHIVE_OK);
  11397. }
  11398. static int
  11399. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  11400. size_t insize)
  11401. {
  11402. EVP_DigestUpdate(*ctx, indata, insize);
  11403. return (ARCHIVE_OK);
  11404. }
  11405. static int
  11406. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  11407. {
  11408. if (*ctx) {
  11409. EVP_DigestFinal(*ctx, md, NULL);
  11410. EVP_MD_CTX_free(*ctx);
  11411. *ctx = NULL;
  11412. }
  11413. return (ARCHIVE_OK);
  11414. }
  11415. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  11416. static int
  11417. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  11418. {
  11419. return (win_crypto_init(ctx, CALG_SHA_384));
  11420. }
  11421. static int
  11422. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  11423. size_t insize)
  11424. {
  11425. return (win_crypto_Update(ctx, indata, insize));
  11426. }
  11427. static int
  11428. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  11429. {
  11430. return (win_crypto_Final(md, 48, ctx));
  11431. }
  11432. #else
  11433. static int
  11434. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  11435. {
  11436. (void)ctx; /* UNUSED */
  11437. return (ARCHIVE_FAILED);
  11438. }
  11439. static int
  11440. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  11441. size_t insize)
  11442. {
  11443. (void)ctx; /* UNUSED */
  11444. (void)indata; /* UNUSED */
  11445. (void)insize; /* UNUSED */
  11446. return (ARCHIVE_FAILED);
  11447. }
  11448. static int
  11449. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  11450. {
  11451. (void)ctx; /* UNUSED */
  11452. (void)md; /* UNUSED */
  11453. return (ARCHIVE_FAILED);
  11454. }
  11455. #endif
  11456. /* SHA512 implementations */
  11457. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  11458. static int
  11459. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  11460. {
  11461. SHA512_Init(ctx);
  11462. return (ARCHIVE_OK);
  11463. }
  11464. static int
  11465. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  11466. size_t insize)
  11467. {
  11468. SHA512_Update(ctx, indata, insize);
  11469. return (ARCHIVE_OK);
  11470. }
  11471. static int
  11472. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  11473. {
  11474. SHA512_Final(md, ctx);
  11475. return (ARCHIVE_OK);
  11476. }
  11477. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  11478. static int
  11479. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  11480. {
  11481. SHA512Init(ctx);
  11482. return (ARCHIVE_OK);
  11483. }
  11484. static int
  11485. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  11486. size_t insize)
  11487. {
  11488. SHA512Update(ctx, indata, insize);
  11489. return (ARCHIVE_OK);
  11490. }
  11491. static int
  11492. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  11493. {
  11494. SHA512Final(md, ctx);
  11495. return (ARCHIVE_OK);
  11496. }
  11497. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  11498. static int
  11499. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  11500. {
  11501. SHA512Init(ctx);
  11502. return (ARCHIVE_OK);
  11503. }
  11504. static int
  11505. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  11506. size_t insize)
  11507. {
  11508. SHA512Update(ctx, indata, insize);
  11509. return (ARCHIVE_OK);
  11510. }
  11511. static int
  11512. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  11513. {
  11514. SHA512Final(md, ctx);
  11515. return (ARCHIVE_OK);
  11516. }
  11517. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  11518. static int
  11519. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  11520. {
  11521. SHA512_Init(ctx);
  11522. return (ARCHIVE_OK);
  11523. }
  11524. static int
  11525. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  11526. size_t insize)
  11527. {
  11528. SHA512_Update(ctx, indata, insize);
  11529. return (ARCHIVE_OK);
  11530. }
  11531. static int
  11532. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  11533. {
  11534. SHA512_Final(md, ctx);
  11535. return (ARCHIVE_OK);
  11536. }
  11537. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  11538. static int
  11539. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  11540. {
  11541. CC_SHA512_Init(ctx);
  11542. return (ARCHIVE_OK);
  11543. }
  11544. static int
  11545. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  11546. size_t insize)
  11547. {
  11548. CC_SHA512_Update(ctx, indata, insize);
  11549. return (ARCHIVE_OK);
  11550. }
  11551. static int
  11552. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  11553. {
  11554. CC_SHA512_Final(md, ctx);
  11555. return (ARCHIVE_OK);
  11556. }
  11557. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  11558. static int
  11559. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  11560. {
  11561. sha512_init(ctx);
  11562. return (ARCHIVE_OK);
  11563. }
  11564. static int
  11565. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  11566. size_t insize)
  11567. {
  11568. sha512_update(ctx, insize, indata);
  11569. return (ARCHIVE_OK);
  11570. }
  11571. static int
  11572. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  11573. {
  11574. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  11575. return (ARCHIVE_OK);
  11576. }
  11577. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  11578. static int
  11579. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  11580. {
  11581. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  11582. return (ARCHIVE_FAILED);
  11583. EVP_DigestInit(*ctx, EVP_sha512());
  11584. return (ARCHIVE_OK);
  11585. }
  11586. static int
  11587. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  11588. size_t insize)
  11589. {
  11590. EVP_DigestUpdate(*ctx, indata, insize);
  11591. return (ARCHIVE_OK);
  11592. }
  11593. static int
  11594. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  11595. {
  11596. if (*ctx) {
  11597. EVP_DigestFinal(*ctx, md, NULL);
  11598. EVP_MD_CTX_free(*ctx);
  11599. *ctx = NULL;
  11600. }
  11601. return (ARCHIVE_OK);
  11602. }
  11603. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  11604. static int
  11605. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  11606. {
  11607. return (win_crypto_init(ctx, CALG_SHA_512));
  11608. }
  11609. static int
  11610. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  11611. size_t insize)
  11612. {
  11613. return (win_crypto_Update(ctx, indata, insize));
  11614. }
  11615. static int
  11616. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  11617. {
  11618. return (win_crypto_Final(md, 64, ctx));
  11619. }
  11620. #else
  11621. static int
  11622. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  11623. {
  11624. (void)ctx; /* UNUSED */
  11625. return (ARCHIVE_FAILED);
  11626. }
  11627. static int
  11628. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  11629. size_t insize)
  11630. {
  11631. (void)ctx; /* UNUSED */
  11632. (void)indata; /* UNUSED */
  11633. (void)insize; /* UNUSED */
  11634. return (ARCHIVE_FAILED);
  11635. }
  11636. static int
  11637. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  11638. {
  11639. (void)ctx; /* UNUSED */
  11640. (void)md; /* UNUSED */
  11641. return (ARCHIVE_FAILED);
  11642. }
  11643. #endif
  11644. /* NOTE: Message Digest functions are set based on availability and by the
  11645. * following order of preference.
  11646. * 1. libc
  11647. * 2. libc2
  11648. * 3. libc3
  11649. * 4. libSystem
  11650. * 5. Nettle
  11651. * 6. OpenSSL
  11652. * 7. libmd
  11653. * 8. Windows API
  11654. */
  11655. const struct archive_digest __archive_digest =
  11656. {
  11657. /* MD5 */
  11658. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  11659. &__archive_libc_md5init,
  11660. &__archive_libc_md5update,
  11661. &__archive_libc_md5final,
  11662. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  11663. &__archive_libmd_md5init,
  11664. &__archive_libmd_md5update,
  11665. &__archive_libmd_md5final,
  11666. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  11667. &__archive_libsystem_md5init,
  11668. &__archive_libsystem_md5update,
  11669. &__archive_libsystem_md5final,
  11670. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  11671. &__archive_nettle_md5init,
  11672. &__archive_nettle_md5update,
  11673. &__archive_nettle_md5final,
  11674. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  11675. &__archive_openssl_md5init,
  11676. &__archive_openssl_md5update,
  11677. &__archive_openssl_md5final,
  11678. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  11679. &__archive_windowsapi_md5init,
  11680. &__archive_windowsapi_md5update,
  11681. &__archive_windowsapi_md5final,
  11682. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  11683. &__archive_stub_md5init,
  11684. &__archive_stub_md5update,
  11685. &__archive_stub_md5final,
  11686. #endif
  11687. /* RIPEMD160 */
  11688. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  11689. &__archive_libc_ripemd160init,
  11690. &__archive_libc_ripemd160update,
  11691. &__archive_libc_ripemd160final,
  11692. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  11693. &__archive_libmd_ripemd160init,
  11694. &__archive_libmd_ripemd160update,
  11695. &__archive_libmd_ripemd160final,
  11696. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  11697. &__archive_nettle_ripemd160init,
  11698. &__archive_nettle_ripemd160update,
  11699. &__archive_nettle_ripemd160final,
  11700. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  11701. &__archive_openssl_ripemd160init,
  11702. &__archive_openssl_ripemd160update,
  11703. &__archive_openssl_ripemd160final,
  11704. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  11705. &__archive_stub_ripemd160init,
  11706. &__archive_stub_ripemd160update,
  11707. &__archive_stub_ripemd160final,
  11708. #endif
  11709. /* SHA1 */
  11710. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  11711. &__archive_libc_sha1init,
  11712. &__archive_libc_sha1update,
  11713. &__archive_libc_sha1final,
  11714. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  11715. &__archive_libmd_sha1init,
  11716. &__archive_libmd_sha1update,
  11717. &__archive_libmd_sha1final,
  11718. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  11719. &__archive_libsystem_sha1init,
  11720. &__archive_libsystem_sha1update,
  11721. &__archive_libsystem_sha1final,
  11722. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  11723. &__archive_nettle_sha1init,
  11724. &__archive_nettle_sha1update,
  11725. &__archive_nettle_sha1final,
  11726. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  11727. &__archive_openssl_sha1init,
  11728. &__archive_openssl_sha1update,
  11729. &__archive_openssl_sha1final,
  11730. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  11731. &__archive_windowsapi_sha1init,
  11732. &__archive_windowsapi_sha1update,
  11733. &__archive_windowsapi_sha1final,
  11734. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  11735. &__archive_stub_sha1init,
  11736. &__archive_stub_sha1update,
  11737. &__archive_stub_sha1final,
  11738. #endif
  11739. /* SHA256 */
  11740. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  11741. &__archive_libc_sha256init,
  11742. &__archive_libc_sha256update,
  11743. &__archive_libc_sha256final,
  11744. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  11745. &__archive_libc2_sha256init,
  11746. &__archive_libc2_sha256update,
  11747. &__archive_libc2_sha256final,
  11748. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  11749. &__archive_libc3_sha256init,
  11750. &__archive_libc3_sha256update,
  11751. &__archive_libc3_sha256final,
  11752. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  11753. &__archive_libmd_sha256init,
  11754. &__archive_libmd_sha256update,
  11755. &__archive_libmd_sha256final,
  11756. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  11757. &__archive_libsystem_sha256init,
  11758. &__archive_libsystem_sha256update,
  11759. &__archive_libsystem_sha256final,
  11760. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  11761. &__archive_nettle_sha256init,
  11762. &__archive_nettle_sha256update,
  11763. &__archive_nettle_sha256final,
  11764. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  11765. &__archive_openssl_sha256init,
  11766. &__archive_openssl_sha256update,
  11767. &__archive_openssl_sha256final,
  11768. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  11769. &__archive_windowsapi_sha256init,
  11770. &__archive_windowsapi_sha256update,
  11771. &__archive_windowsapi_sha256final,
  11772. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  11773. &__archive_stub_sha256init,
  11774. &__archive_stub_sha256update,
  11775. &__archive_stub_sha256final,
  11776. #endif
  11777. /* SHA384 */
  11778. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  11779. &__archive_libc_sha384init,
  11780. &__archive_libc_sha384update,
  11781. &__archive_libc_sha384final,
  11782. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  11783. &__archive_libc2_sha384init,
  11784. &__archive_libc2_sha384update,
  11785. &__archive_libc2_sha384final,
  11786. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  11787. &__archive_libc3_sha384init,
  11788. &__archive_libc3_sha384update,
  11789. &__archive_libc3_sha384final,
  11790. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  11791. &__archive_libsystem_sha384init,
  11792. &__archive_libsystem_sha384update,
  11793. &__archive_libsystem_sha384final,
  11794. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  11795. &__archive_nettle_sha384init,
  11796. &__archive_nettle_sha384update,
  11797. &__archive_nettle_sha384final,
  11798. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  11799. &__archive_openssl_sha384init,
  11800. &__archive_openssl_sha384update,
  11801. &__archive_openssl_sha384final,
  11802. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  11803. &__archive_windowsapi_sha384init,
  11804. &__archive_windowsapi_sha384update,
  11805. &__archive_windowsapi_sha384final,
  11806. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  11807. &__archive_stub_sha384init,
  11808. &__archive_stub_sha384update,
  11809. &__archive_stub_sha384final,
  11810. #endif
  11811. /* SHA512 */
  11812. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  11813. &__archive_libc_sha512init,
  11814. &__archive_libc_sha512update,
  11815. &__archive_libc_sha512final
  11816. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  11817. &__archive_libc2_sha512init,
  11818. &__archive_libc2_sha512update,
  11819. &__archive_libc2_sha512final
  11820. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  11821. &__archive_libc3_sha512init,
  11822. &__archive_libc3_sha512update,
  11823. &__archive_libc3_sha512final
  11824. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  11825. &__archive_libmd_sha512init,
  11826. &__archive_libmd_sha512update,
  11827. &__archive_libmd_sha512final
  11828. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  11829. &__archive_libsystem_sha512init,
  11830. &__archive_libsystem_sha512update,
  11831. &__archive_libsystem_sha512final
  11832. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  11833. &__archive_nettle_sha512init,
  11834. &__archive_nettle_sha512update,
  11835. &__archive_nettle_sha512final
  11836. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  11837. &__archive_openssl_sha512init,
  11838. &__archive_openssl_sha512update,
  11839. &__archive_openssl_sha512final
  11840. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  11841. &__archive_windowsapi_sha512init,
  11842. &__archive_windowsapi_sha512update,
  11843. &__archive_windowsapi_sha512final
  11844. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  11845. &__archive_stub_sha512init,
  11846. &__archive_stub_sha512update,
  11847. &__archive_stub_sha512final
  11848. #endif
  11849. };
  11850. int
  11851. main(int argc, char **argv)
  11852. {
  11853. archive_rmd160_ctx ctx;
  11854. archive_rmd160_init(&ctx);
  11855. archive_rmd160_update(&ctx, *argv, argc);
  11856. archive_rmd160_final(&ctx, NULL);
  11857. return 0;
  11858. }
  11859. Checking support for ARCHIVE_CRYPTO_SHA1_LIBC failed with the following output:
  11860. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  11861. Run Build Command:"/usr/bin/make" "cmTC_24056/fast"
  11862. make -f CMakeFiles/cmTC_24056.dir/build.make CMakeFiles/cmTC_24056.dir/build
  11863. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  11864. Building C object CMakeFiles/cmTC_24056.dir/check_crypto_md.c.o
  11865. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_24056.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  11866. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  11867. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:67:18: fatal error: sha1.h: No such file or directory
  11868. compilation terminated.
  11869. CMakeFiles/cmTC_24056.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_24056.dir/check_crypto_md.c.o' failed
  11870. make[1]: *** [CMakeFiles/cmTC_24056.dir/check_crypto_md.c.o] Error 1
  11871. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  11872. Makefile:126: recipe for target 'cmTC_24056/fast' failed
  11873. make: *** [cmTC_24056/fast] Error 2
  11874. Source file was:
  11875. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  11876. #if defined(__osf__)
  11877. # define _OSF_SOURCE
  11878. #endif
  11879. /*
  11880. * Ensure we have C99-style int64_t, etc, all defined.
  11881. */
  11882. /* First, we need to know if the system has already defined them. */
  11883. #define HAVE_INT16_T
  11884. #define HAVE_INT32_T
  11885. #define HAVE_INT64_T
  11886. #define HAVE_INTMAX_T
  11887. #define HAVE_UINT8_T
  11888. #define HAVE_UINT16_T
  11889. #define HAVE_UINT32_T
  11890. #define HAVE_UINT64_T
  11891. #define HAVE_UINTMAX_T
  11892. /* We might have the types we want under other spellings. */
  11893. /* #undef HAVE___INT64 */
  11894. /* #undef HAVE_U_INT64_T */
  11895. /* #undef HAVE_UNSIGNED___INT64 */
  11896. /* The sizes of various standard integer types. */
  11897. #define SIZE_OF_SHORT 2
  11898. #define SIZE_OF_INT 4
  11899. #define SIZE_OF_LONG 8
  11900. #define SIZE_OF_LONG_LONG 8
  11901. #define SIZE_OF_UNSIGNED_SHORT 2
  11902. #define SIZE_OF_UNSIGNED 4
  11903. #define SIZE_OF_UNSIGNED_LONG 8
  11904. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  11905. /*
  11906. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  11907. * that exists and is the right size.
  11908. */
  11909. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  11910. typedef __int64 int64_t;
  11911. #define HAVE_INT64_T
  11912. #endif
  11913. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  11914. typedef int int64_t;
  11915. #define HAVE_INT64_T
  11916. #endif
  11917. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  11918. typedef long int64_t;
  11919. #define HAVE_INT64_T
  11920. #endif
  11921. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  11922. typedef long long int64_t;
  11923. #define HAVE_INT64_T
  11924. #endif
  11925. #if !defined(HAVE_INT64_T)
  11926. #error No 64-bit integer type was found.
  11927. #endif
  11928. /*
  11929. * Similarly for int32_t
  11930. */
  11931. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  11932. typedef int int32_t;
  11933. #define HAVE_INT32_T
  11934. #endif
  11935. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  11936. typedef long int32_t;
  11937. #define HAVE_INT32_T
  11938. #endif
  11939. #if !defined(HAVE_INT32_T)
  11940. #error No 32-bit integer type was found.
  11941. #endif
  11942. /*
  11943. * Similarly for int16_t
  11944. */
  11945. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  11946. typedef int int16_t;
  11947. #define HAVE_INT16_T
  11948. #endif
  11949. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  11950. typedef short int16_t;
  11951. #define HAVE_INT16_T
  11952. #endif
  11953. #if !defined(HAVE_INT16_T)
  11954. #error No 16-bit integer type was found.
  11955. #endif
  11956. /*
  11957. * Similarly for uint64_t
  11958. */
  11959. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  11960. typedef unsigned __int64 uint64_t;
  11961. #define HAVE_UINT64_T
  11962. #endif
  11963. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  11964. typedef unsigned uint64_t;
  11965. #define HAVE_UINT64_T
  11966. #endif
  11967. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  11968. typedef unsigned long uint64_t;
  11969. #define HAVE_UINT64_T
  11970. #endif
  11971. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  11972. typedef unsigned long long uint64_t;
  11973. #define HAVE_UINT64_T
  11974. #endif
  11975. #if !defined(HAVE_UINT64_T)
  11976. #error No 64-bit unsigned integer type was found.
  11977. #endif
  11978. /*
  11979. * Similarly for uint32_t
  11980. */
  11981. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  11982. typedef unsigned uint32_t;
  11983. #define HAVE_UINT32_T
  11984. #endif
  11985. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  11986. typedef unsigned long uint32_t;
  11987. #define HAVE_UINT32_T
  11988. #endif
  11989. #if !defined(HAVE_UINT32_T)
  11990. #error No 32-bit unsigned integer type was found.
  11991. #endif
  11992. /*
  11993. * Similarly for uint16_t
  11994. */
  11995. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  11996. typedef unsigned uint16_t;
  11997. #define HAVE_UINT16_T
  11998. #endif
  11999. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  12000. typedef unsigned short uint16_t;
  12001. #define HAVE_UINT16_T
  12002. #endif
  12003. #if !defined(HAVE_UINT16_T)
  12004. #error No 16-bit unsigned integer type was found.
  12005. #endif
  12006. /*
  12007. * Similarly for uint8_t
  12008. */
  12009. #if !defined(HAVE_UINT8_T)
  12010. typedef unsigned char uint8_t;
  12011. #define HAVE_UINT8_T
  12012. #endif
  12013. #if !defined(HAVE_UINT16_T)
  12014. #error No 8-bit unsigned integer type was found.
  12015. #endif
  12016. /* Define intmax_t and uintmax_t if they are not already defined. */
  12017. #if !defined(HAVE_INTMAX_T)
  12018. typedef int64_t intmax_t;
  12019. #endif
  12020. #if !defined(HAVE_UINTMAX_T)
  12021. typedef uint64_t uintmax_t;
  12022. #endif
  12023. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  12024. /* #undef ZLIB_WINAPI */
  12025. /* Darwin ACL support */
  12026. /* #undef ARCHIVE_ACL_DARWIN */
  12027. /* FreeBSD ACL support */
  12028. /* #undef ARCHIVE_ACL_FREEBSD */
  12029. /* FreeBSD NFSv4 ACL support */
  12030. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  12031. /* Linux POSIX.1e ACL support via libacl */
  12032. /* #undef ARCHIVE_ACL_LIBACL */
  12033. /* Linux NFSv4 ACL support via librichacl */
  12034. /* #undef ARCHIVE_ACL_LIBRICHACL */
  12035. /* Solaris ACL support */
  12036. /* #undef ARCHIVE_ACL_SUNOS */
  12037. /* Solaris NFSv4 ACL support */
  12038. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  12039. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  12040. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  12041. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  12042. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  12043. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  12044. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  12045. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  12046. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  12047. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  12048. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  12049. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  12050. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  12051. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  12052. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  12053. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  12054. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  12055. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  12056. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  12057. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  12058. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  12059. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  12060. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  12061. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  12062. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  12063. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  12064. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  12065. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  12066. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  12067. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  12068. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  12069. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  12070. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  12071. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  12072. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  12073. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  12074. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  12075. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  12076. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  12077. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  12078. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  12079. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  12080. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  12081. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  12082. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  12083. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  12084. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  12085. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  12086. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  12087. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  12088. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  12089. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  12090. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  12091. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  12092. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  12093. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  12094. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  12095. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  12096. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  12097. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  12098. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  12099. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  12100. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  12101. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  12102. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  12103. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  12104. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  12105. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  12106. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  12107. /* AIX xattr support */
  12108. /* #undef ARCHIVE_XATTR_AIX */
  12109. /* Darwin xattr support */
  12110. /* #undef ARCHIVE_XATTR_DARWIN */
  12111. /* FreeBSD xattr support */
  12112. /* #undef ARCHIVE_XATTR_FREEBSD */
  12113. /* Linux xattr support */
  12114. /* #undef ARCHIVE_XATTR_LINUX */
  12115. /* Version number of bsdcpio */
  12116. #define BSDCPIO_VERSION_STRING "3.3.2"
  12117. /* Version number of bsdtar */
  12118. #define BSDTAR_VERSION_STRING "3.3.2"
  12119. /* Version number of bsdcat */
  12120. #define BSDCAT_VERSION_STRING "3.3.2"
  12121. /* Define to 1 if you have the `acl_create_entry' function. */
  12122. /* #undef HAVE_ACL_CREATE_ENTRY */
  12123. /* Define to 1 if you have the `acl_get_fd_np' function. */
  12124. /* #undef HAVE_ACL_GET_FD_NP */
  12125. /* Define to 1 if you have the `acl_get_link' function. */
  12126. /* #undef HAVE_ACL_GET_LINK */
  12127. /* Define to 1 if you have the `acl_get_link_np' function. */
  12128. /* #undef HAVE_ACL_GET_LINK_NP */
  12129. /* Define to 1 if you have the `acl_get_perm' function. */
  12130. /* #undef HAVE_ACL_GET_PERM */
  12131. /* Define to 1 if you have the `acl_get_perm_np' function. */
  12132. /* #undef HAVE_ACL_GET_PERM_NP */
  12133. /* Define to 1 if you have the `acl_init' function. */
  12134. /* #undef HAVE_ACL_INIT */
  12135. /* Define to 1 if you have the <acl/libacl.h> header file. */
  12136. /* #undef HAVE_ACL_LIBACL_H */
  12137. /* Define to 1 if the system has the type `acl_permset_t'. */
  12138. /* #undef HAVE_ACL_PERMSET_T */
  12139. /* Define to 1 if you have the `acl_set_fd' function. */
  12140. /* #undef HAVE_ACL_SET_FD */
  12141. /* Define to 1 if you have the `acl_set_fd_np' function. */
  12142. /* #undef HAVE_ACL_SET_FD_NP */
  12143. /* Define to 1 if you have the `acl_set_file' function. */
  12144. /* #undef HAVE_ACL_SET_FILE */
  12145. /* Define to 1 if you have the `arc4random_buf' function. */
  12146. /* #undef HAVE_ARC4RANDOM_BUF */
  12147. /* Define to 1 if you have the <attr/xattr.h> header file. */
  12148. /* #undef HAVE_ATTR_XATTR_H */
  12149. /* Define to 1 if you have the <Bcrypt.h> header file. */
  12150. /* #undef HAVE_BCRYPT_H */
  12151. /* Define to 1 if you have the <bsdxml.h> header file. */
  12152. /* #undef HAVE_BSDXML_H */
  12153. /* Define to 1 if you have the <bzlib.h> header file. */
  12154. #define HAVE_BZLIB_H 1
  12155. /* Define to 1 if you have the `chflags' function. */
  12156. /* #undef HAVE_CHFLAGS */
  12157. /* Define to 1 if you have the `chown' function. */
  12158. #define HAVE_CHOWN 1
  12159. /* Define to 1 if you have the `chroot' function. */
  12160. #define HAVE_CHROOT 1
  12161. /* Define to 1 if you have the <copyfile.h> header file. */
  12162. /* #undef HAVE_COPYFILE_H */
  12163. /* Define to 1 if you have the `ctime_r' function. */
  12164. #define HAVE_CTIME_R 1
  12165. /* Define to 1 if you have the <ctype.h> header file. */
  12166. #define HAVE_CTYPE_H 1
  12167. /* Define to 1 if you have the `cygwin_conv_path' function. */
  12168. /* #undef HAVE_CYGWIN_CONV_PATH */
  12169. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  12170. don't. */
  12171. /* #undef HAVE_DECL_ACE_GETACL */
  12172. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  12173. don't. */
  12174. /* #undef HAVE_DECL_ACE_GETACLCNT */
  12175. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  12176. don't. */
  12177. /* #undef HAVE_DECL_ACE_SETACL */
  12178. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  12179. you don't. */
  12180. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  12181. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  12182. you don't. */
  12183. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  12184. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  12185. don't. */
  12186. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  12187. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  12188. don't. */
  12189. /* #undef HAVE_DECL_ACL_USER */
  12190. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  12191. don't. */
  12192. #define HAVE_DECL_INT32_MAX 1
  12193. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  12194. don't. */
  12195. #define HAVE_DECL_INT32_MIN 1
  12196. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  12197. don't. */
  12198. #define HAVE_DECL_INT64_MAX 1
  12199. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  12200. don't. */
  12201. #define HAVE_DECL_INT64_MIN 1
  12202. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  12203. don't. */
  12204. #define HAVE_DECL_INTMAX_MAX 1
  12205. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  12206. don't. */
  12207. #define HAVE_DECL_INTMAX_MIN 1
  12208. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  12209. */
  12210. /* #undef HAVE_DECL_SETACL */
  12211. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  12212. don't. */
  12213. #define HAVE_DECL_SIZE_MAX 1
  12214. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  12215. don't. */
  12216. #define HAVE_DECL_SSIZE_MAX 1
  12217. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  12218. don't. */
  12219. #define HAVE_DECL_STRERROR_R 1
  12220. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  12221. don't. */
  12222. #define HAVE_DECL_UINT32_MAX 1
  12223. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  12224. don't. */
  12225. #define HAVE_DECL_UINT64_MAX 1
  12226. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  12227. don't. */
  12228. #define HAVE_DECL_UINTMAX_MAX 1
  12229. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  12230. you don't. */
  12231. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  12232. /* Define to 1 if you have the <direct.h> header file. */
  12233. /* #undef HAVE_DIRECT_H */
  12234. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  12235. */
  12236. #define HAVE_DIRENT_H 1
  12237. /* Define to 1 if you have the `dirfd' function. */
  12238. #define HAVE_DIRFD 1
  12239. /* Define to 1 if you have the <dlfcn.h> header file. */
  12240. #define HAVE_DLFCN_H 1
  12241. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  12242. /* #undef HAVE_DOPRNT */
  12243. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  12244. /* #undef HAVE_D_MD_ORDER */
  12245. /* A possible errno value for invalid file format errors */
  12246. /* #undef HAVE_EFTYPE */
  12247. /* A possible errno value for invalid file format errors */
  12248. #define HAVE_EILSEQ 1
  12249. /* Define to 1 if you have the <errno.h> header file. */
  12250. #define HAVE_ERRNO_H 1
  12251. /* Define to 1 if you have the <expat.h> header file. */
  12252. /* #undef HAVE_EXPAT_H */
  12253. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  12254. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  12255. /* Define to 1 if you have the `extattr_get_file' function. */
  12256. /* #undef HAVE_EXTATTR_GET_FILE */
  12257. /* Define to 1 if you have the `extattr_list_file' function. */
  12258. /* #undef HAVE_EXTATTR_LIST_FILE */
  12259. /* Define to 1 if you have the `extattr_set_fd' function. */
  12260. /* #undef HAVE_EXTATTR_SET_FD */
  12261. /* Define to 1 if you have the `extattr_set_file' function. */
  12262. /* #undef HAVE_EXTATTR_SET_FILE */
  12263. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  12264. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  12265. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  12266. */
  12267. /* #undef HAVE_DECL_GETACL */
  12268. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  12269. don't. */
  12270. /* #undef HAVE_DECL_GETACLCNT */
  12271. /* Define to 1 if you have the `fchdir' function. */
  12272. #define HAVE_FCHDIR 1
  12273. /* Define to 1 if you have the `fchflags' function. */
  12274. /* #undef HAVE_FCHFLAGS */
  12275. /* Define to 1 if you have the `fchmod' function. */
  12276. #define HAVE_FCHMOD 1
  12277. /* Define to 1 if you have the `fchown' function. */
  12278. #define HAVE_FCHOWN 1
  12279. /* Define to 1 if you have the `fcntl' function. */
  12280. #define HAVE_FCNTL 1
  12281. /* Define to 1 if you have the <fcntl.h> header file. */
  12282. #define HAVE_FCNTL_H 1
  12283. /* Define to 1 if you have the `fdopendir' function. */
  12284. #define HAVE_FDOPENDIR 1
  12285. /* Define to 1 if you have the `fgetea' function. */
  12286. /* #undef HAVE_FGETEA */
  12287. /* Define to 1 if you have the `fgetxattr' function. */
  12288. /* #undef HAVE_FGETXATTR */
  12289. /* Define to 1 if you have the `flistea' function. */
  12290. /* #undef HAVE_FLISTEA */
  12291. /* Define to 1 if you have the `flistxattr' function. */
  12292. /* #undef HAVE_FLISTXATTR */
  12293. /* Define to 1 if you have the `fork' function. */
  12294. #define HAVE_FORK 1
  12295. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  12296. #define HAVE_FSEEKO 1
  12297. /* Define to 1 if you have the `fsetea' function. */
  12298. /* #undef HAVE_FSETEA */
  12299. /* Define to 1 if you have the `fsetxattr' function. */
  12300. #define HAVE_FSETXATTR 1
  12301. /* Define to 1 if you have the `fstat' function. */
  12302. #define HAVE_FSTAT 1
  12303. /* Define to 1 if you have the `fstatat' function. */
  12304. #define HAVE_FSTATAT 1
  12305. /* Define to 1 if you have the `fstatfs' function. */
  12306. #define HAVE_FSTATFS 1
  12307. /* Define to 1 if you have the `fstatvfs' function. */
  12308. #define HAVE_FSTATVFS 1
  12309. /* Define to 1 if you have the `ftruncate' function. */
  12310. #define HAVE_FTRUNCATE 1
  12311. /* Define to 1 if you have the `futimens' function. */
  12312. #define HAVE_FUTIMENS 1
  12313. /* Define to 1 if you have the `futimes' function. */
  12314. #define HAVE_FUTIMES 1
  12315. /* Define to 1 if you have the `futimesat' function. */
  12316. #define HAVE_FUTIMESAT 1
  12317. /* Define to 1 if you have the `getea' function. */
  12318. /* #undef HAVE_GETEA */
  12319. /* Define to 1 if you have the `geteuid' function. */
  12320. #define HAVE_GETEUID 1
  12321. /* Define to 1 if you have the `getgrgid_r' function. */
  12322. #define HAVE_GETGRGID_R 1
  12323. /* Define to 1 if you have the `getgrnam_r' function. */
  12324. #define HAVE_GETGRNAM_R 1
  12325. /* Define to 1 if you have the `getpid' function. */
  12326. #define HAVE_GETPID 1
  12327. /* Define to 1 if you have the `getpwnam_r' function. */
  12328. #define HAVE_GETPWNAM_R 1
  12329. /* Define to 1 if you have the `getpwuid_r' function. */
  12330. #define HAVE_GETPWUID_R 1
  12331. /* Define to 1 if you have the `getvfsbyname' function. */
  12332. /* #undef HAVE_GETVFSBYNAME */
  12333. /* Define to 1 if you have the `getxattr' function. */
  12334. /* #undef HAVE_GETXATTR */
  12335. /* Define to 1 if you have the `gmtime_r' function. */
  12336. #define HAVE_GMTIME_R 1
  12337. /* Define to 1 if you have the <grp.h> header file. */
  12338. #define HAVE_GRP_H 1
  12339. /* Define to 1 if you have the `iconv' function. */
  12340. /* #undef HAVE_ICONV */
  12341. /* Define to 1 if you have the <iconv.h> header file. */
  12342. /* #undef HAVE_ICONV_H */
  12343. /* Define to 1 if you have the <inttypes.h> header file. */
  12344. #define HAVE_INTTYPES_H 1
  12345. /* Define to 1 if you have the <io.h> header file. */
  12346. /* #undef HAVE_IO_H */
  12347. /* Define to 1 if you have the <langinfo.h> header file. */
  12348. #define HAVE_LANGINFO_H 1
  12349. /* Define to 1 if you have the `lchflags' function. */
  12350. /* #undef HAVE_LCHFLAGS */
  12351. /* Define to 1 if you have the `lchmod' function. */
  12352. /* #undef HAVE_LCHMOD */
  12353. /* Define to 1 if you have the `lchown' function. */
  12354. #define HAVE_LCHOWN 1
  12355. /* Define to 1 if you have the `lgetea' function. */
  12356. /* #undef HAVE_LGETEA */
  12357. /* Define to 1 if you have the `lgetxattr' function. */
  12358. /* #undef HAVE_LGETXATTR */
  12359. /* Define to 1 if you have the `acl' library (-lacl). */
  12360. /* #undef HAVE_LIBACL */
  12361. /* Define to 1 if you have the `attr' library (-lattr). */
  12362. /* #undef HAVE_LIBATTR */
  12363. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  12364. /* #undef HAVE_LIBBSDXML */
  12365. /* Define to 1 if you have the `bz2' library (-lbz2). */
  12366. #define HAVE_LIBBZ2 1
  12367. /* Define to 1 if you have the `charset' library (-lcharset). */
  12368. /* #undef HAVE_LIBCHARSET */
  12369. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  12370. #define HAVE_LIBCRYPTO 1
  12371. /* Define to 1 if you have the `expat' library (-lexpat). */
  12372. /* #undef HAVE_LIBEXPAT */
  12373. /* Define to 1 if you have the `gcc' library (-lgcc). */
  12374. /* #undef HAVE_LIBGCC */
  12375. /* Define to 1 if you have the `lz4' library (-llz4). */
  12376. /* #undef HAVE_LIBLZ4 */
  12377. /* Define to 1 if you have the `lzma' library (-llzma). */
  12378. #define HAVE_LIBLZMA 1
  12379. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  12380. /* #undef HAVE_LIBLZMADEC */
  12381. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  12382. /* #undef HAVE_LIBLZO2 */
  12383. /* Define to 1 if you have the `nettle' library (-lnettle). */
  12384. /* #undef HAVE_LIBNETTLE */
  12385. /* Define to 1 if you have the `pcre' library (-lpcre). */
  12386. /* #undef HAVE_LIBPCRE */
  12387. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  12388. /* #undef HAVE_LIBPCREPOSIX */
  12389. /* Define to 1 if you have the `xml2' library (-lxml2). */
  12390. /* #undef HAVE_LIBXML2 */
  12391. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  12392. /* #undef HAVE_LIBXML_XMLREADER_H */
  12393. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  12394. /* #undef HAVE_LIBXML_XMLWRITER_H */
  12395. /* Define to 1 if you have the `z' library (-lz). */
  12396. #define HAVE_LIBZ 1
  12397. /* Define to 1 if you have the <limits.h> header file. */
  12398. #define HAVE_LIMITS_H 1
  12399. /* Define to 1 if you have the `link' function. */
  12400. #define HAVE_LINK 1
  12401. /* Define to 1 if you have the <linux/types.h> header file. */
  12402. #define HAVE_LINUX_TYPES_H 1
  12403. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  12404. #define HAVE_LINUX_FIEMAP_H 1
  12405. /* Define to 1 if you have the <linux/fs.h> header file. */
  12406. #define HAVE_LINUX_FS_H 1
  12407. /* Define to 1 if you have the <linux/magic.h> header file. */
  12408. #define HAVE_LINUX_MAGIC_H 1
  12409. /* Define to 1 if you have the <linux/types.h> header file. */
  12410. #define HAVE_LINUX_TYPES_H 1
  12411. /* Define to 1 if you have the `listea' function. */
  12412. /* #undef HAVE_LISTEA */
  12413. /* Define to 1 if you have the `listxattr' function. */
  12414. /* #undef HAVE_LISTXATTR */
  12415. /* Define to 1 if you have the `llistea' function. */
  12416. /* #undef HAVE_LLISTEA */
  12417. /* Define to 1 if you have the `llistxattr' function. */
  12418. /* #undef HAVE_LLISTXATTR */
  12419. /* Define to 1 if you have the <localcharset.h> header file. */
  12420. /* #undef HAVE_LOCALCHARSET_H */
  12421. /* Define to 1 if you have the `locale_charset' function. */
  12422. /* #undef HAVE_LOCALE_CHARSET */
  12423. /* Define to 1 if you have the <locale.h> header file. */
  12424. #define HAVE_LOCALE_H 1
  12425. /* Define to 1 if you have the `localtime_r' function. */
  12426. #define HAVE_LOCALTIME_R 1
  12427. /* Define to 1 if the system has the type `long long int'. */
  12428. /* #undef HAVE_LONG_LONG_INT */
  12429. /* Define to 1 if you have the `lsetea' function. */
  12430. /* #undef HAVE_LSETEA */
  12431. /* Define to 1 if you have the `lsetxattr' function. */
  12432. /* #undef HAVE_LSETXATTR */
  12433. /* Define to 1 if you have the `lstat' function. */
  12434. #define HAVE_LSTAT 1
  12435. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  12436. zero-length file name argument. */
  12437. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  12438. /* Define to 1 if you have the `lutimes' function. */
  12439. #define HAVE_LUTIMES 1
  12440. /* Define to 1 if you have the <lz4hc.h> header file. */
  12441. /* #undef HAVE_LZ4HC_H */
  12442. /* Define to 1 if you have the <lz4.h> header file. */
  12443. /* #undef HAVE_LZ4_H */
  12444. /* Define to 1 if you have the <lzmadec.h> header file. */
  12445. /* #undef HAVE_LZMADEC_H */
  12446. /* Define to 1 if you have the <lzma.h> header file. */
  12447. #define HAVE_LZMA_H 1
  12448. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  12449. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  12450. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  12451. /* #undef HAVE_LZO_LZO1X_H */
  12452. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  12453. /* #undef HAVE_LZO_LZOCONF_H */
  12454. /* Define to 1 if you have the `mbrtowc' function. */
  12455. #define HAVE_MBRTOWC 1
  12456. /* Define to 1 if you have the <membership.h> header file. */
  12457. /* #undef HAVE_MEMBERSHIP_H */
  12458. /* Define to 1 if you have the `memmove' function. */
  12459. #define HAVE_MEMMOVE 1
  12460. /* Define to 1 if you have the <memory.h> header file. */
  12461. #define HAVE_MEMORY_H 1
  12462. /* Define to 1 if you have the `mkdir' function. */
  12463. #define HAVE_MKDIR 1
  12464. /* Define to 1 if you have the `mkfifo' function. */
  12465. #define HAVE_MKFIFO 1
  12466. /* Define to 1 if you have the `mknod' function. */
  12467. #define HAVE_MKNOD 1
  12468. /* Define to 1 if you have the `mkstemp' function. */
  12469. #define HAVE_MKSTEMP 1
  12470. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  12471. /* #undef HAVE_NDIR_H */
  12472. /* Define to 1 if you have the <nettle/aes.h> header file. */
  12473. /* #undef HAVE_NETTLE_AES_H */
  12474. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  12475. /* #undef HAVE_NETTLE_HMAC_H */
  12476. /* Define to 1 if you have the <nettle/md5.h> header file. */
  12477. /* #undef HAVE_NETTLE_MD5_H */
  12478. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  12479. /* #undef HAVE_NETTLE_PBKDF2_H */
  12480. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  12481. /* #undef HAVE_NETTLE_RIPEMD160_H */
  12482. /* Define to 1 if you have the <nettle/sha.h> header file. */
  12483. /* #undef HAVE_NETTLE_SHA_H */
  12484. /* Define to 1 if you have the `nl_langinfo' function. */
  12485. #define HAVE_NL_LANGINFO 1
  12486. /* Define to 1 if you have the `openat' function. */
  12487. #define HAVE_OPENAT 1
  12488. /* Define to 1 if you have the <paths.h> header file. */
  12489. #define HAVE_PATHS_H 1
  12490. /* Define to 1 if you have the <pcreposix.h> header file. */
  12491. /* #undef HAVE_PCREPOSIX_H */
  12492. /* Define to 1 if you have the `pipe' function. */
  12493. #define HAVE_PIPE 1
  12494. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  12495. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  12496. /* Define to 1 if you have the `poll' function. */
  12497. #define HAVE_POLL 1
  12498. /* Define to 1 if you have the <poll.h> header file. */
  12499. #define HAVE_POLL_H 1
  12500. /* Define to 1 if you have the `posix_spawnp' function. */
  12501. #define HAVE_POSIX_SPAWNP 1
  12502. /* Define to 1 if you have the <process.h> header file. */
  12503. /* #undef HAVE_PROCESS_H */
  12504. /* Define to 1 if you have the <pthread.h> header file. */
  12505. /* #undef HAVE_PTHREAD_H */
  12506. /* Define to 1 if you have the <pwd.h> header file. */
  12507. #define HAVE_PWD_H 1
  12508. /* Define to 1 if you have the `readdir_r' function. */
  12509. #define HAVE_READDIR_R 1
  12510. /* Define to 1 if you have the `readlink' function. */
  12511. #define HAVE_READLINK 1
  12512. /* Define to 1 if you have the `readlinkat' function. */
  12513. #define HAVE_READLINKAT 1
  12514. /* Define to 1 if you have the `readpassphrase' function. */
  12515. /* #undef HAVE_READPASSPHRASE */
  12516. /* Define to 1 if you have the <readpassphrase.h> header file. */
  12517. /* #undef HAVE_READPASSPHRASE_H */
  12518. /* Define to 1 if you have the <regex.h> header file. */
  12519. #define HAVE_REGEX_H 1
  12520. /* Define to 1 if you have the `select' function. */
  12521. #define HAVE_SELECT 1
  12522. /* Define to 1 if you have the `setenv' function. */
  12523. #define HAVE_SETENV 1
  12524. /* Define to 1 if you have the `setlocale' function. */
  12525. #define HAVE_SETLOCALE 1
  12526. /* Define to 1 if you have the `sigaction' function. */
  12527. #define HAVE_SIGACTION 1
  12528. /* Define to 1 if you have the <signal.h> header file. */
  12529. #define HAVE_SIGNAL_H 1
  12530. /* Define to 1 if you have the <spawn.h> header file. */
  12531. #define HAVE_SPAWN_H 1
  12532. /* Define to 1 if you have the `statfs' function. */
  12533. #define HAVE_STATFS 1
  12534. /* Define to 1 if you have the `statvfs' function. */
  12535. #define HAVE_STATVFS 1
  12536. /* Define to 1 if `stat' has the bug that it succeeds when given the
  12537. zero-length file name argument. */
  12538. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  12539. /* Define to 1 if you have the <stdarg.h> header file. */
  12540. #define HAVE_STDARG_H 1
  12541. /* Define to 1 if you have the <stdint.h> header file. */
  12542. #define HAVE_STDINT_H 1
  12543. /* Define to 1 if you have the <stdlib.h> header file. */
  12544. #define HAVE_STDLIB_H 1
  12545. /* Define to 1 if you have the `strchr' function. */
  12546. #define HAVE_STRCHR 1
  12547. /* Define to 1 if you have the `strdup' function. */
  12548. #define HAVE_STRDUP 1
  12549. /* Define to 1 if you have the `strerror' function. */
  12550. #define HAVE_STRERROR 1
  12551. /* Define to 1 if you have the `strerror_r' function. */
  12552. #define HAVE_STRERROR_R 1
  12553. /* Define to 1 if you have the `strftime' function. */
  12554. #define HAVE_STRFTIME 1
  12555. /* Define to 1 if you have the <strings.h> header file. */
  12556. #define HAVE_STRINGS_H 1
  12557. /* Define to 1 if you have the <string.h> header file. */
  12558. #define HAVE_STRING_H 1
  12559. /* Define to 1 if you have the `strrchr' function. */
  12560. #define HAVE_STRRCHR 1
  12561. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  12562. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  12563. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  12564. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  12565. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  12566. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  12567. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  12568. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  12569. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  12570. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  12571. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  12572. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  12573. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  12574. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  12575. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  12576. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  12577. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  12578. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  12579. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  12580. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  12581. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  12582. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  12583. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  12584. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  12585. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  12586. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  12587. /* Define to 1 if you have `struct vfsconf'. */
  12588. /* #undef HAVE_STRUCT_VFSCONF */
  12589. /* Define to 1 if you have `struct xvfsconf'. */
  12590. /* #undef HAVE_STRUCT_XVFSCONF */
  12591. /* Define to 1 if you have the `symlink' function. */
  12592. #define HAVE_SYMLINK 1
  12593. /* Define to 1 if you have the <sys/acl.h> header file. */
  12594. /* #undef HAVE_SYS_ACL_H */
  12595. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  12596. #define HAVE_SYS_CDEFS_H 1
  12597. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  12598. */
  12599. /* #undef HAVE_SYS_DIR_H */
  12600. /* Define to 1 if you have the <sys/ea.h> header file. */
  12601. /* #undef HAVE_SYS_EA_H */
  12602. /* Define to 1 if you have the <sys/extattr.h> header file. */
  12603. /* #undef HAVE_SYS_EXTATTR_H */
  12604. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  12605. #define HAVE_SYS_IOCTL_H 1
  12606. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  12607. /* #undef HAVE_SYS_MKDEV_H */
  12608. /* Define to 1 if you have the <sys/mount.h> header file. */
  12609. /* #undef HAVE_SYS_MOUNT_H */
  12610. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  12611. */
  12612. /* #undef HAVE_SYS_NDIR_H */
  12613. /* Define to 1 if you have the <sys/param.h> header file. */
  12614. #define HAVE_SYS_PARAM_H 1
  12615. /* Define to 1 if you have the <sys/poll.h> header file. */
  12616. #define HAVE_SYS_POLL_H 1
  12617. /* Define to 1 if you have the <sys/richacl.h> header file. */
  12618. /* #undef HAVE_SYS_RICHACL_H */
  12619. /* Define to 1 if you have the <sys/select.h> header file. */
  12620. #define HAVE_SYS_SELECT_H 1
  12621. /* Define to 1 if you have the <sys/statfs.h> header file. */
  12622. #define HAVE_SYS_STATFS_H 1
  12623. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  12624. #define HAVE_SYS_STATVFS_H 1
  12625. /* Define to 1 if you have the <sys/stat.h> header file. */
  12626. #define HAVE_SYS_STAT_H 1
  12627. /* Define to 1 if you have the <sys/time.h> header file. */
  12628. #define HAVE_SYS_TIME_H 1
  12629. /* Define to 1 if you have the <sys/types.h> header file. */
  12630. #define HAVE_SYS_TYPES_H 1
  12631. /* Define to 1 if you have the <sys/utime.h> header file. */
  12632. /* #undef HAVE_SYS_UTIME_H */
  12633. /* Define to 1 if you have the <sys/utsname.h> header file. */
  12634. #define HAVE_SYS_UTSNAME_H 1
  12635. /* Define to 1 if you have the <sys/vfs.h> header file. */
  12636. #define HAVE_SYS_VFS_H 1
  12637. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  12638. #define HAVE_SYS_WAIT_H 1
  12639. /* Define to 1 if you have the <sys/xattr.h> header file. */
  12640. #define HAVE_SYS_XATTR_H 1
  12641. /* Define to 1 if you have the `timegm' function. */
  12642. #define HAVE_TIMEGM 1
  12643. /* Define to 1 if you have the <time.h> header file. */
  12644. #define HAVE_TIME_H 1
  12645. /* Define to 1 if you have the `tzset' function. */
  12646. #define HAVE_TZSET 1
  12647. /* Define to 1 if you have the <unistd.h> header file. */
  12648. #define HAVE_UNISTD_H 1
  12649. /* Define to 1 if you have the `unsetenv' function. */
  12650. #define HAVE_UNSETENV 1
  12651. /* Define to 1 if the system has the type `unsigned long long'. */
  12652. /* #undef HAVE_UNSIGNED_LONG_LONG */
  12653. /* Define to 1 if the system has the type `unsigned long long int'. */
  12654. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  12655. /* Define to 1 if you have the `utime' function. */
  12656. #define HAVE_UTIME 1
  12657. /* Define to 1 if you have the `utimensat' function. */
  12658. #define HAVE_UTIMENSAT 1
  12659. /* Define to 1 if you have the `utimes' function. */
  12660. #define HAVE_UTIMES 1
  12661. /* Define to 1 if you have the <utime.h> header file. */
  12662. #define HAVE_UTIME_H 1
  12663. /* Define to 1 if you have the `vfork' function. */
  12664. #define HAVE_VFORK 1
  12665. /* Define to 1 if you have the `vprintf' function. */
  12666. #define HAVE_VPRINTF 1
  12667. /* Define to 1 if you have the <wchar.h> header file. */
  12668. #define HAVE_WCHAR_H 1
  12669. /* Define to 1 if the system has the type `wchar_t'. */
  12670. #define HAVE_WCHAR_T 1
  12671. /* Define to 1 if you have the `wcrtomb' function. */
  12672. #define HAVE_WCRTOMB 1
  12673. /* Define to 1 if you have the `wcscmp' function. */
  12674. #define HAVE_WCSCMP 1
  12675. /* Define to 1 if you have the `wcscpy' function. */
  12676. #define HAVE_WCSCPY 1
  12677. /* Define to 1 if you have the `wcslen' function. */
  12678. #define HAVE_WCSLEN 1
  12679. /* Define to 1 if you have the `wctomb' function. */
  12680. #define HAVE_WCTOMB 1
  12681. /* Define to 1 if you have the <wctype.h> header file. */
  12682. #define HAVE_WCTYPE_H 1
  12683. /* Define to 1 if you have the <wincrypt.h> header file. */
  12684. /* #undef HAVE_WINCRYPT_H */
  12685. /* Define to 1 if you have the <windows.h> header file. */
  12686. /* #undef HAVE_WINDOWS_H */
  12687. /* Define to 1 if you have the <winioctl.h> header file. */
  12688. /* #undef HAVE_WINIOCTL_H */
  12689. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  12690. /* #undef HAVE__CrtSetReportMode */
  12691. /* Define to 1 if you have the `wmemcmp' function. */
  12692. #define HAVE_WMEMCMP 1
  12693. /* Define to 1 if you have the `wmemcpy' function. */
  12694. #define HAVE_WMEMCPY 1
  12695. /* Define to 1 if you have the `wmemmove' function. */
  12696. #define HAVE_WMEMMOVE 1
  12697. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  12698. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  12699. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  12700. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  12701. /* Define to 1 if you have the <zlib.h> header file. */
  12702. #define HAVE_ZLIB_H 1
  12703. /* Define to 1 if you have the `_ctime64_s' function. */
  12704. /* #undef HAVE__CTIME64_S */
  12705. /* Define to 1 if you have the `_fseeki64' function. */
  12706. /* #undef HAVE__FSEEKI64 */
  12707. /* Define to 1 if you have the `_get_timezone' function. */
  12708. /* #undef HAVE__GET_TIMEZONE */
  12709. /* Define to 1 if you have the `_localtime64_s' function. */
  12710. /* #undef HAVE__LOCALTIME64_S */
  12711. /* Define to 1 if you have the `_mkgmtime64' function. */
  12712. /* #undef HAVE__MKGMTIME64 */
  12713. /* Define as const if the declaration of iconv() needs const. */
  12714. #define ICONV_CONST
  12715. /* Version number of libarchive as a single integer */
  12716. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  12717. /* Version number of libarchive */
  12718. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  12719. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  12720. slash. */
  12721. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  12722. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  12723. */
  12724. /* #undef MAJOR_IN_MKDEV */
  12725. /* Define to 1 if `major', `minor', and `makedev' are declared in
  12726. <sysmacros.h>. */
  12727. #define MAJOR_IN_SYSMACROS 1
  12728. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  12729. /* #undef NO_MINUS_C_MINUS_O */
  12730. /* The size of `wchar_t', as computed by sizeof. */
  12731. #define SIZEOF_WCHAR_T 4
  12732. /* Define to 1 if strerror_r returns char *. */
  12733. /* #undef STRERROR_R_CHAR_P */
  12734. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  12735. #define TIME_WITH_SYS_TIME 1
  12736. /*
  12737. * Some platform requires a macro to use extension functions.
  12738. */
  12739. #define SAFE_TO_DEFINE_EXTENSIONS 1
  12740. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  12741. /* Enable extensions on AIX 3, Interix. */
  12742. #ifndef _ALL_SOURCE
  12743. # define _ALL_SOURCE 1
  12744. #endif
  12745. /* Enable GNU extensions on systems that have them. */
  12746. #ifndef _GNU_SOURCE
  12747. # define _GNU_SOURCE 1
  12748. #endif
  12749. /* Enable threading extensions on Solaris. */
  12750. #ifndef _POSIX_PTHREAD_SEMANTICS
  12751. # define _POSIX_PTHREAD_SEMANTICS 1
  12752. #endif
  12753. /* Enable extensions on HP NonStop. */
  12754. #ifndef _TANDEM_SOURCE
  12755. # define _TANDEM_SOURCE 1
  12756. #endif
  12757. /* Enable general extensions on Solaris. */
  12758. #ifndef __EXTENSIONS__
  12759. # define __EXTENSIONS__ 1
  12760. #endif
  12761. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  12762. /* Version number of package */
  12763. #define VERSION "3.3.2"
  12764. /* Number of bits in a file offset, on hosts where this is settable. */
  12765. /* #undef _FILE_OFFSET_BITS */
  12766. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  12767. /* #undef _LARGEFILE_SOURCE */
  12768. /* Define for large files, on AIX-style hosts. */
  12769. /* #undef _LARGE_FILES */
  12770. /* Define to control Windows SDK version */
  12771. #ifndef NTDDI_VERSION
  12772. /* #undef NTDDI_VERSION */
  12773. #endif // NTDDI_VERSION
  12774. #ifndef _WIN32_WINNT
  12775. /* #undef _WIN32_WINNT */
  12776. #endif // _WIN32_WINNT
  12777. #ifndef WINVER
  12778. /* #undef WINVER */
  12779. #endif // WINVER
  12780. /* Define to empty if `const' does not conform to ANSI C. */
  12781. /* #undef const */
  12782. /* Define to `int' if <sys/types.h> doesn't define. */
  12783. /* #undef gid_t */
  12784. /* Define to `unsigned long' if <sys/types.h> does not define. */
  12785. /* #undef id_t */
  12786. /* Define to `int' if <sys/types.h> does not define. */
  12787. /* #undef mode_t */
  12788. /* Define to `long long' if <sys/types.h> does not define. */
  12789. /* #undef off_t */
  12790. /* Define to `int' if <sys/types.h> doesn't define. */
  12791. /* #undef pid_t */
  12792. /* Define to `unsigned int' if <sys/types.h> does not define. */
  12793. /* #undef size_t */
  12794. /* Define to `int' if <sys/types.h> does not define. */
  12795. /* #undef ssize_t */
  12796. /* Define to `int' if <sys/types.h> doesn't define. */
  12797. /* #undef uid_t */
  12798. /* Define to `int' if <sys/types.h> does not define. */
  12799. /* #undef intptr_t */
  12800. /* Define to `unsigned int' if <sys/types.h> does not define. */
  12801. /* #undef uintptr_t */
  12802. #define ARCHIVE_SHA1_COMPILE_TEST
  12803. #define ARCHIVE_CRYPTO_SHA1_LIBC
  12804. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  12805. /*-
  12806. * Copyright (c) 2003-2007 Tim Kientzle
  12807. * Copyright (c) 2011 Andres Mejia
  12808. * Copyright (c) 2011 Michihiro NAKAJIMA
  12809. * All rights reserved.
  12810. *
  12811. * Redistribution and use in source and binary forms, with or without
  12812. * modification, are permitted provided that the following conditions
  12813. * are met:
  12814. * 1. Redistributions of source code must retain the above copyright
  12815. * notice, this list of conditions and the following disclaimer.
  12816. * 2. Redistributions in binary form must reproduce the above copyright
  12817. * notice, this list of conditions and the following disclaimer in the
  12818. * documentation and/or other materials provided with the distribution.
  12819. *
  12820. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  12821. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  12822. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  12823. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  12824. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  12825. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  12826. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  12827. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  12828. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  12829. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  12830. */
  12831. #include "archive_platform.h"
  12832. #include "archive.h"
  12833. #include "archive_digest_private.h"
  12834. /* In particular, force the configure probe to break if it tries
  12835. * to test a combination of OpenSSL and libmd. */
  12836. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  12837. #error Cannot use both OpenSSL and libmd.
  12838. #endif
  12839. /*
  12840. * Message digest functions for Windows platform.
  12841. */
  12842. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  12843. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  12844. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  12845. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  12846. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  12847. /*
  12848. * Initialize a Message digest.
  12849. */
  12850. static int
  12851. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  12852. {
  12853. ctx->valid = 0;
  12854. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  12855. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  12856. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  12857. return (ARCHIVE_FAILED);
  12858. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  12859. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  12860. return (ARCHIVE_FAILED);
  12861. }
  12862. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  12863. CryptReleaseContext(ctx->cryptProv, 0);
  12864. return (ARCHIVE_FAILED);
  12865. }
  12866. ctx->valid = 1;
  12867. return (ARCHIVE_OK);
  12868. }
  12869. /*
  12870. * Update a Message digest.
  12871. */
  12872. static int
  12873. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  12874. {
  12875. if (!ctx->valid)
  12876. return (ARCHIVE_FAILED);
  12877. CryptHashData(ctx->hash,
  12878. (unsigned char *)(uintptr_t)buf,
  12879. (DWORD)len, 0);
  12880. return (ARCHIVE_OK);
  12881. }
  12882. static int
  12883. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  12884. {
  12885. DWORD siglen = (DWORD)bufsize;
  12886. if (!ctx->valid)
  12887. return (ARCHIVE_FAILED);
  12888. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  12889. CryptDestroyHash(ctx->hash);
  12890. CryptReleaseContext(ctx->cryptProv, 0);
  12891. ctx->valid = 0;
  12892. return (ARCHIVE_OK);
  12893. }
  12894. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  12895. /* MD5 implementations */
  12896. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  12897. static int
  12898. __archive_libc_md5init(archive_md5_ctx *ctx)
  12899. {
  12900. MD5Init(ctx);
  12901. return (ARCHIVE_OK);
  12902. }
  12903. static int
  12904. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  12905. size_t insize)
  12906. {
  12907. MD5Update(ctx, indata, insize);
  12908. return (ARCHIVE_OK);
  12909. }
  12910. static int
  12911. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  12912. {
  12913. MD5Final(md, ctx);
  12914. return (ARCHIVE_OK);
  12915. }
  12916. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  12917. static int
  12918. __archive_libmd_md5init(archive_md5_ctx *ctx)
  12919. {
  12920. MD5Init(ctx);
  12921. return (ARCHIVE_OK);
  12922. }
  12923. static int
  12924. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  12925. size_t insize)
  12926. {
  12927. MD5Update(ctx, indata, insize);
  12928. return (ARCHIVE_OK);
  12929. }
  12930. static int
  12931. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  12932. {
  12933. MD5Final(md, ctx);
  12934. return (ARCHIVE_OK);
  12935. }
  12936. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  12937. static int
  12938. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  12939. {
  12940. CC_MD5_Init(ctx);
  12941. return (ARCHIVE_OK);
  12942. }
  12943. static int
  12944. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  12945. size_t insize)
  12946. {
  12947. CC_MD5_Update(ctx, indata, insize);
  12948. return (ARCHIVE_OK);
  12949. }
  12950. static int
  12951. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  12952. {
  12953. CC_MD5_Final(md, ctx);
  12954. return (ARCHIVE_OK);
  12955. }
  12956. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  12957. static int
  12958. __archive_nettle_md5init(archive_md5_ctx *ctx)
  12959. {
  12960. md5_init(ctx);
  12961. return (ARCHIVE_OK);
  12962. }
  12963. static int
  12964. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  12965. size_t insize)
  12966. {
  12967. md5_update(ctx, insize, indata);
  12968. return (ARCHIVE_OK);
  12969. }
  12970. static int
  12971. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  12972. {
  12973. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  12974. return (ARCHIVE_OK);
  12975. }
  12976. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  12977. static int
  12978. __archive_openssl_md5init(archive_md5_ctx *ctx)
  12979. {
  12980. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  12981. return (ARCHIVE_FAILED);
  12982. EVP_DigestInit(*ctx, EVP_md5());
  12983. return (ARCHIVE_OK);
  12984. }
  12985. static int
  12986. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  12987. size_t insize)
  12988. {
  12989. EVP_DigestUpdate(*ctx, indata, insize);
  12990. return (ARCHIVE_OK);
  12991. }
  12992. static int
  12993. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  12994. {
  12995. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  12996. * this is meant to cope with that. Real fix is probably to fix
  12997. * archive_write_set_format_xar.c
  12998. */
  12999. if (*ctx) {
  13000. EVP_DigestFinal(*ctx, md, NULL);
  13001. EVP_MD_CTX_free(*ctx);
  13002. *ctx = NULL;
  13003. }
  13004. return (ARCHIVE_OK);
  13005. }
  13006. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  13007. static int
  13008. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  13009. {
  13010. return (win_crypto_init(ctx, CALG_MD5));
  13011. }
  13012. static int
  13013. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  13014. size_t insize)
  13015. {
  13016. return (win_crypto_Update(ctx, indata, insize));
  13017. }
  13018. static int
  13019. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  13020. {
  13021. return (win_crypto_Final(md, 16, ctx));
  13022. }
  13023. #else
  13024. static int
  13025. __archive_stub_md5init(archive_md5_ctx *ctx)
  13026. {
  13027. (void)ctx; /* UNUSED */
  13028. return (ARCHIVE_FAILED);
  13029. }
  13030. static int
  13031. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  13032. size_t insize)
  13033. {
  13034. (void)ctx; /* UNUSED */
  13035. (void)indata; /* UNUSED */
  13036. (void)insize; /* UNUSED */
  13037. return (ARCHIVE_FAILED);
  13038. }
  13039. static int
  13040. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  13041. {
  13042. (void)ctx; /* UNUSED */
  13043. (void)md; /* UNUSED */
  13044. return (ARCHIVE_FAILED);
  13045. }
  13046. #endif
  13047. /* RIPEMD160 implementations */
  13048. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  13049. static int
  13050. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  13051. {
  13052. RMD160Init(ctx);
  13053. return (ARCHIVE_OK);
  13054. }
  13055. static int
  13056. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  13057. size_t insize)
  13058. {
  13059. RMD160Update(ctx, indata, insize);
  13060. return (ARCHIVE_OK);
  13061. }
  13062. static int
  13063. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  13064. {
  13065. RMD160Final(md, ctx);
  13066. return (ARCHIVE_OK);
  13067. }
  13068. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  13069. static int
  13070. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  13071. {
  13072. RIPEMD160_Init(ctx);
  13073. return (ARCHIVE_OK);
  13074. }
  13075. static int
  13076. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  13077. size_t insize)
  13078. {
  13079. RIPEMD160_Update(ctx, indata, insize);
  13080. return (ARCHIVE_OK);
  13081. }
  13082. static int
  13083. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  13084. {
  13085. RIPEMD160_Final(md, ctx);
  13086. return (ARCHIVE_OK);
  13087. }
  13088. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  13089. static int
  13090. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  13091. {
  13092. ripemd160_init(ctx);
  13093. return (ARCHIVE_OK);
  13094. }
  13095. static int
  13096. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  13097. size_t insize)
  13098. {
  13099. ripemd160_update(ctx, insize, indata);
  13100. return (ARCHIVE_OK);
  13101. }
  13102. static int
  13103. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  13104. {
  13105. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  13106. return (ARCHIVE_OK);
  13107. }
  13108. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  13109. static int
  13110. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  13111. {
  13112. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  13113. return (ARCHIVE_FAILED);
  13114. EVP_DigestInit(*ctx, EVP_ripemd160());
  13115. return (ARCHIVE_OK);
  13116. }
  13117. static int
  13118. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  13119. size_t insize)
  13120. {
  13121. EVP_DigestUpdate(*ctx, indata, insize);
  13122. return (ARCHIVE_OK);
  13123. }
  13124. static int
  13125. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  13126. {
  13127. if (*ctx) {
  13128. EVP_DigestFinal(*ctx, md, NULL);
  13129. EVP_MD_CTX_free(*ctx);
  13130. *ctx = NULL;
  13131. }
  13132. return (ARCHIVE_OK);
  13133. }
  13134. #else
  13135. static int
  13136. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  13137. {
  13138. (void)ctx; /* UNUSED */
  13139. return (ARCHIVE_FAILED);
  13140. }
  13141. static int
  13142. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  13143. size_t insize)
  13144. {
  13145. (void)ctx; /* UNUSED */
  13146. (void)indata; /* UNUSED */
  13147. (void)insize; /* UNUSED */
  13148. return (ARCHIVE_FAILED);
  13149. }
  13150. static int
  13151. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  13152. {
  13153. (void)ctx; /* UNUSED */
  13154. (void)md; /* UNUSED */
  13155. return (ARCHIVE_FAILED);
  13156. }
  13157. #endif
  13158. /* SHA1 implementations */
  13159. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  13160. static int
  13161. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  13162. {
  13163. SHA1Init(ctx);
  13164. return (ARCHIVE_OK);
  13165. }
  13166. static int
  13167. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  13168. size_t insize)
  13169. {
  13170. SHA1Update(ctx, indata, insize);
  13171. return (ARCHIVE_OK);
  13172. }
  13173. static int
  13174. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  13175. {
  13176. SHA1Final(md, ctx);
  13177. return (ARCHIVE_OK);
  13178. }
  13179. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  13180. static int
  13181. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  13182. {
  13183. SHA1_Init(ctx);
  13184. return (ARCHIVE_OK);
  13185. }
  13186. static int
  13187. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  13188. size_t insize)
  13189. {
  13190. SHA1_Update(ctx, indata, insize);
  13191. return (ARCHIVE_OK);
  13192. }
  13193. static int
  13194. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  13195. {
  13196. SHA1_Final(md, ctx);
  13197. return (ARCHIVE_OK);
  13198. }
  13199. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  13200. static int
  13201. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  13202. {
  13203. CC_SHA1_Init(ctx);
  13204. return (ARCHIVE_OK);
  13205. }
  13206. static int
  13207. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  13208. size_t insize)
  13209. {
  13210. CC_SHA1_Update(ctx, indata, insize);
  13211. return (ARCHIVE_OK);
  13212. }
  13213. static int
  13214. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  13215. {
  13216. CC_SHA1_Final(md, ctx);
  13217. return (ARCHIVE_OK);
  13218. }
  13219. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  13220. static int
  13221. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  13222. {
  13223. sha1_init(ctx);
  13224. return (ARCHIVE_OK);
  13225. }
  13226. static int
  13227. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  13228. size_t insize)
  13229. {
  13230. sha1_update(ctx, insize, indata);
  13231. return (ARCHIVE_OK);
  13232. }
  13233. static int
  13234. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  13235. {
  13236. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  13237. return (ARCHIVE_OK);
  13238. }
  13239. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  13240. static int
  13241. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  13242. {
  13243. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  13244. return (ARCHIVE_FAILED);
  13245. EVP_DigestInit(*ctx, EVP_sha1());
  13246. return (ARCHIVE_OK);
  13247. }
  13248. static int
  13249. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  13250. size_t insize)
  13251. {
  13252. EVP_DigestUpdate(*ctx, indata, insize);
  13253. return (ARCHIVE_OK);
  13254. }
  13255. static int
  13256. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  13257. {
  13258. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  13259. * this is meant to cope with that. Real fix is probably to fix
  13260. * archive_write_set_format_xar.c
  13261. */
  13262. if (*ctx) {
  13263. EVP_DigestFinal(*ctx, md, NULL);
  13264. EVP_MD_CTX_free(*ctx);
  13265. *ctx = NULL;
  13266. }
  13267. return (ARCHIVE_OK);
  13268. }
  13269. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  13270. static int
  13271. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  13272. {
  13273. return (win_crypto_init(ctx, CALG_SHA1));
  13274. }
  13275. static int
  13276. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  13277. size_t insize)
  13278. {
  13279. return (win_crypto_Update(ctx, indata, insize));
  13280. }
  13281. static int
  13282. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  13283. {
  13284. return (win_crypto_Final(md, 20, ctx));
  13285. }
  13286. #else
  13287. static int
  13288. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  13289. {
  13290. (void)ctx; /* UNUSED */
  13291. return (ARCHIVE_FAILED);
  13292. }
  13293. static int
  13294. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  13295. size_t insize)
  13296. {
  13297. (void)ctx; /* UNUSED */
  13298. (void)indata; /* UNUSED */
  13299. (void)insize; /* UNUSED */
  13300. return (ARCHIVE_FAILED);
  13301. }
  13302. static int
  13303. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  13304. {
  13305. (void)ctx; /* UNUSED */
  13306. (void)md; /* UNUSED */
  13307. return (ARCHIVE_FAILED);
  13308. }
  13309. #endif
  13310. /* SHA256 implementations */
  13311. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  13312. static int
  13313. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  13314. {
  13315. SHA256_Init(ctx);
  13316. return (ARCHIVE_OK);
  13317. }
  13318. static int
  13319. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  13320. size_t insize)
  13321. {
  13322. SHA256_Update(ctx, indata, insize);
  13323. return (ARCHIVE_OK);
  13324. }
  13325. static int
  13326. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  13327. {
  13328. SHA256_Final(md, ctx);
  13329. return (ARCHIVE_OK);
  13330. }
  13331. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  13332. static int
  13333. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  13334. {
  13335. SHA256Init(ctx);
  13336. return (ARCHIVE_OK);
  13337. }
  13338. static int
  13339. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  13340. size_t insize)
  13341. {
  13342. SHA256Update(ctx, indata, insize);
  13343. return (ARCHIVE_OK);
  13344. }
  13345. static int
  13346. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  13347. {
  13348. SHA256Final(md, ctx);
  13349. return (ARCHIVE_OK);
  13350. }
  13351. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  13352. static int
  13353. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  13354. {
  13355. SHA256Init(ctx);
  13356. return (ARCHIVE_OK);
  13357. }
  13358. static int
  13359. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  13360. size_t insize)
  13361. {
  13362. SHA256Update(ctx, indata, insize);
  13363. return (ARCHIVE_OK);
  13364. }
  13365. static int
  13366. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  13367. {
  13368. SHA256Final(md, ctx);
  13369. return (ARCHIVE_OK);
  13370. }
  13371. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  13372. static int
  13373. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  13374. {
  13375. SHA256_Init(ctx);
  13376. return (ARCHIVE_OK);
  13377. }
  13378. static int
  13379. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  13380. size_t insize)
  13381. {
  13382. SHA256_Update(ctx, indata, insize);
  13383. return (ARCHIVE_OK);
  13384. }
  13385. static int
  13386. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  13387. {
  13388. SHA256_Final(md, ctx);
  13389. return (ARCHIVE_OK);
  13390. }
  13391. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  13392. static int
  13393. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  13394. {
  13395. CC_SHA256_Init(ctx);
  13396. return (ARCHIVE_OK);
  13397. }
  13398. static int
  13399. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  13400. size_t insize)
  13401. {
  13402. CC_SHA256_Update(ctx, indata, insize);
  13403. return (ARCHIVE_OK);
  13404. }
  13405. static int
  13406. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  13407. {
  13408. CC_SHA256_Final(md, ctx);
  13409. return (ARCHIVE_OK);
  13410. }
  13411. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  13412. static int
  13413. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  13414. {
  13415. sha256_init(ctx);
  13416. return (ARCHIVE_OK);
  13417. }
  13418. static int
  13419. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  13420. size_t insize)
  13421. {
  13422. sha256_update(ctx, insize, indata);
  13423. return (ARCHIVE_OK);
  13424. }
  13425. static int
  13426. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  13427. {
  13428. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  13429. return (ARCHIVE_OK);
  13430. }
  13431. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  13432. static int
  13433. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  13434. {
  13435. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  13436. return (ARCHIVE_FAILED);
  13437. EVP_DigestInit(*ctx, EVP_sha256());
  13438. return (ARCHIVE_OK);
  13439. }
  13440. static int
  13441. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  13442. size_t insize)
  13443. {
  13444. EVP_DigestUpdate(*ctx, indata, insize);
  13445. return (ARCHIVE_OK);
  13446. }
  13447. static int
  13448. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  13449. {
  13450. if (*ctx) {
  13451. EVP_DigestFinal(*ctx, md, NULL);
  13452. EVP_MD_CTX_free(*ctx);
  13453. *ctx = NULL;
  13454. }
  13455. return (ARCHIVE_OK);
  13456. }
  13457. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  13458. static int
  13459. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  13460. {
  13461. return (win_crypto_init(ctx, CALG_SHA_256));
  13462. }
  13463. static int
  13464. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  13465. size_t insize)
  13466. {
  13467. return (win_crypto_Update(ctx, indata, insize));
  13468. }
  13469. static int
  13470. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  13471. {
  13472. return (win_crypto_Final(md, 32, ctx));
  13473. }
  13474. #else
  13475. static int
  13476. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  13477. {
  13478. (void)ctx; /* UNUSED */
  13479. return (ARCHIVE_FAILED);
  13480. }
  13481. static int
  13482. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  13483. size_t insize)
  13484. {
  13485. (void)ctx; /* UNUSED */
  13486. (void)indata; /* UNUSED */
  13487. (void)insize; /* UNUSED */
  13488. return (ARCHIVE_FAILED);
  13489. }
  13490. static int
  13491. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  13492. {
  13493. (void)ctx; /* UNUSED */
  13494. (void)md; /* UNUSED */
  13495. return (ARCHIVE_FAILED);
  13496. }
  13497. #endif
  13498. /* SHA384 implementations */
  13499. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  13500. static int
  13501. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  13502. {
  13503. SHA384_Init(ctx);
  13504. return (ARCHIVE_OK);
  13505. }
  13506. static int
  13507. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  13508. size_t insize)
  13509. {
  13510. SHA384_Update(ctx, indata, insize);
  13511. return (ARCHIVE_OK);
  13512. }
  13513. static int
  13514. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  13515. {
  13516. SHA384_Final(md, ctx);
  13517. return (ARCHIVE_OK);
  13518. }
  13519. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  13520. static int
  13521. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  13522. {
  13523. SHA384Init(ctx);
  13524. return (ARCHIVE_OK);
  13525. }
  13526. static int
  13527. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  13528. size_t insize)
  13529. {
  13530. SHA384Update(ctx, indata, insize);
  13531. return (ARCHIVE_OK);
  13532. }
  13533. static int
  13534. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  13535. {
  13536. SHA384Final(md, ctx);
  13537. return (ARCHIVE_OK);
  13538. }
  13539. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  13540. static int
  13541. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  13542. {
  13543. SHA384Init(ctx);
  13544. return (ARCHIVE_OK);
  13545. }
  13546. static int
  13547. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  13548. size_t insize)
  13549. {
  13550. SHA384Update(ctx, indata, insize);
  13551. return (ARCHIVE_OK);
  13552. }
  13553. static int
  13554. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  13555. {
  13556. SHA384Final(md, ctx);
  13557. return (ARCHIVE_OK);
  13558. }
  13559. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  13560. static int
  13561. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  13562. {
  13563. CC_SHA384_Init(ctx);
  13564. return (ARCHIVE_OK);
  13565. }
  13566. static int
  13567. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  13568. size_t insize)
  13569. {
  13570. CC_SHA384_Update(ctx, indata, insize);
  13571. return (ARCHIVE_OK);
  13572. }
  13573. static int
  13574. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  13575. {
  13576. CC_SHA384_Final(md, ctx);
  13577. return (ARCHIVE_OK);
  13578. }
  13579. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  13580. static int
  13581. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  13582. {
  13583. sha384_init(ctx);
  13584. return (ARCHIVE_OK);
  13585. }
  13586. static int
  13587. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  13588. size_t insize)
  13589. {
  13590. sha384_update(ctx, insize, indata);
  13591. return (ARCHIVE_OK);
  13592. }
  13593. static int
  13594. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  13595. {
  13596. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  13597. return (ARCHIVE_OK);
  13598. }
  13599. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  13600. static int
  13601. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  13602. {
  13603. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  13604. return (ARCHIVE_FAILED);
  13605. EVP_DigestInit(*ctx, EVP_sha384());
  13606. return (ARCHIVE_OK);
  13607. }
  13608. static int
  13609. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  13610. size_t insize)
  13611. {
  13612. EVP_DigestUpdate(*ctx, indata, insize);
  13613. return (ARCHIVE_OK);
  13614. }
  13615. static int
  13616. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  13617. {
  13618. if (*ctx) {
  13619. EVP_DigestFinal(*ctx, md, NULL);
  13620. EVP_MD_CTX_free(*ctx);
  13621. *ctx = NULL;
  13622. }
  13623. return (ARCHIVE_OK);
  13624. }
  13625. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  13626. static int
  13627. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  13628. {
  13629. return (win_crypto_init(ctx, CALG_SHA_384));
  13630. }
  13631. static int
  13632. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  13633. size_t insize)
  13634. {
  13635. return (win_crypto_Update(ctx, indata, insize));
  13636. }
  13637. static int
  13638. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  13639. {
  13640. return (win_crypto_Final(md, 48, ctx));
  13641. }
  13642. #else
  13643. static int
  13644. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  13645. {
  13646. (void)ctx; /* UNUSED */
  13647. return (ARCHIVE_FAILED);
  13648. }
  13649. static int
  13650. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  13651. size_t insize)
  13652. {
  13653. (void)ctx; /* UNUSED */
  13654. (void)indata; /* UNUSED */
  13655. (void)insize; /* UNUSED */
  13656. return (ARCHIVE_FAILED);
  13657. }
  13658. static int
  13659. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  13660. {
  13661. (void)ctx; /* UNUSED */
  13662. (void)md; /* UNUSED */
  13663. return (ARCHIVE_FAILED);
  13664. }
  13665. #endif
  13666. /* SHA512 implementations */
  13667. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  13668. static int
  13669. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  13670. {
  13671. SHA512_Init(ctx);
  13672. return (ARCHIVE_OK);
  13673. }
  13674. static int
  13675. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  13676. size_t insize)
  13677. {
  13678. SHA512_Update(ctx, indata, insize);
  13679. return (ARCHIVE_OK);
  13680. }
  13681. static int
  13682. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  13683. {
  13684. SHA512_Final(md, ctx);
  13685. return (ARCHIVE_OK);
  13686. }
  13687. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  13688. static int
  13689. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  13690. {
  13691. SHA512Init(ctx);
  13692. return (ARCHIVE_OK);
  13693. }
  13694. static int
  13695. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  13696. size_t insize)
  13697. {
  13698. SHA512Update(ctx, indata, insize);
  13699. return (ARCHIVE_OK);
  13700. }
  13701. static int
  13702. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  13703. {
  13704. SHA512Final(md, ctx);
  13705. return (ARCHIVE_OK);
  13706. }
  13707. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  13708. static int
  13709. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  13710. {
  13711. SHA512Init(ctx);
  13712. return (ARCHIVE_OK);
  13713. }
  13714. static int
  13715. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  13716. size_t insize)
  13717. {
  13718. SHA512Update(ctx, indata, insize);
  13719. return (ARCHIVE_OK);
  13720. }
  13721. static int
  13722. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  13723. {
  13724. SHA512Final(md, ctx);
  13725. return (ARCHIVE_OK);
  13726. }
  13727. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  13728. static int
  13729. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  13730. {
  13731. SHA512_Init(ctx);
  13732. return (ARCHIVE_OK);
  13733. }
  13734. static int
  13735. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  13736. size_t insize)
  13737. {
  13738. SHA512_Update(ctx, indata, insize);
  13739. return (ARCHIVE_OK);
  13740. }
  13741. static int
  13742. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  13743. {
  13744. SHA512_Final(md, ctx);
  13745. return (ARCHIVE_OK);
  13746. }
  13747. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  13748. static int
  13749. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  13750. {
  13751. CC_SHA512_Init(ctx);
  13752. return (ARCHIVE_OK);
  13753. }
  13754. static int
  13755. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  13756. size_t insize)
  13757. {
  13758. CC_SHA512_Update(ctx, indata, insize);
  13759. return (ARCHIVE_OK);
  13760. }
  13761. static int
  13762. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  13763. {
  13764. CC_SHA512_Final(md, ctx);
  13765. return (ARCHIVE_OK);
  13766. }
  13767. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  13768. static int
  13769. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  13770. {
  13771. sha512_init(ctx);
  13772. return (ARCHIVE_OK);
  13773. }
  13774. static int
  13775. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  13776. size_t insize)
  13777. {
  13778. sha512_update(ctx, insize, indata);
  13779. return (ARCHIVE_OK);
  13780. }
  13781. static int
  13782. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  13783. {
  13784. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  13785. return (ARCHIVE_OK);
  13786. }
  13787. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  13788. static int
  13789. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  13790. {
  13791. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  13792. return (ARCHIVE_FAILED);
  13793. EVP_DigestInit(*ctx, EVP_sha512());
  13794. return (ARCHIVE_OK);
  13795. }
  13796. static int
  13797. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  13798. size_t insize)
  13799. {
  13800. EVP_DigestUpdate(*ctx, indata, insize);
  13801. return (ARCHIVE_OK);
  13802. }
  13803. static int
  13804. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  13805. {
  13806. if (*ctx) {
  13807. EVP_DigestFinal(*ctx, md, NULL);
  13808. EVP_MD_CTX_free(*ctx);
  13809. *ctx = NULL;
  13810. }
  13811. return (ARCHIVE_OK);
  13812. }
  13813. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  13814. static int
  13815. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  13816. {
  13817. return (win_crypto_init(ctx, CALG_SHA_512));
  13818. }
  13819. static int
  13820. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  13821. size_t insize)
  13822. {
  13823. return (win_crypto_Update(ctx, indata, insize));
  13824. }
  13825. static int
  13826. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  13827. {
  13828. return (win_crypto_Final(md, 64, ctx));
  13829. }
  13830. #else
  13831. static int
  13832. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  13833. {
  13834. (void)ctx; /* UNUSED */
  13835. return (ARCHIVE_FAILED);
  13836. }
  13837. static int
  13838. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  13839. size_t insize)
  13840. {
  13841. (void)ctx; /* UNUSED */
  13842. (void)indata; /* UNUSED */
  13843. (void)insize; /* UNUSED */
  13844. return (ARCHIVE_FAILED);
  13845. }
  13846. static int
  13847. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  13848. {
  13849. (void)ctx; /* UNUSED */
  13850. (void)md; /* UNUSED */
  13851. return (ARCHIVE_FAILED);
  13852. }
  13853. #endif
  13854. /* NOTE: Message Digest functions are set based on availability and by the
  13855. * following order of preference.
  13856. * 1. libc
  13857. * 2. libc2
  13858. * 3. libc3
  13859. * 4. libSystem
  13860. * 5. Nettle
  13861. * 6. OpenSSL
  13862. * 7. libmd
  13863. * 8. Windows API
  13864. */
  13865. const struct archive_digest __archive_digest =
  13866. {
  13867. /* MD5 */
  13868. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  13869. &__archive_libc_md5init,
  13870. &__archive_libc_md5update,
  13871. &__archive_libc_md5final,
  13872. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  13873. &__archive_libmd_md5init,
  13874. &__archive_libmd_md5update,
  13875. &__archive_libmd_md5final,
  13876. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  13877. &__archive_libsystem_md5init,
  13878. &__archive_libsystem_md5update,
  13879. &__archive_libsystem_md5final,
  13880. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  13881. &__archive_nettle_md5init,
  13882. &__archive_nettle_md5update,
  13883. &__archive_nettle_md5final,
  13884. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  13885. &__archive_openssl_md5init,
  13886. &__archive_openssl_md5update,
  13887. &__archive_openssl_md5final,
  13888. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  13889. &__archive_windowsapi_md5init,
  13890. &__archive_windowsapi_md5update,
  13891. &__archive_windowsapi_md5final,
  13892. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  13893. &__archive_stub_md5init,
  13894. &__archive_stub_md5update,
  13895. &__archive_stub_md5final,
  13896. #endif
  13897. /* RIPEMD160 */
  13898. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  13899. &__archive_libc_ripemd160init,
  13900. &__archive_libc_ripemd160update,
  13901. &__archive_libc_ripemd160final,
  13902. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  13903. &__archive_libmd_ripemd160init,
  13904. &__archive_libmd_ripemd160update,
  13905. &__archive_libmd_ripemd160final,
  13906. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  13907. &__archive_nettle_ripemd160init,
  13908. &__archive_nettle_ripemd160update,
  13909. &__archive_nettle_ripemd160final,
  13910. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  13911. &__archive_openssl_ripemd160init,
  13912. &__archive_openssl_ripemd160update,
  13913. &__archive_openssl_ripemd160final,
  13914. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  13915. &__archive_stub_ripemd160init,
  13916. &__archive_stub_ripemd160update,
  13917. &__archive_stub_ripemd160final,
  13918. #endif
  13919. /* SHA1 */
  13920. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  13921. &__archive_libc_sha1init,
  13922. &__archive_libc_sha1update,
  13923. &__archive_libc_sha1final,
  13924. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  13925. &__archive_libmd_sha1init,
  13926. &__archive_libmd_sha1update,
  13927. &__archive_libmd_sha1final,
  13928. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  13929. &__archive_libsystem_sha1init,
  13930. &__archive_libsystem_sha1update,
  13931. &__archive_libsystem_sha1final,
  13932. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  13933. &__archive_nettle_sha1init,
  13934. &__archive_nettle_sha1update,
  13935. &__archive_nettle_sha1final,
  13936. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  13937. &__archive_openssl_sha1init,
  13938. &__archive_openssl_sha1update,
  13939. &__archive_openssl_sha1final,
  13940. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  13941. &__archive_windowsapi_sha1init,
  13942. &__archive_windowsapi_sha1update,
  13943. &__archive_windowsapi_sha1final,
  13944. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  13945. &__archive_stub_sha1init,
  13946. &__archive_stub_sha1update,
  13947. &__archive_stub_sha1final,
  13948. #endif
  13949. /* SHA256 */
  13950. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  13951. &__archive_libc_sha256init,
  13952. &__archive_libc_sha256update,
  13953. &__archive_libc_sha256final,
  13954. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  13955. &__archive_libc2_sha256init,
  13956. &__archive_libc2_sha256update,
  13957. &__archive_libc2_sha256final,
  13958. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  13959. &__archive_libc3_sha256init,
  13960. &__archive_libc3_sha256update,
  13961. &__archive_libc3_sha256final,
  13962. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  13963. &__archive_libmd_sha256init,
  13964. &__archive_libmd_sha256update,
  13965. &__archive_libmd_sha256final,
  13966. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  13967. &__archive_libsystem_sha256init,
  13968. &__archive_libsystem_sha256update,
  13969. &__archive_libsystem_sha256final,
  13970. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  13971. &__archive_nettle_sha256init,
  13972. &__archive_nettle_sha256update,
  13973. &__archive_nettle_sha256final,
  13974. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  13975. &__archive_openssl_sha256init,
  13976. &__archive_openssl_sha256update,
  13977. &__archive_openssl_sha256final,
  13978. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  13979. &__archive_windowsapi_sha256init,
  13980. &__archive_windowsapi_sha256update,
  13981. &__archive_windowsapi_sha256final,
  13982. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  13983. &__archive_stub_sha256init,
  13984. &__archive_stub_sha256update,
  13985. &__archive_stub_sha256final,
  13986. #endif
  13987. /* SHA384 */
  13988. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  13989. &__archive_libc_sha384init,
  13990. &__archive_libc_sha384update,
  13991. &__archive_libc_sha384final,
  13992. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  13993. &__archive_libc2_sha384init,
  13994. &__archive_libc2_sha384update,
  13995. &__archive_libc2_sha384final,
  13996. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  13997. &__archive_libc3_sha384init,
  13998. &__archive_libc3_sha384update,
  13999. &__archive_libc3_sha384final,
  14000. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  14001. &__archive_libsystem_sha384init,
  14002. &__archive_libsystem_sha384update,
  14003. &__archive_libsystem_sha384final,
  14004. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  14005. &__archive_nettle_sha384init,
  14006. &__archive_nettle_sha384update,
  14007. &__archive_nettle_sha384final,
  14008. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  14009. &__archive_openssl_sha384init,
  14010. &__archive_openssl_sha384update,
  14011. &__archive_openssl_sha384final,
  14012. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  14013. &__archive_windowsapi_sha384init,
  14014. &__archive_windowsapi_sha384update,
  14015. &__archive_windowsapi_sha384final,
  14016. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  14017. &__archive_stub_sha384init,
  14018. &__archive_stub_sha384update,
  14019. &__archive_stub_sha384final,
  14020. #endif
  14021. /* SHA512 */
  14022. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  14023. &__archive_libc_sha512init,
  14024. &__archive_libc_sha512update,
  14025. &__archive_libc_sha512final
  14026. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  14027. &__archive_libc2_sha512init,
  14028. &__archive_libc2_sha512update,
  14029. &__archive_libc2_sha512final
  14030. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  14031. &__archive_libc3_sha512init,
  14032. &__archive_libc3_sha512update,
  14033. &__archive_libc3_sha512final
  14034. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  14035. &__archive_libmd_sha512init,
  14036. &__archive_libmd_sha512update,
  14037. &__archive_libmd_sha512final
  14038. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  14039. &__archive_libsystem_sha512init,
  14040. &__archive_libsystem_sha512update,
  14041. &__archive_libsystem_sha512final
  14042. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  14043. &__archive_nettle_sha512init,
  14044. &__archive_nettle_sha512update,
  14045. &__archive_nettle_sha512final
  14046. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  14047. &__archive_openssl_sha512init,
  14048. &__archive_openssl_sha512update,
  14049. &__archive_openssl_sha512final
  14050. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  14051. &__archive_windowsapi_sha512init,
  14052. &__archive_windowsapi_sha512update,
  14053. &__archive_windowsapi_sha512final
  14054. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  14055. &__archive_stub_sha512init,
  14056. &__archive_stub_sha512update,
  14057. &__archive_stub_sha512final
  14058. #endif
  14059. };
  14060. int
  14061. main(int argc, char **argv)
  14062. {
  14063. archive_sha1_ctx ctx;
  14064. archive_sha1_init(&ctx);
  14065. archive_sha1_update(&ctx, *argv, argc);
  14066. archive_sha1_final(&ctx, NULL);
  14067. return 0;
  14068. }
  14069. Checking support for ARCHIVE_CRYPTO_SHA256_LIBC failed with the following output:
  14070. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  14071. Run Build Command:"/usr/bin/make" "cmTC_51c39/fast"
  14072. make -f CMakeFiles/cmTC_51c39.dir/build.make CMakeFiles/cmTC_51c39.dir/build
  14073. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  14074. Building C object CMakeFiles/cmTC_51c39.dir/check_crypto_md.c.o
  14075. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_51c39.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  14076. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  14077. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory
  14078. compilation terminated.
  14079. CMakeFiles/cmTC_51c39.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_51c39.dir/check_crypto_md.c.o' failed
  14080. make[1]: *** [CMakeFiles/cmTC_51c39.dir/check_crypto_md.c.o] Error 1
  14081. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  14082. Makefile:126: recipe for target 'cmTC_51c39/fast' failed
  14083. make: *** [cmTC_51c39/fast] Error 2
  14084. Source file was:
  14085. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  14086. #if defined(__osf__)
  14087. # define _OSF_SOURCE
  14088. #endif
  14089. /*
  14090. * Ensure we have C99-style int64_t, etc, all defined.
  14091. */
  14092. /* First, we need to know if the system has already defined them. */
  14093. #define HAVE_INT16_T
  14094. #define HAVE_INT32_T
  14095. #define HAVE_INT64_T
  14096. #define HAVE_INTMAX_T
  14097. #define HAVE_UINT8_T
  14098. #define HAVE_UINT16_T
  14099. #define HAVE_UINT32_T
  14100. #define HAVE_UINT64_T
  14101. #define HAVE_UINTMAX_T
  14102. /* We might have the types we want under other spellings. */
  14103. /* #undef HAVE___INT64 */
  14104. /* #undef HAVE_U_INT64_T */
  14105. /* #undef HAVE_UNSIGNED___INT64 */
  14106. /* The sizes of various standard integer types. */
  14107. #define SIZE_OF_SHORT 2
  14108. #define SIZE_OF_INT 4
  14109. #define SIZE_OF_LONG 8
  14110. #define SIZE_OF_LONG_LONG 8
  14111. #define SIZE_OF_UNSIGNED_SHORT 2
  14112. #define SIZE_OF_UNSIGNED 4
  14113. #define SIZE_OF_UNSIGNED_LONG 8
  14114. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  14115. /*
  14116. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  14117. * that exists and is the right size.
  14118. */
  14119. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  14120. typedef __int64 int64_t;
  14121. #define HAVE_INT64_T
  14122. #endif
  14123. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  14124. typedef int int64_t;
  14125. #define HAVE_INT64_T
  14126. #endif
  14127. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  14128. typedef long int64_t;
  14129. #define HAVE_INT64_T
  14130. #endif
  14131. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  14132. typedef long long int64_t;
  14133. #define HAVE_INT64_T
  14134. #endif
  14135. #if !defined(HAVE_INT64_T)
  14136. #error No 64-bit integer type was found.
  14137. #endif
  14138. /*
  14139. * Similarly for int32_t
  14140. */
  14141. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  14142. typedef int int32_t;
  14143. #define HAVE_INT32_T
  14144. #endif
  14145. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  14146. typedef long int32_t;
  14147. #define HAVE_INT32_T
  14148. #endif
  14149. #if !defined(HAVE_INT32_T)
  14150. #error No 32-bit integer type was found.
  14151. #endif
  14152. /*
  14153. * Similarly for int16_t
  14154. */
  14155. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  14156. typedef int int16_t;
  14157. #define HAVE_INT16_T
  14158. #endif
  14159. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  14160. typedef short int16_t;
  14161. #define HAVE_INT16_T
  14162. #endif
  14163. #if !defined(HAVE_INT16_T)
  14164. #error No 16-bit integer type was found.
  14165. #endif
  14166. /*
  14167. * Similarly for uint64_t
  14168. */
  14169. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  14170. typedef unsigned __int64 uint64_t;
  14171. #define HAVE_UINT64_T
  14172. #endif
  14173. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  14174. typedef unsigned uint64_t;
  14175. #define HAVE_UINT64_T
  14176. #endif
  14177. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  14178. typedef unsigned long uint64_t;
  14179. #define HAVE_UINT64_T
  14180. #endif
  14181. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  14182. typedef unsigned long long uint64_t;
  14183. #define HAVE_UINT64_T
  14184. #endif
  14185. #if !defined(HAVE_UINT64_T)
  14186. #error No 64-bit unsigned integer type was found.
  14187. #endif
  14188. /*
  14189. * Similarly for uint32_t
  14190. */
  14191. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  14192. typedef unsigned uint32_t;
  14193. #define HAVE_UINT32_T
  14194. #endif
  14195. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  14196. typedef unsigned long uint32_t;
  14197. #define HAVE_UINT32_T
  14198. #endif
  14199. #if !defined(HAVE_UINT32_T)
  14200. #error No 32-bit unsigned integer type was found.
  14201. #endif
  14202. /*
  14203. * Similarly for uint16_t
  14204. */
  14205. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  14206. typedef unsigned uint16_t;
  14207. #define HAVE_UINT16_T
  14208. #endif
  14209. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  14210. typedef unsigned short uint16_t;
  14211. #define HAVE_UINT16_T
  14212. #endif
  14213. #if !defined(HAVE_UINT16_T)
  14214. #error No 16-bit unsigned integer type was found.
  14215. #endif
  14216. /*
  14217. * Similarly for uint8_t
  14218. */
  14219. #if !defined(HAVE_UINT8_T)
  14220. typedef unsigned char uint8_t;
  14221. #define HAVE_UINT8_T
  14222. #endif
  14223. #if !defined(HAVE_UINT16_T)
  14224. #error No 8-bit unsigned integer type was found.
  14225. #endif
  14226. /* Define intmax_t and uintmax_t if they are not already defined. */
  14227. #if !defined(HAVE_INTMAX_T)
  14228. typedef int64_t intmax_t;
  14229. #endif
  14230. #if !defined(HAVE_UINTMAX_T)
  14231. typedef uint64_t uintmax_t;
  14232. #endif
  14233. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  14234. /* #undef ZLIB_WINAPI */
  14235. /* Darwin ACL support */
  14236. /* #undef ARCHIVE_ACL_DARWIN */
  14237. /* FreeBSD ACL support */
  14238. /* #undef ARCHIVE_ACL_FREEBSD */
  14239. /* FreeBSD NFSv4 ACL support */
  14240. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  14241. /* Linux POSIX.1e ACL support via libacl */
  14242. /* #undef ARCHIVE_ACL_LIBACL */
  14243. /* Linux NFSv4 ACL support via librichacl */
  14244. /* #undef ARCHIVE_ACL_LIBRICHACL */
  14245. /* Solaris ACL support */
  14246. /* #undef ARCHIVE_ACL_SUNOS */
  14247. /* Solaris NFSv4 ACL support */
  14248. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  14249. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  14250. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  14251. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  14252. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  14253. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  14254. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  14255. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  14256. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  14257. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  14258. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  14259. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  14260. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  14261. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  14262. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  14263. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  14264. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  14265. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  14266. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  14267. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  14268. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  14269. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  14270. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  14271. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  14272. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  14273. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  14274. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  14275. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  14276. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  14277. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  14278. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  14279. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  14280. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  14281. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  14282. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  14283. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  14284. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  14285. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  14286. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  14287. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  14288. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  14289. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  14290. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  14291. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  14292. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  14293. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  14294. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  14295. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  14296. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  14297. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  14298. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  14299. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  14300. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  14301. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  14302. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  14303. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  14304. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  14305. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  14306. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  14307. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  14308. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  14309. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  14310. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  14311. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  14312. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  14313. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  14314. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  14315. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  14316. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  14317. /* AIX xattr support */
  14318. /* #undef ARCHIVE_XATTR_AIX */
  14319. /* Darwin xattr support */
  14320. /* #undef ARCHIVE_XATTR_DARWIN */
  14321. /* FreeBSD xattr support */
  14322. /* #undef ARCHIVE_XATTR_FREEBSD */
  14323. /* Linux xattr support */
  14324. /* #undef ARCHIVE_XATTR_LINUX */
  14325. /* Version number of bsdcpio */
  14326. #define BSDCPIO_VERSION_STRING "3.3.2"
  14327. /* Version number of bsdtar */
  14328. #define BSDTAR_VERSION_STRING "3.3.2"
  14329. /* Version number of bsdcat */
  14330. #define BSDCAT_VERSION_STRING "3.3.2"
  14331. /* Define to 1 if you have the `acl_create_entry' function. */
  14332. /* #undef HAVE_ACL_CREATE_ENTRY */
  14333. /* Define to 1 if you have the `acl_get_fd_np' function. */
  14334. /* #undef HAVE_ACL_GET_FD_NP */
  14335. /* Define to 1 if you have the `acl_get_link' function. */
  14336. /* #undef HAVE_ACL_GET_LINK */
  14337. /* Define to 1 if you have the `acl_get_link_np' function. */
  14338. /* #undef HAVE_ACL_GET_LINK_NP */
  14339. /* Define to 1 if you have the `acl_get_perm' function. */
  14340. /* #undef HAVE_ACL_GET_PERM */
  14341. /* Define to 1 if you have the `acl_get_perm_np' function. */
  14342. /* #undef HAVE_ACL_GET_PERM_NP */
  14343. /* Define to 1 if you have the `acl_init' function. */
  14344. /* #undef HAVE_ACL_INIT */
  14345. /* Define to 1 if you have the <acl/libacl.h> header file. */
  14346. /* #undef HAVE_ACL_LIBACL_H */
  14347. /* Define to 1 if the system has the type `acl_permset_t'. */
  14348. /* #undef HAVE_ACL_PERMSET_T */
  14349. /* Define to 1 if you have the `acl_set_fd' function. */
  14350. /* #undef HAVE_ACL_SET_FD */
  14351. /* Define to 1 if you have the `acl_set_fd_np' function. */
  14352. /* #undef HAVE_ACL_SET_FD_NP */
  14353. /* Define to 1 if you have the `acl_set_file' function. */
  14354. /* #undef HAVE_ACL_SET_FILE */
  14355. /* Define to 1 if you have the `arc4random_buf' function. */
  14356. /* #undef HAVE_ARC4RANDOM_BUF */
  14357. /* Define to 1 if you have the <attr/xattr.h> header file. */
  14358. /* #undef HAVE_ATTR_XATTR_H */
  14359. /* Define to 1 if you have the <Bcrypt.h> header file. */
  14360. /* #undef HAVE_BCRYPT_H */
  14361. /* Define to 1 if you have the <bsdxml.h> header file. */
  14362. /* #undef HAVE_BSDXML_H */
  14363. /* Define to 1 if you have the <bzlib.h> header file. */
  14364. #define HAVE_BZLIB_H 1
  14365. /* Define to 1 if you have the `chflags' function. */
  14366. /* #undef HAVE_CHFLAGS */
  14367. /* Define to 1 if you have the `chown' function. */
  14368. #define HAVE_CHOWN 1
  14369. /* Define to 1 if you have the `chroot' function. */
  14370. #define HAVE_CHROOT 1
  14371. /* Define to 1 if you have the <copyfile.h> header file. */
  14372. /* #undef HAVE_COPYFILE_H */
  14373. /* Define to 1 if you have the `ctime_r' function. */
  14374. #define HAVE_CTIME_R 1
  14375. /* Define to 1 if you have the <ctype.h> header file. */
  14376. #define HAVE_CTYPE_H 1
  14377. /* Define to 1 if you have the `cygwin_conv_path' function. */
  14378. /* #undef HAVE_CYGWIN_CONV_PATH */
  14379. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  14380. don't. */
  14381. /* #undef HAVE_DECL_ACE_GETACL */
  14382. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  14383. don't. */
  14384. /* #undef HAVE_DECL_ACE_GETACLCNT */
  14385. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  14386. don't. */
  14387. /* #undef HAVE_DECL_ACE_SETACL */
  14388. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  14389. you don't. */
  14390. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  14391. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  14392. you don't. */
  14393. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  14394. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  14395. don't. */
  14396. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  14397. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  14398. don't. */
  14399. /* #undef HAVE_DECL_ACL_USER */
  14400. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  14401. don't. */
  14402. #define HAVE_DECL_INT32_MAX 1
  14403. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  14404. don't. */
  14405. #define HAVE_DECL_INT32_MIN 1
  14406. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  14407. don't. */
  14408. #define HAVE_DECL_INT64_MAX 1
  14409. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  14410. don't. */
  14411. #define HAVE_DECL_INT64_MIN 1
  14412. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  14413. don't. */
  14414. #define HAVE_DECL_INTMAX_MAX 1
  14415. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  14416. don't. */
  14417. #define HAVE_DECL_INTMAX_MIN 1
  14418. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  14419. */
  14420. /* #undef HAVE_DECL_SETACL */
  14421. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  14422. don't. */
  14423. #define HAVE_DECL_SIZE_MAX 1
  14424. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  14425. don't. */
  14426. #define HAVE_DECL_SSIZE_MAX 1
  14427. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  14428. don't. */
  14429. #define HAVE_DECL_STRERROR_R 1
  14430. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  14431. don't. */
  14432. #define HAVE_DECL_UINT32_MAX 1
  14433. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  14434. don't. */
  14435. #define HAVE_DECL_UINT64_MAX 1
  14436. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  14437. don't. */
  14438. #define HAVE_DECL_UINTMAX_MAX 1
  14439. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  14440. you don't. */
  14441. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  14442. /* Define to 1 if you have the <direct.h> header file. */
  14443. /* #undef HAVE_DIRECT_H */
  14444. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  14445. */
  14446. #define HAVE_DIRENT_H 1
  14447. /* Define to 1 if you have the `dirfd' function. */
  14448. #define HAVE_DIRFD 1
  14449. /* Define to 1 if you have the <dlfcn.h> header file. */
  14450. #define HAVE_DLFCN_H 1
  14451. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  14452. /* #undef HAVE_DOPRNT */
  14453. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  14454. /* #undef HAVE_D_MD_ORDER */
  14455. /* A possible errno value for invalid file format errors */
  14456. /* #undef HAVE_EFTYPE */
  14457. /* A possible errno value for invalid file format errors */
  14458. #define HAVE_EILSEQ 1
  14459. /* Define to 1 if you have the <errno.h> header file. */
  14460. #define HAVE_ERRNO_H 1
  14461. /* Define to 1 if you have the <expat.h> header file. */
  14462. /* #undef HAVE_EXPAT_H */
  14463. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  14464. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  14465. /* Define to 1 if you have the `extattr_get_file' function. */
  14466. /* #undef HAVE_EXTATTR_GET_FILE */
  14467. /* Define to 1 if you have the `extattr_list_file' function. */
  14468. /* #undef HAVE_EXTATTR_LIST_FILE */
  14469. /* Define to 1 if you have the `extattr_set_fd' function. */
  14470. /* #undef HAVE_EXTATTR_SET_FD */
  14471. /* Define to 1 if you have the `extattr_set_file' function. */
  14472. /* #undef HAVE_EXTATTR_SET_FILE */
  14473. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  14474. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  14475. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  14476. */
  14477. /* #undef HAVE_DECL_GETACL */
  14478. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  14479. don't. */
  14480. /* #undef HAVE_DECL_GETACLCNT */
  14481. /* Define to 1 if you have the `fchdir' function. */
  14482. #define HAVE_FCHDIR 1
  14483. /* Define to 1 if you have the `fchflags' function. */
  14484. /* #undef HAVE_FCHFLAGS */
  14485. /* Define to 1 if you have the `fchmod' function. */
  14486. #define HAVE_FCHMOD 1
  14487. /* Define to 1 if you have the `fchown' function. */
  14488. #define HAVE_FCHOWN 1
  14489. /* Define to 1 if you have the `fcntl' function. */
  14490. #define HAVE_FCNTL 1
  14491. /* Define to 1 if you have the <fcntl.h> header file. */
  14492. #define HAVE_FCNTL_H 1
  14493. /* Define to 1 if you have the `fdopendir' function. */
  14494. #define HAVE_FDOPENDIR 1
  14495. /* Define to 1 if you have the `fgetea' function. */
  14496. /* #undef HAVE_FGETEA */
  14497. /* Define to 1 if you have the `fgetxattr' function. */
  14498. /* #undef HAVE_FGETXATTR */
  14499. /* Define to 1 if you have the `flistea' function. */
  14500. /* #undef HAVE_FLISTEA */
  14501. /* Define to 1 if you have the `flistxattr' function. */
  14502. /* #undef HAVE_FLISTXATTR */
  14503. /* Define to 1 if you have the `fork' function. */
  14504. #define HAVE_FORK 1
  14505. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  14506. #define HAVE_FSEEKO 1
  14507. /* Define to 1 if you have the `fsetea' function. */
  14508. /* #undef HAVE_FSETEA */
  14509. /* Define to 1 if you have the `fsetxattr' function. */
  14510. #define HAVE_FSETXATTR 1
  14511. /* Define to 1 if you have the `fstat' function. */
  14512. #define HAVE_FSTAT 1
  14513. /* Define to 1 if you have the `fstatat' function. */
  14514. #define HAVE_FSTATAT 1
  14515. /* Define to 1 if you have the `fstatfs' function. */
  14516. #define HAVE_FSTATFS 1
  14517. /* Define to 1 if you have the `fstatvfs' function. */
  14518. #define HAVE_FSTATVFS 1
  14519. /* Define to 1 if you have the `ftruncate' function. */
  14520. #define HAVE_FTRUNCATE 1
  14521. /* Define to 1 if you have the `futimens' function. */
  14522. #define HAVE_FUTIMENS 1
  14523. /* Define to 1 if you have the `futimes' function. */
  14524. #define HAVE_FUTIMES 1
  14525. /* Define to 1 if you have the `futimesat' function. */
  14526. #define HAVE_FUTIMESAT 1
  14527. /* Define to 1 if you have the `getea' function. */
  14528. /* #undef HAVE_GETEA */
  14529. /* Define to 1 if you have the `geteuid' function. */
  14530. #define HAVE_GETEUID 1
  14531. /* Define to 1 if you have the `getgrgid_r' function. */
  14532. #define HAVE_GETGRGID_R 1
  14533. /* Define to 1 if you have the `getgrnam_r' function. */
  14534. #define HAVE_GETGRNAM_R 1
  14535. /* Define to 1 if you have the `getpid' function. */
  14536. #define HAVE_GETPID 1
  14537. /* Define to 1 if you have the `getpwnam_r' function. */
  14538. #define HAVE_GETPWNAM_R 1
  14539. /* Define to 1 if you have the `getpwuid_r' function. */
  14540. #define HAVE_GETPWUID_R 1
  14541. /* Define to 1 if you have the `getvfsbyname' function. */
  14542. /* #undef HAVE_GETVFSBYNAME */
  14543. /* Define to 1 if you have the `getxattr' function. */
  14544. /* #undef HAVE_GETXATTR */
  14545. /* Define to 1 if you have the `gmtime_r' function. */
  14546. #define HAVE_GMTIME_R 1
  14547. /* Define to 1 if you have the <grp.h> header file. */
  14548. #define HAVE_GRP_H 1
  14549. /* Define to 1 if you have the `iconv' function. */
  14550. /* #undef HAVE_ICONV */
  14551. /* Define to 1 if you have the <iconv.h> header file. */
  14552. /* #undef HAVE_ICONV_H */
  14553. /* Define to 1 if you have the <inttypes.h> header file. */
  14554. #define HAVE_INTTYPES_H 1
  14555. /* Define to 1 if you have the <io.h> header file. */
  14556. /* #undef HAVE_IO_H */
  14557. /* Define to 1 if you have the <langinfo.h> header file. */
  14558. #define HAVE_LANGINFO_H 1
  14559. /* Define to 1 if you have the `lchflags' function. */
  14560. /* #undef HAVE_LCHFLAGS */
  14561. /* Define to 1 if you have the `lchmod' function. */
  14562. /* #undef HAVE_LCHMOD */
  14563. /* Define to 1 if you have the `lchown' function. */
  14564. #define HAVE_LCHOWN 1
  14565. /* Define to 1 if you have the `lgetea' function. */
  14566. /* #undef HAVE_LGETEA */
  14567. /* Define to 1 if you have the `lgetxattr' function. */
  14568. /* #undef HAVE_LGETXATTR */
  14569. /* Define to 1 if you have the `acl' library (-lacl). */
  14570. /* #undef HAVE_LIBACL */
  14571. /* Define to 1 if you have the `attr' library (-lattr). */
  14572. /* #undef HAVE_LIBATTR */
  14573. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  14574. /* #undef HAVE_LIBBSDXML */
  14575. /* Define to 1 if you have the `bz2' library (-lbz2). */
  14576. #define HAVE_LIBBZ2 1
  14577. /* Define to 1 if you have the `charset' library (-lcharset). */
  14578. /* #undef HAVE_LIBCHARSET */
  14579. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  14580. #define HAVE_LIBCRYPTO 1
  14581. /* Define to 1 if you have the `expat' library (-lexpat). */
  14582. /* #undef HAVE_LIBEXPAT */
  14583. /* Define to 1 if you have the `gcc' library (-lgcc). */
  14584. /* #undef HAVE_LIBGCC */
  14585. /* Define to 1 if you have the `lz4' library (-llz4). */
  14586. /* #undef HAVE_LIBLZ4 */
  14587. /* Define to 1 if you have the `lzma' library (-llzma). */
  14588. #define HAVE_LIBLZMA 1
  14589. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  14590. /* #undef HAVE_LIBLZMADEC */
  14591. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  14592. /* #undef HAVE_LIBLZO2 */
  14593. /* Define to 1 if you have the `nettle' library (-lnettle). */
  14594. /* #undef HAVE_LIBNETTLE */
  14595. /* Define to 1 if you have the `pcre' library (-lpcre). */
  14596. /* #undef HAVE_LIBPCRE */
  14597. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  14598. /* #undef HAVE_LIBPCREPOSIX */
  14599. /* Define to 1 if you have the `xml2' library (-lxml2). */
  14600. /* #undef HAVE_LIBXML2 */
  14601. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  14602. /* #undef HAVE_LIBXML_XMLREADER_H */
  14603. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  14604. /* #undef HAVE_LIBXML_XMLWRITER_H */
  14605. /* Define to 1 if you have the `z' library (-lz). */
  14606. #define HAVE_LIBZ 1
  14607. /* Define to 1 if you have the <limits.h> header file. */
  14608. #define HAVE_LIMITS_H 1
  14609. /* Define to 1 if you have the `link' function. */
  14610. #define HAVE_LINK 1
  14611. /* Define to 1 if you have the <linux/types.h> header file. */
  14612. #define HAVE_LINUX_TYPES_H 1
  14613. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  14614. #define HAVE_LINUX_FIEMAP_H 1
  14615. /* Define to 1 if you have the <linux/fs.h> header file. */
  14616. #define HAVE_LINUX_FS_H 1
  14617. /* Define to 1 if you have the <linux/magic.h> header file. */
  14618. #define HAVE_LINUX_MAGIC_H 1
  14619. /* Define to 1 if you have the <linux/types.h> header file. */
  14620. #define HAVE_LINUX_TYPES_H 1
  14621. /* Define to 1 if you have the `listea' function. */
  14622. /* #undef HAVE_LISTEA */
  14623. /* Define to 1 if you have the `listxattr' function. */
  14624. /* #undef HAVE_LISTXATTR */
  14625. /* Define to 1 if you have the `llistea' function. */
  14626. /* #undef HAVE_LLISTEA */
  14627. /* Define to 1 if you have the `llistxattr' function. */
  14628. /* #undef HAVE_LLISTXATTR */
  14629. /* Define to 1 if you have the <localcharset.h> header file. */
  14630. /* #undef HAVE_LOCALCHARSET_H */
  14631. /* Define to 1 if you have the `locale_charset' function. */
  14632. /* #undef HAVE_LOCALE_CHARSET */
  14633. /* Define to 1 if you have the <locale.h> header file. */
  14634. #define HAVE_LOCALE_H 1
  14635. /* Define to 1 if you have the `localtime_r' function. */
  14636. #define HAVE_LOCALTIME_R 1
  14637. /* Define to 1 if the system has the type `long long int'. */
  14638. /* #undef HAVE_LONG_LONG_INT */
  14639. /* Define to 1 if you have the `lsetea' function. */
  14640. /* #undef HAVE_LSETEA */
  14641. /* Define to 1 if you have the `lsetxattr' function. */
  14642. /* #undef HAVE_LSETXATTR */
  14643. /* Define to 1 if you have the `lstat' function. */
  14644. #define HAVE_LSTAT 1
  14645. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  14646. zero-length file name argument. */
  14647. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  14648. /* Define to 1 if you have the `lutimes' function. */
  14649. #define HAVE_LUTIMES 1
  14650. /* Define to 1 if you have the <lz4hc.h> header file. */
  14651. /* #undef HAVE_LZ4HC_H */
  14652. /* Define to 1 if you have the <lz4.h> header file. */
  14653. /* #undef HAVE_LZ4_H */
  14654. /* Define to 1 if you have the <lzmadec.h> header file. */
  14655. /* #undef HAVE_LZMADEC_H */
  14656. /* Define to 1 if you have the <lzma.h> header file. */
  14657. #define HAVE_LZMA_H 1
  14658. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  14659. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  14660. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  14661. /* #undef HAVE_LZO_LZO1X_H */
  14662. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  14663. /* #undef HAVE_LZO_LZOCONF_H */
  14664. /* Define to 1 if you have the `mbrtowc' function. */
  14665. #define HAVE_MBRTOWC 1
  14666. /* Define to 1 if you have the <membership.h> header file. */
  14667. /* #undef HAVE_MEMBERSHIP_H */
  14668. /* Define to 1 if you have the `memmove' function. */
  14669. #define HAVE_MEMMOVE 1
  14670. /* Define to 1 if you have the <memory.h> header file. */
  14671. #define HAVE_MEMORY_H 1
  14672. /* Define to 1 if you have the `mkdir' function. */
  14673. #define HAVE_MKDIR 1
  14674. /* Define to 1 if you have the `mkfifo' function. */
  14675. #define HAVE_MKFIFO 1
  14676. /* Define to 1 if you have the `mknod' function. */
  14677. #define HAVE_MKNOD 1
  14678. /* Define to 1 if you have the `mkstemp' function. */
  14679. #define HAVE_MKSTEMP 1
  14680. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  14681. /* #undef HAVE_NDIR_H */
  14682. /* Define to 1 if you have the <nettle/aes.h> header file. */
  14683. /* #undef HAVE_NETTLE_AES_H */
  14684. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  14685. /* #undef HAVE_NETTLE_HMAC_H */
  14686. /* Define to 1 if you have the <nettle/md5.h> header file. */
  14687. /* #undef HAVE_NETTLE_MD5_H */
  14688. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  14689. /* #undef HAVE_NETTLE_PBKDF2_H */
  14690. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  14691. /* #undef HAVE_NETTLE_RIPEMD160_H */
  14692. /* Define to 1 if you have the <nettle/sha.h> header file. */
  14693. /* #undef HAVE_NETTLE_SHA_H */
  14694. /* Define to 1 if you have the `nl_langinfo' function. */
  14695. #define HAVE_NL_LANGINFO 1
  14696. /* Define to 1 if you have the `openat' function. */
  14697. #define HAVE_OPENAT 1
  14698. /* Define to 1 if you have the <paths.h> header file. */
  14699. #define HAVE_PATHS_H 1
  14700. /* Define to 1 if you have the <pcreposix.h> header file. */
  14701. /* #undef HAVE_PCREPOSIX_H */
  14702. /* Define to 1 if you have the `pipe' function. */
  14703. #define HAVE_PIPE 1
  14704. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  14705. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  14706. /* Define to 1 if you have the `poll' function. */
  14707. #define HAVE_POLL 1
  14708. /* Define to 1 if you have the <poll.h> header file. */
  14709. #define HAVE_POLL_H 1
  14710. /* Define to 1 if you have the `posix_spawnp' function. */
  14711. #define HAVE_POSIX_SPAWNP 1
  14712. /* Define to 1 if you have the <process.h> header file. */
  14713. /* #undef HAVE_PROCESS_H */
  14714. /* Define to 1 if you have the <pthread.h> header file. */
  14715. /* #undef HAVE_PTHREAD_H */
  14716. /* Define to 1 if you have the <pwd.h> header file. */
  14717. #define HAVE_PWD_H 1
  14718. /* Define to 1 if you have the `readdir_r' function. */
  14719. #define HAVE_READDIR_R 1
  14720. /* Define to 1 if you have the `readlink' function. */
  14721. #define HAVE_READLINK 1
  14722. /* Define to 1 if you have the `readlinkat' function. */
  14723. #define HAVE_READLINKAT 1
  14724. /* Define to 1 if you have the `readpassphrase' function. */
  14725. /* #undef HAVE_READPASSPHRASE */
  14726. /* Define to 1 if you have the <readpassphrase.h> header file. */
  14727. /* #undef HAVE_READPASSPHRASE_H */
  14728. /* Define to 1 if you have the <regex.h> header file. */
  14729. #define HAVE_REGEX_H 1
  14730. /* Define to 1 if you have the `select' function. */
  14731. #define HAVE_SELECT 1
  14732. /* Define to 1 if you have the `setenv' function. */
  14733. #define HAVE_SETENV 1
  14734. /* Define to 1 if you have the `setlocale' function. */
  14735. #define HAVE_SETLOCALE 1
  14736. /* Define to 1 if you have the `sigaction' function. */
  14737. #define HAVE_SIGACTION 1
  14738. /* Define to 1 if you have the <signal.h> header file. */
  14739. #define HAVE_SIGNAL_H 1
  14740. /* Define to 1 if you have the <spawn.h> header file. */
  14741. #define HAVE_SPAWN_H 1
  14742. /* Define to 1 if you have the `statfs' function. */
  14743. #define HAVE_STATFS 1
  14744. /* Define to 1 if you have the `statvfs' function. */
  14745. #define HAVE_STATVFS 1
  14746. /* Define to 1 if `stat' has the bug that it succeeds when given the
  14747. zero-length file name argument. */
  14748. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  14749. /* Define to 1 if you have the <stdarg.h> header file. */
  14750. #define HAVE_STDARG_H 1
  14751. /* Define to 1 if you have the <stdint.h> header file. */
  14752. #define HAVE_STDINT_H 1
  14753. /* Define to 1 if you have the <stdlib.h> header file. */
  14754. #define HAVE_STDLIB_H 1
  14755. /* Define to 1 if you have the `strchr' function. */
  14756. #define HAVE_STRCHR 1
  14757. /* Define to 1 if you have the `strdup' function. */
  14758. #define HAVE_STRDUP 1
  14759. /* Define to 1 if you have the `strerror' function. */
  14760. #define HAVE_STRERROR 1
  14761. /* Define to 1 if you have the `strerror_r' function. */
  14762. #define HAVE_STRERROR_R 1
  14763. /* Define to 1 if you have the `strftime' function. */
  14764. #define HAVE_STRFTIME 1
  14765. /* Define to 1 if you have the <strings.h> header file. */
  14766. #define HAVE_STRINGS_H 1
  14767. /* Define to 1 if you have the <string.h> header file. */
  14768. #define HAVE_STRING_H 1
  14769. /* Define to 1 if you have the `strrchr' function. */
  14770. #define HAVE_STRRCHR 1
  14771. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  14772. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  14773. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  14774. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  14775. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  14776. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  14777. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  14778. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  14779. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  14780. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  14781. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  14782. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  14783. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  14784. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  14785. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  14786. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  14787. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  14788. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  14789. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  14790. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  14791. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  14792. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  14793. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  14794. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  14795. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  14796. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  14797. /* Define to 1 if you have `struct vfsconf'. */
  14798. /* #undef HAVE_STRUCT_VFSCONF */
  14799. /* Define to 1 if you have `struct xvfsconf'. */
  14800. /* #undef HAVE_STRUCT_XVFSCONF */
  14801. /* Define to 1 if you have the `symlink' function. */
  14802. #define HAVE_SYMLINK 1
  14803. /* Define to 1 if you have the <sys/acl.h> header file. */
  14804. /* #undef HAVE_SYS_ACL_H */
  14805. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  14806. #define HAVE_SYS_CDEFS_H 1
  14807. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  14808. */
  14809. /* #undef HAVE_SYS_DIR_H */
  14810. /* Define to 1 if you have the <sys/ea.h> header file. */
  14811. /* #undef HAVE_SYS_EA_H */
  14812. /* Define to 1 if you have the <sys/extattr.h> header file. */
  14813. /* #undef HAVE_SYS_EXTATTR_H */
  14814. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  14815. #define HAVE_SYS_IOCTL_H 1
  14816. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  14817. /* #undef HAVE_SYS_MKDEV_H */
  14818. /* Define to 1 if you have the <sys/mount.h> header file. */
  14819. /* #undef HAVE_SYS_MOUNT_H */
  14820. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  14821. */
  14822. /* #undef HAVE_SYS_NDIR_H */
  14823. /* Define to 1 if you have the <sys/param.h> header file. */
  14824. #define HAVE_SYS_PARAM_H 1
  14825. /* Define to 1 if you have the <sys/poll.h> header file. */
  14826. #define HAVE_SYS_POLL_H 1
  14827. /* Define to 1 if you have the <sys/richacl.h> header file. */
  14828. /* #undef HAVE_SYS_RICHACL_H */
  14829. /* Define to 1 if you have the <sys/select.h> header file. */
  14830. #define HAVE_SYS_SELECT_H 1
  14831. /* Define to 1 if you have the <sys/statfs.h> header file. */
  14832. #define HAVE_SYS_STATFS_H 1
  14833. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  14834. #define HAVE_SYS_STATVFS_H 1
  14835. /* Define to 1 if you have the <sys/stat.h> header file. */
  14836. #define HAVE_SYS_STAT_H 1
  14837. /* Define to 1 if you have the <sys/time.h> header file. */
  14838. #define HAVE_SYS_TIME_H 1
  14839. /* Define to 1 if you have the <sys/types.h> header file. */
  14840. #define HAVE_SYS_TYPES_H 1
  14841. /* Define to 1 if you have the <sys/utime.h> header file. */
  14842. /* #undef HAVE_SYS_UTIME_H */
  14843. /* Define to 1 if you have the <sys/utsname.h> header file. */
  14844. #define HAVE_SYS_UTSNAME_H 1
  14845. /* Define to 1 if you have the <sys/vfs.h> header file. */
  14846. #define HAVE_SYS_VFS_H 1
  14847. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  14848. #define HAVE_SYS_WAIT_H 1
  14849. /* Define to 1 if you have the <sys/xattr.h> header file. */
  14850. #define HAVE_SYS_XATTR_H 1
  14851. /* Define to 1 if you have the `timegm' function. */
  14852. #define HAVE_TIMEGM 1
  14853. /* Define to 1 if you have the <time.h> header file. */
  14854. #define HAVE_TIME_H 1
  14855. /* Define to 1 if you have the `tzset' function. */
  14856. #define HAVE_TZSET 1
  14857. /* Define to 1 if you have the <unistd.h> header file. */
  14858. #define HAVE_UNISTD_H 1
  14859. /* Define to 1 if you have the `unsetenv' function. */
  14860. #define HAVE_UNSETENV 1
  14861. /* Define to 1 if the system has the type `unsigned long long'. */
  14862. /* #undef HAVE_UNSIGNED_LONG_LONG */
  14863. /* Define to 1 if the system has the type `unsigned long long int'. */
  14864. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  14865. /* Define to 1 if you have the `utime' function. */
  14866. #define HAVE_UTIME 1
  14867. /* Define to 1 if you have the `utimensat' function. */
  14868. #define HAVE_UTIMENSAT 1
  14869. /* Define to 1 if you have the `utimes' function. */
  14870. #define HAVE_UTIMES 1
  14871. /* Define to 1 if you have the <utime.h> header file. */
  14872. #define HAVE_UTIME_H 1
  14873. /* Define to 1 if you have the `vfork' function. */
  14874. #define HAVE_VFORK 1
  14875. /* Define to 1 if you have the `vprintf' function. */
  14876. #define HAVE_VPRINTF 1
  14877. /* Define to 1 if you have the <wchar.h> header file. */
  14878. #define HAVE_WCHAR_H 1
  14879. /* Define to 1 if the system has the type `wchar_t'. */
  14880. #define HAVE_WCHAR_T 1
  14881. /* Define to 1 if you have the `wcrtomb' function. */
  14882. #define HAVE_WCRTOMB 1
  14883. /* Define to 1 if you have the `wcscmp' function. */
  14884. #define HAVE_WCSCMP 1
  14885. /* Define to 1 if you have the `wcscpy' function. */
  14886. #define HAVE_WCSCPY 1
  14887. /* Define to 1 if you have the `wcslen' function. */
  14888. #define HAVE_WCSLEN 1
  14889. /* Define to 1 if you have the `wctomb' function. */
  14890. #define HAVE_WCTOMB 1
  14891. /* Define to 1 if you have the <wctype.h> header file. */
  14892. #define HAVE_WCTYPE_H 1
  14893. /* Define to 1 if you have the <wincrypt.h> header file. */
  14894. /* #undef HAVE_WINCRYPT_H */
  14895. /* Define to 1 if you have the <windows.h> header file. */
  14896. /* #undef HAVE_WINDOWS_H */
  14897. /* Define to 1 if you have the <winioctl.h> header file. */
  14898. /* #undef HAVE_WINIOCTL_H */
  14899. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  14900. /* #undef HAVE__CrtSetReportMode */
  14901. /* Define to 1 if you have the `wmemcmp' function. */
  14902. #define HAVE_WMEMCMP 1
  14903. /* Define to 1 if you have the `wmemcpy' function. */
  14904. #define HAVE_WMEMCPY 1
  14905. /* Define to 1 if you have the `wmemmove' function. */
  14906. #define HAVE_WMEMMOVE 1
  14907. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  14908. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  14909. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  14910. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  14911. /* Define to 1 if you have the <zlib.h> header file. */
  14912. #define HAVE_ZLIB_H 1
  14913. /* Define to 1 if you have the `_ctime64_s' function. */
  14914. /* #undef HAVE__CTIME64_S */
  14915. /* Define to 1 if you have the `_fseeki64' function. */
  14916. /* #undef HAVE__FSEEKI64 */
  14917. /* Define to 1 if you have the `_get_timezone' function. */
  14918. /* #undef HAVE__GET_TIMEZONE */
  14919. /* Define to 1 if you have the `_localtime64_s' function. */
  14920. /* #undef HAVE__LOCALTIME64_S */
  14921. /* Define to 1 if you have the `_mkgmtime64' function. */
  14922. /* #undef HAVE__MKGMTIME64 */
  14923. /* Define as const if the declaration of iconv() needs const. */
  14924. #define ICONV_CONST
  14925. /* Version number of libarchive as a single integer */
  14926. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  14927. /* Version number of libarchive */
  14928. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  14929. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  14930. slash. */
  14931. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  14932. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  14933. */
  14934. /* #undef MAJOR_IN_MKDEV */
  14935. /* Define to 1 if `major', `minor', and `makedev' are declared in
  14936. <sysmacros.h>. */
  14937. #define MAJOR_IN_SYSMACROS 1
  14938. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  14939. /* #undef NO_MINUS_C_MINUS_O */
  14940. /* The size of `wchar_t', as computed by sizeof. */
  14941. #define SIZEOF_WCHAR_T 4
  14942. /* Define to 1 if strerror_r returns char *. */
  14943. /* #undef STRERROR_R_CHAR_P */
  14944. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  14945. #define TIME_WITH_SYS_TIME 1
  14946. /*
  14947. * Some platform requires a macro to use extension functions.
  14948. */
  14949. #define SAFE_TO_DEFINE_EXTENSIONS 1
  14950. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  14951. /* Enable extensions on AIX 3, Interix. */
  14952. #ifndef _ALL_SOURCE
  14953. # define _ALL_SOURCE 1
  14954. #endif
  14955. /* Enable GNU extensions on systems that have them. */
  14956. #ifndef _GNU_SOURCE
  14957. # define _GNU_SOURCE 1
  14958. #endif
  14959. /* Enable threading extensions on Solaris. */
  14960. #ifndef _POSIX_PTHREAD_SEMANTICS
  14961. # define _POSIX_PTHREAD_SEMANTICS 1
  14962. #endif
  14963. /* Enable extensions on HP NonStop. */
  14964. #ifndef _TANDEM_SOURCE
  14965. # define _TANDEM_SOURCE 1
  14966. #endif
  14967. /* Enable general extensions on Solaris. */
  14968. #ifndef __EXTENSIONS__
  14969. # define __EXTENSIONS__ 1
  14970. #endif
  14971. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  14972. /* Version number of package */
  14973. #define VERSION "3.3.2"
  14974. /* Number of bits in a file offset, on hosts where this is settable. */
  14975. /* #undef _FILE_OFFSET_BITS */
  14976. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  14977. /* #undef _LARGEFILE_SOURCE */
  14978. /* Define for large files, on AIX-style hosts. */
  14979. /* #undef _LARGE_FILES */
  14980. /* Define to control Windows SDK version */
  14981. #ifndef NTDDI_VERSION
  14982. /* #undef NTDDI_VERSION */
  14983. #endif // NTDDI_VERSION
  14984. #ifndef _WIN32_WINNT
  14985. /* #undef _WIN32_WINNT */
  14986. #endif // _WIN32_WINNT
  14987. #ifndef WINVER
  14988. /* #undef WINVER */
  14989. #endif // WINVER
  14990. /* Define to empty if `const' does not conform to ANSI C. */
  14991. /* #undef const */
  14992. /* Define to `int' if <sys/types.h> doesn't define. */
  14993. /* #undef gid_t */
  14994. /* Define to `unsigned long' if <sys/types.h> does not define. */
  14995. /* #undef id_t */
  14996. /* Define to `int' if <sys/types.h> does not define. */
  14997. /* #undef mode_t */
  14998. /* Define to `long long' if <sys/types.h> does not define. */
  14999. /* #undef off_t */
  15000. /* Define to `int' if <sys/types.h> doesn't define. */
  15001. /* #undef pid_t */
  15002. /* Define to `unsigned int' if <sys/types.h> does not define. */
  15003. /* #undef size_t */
  15004. /* Define to `int' if <sys/types.h> does not define. */
  15005. /* #undef ssize_t */
  15006. /* Define to `int' if <sys/types.h> doesn't define. */
  15007. /* #undef uid_t */
  15008. /* Define to `int' if <sys/types.h> does not define. */
  15009. /* #undef intptr_t */
  15010. /* Define to `unsigned int' if <sys/types.h> does not define. */
  15011. /* #undef uintptr_t */
  15012. #define ARCHIVE_SHA256_COMPILE_TEST
  15013. #define ARCHIVE_CRYPTO_SHA256_LIBC
  15014. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  15015. /*-
  15016. * Copyright (c) 2003-2007 Tim Kientzle
  15017. * Copyright (c) 2011 Andres Mejia
  15018. * Copyright (c) 2011 Michihiro NAKAJIMA
  15019. * All rights reserved.
  15020. *
  15021. * Redistribution and use in source and binary forms, with or without
  15022. * modification, are permitted provided that the following conditions
  15023. * are met:
  15024. * 1. Redistributions of source code must retain the above copyright
  15025. * notice, this list of conditions and the following disclaimer.
  15026. * 2. Redistributions in binary form must reproduce the above copyright
  15027. * notice, this list of conditions and the following disclaimer in the
  15028. * documentation and/or other materials provided with the distribution.
  15029. *
  15030. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  15031. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  15032. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15033. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  15034. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  15035. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  15036. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  15037. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  15038. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  15039. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  15040. */
  15041. #include "archive_platform.h"
  15042. #include "archive.h"
  15043. #include "archive_digest_private.h"
  15044. /* In particular, force the configure probe to break if it tries
  15045. * to test a combination of OpenSSL and libmd. */
  15046. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  15047. #error Cannot use both OpenSSL and libmd.
  15048. #endif
  15049. /*
  15050. * Message digest functions for Windows platform.
  15051. */
  15052. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  15053. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  15054. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  15055. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  15056. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  15057. /*
  15058. * Initialize a Message digest.
  15059. */
  15060. static int
  15061. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  15062. {
  15063. ctx->valid = 0;
  15064. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  15065. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  15066. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  15067. return (ARCHIVE_FAILED);
  15068. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  15069. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  15070. return (ARCHIVE_FAILED);
  15071. }
  15072. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  15073. CryptReleaseContext(ctx->cryptProv, 0);
  15074. return (ARCHIVE_FAILED);
  15075. }
  15076. ctx->valid = 1;
  15077. return (ARCHIVE_OK);
  15078. }
  15079. /*
  15080. * Update a Message digest.
  15081. */
  15082. static int
  15083. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  15084. {
  15085. if (!ctx->valid)
  15086. return (ARCHIVE_FAILED);
  15087. CryptHashData(ctx->hash,
  15088. (unsigned char *)(uintptr_t)buf,
  15089. (DWORD)len, 0);
  15090. return (ARCHIVE_OK);
  15091. }
  15092. static int
  15093. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  15094. {
  15095. DWORD siglen = (DWORD)bufsize;
  15096. if (!ctx->valid)
  15097. return (ARCHIVE_FAILED);
  15098. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  15099. CryptDestroyHash(ctx->hash);
  15100. CryptReleaseContext(ctx->cryptProv, 0);
  15101. ctx->valid = 0;
  15102. return (ARCHIVE_OK);
  15103. }
  15104. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  15105. /* MD5 implementations */
  15106. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  15107. static int
  15108. __archive_libc_md5init(archive_md5_ctx *ctx)
  15109. {
  15110. MD5Init(ctx);
  15111. return (ARCHIVE_OK);
  15112. }
  15113. static int
  15114. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  15115. size_t insize)
  15116. {
  15117. MD5Update(ctx, indata, insize);
  15118. return (ARCHIVE_OK);
  15119. }
  15120. static int
  15121. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  15122. {
  15123. MD5Final(md, ctx);
  15124. return (ARCHIVE_OK);
  15125. }
  15126. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  15127. static int
  15128. __archive_libmd_md5init(archive_md5_ctx *ctx)
  15129. {
  15130. MD5Init(ctx);
  15131. return (ARCHIVE_OK);
  15132. }
  15133. static int
  15134. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  15135. size_t insize)
  15136. {
  15137. MD5Update(ctx, indata, insize);
  15138. return (ARCHIVE_OK);
  15139. }
  15140. static int
  15141. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  15142. {
  15143. MD5Final(md, ctx);
  15144. return (ARCHIVE_OK);
  15145. }
  15146. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  15147. static int
  15148. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  15149. {
  15150. CC_MD5_Init(ctx);
  15151. return (ARCHIVE_OK);
  15152. }
  15153. static int
  15154. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  15155. size_t insize)
  15156. {
  15157. CC_MD5_Update(ctx, indata, insize);
  15158. return (ARCHIVE_OK);
  15159. }
  15160. static int
  15161. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  15162. {
  15163. CC_MD5_Final(md, ctx);
  15164. return (ARCHIVE_OK);
  15165. }
  15166. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  15167. static int
  15168. __archive_nettle_md5init(archive_md5_ctx *ctx)
  15169. {
  15170. md5_init(ctx);
  15171. return (ARCHIVE_OK);
  15172. }
  15173. static int
  15174. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  15175. size_t insize)
  15176. {
  15177. md5_update(ctx, insize, indata);
  15178. return (ARCHIVE_OK);
  15179. }
  15180. static int
  15181. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  15182. {
  15183. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  15184. return (ARCHIVE_OK);
  15185. }
  15186. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  15187. static int
  15188. __archive_openssl_md5init(archive_md5_ctx *ctx)
  15189. {
  15190. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  15191. return (ARCHIVE_FAILED);
  15192. EVP_DigestInit(*ctx, EVP_md5());
  15193. return (ARCHIVE_OK);
  15194. }
  15195. static int
  15196. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  15197. size_t insize)
  15198. {
  15199. EVP_DigestUpdate(*ctx, indata, insize);
  15200. return (ARCHIVE_OK);
  15201. }
  15202. static int
  15203. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  15204. {
  15205. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  15206. * this is meant to cope with that. Real fix is probably to fix
  15207. * archive_write_set_format_xar.c
  15208. */
  15209. if (*ctx) {
  15210. EVP_DigestFinal(*ctx, md, NULL);
  15211. EVP_MD_CTX_free(*ctx);
  15212. *ctx = NULL;
  15213. }
  15214. return (ARCHIVE_OK);
  15215. }
  15216. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  15217. static int
  15218. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  15219. {
  15220. return (win_crypto_init(ctx, CALG_MD5));
  15221. }
  15222. static int
  15223. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  15224. size_t insize)
  15225. {
  15226. return (win_crypto_Update(ctx, indata, insize));
  15227. }
  15228. static int
  15229. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  15230. {
  15231. return (win_crypto_Final(md, 16, ctx));
  15232. }
  15233. #else
  15234. static int
  15235. __archive_stub_md5init(archive_md5_ctx *ctx)
  15236. {
  15237. (void)ctx; /* UNUSED */
  15238. return (ARCHIVE_FAILED);
  15239. }
  15240. static int
  15241. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  15242. size_t insize)
  15243. {
  15244. (void)ctx; /* UNUSED */
  15245. (void)indata; /* UNUSED */
  15246. (void)insize; /* UNUSED */
  15247. return (ARCHIVE_FAILED);
  15248. }
  15249. static int
  15250. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  15251. {
  15252. (void)ctx; /* UNUSED */
  15253. (void)md; /* UNUSED */
  15254. return (ARCHIVE_FAILED);
  15255. }
  15256. #endif
  15257. /* RIPEMD160 implementations */
  15258. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  15259. static int
  15260. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  15261. {
  15262. RMD160Init(ctx);
  15263. return (ARCHIVE_OK);
  15264. }
  15265. static int
  15266. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  15267. size_t insize)
  15268. {
  15269. RMD160Update(ctx, indata, insize);
  15270. return (ARCHIVE_OK);
  15271. }
  15272. static int
  15273. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  15274. {
  15275. RMD160Final(md, ctx);
  15276. return (ARCHIVE_OK);
  15277. }
  15278. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  15279. static int
  15280. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  15281. {
  15282. RIPEMD160_Init(ctx);
  15283. return (ARCHIVE_OK);
  15284. }
  15285. static int
  15286. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  15287. size_t insize)
  15288. {
  15289. RIPEMD160_Update(ctx, indata, insize);
  15290. return (ARCHIVE_OK);
  15291. }
  15292. static int
  15293. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  15294. {
  15295. RIPEMD160_Final(md, ctx);
  15296. return (ARCHIVE_OK);
  15297. }
  15298. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  15299. static int
  15300. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  15301. {
  15302. ripemd160_init(ctx);
  15303. return (ARCHIVE_OK);
  15304. }
  15305. static int
  15306. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  15307. size_t insize)
  15308. {
  15309. ripemd160_update(ctx, insize, indata);
  15310. return (ARCHIVE_OK);
  15311. }
  15312. static int
  15313. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  15314. {
  15315. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  15316. return (ARCHIVE_OK);
  15317. }
  15318. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  15319. static int
  15320. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  15321. {
  15322. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  15323. return (ARCHIVE_FAILED);
  15324. EVP_DigestInit(*ctx, EVP_ripemd160());
  15325. return (ARCHIVE_OK);
  15326. }
  15327. static int
  15328. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  15329. size_t insize)
  15330. {
  15331. EVP_DigestUpdate(*ctx, indata, insize);
  15332. return (ARCHIVE_OK);
  15333. }
  15334. static int
  15335. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  15336. {
  15337. if (*ctx) {
  15338. EVP_DigestFinal(*ctx, md, NULL);
  15339. EVP_MD_CTX_free(*ctx);
  15340. *ctx = NULL;
  15341. }
  15342. return (ARCHIVE_OK);
  15343. }
  15344. #else
  15345. static int
  15346. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  15347. {
  15348. (void)ctx; /* UNUSED */
  15349. return (ARCHIVE_FAILED);
  15350. }
  15351. static int
  15352. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  15353. size_t insize)
  15354. {
  15355. (void)ctx; /* UNUSED */
  15356. (void)indata; /* UNUSED */
  15357. (void)insize; /* UNUSED */
  15358. return (ARCHIVE_FAILED);
  15359. }
  15360. static int
  15361. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  15362. {
  15363. (void)ctx; /* UNUSED */
  15364. (void)md; /* UNUSED */
  15365. return (ARCHIVE_FAILED);
  15366. }
  15367. #endif
  15368. /* SHA1 implementations */
  15369. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  15370. static int
  15371. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  15372. {
  15373. SHA1Init(ctx);
  15374. return (ARCHIVE_OK);
  15375. }
  15376. static int
  15377. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  15378. size_t insize)
  15379. {
  15380. SHA1Update(ctx, indata, insize);
  15381. return (ARCHIVE_OK);
  15382. }
  15383. static int
  15384. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  15385. {
  15386. SHA1Final(md, ctx);
  15387. return (ARCHIVE_OK);
  15388. }
  15389. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  15390. static int
  15391. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  15392. {
  15393. SHA1_Init(ctx);
  15394. return (ARCHIVE_OK);
  15395. }
  15396. static int
  15397. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  15398. size_t insize)
  15399. {
  15400. SHA1_Update(ctx, indata, insize);
  15401. return (ARCHIVE_OK);
  15402. }
  15403. static int
  15404. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  15405. {
  15406. SHA1_Final(md, ctx);
  15407. return (ARCHIVE_OK);
  15408. }
  15409. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  15410. static int
  15411. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  15412. {
  15413. CC_SHA1_Init(ctx);
  15414. return (ARCHIVE_OK);
  15415. }
  15416. static int
  15417. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  15418. size_t insize)
  15419. {
  15420. CC_SHA1_Update(ctx, indata, insize);
  15421. return (ARCHIVE_OK);
  15422. }
  15423. static int
  15424. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  15425. {
  15426. CC_SHA1_Final(md, ctx);
  15427. return (ARCHIVE_OK);
  15428. }
  15429. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  15430. static int
  15431. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  15432. {
  15433. sha1_init(ctx);
  15434. return (ARCHIVE_OK);
  15435. }
  15436. static int
  15437. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  15438. size_t insize)
  15439. {
  15440. sha1_update(ctx, insize, indata);
  15441. return (ARCHIVE_OK);
  15442. }
  15443. static int
  15444. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  15445. {
  15446. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  15447. return (ARCHIVE_OK);
  15448. }
  15449. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  15450. static int
  15451. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  15452. {
  15453. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  15454. return (ARCHIVE_FAILED);
  15455. EVP_DigestInit(*ctx, EVP_sha1());
  15456. return (ARCHIVE_OK);
  15457. }
  15458. static int
  15459. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  15460. size_t insize)
  15461. {
  15462. EVP_DigestUpdate(*ctx, indata, insize);
  15463. return (ARCHIVE_OK);
  15464. }
  15465. static int
  15466. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  15467. {
  15468. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  15469. * this is meant to cope with that. Real fix is probably to fix
  15470. * archive_write_set_format_xar.c
  15471. */
  15472. if (*ctx) {
  15473. EVP_DigestFinal(*ctx, md, NULL);
  15474. EVP_MD_CTX_free(*ctx);
  15475. *ctx = NULL;
  15476. }
  15477. return (ARCHIVE_OK);
  15478. }
  15479. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  15480. static int
  15481. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  15482. {
  15483. return (win_crypto_init(ctx, CALG_SHA1));
  15484. }
  15485. static int
  15486. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  15487. size_t insize)
  15488. {
  15489. return (win_crypto_Update(ctx, indata, insize));
  15490. }
  15491. static int
  15492. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  15493. {
  15494. return (win_crypto_Final(md, 20, ctx));
  15495. }
  15496. #else
  15497. static int
  15498. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  15499. {
  15500. (void)ctx; /* UNUSED */
  15501. return (ARCHIVE_FAILED);
  15502. }
  15503. static int
  15504. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  15505. size_t insize)
  15506. {
  15507. (void)ctx; /* UNUSED */
  15508. (void)indata; /* UNUSED */
  15509. (void)insize; /* UNUSED */
  15510. return (ARCHIVE_FAILED);
  15511. }
  15512. static int
  15513. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  15514. {
  15515. (void)ctx; /* UNUSED */
  15516. (void)md; /* UNUSED */
  15517. return (ARCHIVE_FAILED);
  15518. }
  15519. #endif
  15520. /* SHA256 implementations */
  15521. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  15522. static int
  15523. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  15524. {
  15525. SHA256_Init(ctx);
  15526. return (ARCHIVE_OK);
  15527. }
  15528. static int
  15529. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  15530. size_t insize)
  15531. {
  15532. SHA256_Update(ctx, indata, insize);
  15533. return (ARCHIVE_OK);
  15534. }
  15535. static int
  15536. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  15537. {
  15538. SHA256_Final(md, ctx);
  15539. return (ARCHIVE_OK);
  15540. }
  15541. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  15542. static int
  15543. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  15544. {
  15545. SHA256Init(ctx);
  15546. return (ARCHIVE_OK);
  15547. }
  15548. static int
  15549. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  15550. size_t insize)
  15551. {
  15552. SHA256Update(ctx, indata, insize);
  15553. return (ARCHIVE_OK);
  15554. }
  15555. static int
  15556. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  15557. {
  15558. SHA256Final(md, ctx);
  15559. return (ARCHIVE_OK);
  15560. }
  15561. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  15562. static int
  15563. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  15564. {
  15565. SHA256Init(ctx);
  15566. return (ARCHIVE_OK);
  15567. }
  15568. static int
  15569. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  15570. size_t insize)
  15571. {
  15572. SHA256Update(ctx, indata, insize);
  15573. return (ARCHIVE_OK);
  15574. }
  15575. static int
  15576. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  15577. {
  15578. SHA256Final(md, ctx);
  15579. return (ARCHIVE_OK);
  15580. }
  15581. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  15582. static int
  15583. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  15584. {
  15585. SHA256_Init(ctx);
  15586. return (ARCHIVE_OK);
  15587. }
  15588. static int
  15589. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  15590. size_t insize)
  15591. {
  15592. SHA256_Update(ctx, indata, insize);
  15593. return (ARCHIVE_OK);
  15594. }
  15595. static int
  15596. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  15597. {
  15598. SHA256_Final(md, ctx);
  15599. return (ARCHIVE_OK);
  15600. }
  15601. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  15602. static int
  15603. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  15604. {
  15605. CC_SHA256_Init(ctx);
  15606. return (ARCHIVE_OK);
  15607. }
  15608. static int
  15609. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  15610. size_t insize)
  15611. {
  15612. CC_SHA256_Update(ctx, indata, insize);
  15613. return (ARCHIVE_OK);
  15614. }
  15615. static int
  15616. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  15617. {
  15618. CC_SHA256_Final(md, ctx);
  15619. return (ARCHIVE_OK);
  15620. }
  15621. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  15622. static int
  15623. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  15624. {
  15625. sha256_init(ctx);
  15626. return (ARCHIVE_OK);
  15627. }
  15628. static int
  15629. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  15630. size_t insize)
  15631. {
  15632. sha256_update(ctx, insize, indata);
  15633. return (ARCHIVE_OK);
  15634. }
  15635. static int
  15636. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  15637. {
  15638. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  15639. return (ARCHIVE_OK);
  15640. }
  15641. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  15642. static int
  15643. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  15644. {
  15645. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  15646. return (ARCHIVE_FAILED);
  15647. EVP_DigestInit(*ctx, EVP_sha256());
  15648. return (ARCHIVE_OK);
  15649. }
  15650. static int
  15651. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  15652. size_t insize)
  15653. {
  15654. EVP_DigestUpdate(*ctx, indata, insize);
  15655. return (ARCHIVE_OK);
  15656. }
  15657. static int
  15658. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  15659. {
  15660. if (*ctx) {
  15661. EVP_DigestFinal(*ctx, md, NULL);
  15662. EVP_MD_CTX_free(*ctx);
  15663. *ctx = NULL;
  15664. }
  15665. return (ARCHIVE_OK);
  15666. }
  15667. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  15668. static int
  15669. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  15670. {
  15671. return (win_crypto_init(ctx, CALG_SHA_256));
  15672. }
  15673. static int
  15674. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  15675. size_t insize)
  15676. {
  15677. return (win_crypto_Update(ctx, indata, insize));
  15678. }
  15679. static int
  15680. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  15681. {
  15682. return (win_crypto_Final(md, 32, ctx));
  15683. }
  15684. #else
  15685. static int
  15686. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  15687. {
  15688. (void)ctx; /* UNUSED */
  15689. return (ARCHIVE_FAILED);
  15690. }
  15691. static int
  15692. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  15693. size_t insize)
  15694. {
  15695. (void)ctx; /* UNUSED */
  15696. (void)indata; /* UNUSED */
  15697. (void)insize; /* UNUSED */
  15698. return (ARCHIVE_FAILED);
  15699. }
  15700. static int
  15701. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  15702. {
  15703. (void)ctx; /* UNUSED */
  15704. (void)md; /* UNUSED */
  15705. return (ARCHIVE_FAILED);
  15706. }
  15707. #endif
  15708. /* SHA384 implementations */
  15709. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  15710. static int
  15711. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  15712. {
  15713. SHA384_Init(ctx);
  15714. return (ARCHIVE_OK);
  15715. }
  15716. static int
  15717. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  15718. size_t insize)
  15719. {
  15720. SHA384_Update(ctx, indata, insize);
  15721. return (ARCHIVE_OK);
  15722. }
  15723. static int
  15724. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  15725. {
  15726. SHA384_Final(md, ctx);
  15727. return (ARCHIVE_OK);
  15728. }
  15729. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  15730. static int
  15731. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  15732. {
  15733. SHA384Init(ctx);
  15734. return (ARCHIVE_OK);
  15735. }
  15736. static int
  15737. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  15738. size_t insize)
  15739. {
  15740. SHA384Update(ctx, indata, insize);
  15741. return (ARCHIVE_OK);
  15742. }
  15743. static int
  15744. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  15745. {
  15746. SHA384Final(md, ctx);
  15747. return (ARCHIVE_OK);
  15748. }
  15749. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  15750. static int
  15751. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  15752. {
  15753. SHA384Init(ctx);
  15754. return (ARCHIVE_OK);
  15755. }
  15756. static int
  15757. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  15758. size_t insize)
  15759. {
  15760. SHA384Update(ctx, indata, insize);
  15761. return (ARCHIVE_OK);
  15762. }
  15763. static int
  15764. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  15765. {
  15766. SHA384Final(md, ctx);
  15767. return (ARCHIVE_OK);
  15768. }
  15769. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  15770. static int
  15771. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  15772. {
  15773. CC_SHA384_Init(ctx);
  15774. return (ARCHIVE_OK);
  15775. }
  15776. static int
  15777. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  15778. size_t insize)
  15779. {
  15780. CC_SHA384_Update(ctx, indata, insize);
  15781. return (ARCHIVE_OK);
  15782. }
  15783. static int
  15784. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  15785. {
  15786. CC_SHA384_Final(md, ctx);
  15787. return (ARCHIVE_OK);
  15788. }
  15789. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  15790. static int
  15791. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  15792. {
  15793. sha384_init(ctx);
  15794. return (ARCHIVE_OK);
  15795. }
  15796. static int
  15797. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  15798. size_t insize)
  15799. {
  15800. sha384_update(ctx, insize, indata);
  15801. return (ARCHIVE_OK);
  15802. }
  15803. static int
  15804. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  15805. {
  15806. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  15807. return (ARCHIVE_OK);
  15808. }
  15809. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  15810. static int
  15811. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  15812. {
  15813. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  15814. return (ARCHIVE_FAILED);
  15815. EVP_DigestInit(*ctx, EVP_sha384());
  15816. return (ARCHIVE_OK);
  15817. }
  15818. static int
  15819. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  15820. size_t insize)
  15821. {
  15822. EVP_DigestUpdate(*ctx, indata, insize);
  15823. return (ARCHIVE_OK);
  15824. }
  15825. static int
  15826. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  15827. {
  15828. if (*ctx) {
  15829. EVP_DigestFinal(*ctx, md, NULL);
  15830. EVP_MD_CTX_free(*ctx);
  15831. *ctx = NULL;
  15832. }
  15833. return (ARCHIVE_OK);
  15834. }
  15835. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  15836. static int
  15837. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  15838. {
  15839. return (win_crypto_init(ctx, CALG_SHA_384));
  15840. }
  15841. static int
  15842. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  15843. size_t insize)
  15844. {
  15845. return (win_crypto_Update(ctx, indata, insize));
  15846. }
  15847. static int
  15848. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  15849. {
  15850. return (win_crypto_Final(md, 48, ctx));
  15851. }
  15852. #else
  15853. static int
  15854. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  15855. {
  15856. (void)ctx; /* UNUSED */
  15857. return (ARCHIVE_FAILED);
  15858. }
  15859. static int
  15860. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  15861. size_t insize)
  15862. {
  15863. (void)ctx; /* UNUSED */
  15864. (void)indata; /* UNUSED */
  15865. (void)insize; /* UNUSED */
  15866. return (ARCHIVE_FAILED);
  15867. }
  15868. static int
  15869. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  15870. {
  15871. (void)ctx; /* UNUSED */
  15872. (void)md; /* UNUSED */
  15873. return (ARCHIVE_FAILED);
  15874. }
  15875. #endif
  15876. /* SHA512 implementations */
  15877. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  15878. static int
  15879. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  15880. {
  15881. SHA512_Init(ctx);
  15882. return (ARCHIVE_OK);
  15883. }
  15884. static int
  15885. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  15886. size_t insize)
  15887. {
  15888. SHA512_Update(ctx, indata, insize);
  15889. return (ARCHIVE_OK);
  15890. }
  15891. static int
  15892. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  15893. {
  15894. SHA512_Final(md, ctx);
  15895. return (ARCHIVE_OK);
  15896. }
  15897. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  15898. static int
  15899. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  15900. {
  15901. SHA512Init(ctx);
  15902. return (ARCHIVE_OK);
  15903. }
  15904. static int
  15905. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  15906. size_t insize)
  15907. {
  15908. SHA512Update(ctx, indata, insize);
  15909. return (ARCHIVE_OK);
  15910. }
  15911. static int
  15912. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  15913. {
  15914. SHA512Final(md, ctx);
  15915. return (ARCHIVE_OK);
  15916. }
  15917. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  15918. static int
  15919. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  15920. {
  15921. SHA512Init(ctx);
  15922. return (ARCHIVE_OK);
  15923. }
  15924. static int
  15925. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  15926. size_t insize)
  15927. {
  15928. SHA512Update(ctx, indata, insize);
  15929. return (ARCHIVE_OK);
  15930. }
  15931. static int
  15932. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  15933. {
  15934. SHA512Final(md, ctx);
  15935. return (ARCHIVE_OK);
  15936. }
  15937. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  15938. static int
  15939. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  15940. {
  15941. SHA512_Init(ctx);
  15942. return (ARCHIVE_OK);
  15943. }
  15944. static int
  15945. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  15946. size_t insize)
  15947. {
  15948. SHA512_Update(ctx, indata, insize);
  15949. return (ARCHIVE_OK);
  15950. }
  15951. static int
  15952. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  15953. {
  15954. SHA512_Final(md, ctx);
  15955. return (ARCHIVE_OK);
  15956. }
  15957. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  15958. static int
  15959. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  15960. {
  15961. CC_SHA512_Init(ctx);
  15962. return (ARCHIVE_OK);
  15963. }
  15964. static int
  15965. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  15966. size_t insize)
  15967. {
  15968. CC_SHA512_Update(ctx, indata, insize);
  15969. return (ARCHIVE_OK);
  15970. }
  15971. static int
  15972. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  15973. {
  15974. CC_SHA512_Final(md, ctx);
  15975. return (ARCHIVE_OK);
  15976. }
  15977. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  15978. static int
  15979. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  15980. {
  15981. sha512_init(ctx);
  15982. return (ARCHIVE_OK);
  15983. }
  15984. static int
  15985. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  15986. size_t insize)
  15987. {
  15988. sha512_update(ctx, insize, indata);
  15989. return (ARCHIVE_OK);
  15990. }
  15991. static int
  15992. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  15993. {
  15994. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  15995. return (ARCHIVE_OK);
  15996. }
  15997. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  15998. static int
  15999. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  16000. {
  16001. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  16002. return (ARCHIVE_FAILED);
  16003. EVP_DigestInit(*ctx, EVP_sha512());
  16004. return (ARCHIVE_OK);
  16005. }
  16006. static int
  16007. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  16008. size_t insize)
  16009. {
  16010. EVP_DigestUpdate(*ctx, indata, insize);
  16011. return (ARCHIVE_OK);
  16012. }
  16013. static int
  16014. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  16015. {
  16016. if (*ctx) {
  16017. EVP_DigestFinal(*ctx, md, NULL);
  16018. EVP_MD_CTX_free(*ctx);
  16019. *ctx = NULL;
  16020. }
  16021. return (ARCHIVE_OK);
  16022. }
  16023. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  16024. static int
  16025. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  16026. {
  16027. return (win_crypto_init(ctx, CALG_SHA_512));
  16028. }
  16029. static int
  16030. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  16031. size_t insize)
  16032. {
  16033. return (win_crypto_Update(ctx, indata, insize));
  16034. }
  16035. static int
  16036. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  16037. {
  16038. return (win_crypto_Final(md, 64, ctx));
  16039. }
  16040. #else
  16041. static int
  16042. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  16043. {
  16044. (void)ctx; /* UNUSED */
  16045. return (ARCHIVE_FAILED);
  16046. }
  16047. static int
  16048. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  16049. size_t insize)
  16050. {
  16051. (void)ctx; /* UNUSED */
  16052. (void)indata; /* UNUSED */
  16053. (void)insize; /* UNUSED */
  16054. return (ARCHIVE_FAILED);
  16055. }
  16056. static int
  16057. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  16058. {
  16059. (void)ctx; /* UNUSED */
  16060. (void)md; /* UNUSED */
  16061. return (ARCHIVE_FAILED);
  16062. }
  16063. #endif
  16064. /* NOTE: Message Digest functions are set based on availability and by the
  16065. * following order of preference.
  16066. * 1. libc
  16067. * 2. libc2
  16068. * 3. libc3
  16069. * 4. libSystem
  16070. * 5. Nettle
  16071. * 6. OpenSSL
  16072. * 7. libmd
  16073. * 8. Windows API
  16074. */
  16075. const struct archive_digest __archive_digest =
  16076. {
  16077. /* MD5 */
  16078. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  16079. &__archive_libc_md5init,
  16080. &__archive_libc_md5update,
  16081. &__archive_libc_md5final,
  16082. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  16083. &__archive_libmd_md5init,
  16084. &__archive_libmd_md5update,
  16085. &__archive_libmd_md5final,
  16086. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  16087. &__archive_libsystem_md5init,
  16088. &__archive_libsystem_md5update,
  16089. &__archive_libsystem_md5final,
  16090. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  16091. &__archive_nettle_md5init,
  16092. &__archive_nettle_md5update,
  16093. &__archive_nettle_md5final,
  16094. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  16095. &__archive_openssl_md5init,
  16096. &__archive_openssl_md5update,
  16097. &__archive_openssl_md5final,
  16098. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  16099. &__archive_windowsapi_md5init,
  16100. &__archive_windowsapi_md5update,
  16101. &__archive_windowsapi_md5final,
  16102. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  16103. &__archive_stub_md5init,
  16104. &__archive_stub_md5update,
  16105. &__archive_stub_md5final,
  16106. #endif
  16107. /* RIPEMD160 */
  16108. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  16109. &__archive_libc_ripemd160init,
  16110. &__archive_libc_ripemd160update,
  16111. &__archive_libc_ripemd160final,
  16112. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  16113. &__archive_libmd_ripemd160init,
  16114. &__archive_libmd_ripemd160update,
  16115. &__archive_libmd_ripemd160final,
  16116. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  16117. &__archive_nettle_ripemd160init,
  16118. &__archive_nettle_ripemd160update,
  16119. &__archive_nettle_ripemd160final,
  16120. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  16121. &__archive_openssl_ripemd160init,
  16122. &__archive_openssl_ripemd160update,
  16123. &__archive_openssl_ripemd160final,
  16124. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  16125. &__archive_stub_ripemd160init,
  16126. &__archive_stub_ripemd160update,
  16127. &__archive_stub_ripemd160final,
  16128. #endif
  16129. /* SHA1 */
  16130. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  16131. &__archive_libc_sha1init,
  16132. &__archive_libc_sha1update,
  16133. &__archive_libc_sha1final,
  16134. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  16135. &__archive_libmd_sha1init,
  16136. &__archive_libmd_sha1update,
  16137. &__archive_libmd_sha1final,
  16138. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  16139. &__archive_libsystem_sha1init,
  16140. &__archive_libsystem_sha1update,
  16141. &__archive_libsystem_sha1final,
  16142. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  16143. &__archive_nettle_sha1init,
  16144. &__archive_nettle_sha1update,
  16145. &__archive_nettle_sha1final,
  16146. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  16147. &__archive_openssl_sha1init,
  16148. &__archive_openssl_sha1update,
  16149. &__archive_openssl_sha1final,
  16150. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  16151. &__archive_windowsapi_sha1init,
  16152. &__archive_windowsapi_sha1update,
  16153. &__archive_windowsapi_sha1final,
  16154. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  16155. &__archive_stub_sha1init,
  16156. &__archive_stub_sha1update,
  16157. &__archive_stub_sha1final,
  16158. #endif
  16159. /* SHA256 */
  16160. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  16161. &__archive_libc_sha256init,
  16162. &__archive_libc_sha256update,
  16163. &__archive_libc_sha256final,
  16164. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  16165. &__archive_libc2_sha256init,
  16166. &__archive_libc2_sha256update,
  16167. &__archive_libc2_sha256final,
  16168. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  16169. &__archive_libc3_sha256init,
  16170. &__archive_libc3_sha256update,
  16171. &__archive_libc3_sha256final,
  16172. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  16173. &__archive_libmd_sha256init,
  16174. &__archive_libmd_sha256update,
  16175. &__archive_libmd_sha256final,
  16176. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  16177. &__archive_libsystem_sha256init,
  16178. &__archive_libsystem_sha256update,
  16179. &__archive_libsystem_sha256final,
  16180. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  16181. &__archive_nettle_sha256init,
  16182. &__archive_nettle_sha256update,
  16183. &__archive_nettle_sha256final,
  16184. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  16185. &__archive_openssl_sha256init,
  16186. &__archive_openssl_sha256update,
  16187. &__archive_openssl_sha256final,
  16188. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  16189. &__archive_windowsapi_sha256init,
  16190. &__archive_windowsapi_sha256update,
  16191. &__archive_windowsapi_sha256final,
  16192. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  16193. &__archive_stub_sha256init,
  16194. &__archive_stub_sha256update,
  16195. &__archive_stub_sha256final,
  16196. #endif
  16197. /* SHA384 */
  16198. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  16199. &__archive_libc_sha384init,
  16200. &__archive_libc_sha384update,
  16201. &__archive_libc_sha384final,
  16202. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  16203. &__archive_libc2_sha384init,
  16204. &__archive_libc2_sha384update,
  16205. &__archive_libc2_sha384final,
  16206. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  16207. &__archive_libc3_sha384init,
  16208. &__archive_libc3_sha384update,
  16209. &__archive_libc3_sha384final,
  16210. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  16211. &__archive_libsystem_sha384init,
  16212. &__archive_libsystem_sha384update,
  16213. &__archive_libsystem_sha384final,
  16214. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  16215. &__archive_nettle_sha384init,
  16216. &__archive_nettle_sha384update,
  16217. &__archive_nettle_sha384final,
  16218. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  16219. &__archive_openssl_sha384init,
  16220. &__archive_openssl_sha384update,
  16221. &__archive_openssl_sha384final,
  16222. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  16223. &__archive_windowsapi_sha384init,
  16224. &__archive_windowsapi_sha384update,
  16225. &__archive_windowsapi_sha384final,
  16226. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  16227. &__archive_stub_sha384init,
  16228. &__archive_stub_sha384update,
  16229. &__archive_stub_sha384final,
  16230. #endif
  16231. /* SHA512 */
  16232. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  16233. &__archive_libc_sha512init,
  16234. &__archive_libc_sha512update,
  16235. &__archive_libc_sha512final
  16236. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  16237. &__archive_libc2_sha512init,
  16238. &__archive_libc2_sha512update,
  16239. &__archive_libc2_sha512final
  16240. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  16241. &__archive_libc3_sha512init,
  16242. &__archive_libc3_sha512update,
  16243. &__archive_libc3_sha512final
  16244. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  16245. &__archive_libmd_sha512init,
  16246. &__archive_libmd_sha512update,
  16247. &__archive_libmd_sha512final
  16248. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  16249. &__archive_libsystem_sha512init,
  16250. &__archive_libsystem_sha512update,
  16251. &__archive_libsystem_sha512final
  16252. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  16253. &__archive_nettle_sha512init,
  16254. &__archive_nettle_sha512update,
  16255. &__archive_nettle_sha512final
  16256. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  16257. &__archive_openssl_sha512init,
  16258. &__archive_openssl_sha512update,
  16259. &__archive_openssl_sha512final
  16260. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  16261. &__archive_windowsapi_sha512init,
  16262. &__archive_windowsapi_sha512update,
  16263. &__archive_windowsapi_sha512final
  16264. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  16265. &__archive_stub_sha512init,
  16266. &__archive_stub_sha512update,
  16267. &__archive_stub_sha512final
  16268. #endif
  16269. };
  16270. int
  16271. main(int argc, char **argv)
  16272. {
  16273. archive_sha256_ctx ctx;
  16274. archive_sha256_init(&ctx);
  16275. archive_sha256_update(&ctx, *argv, argc);
  16276. archive_sha256_final(&ctx, NULL);
  16277. return 0;
  16278. }
  16279. Checking support for ARCHIVE_CRYPTO_SHA384_LIBC failed with the following output:
  16280. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  16281. Run Build Command:"/usr/bin/make" "cmTC_94db0/fast"
  16282. make -f CMakeFiles/cmTC_94db0.dir/build.make CMakeFiles/cmTC_94db0.dir/build
  16283. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  16284. Building C object CMakeFiles/cmTC_94db0.dir/check_crypto_md.c.o
  16285. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_94db0.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  16286. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  16287. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory
  16288. compilation terminated.
  16289. CMakeFiles/cmTC_94db0.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_94db0.dir/check_crypto_md.c.o' failed
  16290. make[1]: *** [CMakeFiles/cmTC_94db0.dir/check_crypto_md.c.o] Error 1
  16291. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  16292. Makefile:126: recipe for target 'cmTC_94db0/fast' failed
  16293. make: *** [cmTC_94db0/fast] Error 2
  16294. Source file was:
  16295. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  16296. #if defined(__osf__)
  16297. # define _OSF_SOURCE
  16298. #endif
  16299. /*
  16300. * Ensure we have C99-style int64_t, etc, all defined.
  16301. */
  16302. /* First, we need to know if the system has already defined them. */
  16303. #define HAVE_INT16_T
  16304. #define HAVE_INT32_T
  16305. #define HAVE_INT64_T
  16306. #define HAVE_INTMAX_T
  16307. #define HAVE_UINT8_T
  16308. #define HAVE_UINT16_T
  16309. #define HAVE_UINT32_T
  16310. #define HAVE_UINT64_T
  16311. #define HAVE_UINTMAX_T
  16312. /* We might have the types we want under other spellings. */
  16313. /* #undef HAVE___INT64 */
  16314. /* #undef HAVE_U_INT64_T */
  16315. /* #undef HAVE_UNSIGNED___INT64 */
  16316. /* The sizes of various standard integer types. */
  16317. #define SIZE_OF_SHORT 2
  16318. #define SIZE_OF_INT 4
  16319. #define SIZE_OF_LONG 8
  16320. #define SIZE_OF_LONG_LONG 8
  16321. #define SIZE_OF_UNSIGNED_SHORT 2
  16322. #define SIZE_OF_UNSIGNED 4
  16323. #define SIZE_OF_UNSIGNED_LONG 8
  16324. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  16325. /*
  16326. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  16327. * that exists and is the right size.
  16328. */
  16329. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  16330. typedef __int64 int64_t;
  16331. #define HAVE_INT64_T
  16332. #endif
  16333. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  16334. typedef int int64_t;
  16335. #define HAVE_INT64_T
  16336. #endif
  16337. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  16338. typedef long int64_t;
  16339. #define HAVE_INT64_T
  16340. #endif
  16341. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  16342. typedef long long int64_t;
  16343. #define HAVE_INT64_T
  16344. #endif
  16345. #if !defined(HAVE_INT64_T)
  16346. #error No 64-bit integer type was found.
  16347. #endif
  16348. /*
  16349. * Similarly for int32_t
  16350. */
  16351. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  16352. typedef int int32_t;
  16353. #define HAVE_INT32_T
  16354. #endif
  16355. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  16356. typedef long int32_t;
  16357. #define HAVE_INT32_T
  16358. #endif
  16359. #if !defined(HAVE_INT32_T)
  16360. #error No 32-bit integer type was found.
  16361. #endif
  16362. /*
  16363. * Similarly for int16_t
  16364. */
  16365. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  16366. typedef int int16_t;
  16367. #define HAVE_INT16_T
  16368. #endif
  16369. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  16370. typedef short int16_t;
  16371. #define HAVE_INT16_T
  16372. #endif
  16373. #if !defined(HAVE_INT16_T)
  16374. #error No 16-bit integer type was found.
  16375. #endif
  16376. /*
  16377. * Similarly for uint64_t
  16378. */
  16379. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  16380. typedef unsigned __int64 uint64_t;
  16381. #define HAVE_UINT64_T
  16382. #endif
  16383. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  16384. typedef unsigned uint64_t;
  16385. #define HAVE_UINT64_T
  16386. #endif
  16387. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  16388. typedef unsigned long uint64_t;
  16389. #define HAVE_UINT64_T
  16390. #endif
  16391. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  16392. typedef unsigned long long uint64_t;
  16393. #define HAVE_UINT64_T
  16394. #endif
  16395. #if !defined(HAVE_UINT64_T)
  16396. #error No 64-bit unsigned integer type was found.
  16397. #endif
  16398. /*
  16399. * Similarly for uint32_t
  16400. */
  16401. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  16402. typedef unsigned uint32_t;
  16403. #define HAVE_UINT32_T
  16404. #endif
  16405. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  16406. typedef unsigned long uint32_t;
  16407. #define HAVE_UINT32_T
  16408. #endif
  16409. #if !defined(HAVE_UINT32_T)
  16410. #error No 32-bit unsigned integer type was found.
  16411. #endif
  16412. /*
  16413. * Similarly for uint16_t
  16414. */
  16415. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  16416. typedef unsigned uint16_t;
  16417. #define HAVE_UINT16_T
  16418. #endif
  16419. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  16420. typedef unsigned short uint16_t;
  16421. #define HAVE_UINT16_T
  16422. #endif
  16423. #if !defined(HAVE_UINT16_T)
  16424. #error No 16-bit unsigned integer type was found.
  16425. #endif
  16426. /*
  16427. * Similarly for uint8_t
  16428. */
  16429. #if !defined(HAVE_UINT8_T)
  16430. typedef unsigned char uint8_t;
  16431. #define HAVE_UINT8_T
  16432. #endif
  16433. #if !defined(HAVE_UINT16_T)
  16434. #error No 8-bit unsigned integer type was found.
  16435. #endif
  16436. /* Define intmax_t and uintmax_t if they are not already defined. */
  16437. #if !defined(HAVE_INTMAX_T)
  16438. typedef int64_t intmax_t;
  16439. #endif
  16440. #if !defined(HAVE_UINTMAX_T)
  16441. typedef uint64_t uintmax_t;
  16442. #endif
  16443. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  16444. /* #undef ZLIB_WINAPI */
  16445. /* Darwin ACL support */
  16446. /* #undef ARCHIVE_ACL_DARWIN */
  16447. /* FreeBSD ACL support */
  16448. /* #undef ARCHIVE_ACL_FREEBSD */
  16449. /* FreeBSD NFSv4 ACL support */
  16450. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  16451. /* Linux POSIX.1e ACL support via libacl */
  16452. /* #undef ARCHIVE_ACL_LIBACL */
  16453. /* Linux NFSv4 ACL support via librichacl */
  16454. /* #undef ARCHIVE_ACL_LIBRICHACL */
  16455. /* Solaris ACL support */
  16456. /* #undef ARCHIVE_ACL_SUNOS */
  16457. /* Solaris NFSv4 ACL support */
  16458. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  16459. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  16460. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  16461. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  16462. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  16463. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  16464. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  16465. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  16466. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  16467. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  16468. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  16469. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  16470. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  16471. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  16472. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  16473. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  16474. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  16475. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  16476. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  16477. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  16478. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  16479. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  16480. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  16481. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  16482. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  16483. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  16484. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  16485. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  16486. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  16487. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  16488. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  16489. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  16490. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  16491. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  16492. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  16493. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  16494. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  16495. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  16496. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  16497. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  16498. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  16499. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  16500. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  16501. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  16502. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  16503. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  16504. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  16505. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  16506. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  16507. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  16508. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  16509. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  16510. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  16511. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  16512. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  16513. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  16514. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  16515. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  16516. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  16517. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  16518. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  16519. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  16520. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  16521. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  16522. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  16523. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  16524. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  16525. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  16526. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  16527. /* AIX xattr support */
  16528. /* #undef ARCHIVE_XATTR_AIX */
  16529. /* Darwin xattr support */
  16530. /* #undef ARCHIVE_XATTR_DARWIN */
  16531. /* FreeBSD xattr support */
  16532. /* #undef ARCHIVE_XATTR_FREEBSD */
  16533. /* Linux xattr support */
  16534. /* #undef ARCHIVE_XATTR_LINUX */
  16535. /* Version number of bsdcpio */
  16536. #define BSDCPIO_VERSION_STRING "3.3.2"
  16537. /* Version number of bsdtar */
  16538. #define BSDTAR_VERSION_STRING "3.3.2"
  16539. /* Version number of bsdcat */
  16540. #define BSDCAT_VERSION_STRING "3.3.2"
  16541. /* Define to 1 if you have the `acl_create_entry' function. */
  16542. /* #undef HAVE_ACL_CREATE_ENTRY */
  16543. /* Define to 1 if you have the `acl_get_fd_np' function. */
  16544. /* #undef HAVE_ACL_GET_FD_NP */
  16545. /* Define to 1 if you have the `acl_get_link' function. */
  16546. /* #undef HAVE_ACL_GET_LINK */
  16547. /* Define to 1 if you have the `acl_get_link_np' function. */
  16548. /* #undef HAVE_ACL_GET_LINK_NP */
  16549. /* Define to 1 if you have the `acl_get_perm' function. */
  16550. /* #undef HAVE_ACL_GET_PERM */
  16551. /* Define to 1 if you have the `acl_get_perm_np' function. */
  16552. /* #undef HAVE_ACL_GET_PERM_NP */
  16553. /* Define to 1 if you have the `acl_init' function. */
  16554. /* #undef HAVE_ACL_INIT */
  16555. /* Define to 1 if you have the <acl/libacl.h> header file. */
  16556. /* #undef HAVE_ACL_LIBACL_H */
  16557. /* Define to 1 if the system has the type `acl_permset_t'. */
  16558. /* #undef HAVE_ACL_PERMSET_T */
  16559. /* Define to 1 if you have the `acl_set_fd' function. */
  16560. /* #undef HAVE_ACL_SET_FD */
  16561. /* Define to 1 if you have the `acl_set_fd_np' function. */
  16562. /* #undef HAVE_ACL_SET_FD_NP */
  16563. /* Define to 1 if you have the `acl_set_file' function. */
  16564. /* #undef HAVE_ACL_SET_FILE */
  16565. /* Define to 1 if you have the `arc4random_buf' function. */
  16566. /* #undef HAVE_ARC4RANDOM_BUF */
  16567. /* Define to 1 if you have the <attr/xattr.h> header file. */
  16568. /* #undef HAVE_ATTR_XATTR_H */
  16569. /* Define to 1 if you have the <Bcrypt.h> header file. */
  16570. /* #undef HAVE_BCRYPT_H */
  16571. /* Define to 1 if you have the <bsdxml.h> header file. */
  16572. /* #undef HAVE_BSDXML_H */
  16573. /* Define to 1 if you have the <bzlib.h> header file. */
  16574. #define HAVE_BZLIB_H 1
  16575. /* Define to 1 if you have the `chflags' function. */
  16576. /* #undef HAVE_CHFLAGS */
  16577. /* Define to 1 if you have the `chown' function. */
  16578. #define HAVE_CHOWN 1
  16579. /* Define to 1 if you have the `chroot' function. */
  16580. #define HAVE_CHROOT 1
  16581. /* Define to 1 if you have the <copyfile.h> header file. */
  16582. /* #undef HAVE_COPYFILE_H */
  16583. /* Define to 1 if you have the `ctime_r' function. */
  16584. #define HAVE_CTIME_R 1
  16585. /* Define to 1 if you have the <ctype.h> header file. */
  16586. #define HAVE_CTYPE_H 1
  16587. /* Define to 1 if you have the `cygwin_conv_path' function. */
  16588. /* #undef HAVE_CYGWIN_CONV_PATH */
  16589. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  16590. don't. */
  16591. /* #undef HAVE_DECL_ACE_GETACL */
  16592. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  16593. don't. */
  16594. /* #undef HAVE_DECL_ACE_GETACLCNT */
  16595. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  16596. don't. */
  16597. /* #undef HAVE_DECL_ACE_SETACL */
  16598. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  16599. you don't. */
  16600. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  16601. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  16602. you don't. */
  16603. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  16604. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  16605. don't. */
  16606. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  16607. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  16608. don't. */
  16609. /* #undef HAVE_DECL_ACL_USER */
  16610. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  16611. don't. */
  16612. #define HAVE_DECL_INT32_MAX 1
  16613. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  16614. don't. */
  16615. #define HAVE_DECL_INT32_MIN 1
  16616. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  16617. don't. */
  16618. #define HAVE_DECL_INT64_MAX 1
  16619. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  16620. don't. */
  16621. #define HAVE_DECL_INT64_MIN 1
  16622. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  16623. don't. */
  16624. #define HAVE_DECL_INTMAX_MAX 1
  16625. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  16626. don't. */
  16627. #define HAVE_DECL_INTMAX_MIN 1
  16628. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  16629. */
  16630. /* #undef HAVE_DECL_SETACL */
  16631. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  16632. don't. */
  16633. #define HAVE_DECL_SIZE_MAX 1
  16634. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  16635. don't. */
  16636. #define HAVE_DECL_SSIZE_MAX 1
  16637. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  16638. don't. */
  16639. #define HAVE_DECL_STRERROR_R 1
  16640. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  16641. don't. */
  16642. #define HAVE_DECL_UINT32_MAX 1
  16643. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  16644. don't. */
  16645. #define HAVE_DECL_UINT64_MAX 1
  16646. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  16647. don't. */
  16648. #define HAVE_DECL_UINTMAX_MAX 1
  16649. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  16650. you don't. */
  16651. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  16652. /* Define to 1 if you have the <direct.h> header file. */
  16653. /* #undef HAVE_DIRECT_H */
  16654. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  16655. */
  16656. #define HAVE_DIRENT_H 1
  16657. /* Define to 1 if you have the `dirfd' function. */
  16658. #define HAVE_DIRFD 1
  16659. /* Define to 1 if you have the <dlfcn.h> header file. */
  16660. #define HAVE_DLFCN_H 1
  16661. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  16662. /* #undef HAVE_DOPRNT */
  16663. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  16664. /* #undef HAVE_D_MD_ORDER */
  16665. /* A possible errno value for invalid file format errors */
  16666. /* #undef HAVE_EFTYPE */
  16667. /* A possible errno value for invalid file format errors */
  16668. #define HAVE_EILSEQ 1
  16669. /* Define to 1 if you have the <errno.h> header file. */
  16670. #define HAVE_ERRNO_H 1
  16671. /* Define to 1 if you have the <expat.h> header file. */
  16672. /* #undef HAVE_EXPAT_H */
  16673. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  16674. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  16675. /* Define to 1 if you have the `extattr_get_file' function. */
  16676. /* #undef HAVE_EXTATTR_GET_FILE */
  16677. /* Define to 1 if you have the `extattr_list_file' function. */
  16678. /* #undef HAVE_EXTATTR_LIST_FILE */
  16679. /* Define to 1 if you have the `extattr_set_fd' function. */
  16680. /* #undef HAVE_EXTATTR_SET_FD */
  16681. /* Define to 1 if you have the `extattr_set_file' function. */
  16682. /* #undef HAVE_EXTATTR_SET_FILE */
  16683. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  16684. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  16685. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  16686. */
  16687. /* #undef HAVE_DECL_GETACL */
  16688. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  16689. don't. */
  16690. /* #undef HAVE_DECL_GETACLCNT */
  16691. /* Define to 1 if you have the `fchdir' function. */
  16692. #define HAVE_FCHDIR 1
  16693. /* Define to 1 if you have the `fchflags' function. */
  16694. /* #undef HAVE_FCHFLAGS */
  16695. /* Define to 1 if you have the `fchmod' function. */
  16696. #define HAVE_FCHMOD 1
  16697. /* Define to 1 if you have the `fchown' function. */
  16698. #define HAVE_FCHOWN 1
  16699. /* Define to 1 if you have the `fcntl' function. */
  16700. #define HAVE_FCNTL 1
  16701. /* Define to 1 if you have the <fcntl.h> header file. */
  16702. #define HAVE_FCNTL_H 1
  16703. /* Define to 1 if you have the `fdopendir' function. */
  16704. #define HAVE_FDOPENDIR 1
  16705. /* Define to 1 if you have the `fgetea' function. */
  16706. /* #undef HAVE_FGETEA */
  16707. /* Define to 1 if you have the `fgetxattr' function. */
  16708. /* #undef HAVE_FGETXATTR */
  16709. /* Define to 1 if you have the `flistea' function. */
  16710. /* #undef HAVE_FLISTEA */
  16711. /* Define to 1 if you have the `flistxattr' function. */
  16712. /* #undef HAVE_FLISTXATTR */
  16713. /* Define to 1 if you have the `fork' function. */
  16714. #define HAVE_FORK 1
  16715. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  16716. #define HAVE_FSEEKO 1
  16717. /* Define to 1 if you have the `fsetea' function. */
  16718. /* #undef HAVE_FSETEA */
  16719. /* Define to 1 if you have the `fsetxattr' function. */
  16720. #define HAVE_FSETXATTR 1
  16721. /* Define to 1 if you have the `fstat' function. */
  16722. #define HAVE_FSTAT 1
  16723. /* Define to 1 if you have the `fstatat' function. */
  16724. #define HAVE_FSTATAT 1
  16725. /* Define to 1 if you have the `fstatfs' function. */
  16726. #define HAVE_FSTATFS 1
  16727. /* Define to 1 if you have the `fstatvfs' function. */
  16728. #define HAVE_FSTATVFS 1
  16729. /* Define to 1 if you have the `ftruncate' function. */
  16730. #define HAVE_FTRUNCATE 1
  16731. /* Define to 1 if you have the `futimens' function. */
  16732. #define HAVE_FUTIMENS 1
  16733. /* Define to 1 if you have the `futimes' function. */
  16734. #define HAVE_FUTIMES 1
  16735. /* Define to 1 if you have the `futimesat' function. */
  16736. #define HAVE_FUTIMESAT 1
  16737. /* Define to 1 if you have the `getea' function. */
  16738. /* #undef HAVE_GETEA */
  16739. /* Define to 1 if you have the `geteuid' function. */
  16740. #define HAVE_GETEUID 1
  16741. /* Define to 1 if you have the `getgrgid_r' function. */
  16742. #define HAVE_GETGRGID_R 1
  16743. /* Define to 1 if you have the `getgrnam_r' function. */
  16744. #define HAVE_GETGRNAM_R 1
  16745. /* Define to 1 if you have the `getpid' function. */
  16746. #define HAVE_GETPID 1
  16747. /* Define to 1 if you have the `getpwnam_r' function. */
  16748. #define HAVE_GETPWNAM_R 1
  16749. /* Define to 1 if you have the `getpwuid_r' function. */
  16750. #define HAVE_GETPWUID_R 1
  16751. /* Define to 1 if you have the `getvfsbyname' function. */
  16752. /* #undef HAVE_GETVFSBYNAME */
  16753. /* Define to 1 if you have the `getxattr' function. */
  16754. /* #undef HAVE_GETXATTR */
  16755. /* Define to 1 if you have the `gmtime_r' function. */
  16756. #define HAVE_GMTIME_R 1
  16757. /* Define to 1 if you have the <grp.h> header file. */
  16758. #define HAVE_GRP_H 1
  16759. /* Define to 1 if you have the `iconv' function. */
  16760. /* #undef HAVE_ICONV */
  16761. /* Define to 1 if you have the <iconv.h> header file. */
  16762. /* #undef HAVE_ICONV_H */
  16763. /* Define to 1 if you have the <inttypes.h> header file. */
  16764. #define HAVE_INTTYPES_H 1
  16765. /* Define to 1 if you have the <io.h> header file. */
  16766. /* #undef HAVE_IO_H */
  16767. /* Define to 1 if you have the <langinfo.h> header file. */
  16768. #define HAVE_LANGINFO_H 1
  16769. /* Define to 1 if you have the `lchflags' function. */
  16770. /* #undef HAVE_LCHFLAGS */
  16771. /* Define to 1 if you have the `lchmod' function. */
  16772. /* #undef HAVE_LCHMOD */
  16773. /* Define to 1 if you have the `lchown' function. */
  16774. #define HAVE_LCHOWN 1
  16775. /* Define to 1 if you have the `lgetea' function. */
  16776. /* #undef HAVE_LGETEA */
  16777. /* Define to 1 if you have the `lgetxattr' function. */
  16778. /* #undef HAVE_LGETXATTR */
  16779. /* Define to 1 if you have the `acl' library (-lacl). */
  16780. /* #undef HAVE_LIBACL */
  16781. /* Define to 1 if you have the `attr' library (-lattr). */
  16782. /* #undef HAVE_LIBATTR */
  16783. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  16784. /* #undef HAVE_LIBBSDXML */
  16785. /* Define to 1 if you have the `bz2' library (-lbz2). */
  16786. #define HAVE_LIBBZ2 1
  16787. /* Define to 1 if you have the `charset' library (-lcharset). */
  16788. /* #undef HAVE_LIBCHARSET */
  16789. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  16790. #define HAVE_LIBCRYPTO 1
  16791. /* Define to 1 if you have the `expat' library (-lexpat). */
  16792. /* #undef HAVE_LIBEXPAT */
  16793. /* Define to 1 if you have the `gcc' library (-lgcc). */
  16794. /* #undef HAVE_LIBGCC */
  16795. /* Define to 1 if you have the `lz4' library (-llz4). */
  16796. /* #undef HAVE_LIBLZ4 */
  16797. /* Define to 1 if you have the `lzma' library (-llzma). */
  16798. #define HAVE_LIBLZMA 1
  16799. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  16800. /* #undef HAVE_LIBLZMADEC */
  16801. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  16802. /* #undef HAVE_LIBLZO2 */
  16803. /* Define to 1 if you have the `nettle' library (-lnettle). */
  16804. /* #undef HAVE_LIBNETTLE */
  16805. /* Define to 1 if you have the `pcre' library (-lpcre). */
  16806. /* #undef HAVE_LIBPCRE */
  16807. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  16808. /* #undef HAVE_LIBPCREPOSIX */
  16809. /* Define to 1 if you have the `xml2' library (-lxml2). */
  16810. /* #undef HAVE_LIBXML2 */
  16811. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  16812. /* #undef HAVE_LIBXML_XMLREADER_H */
  16813. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  16814. /* #undef HAVE_LIBXML_XMLWRITER_H */
  16815. /* Define to 1 if you have the `z' library (-lz). */
  16816. #define HAVE_LIBZ 1
  16817. /* Define to 1 if you have the <limits.h> header file. */
  16818. #define HAVE_LIMITS_H 1
  16819. /* Define to 1 if you have the `link' function. */
  16820. #define HAVE_LINK 1
  16821. /* Define to 1 if you have the <linux/types.h> header file. */
  16822. #define HAVE_LINUX_TYPES_H 1
  16823. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  16824. #define HAVE_LINUX_FIEMAP_H 1
  16825. /* Define to 1 if you have the <linux/fs.h> header file. */
  16826. #define HAVE_LINUX_FS_H 1
  16827. /* Define to 1 if you have the <linux/magic.h> header file. */
  16828. #define HAVE_LINUX_MAGIC_H 1
  16829. /* Define to 1 if you have the <linux/types.h> header file. */
  16830. #define HAVE_LINUX_TYPES_H 1
  16831. /* Define to 1 if you have the `listea' function. */
  16832. /* #undef HAVE_LISTEA */
  16833. /* Define to 1 if you have the `listxattr' function. */
  16834. /* #undef HAVE_LISTXATTR */
  16835. /* Define to 1 if you have the `llistea' function. */
  16836. /* #undef HAVE_LLISTEA */
  16837. /* Define to 1 if you have the `llistxattr' function. */
  16838. /* #undef HAVE_LLISTXATTR */
  16839. /* Define to 1 if you have the <localcharset.h> header file. */
  16840. /* #undef HAVE_LOCALCHARSET_H */
  16841. /* Define to 1 if you have the `locale_charset' function. */
  16842. /* #undef HAVE_LOCALE_CHARSET */
  16843. /* Define to 1 if you have the <locale.h> header file. */
  16844. #define HAVE_LOCALE_H 1
  16845. /* Define to 1 if you have the `localtime_r' function. */
  16846. #define HAVE_LOCALTIME_R 1
  16847. /* Define to 1 if the system has the type `long long int'. */
  16848. /* #undef HAVE_LONG_LONG_INT */
  16849. /* Define to 1 if you have the `lsetea' function. */
  16850. /* #undef HAVE_LSETEA */
  16851. /* Define to 1 if you have the `lsetxattr' function. */
  16852. /* #undef HAVE_LSETXATTR */
  16853. /* Define to 1 if you have the `lstat' function. */
  16854. #define HAVE_LSTAT 1
  16855. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  16856. zero-length file name argument. */
  16857. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  16858. /* Define to 1 if you have the `lutimes' function. */
  16859. #define HAVE_LUTIMES 1
  16860. /* Define to 1 if you have the <lz4hc.h> header file. */
  16861. /* #undef HAVE_LZ4HC_H */
  16862. /* Define to 1 if you have the <lz4.h> header file. */
  16863. /* #undef HAVE_LZ4_H */
  16864. /* Define to 1 if you have the <lzmadec.h> header file. */
  16865. /* #undef HAVE_LZMADEC_H */
  16866. /* Define to 1 if you have the <lzma.h> header file. */
  16867. #define HAVE_LZMA_H 1
  16868. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  16869. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  16870. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  16871. /* #undef HAVE_LZO_LZO1X_H */
  16872. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  16873. /* #undef HAVE_LZO_LZOCONF_H */
  16874. /* Define to 1 if you have the `mbrtowc' function. */
  16875. #define HAVE_MBRTOWC 1
  16876. /* Define to 1 if you have the <membership.h> header file. */
  16877. /* #undef HAVE_MEMBERSHIP_H */
  16878. /* Define to 1 if you have the `memmove' function. */
  16879. #define HAVE_MEMMOVE 1
  16880. /* Define to 1 if you have the <memory.h> header file. */
  16881. #define HAVE_MEMORY_H 1
  16882. /* Define to 1 if you have the `mkdir' function. */
  16883. #define HAVE_MKDIR 1
  16884. /* Define to 1 if you have the `mkfifo' function. */
  16885. #define HAVE_MKFIFO 1
  16886. /* Define to 1 if you have the `mknod' function. */
  16887. #define HAVE_MKNOD 1
  16888. /* Define to 1 if you have the `mkstemp' function. */
  16889. #define HAVE_MKSTEMP 1
  16890. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  16891. /* #undef HAVE_NDIR_H */
  16892. /* Define to 1 if you have the <nettle/aes.h> header file. */
  16893. /* #undef HAVE_NETTLE_AES_H */
  16894. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  16895. /* #undef HAVE_NETTLE_HMAC_H */
  16896. /* Define to 1 if you have the <nettle/md5.h> header file. */
  16897. /* #undef HAVE_NETTLE_MD5_H */
  16898. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  16899. /* #undef HAVE_NETTLE_PBKDF2_H */
  16900. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  16901. /* #undef HAVE_NETTLE_RIPEMD160_H */
  16902. /* Define to 1 if you have the <nettle/sha.h> header file. */
  16903. /* #undef HAVE_NETTLE_SHA_H */
  16904. /* Define to 1 if you have the `nl_langinfo' function. */
  16905. #define HAVE_NL_LANGINFO 1
  16906. /* Define to 1 if you have the `openat' function. */
  16907. #define HAVE_OPENAT 1
  16908. /* Define to 1 if you have the <paths.h> header file. */
  16909. #define HAVE_PATHS_H 1
  16910. /* Define to 1 if you have the <pcreposix.h> header file. */
  16911. /* #undef HAVE_PCREPOSIX_H */
  16912. /* Define to 1 if you have the `pipe' function. */
  16913. #define HAVE_PIPE 1
  16914. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  16915. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  16916. /* Define to 1 if you have the `poll' function. */
  16917. #define HAVE_POLL 1
  16918. /* Define to 1 if you have the <poll.h> header file. */
  16919. #define HAVE_POLL_H 1
  16920. /* Define to 1 if you have the `posix_spawnp' function. */
  16921. #define HAVE_POSIX_SPAWNP 1
  16922. /* Define to 1 if you have the <process.h> header file. */
  16923. /* #undef HAVE_PROCESS_H */
  16924. /* Define to 1 if you have the <pthread.h> header file. */
  16925. /* #undef HAVE_PTHREAD_H */
  16926. /* Define to 1 if you have the <pwd.h> header file. */
  16927. #define HAVE_PWD_H 1
  16928. /* Define to 1 if you have the `readdir_r' function. */
  16929. #define HAVE_READDIR_R 1
  16930. /* Define to 1 if you have the `readlink' function. */
  16931. #define HAVE_READLINK 1
  16932. /* Define to 1 if you have the `readlinkat' function. */
  16933. #define HAVE_READLINKAT 1
  16934. /* Define to 1 if you have the `readpassphrase' function. */
  16935. /* #undef HAVE_READPASSPHRASE */
  16936. /* Define to 1 if you have the <readpassphrase.h> header file. */
  16937. /* #undef HAVE_READPASSPHRASE_H */
  16938. /* Define to 1 if you have the <regex.h> header file. */
  16939. #define HAVE_REGEX_H 1
  16940. /* Define to 1 if you have the `select' function. */
  16941. #define HAVE_SELECT 1
  16942. /* Define to 1 if you have the `setenv' function. */
  16943. #define HAVE_SETENV 1
  16944. /* Define to 1 if you have the `setlocale' function. */
  16945. #define HAVE_SETLOCALE 1
  16946. /* Define to 1 if you have the `sigaction' function. */
  16947. #define HAVE_SIGACTION 1
  16948. /* Define to 1 if you have the <signal.h> header file. */
  16949. #define HAVE_SIGNAL_H 1
  16950. /* Define to 1 if you have the <spawn.h> header file. */
  16951. #define HAVE_SPAWN_H 1
  16952. /* Define to 1 if you have the `statfs' function. */
  16953. #define HAVE_STATFS 1
  16954. /* Define to 1 if you have the `statvfs' function. */
  16955. #define HAVE_STATVFS 1
  16956. /* Define to 1 if `stat' has the bug that it succeeds when given the
  16957. zero-length file name argument. */
  16958. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  16959. /* Define to 1 if you have the <stdarg.h> header file. */
  16960. #define HAVE_STDARG_H 1
  16961. /* Define to 1 if you have the <stdint.h> header file. */
  16962. #define HAVE_STDINT_H 1
  16963. /* Define to 1 if you have the <stdlib.h> header file. */
  16964. #define HAVE_STDLIB_H 1
  16965. /* Define to 1 if you have the `strchr' function. */
  16966. #define HAVE_STRCHR 1
  16967. /* Define to 1 if you have the `strdup' function. */
  16968. #define HAVE_STRDUP 1
  16969. /* Define to 1 if you have the `strerror' function. */
  16970. #define HAVE_STRERROR 1
  16971. /* Define to 1 if you have the `strerror_r' function. */
  16972. #define HAVE_STRERROR_R 1
  16973. /* Define to 1 if you have the `strftime' function. */
  16974. #define HAVE_STRFTIME 1
  16975. /* Define to 1 if you have the <strings.h> header file. */
  16976. #define HAVE_STRINGS_H 1
  16977. /* Define to 1 if you have the <string.h> header file. */
  16978. #define HAVE_STRING_H 1
  16979. /* Define to 1 if you have the `strrchr' function. */
  16980. #define HAVE_STRRCHR 1
  16981. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  16982. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  16983. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  16984. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  16985. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  16986. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  16987. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  16988. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  16989. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  16990. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  16991. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  16992. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  16993. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  16994. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  16995. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  16996. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  16997. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  16998. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  16999. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  17000. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  17001. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  17002. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  17003. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  17004. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  17005. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  17006. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  17007. /* Define to 1 if you have `struct vfsconf'. */
  17008. /* #undef HAVE_STRUCT_VFSCONF */
  17009. /* Define to 1 if you have `struct xvfsconf'. */
  17010. /* #undef HAVE_STRUCT_XVFSCONF */
  17011. /* Define to 1 if you have the `symlink' function. */
  17012. #define HAVE_SYMLINK 1
  17013. /* Define to 1 if you have the <sys/acl.h> header file. */
  17014. /* #undef HAVE_SYS_ACL_H */
  17015. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  17016. #define HAVE_SYS_CDEFS_H 1
  17017. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  17018. */
  17019. /* #undef HAVE_SYS_DIR_H */
  17020. /* Define to 1 if you have the <sys/ea.h> header file. */
  17021. /* #undef HAVE_SYS_EA_H */
  17022. /* Define to 1 if you have the <sys/extattr.h> header file. */
  17023. /* #undef HAVE_SYS_EXTATTR_H */
  17024. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  17025. #define HAVE_SYS_IOCTL_H 1
  17026. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  17027. /* #undef HAVE_SYS_MKDEV_H */
  17028. /* Define to 1 if you have the <sys/mount.h> header file. */
  17029. /* #undef HAVE_SYS_MOUNT_H */
  17030. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  17031. */
  17032. /* #undef HAVE_SYS_NDIR_H */
  17033. /* Define to 1 if you have the <sys/param.h> header file. */
  17034. #define HAVE_SYS_PARAM_H 1
  17035. /* Define to 1 if you have the <sys/poll.h> header file. */
  17036. #define HAVE_SYS_POLL_H 1
  17037. /* Define to 1 if you have the <sys/richacl.h> header file. */
  17038. /* #undef HAVE_SYS_RICHACL_H */
  17039. /* Define to 1 if you have the <sys/select.h> header file. */
  17040. #define HAVE_SYS_SELECT_H 1
  17041. /* Define to 1 if you have the <sys/statfs.h> header file. */
  17042. #define HAVE_SYS_STATFS_H 1
  17043. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  17044. #define HAVE_SYS_STATVFS_H 1
  17045. /* Define to 1 if you have the <sys/stat.h> header file. */
  17046. #define HAVE_SYS_STAT_H 1
  17047. /* Define to 1 if you have the <sys/time.h> header file. */
  17048. #define HAVE_SYS_TIME_H 1
  17049. /* Define to 1 if you have the <sys/types.h> header file. */
  17050. #define HAVE_SYS_TYPES_H 1
  17051. /* Define to 1 if you have the <sys/utime.h> header file. */
  17052. /* #undef HAVE_SYS_UTIME_H */
  17053. /* Define to 1 if you have the <sys/utsname.h> header file. */
  17054. #define HAVE_SYS_UTSNAME_H 1
  17055. /* Define to 1 if you have the <sys/vfs.h> header file. */
  17056. #define HAVE_SYS_VFS_H 1
  17057. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  17058. #define HAVE_SYS_WAIT_H 1
  17059. /* Define to 1 if you have the <sys/xattr.h> header file. */
  17060. #define HAVE_SYS_XATTR_H 1
  17061. /* Define to 1 if you have the `timegm' function. */
  17062. #define HAVE_TIMEGM 1
  17063. /* Define to 1 if you have the <time.h> header file. */
  17064. #define HAVE_TIME_H 1
  17065. /* Define to 1 if you have the `tzset' function. */
  17066. #define HAVE_TZSET 1
  17067. /* Define to 1 if you have the <unistd.h> header file. */
  17068. #define HAVE_UNISTD_H 1
  17069. /* Define to 1 if you have the `unsetenv' function. */
  17070. #define HAVE_UNSETENV 1
  17071. /* Define to 1 if the system has the type `unsigned long long'. */
  17072. /* #undef HAVE_UNSIGNED_LONG_LONG */
  17073. /* Define to 1 if the system has the type `unsigned long long int'. */
  17074. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  17075. /* Define to 1 if you have the `utime' function. */
  17076. #define HAVE_UTIME 1
  17077. /* Define to 1 if you have the `utimensat' function. */
  17078. #define HAVE_UTIMENSAT 1
  17079. /* Define to 1 if you have the `utimes' function. */
  17080. #define HAVE_UTIMES 1
  17081. /* Define to 1 if you have the <utime.h> header file. */
  17082. #define HAVE_UTIME_H 1
  17083. /* Define to 1 if you have the `vfork' function. */
  17084. #define HAVE_VFORK 1
  17085. /* Define to 1 if you have the `vprintf' function. */
  17086. #define HAVE_VPRINTF 1
  17087. /* Define to 1 if you have the <wchar.h> header file. */
  17088. #define HAVE_WCHAR_H 1
  17089. /* Define to 1 if the system has the type `wchar_t'. */
  17090. #define HAVE_WCHAR_T 1
  17091. /* Define to 1 if you have the `wcrtomb' function. */
  17092. #define HAVE_WCRTOMB 1
  17093. /* Define to 1 if you have the `wcscmp' function. */
  17094. #define HAVE_WCSCMP 1
  17095. /* Define to 1 if you have the `wcscpy' function. */
  17096. #define HAVE_WCSCPY 1
  17097. /* Define to 1 if you have the `wcslen' function. */
  17098. #define HAVE_WCSLEN 1
  17099. /* Define to 1 if you have the `wctomb' function. */
  17100. #define HAVE_WCTOMB 1
  17101. /* Define to 1 if you have the <wctype.h> header file. */
  17102. #define HAVE_WCTYPE_H 1
  17103. /* Define to 1 if you have the <wincrypt.h> header file. */
  17104. /* #undef HAVE_WINCRYPT_H */
  17105. /* Define to 1 if you have the <windows.h> header file. */
  17106. /* #undef HAVE_WINDOWS_H */
  17107. /* Define to 1 if you have the <winioctl.h> header file. */
  17108. /* #undef HAVE_WINIOCTL_H */
  17109. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  17110. /* #undef HAVE__CrtSetReportMode */
  17111. /* Define to 1 if you have the `wmemcmp' function. */
  17112. #define HAVE_WMEMCMP 1
  17113. /* Define to 1 if you have the `wmemcpy' function. */
  17114. #define HAVE_WMEMCPY 1
  17115. /* Define to 1 if you have the `wmemmove' function. */
  17116. #define HAVE_WMEMMOVE 1
  17117. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  17118. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  17119. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  17120. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  17121. /* Define to 1 if you have the <zlib.h> header file. */
  17122. #define HAVE_ZLIB_H 1
  17123. /* Define to 1 if you have the `_ctime64_s' function. */
  17124. /* #undef HAVE__CTIME64_S */
  17125. /* Define to 1 if you have the `_fseeki64' function. */
  17126. /* #undef HAVE__FSEEKI64 */
  17127. /* Define to 1 if you have the `_get_timezone' function. */
  17128. /* #undef HAVE__GET_TIMEZONE */
  17129. /* Define to 1 if you have the `_localtime64_s' function. */
  17130. /* #undef HAVE__LOCALTIME64_S */
  17131. /* Define to 1 if you have the `_mkgmtime64' function. */
  17132. /* #undef HAVE__MKGMTIME64 */
  17133. /* Define as const if the declaration of iconv() needs const. */
  17134. #define ICONV_CONST
  17135. /* Version number of libarchive as a single integer */
  17136. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  17137. /* Version number of libarchive */
  17138. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  17139. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  17140. slash. */
  17141. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  17142. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  17143. */
  17144. /* #undef MAJOR_IN_MKDEV */
  17145. /* Define to 1 if `major', `minor', and `makedev' are declared in
  17146. <sysmacros.h>. */
  17147. #define MAJOR_IN_SYSMACROS 1
  17148. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  17149. /* #undef NO_MINUS_C_MINUS_O */
  17150. /* The size of `wchar_t', as computed by sizeof. */
  17151. #define SIZEOF_WCHAR_T 4
  17152. /* Define to 1 if strerror_r returns char *. */
  17153. /* #undef STRERROR_R_CHAR_P */
  17154. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  17155. #define TIME_WITH_SYS_TIME 1
  17156. /*
  17157. * Some platform requires a macro to use extension functions.
  17158. */
  17159. #define SAFE_TO_DEFINE_EXTENSIONS 1
  17160. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  17161. /* Enable extensions on AIX 3, Interix. */
  17162. #ifndef _ALL_SOURCE
  17163. # define _ALL_SOURCE 1
  17164. #endif
  17165. /* Enable GNU extensions on systems that have them. */
  17166. #ifndef _GNU_SOURCE
  17167. # define _GNU_SOURCE 1
  17168. #endif
  17169. /* Enable threading extensions on Solaris. */
  17170. #ifndef _POSIX_PTHREAD_SEMANTICS
  17171. # define _POSIX_PTHREAD_SEMANTICS 1
  17172. #endif
  17173. /* Enable extensions on HP NonStop. */
  17174. #ifndef _TANDEM_SOURCE
  17175. # define _TANDEM_SOURCE 1
  17176. #endif
  17177. /* Enable general extensions on Solaris. */
  17178. #ifndef __EXTENSIONS__
  17179. # define __EXTENSIONS__ 1
  17180. #endif
  17181. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  17182. /* Version number of package */
  17183. #define VERSION "3.3.2"
  17184. /* Number of bits in a file offset, on hosts where this is settable. */
  17185. /* #undef _FILE_OFFSET_BITS */
  17186. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  17187. /* #undef _LARGEFILE_SOURCE */
  17188. /* Define for large files, on AIX-style hosts. */
  17189. /* #undef _LARGE_FILES */
  17190. /* Define to control Windows SDK version */
  17191. #ifndef NTDDI_VERSION
  17192. /* #undef NTDDI_VERSION */
  17193. #endif // NTDDI_VERSION
  17194. #ifndef _WIN32_WINNT
  17195. /* #undef _WIN32_WINNT */
  17196. #endif // _WIN32_WINNT
  17197. #ifndef WINVER
  17198. /* #undef WINVER */
  17199. #endif // WINVER
  17200. /* Define to empty if `const' does not conform to ANSI C. */
  17201. /* #undef const */
  17202. /* Define to `int' if <sys/types.h> doesn't define. */
  17203. /* #undef gid_t */
  17204. /* Define to `unsigned long' if <sys/types.h> does not define. */
  17205. /* #undef id_t */
  17206. /* Define to `int' if <sys/types.h> does not define. */
  17207. /* #undef mode_t */
  17208. /* Define to `long long' if <sys/types.h> does not define. */
  17209. /* #undef off_t */
  17210. /* Define to `int' if <sys/types.h> doesn't define. */
  17211. /* #undef pid_t */
  17212. /* Define to `unsigned int' if <sys/types.h> does not define. */
  17213. /* #undef size_t */
  17214. /* Define to `int' if <sys/types.h> does not define. */
  17215. /* #undef ssize_t */
  17216. /* Define to `int' if <sys/types.h> doesn't define. */
  17217. /* #undef uid_t */
  17218. /* Define to `int' if <sys/types.h> does not define. */
  17219. /* #undef intptr_t */
  17220. /* Define to `unsigned int' if <sys/types.h> does not define. */
  17221. /* #undef uintptr_t */
  17222. #define ARCHIVE_SHA384_COMPILE_TEST
  17223. #define ARCHIVE_CRYPTO_SHA384_LIBC
  17224. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  17225. /*-
  17226. * Copyright (c) 2003-2007 Tim Kientzle
  17227. * Copyright (c) 2011 Andres Mejia
  17228. * Copyright (c) 2011 Michihiro NAKAJIMA
  17229. * All rights reserved.
  17230. *
  17231. * Redistribution and use in source and binary forms, with or without
  17232. * modification, are permitted provided that the following conditions
  17233. * are met:
  17234. * 1. Redistributions of source code must retain the above copyright
  17235. * notice, this list of conditions and the following disclaimer.
  17236. * 2. Redistributions in binary form must reproduce the above copyright
  17237. * notice, this list of conditions and the following disclaimer in the
  17238. * documentation and/or other materials provided with the distribution.
  17239. *
  17240. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  17241. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  17242. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  17243. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  17244. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  17245. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  17246. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  17247. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  17248. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  17249. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  17250. */
  17251. #include "archive_platform.h"
  17252. #include "archive.h"
  17253. #include "archive_digest_private.h"
  17254. /* In particular, force the configure probe to break if it tries
  17255. * to test a combination of OpenSSL and libmd. */
  17256. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  17257. #error Cannot use both OpenSSL and libmd.
  17258. #endif
  17259. /*
  17260. * Message digest functions for Windows platform.
  17261. */
  17262. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  17263. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  17264. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  17265. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  17266. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  17267. /*
  17268. * Initialize a Message digest.
  17269. */
  17270. static int
  17271. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  17272. {
  17273. ctx->valid = 0;
  17274. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  17275. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  17276. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  17277. return (ARCHIVE_FAILED);
  17278. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  17279. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  17280. return (ARCHIVE_FAILED);
  17281. }
  17282. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  17283. CryptReleaseContext(ctx->cryptProv, 0);
  17284. return (ARCHIVE_FAILED);
  17285. }
  17286. ctx->valid = 1;
  17287. return (ARCHIVE_OK);
  17288. }
  17289. /*
  17290. * Update a Message digest.
  17291. */
  17292. static int
  17293. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  17294. {
  17295. if (!ctx->valid)
  17296. return (ARCHIVE_FAILED);
  17297. CryptHashData(ctx->hash,
  17298. (unsigned char *)(uintptr_t)buf,
  17299. (DWORD)len, 0);
  17300. return (ARCHIVE_OK);
  17301. }
  17302. static int
  17303. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  17304. {
  17305. DWORD siglen = (DWORD)bufsize;
  17306. if (!ctx->valid)
  17307. return (ARCHIVE_FAILED);
  17308. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  17309. CryptDestroyHash(ctx->hash);
  17310. CryptReleaseContext(ctx->cryptProv, 0);
  17311. ctx->valid = 0;
  17312. return (ARCHIVE_OK);
  17313. }
  17314. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  17315. /* MD5 implementations */
  17316. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  17317. static int
  17318. __archive_libc_md5init(archive_md5_ctx *ctx)
  17319. {
  17320. MD5Init(ctx);
  17321. return (ARCHIVE_OK);
  17322. }
  17323. static int
  17324. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  17325. size_t insize)
  17326. {
  17327. MD5Update(ctx, indata, insize);
  17328. return (ARCHIVE_OK);
  17329. }
  17330. static int
  17331. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  17332. {
  17333. MD5Final(md, ctx);
  17334. return (ARCHIVE_OK);
  17335. }
  17336. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  17337. static int
  17338. __archive_libmd_md5init(archive_md5_ctx *ctx)
  17339. {
  17340. MD5Init(ctx);
  17341. return (ARCHIVE_OK);
  17342. }
  17343. static int
  17344. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  17345. size_t insize)
  17346. {
  17347. MD5Update(ctx, indata, insize);
  17348. return (ARCHIVE_OK);
  17349. }
  17350. static int
  17351. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  17352. {
  17353. MD5Final(md, ctx);
  17354. return (ARCHIVE_OK);
  17355. }
  17356. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  17357. static int
  17358. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  17359. {
  17360. CC_MD5_Init(ctx);
  17361. return (ARCHIVE_OK);
  17362. }
  17363. static int
  17364. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  17365. size_t insize)
  17366. {
  17367. CC_MD5_Update(ctx, indata, insize);
  17368. return (ARCHIVE_OK);
  17369. }
  17370. static int
  17371. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  17372. {
  17373. CC_MD5_Final(md, ctx);
  17374. return (ARCHIVE_OK);
  17375. }
  17376. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  17377. static int
  17378. __archive_nettle_md5init(archive_md5_ctx *ctx)
  17379. {
  17380. md5_init(ctx);
  17381. return (ARCHIVE_OK);
  17382. }
  17383. static int
  17384. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  17385. size_t insize)
  17386. {
  17387. md5_update(ctx, insize, indata);
  17388. return (ARCHIVE_OK);
  17389. }
  17390. static int
  17391. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  17392. {
  17393. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  17394. return (ARCHIVE_OK);
  17395. }
  17396. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  17397. static int
  17398. __archive_openssl_md5init(archive_md5_ctx *ctx)
  17399. {
  17400. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  17401. return (ARCHIVE_FAILED);
  17402. EVP_DigestInit(*ctx, EVP_md5());
  17403. return (ARCHIVE_OK);
  17404. }
  17405. static int
  17406. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  17407. size_t insize)
  17408. {
  17409. EVP_DigestUpdate(*ctx, indata, insize);
  17410. return (ARCHIVE_OK);
  17411. }
  17412. static int
  17413. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  17414. {
  17415. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  17416. * this is meant to cope with that. Real fix is probably to fix
  17417. * archive_write_set_format_xar.c
  17418. */
  17419. if (*ctx) {
  17420. EVP_DigestFinal(*ctx, md, NULL);
  17421. EVP_MD_CTX_free(*ctx);
  17422. *ctx = NULL;
  17423. }
  17424. return (ARCHIVE_OK);
  17425. }
  17426. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  17427. static int
  17428. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  17429. {
  17430. return (win_crypto_init(ctx, CALG_MD5));
  17431. }
  17432. static int
  17433. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  17434. size_t insize)
  17435. {
  17436. return (win_crypto_Update(ctx, indata, insize));
  17437. }
  17438. static int
  17439. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  17440. {
  17441. return (win_crypto_Final(md, 16, ctx));
  17442. }
  17443. #else
  17444. static int
  17445. __archive_stub_md5init(archive_md5_ctx *ctx)
  17446. {
  17447. (void)ctx; /* UNUSED */
  17448. return (ARCHIVE_FAILED);
  17449. }
  17450. static int
  17451. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  17452. size_t insize)
  17453. {
  17454. (void)ctx; /* UNUSED */
  17455. (void)indata; /* UNUSED */
  17456. (void)insize; /* UNUSED */
  17457. return (ARCHIVE_FAILED);
  17458. }
  17459. static int
  17460. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  17461. {
  17462. (void)ctx; /* UNUSED */
  17463. (void)md; /* UNUSED */
  17464. return (ARCHIVE_FAILED);
  17465. }
  17466. #endif
  17467. /* RIPEMD160 implementations */
  17468. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  17469. static int
  17470. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  17471. {
  17472. RMD160Init(ctx);
  17473. return (ARCHIVE_OK);
  17474. }
  17475. static int
  17476. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  17477. size_t insize)
  17478. {
  17479. RMD160Update(ctx, indata, insize);
  17480. return (ARCHIVE_OK);
  17481. }
  17482. static int
  17483. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  17484. {
  17485. RMD160Final(md, ctx);
  17486. return (ARCHIVE_OK);
  17487. }
  17488. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  17489. static int
  17490. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  17491. {
  17492. RIPEMD160_Init(ctx);
  17493. return (ARCHIVE_OK);
  17494. }
  17495. static int
  17496. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  17497. size_t insize)
  17498. {
  17499. RIPEMD160_Update(ctx, indata, insize);
  17500. return (ARCHIVE_OK);
  17501. }
  17502. static int
  17503. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  17504. {
  17505. RIPEMD160_Final(md, ctx);
  17506. return (ARCHIVE_OK);
  17507. }
  17508. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  17509. static int
  17510. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  17511. {
  17512. ripemd160_init(ctx);
  17513. return (ARCHIVE_OK);
  17514. }
  17515. static int
  17516. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  17517. size_t insize)
  17518. {
  17519. ripemd160_update(ctx, insize, indata);
  17520. return (ARCHIVE_OK);
  17521. }
  17522. static int
  17523. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  17524. {
  17525. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  17526. return (ARCHIVE_OK);
  17527. }
  17528. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  17529. static int
  17530. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  17531. {
  17532. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  17533. return (ARCHIVE_FAILED);
  17534. EVP_DigestInit(*ctx, EVP_ripemd160());
  17535. return (ARCHIVE_OK);
  17536. }
  17537. static int
  17538. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  17539. size_t insize)
  17540. {
  17541. EVP_DigestUpdate(*ctx, indata, insize);
  17542. return (ARCHIVE_OK);
  17543. }
  17544. static int
  17545. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  17546. {
  17547. if (*ctx) {
  17548. EVP_DigestFinal(*ctx, md, NULL);
  17549. EVP_MD_CTX_free(*ctx);
  17550. *ctx = NULL;
  17551. }
  17552. return (ARCHIVE_OK);
  17553. }
  17554. #else
  17555. static int
  17556. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  17557. {
  17558. (void)ctx; /* UNUSED */
  17559. return (ARCHIVE_FAILED);
  17560. }
  17561. static int
  17562. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  17563. size_t insize)
  17564. {
  17565. (void)ctx; /* UNUSED */
  17566. (void)indata; /* UNUSED */
  17567. (void)insize; /* UNUSED */
  17568. return (ARCHIVE_FAILED);
  17569. }
  17570. static int
  17571. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  17572. {
  17573. (void)ctx; /* UNUSED */
  17574. (void)md; /* UNUSED */
  17575. return (ARCHIVE_FAILED);
  17576. }
  17577. #endif
  17578. /* SHA1 implementations */
  17579. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  17580. static int
  17581. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  17582. {
  17583. SHA1Init(ctx);
  17584. return (ARCHIVE_OK);
  17585. }
  17586. static int
  17587. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  17588. size_t insize)
  17589. {
  17590. SHA1Update(ctx, indata, insize);
  17591. return (ARCHIVE_OK);
  17592. }
  17593. static int
  17594. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  17595. {
  17596. SHA1Final(md, ctx);
  17597. return (ARCHIVE_OK);
  17598. }
  17599. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  17600. static int
  17601. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  17602. {
  17603. SHA1_Init(ctx);
  17604. return (ARCHIVE_OK);
  17605. }
  17606. static int
  17607. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  17608. size_t insize)
  17609. {
  17610. SHA1_Update(ctx, indata, insize);
  17611. return (ARCHIVE_OK);
  17612. }
  17613. static int
  17614. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  17615. {
  17616. SHA1_Final(md, ctx);
  17617. return (ARCHIVE_OK);
  17618. }
  17619. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  17620. static int
  17621. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  17622. {
  17623. CC_SHA1_Init(ctx);
  17624. return (ARCHIVE_OK);
  17625. }
  17626. static int
  17627. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  17628. size_t insize)
  17629. {
  17630. CC_SHA1_Update(ctx, indata, insize);
  17631. return (ARCHIVE_OK);
  17632. }
  17633. static int
  17634. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  17635. {
  17636. CC_SHA1_Final(md, ctx);
  17637. return (ARCHIVE_OK);
  17638. }
  17639. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  17640. static int
  17641. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  17642. {
  17643. sha1_init(ctx);
  17644. return (ARCHIVE_OK);
  17645. }
  17646. static int
  17647. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  17648. size_t insize)
  17649. {
  17650. sha1_update(ctx, insize, indata);
  17651. return (ARCHIVE_OK);
  17652. }
  17653. static int
  17654. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  17655. {
  17656. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  17657. return (ARCHIVE_OK);
  17658. }
  17659. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  17660. static int
  17661. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  17662. {
  17663. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  17664. return (ARCHIVE_FAILED);
  17665. EVP_DigestInit(*ctx, EVP_sha1());
  17666. return (ARCHIVE_OK);
  17667. }
  17668. static int
  17669. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  17670. size_t insize)
  17671. {
  17672. EVP_DigestUpdate(*ctx, indata, insize);
  17673. return (ARCHIVE_OK);
  17674. }
  17675. static int
  17676. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  17677. {
  17678. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  17679. * this is meant to cope with that. Real fix is probably to fix
  17680. * archive_write_set_format_xar.c
  17681. */
  17682. if (*ctx) {
  17683. EVP_DigestFinal(*ctx, md, NULL);
  17684. EVP_MD_CTX_free(*ctx);
  17685. *ctx = NULL;
  17686. }
  17687. return (ARCHIVE_OK);
  17688. }
  17689. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  17690. static int
  17691. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  17692. {
  17693. return (win_crypto_init(ctx, CALG_SHA1));
  17694. }
  17695. static int
  17696. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  17697. size_t insize)
  17698. {
  17699. return (win_crypto_Update(ctx, indata, insize));
  17700. }
  17701. static int
  17702. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  17703. {
  17704. return (win_crypto_Final(md, 20, ctx));
  17705. }
  17706. #else
  17707. static int
  17708. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  17709. {
  17710. (void)ctx; /* UNUSED */
  17711. return (ARCHIVE_FAILED);
  17712. }
  17713. static int
  17714. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  17715. size_t insize)
  17716. {
  17717. (void)ctx; /* UNUSED */
  17718. (void)indata; /* UNUSED */
  17719. (void)insize; /* UNUSED */
  17720. return (ARCHIVE_FAILED);
  17721. }
  17722. static int
  17723. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  17724. {
  17725. (void)ctx; /* UNUSED */
  17726. (void)md; /* UNUSED */
  17727. return (ARCHIVE_FAILED);
  17728. }
  17729. #endif
  17730. /* SHA256 implementations */
  17731. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  17732. static int
  17733. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  17734. {
  17735. SHA256_Init(ctx);
  17736. return (ARCHIVE_OK);
  17737. }
  17738. static int
  17739. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  17740. size_t insize)
  17741. {
  17742. SHA256_Update(ctx, indata, insize);
  17743. return (ARCHIVE_OK);
  17744. }
  17745. static int
  17746. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  17747. {
  17748. SHA256_Final(md, ctx);
  17749. return (ARCHIVE_OK);
  17750. }
  17751. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  17752. static int
  17753. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  17754. {
  17755. SHA256Init(ctx);
  17756. return (ARCHIVE_OK);
  17757. }
  17758. static int
  17759. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  17760. size_t insize)
  17761. {
  17762. SHA256Update(ctx, indata, insize);
  17763. return (ARCHIVE_OK);
  17764. }
  17765. static int
  17766. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  17767. {
  17768. SHA256Final(md, ctx);
  17769. return (ARCHIVE_OK);
  17770. }
  17771. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  17772. static int
  17773. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  17774. {
  17775. SHA256Init(ctx);
  17776. return (ARCHIVE_OK);
  17777. }
  17778. static int
  17779. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  17780. size_t insize)
  17781. {
  17782. SHA256Update(ctx, indata, insize);
  17783. return (ARCHIVE_OK);
  17784. }
  17785. static int
  17786. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  17787. {
  17788. SHA256Final(md, ctx);
  17789. return (ARCHIVE_OK);
  17790. }
  17791. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  17792. static int
  17793. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  17794. {
  17795. SHA256_Init(ctx);
  17796. return (ARCHIVE_OK);
  17797. }
  17798. static int
  17799. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  17800. size_t insize)
  17801. {
  17802. SHA256_Update(ctx, indata, insize);
  17803. return (ARCHIVE_OK);
  17804. }
  17805. static int
  17806. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  17807. {
  17808. SHA256_Final(md, ctx);
  17809. return (ARCHIVE_OK);
  17810. }
  17811. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  17812. static int
  17813. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  17814. {
  17815. CC_SHA256_Init(ctx);
  17816. return (ARCHIVE_OK);
  17817. }
  17818. static int
  17819. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  17820. size_t insize)
  17821. {
  17822. CC_SHA256_Update(ctx, indata, insize);
  17823. return (ARCHIVE_OK);
  17824. }
  17825. static int
  17826. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  17827. {
  17828. CC_SHA256_Final(md, ctx);
  17829. return (ARCHIVE_OK);
  17830. }
  17831. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  17832. static int
  17833. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  17834. {
  17835. sha256_init(ctx);
  17836. return (ARCHIVE_OK);
  17837. }
  17838. static int
  17839. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  17840. size_t insize)
  17841. {
  17842. sha256_update(ctx, insize, indata);
  17843. return (ARCHIVE_OK);
  17844. }
  17845. static int
  17846. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  17847. {
  17848. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  17849. return (ARCHIVE_OK);
  17850. }
  17851. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  17852. static int
  17853. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  17854. {
  17855. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  17856. return (ARCHIVE_FAILED);
  17857. EVP_DigestInit(*ctx, EVP_sha256());
  17858. return (ARCHIVE_OK);
  17859. }
  17860. static int
  17861. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  17862. size_t insize)
  17863. {
  17864. EVP_DigestUpdate(*ctx, indata, insize);
  17865. return (ARCHIVE_OK);
  17866. }
  17867. static int
  17868. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  17869. {
  17870. if (*ctx) {
  17871. EVP_DigestFinal(*ctx, md, NULL);
  17872. EVP_MD_CTX_free(*ctx);
  17873. *ctx = NULL;
  17874. }
  17875. return (ARCHIVE_OK);
  17876. }
  17877. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  17878. static int
  17879. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  17880. {
  17881. return (win_crypto_init(ctx, CALG_SHA_256));
  17882. }
  17883. static int
  17884. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  17885. size_t insize)
  17886. {
  17887. return (win_crypto_Update(ctx, indata, insize));
  17888. }
  17889. static int
  17890. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  17891. {
  17892. return (win_crypto_Final(md, 32, ctx));
  17893. }
  17894. #else
  17895. static int
  17896. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  17897. {
  17898. (void)ctx; /* UNUSED */
  17899. return (ARCHIVE_FAILED);
  17900. }
  17901. static int
  17902. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  17903. size_t insize)
  17904. {
  17905. (void)ctx; /* UNUSED */
  17906. (void)indata; /* UNUSED */
  17907. (void)insize; /* UNUSED */
  17908. return (ARCHIVE_FAILED);
  17909. }
  17910. static int
  17911. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  17912. {
  17913. (void)ctx; /* UNUSED */
  17914. (void)md; /* UNUSED */
  17915. return (ARCHIVE_FAILED);
  17916. }
  17917. #endif
  17918. /* SHA384 implementations */
  17919. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  17920. static int
  17921. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  17922. {
  17923. SHA384_Init(ctx);
  17924. return (ARCHIVE_OK);
  17925. }
  17926. static int
  17927. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  17928. size_t insize)
  17929. {
  17930. SHA384_Update(ctx, indata, insize);
  17931. return (ARCHIVE_OK);
  17932. }
  17933. static int
  17934. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  17935. {
  17936. SHA384_Final(md, ctx);
  17937. return (ARCHIVE_OK);
  17938. }
  17939. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  17940. static int
  17941. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  17942. {
  17943. SHA384Init(ctx);
  17944. return (ARCHIVE_OK);
  17945. }
  17946. static int
  17947. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  17948. size_t insize)
  17949. {
  17950. SHA384Update(ctx, indata, insize);
  17951. return (ARCHIVE_OK);
  17952. }
  17953. static int
  17954. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  17955. {
  17956. SHA384Final(md, ctx);
  17957. return (ARCHIVE_OK);
  17958. }
  17959. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  17960. static int
  17961. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  17962. {
  17963. SHA384Init(ctx);
  17964. return (ARCHIVE_OK);
  17965. }
  17966. static int
  17967. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  17968. size_t insize)
  17969. {
  17970. SHA384Update(ctx, indata, insize);
  17971. return (ARCHIVE_OK);
  17972. }
  17973. static int
  17974. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  17975. {
  17976. SHA384Final(md, ctx);
  17977. return (ARCHIVE_OK);
  17978. }
  17979. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  17980. static int
  17981. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  17982. {
  17983. CC_SHA384_Init(ctx);
  17984. return (ARCHIVE_OK);
  17985. }
  17986. static int
  17987. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  17988. size_t insize)
  17989. {
  17990. CC_SHA384_Update(ctx, indata, insize);
  17991. return (ARCHIVE_OK);
  17992. }
  17993. static int
  17994. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  17995. {
  17996. CC_SHA384_Final(md, ctx);
  17997. return (ARCHIVE_OK);
  17998. }
  17999. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  18000. static int
  18001. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  18002. {
  18003. sha384_init(ctx);
  18004. return (ARCHIVE_OK);
  18005. }
  18006. static int
  18007. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  18008. size_t insize)
  18009. {
  18010. sha384_update(ctx, insize, indata);
  18011. return (ARCHIVE_OK);
  18012. }
  18013. static int
  18014. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  18015. {
  18016. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  18017. return (ARCHIVE_OK);
  18018. }
  18019. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  18020. static int
  18021. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  18022. {
  18023. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  18024. return (ARCHIVE_FAILED);
  18025. EVP_DigestInit(*ctx, EVP_sha384());
  18026. return (ARCHIVE_OK);
  18027. }
  18028. static int
  18029. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  18030. size_t insize)
  18031. {
  18032. EVP_DigestUpdate(*ctx, indata, insize);
  18033. return (ARCHIVE_OK);
  18034. }
  18035. static int
  18036. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  18037. {
  18038. if (*ctx) {
  18039. EVP_DigestFinal(*ctx, md, NULL);
  18040. EVP_MD_CTX_free(*ctx);
  18041. *ctx = NULL;
  18042. }
  18043. return (ARCHIVE_OK);
  18044. }
  18045. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  18046. static int
  18047. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  18048. {
  18049. return (win_crypto_init(ctx, CALG_SHA_384));
  18050. }
  18051. static int
  18052. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  18053. size_t insize)
  18054. {
  18055. return (win_crypto_Update(ctx, indata, insize));
  18056. }
  18057. static int
  18058. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  18059. {
  18060. return (win_crypto_Final(md, 48, ctx));
  18061. }
  18062. #else
  18063. static int
  18064. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  18065. {
  18066. (void)ctx; /* UNUSED */
  18067. return (ARCHIVE_FAILED);
  18068. }
  18069. static int
  18070. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  18071. size_t insize)
  18072. {
  18073. (void)ctx; /* UNUSED */
  18074. (void)indata; /* UNUSED */
  18075. (void)insize; /* UNUSED */
  18076. return (ARCHIVE_FAILED);
  18077. }
  18078. static int
  18079. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  18080. {
  18081. (void)ctx; /* UNUSED */
  18082. (void)md; /* UNUSED */
  18083. return (ARCHIVE_FAILED);
  18084. }
  18085. #endif
  18086. /* SHA512 implementations */
  18087. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  18088. static int
  18089. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  18090. {
  18091. SHA512_Init(ctx);
  18092. return (ARCHIVE_OK);
  18093. }
  18094. static int
  18095. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  18096. size_t insize)
  18097. {
  18098. SHA512_Update(ctx, indata, insize);
  18099. return (ARCHIVE_OK);
  18100. }
  18101. static int
  18102. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  18103. {
  18104. SHA512_Final(md, ctx);
  18105. return (ARCHIVE_OK);
  18106. }
  18107. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  18108. static int
  18109. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  18110. {
  18111. SHA512Init(ctx);
  18112. return (ARCHIVE_OK);
  18113. }
  18114. static int
  18115. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  18116. size_t insize)
  18117. {
  18118. SHA512Update(ctx, indata, insize);
  18119. return (ARCHIVE_OK);
  18120. }
  18121. static int
  18122. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  18123. {
  18124. SHA512Final(md, ctx);
  18125. return (ARCHIVE_OK);
  18126. }
  18127. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  18128. static int
  18129. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  18130. {
  18131. SHA512Init(ctx);
  18132. return (ARCHIVE_OK);
  18133. }
  18134. static int
  18135. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  18136. size_t insize)
  18137. {
  18138. SHA512Update(ctx, indata, insize);
  18139. return (ARCHIVE_OK);
  18140. }
  18141. static int
  18142. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  18143. {
  18144. SHA512Final(md, ctx);
  18145. return (ARCHIVE_OK);
  18146. }
  18147. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  18148. static int
  18149. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  18150. {
  18151. SHA512_Init(ctx);
  18152. return (ARCHIVE_OK);
  18153. }
  18154. static int
  18155. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  18156. size_t insize)
  18157. {
  18158. SHA512_Update(ctx, indata, insize);
  18159. return (ARCHIVE_OK);
  18160. }
  18161. static int
  18162. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  18163. {
  18164. SHA512_Final(md, ctx);
  18165. return (ARCHIVE_OK);
  18166. }
  18167. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  18168. static int
  18169. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  18170. {
  18171. CC_SHA512_Init(ctx);
  18172. return (ARCHIVE_OK);
  18173. }
  18174. static int
  18175. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  18176. size_t insize)
  18177. {
  18178. CC_SHA512_Update(ctx, indata, insize);
  18179. return (ARCHIVE_OK);
  18180. }
  18181. static int
  18182. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  18183. {
  18184. CC_SHA512_Final(md, ctx);
  18185. return (ARCHIVE_OK);
  18186. }
  18187. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  18188. static int
  18189. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  18190. {
  18191. sha512_init(ctx);
  18192. return (ARCHIVE_OK);
  18193. }
  18194. static int
  18195. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  18196. size_t insize)
  18197. {
  18198. sha512_update(ctx, insize, indata);
  18199. return (ARCHIVE_OK);
  18200. }
  18201. static int
  18202. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  18203. {
  18204. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  18205. return (ARCHIVE_OK);
  18206. }
  18207. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  18208. static int
  18209. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  18210. {
  18211. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  18212. return (ARCHIVE_FAILED);
  18213. EVP_DigestInit(*ctx, EVP_sha512());
  18214. return (ARCHIVE_OK);
  18215. }
  18216. static int
  18217. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  18218. size_t insize)
  18219. {
  18220. EVP_DigestUpdate(*ctx, indata, insize);
  18221. return (ARCHIVE_OK);
  18222. }
  18223. static int
  18224. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  18225. {
  18226. if (*ctx) {
  18227. EVP_DigestFinal(*ctx, md, NULL);
  18228. EVP_MD_CTX_free(*ctx);
  18229. *ctx = NULL;
  18230. }
  18231. return (ARCHIVE_OK);
  18232. }
  18233. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  18234. static int
  18235. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  18236. {
  18237. return (win_crypto_init(ctx, CALG_SHA_512));
  18238. }
  18239. static int
  18240. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  18241. size_t insize)
  18242. {
  18243. return (win_crypto_Update(ctx, indata, insize));
  18244. }
  18245. static int
  18246. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  18247. {
  18248. return (win_crypto_Final(md, 64, ctx));
  18249. }
  18250. #else
  18251. static int
  18252. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  18253. {
  18254. (void)ctx; /* UNUSED */
  18255. return (ARCHIVE_FAILED);
  18256. }
  18257. static int
  18258. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  18259. size_t insize)
  18260. {
  18261. (void)ctx; /* UNUSED */
  18262. (void)indata; /* UNUSED */
  18263. (void)insize; /* UNUSED */
  18264. return (ARCHIVE_FAILED);
  18265. }
  18266. static int
  18267. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  18268. {
  18269. (void)ctx; /* UNUSED */
  18270. (void)md; /* UNUSED */
  18271. return (ARCHIVE_FAILED);
  18272. }
  18273. #endif
  18274. /* NOTE: Message Digest functions are set based on availability and by the
  18275. * following order of preference.
  18276. * 1. libc
  18277. * 2. libc2
  18278. * 3. libc3
  18279. * 4. libSystem
  18280. * 5. Nettle
  18281. * 6. OpenSSL
  18282. * 7. libmd
  18283. * 8. Windows API
  18284. */
  18285. const struct archive_digest __archive_digest =
  18286. {
  18287. /* MD5 */
  18288. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  18289. &__archive_libc_md5init,
  18290. &__archive_libc_md5update,
  18291. &__archive_libc_md5final,
  18292. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  18293. &__archive_libmd_md5init,
  18294. &__archive_libmd_md5update,
  18295. &__archive_libmd_md5final,
  18296. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  18297. &__archive_libsystem_md5init,
  18298. &__archive_libsystem_md5update,
  18299. &__archive_libsystem_md5final,
  18300. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  18301. &__archive_nettle_md5init,
  18302. &__archive_nettle_md5update,
  18303. &__archive_nettle_md5final,
  18304. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  18305. &__archive_openssl_md5init,
  18306. &__archive_openssl_md5update,
  18307. &__archive_openssl_md5final,
  18308. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  18309. &__archive_windowsapi_md5init,
  18310. &__archive_windowsapi_md5update,
  18311. &__archive_windowsapi_md5final,
  18312. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  18313. &__archive_stub_md5init,
  18314. &__archive_stub_md5update,
  18315. &__archive_stub_md5final,
  18316. #endif
  18317. /* RIPEMD160 */
  18318. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  18319. &__archive_libc_ripemd160init,
  18320. &__archive_libc_ripemd160update,
  18321. &__archive_libc_ripemd160final,
  18322. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  18323. &__archive_libmd_ripemd160init,
  18324. &__archive_libmd_ripemd160update,
  18325. &__archive_libmd_ripemd160final,
  18326. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  18327. &__archive_nettle_ripemd160init,
  18328. &__archive_nettle_ripemd160update,
  18329. &__archive_nettle_ripemd160final,
  18330. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  18331. &__archive_openssl_ripemd160init,
  18332. &__archive_openssl_ripemd160update,
  18333. &__archive_openssl_ripemd160final,
  18334. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  18335. &__archive_stub_ripemd160init,
  18336. &__archive_stub_ripemd160update,
  18337. &__archive_stub_ripemd160final,
  18338. #endif
  18339. /* SHA1 */
  18340. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  18341. &__archive_libc_sha1init,
  18342. &__archive_libc_sha1update,
  18343. &__archive_libc_sha1final,
  18344. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  18345. &__archive_libmd_sha1init,
  18346. &__archive_libmd_sha1update,
  18347. &__archive_libmd_sha1final,
  18348. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  18349. &__archive_libsystem_sha1init,
  18350. &__archive_libsystem_sha1update,
  18351. &__archive_libsystem_sha1final,
  18352. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  18353. &__archive_nettle_sha1init,
  18354. &__archive_nettle_sha1update,
  18355. &__archive_nettle_sha1final,
  18356. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  18357. &__archive_openssl_sha1init,
  18358. &__archive_openssl_sha1update,
  18359. &__archive_openssl_sha1final,
  18360. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  18361. &__archive_windowsapi_sha1init,
  18362. &__archive_windowsapi_sha1update,
  18363. &__archive_windowsapi_sha1final,
  18364. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  18365. &__archive_stub_sha1init,
  18366. &__archive_stub_sha1update,
  18367. &__archive_stub_sha1final,
  18368. #endif
  18369. /* SHA256 */
  18370. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  18371. &__archive_libc_sha256init,
  18372. &__archive_libc_sha256update,
  18373. &__archive_libc_sha256final,
  18374. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  18375. &__archive_libc2_sha256init,
  18376. &__archive_libc2_sha256update,
  18377. &__archive_libc2_sha256final,
  18378. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  18379. &__archive_libc3_sha256init,
  18380. &__archive_libc3_sha256update,
  18381. &__archive_libc3_sha256final,
  18382. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  18383. &__archive_libmd_sha256init,
  18384. &__archive_libmd_sha256update,
  18385. &__archive_libmd_sha256final,
  18386. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  18387. &__archive_libsystem_sha256init,
  18388. &__archive_libsystem_sha256update,
  18389. &__archive_libsystem_sha256final,
  18390. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  18391. &__archive_nettle_sha256init,
  18392. &__archive_nettle_sha256update,
  18393. &__archive_nettle_sha256final,
  18394. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  18395. &__archive_openssl_sha256init,
  18396. &__archive_openssl_sha256update,
  18397. &__archive_openssl_sha256final,
  18398. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  18399. &__archive_windowsapi_sha256init,
  18400. &__archive_windowsapi_sha256update,
  18401. &__archive_windowsapi_sha256final,
  18402. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  18403. &__archive_stub_sha256init,
  18404. &__archive_stub_sha256update,
  18405. &__archive_stub_sha256final,
  18406. #endif
  18407. /* SHA384 */
  18408. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  18409. &__archive_libc_sha384init,
  18410. &__archive_libc_sha384update,
  18411. &__archive_libc_sha384final,
  18412. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  18413. &__archive_libc2_sha384init,
  18414. &__archive_libc2_sha384update,
  18415. &__archive_libc2_sha384final,
  18416. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  18417. &__archive_libc3_sha384init,
  18418. &__archive_libc3_sha384update,
  18419. &__archive_libc3_sha384final,
  18420. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  18421. &__archive_libsystem_sha384init,
  18422. &__archive_libsystem_sha384update,
  18423. &__archive_libsystem_sha384final,
  18424. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  18425. &__archive_nettle_sha384init,
  18426. &__archive_nettle_sha384update,
  18427. &__archive_nettle_sha384final,
  18428. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  18429. &__archive_openssl_sha384init,
  18430. &__archive_openssl_sha384update,
  18431. &__archive_openssl_sha384final,
  18432. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  18433. &__archive_windowsapi_sha384init,
  18434. &__archive_windowsapi_sha384update,
  18435. &__archive_windowsapi_sha384final,
  18436. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  18437. &__archive_stub_sha384init,
  18438. &__archive_stub_sha384update,
  18439. &__archive_stub_sha384final,
  18440. #endif
  18441. /* SHA512 */
  18442. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  18443. &__archive_libc_sha512init,
  18444. &__archive_libc_sha512update,
  18445. &__archive_libc_sha512final
  18446. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  18447. &__archive_libc2_sha512init,
  18448. &__archive_libc2_sha512update,
  18449. &__archive_libc2_sha512final
  18450. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  18451. &__archive_libc3_sha512init,
  18452. &__archive_libc3_sha512update,
  18453. &__archive_libc3_sha512final
  18454. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  18455. &__archive_libmd_sha512init,
  18456. &__archive_libmd_sha512update,
  18457. &__archive_libmd_sha512final
  18458. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  18459. &__archive_libsystem_sha512init,
  18460. &__archive_libsystem_sha512update,
  18461. &__archive_libsystem_sha512final
  18462. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  18463. &__archive_nettle_sha512init,
  18464. &__archive_nettle_sha512update,
  18465. &__archive_nettle_sha512final
  18466. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  18467. &__archive_openssl_sha512init,
  18468. &__archive_openssl_sha512update,
  18469. &__archive_openssl_sha512final
  18470. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  18471. &__archive_windowsapi_sha512init,
  18472. &__archive_windowsapi_sha512update,
  18473. &__archive_windowsapi_sha512final
  18474. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  18475. &__archive_stub_sha512init,
  18476. &__archive_stub_sha512update,
  18477. &__archive_stub_sha512final
  18478. #endif
  18479. };
  18480. int
  18481. main(int argc, char **argv)
  18482. {
  18483. archive_sha384_ctx ctx;
  18484. archive_sha384_init(&ctx);
  18485. archive_sha384_update(&ctx, *argv, argc);
  18486. archive_sha384_final(&ctx, NULL);
  18487. return 0;
  18488. }
  18489. Checking support for ARCHIVE_CRYPTO_SHA512_LIBC failed with the following output:
  18490. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  18491. Run Build Command:"/usr/bin/make" "cmTC_569c4/fast"
  18492. make -f CMakeFiles/cmTC_569c4.dir/build.make CMakeFiles/cmTC_569c4.dir/build
  18493. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  18494. Building C object CMakeFiles/cmTC_569c4.dir/check_crypto_md.c.o
  18495. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_569c4.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  18496. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  18497. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory
  18498. compilation terminated.
  18499. CMakeFiles/cmTC_569c4.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_569c4.dir/check_crypto_md.c.o' failed
  18500. make[1]: *** [CMakeFiles/cmTC_569c4.dir/check_crypto_md.c.o] Error 1
  18501. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  18502. Makefile:126: recipe for target 'cmTC_569c4/fast' failed
  18503. make: *** [cmTC_569c4/fast] Error 2
  18504. Source file was:
  18505. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  18506. #if defined(__osf__)
  18507. # define _OSF_SOURCE
  18508. #endif
  18509. /*
  18510. * Ensure we have C99-style int64_t, etc, all defined.
  18511. */
  18512. /* First, we need to know if the system has already defined them. */
  18513. #define HAVE_INT16_T
  18514. #define HAVE_INT32_T
  18515. #define HAVE_INT64_T
  18516. #define HAVE_INTMAX_T
  18517. #define HAVE_UINT8_T
  18518. #define HAVE_UINT16_T
  18519. #define HAVE_UINT32_T
  18520. #define HAVE_UINT64_T
  18521. #define HAVE_UINTMAX_T
  18522. /* We might have the types we want under other spellings. */
  18523. /* #undef HAVE___INT64 */
  18524. /* #undef HAVE_U_INT64_T */
  18525. /* #undef HAVE_UNSIGNED___INT64 */
  18526. /* The sizes of various standard integer types. */
  18527. #define SIZE_OF_SHORT 2
  18528. #define SIZE_OF_INT 4
  18529. #define SIZE_OF_LONG 8
  18530. #define SIZE_OF_LONG_LONG 8
  18531. #define SIZE_OF_UNSIGNED_SHORT 2
  18532. #define SIZE_OF_UNSIGNED 4
  18533. #define SIZE_OF_UNSIGNED_LONG 8
  18534. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  18535. /*
  18536. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  18537. * that exists and is the right size.
  18538. */
  18539. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  18540. typedef __int64 int64_t;
  18541. #define HAVE_INT64_T
  18542. #endif
  18543. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  18544. typedef int int64_t;
  18545. #define HAVE_INT64_T
  18546. #endif
  18547. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  18548. typedef long int64_t;
  18549. #define HAVE_INT64_T
  18550. #endif
  18551. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  18552. typedef long long int64_t;
  18553. #define HAVE_INT64_T
  18554. #endif
  18555. #if !defined(HAVE_INT64_T)
  18556. #error No 64-bit integer type was found.
  18557. #endif
  18558. /*
  18559. * Similarly for int32_t
  18560. */
  18561. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  18562. typedef int int32_t;
  18563. #define HAVE_INT32_T
  18564. #endif
  18565. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  18566. typedef long int32_t;
  18567. #define HAVE_INT32_T
  18568. #endif
  18569. #if !defined(HAVE_INT32_T)
  18570. #error No 32-bit integer type was found.
  18571. #endif
  18572. /*
  18573. * Similarly for int16_t
  18574. */
  18575. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  18576. typedef int int16_t;
  18577. #define HAVE_INT16_T
  18578. #endif
  18579. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  18580. typedef short int16_t;
  18581. #define HAVE_INT16_T
  18582. #endif
  18583. #if !defined(HAVE_INT16_T)
  18584. #error No 16-bit integer type was found.
  18585. #endif
  18586. /*
  18587. * Similarly for uint64_t
  18588. */
  18589. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  18590. typedef unsigned __int64 uint64_t;
  18591. #define HAVE_UINT64_T
  18592. #endif
  18593. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  18594. typedef unsigned uint64_t;
  18595. #define HAVE_UINT64_T
  18596. #endif
  18597. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  18598. typedef unsigned long uint64_t;
  18599. #define HAVE_UINT64_T
  18600. #endif
  18601. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  18602. typedef unsigned long long uint64_t;
  18603. #define HAVE_UINT64_T
  18604. #endif
  18605. #if !defined(HAVE_UINT64_T)
  18606. #error No 64-bit unsigned integer type was found.
  18607. #endif
  18608. /*
  18609. * Similarly for uint32_t
  18610. */
  18611. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  18612. typedef unsigned uint32_t;
  18613. #define HAVE_UINT32_T
  18614. #endif
  18615. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  18616. typedef unsigned long uint32_t;
  18617. #define HAVE_UINT32_T
  18618. #endif
  18619. #if !defined(HAVE_UINT32_T)
  18620. #error No 32-bit unsigned integer type was found.
  18621. #endif
  18622. /*
  18623. * Similarly for uint16_t
  18624. */
  18625. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  18626. typedef unsigned uint16_t;
  18627. #define HAVE_UINT16_T
  18628. #endif
  18629. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  18630. typedef unsigned short uint16_t;
  18631. #define HAVE_UINT16_T
  18632. #endif
  18633. #if !defined(HAVE_UINT16_T)
  18634. #error No 16-bit unsigned integer type was found.
  18635. #endif
  18636. /*
  18637. * Similarly for uint8_t
  18638. */
  18639. #if !defined(HAVE_UINT8_T)
  18640. typedef unsigned char uint8_t;
  18641. #define HAVE_UINT8_T
  18642. #endif
  18643. #if !defined(HAVE_UINT16_T)
  18644. #error No 8-bit unsigned integer type was found.
  18645. #endif
  18646. /* Define intmax_t and uintmax_t if they are not already defined. */
  18647. #if !defined(HAVE_INTMAX_T)
  18648. typedef int64_t intmax_t;
  18649. #endif
  18650. #if !defined(HAVE_UINTMAX_T)
  18651. typedef uint64_t uintmax_t;
  18652. #endif
  18653. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  18654. /* #undef ZLIB_WINAPI */
  18655. /* Darwin ACL support */
  18656. /* #undef ARCHIVE_ACL_DARWIN */
  18657. /* FreeBSD ACL support */
  18658. /* #undef ARCHIVE_ACL_FREEBSD */
  18659. /* FreeBSD NFSv4 ACL support */
  18660. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  18661. /* Linux POSIX.1e ACL support via libacl */
  18662. /* #undef ARCHIVE_ACL_LIBACL */
  18663. /* Linux NFSv4 ACL support via librichacl */
  18664. /* #undef ARCHIVE_ACL_LIBRICHACL */
  18665. /* Solaris ACL support */
  18666. /* #undef ARCHIVE_ACL_SUNOS */
  18667. /* Solaris NFSv4 ACL support */
  18668. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  18669. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  18670. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  18671. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  18672. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  18673. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  18674. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  18675. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  18676. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  18677. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  18678. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  18679. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  18680. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  18681. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  18682. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  18683. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  18684. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  18685. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  18686. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  18687. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  18688. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  18689. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  18690. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  18691. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  18692. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  18693. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  18694. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  18695. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  18696. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  18697. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  18698. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  18699. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  18700. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  18701. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  18702. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  18703. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  18704. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  18705. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  18706. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  18707. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  18708. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  18709. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  18710. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  18711. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  18712. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  18713. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  18714. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  18715. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  18716. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  18717. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  18718. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  18719. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  18720. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  18721. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  18722. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  18723. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  18724. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  18725. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  18726. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  18727. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  18728. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  18729. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  18730. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  18731. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  18732. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  18733. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  18734. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  18735. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  18736. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  18737. /* AIX xattr support */
  18738. /* #undef ARCHIVE_XATTR_AIX */
  18739. /* Darwin xattr support */
  18740. /* #undef ARCHIVE_XATTR_DARWIN */
  18741. /* FreeBSD xattr support */
  18742. /* #undef ARCHIVE_XATTR_FREEBSD */
  18743. /* Linux xattr support */
  18744. /* #undef ARCHIVE_XATTR_LINUX */
  18745. /* Version number of bsdcpio */
  18746. #define BSDCPIO_VERSION_STRING "3.3.2"
  18747. /* Version number of bsdtar */
  18748. #define BSDTAR_VERSION_STRING "3.3.2"
  18749. /* Version number of bsdcat */
  18750. #define BSDCAT_VERSION_STRING "3.3.2"
  18751. /* Define to 1 if you have the `acl_create_entry' function. */
  18752. /* #undef HAVE_ACL_CREATE_ENTRY */
  18753. /* Define to 1 if you have the `acl_get_fd_np' function. */
  18754. /* #undef HAVE_ACL_GET_FD_NP */
  18755. /* Define to 1 if you have the `acl_get_link' function. */
  18756. /* #undef HAVE_ACL_GET_LINK */
  18757. /* Define to 1 if you have the `acl_get_link_np' function. */
  18758. /* #undef HAVE_ACL_GET_LINK_NP */
  18759. /* Define to 1 if you have the `acl_get_perm' function. */
  18760. /* #undef HAVE_ACL_GET_PERM */
  18761. /* Define to 1 if you have the `acl_get_perm_np' function. */
  18762. /* #undef HAVE_ACL_GET_PERM_NP */
  18763. /* Define to 1 if you have the `acl_init' function. */
  18764. /* #undef HAVE_ACL_INIT */
  18765. /* Define to 1 if you have the <acl/libacl.h> header file. */
  18766. /* #undef HAVE_ACL_LIBACL_H */
  18767. /* Define to 1 if the system has the type `acl_permset_t'. */
  18768. /* #undef HAVE_ACL_PERMSET_T */
  18769. /* Define to 1 if you have the `acl_set_fd' function. */
  18770. /* #undef HAVE_ACL_SET_FD */
  18771. /* Define to 1 if you have the `acl_set_fd_np' function. */
  18772. /* #undef HAVE_ACL_SET_FD_NP */
  18773. /* Define to 1 if you have the `acl_set_file' function. */
  18774. /* #undef HAVE_ACL_SET_FILE */
  18775. /* Define to 1 if you have the `arc4random_buf' function. */
  18776. /* #undef HAVE_ARC4RANDOM_BUF */
  18777. /* Define to 1 if you have the <attr/xattr.h> header file. */
  18778. /* #undef HAVE_ATTR_XATTR_H */
  18779. /* Define to 1 if you have the <Bcrypt.h> header file. */
  18780. /* #undef HAVE_BCRYPT_H */
  18781. /* Define to 1 if you have the <bsdxml.h> header file. */
  18782. /* #undef HAVE_BSDXML_H */
  18783. /* Define to 1 if you have the <bzlib.h> header file. */
  18784. #define HAVE_BZLIB_H 1
  18785. /* Define to 1 if you have the `chflags' function. */
  18786. /* #undef HAVE_CHFLAGS */
  18787. /* Define to 1 if you have the `chown' function. */
  18788. #define HAVE_CHOWN 1
  18789. /* Define to 1 if you have the `chroot' function. */
  18790. #define HAVE_CHROOT 1
  18791. /* Define to 1 if you have the <copyfile.h> header file. */
  18792. /* #undef HAVE_COPYFILE_H */
  18793. /* Define to 1 if you have the `ctime_r' function. */
  18794. #define HAVE_CTIME_R 1
  18795. /* Define to 1 if you have the <ctype.h> header file. */
  18796. #define HAVE_CTYPE_H 1
  18797. /* Define to 1 if you have the `cygwin_conv_path' function. */
  18798. /* #undef HAVE_CYGWIN_CONV_PATH */
  18799. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  18800. don't. */
  18801. /* #undef HAVE_DECL_ACE_GETACL */
  18802. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  18803. don't. */
  18804. /* #undef HAVE_DECL_ACE_GETACLCNT */
  18805. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  18806. don't. */
  18807. /* #undef HAVE_DECL_ACE_SETACL */
  18808. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  18809. you don't. */
  18810. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  18811. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  18812. you don't. */
  18813. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  18814. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  18815. don't. */
  18816. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  18817. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  18818. don't. */
  18819. /* #undef HAVE_DECL_ACL_USER */
  18820. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  18821. don't. */
  18822. #define HAVE_DECL_INT32_MAX 1
  18823. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  18824. don't. */
  18825. #define HAVE_DECL_INT32_MIN 1
  18826. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  18827. don't. */
  18828. #define HAVE_DECL_INT64_MAX 1
  18829. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  18830. don't. */
  18831. #define HAVE_DECL_INT64_MIN 1
  18832. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  18833. don't. */
  18834. #define HAVE_DECL_INTMAX_MAX 1
  18835. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  18836. don't. */
  18837. #define HAVE_DECL_INTMAX_MIN 1
  18838. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  18839. */
  18840. /* #undef HAVE_DECL_SETACL */
  18841. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  18842. don't. */
  18843. #define HAVE_DECL_SIZE_MAX 1
  18844. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  18845. don't. */
  18846. #define HAVE_DECL_SSIZE_MAX 1
  18847. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  18848. don't. */
  18849. #define HAVE_DECL_STRERROR_R 1
  18850. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  18851. don't. */
  18852. #define HAVE_DECL_UINT32_MAX 1
  18853. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  18854. don't. */
  18855. #define HAVE_DECL_UINT64_MAX 1
  18856. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  18857. don't. */
  18858. #define HAVE_DECL_UINTMAX_MAX 1
  18859. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  18860. you don't. */
  18861. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  18862. /* Define to 1 if you have the <direct.h> header file. */
  18863. /* #undef HAVE_DIRECT_H */
  18864. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  18865. */
  18866. #define HAVE_DIRENT_H 1
  18867. /* Define to 1 if you have the `dirfd' function. */
  18868. #define HAVE_DIRFD 1
  18869. /* Define to 1 if you have the <dlfcn.h> header file. */
  18870. #define HAVE_DLFCN_H 1
  18871. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  18872. /* #undef HAVE_DOPRNT */
  18873. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  18874. /* #undef HAVE_D_MD_ORDER */
  18875. /* A possible errno value for invalid file format errors */
  18876. /* #undef HAVE_EFTYPE */
  18877. /* A possible errno value for invalid file format errors */
  18878. #define HAVE_EILSEQ 1
  18879. /* Define to 1 if you have the <errno.h> header file. */
  18880. #define HAVE_ERRNO_H 1
  18881. /* Define to 1 if you have the <expat.h> header file. */
  18882. /* #undef HAVE_EXPAT_H */
  18883. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  18884. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  18885. /* Define to 1 if you have the `extattr_get_file' function. */
  18886. /* #undef HAVE_EXTATTR_GET_FILE */
  18887. /* Define to 1 if you have the `extattr_list_file' function. */
  18888. /* #undef HAVE_EXTATTR_LIST_FILE */
  18889. /* Define to 1 if you have the `extattr_set_fd' function. */
  18890. /* #undef HAVE_EXTATTR_SET_FD */
  18891. /* Define to 1 if you have the `extattr_set_file' function. */
  18892. /* #undef HAVE_EXTATTR_SET_FILE */
  18893. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  18894. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  18895. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  18896. */
  18897. /* #undef HAVE_DECL_GETACL */
  18898. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  18899. don't. */
  18900. /* #undef HAVE_DECL_GETACLCNT */
  18901. /* Define to 1 if you have the `fchdir' function. */
  18902. #define HAVE_FCHDIR 1
  18903. /* Define to 1 if you have the `fchflags' function. */
  18904. /* #undef HAVE_FCHFLAGS */
  18905. /* Define to 1 if you have the `fchmod' function. */
  18906. #define HAVE_FCHMOD 1
  18907. /* Define to 1 if you have the `fchown' function. */
  18908. #define HAVE_FCHOWN 1
  18909. /* Define to 1 if you have the `fcntl' function. */
  18910. #define HAVE_FCNTL 1
  18911. /* Define to 1 if you have the <fcntl.h> header file. */
  18912. #define HAVE_FCNTL_H 1
  18913. /* Define to 1 if you have the `fdopendir' function. */
  18914. #define HAVE_FDOPENDIR 1
  18915. /* Define to 1 if you have the `fgetea' function. */
  18916. /* #undef HAVE_FGETEA */
  18917. /* Define to 1 if you have the `fgetxattr' function. */
  18918. /* #undef HAVE_FGETXATTR */
  18919. /* Define to 1 if you have the `flistea' function. */
  18920. /* #undef HAVE_FLISTEA */
  18921. /* Define to 1 if you have the `flistxattr' function. */
  18922. /* #undef HAVE_FLISTXATTR */
  18923. /* Define to 1 if you have the `fork' function. */
  18924. #define HAVE_FORK 1
  18925. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  18926. #define HAVE_FSEEKO 1
  18927. /* Define to 1 if you have the `fsetea' function. */
  18928. /* #undef HAVE_FSETEA */
  18929. /* Define to 1 if you have the `fsetxattr' function. */
  18930. #define HAVE_FSETXATTR 1
  18931. /* Define to 1 if you have the `fstat' function. */
  18932. #define HAVE_FSTAT 1
  18933. /* Define to 1 if you have the `fstatat' function. */
  18934. #define HAVE_FSTATAT 1
  18935. /* Define to 1 if you have the `fstatfs' function. */
  18936. #define HAVE_FSTATFS 1
  18937. /* Define to 1 if you have the `fstatvfs' function. */
  18938. #define HAVE_FSTATVFS 1
  18939. /* Define to 1 if you have the `ftruncate' function. */
  18940. #define HAVE_FTRUNCATE 1
  18941. /* Define to 1 if you have the `futimens' function. */
  18942. #define HAVE_FUTIMENS 1
  18943. /* Define to 1 if you have the `futimes' function. */
  18944. #define HAVE_FUTIMES 1
  18945. /* Define to 1 if you have the `futimesat' function. */
  18946. #define HAVE_FUTIMESAT 1
  18947. /* Define to 1 if you have the `getea' function. */
  18948. /* #undef HAVE_GETEA */
  18949. /* Define to 1 if you have the `geteuid' function. */
  18950. #define HAVE_GETEUID 1
  18951. /* Define to 1 if you have the `getgrgid_r' function. */
  18952. #define HAVE_GETGRGID_R 1
  18953. /* Define to 1 if you have the `getgrnam_r' function. */
  18954. #define HAVE_GETGRNAM_R 1
  18955. /* Define to 1 if you have the `getpid' function. */
  18956. #define HAVE_GETPID 1
  18957. /* Define to 1 if you have the `getpwnam_r' function. */
  18958. #define HAVE_GETPWNAM_R 1
  18959. /* Define to 1 if you have the `getpwuid_r' function. */
  18960. #define HAVE_GETPWUID_R 1
  18961. /* Define to 1 if you have the `getvfsbyname' function. */
  18962. /* #undef HAVE_GETVFSBYNAME */
  18963. /* Define to 1 if you have the `getxattr' function. */
  18964. /* #undef HAVE_GETXATTR */
  18965. /* Define to 1 if you have the `gmtime_r' function. */
  18966. #define HAVE_GMTIME_R 1
  18967. /* Define to 1 if you have the <grp.h> header file. */
  18968. #define HAVE_GRP_H 1
  18969. /* Define to 1 if you have the `iconv' function. */
  18970. /* #undef HAVE_ICONV */
  18971. /* Define to 1 if you have the <iconv.h> header file. */
  18972. /* #undef HAVE_ICONV_H */
  18973. /* Define to 1 if you have the <inttypes.h> header file. */
  18974. #define HAVE_INTTYPES_H 1
  18975. /* Define to 1 if you have the <io.h> header file. */
  18976. /* #undef HAVE_IO_H */
  18977. /* Define to 1 if you have the <langinfo.h> header file. */
  18978. #define HAVE_LANGINFO_H 1
  18979. /* Define to 1 if you have the `lchflags' function. */
  18980. /* #undef HAVE_LCHFLAGS */
  18981. /* Define to 1 if you have the `lchmod' function. */
  18982. /* #undef HAVE_LCHMOD */
  18983. /* Define to 1 if you have the `lchown' function. */
  18984. #define HAVE_LCHOWN 1
  18985. /* Define to 1 if you have the `lgetea' function. */
  18986. /* #undef HAVE_LGETEA */
  18987. /* Define to 1 if you have the `lgetxattr' function. */
  18988. /* #undef HAVE_LGETXATTR */
  18989. /* Define to 1 if you have the `acl' library (-lacl). */
  18990. /* #undef HAVE_LIBACL */
  18991. /* Define to 1 if you have the `attr' library (-lattr). */
  18992. /* #undef HAVE_LIBATTR */
  18993. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  18994. /* #undef HAVE_LIBBSDXML */
  18995. /* Define to 1 if you have the `bz2' library (-lbz2). */
  18996. #define HAVE_LIBBZ2 1
  18997. /* Define to 1 if you have the `charset' library (-lcharset). */
  18998. /* #undef HAVE_LIBCHARSET */
  18999. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  19000. #define HAVE_LIBCRYPTO 1
  19001. /* Define to 1 if you have the `expat' library (-lexpat). */
  19002. /* #undef HAVE_LIBEXPAT */
  19003. /* Define to 1 if you have the `gcc' library (-lgcc). */
  19004. /* #undef HAVE_LIBGCC */
  19005. /* Define to 1 if you have the `lz4' library (-llz4). */
  19006. /* #undef HAVE_LIBLZ4 */
  19007. /* Define to 1 if you have the `lzma' library (-llzma). */
  19008. #define HAVE_LIBLZMA 1
  19009. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  19010. /* #undef HAVE_LIBLZMADEC */
  19011. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  19012. /* #undef HAVE_LIBLZO2 */
  19013. /* Define to 1 if you have the `nettle' library (-lnettle). */
  19014. /* #undef HAVE_LIBNETTLE */
  19015. /* Define to 1 if you have the `pcre' library (-lpcre). */
  19016. /* #undef HAVE_LIBPCRE */
  19017. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  19018. /* #undef HAVE_LIBPCREPOSIX */
  19019. /* Define to 1 if you have the `xml2' library (-lxml2). */
  19020. /* #undef HAVE_LIBXML2 */
  19021. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  19022. /* #undef HAVE_LIBXML_XMLREADER_H */
  19023. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  19024. /* #undef HAVE_LIBXML_XMLWRITER_H */
  19025. /* Define to 1 if you have the `z' library (-lz). */
  19026. #define HAVE_LIBZ 1
  19027. /* Define to 1 if you have the <limits.h> header file. */
  19028. #define HAVE_LIMITS_H 1
  19029. /* Define to 1 if you have the `link' function. */
  19030. #define HAVE_LINK 1
  19031. /* Define to 1 if you have the <linux/types.h> header file. */
  19032. #define HAVE_LINUX_TYPES_H 1
  19033. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  19034. #define HAVE_LINUX_FIEMAP_H 1
  19035. /* Define to 1 if you have the <linux/fs.h> header file. */
  19036. #define HAVE_LINUX_FS_H 1
  19037. /* Define to 1 if you have the <linux/magic.h> header file. */
  19038. #define HAVE_LINUX_MAGIC_H 1
  19039. /* Define to 1 if you have the <linux/types.h> header file. */
  19040. #define HAVE_LINUX_TYPES_H 1
  19041. /* Define to 1 if you have the `listea' function. */
  19042. /* #undef HAVE_LISTEA */
  19043. /* Define to 1 if you have the `listxattr' function. */
  19044. /* #undef HAVE_LISTXATTR */
  19045. /* Define to 1 if you have the `llistea' function. */
  19046. /* #undef HAVE_LLISTEA */
  19047. /* Define to 1 if you have the `llistxattr' function. */
  19048. /* #undef HAVE_LLISTXATTR */
  19049. /* Define to 1 if you have the <localcharset.h> header file. */
  19050. /* #undef HAVE_LOCALCHARSET_H */
  19051. /* Define to 1 if you have the `locale_charset' function. */
  19052. /* #undef HAVE_LOCALE_CHARSET */
  19053. /* Define to 1 if you have the <locale.h> header file. */
  19054. #define HAVE_LOCALE_H 1
  19055. /* Define to 1 if you have the `localtime_r' function. */
  19056. #define HAVE_LOCALTIME_R 1
  19057. /* Define to 1 if the system has the type `long long int'. */
  19058. /* #undef HAVE_LONG_LONG_INT */
  19059. /* Define to 1 if you have the `lsetea' function. */
  19060. /* #undef HAVE_LSETEA */
  19061. /* Define to 1 if you have the `lsetxattr' function. */
  19062. /* #undef HAVE_LSETXATTR */
  19063. /* Define to 1 if you have the `lstat' function. */
  19064. #define HAVE_LSTAT 1
  19065. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  19066. zero-length file name argument. */
  19067. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  19068. /* Define to 1 if you have the `lutimes' function. */
  19069. #define HAVE_LUTIMES 1
  19070. /* Define to 1 if you have the <lz4hc.h> header file. */
  19071. /* #undef HAVE_LZ4HC_H */
  19072. /* Define to 1 if you have the <lz4.h> header file. */
  19073. /* #undef HAVE_LZ4_H */
  19074. /* Define to 1 if you have the <lzmadec.h> header file. */
  19075. /* #undef HAVE_LZMADEC_H */
  19076. /* Define to 1 if you have the <lzma.h> header file. */
  19077. #define HAVE_LZMA_H 1
  19078. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  19079. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  19080. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  19081. /* #undef HAVE_LZO_LZO1X_H */
  19082. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  19083. /* #undef HAVE_LZO_LZOCONF_H */
  19084. /* Define to 1 if you have the `mbrtowc' function. */
  19085. #define HAVE_MBRTOWC 1
  19086. /* Define to 1 if you have the <membership.h> header file. */
  19087. /* #undef HAVE_MEMBERSHIP_H */
  19088. /* Define to 1 if you have the `memmove' function. */
  19089. #define HAVE_MEMMOVE 1
  19090. /* Define to 1 if you have the <memory.h> header file. */
  19091. #define HAVE_MEMORY_H 1
  19092. /* Define to 1 if you have the `mkdir' function. */
  19093. #define HAVE_MKDIR 1
  19094. /* Define to 1 if you have the `mkfifo' function. */
  19095. #define HAVE_MKFIFO 1
  19096. /* Define to 1 if you have the `mknod' function. */
  19097. #define HAVE_MKNOD 1
  19098. /* Define to 1 if you have the `mkstemp' function. */
  19099. #define HAVE_MKSTEMP 1
  19100. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  19101. /* #undef HAVE_NDIR_H */
  19102. /* Define to 1 if you have the <nettle/aes.h> header file. */
  19103. /* #undef HAVE_NETTLE_AES_H */
  19104. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  19105. /* #undef HAVE_NETTLE_HMAC_H */
  19106. /* Define to 1 if you have the <nettle/md5.h> header file. */
  19107. /* #undef HAVE_NETTLE_MD5_H */
  19108. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  19109. /* #undef HAVE_NETTLE_PBKDF2_H */
  19110. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  19111. /* #undef HAVE_NETTLE_RIPEMD160_H */
  19112. /* Define to 1 if you have the <nettle/sha.h> header file. */
  19113. /* #undef HAVE_NETTLE_SHA_H */
  19114. /* Define to 1 if you have the `nl_langinfo' function. */
  19115. #define HAVE_NL_LANGINFO 1
  19116. /* Define to 1 if you have the `openat' function. */
  19117. #define HAVE_OPENAT 1
  19118. /* Define to 1 if you have the <paths.h> header file. */
  19119. #define HAVE_PATHS_H 1
  19120. /* Define to 1 if you have the <pcreposix.h> header file. */
  19121. /* #undef HAVE_PCREPOSIX_H */
  19122. /* Define to 1 if you have the `pipe' function. */
  19123. #define HAVE_PIPE 1
  19124. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  19125. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  19126. /* Define to 1 if you have the `poll' function. */
  19127. #define HAVE_POLL 1
  19128. /* Define to 1 if you have the <poll.h> header file. */
  19129. #define HAVE_POLL_H 1
  19130. /* Define to 1 if you have the `posix_spawnp' function. */
  19131. #define HAVE_POSIX_SPAWNP 1
  19132. /* Define to 1 if you have the <process.h> header file. */
  19133. /* #undef HAVE_PROCESS_H */
  19134. /* Define to 1 if you have the <pthread.h> header file. */
  19135. /* #undef HAVE_PTHREAD_H */
  19136. /* Define to 1 if you have the <pwd.h> header file. */
  19137. #define HAVE_PWD_H 1
  19138. /* Define to 1 if you have the `readdir_r' function. */
  19139. #define HAVE_READDIR_R 1
  19140. /* Define to 1 if you have the `readlink' function. */
  19141. #define HAVE_READLINK 1
  19142. /* Define to 1 if you have the `readlinkat' function. */
  19143. #define HAVE_READLINKAT 1
  19144. /* Define to 1 if you have the `readpassphrase' function. */
  19145. /* #undef HAVE_READPASSPHRASE */
  19146. /* Define to 1 if you have the <readpassphrase.h> header file. */
  19147. /* #undef HAVE_READPASSPHRASE_H */
  19148. /* Define to 1 if you have the <regex.h> header file. */
  19149. #define HAVE_REGEX_H 1
  19150. /* Define to 1 if you have the `select' function. */
  19151. #define HAVE_SELECT 1
  19152. /* Define to 1 if you have the `setenv' function. */
  19153. #define HAVE_SETENV 1
  19154. /* Define to 1 if you have the `setlocale' function. */
  19155. #define HAVE_SETLOCALE 1
  19156. /* Define to 1 if you have the `sigaction' function. */
  19157. #define HAVE_SIGACTION 1
  19158. /* Define to 1 if you have the <signal.h> header file. */
  19159. #define HAVE_SIGNAL_H 1
  19160. /* Define to 1 if you have the <spawn.h> header file. */
  19161. #define HAVE_SPAWN_H 1
  19162. /* Define to 1 if you have the `statfs' function. */
  19163. #define HAVE_STATFS 1
  19164. /* Define to 1 if you have the `statvfs' function. */
  19165. #define HAVE_STATVFS 1
  19166. /* Define to 1 if `stat' has the bug that it succeeds when given the
  19167. zero-length file name argument. */
  19168. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  19169. /* Define to 1 if you have the <stdarg.h> header file. */
  19170. #define HAVE_STDARG_H 1
  19171. /* Define to 1 if you have the <stdint.h> header file. */
  19172. #define HAVE_STDINT_H 1
  19173. /* Define to 1 if you have the <stdlib.h> header file. */
  19174. #define HAVE_STDLIB_H 1
  19175. /* Define to 1 if you have the `strchr' function. */
  19176. #define HAVE_STRCHR 1
  19177. /* Define to 1 if you have the `strdup' function. */
  19178. #define HAVE_STRDUP 1
  19179. /* Define to 1 if you have the `strerror' function. */
  19180. #define HAVE_STRERROR 1
  19181. /* Define to 1 if you have the `strerror_r' function. */
  19182. #define HAVE_STRERROR_R 1
  19183. /* Define to 1 if you have the `strftime' function. */
  19184. #define HAVE_STRFTIME 1
  19185. /* Define to 1 if you have the <strings.h> header file. */
  19186. #define HAVE_STRINGS_H 1
  19187. /* Define to 1 if you have the <string.h> header file. */
  19188. #define HAVE_STRING_H 1
  19189. /* Define to 1 if you have the `strrchr' function. */
  19190. #define HAVE_STRRCHR 1
  19191. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  19192. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  19193. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  19194. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  19195. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  19196. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  19197. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  19198. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  19199. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  19200. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  19201. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  19202. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  19203. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  19204. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  19205. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  19206. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  19207. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  19208. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  19209. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  19210. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  19211. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  19212. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  19213. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  19214. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  19215. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  19216. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  19217. /* Define to 1 if you have `struct vfsconf'. */
  19218. /* #undef HAVE_STRUCT_VFSCONF */
  19219. /* Define to 1 if you have `struct xvfsconf'. */
  19220. /* #undef HAVE_STRUCT_XVFSCONF */
  19221. /* Define to 1 if you have the `symlink' function. */
  19222. #define HAVE_SYMLINK 1
  19223. /* Define to 1 if you have the <sys/acl.h> header file. */
  19224. /* #undef HAVE_SYS_ACL_H */
  19225. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  19226. #define HAVE_SYS_CDEFS_H 1
  19227. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  19228. */
  19229. /* #undef HAVE_SYS_DIR_H */
  19230. /* Define to 1 if you have the <sys/ea.h> header file. */
  19231. /* #undef HAVE_SYS_EA_H */
  19232. /* Define to 1 if you have the <sys/extattr.h> header file. */
  19233. /* #undef HAVE_SYS_EXTATTR_H */
  19234. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  19235. #define HAVE_SYS_IOCTL_H 1
  19236. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  19237. /* #undef HAVE_SYS_MKDEV_H */
  19238. /* Define to 1 if you have the <sys/mount.h> header file. */
  19239. /* #undef HAVE_SYS_MOUNT_H */
  19240. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  19241. */
  19242. /* #undef HAVE_SYS_NDIR_H */
  19243. /* Define to 1 if you have the <sys/param.h> header file. */
  19244. #define HAVE_SYS_PARAM_H 1
  19245. /* Define to 1 if you have the <sys/poll.h> header file. */
  19246. #define HAVE_SYS_POLL_H 1
  19247. /* Define to 1 if you have the <sys/richacl.h> header file. */
  19248. /* #undef HAVE_SYS_RICHACL_H */
  19249. /* Define to 1 if you have the <sys/select.h> header file. */
  19250. #define HAVE_SYS_SELECT_H 1
  19251. /* Define to 1 if you have the <sys/statfs.h> header file. */
  19252. #define HAVE_SYS_STATFS_H 1
  19253. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  19254. #define HAVE_SYS_STATVFS_H 1
  19255. /* Define to 1 if you have the <sys/stat.h> header file. */
  19256. #define HAVE_SYS_STAT_H 1
  19257. /* Define to 1 if you have the <sys/time.h> header file. */
  19258. #define HAVE_SYS_TIME_H 1
  19259. /* Define to 1 if you have the <sys/types.h> header file. */
  19260. #define HAVE_SYS_TYPES_H 1
  19261. /* Define to 1 if you have the <sys/utime.h> header file. */
  19262. /* #undef HAVE_SYS_UTIME_H */
  19263. /* Define to 1 if you have the <sys/utsname.h> header file. */
  19264. #define HAVE_SYS_UTSNAME_H 1
  19265. /* Define to 1 if you have the <sys/vfs.h> header file. */
  19266. #define HAVE_SYS_VFS_H 1
  19267. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  19268. #define HAVE_SYS_WAIT_H 1
  19269. /* Define to 1 if you have the <sys/xattr.h> header file. */
  19270. #define HAVE_SYS_XATTR_H 1
  19271. /* Define to 1 if you have the `timegm' function. */
  19272. #define HAVE_TIMEGM 1
  19273. /* Define to 1 if you have the <time.h> header file. */
  19274. #define HAVE_TIME_H 1
  19275. /* Define to 1 if you have the `tzset' function. */
  19276. #define HAVE_TZSET 1
  19277. /* Define to 1 if you have the <unistd.h> header file. */
  19278. #define HAVE_UNISTD_H 1
  19279. /* Define to 1 if you have the `unsetenv' function. */
  19280. #define HAVE_UNSETENV 1
  19281. /* Define to 1 if the system has the type `unsigned long long'. */
  19282. /* #undef HAVE_UNSIGNED_LONG_LONG */
  19283. /* Define to 1 if the system has the type `unsigned long long int'. */
  19284. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  19285. /* Define to 1 if you have the `utime' function. */
  19286. #define HAVE_UTIME 1
  19287. /* Define to 1 if you have the `utimensat' function. */
  19288. #define HAVE_UTIMENSAT 1
  19289. /* Define to 1 if you have the `utimes' function. */
  19290. #define HAVE_UTIMES 1
  19291. /* Define to 1 if you have the <utime.h> header file. */
  19292. #define HAVE_UTIME_H 1
  19293. /* Define to 1 if you have the `vfork' function. */
  19294. #define HAVE_VFORK 1
  19295. /* Define to 1 if you have the `vprintf' function. */
  19296. #define HAVE_VPRINTF 1
  19297. /* Define to 1 if you have the <wchar.h> header file. */
  19298. #define HAVE_WCHAR_H 1
  19299. /* Define to 1 if the system has the type `wchar_t'. */
  19300. #define HAVE_WCHAR_T 1
  19301. /* Define to 1 if you have the `wcrtomb' function. */
  19302. #define HAVE_WCRTOMB 1
  19303. /* Define to 1 if you have the `wcscmp' function. */
  19304. #define HAVE_WCSCMP 1
  19305. /* Define to 1 if you have the `wcscpy' function. */
  19306. #define HAVE_WCSCPY 1
  19307. /* Define to 1 if you have the `wcslen' function. */
  19308. #define HAVE_WCSLEN 1
  19309. /* Define to 1 if you have the `wctomb' function. */
  19310. #define HAVE_WCTOMB 1
  19311. /* Define to 1 if you have the <wctype.h> header file. */
  19312. #define HAVE_WCTYPE_H 1
  19313. /* Define to 1 if you have the <wincrypt.h> header file. */
  19314. /* #undef HAVE_WINCRYPT_H */
  19315. /* Define to 1 if you have the <windows.h> header file. */
  19316. /* #undef HAVE_WINDOWS_H */
  19317. /* Define to 1 if you have the <winioctl.h> header file. */
  19318. /* #undef HAVE_WINIOCTL_H */
  19319. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  19320. /* #undef HAVE__CrtSetReportMode */
  19321. /* Define to 1 if you have the `wmemcmp' function. */
  19322. #define HAVE_WMEMCMP 1
  19323. /* Define to 1 if you have the `wmemcpy' function. */
  19324. #define HAVE_WMEMCPY 1
  19325. /* Define to 1 if you have the `wmemmove' function. */
  19326. #define HAVE_WMEMMOVE 1
  19327. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  19328. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  19329. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  19330. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  19331. /* Define to 1 if you have the <zlib.h> header file. */
  19332. #define HAVE_ZLIB_H 1
  19333. /* Define to 1 if you have the `_ctime64_s' function. */
  19334. /* #undef HAVE__CTIME64_S */
  19335. /* Define to 1 if you have the `_fseeki64' function. */
  19336. /* #undef HAVE__FSEEKI64 */
  19337. /* Define to 1 if you have the `_get_timezone' function. */
  19338. /* #undef HAVE__GET_TIMEZONE */
  19339. /* Define to 1 if you have the `_localtime64_s' function. */
  19340. /* #undef HAVE__LOCALTIME64_S */
  19341. /* Define to 1 if you have the `_mkgmtime64' function. */
  19342. /* #undef HAVE__MKGMTIME64 */
  19343. /* Define as const if the declaration of iconv() needs const. */
  19344. #define ICONV_CONST
  19345. /* Version number of libarchive as a single integer */
  19346. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  19347. /* Version number of libarchive */
  19348. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  19349. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  19350. slash. */
  19351. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  19352. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  19353. */
  19354. /* #undef MAJOR_IN_MKDEV */
  19355. /* Define to 1 if `major', `minor', and `makedev' are declared in
  19356. <sysmacros.h>. */
  19357. #define MAJOR_IN_SYSMACROS 1
  19358. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  19359. /* #undef NO_MINUS_C_MINUS_O */
  19360. /* The size of `wchar_t', as computed by sizeof. */
  19361. #define SIZEOF_WCHAR_T 4
  19362. /* Define to 1 if strerror_r returns char *. */
  19363. /* #undef STRERROR_R_CHAR_P */
  19364. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  19365. #define TIME_WITH_SYS_TIME 1
  19366. /*
  19367. * Some platform requires a macro to use extension functions.
  19368. */
  19369. #define SAFE_TO_DEFINE_EXTENSIONS 1
  19370. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  19371. /* Enable extensions on AIX 3, Interix. */
  19372. #ifndef _ALL_SOURCE
  19373. # define _ALL_SOURCE 1
  19374. #endif
  19375. /* Enable GNU extensions on systems that have them. */
  19376. #ifndef _GNU_SOURCE
  19377. # define _GNU_SOURCE 1
  19378. #endif
  19379. /* Enable threading extensions on Solaris. */
  19380. #ifndef _POSIX_PTHREAD_SEMANTICS
  19381. # define _POSIX_PTHREAD_SEMANTICS 1
  19382. #endif
  19383. /* Enable extensions on HP NonStop. */
  19384. #ifndef _TANDEM_SOURCE
  19385. # define _TANDEM_SOURCE 1
  19386. #endif
  19387. /* Enable general extensions on Solaris. */
  19388. #ifndef __EXTENSIONS__
  19389. # define __EXTENSIONS__ 1
  19390. #endif
  19391. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  19392. /* Version number of package */
  19393. #define VERSION "3.3.2"
  19394. /* Number of bits in a file offset, on hosts where this is settable. */
  19395. /* #undef _FILE_OFFSET_BITS */
  19396. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  19397. /* #undef _LARGEFILE_SOURCE */
  19398. /* Define for large files, on AIX-style hosts. */
  19399. /* #undef _LARGE_FILES */
  19400. /* Define to control Windows SDK version */
  19401. #ifndef NTDDI_VERSION
  19402. /* #undef NTDDI_VERSION */
  19403. #endif // NTDDI_VERSION
  19404. #ifndef _WIN32_WINNT
  19405. /* #undef _WIN32_WINNT */
  19406. #endif // _WIN32_WINNT
  19407. #ifndef WINVER
  19408. /* #undef WINVER */
  19409. #endif // WINVER
  19410. /* Define to empty if `const' does not conform to ANSI C. */
  19411. /* #undef const */
  19412. /* Define to `int' if <sys/types.h> doesn't define. */
  19413. /* #undef gid_t */
  19414. /* Define to `unsigned long' if <sys/types.h> does not define. */
  19415. /* #undef id_t */
  19416. /* Define to `int' if <sys/types.h> does not define. */
  19417. /* #undef mode_t */
  19418. /* Define to `long long' if <sys/types.h> does not define. */
  19419. /* #undef off_t */
  19420. /* Define to `int' if <sys/types.h> doesn't define. */
  19421. /* #undef pid_t */
  19422. /* Define to `unsigned int' if <sys/types.h> does not define. */
  19423. /* #undef size_t */
  19424. /* Define to `int' if <sys/types.h> does not define. */
  19425. /* #undef ssize_t */
  19426. /* Define to `int' if <sys/types.h> doesn't define. */
  19427. /* #undef uid_t */
  19428. /* Define to `int' if <sys/types.h> does not define. */
  19429. /* #undef intptr_t */
  19430. /* Define to `unsigned int' if <sys/types.h> does not define. */
  19431. /* #undef uintptr_t */
  19432. #define ARCHIVE_SHA512_COMPILE_TEST
  19433. #define ARCHIVE_CRYPTO_SHA512_LIBC
  19434. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19435. /*-
  19436. * Copyright (c) 2003-2007 Tim Kientzle
  19437. * Copyright (c) 2011 Andres Mejia
  19438. * Copyright (c) 2011 Michihiro NAKAJIMA
  19439. * All rights reserved.
  19440. *
  19441. * Redistribution and use in source and binary forms, with or without
  19442. * modification, are permitted provided that the following conditions
  19443. * are met:
  19444. * 1. Redistributions of source code must retain the above copyright
  19445. * notice, this list of conditions and the following disclaimer.
  19446. * 2. Redistributions in binary form must reproduce the above copyright
  19447. * notice, this list of conditions and the following disclaimer in the
  19448. * documentation and/or other materials provided with the distribution.
  19449. *
  19450. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  19451. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  19452. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  19453. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  19454. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  19455. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  19456. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  19457. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  19458. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  19459. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  19460. */
  19461. #include "archive_platform.h"
  19462. #include "archive.h"
  19463. #include "archive_digest_private.h"
  19464. /* In particular, force the configure probe to break if it tries
  19465. * to test a combination of OpenSSL and libmd. */
  19466. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  19467. #error Cannot use both OpenSSL and libmd.
  19468. #endif
  19469. /*
  19470. * Message digest functions for Windows platform.
  19471. */
  19472. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  19473. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  19474. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  19475. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  19476. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  19477. /*
  19478. * Initialize a Message digest.
  19479. */
  19480. static int
  19481. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  19482. {
  19483. ctx->valid = 0;
  19484. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  19485. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  19486. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  19487. return (ARCHIVE_FAILED);
  19488. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  19489. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  19490. return (ARCHIVE_FAILED);
  19491. }
  19492. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  19493. CryptReleaseContext(ctx->cryptProv, 0);
  19494. return (ARCHIVE_FAILED);
  19495. }
  19496. ctx->valid = 1;
  19497. return (ARCHIVE_OK);
  19498. }
  19499. /*
  19500. * Update a Message digest.
  19501. */
  19502. static int
  19503. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  19504. {
  19505. if (!ctx->valid)
  19506. return (ARCHIVE_FAILED);
  19507. CryptHashData(ctx->hash,
  19508. (unsigned char *)(uintptr_t)buf,
  19509. (DWORD)len, 0);
  19510. return (ARCHIVE_OK);
  19511. }
  19512. static int
  19513. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  19514. {
  19515. DWORD siglen = (DWORD)bufsize;
  19516. if (!ctx->valid)
  19517. return (ARCHIVE_FAILED);
  19518. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  19519. CryptDestroyHash(ctx->hash);
  19520. CryptReleaseContext(ctx->cryptProv, 0);
  19521. ctx->valid = 0;
  19522. return (ARCHIVE_OK);
  19523. }
  19524. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  19525. /* MD5 implementations */
  19526. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  19527. static int
  19528. __archive_libc_md5init(archive_md5_ctx *ctx)
  19529. {
  19530. MD5Init(ctx);
  19531. return (ARCHIVE_OK);
  19532. }
  19533. static int
  19534. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  19535. size_t insize)
  19536. {
  19537. MD5Update(ctx, indata, insize);
  19538. return (ARCHIVE_OK);
  19539. }
  19540. static int
  19541. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  19542. {
  19543. MD5Final(md, ctx);
  19544. return (ARCHIVE_OK);
  19545. }
  19546. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  19547. static int
  19548. __archive_libmd_md5init(archive_md5_ctx *ctx)
  19549. {
  19550. MD5Init(ctx);
  19551. return (ARCHIVE_OK);
  19552. }
  19553. static int
  19554. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  19555. size_t insize)
  19556. {
  19557. MD5Update(ctx, indata, insize);
  19558. return (ARCHIVE_OK);
  19559. }
  19560. static int
  19561. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  19562. {
  19563. MD5Final(md, ctx);
  19564. return (ARCHIVE_OK);
  19565. }
  19566. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  19567. static int
  19568. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  19569. {
  19570. CC_MD5_Init(ctx);
  19571. return (ARCHIVE_OK);
  19572. }
  19573. static int
  19574. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  19575. size_t insize)
  19576. {
  19577. CC_MD5_Update(ctx, indata, insize);
  19578. return (ARCHIVE_OK);
  19579. }
  19580. static int
  19581. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  19582. {
  19583. CC_MD5_Final(md, ctx);
  19584. return (ARCHIVE_OK);
  19585. }
  19586. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  19587. static int
  19588. __archive_nettle_md5init(archive_md5_ctx *ctx)
  19589. {
  19590. md5_init(ctx);
  19591. return (ARCHIVE_OK);
  19592. }
  19593. static int
  19594. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  19595. size_t insize)
  19596. {
  19597. md5_update(ctx, insize, indata);
  19598. return (ARCHIVE_OK);
  19599. }
  19600. static int
  19601. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  19602. {
  19603. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  19604. return (ARCHIVE_OK);
  19605. }
  19606. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  19607. static int
  19608. __archive_openssl_md5init(archive_md5_ctx *ctx)
  19609. {
  19610. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  19611. return (ARCHIVE_FAILED);
  19612. EVP_DigestInit(*ctx, EVP_md5());
  19613. return (ARCHIVE_OK);
  19614. }
  19615. static int
  19616. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  19617. size_t insize)
  19618. {
  19619. EVP_DigestUpdate(*ctx, indata, insize);
  19620. return (ARCHIVE_OK);
  19621. }
  19622. static int
  19623. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  19624. {
  19625. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  19626. * this is meant to cope with that. Real fix is probably to fix
  19627. * archive_write_set_format_xar.c
  19628. */
  19629. if (*ctx) {
  19630. EVP_DigestFinal(*ctx, md, NULL);
  19631. EVP_MD_CTX_free(*ctx);
  19632. *ctx = NULL;
  19633. }
  19634. return (ARCHIVE_OK);
  19635. }
  19636. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  19637. static int
  19638. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  19639. {
  19640. return (win_crypto_init(ctx, CALG_MD5));
  19641. }
  19642. static int
  19643. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  19644. size_t insize)
  19645. {
  19646. return (win_crypto_Update(ctx, indata, insize));
  19647. }
  19648. static int
  19649. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  19650. {
  19651. return (win_crypto_Final(md, 16, ctx));
  19652. }
  19653. #else
  19654. static int
  19655. __archive_stub_md5init(archive_md5_ctx *ctx)
  19656. {
  19657. (void)ctx; /* UNUSED */
  19658. return (ARCHIVE_FAILED);
  19659. }
  19660. static int
  19661. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  19662. size_t insize)
  19663. {
  19664. (void)ctx; /* UNUSED */
  19665. (void)indata; /* UNUSED */
  19666. (void)insize; /* UNUSED */
  19667. return (ARCHIVE_FAILED);
  19668. }
  19669. static int
  19670. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  19671. {
  19672. (void)ctx; /* UNUSED */
  19673. (void)md; /* UNUSED */
  19674. return (ARCHIVE_FAILED);
  19675. }
  19676. #endif
  19677. /* RIPEMD160 implementations */
  19678. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  19679. static int
  19680. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  19681. {
  19682. RMD160Init(ctx);
  19683. return (ARCHIVE_OK);
  19684. }
  19685. static int
  19686. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  19687. size_t insize)
  19688. {
  19689. RMD160Update(ctx, indata, insize);
  19690. return (ARCHIVE_OK);
  19691. }
  19692. static int
  19693. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  19694. {
  19695. RMD160Final(md, ctx);
  19696. return (ARCHIVE_OK);
  19697. }
  19698. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  19699. static int
  19700. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  19701. {
  19702. RIPEMD160_Init(ctx);
  19703. return (ARCHIVE_OK);
  19704. }
  19705. static int
  19706. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  19707. size_t insize)
  19708. {
  19709. RIPEMD160_Update(ctx, indata, insize);
  19710. return (ARCHIVE_OK);
  19711. }
  19712. static int
  19713. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  19714. {
  19715. RIPEMD160_Final(md, ctx);
  19716. return (ARCHIVE_OK);
  19717. }
  19718. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  19719. static int
  19720. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  19721. {
  19722. ripemd160_init(ctx);
  19723. return (ARCHIVE_OK);
  19724. }
  19725. static int
  19726. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  19727. size_t insize)
  19728. {
  19729. ripemd160_update(ctx, insize, indata);
  19730. return (ARCHIVE_OK);
  19731. }
  19732. static int
  19733. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  19734. {
  19735. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  19736. return (ARCHIVE_OK);
  19737. }
  19738. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  19739. static int
  19740. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  19741. {
  19742. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  19743. return (ARCHIVE_FAILED);
  19744. EVP_DigestInit(*ctx, EVP_ripemd160());
  19745. return (ARCHIVE_OK);
  19746. }
  19747. static int
  19748. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  19749. size_t insize)
  19750. {
  19751. EVP_DigestUpdate(*ctx, indata, insize);
  19752. return (ARCHIVE_OK);
  19753. }
  19754. static int
  19755. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  19756. {
  19757. if (*ctx) {
  19758. EVP_DigestFinal(*ctx, md, NULL);
  19759. EVP_MD_CTX_free(*ctx);
  19760. *ctx = NULL;
  19761. }
  19762. return (ARCHIVE_OK);
  19763. }
  19764. #else
  19765. static int
  19766. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  19767. {
  19768. (void)ctx; /* UNUSED */
  19769. return (ARCHIVE_FAILED);
  19770. }
  19771. static int
  19772. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  19773. size_t insize)
  19774. {
  19775. (void)ctx; /* UNUSED */
  19776. (void)indata; /* UNUSED */
  19777. (void)insize; /* UNUSED */
  19778. return (ARCHIVE_FAILED);
  19779. }
  19780. static int
  19781. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  19782. {
  19783. (void)ctx; /* UNUSED */
  19784. (void)md; /* UNUSED */
  19785. return (ARCHIVE_FAILED);
  19786. }
  19787. #endif
  19788. /* SHA1 implementations */
  19789. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  19790. static int
  19791. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  19792. {
  19793. SHA1Init(ctx);
  19794. return (ARCHIVE_OK);
  19795. }
  19796. static int
  19797. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  19798. size_t insize)
  19799. {
  19800. SHA1Update(ctx, indata, insize);
  19801. return (ARCHIVE_OK);
  19802. }
  19803. static int
  19804. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  19805. {
  19806. SHA1Final(md, ctx);
  19807. return (ARCHIVE_OK);
  19808. }
  19809. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  19810. static int
  19811. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  19812. {
  19813. SHA1_Init(ctx);
  19814. return (ARCHIVE_OK);
  19815. }
  19816. static int
  19817. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  19818. size_t insize)
  19819. {
  19820. SHA1_Update(ctx, indata, insize);
  19821. return (ARCHIVE_OK);
  19822. }
  19823. static int
  19824. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  19825. {
  19826. SHA1_Final(md, ctx);
  19827. return (ARCHIVE_OK);
  19828. }
  19829. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  19830. static int
  19831. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  19832. {
  19833. CC_SHA1_Init(ctx);
  19834. return (ARCHIVE_OK);
  19835. }
  19836. static int
  19837. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  19838. size_t insize)
  19839. {
  19840. CC_SHA1_Update(ctx, indata, insize);
  19841. return (ARCHIVE_OK);
  19842. }
  19843. static int
  19844. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  19845. {
  19846. CC_SHA1_Final(md, ctx);
  19847. return (ARCHIVE_OK);
  19848. }
  19849. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  19850. static int
  19851. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  19852. {
  19853. sha1_init(ctx);
  19854. return (ARCHIVE_OK);
  19855. }
  19856. static int
  19857. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  19858. size_t insize)
  19859. {
  19860. sha1_update(ctx, insize, indata);
  19861. return (ARCHIVE_OK);
  19862. }
  19863. static int
  19864. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  19865. {
  19866. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  19867. return (ARCHIVE_OK);
  19868. }
  19869. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  19870. static int
  19871. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  19872. {
  19873. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  19874. return (ARCHIVE_FAILED);
  19875. EVP_DigestInit(*ctx, EVP_sha1());
  19876. return (ARCHIVE_OK);
  19877. }
  19878. static int
  19879. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  19880. size_t insize)
  19881. {
  19882. EVP_DigestUpdate(*ctx, indata, insize);
  19883. return (ARCHIVE_OK);
  19884. }
  19885. static int
  19886. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  19887. {
  19888. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  19889. * this is meant to cope with that. Real fix is probably to fix
  19890. * archive_write_set_format_xar.c
  19891. */
  19892. if (*ctx) {
  19893. EVP_DigestFinal(*ctx, md, NULL);
  19894. EVP_MD_CTX_free(*ctx);
  19895. *ctx = NULL;
  19896. }
  19897. return (ARCHIVE_OK);
  19898. }
  19899. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  19900. static int
  19901. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  19902. {
  19903. return (win_crypto_init(ctx, CALG_SHA1));
  19904. }
  19905. static int
  19906. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  19907. size_t insize)
  19908. {
  19909. return (win_crypto_Update(ctx, indata, insize));
  19910. }
  19911. static int
  19912. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  19913. {
  19914. return (win_crypto_Final(md, 20, ctx));
  19915. }
  19916. #else
  19917. static int
  19918. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  19919. {
  19920. (void)ctx; /* UNUSED */
  19921. return (ARCHIVE_FAILED);
  19922. }
  19923. static int
  19924. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  19925. size_t insize)
  19926. {
  19927. (void)ctx; /* UNUSED */
  19928. (void)indata; /* UNUSED */
  19929. (void)insize; /* UNUSED */
  19930. return (ARCHIVE_FAILED);
  19931. }
  19932. static int
  19933. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  19934. {
  19935. (void)ctx; /* UNUSED */
  19936. (void)md; /* UNUSED */
  19937. return (ARCHIVE_FAILED);
  19938. }
  19939. #endif
  19940. /* SHA256 implementations */
  19941. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  19942. static int
  19943. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  19944. {
  19945. SHA256_Init(ctx);
  19946. return (ARCHIVE_OK);
  19947. }
  19948. static int
  19949. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  19950. size_t insize)
  19951. {
  19952. SHA256_Update(ctx, indata, insize);
  19953. return (ARCHIVE_OK);
  19954. }
  19955. static int
  19956. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  19957. {
  19958. SHA256_Final(md, ctx);
  19959. return (ARCHIVE_OK);
  19960. }
  19961. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  19962. static int
  19963. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  19964. {
  19965. SHA256Init(ctx);
  19966. return (ARCHIVE_OK);
  19967. }
  19968. static int
  19969. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  19970. size_t insize)
  19971. {
  19972. SHA256Update(ctx, indata, insize);
  19973. return (ARCHIVE_OK);
  19974. }
  19975. static int
  19976. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  19977. {
  19978. SHA256Final(md, ctx);
  19979. return (ARCHIVE_OK);
  19980. }
  19981. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  19982. static int
  19983. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  19984. {
  19985. SHA256Init(ctx);
  19986. return (ARCHIVE_OK);
  19987. }
  19988. static int
  19989. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  19990. size_t insize)
  19991. {
  19992. SHA256Update(ctx, indata, insize);
  19993. return (ARCHIVE_OK);
  19994. }
  19995. static int
  19996. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  19997. {
  19998. SHA256Final(md, ctx);
  19999. return (ARCHIVE_OK);
  20000. }
  20001. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  20002. static int
  20003. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  20004. {
  20005. SHA256_Init(ctx);
  20006. return (ARCHIVE_OK);
  20007. }
  20008. static int
  20009. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  20010. size_t insize)
  20011. {
  20012. SHA256_Update(ctx, indata, insize);
  20013. return (ARCHIVE_OK);
  20014. }
  20015. static int
  20016. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  20017. {
  20018. SHA256_Final(md, ctx);
  20019. return (ARCHIVE_OK);
  20020. }
  20021. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  20022. static int
  20023. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  20024. {
  20025. CC_SHA256_Init(ctx);
  20026. return (ARCHIVE_OK);
  20027. }
  20028. static int
  20029. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  20030. size_t insize)
  20031. {
  20032. CC_SHA256_Update(ctx, indata, insize);
  20033. return (ARCHIVE_OK);
  20034. }
  20035. static int
  20036. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  20037. {
  20038. CC_SHA256_Final(md, ctx);
  20039. return (ARCHIVE_OK);
  20040. }
  20041. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  20042. static int
  20043. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  20044. {
  20045. sha256_init(ctx);
  20046. return (ARCHIVE_OK);
  20047. }
  20048. static int
  20049. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  20050. size_t insize)
  20051. {
  20052. sha256_update(ctx, insize, indata);
  20053. return (ARCHIVE_OK);
  20054. }
  20055. static int
  20056. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  20057. {
  20058. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  20059. return (ARCHIVE_OK);
  20060. }
  20061. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  20062. static int
  20063. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  20064. {
  20065. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  20066. return (ARCHIVE_FAILED);
  20067. EVP_DigestInit(*ctx, EVP_sha256());
  20068. return (ARCHIVE_OK);
  20069. }
  20070. static int
  20071. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  20072. size_t insize)
  20073. {
  20074. EVP_DigestUpdate(*ctx, indata, insize);
  20075. return (ARCHIVE_OK);
  20076. }
  20077. static int
  20078. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  20079. {
  20080. if (*ctx) {
  20081. EVP_DigestFinal(*ctx, md, NULL);
  20082. EVP_MD_CTX_free(*ctx);
  20083. *ctx = NULL;
  20084. }
  20085. return (ARCHIVE_OK);
  20086. }
  20087. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  20088. static int
  20089. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  20090. {
  20091. return (win_crypto_init(ctx, CALG_SHA_256));
  20092. }
  20093. static int
  20094. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  20095. size_t insize)
  20096. {
  20097. return (win_crypto_Update(ctx, indata, insize));
  20098. }
  20099. static int
  20100. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  20101. {
  20102. return (win_crypto_Final(md, 32, ctx));
  20103. }
  20104. #else
  20105. static int
  20106. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  20107. {
  20108. (void)ctx; /* UNUSED */
  20109. return (ARCHIVE_FAILED);
  20110. }
  20111. static int
  20112. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  20113. size_t insize)
  20114. {
  20115. (void)ctx; /* UNUSED */
  20116. (void)indata; /* UNUSED */
  20117. (void)insize; /* UNUSED */
  20118. return (ARCHIVE_FAILED);
  20119. }
  20120. static int
  20121. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  20122. {
  20123. (void)ctx; /* UNUSED */
  20124. (void)md; /* UNUSED */
  20125. return (ARCHIVE_FAILED);
  20126. }
  20127. #endif
  20128. /* SHA384 implementations */
  20129. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  20130. static int
  20131. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  20132. {
  20133. SHA384_Init(ctx);
  20134. return (ARCHIVE_OK);
  20135. }
  20136. static int
  20137. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  20138. size_t insize)
  20139. {
  20140. SHA384_Update(ctx, indata, insize);
  20141. return (ARCHIVE_OK);
  20142. }
  20143. static int
  20144. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  20145. {
  20146. SHA384_Final(md, ctx);
  20147. return (ARCHIVE_OK);
  20148. }
  20149. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  20150. static int
  20151. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  20152. {
  20153. SHA384Init(ctx);
  20154. return (ARCHIVE_OK);
  20155. }
  20156. static int
  20157. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  20158. size_t insize)
  20159. {
  20160. SHA384Update(ctx, indata, insize);
  20161. return (ARCHIVE_OK);
  20162. }
  20163. static int
  20164. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  20165. {
  20166. SHA384Final(md, ctx);
  20167. return (ARCHIVE_OK);
  20168. }
  20169. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  20170. static int
  20171. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  20172. {
  20173. SHA384Init(ctx);
  20174. return (ARCHIVE_OK);
  20175. }
  20176. static int
  20177. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  20178. size_t insize)
  20179. {
  20180. SHA384Update(ctx, indata, insize);
  20181. return (ARCHIVE_OK);
  20182. }
  20183. static int
  20184. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  20185. {
  20186. SHA384Final(md, ctx);
  20187. return (ARCHIVE_OK);
  20188. }
  20189. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  20190. static int
  20191. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  20192. {
  20193. CC_SHA384_Init(ctx);
  20194. return (ARCHIVE_OK);
  20195. }
  20196. static int
  20197. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  20198. size_t insize)
  20199. {
  20200. CC_SHA384_Update(ctx, indata, insize);
  20201. return (ARCHIVE_OK);
  20202. }
  20203. static int
  20204. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  20205. {
  20206. CC_SHA384_Final(md, ctx);
  20207. return (ARCHIVE_OK);
  20208. }
  20209. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  20210. static int
  20211. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  20212. {
  20213. sha384_init(ctx);
  20214. return (ARCHIVE_OK);
  20215. }
  20216. static int
  20217. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  20218. size_t insize)
  20219. {
  20220. sha384_update(ctx, insize, indata);
  20221. return (ARCHIVE_OK);
  20222. }
  20223. static int
  20224. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  20225. {
  20226. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  20227. return (ARCHIVE_OK);
  20228. }
  20229. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  20230. static int
  20231. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  20232. {
  20233. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  20234. return (ARCHIVE_FAILED);
  20235. EVP_DigestInit(*ctx, EVP_sha384());
  20236. return (ARCHIVE_OK);
  20237. }
  20238. static int
  20239. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  20240. size_t insize)
  20241. {
  20242. EVP_DigestUpdate(*ctx, indata, insize);
  20243. return (ARCHIVE_OK);
  20244. }
  20245. static int
  20246. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  20247. {
  20248. if (*ctx) {
  20249. EVP_DigestFinal(*ctx, md, NULL);
  20250. EVP_MD_CTX_free(*ctx);
  20251. *ctx = NULL;
  20252. }
  20253. return (ARCHIVE_OK);
  20254. }
  20255. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  20256. static int
  20257. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  20258. {
  20259. return (win_crypto_init(ctx, CALG_SHA_384));
  20260. }
  20261. static int
  20262. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  20263. size_t insize)
  20264. {
  20265. return (win_crypto_Update(ctx, indata, insize));
  20266. }
  20267. static int
  20268. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  20269. {
  20270. return (win_crypto_Final(md, 48, ctx));
  20271. }
  20272. #else
  20273. static int
  20274. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  20275. {
  20276. (void)ctx; /* UNUSED */
  20277. return (ARCHIVE_FAILED);
  20278. }
  20279. static int
  20280. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  20281. size_t insize)
  20282. {
  20283. (void)ctx; /* UNUSED */
  20284. (void)indata; /* UNUSED */
  20285. (void)insize; /* UNUSED */
  20286. return (ARCHIVE_FAILED);
  20287. }
  20288. static int
  20289. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  20290. {
  20291. (void)ctx; /* UNUSED */
  20292. (void)md; /* UNUSED */
  20293. return (ARCHIVE_FAILED);
  20294. }
  20295. #endif
  20296. /* SHA512 implementations */
  20297. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  20298. static int
  20299. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  20300. {
  20301. SHA512_Init(ctx);
  20302. return (ARCHIVE_OK);
  20303. }
  20304. static int
  20305. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  20306. size_t insize)
  20307. {
  20308. SHA512_Update(ctx, indata, insize);
  20309. return (ARCHIVE_OK);
  20310. }
  20311. static int
  20312. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  20313. {
  20314. SHA512_Final(md, ctx);
  20315. return (ARCHIVE_OK);
  20316. }
  20317. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  20318. static int
  20319. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  20320. {
  20321. SHA512Init(ctx);
  20322. return (ARCHIVE_OK);
  20323. }
  20324. static int
  20325. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  20326. size_t insize)
  20327. {
  20328. SHA512Update(ctx, indata, insize);
  20329. return (ARCHIVE_OK);
  20330. }
  20331. static int
  20332. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  20333. {
  20334. SHA512Final(md, ctx);
  20335. return (ARCHIVE_OK);
  20336. }
  20337. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  20338. static int
  20339. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  20340. {
  20341. SHA512Init(ctx);
  20342. return (ARCHIVE_OK);
  20343. }
  20344. static int
  20345. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  20346. size_t insize)
  20347. {
  20348. SHA512Update(ctx, indata, insize);
  20349. return (ARCHIVE_OK);
  20350. }
  20351. static int
  20352. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  20353. {
  20354. SHA512Final(md, ctx);
  20355. return (ARCHIVE_OK);
  20356. }
  20357. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  20358. static int
  20359. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  20360. {
  20361. SHA512_Init(ctx);
  20362. return (ARCHIVE_OK);
  20363. }
  20364. static int
  20365. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  20366. size_t insize)
  20367. {
  20368. SHA512_Update(ctx, indata, insize);
  20369. return (ARCHIVE_OK);
  20370. }
  20371. static int
  20372. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  20373. {
  20374. SHA512_Final(md, ctx);
  20375. return (ARCHIVE_OK);
  20376. }
  20377. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  20378. static int
  20379. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  20380. {
  20381. CC_SHA512_Init(ctx);
  20382. return (ARCHIVE_OK);
  20383. }
  20384. static int
  20385. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  20386. size_t insize)
  20387. {
  20388. CC_SHA512_Update(ctx, indata, insize);
  20389. return (ARCHIVE_OK);
  20390. }
  20391. static int
  20392. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  20393. {
  20394. CC_SHA512_Final(md, ctx);
  20395. return (ARCHIVE_OK);
  20396. }
  20397. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  20398. static int
  20399. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  20400. {
  20401. sha512_init(ctx);
  20402. return (ARCHIVE_OK);
  20403. }
  20404. static int
  20405. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  20406. size_t insize)
  20407. {
  20408. sha512_update(ctx, insize, indata);
  20409. return (ARCHIVE_OK);
  20410. }
  20411. static int
  20412. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  20413. {
  20414. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  20415. return (ARCHIVE_OK);
  20416. }
  20417. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  20418. static int
  20419. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  20420. {
  20421. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  20422. return (ARCHIVE_FAILED);
  20423. EVP_DigestInit(*ctx, EVP_sha512());
  20424. return (ARCHIVE_OK);
  20425. }
  20426. static int
  20427. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  20428. size_t insize)
  20429. {
  20430. EVP_DigestUpdate(*ctx, indata, insize);
  20431. return (ARCHIVE_OK);
  20432. }
  20433. static int
  20434. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  20435. {
  20436. if (*ctx) {
  20437. EVP_DigestFinal(*ctx, md, NULL);
  20438. EVP_MD_CTX_free(*ctx);
  20439. *ctx = NULL;
  20440. }
  20441. return (ARCHIVE_OK);
  20442. }
  20443. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  20444. static int
  20445. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  20446. {
  20447. return (win_crypto_init(ctx, CALG_SHA_512));
  20448. }
  20449. static int
  20450. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  20451. size_t insize)
  20452. {
  20453. return (win_crypto_Update(ctx, indata, insize));
  20454. }
  20455. static int
  20456. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  20457. {
  20458. return (win_crypto_Final(md, 64, ctx));
  20459. }
  20460. #else
  20461. static int
  20462. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  20463. {
  20464. (void)ctx; /* UNUSED */
  20465. return (ARCHIVE_FAILED);
  20466. }
  20467. static int
  20468. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  20469. size_t insize)
  20470. {
  20471. (void)ctx; /* UNUSED */
  20472. (void)indata; /* UNUSED */
  20473. (void)insize; /* UNUSED */
  20474. return (ARCHIVE_FAILED);
  20475. }
  20476. static int
  20477. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  20478. {
  20479. (void)ctx; /* UNUSED */
  20480. (void)md; /* UNUSED */
  20481. return (ARCHIVE_FAILED);
  20482. }
  20483. #endif
  20484. /* NOTE: Message Digest functions are set based on availability and by the
  20485. * following order of preference.
  20486. * 1. libc
  20487. * 2. libc2
  20488. * 3. libc3
  20489. * 4. libSystem
  20490. * 5. Nettle
  20491. * 6. OpenSSL
  20492. * 7. libmd
  20493. * 8. Windows API
  20494. */
  20495. const struct archive_digest __archive_digest =
  20496. {
  20497. /* MD5 */
  20498. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  20499. &__archive_libc_md5init,
  20500. &__archive_libc_md5update,
  20501. &__archive_libc_md5final,
  20502. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  20503. &__archive_libmd_md5init,
  20504. &__archive_libmd_md5update,
  20505. &__archive_libmd_md5final,
  20506. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  20507. &__archive_libsystem_md5init,
  20508. &__archive_libsystem_md5update,
  20509. &__archive_libsystem_md5final,
  20510. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  20511. &__archive_nettle_md5init,
  20512. &__archive_nettle_md5update,
  20513. &__archive_nettle_md5final,
  20514. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  20515. &__archive_openssl_md5init,
  20516. &__archive_openssl_md5update,
  20517. &__archive_openssl_md5final,
  20518. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  20519. &__archive_windowsapi_md5init,
  20520. &__archive_windowsapi_md5update,
  20521. &__archive_windowsapi_md5final,
  20522. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  20523. &__archive_stub_md5init,
  20524. &__archive_stub_md5update,
  20525. &__archive_stub_md5final,
  20526. #endif
  20527. /* RIPEMD160 */
  20528. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  20529. &__archive_libc_ripemd160init,
  20530. &__archive_libc_ripemd160update,
  20531. &__archive_libc_ripemd160final,
  20532. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  20533. &__archive_libmd_ripemd160init,
  20534. &__archive_libmd_ripemd160update,
  20535. &__archive_libmd_ripemd160final,
  20536. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  20537. &__archive_nettle_ripemd160init,
  20538. &__archive_nettle_ripemd160update,
  20539. &__archive_nettle_ripemd160final,
  20540. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  20541. &__archive_openssl_ripemd160init,
  20542. &__archive_openssl_ripemd160update,
  20543. &__archive_openssl_ripemd160final,
  20544. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  20545. &__archive_stub_ripemd160init,
  20546. &__archive_stub_ripemd160update,
  20547. &__archive_stub_ripemd160final,
  20548. #endif
  20549. /* SHA1 */
  20550. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  20551. &__archive_libc_sha1init,
  20552. &__archive_libc_sha1update,
  20553. &__archive_libc_sha1final,
  20554. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  20555. &__archive_libmd_sha1init,
  20556. &__archive_libmd_sha1update,
  20557. &__archive_libmd_sha1final,
  20558. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  20559. &__archive_libsystem_sha1init,
  20560. &__archive_libsystem_sha1update,
  20561. &__archive_libsystem_sha1final,
  20562. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  20563. &__archive_nettle_sha1init,
  20564. &__archive_nettle_sha1update,
  20565. &__archive_nettle_sha1final,
  20566. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  20567. &__archive_openssl_sha1init,
  20568. &__archive_openssl_sha1update,
  20569. &__archive_openssl_sha1final,
  20570. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  20571. &__archive_windowsapi_sha1init,
  20572. &__archive_windowsapi_sha1update,
  20573. &__archive_windowsapi_sha1final,
  20574. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  20575. &__archive_stub_sha1init,
  20576. &__archive_stub_sha1update,
  20577. &__archive_stub_sha1final,
  20578. #endif
  20579. /* SHA256 */
  20580. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  20581. &__archive_libc_sha256init,
  20582. &__archive_libc_sha256update,
  20583. &__archive_libc_sha256final,
  20584. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  20585. &__archive_libc2_sha256init,
  20586. &__archive_libc2_sha256update,
  20587. &__archive_libc2_sha256final,
  20588. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  20589. &__archive_libc3_sha256init,
  20590. &__archive_libc3_sha256update,
  20591. &__archive_libc3_sha256final,
  20592. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  20593. &__archive_libmd_sha256init,
  20594. &__archive_libmd_sha256update,
  20595. &__archive_libmd_sha256final,
  20596. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  20597. &__archive_libsystem_sha256init,
  20598. &__archive_libsystem_sha256update,
  20599. &__archive_libsystem_sha256final,
  20600. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  20601. &__archive_nettle_sha256init,
  20602. &__archive_nettle_sha256update,
  20603. &__archive_nettle_sha256final,
  20604. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  20605. &__archive_openssl_sha256init,
  20606. &__archive_openssl_sha256update,
  20607. &__archive_openssl_sha256final,
  20608. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  20609. &__archive_windowsapi_sha256init,
  20610. &__archive_windowsapi_sha256update,
  20611. &__archive_windowsapi_sha256final,
  20612. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  20613. &__archive_stub_sha256init,
  20614. &__archive_stub_sha256update,
  20615. &__archive_stub_sha256final,
  20616. #endif
  20617. /* SHA384 */
  20618. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  20619. &__archive_libc_sha384init,
  20620. &__archive_libc_sha384update,
  20621. &__archive_libc_sha384final,
  20622. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  20623. &__archive_libc2_sha384init,
  20624. &__archive_libc2_sha384update,
  20625. &__archive_libc2_sha384final,
  20626. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  20627. &__archive_libc3_sha384init,
  20628. &__archive_libc3_sha384update,
  20629. &__archive_libc3_sha384final,
  20630. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  20631. &__archive_libsystem_sha384init,
  20632. &__archive_libsystem_sha384update,
  20633. &__archive_libsystem_sha384final,
  20634. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  20635. &__archive_nettle_sha384init,
  20636. &__archive_nettle_sha384update,
  20637. &__archive_nettle_sha384final,
  20638. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  20639. &__archive_openssl_sha384init,
  20640. &__archive_openssl_sha384update,
  20641. &__archive_openssl_sha384final,
  20642. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  20643. &__archive_windowsapi_sha384init,
  20644. &__archive_windowsapi_sha384update,
  20645. &__archive_windowsapi_sha384final,
  20646. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  20647. &__archive_stub_sha384init,
  20648. &__archive_stub_sha384update,
  20649. &__archive_stub_sha384final,
  20650. #endif
  20651. /* SHA512 */
  20652. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  20653. &__archive_libc_sha512init,
  20654. &__archive_libc_sha512update,
  20655. &__archive_libc_sha512final
  20656. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  20657. &__archive_libc2_sha512init,
  20658. &__archive_libc2_sha512update,
  20659. &__archive_libc2_sha512final
  20660. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  20661. &__archive_libc3_sha512init,
  20662. &__archive_libc3_sha512update,
  20663. &__archive_libc3_sha512final
  20664. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  20665. &__archive_libmd_sha512init,
  20666. &__archive_libmd_sha512update,
  20667. &__archive_libmd_sha512final
  20668. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  20669. &__archive_libsystem_sha512init,
  20670. &__archive_libsystem_sha512update,
  20671. &__archive_libsystem_sha512final
  20672. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  20673. &__archive_nettle_sha512init,
  20674. &__archive_nettle_sha512update,
  20675. &__archive_nettle_sha512final
  20676. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  20677. &__archive_openssl_sha512init,
  20678. &__archive_openssl_sha512update,
  20679. &__archive_openssl_sha512final
  20680. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  20681. &__archive_windowsapi_sha512init,
  20682. &__archive_windowsapi_sha512update,
  20683. &__archive_windowsapi_sha512final
  20684. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  20685. &__archive_stub_sha512init,
  20686. &__archive_stub_sha512update,
  20687. &__archive_stub_sha512final
  20688. #endif
  20689. };
  20690. int
  20691. main(int argc, char **argv)
  20692. {
  20693. archive_sha512_ctx ctx;
  20694. archive_sha512_init(&ctx);
  20695. archive_sha512_update(&ctx, *argv, argc);
  20696. archive_sha512_final(&ctx, NULL);
  20697. return 0;
  20698. }
  20699. Checking support for ARCHIVE_CRYPTO_SHA256_LIBC2 failed with the following output:
  20700. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  20701. Run Build Command:"/usr/bin/make" "cmTC_0c6c0/fast"
  20702. make -f CMakeFiles/cmTC_0c6c0.dir/build.make CMakeFiles/cmTC_0c6c0.dir/build
  20703. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  20704. Building C object CMakeFiles/cmTC_0c6c0.dir/check_crypto_md.c.o
  20705. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_0c6c0.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  20706. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  20707. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory
  20708. compilation terminated.
  20709. CMakeFiles/cmTC_0c6c0.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_0c6c0.dir/check_crypto_md.c.o' failed
  20710. make[1]: *** [CMakeFiles/cmTC_0c6c0.dir/check_crypto_md.c.o] Error 1
  20711. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  20712. Makefile:126: recipe for target 'cmTC_0c6c0/fast' failed
  20713. make: *** [cmTC_0c6c0/fast] Error 2
  20714. Source file was:
  20715. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  20716. #if defined(__osf__)
  20717. # define _OSF_SOURCE
  20718. #endif
  20719. /*
  20720. * Ensure we have C99-style int64_t, etc, all defined.
  20721. */
  20722. /* First, we need to know if the system has already defined them. */
  20723. #define HAVE_INT16_T
  20724. #define HAVE_INT32_T
  20725. #define HAVE_INT64_T
  20726. #define HAVE_INTMAX_T
  20727. #define HAVE_UINT8_T
  20728. #define HAVE_UINT16_T
  20729. #define HAVE_UINT32_T
  20730. #define HAVE_UINT64_T
  20731. #define HAVE_UINTMAX_T
  20732. /* We might have the types we want under other spellings. */
  20733. /* #undef HAVE___INT64 */
  20734. /* #undef HAVE_U_INT64_T */
  20735. /* #undef HAVE_UNSIGNED___INT64 */
  20736. /* The sizes of various standard integer types. */
  20737. #define SIZE_OF_SHORT 2
  20738. #define SIZE_OF_INT 4
  20739. #define SIZE_OF_LONG 8
  20740. #define SIZE_OF_LONG_LONG 8
  20741. #define SIZE_OF_UNSIGNED_SHORT 2
  20742. #define SIZE_OF_UNSIGNED 4
  20743. #define SIZE_OF_UNSIGNED_LONG 8
  20744. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  20745. /*
  20746. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  20747. * that exists and is the right size.
  20748. */
  20749. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  20750. typedef __int64 int64_t;
  20751. #define HAVE_INT64_T
  20752. #endif
  20753. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  20754. typedef int int64_t;
  20755. #define HAVE_INT64_T
  20756. #endif
  20757. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  20758. typedef long int64_t;
  20759. #define HAVE_INT64_T
  20760. #endif
  20761. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  20762. typedef long long int64_t;
  20763. #define HAVE_INT64_T
  20764. #endif
  20765. #if !defined(HAVE_INT64_T)
  20766. #error No 64-bit integer type was found.
  20767. #endif
  20768. /*
  20769. * Similarly for int32_t
  20770. */
  20771. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  20772. typedef int int32_t;
  20773. #define HAVE_INT32_T
  20774. #endif
  20775. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  20776. typedef long int32_t;
  20777. #define HAVE_INT32_T
  20778. #endif
  20779. #if !defined(HAVE_INT32_T)
  20780. #error No 32-bit integer type was found.
  20781. #endif
  20782. /*
  20783. * Similarly for int16_t
  20784. */
  20785. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  20786. typedef int int16_t;
  20787. #define HAVE_INT16_T
  20788. #endif
  20789. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  20790. typedef short int16_t;
  20791. #define HAVE_INT16_T
  20792. #endif
  20793. #if !defined(HAVE_INT16_T)
  20794. #error No 16-bit integer type was found.
  20795. #endif
  20796. /*
  20797. * Similarly for uint64_t
  20798. */
  20799. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  20800. typedef unsigned __int64 uint64_t;
  20801. #define HAVE_UINT64_T
  20802. #endif
  20803. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  20804. typedef unsigned uint64_t;
  20805. #define HAVE_UINT64_T
  20806. #endif
  20807. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  20808. typedef unsigned long uint64_t;
  20809. #define HAVE_UINT64_T
  20810. #endif
  20811. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  20812. typedef unsigned long long uint64_t;
  20813. #define HAVE_UINT64_T
  20814. #endif
  20815. #if !defined(HAVE_UINT64_T)
  20816. #error No 64-bit unsigned integer type was found.
  20817. #endif
  20818. /*
  20819. * Similarly for uint32_t
  20820. */
  20821. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  20822. typedef unsigned uint32_t;
  20823. #define HAVE_UINT32_T
  20824. #endif
  20825. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  20826. typedef unsigned long uint32_t;
  20827. #define HAVE_UINT32_T
  20828. #endif
  20829. #if !defined(HAVE_UINT32_T)
  20830. #error No 32-bit unsigned integer type was found.
  20831. #endif
  20832. /*
  20833. * Similarly for uint16_t
  20834. */
  20835. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  20836. typedef unsigned uint16_t;
  20837. #define HAVE_UINT16_T
  20838. #endif
  20839. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  20840. typedef unsigned short uint16_t;
  20841. #define HAVE_UINT16_T
  20842. #endif
  20843. #if !defined(HAVE_UINT16_T)
  20844. #error No 16-bit unsigned integer type was found.
  20845. #endif
  20846. /*
  20847. * Similarly for uint8_t
  20848. */
  20849. #if !defined(HAVE_UINT8_T)
  20850. typedef unsigned char uint8_t;
  20851. #define HAVE_UINT8_T
  20852. #endif
  20853. #if !defined(HAVE_UINT16_T)
  20854. #error No 8-bit unsigned integer type was found.
  20855. #endif
  20856. /* Define intmax_t and uintmax_t if they are not already defined. */
  20857. #if !defined(HAVE_INTMAX_T)
  20858. typedef int64_t intmax_t;
  20859. #endif
  20860. #if !defined(HAVE_UINTMAX_T)
  20861. typedef uint64_t uintmax_t;
  20862. #endif
  20863. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  20864. /* #undef ZLIB_WINAPI */
  20865. /* Darwin ACL support */
  20866. /* #undef ARCHIVE_ACL_DARWIN */
  20867. /* FreeBSD ACL support */
  20868. /* #undef ARCHIVE_ACL_FREEBSD */
  20869. /* FreeBSD NFSv4 ACL support */
  20870. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  20871. /* Linux POSIX.1e ACL support via libacl */
  20872. /* #undef ARCHIVE_ACL_LIBACL */
  20873. /* Linux NFSv4 ACL support via librichacl */
  20874. /* #undef ARCHIVE_ACL_LIBRICHACL */
  20875. /* Solaris ACL support */
  20876. /* #undef ARCHIVE_ACL_SUNOS */
  20877. /* Solaris NFSv4 ACL support */
  20878. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  20879. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  20880. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  20881. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  20882. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  20883. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  20884. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  20885. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  20886. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  20887. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  20888. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  20889. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  20890. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  20891. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  20892. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  20893. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  20894. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  20895. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  20896. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  20897. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  20898. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  20899. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  20900. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  20901. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  20902. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  20903. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  20904. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  20905. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  20906. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  20907. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  20908. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  20909. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  20910. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  20911. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  20912. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  20913. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  20914. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  20915. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  20916. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  20917. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  20918. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  20919. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  20920. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  20921. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  20922. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  20923. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  20924. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  20925. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  20926. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  20927. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  20928. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  20929. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  20930. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  20931. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  20932. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  20933. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  20934. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  20935. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  20936. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  20937. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  20938. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  20939. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  20940. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  20941. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  20942. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  20943. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  20944. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  20945. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  20946. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  20947. /* AIX xattr support */
  20948. /* #undef ARCHIVE_XATTR_AIX */
  20949. /* Darwin xattr support */
  20950. /* #undef ARCHIVE_XATTR_DARWIN */
  20951. /* FreeBSD xattr support */
  20952. /* #undef ARCHIVE_XATTR_FREEBSD */
  20953. /* Linux xattr support */
  20954. /* #undef ARCHIVE_XATTR_LINUX */
  20955. /* Version number of bsdcpio */
  20956. #define BSDCPIO_VERSION_STRING "3.3.2"
  20957. /* Version number of bsdtar */
  20958. #define BSDTAR_VERSION_STRING "3.3.2"
  20959. /* Version number of bsdcat */
  20960. #define BSDCAT_VERSION_STRING "3.3.2"
  20961. /* Define to 1 if you have the `acl_create_entry' function. */
  20962. /* #undef HAVE_ACL_CREATE_ENTRY */
  20963. /* Define to 1 if you have the `acl_get_fd_np' function. */
  20964. /* #undef HAVE_ACL_GET_FD_NP */
  20965. /* Define to 1 if you have the `acl_get_link' function. */
  20966. /* #undef HAVE_ACL_GET_LINK */
  20967. /* Define to 1 if you have the `acl_get_link_np' function. */
  20968. /* #undef HAVE_ACL_GET_LINK_NP */
  20969. /* Define to 1 if you have the `acl_get_perm' function. */
  20970. /* #undef HAVE_ACL_GET_PERM */
  20971. /* Define to 1 if you have the `acl_get_perm_np' function. */
  20972. /* #undef HAVE_ACL_GET_PERM_NP */
  20973. /* Define to 1 if you have the `acl_init' function. */
  20974. /* #undef HAVE_ACL_INIT */
  20975. /* Define to 1 if you have the <acl/libacl.h> header file. */
  20976. /* #undef HAVE_ACL_LIBACL_H */
  20977. /* Define to 1 if the system has the type `acl_permset_t'. */
  20978. /* #undef HAVE_ACL_PERMSET_T */
  20979. /* Define to 1 if you have the `acl_set_fd' function. */
  20980. /* #undef HAVE_ACL_SET_FD */
  20981. /* Define to 1 if you have the `acl_set_fd_np' function. */
  20982. /* #undef HAVE_ACL_SET_FD_NP */
  20983. /* Define to 1 if you have the `acl_set_file' function. */
  20984. /* #undef HAVE_ACL_SET_FILE */
  20985. /* Define to 1 if you have the `arc4random_buf' function. */
  20986. /* #undef HAVE_ARC4RANDOM_BUF */
  20987. /* Define to 1 if you have the <attr/xattr.h> header file. */
  20988. /* #undef HAVE_ATTR_XATTR_H */
  20989. /* Define to 1 if you have the <Bcrypt.h> header file. */
  20990. /* #undef HAVE_BCRYPT_H */
  20991. /* Define to 1 if you have the <bsdxml.h> header file. */
  20992. /* #undef HAVE_BSDXML_H */
  20993. /* Define to 1 if you have the <bzlib.h> header file. */
  20994. #define HAVE_BZLIB_H 1
  20995. /* Define to 1 if you have the `chflags' function. */
  20996. /* #undef HAVE_CHFLAGS */
  20997. /* Define to 1 if you have the `chown' function. */
  20998. #define HAVE_CHOWN 1
  20999. /* Define to 1 if you have the `chroot' function. */
  21000. #define HAVE_CHROOT 1
  21001. /* Define to 1 if you have the <copyfile.h> header file. */
  21002. /* #undef HAVE_COPYFILE_H */
  21003. /* Define to 1 if you have the `ctime_r' function. */
  21004. #define HAVE_CTIME_R 1
  21005. /* Define to 1 if you have the <ctype.h> header file. */
  21006. #define HAVE_CTYPE_H 1
  21007. /* Define to 1 if you have the `cygwin_conv_path' function. */
  21008. /* #undef HAVE_CYGWIN_CONV_PATH */
  21009. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  21010. don't. */
  21011. /* #undef HAVE_DECL_ACE_GETACL */
  21012. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  21013. don't. */
  21014. /* #undef HAVE_DECL_ACE_GETACLCNT */
  21015. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  21016. don't. */
  21017. /* #undef HAVE_DECL_ACE_SETACL */
  21018. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  21019. you don't. */
  21020. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  21021. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  21022. you don't. */
  21023. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  21024. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  21025. don't. */
  21026. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  21027. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  21028. don't. */
  21029. /* #undef HAVE_DECL_ACL_USER */
  21030. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  21031. don't. */
  21032. #define HAVE_DECL_INT32_MAX 1
  21033. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  21034. don't. */
  21035. #define HAVE_DECL_INT32_MIN 1
  21036. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  21037. don't. */
  21038. #define HAVE_DECL_INT64_MAX 1
  21039. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  21040. don't. */
  21041. #define HAVE_DECL_INT64_MIN 1
  21042. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  21043. don't. */
  21044. #define HAVE_DECL_INTMAX_MAX 1
  21045. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  21046. don't. */
  21047. #define HAVE_DECL_INTMAX_MIN 1
  21048. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  21049. */
  21050. /* #undef HAVE_DECL_SETACL */
  21051. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  21052. don't. */
  21053. #define HAVE_DECL_SIZE_MAX 1
  21054. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  21055. don't. */
  21056. #define HAVE_DECL_SSIZE_MAX 1
  21057. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  21058. don't. */
  21059. #define HAVE_DECL_STRERROR_R 1
  21060. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  21061. don't. */
  21062. #define HAVE_DECL_UINT32_MAX 1
  21063. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  21064. don't. */
  21065. #define HAVE_DECL_UINT64_MAX 1
  21066. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  21067. don't. */
  21068. #define HAVE_DECL_UINTMAX_MAX 1
  21069. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  21070. you don't. */
  21071. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  21072. /* Define to 1 if you have the <direct.h> header file. */
  21073. /* #undef HAVE_DIRECT_H */
  21074. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  21075. */
  21076. #define HAVE_DIRENT_H 1
  21077. /* Define to 1 if you have the `dirfd' function. */
  21078. #define HAVE_DIRFD 1
  21079. /* Define to 1 if you have the <dlfcn.h> header file. */
  21080. #define HAVE_DLFCN_H 1
  21081. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  21082. /* #undef HAVE_DOPRNT */
  21083. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  21084. /* #undef HAVE_D_MD_ORDER */
  21085. /* A possible errno value for invalid file format errors */
  21086. /* #undef HAVE_EFTYPE */
  21087. /* A possible errno value for invalid file format errors */
  21088. #define HAVE_EILSEQ 1
  21089. /* Define to 1 if you have the <errno.h> header file. */
  21090. #define HAVE_ERRNO_H 1
  21091. /* Define to 1 if you have the <expat.h> header file. */
  21092. /* #undef HAVE_EXPAT_H */
  21093. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  21094. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  21095. /* Define to 1 if you have the `extattr_get_file' function. */
  21096. /* #undef HAVE_EXTATTR_GET_FILE */
  21097. /* Define to 1 if you have the `extattr_list_file' function. */
  21098. /* #undef HAVE_EXTATTR_LIST_FILE */
  21099. /* Define to 1 if you have the `extattr_set_fd' function. */
  21100. /* #undef HAVE_EXTATTR_SET_FD */
  21101. /* Define to 1 if you have the `extattr_set_file' function. */
  21102. /* #undef HAVE_EXTATTR_SET_FILE */
  21103. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  21104. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  21105. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  21106. */
  21107. /* #undef HAVE_DECL_GETACL */
  21108. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  21109. don't. */
  21110. /* #undef HAVE_DECL_GETACLCNT */
  21111. /* Define to 1 if you have the `fchdir' function. */
  21112. #define HAVE_FCHDIR 1
  21113. /* Define to 1 if you have the `fchflags' function. */
  21114. /* #undef HAVE_FCHFLAGS */
  21115. /* Define to 1 if you have the `fchmod' function. */
  21116. #define HAVE_FCHMOD 1
  21117. /* Define to 1 if you have the `fchown' function. */
  21118. #define HAVE_FCHOWN 1
  21119. /* Define to 1 if you have the `fcntl' function. */
  21120. #define HAVE_FCNTL 1
  21121. /* Define to 1 if you have the <fcntl.h> header file. */
  21122. #define HAVE_FCNTL_H 1
  21123. /* Define to 1 if you have the `fdopendir' function. */
  21124. #define HAVE_FDOPENDIR 1
  21125. /* Define to 1 if you have the `fgetea' function. */
  21126. /* #undef HAVE_FGETEA */
  21127. /* Define to 1 if you have the `fgetxattr' function. */
  21128. /* #undef HAVE_FGETXATTR */
  21129. /* Define to 1 if you have the `flistea' function. */
  21130. /* #undef HAVE_FLISTEA */
  21131. /* Define to 1 if you have the `flistxattr' function. */
  21132. /* #undef HAVE_FLISTXATTR */
  21133. /* Define to 1 if you have the `fork' function. */
  21134. #define HAVE_FORK 1
  21135. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  21136. #define HAVE_FSEEKO 1
  21137. /* Define to 1 if you have the `fsetea' function. */
  21138. /* #undef HAVE_FSETEA */
  21139. /* Define to 1 if you have the `fsetxattr' function. */
  21140. #define HAVE_FSETXATTR 1
  21141. /* Define to 1 if you have the `fstat' function. */
  21142. #define HAVE_FSTAT 1
  21143. /* Define to 1 if you have the `fstatat' function. */
  21144. #define HAVE_FSTATAT 1
  21145. /* Define to 1 if you have the `fstatfs' function. */
  21146. #define HAVE_FSTATFS 1
  21147. /* Define to 1 if you have the `fstatvfs' function. */
  21148. #define HAVE_FSTATVFS 1
  21149. /* Define to 1 if you have the `ftruncate' function. */
  21150. #define HAVE_FTRUNCATE 1
  21151. /* Define to 1 if you have the `futimens' function. */
  21152. #define HAVE_FUTIMENS 1
  21153. /* Define to 1 if you have the `futimes' function. */
  21154. #define HAVE_FUTIMES 1
  21155. /* Define to 1 if you have the `futimesat' function. */
  21156. #define HAVE_FUTIMESAT 1
  21157. /* Define to 1 if you have the `getea' function. */
  21158. /* #undef HAVE_GETEA */
  21159. /* Define to 1 if you have the `geteuid' function. */
  21160. #define HAVE_GETEUID 1
  21161. /* Define to 1 if you have the `getgrgid_r' function. */
  21162. #define HAVE_GETGRGID_R 1
  21163. /* Define to 1 if you have the `getgrnam_r' function. */
  21164. #define HAVE_GETGRNAM_R 1
  21165. /* Define to 1 if you have the `getpid' function. */
  21166. #define HAVE_GETPID 1
  21167. /* Define to 1 if you have the `getpwnam_r' function. */
  21168. #define HAVE_GETPWNAM_R 1
  21169. /* Define to 1 if you have the `getpwuid_r' function. */
  21170. #define HAVE_GETPWUID_R 1
  21171. /* Define to 1 if you have the `getvfsbyname' function. */
  21172. /* #undef HAVE_GETVFSBYNAME */
  21173. /* Define to 1 if you have the `getxattr' function. */
  21174. /* #undef HAVE_GETXATTR */
  21175. /* Define to 1 if you have the `gmtime_r' function. */
  21176. #define HAVE_GMTIME_R 1
  21177. /* Define to 1 if you have the <grp.h> header file. */
  21178. #define HAVE_GRP_H 1
  21179. /* Define to 1 if you have the `iconv' function. */
  21180. /* #undef HAVE_ICONV */
  21181. /* Define to 1 if you have the <iconv.h> header file. */
  21182. /* #undef HAVE_ICONV_H */
  21183. /* Define to 1 if you have the <inttypes.h> header file. */
  21184. #define HAVE_INTTYPES_H 1
  21185. /* Define to 1 if you have the <io.h> header file. */
  21186. /* #undef HAVE_IO_H */
  21187. /* Define to 1 if you have the <langinfo.h> header file. */
  21188. #define HAVE_LANGINFO_H 1
  21189. /* Define to 1 if you have the `lchflags' function. */
  21190. /* #undef HAVE_LCHFLAGS */
  21191. /* Define to 1 if you have the `lchmod' function. */
  21192. /* #undef HAVE_LCHMOD */
  21193. /* Define to 1 if you have the `lchown' function. */
  21194. #define HAVE_LCHOWN 1
  21195. /* Define to 1 if you have the `lgetea' function. */
  21196. /* #undef HAVE_LGETEA */
  21197. /* Define to 1 if you have the `lgetxattr' function. */
  21198. /* #undef HAVE_LGETXATTR */
  21199. /* Define to 1 if you have the `acl' library (-lacl). */
  21200. /* #undef HAVE_LIBACL */
  21201. /* Define to 1 if you have the `attr' library (-lattr). */
  21202. /* #undef HAVE_LIBATTR */
  21203. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  21204. /* #undef HAVE_LIBBSDXML */
  21205. /* Define to 1 if you have the `bz2' library (-lbz2). */
  21206. #define HAVE_LIBBZ2 1
  21207. /* Define to 1 if you have the `charset' library (-lcharset). */
  21208. /* #undef HAVE_LIBCHARSET */
  21209. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  21210. #define HAVE_LIBCRYPTO 1
  21211. /* Define to 1 if you have the `expat' library (-lexpat). */
  21212. /* #undef HAVE_LIBEXPAT */
  21213. /* Define to 1 if you have the `gcc' library (-lgcc). */
  21214. /* #undef HAVE_LIBGCC */
  21215. /* Define to 1 if you have the `lz4' library (-llz4). */
  21216. /* #undef HAVE_LIBLZ4 */
  21217. /* Define to 1 if you have the `lzma' library (-llzma). */
  21218. #define HAVE_LIBLZMA 1
  21219. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  21220. /* #undef HAVE_LIBLZMADEC */
  21221. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  21222. /* #undef HAVE_LIBLZO2 */
  21223. /* Define to 1 if you have the `nettle' library (-lnettle). */
  21224. /* #undef HAVE_LIBNETTLE */
  21225. /* Define to 1 if you have the `pcre' library (-lpcre). */
  21226. /* #undef HAVE_LIBPCRE */
  21227. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  21228. /* #undef HAVE_LIBPCREPOSIX */
  21229. /* Define to 1 if you have the `xml2' library (-lxml2). */
  21230. /* #undef HAVE_LIBXML2 */
  21231. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  21232. /* #undef HAVE_LIBXML_XMLREADER_H */
  21233. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  21234. /* #undef HAVE_LIBXML_XMLWRITER_H */
  21235. /* Define to 1 if you have the `z' library (-lz). */
  21236. #define HAVE_LIBZ 1
  21237. /* Define to 1 if you have the <limits.h> header file. */
  21238. #define HAVE_LIMITS_H 1
  21239. /* Define to 1 if you have the `link' function. */
  21240. #define HAVE_LINK 1
  21241. /* Define to 1 if you have the <linux/types.h> header file. */
  21242. #define HAVE_LINUX_TYPES_H 1
  21243. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  21244. #define HAVE_LINUX_FIEMAP_H 1
  21245. /* Define to 1 if you have the <linux/fs.h> header file. */
  21246. #define HAVE_LINUX_FS_H 1
  21247. /* Define to 1 if you have the <linux/magic.h> header file. */
  21248. #define HAVE_LINUX_MAGIC_H 1
  21249. /* Define to 1 if you have the <linux/types.h> header file. */
  21250. #define HAVE_LINUX_TYPES_H 1
  21251. /* Define to 1 if you have the `listea' function. */
  21252. /* #undef HAVE_LISTEA */
  21253. /* Define to 1 if you have the `listxattr' function. */
  21254. /* #undef HAVE_LISTXATTR */
  21255. /* Define to 1 if you have the `llistea' function. */
  21256. /* #undef HAVE_LLISTEA */
  21257. /* Define to 1 if you have the `llistxattr' function. */
  21258. /* #undef HAVE_LLISTXATTR */
  21259. /* Define to 1 if you have the <localcharset.h> header file. */
  21260. /* #undef HAVE_LOCALCHARSET_H */
  21261. /* Define to 1 if you have the `locale_charset' function. */
  21262. /* #undef HAVE_LOCALE_CHARSET */
  21263. /* Define to 1 if you have the <locale.h> header file. */
  21264. #define HAVE_LOCALE_H 1
  21265. /* Define to 1 if you have the `localtime_r' function. */
  21266. #define HAVE_LOCALTIME_R 1
  21267. /* Define to 1 if the system has the type `long long int'. */
  21268. /* #undef HAVE_LONG_LONG_INT */
  21269. /* Define to 1 if you have the `lsetea' function. */
  21270. /* #undef HAVE_LSETEA */
  21271. /* Define to 1 if you have the `lsetxattr' function. */
  21272. /* #undef HAVE_LSETXATTR */
  21273. /* Define to 1 if you have the `lstat' function. */
  21274. #define HAVE_LSTAT 1
  21275. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  21276. zero-length file name argument. */
  21277. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  21278. /* Define to 1 if you have the `lutimes' function. */
  21279. #define HAVE_LUTIMES 1
  21280. /* Define to 1 if you have the <lz4hc.h> header file. */
  21281. /* #undef HAVE_LZ4HC_H */
  21282. /* Define to 1 if you have the <lz4.h> header file. */
  21283. /* #undef HAVE_LZ4_H */
  21284. /* Define to 1 if you have the <lzmadec.h> header file. */
  21285. /* #undef HAVE_LZMADEC_H */
  21286. /* Define to 1 if you have the <lzma.h> header file. */
  21287. #define HAVE_LZMA_H 1
  21288. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  21289. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  21290. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  21291. /* #undef HAVE_LZO_LZO1X_H */
  21292. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  21293. /* #undef HAVE_LZO_LZOCONF_H */
  21294. /* Define to 1 if you have the `mbrtowc' function. */
  21295. #define HAVE_MBRTOWC 1
  21296. /* Define to 1 if you have the <membership.h> header file. */
  21297. /* #undef HAVE_MEMBERSHIP_H */
  21298. /* Define to 1 if you have the `memmove' function. */
  21299. #define HAVE_MEMMOVE 1
  21300. /* Define to 1 if you have the <memory.h> header file. */
  21301. #define HAVE_MEMORY_H 1
  21302. /* Define to 1 if you have the `mkdir' function. */
  21303. #define HAVE_MKDIR 1
  21304. /* Define to 1 if you have the `mkfifo' function. */
  21305. #define HAVE_MKFIFO 1
  21306. /* Define to 1 if you have the `mknod' function. */
  21307. #define HAVE_MKNOD 1
  21308. /* Define to 1 if you have the `mkstemp' function. */
  21309. #define HAVE_MKSTEMP 1
  21310. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  21311. /* #undef HAVE_NDIR_H */
  21312. /* Define to 1 if you have the <nettle/aes.h> header file. */
  21313. /* #undef HAVE_NETTLE_AES_H */
  21314. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  21315. /* #undef HAVE_NETTLE_HMAC_H */
  21316. /* Define to 1 if you have the <nettle/md5.h> header file. */
  21317. /* #undef HAVE_NETTLE_MD5_H */
  21318. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  21319. /* #undef HAVE_NETTLE_PBKDF2_H */
  21320. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  21321. /* #undef HAVE_NETTLE_RIPEMD160_H */
  21322. /* Define to 1 if you have the <nettle/sha.h> header file. */
  21323. /* #undef HAVE_NETTLE_SHA_H */
  21324. /* Define to 1 if you have the `nl_langinfo' function. */
  21325. #define HAVE_NL_LANGINFO 1
  21326. /* Define to 1 if you have the `openat' function. */
  21327. #define HAVE_OPENAT 1
  21328. /* Define to 1 if you have the <paths.h> header file. */
  21329. #define HAVE_PATHS_H 1
  21330. /* Define to 1 if you have the <pcreposix.h> header file. */
  21331. /* #undef HAVE_PCREPOSIX_H */
  21332. /* Define to 1 if you have the `pipe' function. */
  21333. #define HAVE_PIPE 1
  21334. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  21335. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  21336. /* Define to 1 if you have the `poll' function. */
  21337. #define HAVE_POLL 1
  21338. /* Define to 1 if you have the <poll.h> header file. */
  21339. #define HAVE_POLL_H 1
  21340. /* Define to 1 if you have the `posix_spawnp' function. */
  21341. #define HAVE_POSIX_SPAWNP 1
  21342. /* Define to 1 if you have the <process.h> header file. */
  21343. /* #undef HAVE_PROCESS_H */
  21344. /* Define to 1 if you have the <pthread.h> header file. */
  21345. /* #undef HAVE_PTHREAD_H */
  21346. /* Define to 1 if you have the <pwd.h> header file. */
  21347. #define HAVE_PWD_H 1
  21348. /* Define to 1 if you have the `readdir_r' function. */
  21349. #define HAVE_READDIR_R 1
  21350. /* Define to 1 if you have the `readlink' function. */
  21351. #define HAVE_READLINK 1
  21352. /* Define to 1 if you have the `readlinkat' function. */
  21353. #define HAVE_READLINKAT 1
  21354. /* Define to 1 if you have the `readpassphrase' function. */
  21355. /* #undef HAVE_READPASSPHRASE */
  21356. /* Define to 1 if you have the <readpassphrase.h> header file. */
  21357. /* #undef HAVE_READPASSPHRASE_H */
  21358. /* Define to 1 if you have the <regex.h> header file. */
  21359. #define HAVE_REGEX_H 1
  21360. /* Define to 1 if you have the `select' function. */
  21361. #define HAVE_SELECT 1
  21362. /* Define to 1 if you have the `setenv' function. */
  21363. #define HAVE_SETENV 1
  21364. /* Define to 1 if you have the `setlocale' function. */
  21365. #define HAVE_SETLOCALE 1
  21366. /* Define to 1 if you have the `sigaction' function. */
  21367. #define HAVE_SIGACTION 1
  21368. /* Define to 1 if you have the <signal.h> header file. */
  21369. #define HAVE_SIGNAL_H 1
  21370. /* Define to 1 if you have the <spawn.h> header file. */
  21371. #define HAVE_SPAWN_H 1
  21372. /* Define to 1 if you have the `statfs' function. */
  21373. #define HAVE_STATFS 1
  21374. /* Define to 1 if you have the `statvfs' function. */
  21375. #define HAVE_STATVFS 1
  21376. /* Define to 1 if `stat' has the bug that it succeeds when given the
  21377. zero-length file name argument. */
  21378. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  21379. /* Define to 1 if you have the <stdarg.h> header file. */
  21380. #define HAVE_STDARG_H 1
  21381. /* Define to 1 if you have the <stdint.h> header file. */
  21382. #define HAVE_STDINT_H 1
  21383. /* Define to 1 if you have the <stdlib.h> header file. */
  21384. #define HAVE_STDLIB_H 1
  21385. /* Define to 1 if you have the `strchr' function. */
  21386. #define HAVE_STRCHR 1
  21387. /* Define to 1 if you have the `strdup' function. */
  21388. #define HAVE_STRDUP 1
  21389. /* Define to 1 if you have the `strerror' function. */
  21390. #define HAVE_STRERROR 1
  21391. /* Define to 1 if you have the `strerror_r' function. */
  21392. #define HAVE_STRERROR_R 1
  21393. /* Define to 1 if you have the `strftime' function. */
  21394. #define HAVE_STRFTIME 1
  21395. /* Define to 1 if you have the <strings.h> header file. */
  21396. #define HAVE_STRINGS_H 1
  21397. /* Define to 1 if you have the <string.h> header file. */
  21398. #define HAVE_STRING_H 1
  21399. /* Define to 1 if you have the `strrchr' function. */
  21400. #define HAVE_STRRCHR 1
  21401. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  21402. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  21403. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  21404. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  21405. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  21406. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  21407. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  21408. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  21409. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  21410. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  21411. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  21412. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  21413. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  21414. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  21415. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  21416. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  21417. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  21418. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  21419. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  21420. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  21421. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  21422. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  21423. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  21424. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  21425. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  21426. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  21427. /* Define to 1 if you have `struct vfsconf'. */
  21428. /* #undef HAVE_STRUCT_VFSCONF */
  21429. /* Define to 1 if you have `struct xvfsconf'. */
  21430. /* #undef HAVE_STRUCT_XVFSCONF */
  21431. /* Define to 1 if you have the `symlink' function. */
  21432. #define HAVE_SYMLINK 1
  21433. /* Define to 1 if you have the <sys/acl.h> header file. */
  21434. /* #undef HAVE_SYS_ACL_H */
  21435. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  21436. #define HAVE_SYS_CDEFS_H 1
  21437. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  21438. */
  21439. /* #undef HAVE_SYS_DIR_H */
  21440. /* Define to 1 if you have the <sys/ea.h> header file. */
  21441. /* #undef HAVE_SYS_EA_H */
  21442. /* Define to 1 if you have the <sys/extattr.h> header file. */
  21443. /* #undef HAVE_SYS_EXTATTR_H */
  21444. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  21445. #define HAVE_SYS_IOCTL_H 1
  21446. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  21447. /* #undef HAVE_SYS_MKDEV_H */
  21448. /* Define to 1 if you have the <sys/mount.h> header file. */
  21449. /* #undef HAVE_SYS_MOUNT_H */
  21450. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  21451. */
  21452. /* #undef HAVE_SYS_NDIR_H */
  21453. /* Define to 1 if you have the <sys/param.h> header file. */
  21454. #define HAVE_SYS_PARAM_H 1
  21455. /* Define to 1 if you have the <sys/poll.h> header file. */
  21456. #define HAVE_SYS_POLL_H 1
  21457. /* Define to 1 if you have the <sys/richacl.h> header file. */
  21458. /* #undef HAVE_SYS_RICHACL_H */
  21459. /* Define to 1 if you have the <sys/select.h> header file. */
  21460. #define HAVE_SYS_SELECT_H 1
  21461. /* Define to 1 if you have the <sys/statfs.h> header file. */
  21462. #define HAVE_SYS_STATFS_H 1
  21463. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  21464. #define HAVE_SYS_STATVFS_H 1
  21465. /* Define to 1 if you have the <sys/stat.h> header file. */
  21466. #define HAVE_SYS_STAT_H 1
  21467. /* Define to 1 if you have the <sys/time.h> header file. */
  21468. #define HAVE_SYS_TIME_H 1
  21469. /* Define to 1 if you have the <sys/types.h> header file. */
  21470. #define HAVE_SYS_TYPES_H 1
  21471. /* Define to 1 if you have the <sys/utime.h> header file. */
  21472. /* #undef HAVE_SYS_UTIME_H */
  21473. /* Define to 1 if you have the <sys/utsname.h> header file. */
  21474. #define HAVE_SYS_UTSNAME_H 1
  21475. /* Define to 1 if you have the <sys/vfs.h> header file. */
  21476. #define HAVE_SYS_VFS_H 1
  21477. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  21478. #define HAVE_SYS_WAIT_H 1
  21479. /* Define to 1 if you have the <sys/xattr.h> header file. */
  21480. #define HAVE_SYS_XATTR_H 1
  21481. /* Define to 1 if you have the `timegm' function. */
  21482. #define HAVE_TIMEGM 1
  21483. /* Define to 1 if you have the <time.h> header file. */
  21484. #define HAVE_TIME_H 1
  21485. /* Define to 1 if you have the `tzset' function. */
  21486. #define HAVE_TZSET 1
  21487. /* Define to 1 if you have the <unistd.h> header file. */
  21488. #define HAVE_UNISTD_H 1
  21489. /* Define to 1 if you have the `unsetenv' function. */
  21490. #define HAVE_UNSETENV 1
  21491. /* Define to 1 if the system has the type `unsigned long long'. */
  21492. /* #undef HAVE_UNSIGNED_LONG_LONG */
  21493. /* Define to 1 if the system has the type `unsigned long long int'. */
  21494. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  21495. /* Define to 1 if you have the `utime' function. */
  21496. #define HAVE_UTIME 1
  21497. /* Define to 1 if you have the `utimensat' function. */
  21498. #define HAVE_UTIMENSAT 1
  21499. /* Define to 1 if you have the `utimes' function. */
  21500. #define HAVE_UTIMES 1
  21501. /* Define to 1 if you have the <utime.h> header file. */
  21502. #define HAVE_UTIME_H 1
  21503. /* Define to 1 if you have the `vfork' function. */
  21504. #define HAVE_VFORK 1
  21505. /* Define to 1 if you have the `vprintf' function. */
  21506. #define HAVE_VPRINTF 1
  21507. /* Define to 1 if you have the <wchar.h> header file. */
  21508. #define HAVE_WCHAR_H 1
  21509. /* Define to 1 if the system has the type `wchar_t'. */
  21510. #define HAVE_WCHAR_T 1
  21511. /* Define to 1 if you have the `wcrtomb' function. */
  21512. #define HAVE_WCRTOMB 1
  21513. /* Define to 1 if you have the `wcscmp' function. */
  21514. #define HAVE_WCSCMP 1
  21515. /* Define to 1 if you have the `wcscpy' function. */
  21516. #define HAVE_WCSCPY 1
  21517. /* Define to 1 if you have the `wcslen' function. */
  21518. #define HAVE_WCSLEN 1
  21519. /* Define to 1 if you have the `wctomb' function. */
  21520. #define HAVE_WCTOMB 1
  21521. /* Define to 1 if you have the <wctype.h> header file. */
  21522. #define HAVE_WCTYPE_H 1
  21523. /* Define to 1 if you have the <wincrypt.h> header file. */
  21524. /* #undef HAVE_WINCRYPT_H */
  21525. /* Define to 1 if you have the <windows.h> header file. */
  21526. /* #undef HAVE_WINDOWS_H */
  21527. /* Define to 1 if you have the <winioctl.h> header file. */
  21528. /* #undef HAVE_WINIOCTL_H */
  21529. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  21530. /* #undef HAVE__CrtSetReportMode */
  21531. /* Define to 1 if you have the `wmemcmp' function. */
  21532. #define HAVE_WMEMCMP 1
  21533. /* Define to 1 if you have the `wmemcpy' function. */
  21534. #define HAVE_WMEMCPY 1
  21535. /* Define to 1 if you have the `wmemmove' function. */
  21536. #define HAVE_WMEMMOVE 1
  21537. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  21538. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  21539. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  21540. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  21541. /* Define to 1 if you have the <zlib.h> header file. */
  21542. #define HAVE_ZLIB_H 1
  21543. /* Define to 1 if you have the `_ctime64_s' function. */
  21544. /* #undef HAVE__CTIME64_S */
  21545. /* Define to 1 if you have the `_fseeki64' function. */
  21546. /* #undef HAVE__FSEEKI64 */
  21547. /* Define to 1 if you have the `_get_timezone' function. */
  21548. /* #undef HAVE__GET_TIMEZONE */
  21549. /* Define to 1 if you have the `_localtime64_s' function. */
  21550. /* #undef HAVE__LOCALTIME64_S */
  21551. /* Define to 1 if you have the `_mkgmtime64' function. */
  21552. /* #undef HAVE__MKGMTIME64 */
  21553. /* Define as const if the declaration of iconv() needs const. */
  21554. #define ICONV_CONST
  21555. /* Version number of libarchive as a single integer */
  21556. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  21557. /* Version number of libarchive */
  21558. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  21559. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  21560. slash. */
  21561. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  21562. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  21563. */
  21564. /* #undef MAJOR_IN_MKDEV */
  21565. /* Define to 1 if `major', `minor', and `makedev' are declared in
  21566. <sysmacros.h>. */
  21567. #define MAJOR_IN_SYSMACROS 1
  21568. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  21569. /* #undef NO_MINUS_C_MINUS_O */
  21570. /* The size of `wchar_t', as computed by sizeof. */
  21571. #define SIZEOF_WCHAR_T 4
  21572. /* Define to 1 if strerror_r returns char *. */
  21573. /* #undef STRERROR_R_CHAR_P */
  21574. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  21575. #define TIME_WITH_SYS_TIME 1
  21576. /*
  21577. * Some platform requires a macro to use extension functions.
  21578. */
  21579. #define SAFE_TO_DEFINE_EXTENSIONS 1
  21580. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  21581. /* Enable extensions on AIX 3, Interix. */
  21582. #ifndef _ALL_SOURCE
  21583. # define _ALL_SOURCE 1
  21584. #endif
  21585. /* Enable GNU extensions on systems that have them. */
  21586. #ifndef _GNU_SOURCE
  21587. # define _GNU_SOURCE 1
  21588. #endif
  21589. /* Enable threading extensions on Solaris. */
  21590. #ifndef _POSIX_PTHREAD_SEMANTICS
  21591. # define _POSIX_PTHREAD_SEMANTICS 1
  21592. #endif
  21593. /* Enable extensions on HP NonStop. */
  21594. #ifndef _TANDEM_SOURCE
  21595. # define _TANDEM_SOURCE 1
  21596. #endif
  21597. /* Enable general extensions on Solaris. */
  21598. #ifndef __EXTENSIONS__
  21599. # define __EXTENSIONS__ 1
  21600. #endif
  21601. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  21602. /* Version number of package */
  21603. #define VERSION "3.3.2"
  21604. /* Number of bits in a file offset, on hosts where this is settable. */
  21605. /* #undef _FILE_OFFSET_BITS */
  21606. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  21607. /* #undef _LARGEFILE_SOURCE */
  21608. /* Define for large files, on AIX-style hosts. */
  21609. /* #undef _LARGE_FILES */
  21610. /* Define to control Windows SDK version */
  21611. #ifndef NTDDI_VERSION
  21612. /* #undef NTDDI_VERSION */
  21613. #endif // NTDDI_VERSION
  21614. #ifndef _WIN32_WINNT
  21615. /* #undef _WIN32_WINNT */
  21616. #endif // _WIN32_WINNT
  21617. #ifndef WINVER
  21618. /* #undef WINVER */
  21619. #endif // WINVER
  21620. /* Define to empty if `const' does not conform to ANSI C. */
  21621. /* #undef const */
  21622. /* Define to `int' if <sys/types.h> doesn't define. */
  21623. /* #undef gid_t */
  21624. /* Define to `unsigned long' if <sys/types.h> does not define. */
  21625. /* #undef id_t */
  21626. /* Define to `int' if <sys/types.h> does not define. */
  21627. /* #undef mode_t */
  21628. /* Define to `long long' if <sys/types.h> does not define. */
  21629. /* #undef off_t */
  21630. /* Define to `int' if <sys/types.h> doesn't define. */
  21631. /* #undef pid_t */
  21632. /* Define to `unsigned int' if <sys/types.h> does not define. */
  21633. /* #undef size_t */
  21634. /* Define to `int' if <sys/types.h> does not define. */
  21635. /* #undef ssize_t */
  21636. /* Define to `int' if <sys/types.h> doesn't define. */
  21637. /* #undef uid_t */
  21638. /* Define to `int' if <sys/types.h> does not define. */
  21639. /* #undef intptr_t */
  21640. /* Define to `unsigned int' if <sys/types.h> does not define. */
  21641. /* #undef uintptr_t */
  21642. #define ARCHIVE_SHA256_COMPILE_TEST
  21643. #define ARCHIVE_CRYPTO_SHA256_LIBC2
  21644. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  21645. /*-
  21646. * Copyright (c) 2003-2007 Tim Kientzle
  21647. * Copyright (c) 2011 Andres Mejia
  21648. * Copyright (c) 2011 Michihiro NAKAJIMA
  21649. * All rights reserved.
  21650. *
  21651. * Redistribution and use in source and binary forms, with or without
  21652. * modification, are permitted provided that the following conditions
  21653. * are met:
  21654. * 1. Redistributions of source code must retain the above copyright
  21655. * notice, this list of conditions and the following disclaimer.
  21656. * 2. Redistributions in binary form must reproduce the above copyright
  21657. * notice, this list of conditions and the following disclaimer in the
  21658. * documentation and/or other materials provided with the distribution.
  21659. *
  21660. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  21661. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  21662. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  21663. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  21664. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  21665. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  21666. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  21667. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  21668. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  21669. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  21670. */
  21671. #include "archive_platform.h"
  21672. #include "archive.h"
  21673. #include "archive_digest_private.h"
  21674. /* In particular, force the configure probe to break if it tries
  21675. * to test a combination of OpenSSL and libmd. */
  21676. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  21677. #error Cannot use both OpenSSL and libmd.
  21678. #endif
  21679. /*
  21680. * Message digest functions for Windows platform.
  21681. */
  21682. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  21683. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  21684. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  21685. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  21686. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  21687. /*
  21688. * Initialize a Message digest.
  21689. */
  21690. static int
  21691. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  21692. {
  21693. ctx->valid = 0;
  21694. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  21695. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  21696. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  21697. return (ARCHIVE_FAILED);
  21698. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  21699. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  21700. return (ARCHIVE_FAILED);
  21701. }
  21702. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  21703. CryptReleaseContext(ctx->cryptProv, 0);
  21704. return (ARCHIVE_FAILED);
  21705. }
  21706. ctx->valid = 1;
  21707. return (ARCHIVE_OK);
  21708. }
  21709. /*
  21710. * Update a Message digest.
  21711. */
  21712. static int
  21713. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  21714. {
  21715. if (!ctx->valid)
  21716. return (ARCHIVE_FAILED);
  21717. CryptHashData(ctx->hash,
  21718. (unsigned char *)(uintptr_t)buf,
  21719. (DWORD)len, 0);
  21720. return (ARCHIVE_OK);
  21721. }
  21722. static int
  21723. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  21724. {
  21725. DWORD siglen = (DWORD)bufsize;
  21726. if (!ctx->valid)
  21727. return (ARCHIVE_FAILED);
  21728. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  21729. CryptDestroyHash(ctx->hash);
  21730. CryptReleaseContext(ctx->cryptProv, 0);
  21731. ctx->valid = 0;
  21732. return (ARCHIVE_OK);
  21733. }
  21734. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  21735. /* MD5 implementations */
  21736. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  21737. static int
  21738. __archive_libc_md5init(archive_md5_ctx *ctx)
  21739. {
  21740. MD5Init(ctx);
  21741. return (ARCHIVE_OK);
  21742. }
  21743. static int
  21744. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  21745. size_t insize)
  21746. {
  21747. MD5Update(ctx, indata, insize);
  21748. return (ARCHIVE_OK);
  21749. }
  21750. static int
  21751. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  21752. {
  21753. MD5Final(md, ctx);
  21754. return (ARCHIVE_OK);
  21755. }
  21756. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  21757. static int
  21758. __archive_libmd_md5init(archive_md5_ctx *ctx)
  21759. {
  21760. MD5Init(ctx);
  21761. return (ARCHIVE_OK);
  21762. }
  21763. static int
  21764. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  21765. size_t insize)
  21766. {
  21767. MD5Update(ctx, indata, insize);
  21768. return (ARCHIVE_OK);
  21769. }
  21770. static int
  21771. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  21772. {
  21773. MD5Final(md, ctx);
  21774. return (ARCHIVE_OK);
  21775. }
  21776. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  21777. static int
  21778. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  21779. {
  21780. CC_MD5_Init(ctx);
  21781. return (ARCHIVE_OK);
  21782. }
  21783. static int
  21784. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  21785. size_t insize)
  21786. {
  21787. CC_MD5_Update(ctx, indata, insize);
  21788. return (ARCHIVE_OK);
  21789. }
  21790. static int
  21791. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  21792. {
  21793. CC_MD5_Final(md, ctx);
  21794. return (ARCHIVE_OK);
  21795. }
  21796. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  21797. static int
  21798. __archive_nettle_md5init(archive_md5_ctx *ctx)
  21799. {
  21800. md5_init(ctx);
  21801. return (ARCHIVE_OK);
  21802. }
  21803. static int
  21804. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  21805. size_t insize)
  21806. {
  21807. md5_update(ctx, insize, indata);
  21808. return (ARCHIVE_OK);
  21809. }
  21810. static int
  21811. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  21812. {
  21813. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  21814. return (ARCHIVE_OK);
  21815. }
  21816. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  21817. static int
  21818. __archive_openssl_md5init(archive_md5_ctx *ctx)
  21819. {
  21820. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  21821. return (ARCHIVE_FAILED);
  21822. EVP_DigestInit(*ctx, EVP_md5());
  21823. return (ARCHIVE_OK);
  21824. }
  21825. static int
  21826. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  21827. size_t insize)
  21828. {
  21829. EVP_DigestUpdate(*ctx, indata, insize);
  21830. return (ARCHIVE_OK);
  21831. }
  21832. static int
  21833. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  21834. {
  21835. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  21836. * this is meant to cope with that. Real fix is probably to fix
  21837. * archive_write_set_format_xar.c
  21838. */
  21839. if (*ctx) {
  21840. EVP_DigestFinal(*ctx, md, NULL);
  21841. EVP_MD_CTX_free(*ctx);
  21842. *ctx = NULL;
  21843. }
  21844. return (ARCHIVE_OK);
  21845. }
  21846. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  21847. static int
  21848. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  21849. {
  21850. return (win_crypto_init(ctx, CALG_MD5));
  21851. }
  21852. static int
  21853. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  21854. size_t insize)
  21855. {
  21856. return (win_crypto_Update(ctx, indata, insize));
  21857. }
  21858. static int
  21859. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  21860. {
  21861. return (win_crypto_Final(md, 16, ctx));
  21862. }
  21863. #else
  21864. static int
  21865. __archive_stub_md5init(archive_md5_ctx *ctx)
  21866. {
  21867. (void)ctx; /* UNUSED */
  21868. return (ARCHIVE_FAILED);
  21869. }
  21870. static int
  21871. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  21872. size_t insize)
  21873. {
  21874. (void)ctx; /* UNUSED */
  21875. (void)indata; /* UNUSED */
  21876. (void)insize; /* UNUSED */
  21877. return (ARCHIVE_FAILED);
  21878. }
  21879. static int
  21880. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  21881. {
  21882. (void)ctx; /* UNUSED */
  21883. (void)md; /* UNUSED */
  21884. return (ARCHIVE_FAILED);
  21885. }
  21886. #endif
  21887. /* RIPEMD160 implementations */
  21888. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  21889. static int
  21890. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  21891. {
  21892. RMD160Init(ctx);
  21893. return (ARCHIVE_OK);
  21894. }
  21895. static int
  21896. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  21897. size_t insize)
  21898. {
  21899. RMD160Update(ctx, indata, insize);
  21900. return (ARCHIVE_OK);
  21901. }
  21902. static int
  21903. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  21904. {
  21905. RMD160Final(md, ctx);
  21906. return (ARCHIVE_OK);
  21907. }
  21908. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  21909. static int
  21910. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  21911. {
  21912. RIPEMD160_Init(ctx);
  21913. return (ARCHIVE_OK);
  21914. }
  21915. static int
  21916. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  21917. size_t insize)
  21918. {
  21919. RIPEMD160_Update(ctx, indata, insize);
  21920. return (ARCHIVE_OK);
  21921. }
  21922. static int
  21923. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  21924. {
  21925. RIPEMD160_Final(md, ctx);
  21926. return (ARCHIVE_OK);
  21927. }
  21928. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  21929. static int
  21930. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  21931. {
  21932. ripemd160_init(ctx);
  21933. return (ARCHIVE_OK);
  21934. }
  21935. static int
  21936. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  21937. size_t insize)
  21938. {
  21939. ripemd160_update(ctx, insize, indata);
  21940. return (ARCHIVE_OK);
  21941. }
  21942. static int
  21943. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  21944. {
  21945. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  21946. return (ARCHIVE_OK);
  21947. }
  21948. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  21949. static int
  21950. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  21951. {
  21952. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  21953. return (ARCHIVE_FAILED);
  21954. EVP_DigestInit(*ctx, EVP_ripemd160());
  21955. return (ARCHIVE_OK);
  21956. }
  21957. static int
  21958. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  21959. size_t insize)
  21960. {
  21961. EVP_DigestUpdate(*ctx, indata, insize);
  21962. return (ARCHIVE_OK);
  21963. }
  21964. static int
  21965. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  21966. {
  21967. if (*ctx) {
  21968. EVP_DigestFinal(*ctx, md, NULL);
  21969. EVP_MD_CTX_free(*ctx);
  21970. *ctx = NULL;
  21971. }
  21972. return (ARCHIVE_OK);
  21973. }
  21974. #else
  21975. static int
  21976. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  21977. {
  21978. (void)ctx; /* UNUSED */
  21979. return (ARCHIVE_FAILED);
  21980. }
  21981. static int
  21982. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  21983. size_t insize)
  21984. {
  21985. (void)ctx; /* UNUSED */
  21986. (void)indata; /* UNUSED */
  21987. (void)insize; /* UNUSED */
  21988. return (ARCHIVE_FAILED);
  21989. }
  21990. static int
  21991. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  21992. {
  21993. (void)ctx; /* UNUSED */
  21994. (void)md; /* UNUSED */
  21995. return (ARCHIVE_FAILED);
  21996. }
  21997. #endif
  21998. /* SHA1 implementations */
  21999. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  22000. static int
  22001. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  22002. {
  22003. SHA1Init(ctx);
  22004. return (ARCHIVE_OK);
  22005. }
  22006. static int
  22007. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  22008. size_t insize)
  22009. {
  22010. SHA1Update(ctx, indata, insize);
  22011. return (ARCHIVE_OK);
  22012. }
  22013. static int
  22014. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  22015. {
  22016. SHA1Final(md, ctx);
  22017. return (ARCHIVE_OK);
  22018. }
  22019. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  22020. static int
  22021. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  22022. {
  22023. SHA1_Init(ctx);
  22024. return (ARCHIVE_OK);
  22025. }
  22026. static int
  22027. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  22028. size_t insize)
  22029. {
  22030. SHA1_Update(ctx, indata, insize);
  22031. return (ARCHIVE_OK);
  22032. }
  22033. static int
  22034. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  22035. {
  22036. SHA1_Final(md, ctx);
  22037. return (ARCHIVE_OK);
  22038. }
  22039. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  22040. static int
  22041. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  22042. {
  22043. CC_SHA1_Init(ctx);
  22044. return (ARCHIVE_OK);
  22045. }
  22046. static int
  22047. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  22048. size_t insize)
  22049. {
  22050. CC_SHA1_Update(ctx, indata, insize);
  22051. return (ARCHIVE_OK);
  22052. }
  22053. static int
  22054. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  22055. {
  22056. CC_SHA1_Final(md, ctx);
  22057. return (ARCHIVE_OK);
  22058. }
  22059. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  22060. static int
  22061. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  22062. {
  22063. sha1_init(ctx);
  22064. return (ARCHIVE_OK);
  22065. }
  22066. static int
  22067. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  22068. size_t insize)
  22069. {
  22070. sha1_update(ctx, insize, indata);
  22071. return (ARCHIVE_OK);
  22072. }
  22073. static int
  22074. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  22075. {
  22076. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  22077. return (ARCHIVE_OK);
  22078. }
  22079. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  22080. static int
  22081. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  22082. {
  22083. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  22084. return (ARCHIVE_FAILED);
  22085. EVP_DigestInit(*ctx, EVP_sha1());
  22086. return (ARCHIVE_OK);
  22087. }
  22088. static int
  22089. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  22090. size_t insize)
  22091. {
  22092. EVP_DigestUpdate(*ctx, indata, insize);
  22093. return (ARCHIVE_OK);
  22094. }
  22095. static int
  22096. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  22097. {
  22098. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  22099. * this is meant to cope with that. Real fix is probably to fix
  22100. * archive_write_set_format_xar.c
  22101. */
  22102. if (*ctx) {
  22103. EVP_DigestFinal(*ctx, md, NULL);
  22104. EVP_MD_CTX_free(*ctx);
  22105. *ctx = NULL;
  22106. }
  22107. return (ARCHIVE_OK);
  22108. }
  22109. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  22110. static int
  22111. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  22112. {
  22113. return (win_crypto_init(ctx, CALG_SHA1));
  22114. }
  22115. static int
  22116. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  22117. size_t insize)
  22118. {
  22119. return (win_crypto_Update(ctx, indata, insize));
  22120. }
  22121. static int
  22122. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  22123. {
  22124. return (win_crypto_Final(md, 20, ctx));
  22125. }
  22126. #else
  22127. static int
  22128. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  22129. {
  22130. (void)ctx; /* UNUSED */
  22131. return (ARCHIVE_FAILED);
  22132. }
  22133. static int
  22134. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  22135. size_t insize)
  22136. {
  22137. (void)ctx; /* UNUSED */
  22138. (void)indata; /* UNUSED */
  22139. (void)insize; /* UNUSED */
  22140. return (ARCHIVE_FAILED);
  22141. }
  22142. static int
  22143. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  22144. {
  22145. (void)ctx; /* UNUSED */
  22146. (void)md; /* UNUSED */
  22147. return (ARCHIVE_FAILED);
  22148. }
  22149. #endif
  22150. /* SHA256 implementations */
  22151. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  22152. static int
  22153. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  22154. {
  22155. SHA256_Init(ctx);
  22156. return (ARCHIVE_OK);
  22157. }
  22158. static int
  22159. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  22160. size_t insize)
  22161. {
  22162. SHA256_Update(ctx, indata, insize);
  22163. return (ARCHIVE_OK);
  22164. }
  22165. static int
  22166. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  22167. {
  22168. SHA256_Final(md, ctx);
  22169. return (ARCHIVE_OK);
  22170. }
  22171. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  22172. static int
  22173. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  22174. {
  22175. SHA256Init(ctx);
  22176. return (ARCHIVE_OK);
  22177. }
  22178. static int
  22179. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  22180. size_t insize)
  22181. {
  22182. SHA256Update(ctx, indata, insize);
  22183. return (ARCHIVE_OK);
  22184. }
  22185. static int
  22186. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  22187. {
  22188. SHA256Final(md, ctx);
  22189. return (ARCHIVE_OK);
  22190. }
  22191. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  22192. static int
  22193. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  22194. {
  22195. SHA256Init(ctx);
  22196. return (ARCHIVE_OK);
  22197. }
  22198. static int
  22199. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  22200. size_t insize)
  22201. {
  22202. SHA256Update(ctx, indata, insize);
  22203. return (ARCHIVE_OK);
  22204. }
  22205. static int
  22206. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  22207. {
  22208. SHA256Final(md, ctx);
  22209. return (ARCHIVE_OK);
  22210. }
  22211. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  22212. static int
  22213. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  22214. {
  22215. SHA256_Init(ctx);
  22216. return (ARCHIVE_OK);
  22217. }
  22218. static int
  22219. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  22220. size_t insize)
  22221. {
  22222. SHA256_Update(ctx, indata, insize);
  22223. return (ARCHIVE_OK);
  22224. }
  22225. static int
  22226. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  22227. {
  22228. SHA256_Final(md, ctx);
  22229. return (ARCHIVE_OK);
  22230. }
  22231. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  22232. static int
  22233. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  22234. {
  22235. CC_SHA256_Init(ctx);
  22236. return (ARCHIVE_OK);
  22237. }
  22238. static int
  22239. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  22240. size_t insize)
  22241. {
  22242. CC_SHA256_Update(ctx, indata, insize);
  22243. return (ARCHIVE_OK);
  22244. }
  22245. static int
  22246. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  22247. {
  22248. CC_SHA256_Final(md, ctx);
  22249. return (ARCHIVE_OK);
  22250. }
  22251. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  22252. static int
  22253. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  22254. {
  22255. sha256_init(ctx);
  22256. return (ARCHIVE_OK);
  22257. }
  22258. static int
  22259. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  22260. size_t insize)
  22261. {
  22262. sha256_update(ctx, insize, indata);
  22263. return (ARCHIVE_OK);
  22264. }
  22265. static int
  22266. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  22267. {
  22268. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  22269. return (ARCHIVE_OK);
  22270. }
  22271. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  22272. static int
  22273. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  22274. {
  22275. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  22276. return (ARCHIVE_FAILED);
  22277. EVP_DigestInit(*ctx, EVP_sha256());
  22278. return (ARCHIVE_OK);
  22279. }
  22280. static int
  22281. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  22282. size_t insize)
  22283. {
  22284. EVP_DigestUpdate(*ctx, indata, insize);
  22285. return (ARCHIVE_OK);
  22286. }
  22287. static int
  22288. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  22289. {
  22290. if (*ctx) {
  22291. EVP_DigestFinal(*ctx, md, NULL);
  22292. EVP_MD_CTX_free(*ctx);
  22293. *ctx = NULL;
  22294. }
  22295. return (ARCHIVE_OK);
  22296. }
  22297. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  22298. static int
  22299. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  22300. {
  22301. return (win_crypto_init(ctx, CALG_SHA_256));
  22302. }
  22303. static int
  22304. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  22305. size_t insize)
  22306. {
  22307. return (win_crypto_Update(ctx, indata, insize));
  22308. }
  22309. static int
  22310. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  22311. {
  22312. return (win_crypto_Final(md, 32, ctx));
  22313. }
  22314. #else
  22315. static int
  22316. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  22317. {
  22318. (void)ctx; /* UNUSED */
  22319. return (ARCHIVE_FAILED);
  22320. }
  22321. static int
  22322. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  22323. size_t insize)
  22324. {
  22325. (void)ctx; /* UNUSED */
  22326. (void)indata; /* UNUSED */
  22327. (void)insize; /* UNUSED */
  22328. return (ARCHIVE_FAILED);
  22329. }
  22330. static int
  22331. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  22332. {
  22333. (void)ctx; /* UNUSED */
  22334. (void)md; /* UNUSED */
  22335. return (ARCHIVE_FAILED);
  22336. }
  22337. #endif
  22338. /* SHA384 implementations */
  22339. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  22340. static int
  22341. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  22342. {
  22343. SHA384_Init(ctx);
  22344. return (ARCHIVE_OK);
  22345. }
  22346. static int
  22347. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  22348. size_t insize)
  22349. {
  22350. SHA384_Update(ctx, indata, insize);
  22351. return (ARCHIVE_OK);
  22352. }
  22353. static int
  22354. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  22355. {
  22356. SHA384_Final(md, ctx);
  22357. return (ARCHIVE_OK);
  22358. }
  22359. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  22360. static int
  22361. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  22362. {
  22363. SHA384Init(ctx);
  22364. return (ARCHIVE_OK);
  22365. }
  22366. static int
  22367. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  22368. size_t insize)
  22369. {
  22370. SHA384Update(ctx, indata, insize);
  22371. return (ARCHIVE_OK);
  22372. }
  22373. static int
  22374. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  22375. {
  22376. SHA384Final(md, ctx);
  22377. return (ARCHIVE_OK);
  22378. }
  22379. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  22380. static int
  22381. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  22382. {
  22383. SHA384Init(ctx);
  22384. return (ARCHIVE_OK);
  22385. }
  22386. static int
  22387. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  22388. size_t insize)
  22389. {
  22390. SHA384Update(ctx, indata, insize);
  22391. return (ARCHIVE_OK);
  22392. }
  22393. static int
  22394. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  22395. {
  22396. SHA384Final(md, ctx);
  22397. return (ARCHIVE_OK);
  22398. }
  22399. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  22400. static int
  22401. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  22402. {
  22403. CC_SHA384_Init(ctx);
  22404. return (ARCHIVE_OK);
  22405. }
  22406. static int
  22407. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  22408. size_t insize)
  22409. {
  22410. CC_SHA384_Update(ctx, indata, insize);
  22411. return (ARCHIVE_OK);
  22412. }
  22413. static int
  22414. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  22415. {
  22416. CC_SHA384_Final(md, ctx);
  22417. return (ARCHIVE_OK);
  22418. }
  22419. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  22420. static int
  22421. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  22422. {
  22423. sha384_init(ctx);
  22424. return (ARCHIVE_OK);
  22425. }
  22426. static int
  22427. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  22428. size_t insize)
  22429. {
  22430. sha384_update(ctx, insize, indata);
  22431. return (ARCHIVE_OK);
  22432. }
  22433. static int
  22434. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  22435. {
  22436. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  22437. return (ARCHIVE_OK);
  22438. }
  22439. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  22440. static int
  22441. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  22442. {
  22443. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  22444. return (ARCHIVE_FAILED);
  22445. EVP_DigestInit(*ctx, EVP_sha384());
  22446. return (ARCHIVE_OK);
  22447. }
  22448. static int
  22449. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  22450. size_t insize)
  22451. {
  22452. EVP_DigestUpdate(*ctx, indata, insize);
  22453. return (ARCHIVE_OK);
  22454. }
  22455. static int
  22456. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  22457. {
  22458. if (*ctx) {
  22459. EVP_DigestFinal(*ctx, md, NULL);
  22460. EVP_MD_CTX_free(*ctx);
  22461. *ctx = NULL;
  22462. }
  22463. return (ARCHIVE_OK);
  22464. }
  22465. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  22466. static int
  22467. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  22468. {
  22469. return (win_crypto_init(ctx, CALG_SHA_384));
  22470. }
  22471. static int
  22472. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  22473. size_t insize)
  22474. {
  22475. return (win_crypto_Update(ctx, indata, insize));
  22476. }
  22477. static int
  22478. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  22479. {
  22480. return (win_crypto_Final(md, 48, ctx));
  22481. }
  22482. #else
  22483. static int
  22484. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  22485. {
  22486. (void)ctx; /* UNUSED */
  22487. return (ARCHIVE_FAILED);
  22488. }
  22489. static int
  22490. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  22491. size_t insize)
  22492. {
  22493. (void)ctx; /* UNUSED */
  22494. (void)indata; /* UNUSED */
  22495. (void)insize; /* UNUSED */
  22496. return (ARCHIVE_FAILED);
  22497. }
  22498. static int
  22499. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  22500. {
  22501. (void)ctx; /* UNUSED */
  22502. (void)md; /* UNUSED */
  22503. return (ARCHIVE_FAILED);
  22504. }
  22505. #endif
  22506. /* SHA512 implementations */
  22507. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  22508. static int
  22509. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  22510. {
  22511. SHA512_Init(ctx);
  22512. return (ARCHIVE_OK);
  22513. }
  22514. static int
  22515. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  22516. size_t insize)
  22517. {
  22518. SHA512_Update(ctx, indata, insize);
  22519. return (ARCHIVE_OK);
  22520. }
  22521. static int
  22522. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  22523. {
  22524. SHA512_Final(md, ctx);
  22525. return (ARCHIVE_OK);
  22526. }
  22527. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  22528. static int
  22529. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  22530. {
  22531. SHA512Init(ctx);
  22532. return (ARCHIVE_OK);
  22533. }
  22534. static int
  22535. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  22536. size_t insize)
  22537. {
  22538. SHA512Update(ctx, indata, insize);
  22539. return (ARCHIVE_OK);
  22540. }
  22541. static int
  22542. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  22543. {
  22544. SHA512Final(md, ctx);
  22545. return (ARCHIVE_OK);
  22546. }
  22547. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  22548. static int
  22549. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  22550. {
  22551. SHA512Init(ctx);
  22552. return (ARCHIVE_OK);
  22553. }
  22554. static int
  22555. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  22556. size_t insize)
  22557. {
  22558. SHA512Update(ctx, indata, insize);
  22559. return (ARCHIVE_OK);
  22560. }
  22561. static int
  22562. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  22563. {
  22564. SHA512Final(md, ctx);
  22565. return (ARCHIVE_OK);
  22566. }
  22567. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  22568. static int
  22569. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  22570. {
  22571. SHA512_Init(ctx);
  22572. return (ARCHIVE_OK);
  22573. }
  22574. static int
  22575. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  22576. size_t insize)
  22577. {
  22578. SHA512_Update(ctx, indata, insize);
  22579. return (ARCHIVE_OK);
  22580. }
  22581. static int
  22582. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  22583. {
  22584. SHA512_Final(md, ctx);
  22585. return (ARCHIVE_OK);
  22586. }
  22587. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  22588. static int
  22589. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  22590. {
  22591. CC_SHA512_Init(ctx);
  22592. return (ARCHIVE_OK);
  22593. }
  22594. static int
  22595. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  22596. size_t insize)
  22597. {
  22598. CC_SHA512_Update(ctx, indata, insize);
  22599. return (ARCHIVE_OK);
  22600. }
  22601. static int
  22602. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  22603. {
  22604. CC_SHA512_Final(md, ctx);
  22605. return (ARCHIVE_OK);
  22606. }
  22607. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  22608. static int
  22609. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  22610. {
  22611. sha512_init(ctx);
  22612. return (ARCHIVE_OK);
  22613. }
  22614. static int
  22615. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  22616. size_t insize)
  22617. {
  22618. sha512_update(ctx, insize, indata);
  22619. return (ARCHIVE_OK);
  22620. }
  22621. static int
  22622. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  22623. {
  22624. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  22625. return (ARCHIVE_OK);
  22626. }
  22627. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  22628. static int
  22629. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  22630. {
  22631. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  22632. return (ARCHIVE_FAILED);
  22633. EVP_DigestInit(*ctx, EVP_sha512());
  22634. return (ARCHIVE_OK);
  22635. }
  22636. static int
  22637. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  22638. size_t insize)
  22639. {
  22640. EVP_DigestUpdate(*ctx, indata, insize);
  22641. return (ARCHIVE_OK);
  22642. }
  22643. static int
  22644. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  22645. {
  22646. if (*ctx) {
  22647. EVP_DigestFinal(*ctx, md, NULL);
  22648. EVP_MD_CTX_free(*ctx);
  22649. *ctx = NULL;
  22650. }
  22651. return (ARCHIVE_OK);
  22652. }
  22653. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  22654. static int
  22655. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  22656. {
  22657. return (win_crypto_init(ctx, CALG_SHA_512));
  22658. }
  22659. static int
  22660. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  22661. size_t insize)
  22662. {
  22663. return (win_crypto_Update(ctx, indata, insize));
  22664. }
  22665. static int
  22666. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  22667. {
  22668. return (win_crypto_Final(md, 64, ctx));
  22669. }
  22670. #else
  22671. static int
  22672. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  22673. {
  22674. (void)ctx; /* UNUSED */
  22675. return (ARCHIVE_FAILED);
  22676. }
  22677. static int
  22678. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  22679. size_t insize)
  22680. {
  22681. (void)ctx; /* UNUSED */
  22682. (void)indata; /* UNUSED */
  22683. (void)insize; /* UNUSED */
  22684. return (ARCHIVE_FAILED);
  22685. }
  22686. static int
  22687. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  22688. {
  22689. (void)ctx; /* UNUSED */
  22690. (void)md; /* UNUSED */
  22691. return (ARCHIVE_FAILED);
  22692. }
  22693. #endif
  22694. /* NOTE: Message Digest functions are set based on availability and by the
  22695. * following order of preference.
  22696. * 1. libc
  22697. * 2. libc2
  22698. * 3. libc3
  22699. * 4. libSystem
  22700. * 5. Nettle
  22701. * 6. OpenSSL
  22702. * 7. libmd
  22703. * 8. Windows API
  22704. */
  22705. const struct archive_digest __archive_digest =
  22706. {
  22707. /* MD5 */
  22708. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  22709. &__archive_libc_md5init,
  22710. &__archive_libc_md5update,
  22711. &__archive_libc_md5final,
  22712. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  22713. &__archive_libmd_md5init,
  22714. &__archive_libmd_md5update,
  22715. &__archive_libmd_md5final,
  22716. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  22717. &__archive_libsystem_md5init,
  22718. &__archive_libsystem_md5update,
  22719. &__archive_libsystem_md5final,
  22720. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  22721. &__archive_nettle_md5init,
  22722. &__archive_nettle_md5update,
  22723. &__archive_nettle_md5final,
  22724. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  22725. &__archive_openssl_md5init,
  22726. &__archive_openssl_md5update,
  22727. &__archive_openssl_md5final,
  22728. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  22729. &__archive_windowsapi_md5init,
  22730. &__archive_windowsapi_md5update,
  22731. &__archive_windowsapi_md5final,
  22732. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  22733. &__archive_stub_md5init,
  22734. &__archive_stub_md5update,
  22735. &__archive_stub_md5final,
  22736. #endif
  22737. /* RIPEMD160 */
  22738. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  22739. &__archive_libc_ripemd160init,
  22740. &__archive_libc_ripemd160update,
  22741. &__archive_libc_ripemd160final,
  22742. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  22743. &__archive_libmd_ripemd160init,
  22744. &__archive_libmd_ripemd160update,
  22745. &__archive_libmd_ripemd160final,
  22746. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  22747. &__archive_nettle_ripemd160init,
  22748. &__archive_nettle_ripemd160update,
  22749. &__archive_nettle_ripemd160final,
  22750. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  22751. &__archive_openssl_ripemd160init,
  22752. &__archive_openssl_ripemd160update,
  22753. &__archive_openssl_ripemd160final,
  22754. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  22755. &__archive_stub_ripemd160init,
  22756. &__archive_stub_ripemd160update,
  22757. &__archive_stub_ripemd160final,
  22758. #endif
  22759. /* SHA1 */
  22760. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  22761. &__archive_libc_sha1init,
  22762. &__archive_libc_sha1update,
  22763. &__archive_libc_sha1final,
  22764. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  22765. &__archive_libmd_sha1init,
  22766. &__archive_libmd_sha1update,
  22767. &__archive_libmd_sha1final,
  22768. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  22769. &__archive_libsystem_sha1init,
  22770. &__archive_libsystem_sha1update,
  22771. &__archive_libsystem_sha1final,
  22772. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  22773. &__archive_nettle_sha1init,
  22774. &__archive_nettle_sha1update,
  22775. &__archive_nettle_sha1final,
  22776. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  22777. &__archive_openssl_sha1init,
  22778. &__archive_openssl_sha1update,
  22779. &__archive_openssl_sha1final,
  22780. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  22781. &__archive_windowsapi_sha1init,
  22782. &__archive_windowsapi_sha1update,
  22783. &__archive_windowsapi_sha1final,
  22784. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  22785. &__archive_stub_sha1init,
  22786. &__archive_stub_sha1update,
  22787. &__archive_stub_sha1final,
  22788. #endif
  22789. /* SHA256 */
  22790. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  22791. &__archive_libc_sha256init,
  22792. &__archive_libc_sha256update,
  22793. &__archive_libc_sha256final,
  22794. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  22795. &__archive_libc2_sha256init,
  22796. &__archive_libc2_sha256update,
  22797. &__archive_libc2_sha256final,
  22798. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  22799. &__archive_libc3_sha256init,
  22800. &__archive_libc3_sha256update,
  22801. &__archive_libc3_sha256final,
  22802. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  22803. &__archive_libmd_sha256init,
  22804. &__archive_libmd_sha256update,
  22805. &__archive_libmd_sha256final,
  22806. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  22807. &__archive_libsystem_sha256init,
  22808. &__archive_libsystem_sha256update,
  22809. &__archive_libsystem_sha256final,
  22810. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  22811. &__archive_nettle_sha256init,
  22812. &__archive_nettle_sha256update,
  22813. &__archive_nettle_sha256final,
  22814. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  22815. &__archive_openssl_sha256init,
  22816. &__archive_openssl_sha256update,
  22817. &__archive_openssl_sha256final,
  22818. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  22819. &__archive_windowsapi_sha256init,
  22820. &__archive_windowsapi_sha256update,
  22821. &__archive_windowsapi_sha256final,
  22822. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  22823. &__archive_stub_sha256init,
  22824. &__archive_stub_sha256update,
  22825. &__archive_stub_sha256final,
  22826. #endif
  22827. /* SHA384 */
  22828. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  22829. &__archive_libc_sha384init,
  22830. &__archive_libc_sha384update,
  22831. &__archive_libc_sha384final,
  22832. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  22833. &__archive_libc2_sha384init,
  22834. &__archive_libc2_sha384update,
  22835. &__archive_libc2_sha384final,
  22836. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  22837. &__archive_libc3_sha384init,
  22838. &__archive_libc3_sha384update,
  22839. &__archive_libc3_sha384final,
  22840. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  22841. &__archive_libsystem_sha384init,
  22842. &__archive_libsystem_sha384update,
  22843. &__archive_libsystem_sha384final,
  22844. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  22845. &__archive_nettle_sha384init,
  22846. &__archive_nettle_sha384update,
  22847. &__archive_nettle_sha384final,
  22848. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  22849. &__archive_openssl_sha384init,
  22850. &__archive_openssl_sha384update,
  22851. &__archive_openssl_sha384final,
  22852. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  22853. &__archive_windowsapi_sha384init,
  22854. &__archive_windowsapi_sha384update,
  22855. &__archive_windowsapi_sha384final,
  22856. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  22857. &__archive_stub_sha384init,
  22858. &__archive_stub_sha384update,
  22859. &__archive_stub_sha384final,
  22860. #endif
  22861. /* SHA512 */
  22862. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  22863. &__archive_libc_sha512init,
  22864. &__archive_libc_sha512update,
  22865. &__archive_libc_sha512final
  22866. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  22867. &__archive_libc2_sha512init,
  22868. &__archive_libc2_sha512update,
  22869. &__archive_libc2_sha512final
  22870. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  22871. &__archive_libc3_sha512init,
  22872. &__archive_libc3_sha512update,
  22873. &__archive_libc3_sha512final
  22874. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  22875. &__archive_libmd_sha512init,
  22876. &__archive_libmd_sha512update,
  22877. &__archive_libmd_sha512final
  22878. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  22879. &__archive_libsystem_sha512init,
  22880. &__archive_libsystem_sha512update,
  22881. &__archive_libsystem_sha512final
  22882. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  22883. &__archive_nettle_sha512init,
  22884. &__archive_nettle_sha512update,
  22885. &__archive_nettle_sha512final
  22886. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  22887. &__archive_openssl_sha512init,
  22888. &__archive_openssl_sha512update,
  22889. &__archive_openssl_sha512final
  22890. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  22891. &__archive_windowsapi_sha512init,
  22892. &__archive_windowsapi_sha512update,
  22893. &__archive_windowsapi_sha512final
  22894. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  22895. &__archive_stub_sha512init,
  22896. &__archive_stub_sha512update,
  22897. &__archive_stub_sha512final
  22898. #endif
  22899. };
  22900. int
  22901. main(int argc, char **argv)
  22902. {
  22903. archive_sha256_ctx ctx;
  22904. archive_sha256_init(&ctx);
  22905. archive_sha256_update(&ctx, *argv, argc);
  22906. archive_sha256_final(&ctx, NULL);
  22907. return 0;
  22908. }
  22909. Checking support for ARCHIVE_CRYPTO_SHA384_LIBC2 failed with the following output:
  22910. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  22911. Run Build Command:"/usr/bin/make" "cmTC_c6e4a/fast"
  22912. make -f CMakeFiles/cmTC_c6e4a.dir/build.make CMakeFiles/cmTC_c6e4a.dir/build
  22913. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  22914. Building C object CMakeFiles/cmTC_c6e4a.dir/check_crypto_md.c.o
  22915. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_c6e4a.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  22916. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  22917. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory
  22918. compilation terminated.
  22919. CMakeFiles/cmTC_c6e4a.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_c6e4a.dir/check_crypto_md.c.o' failed
  22920. make[1]: *** [CMakeFiles/cmTC_c6e4a.dir/check_crypto_md.c.o] Error 1
  22921. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  22922. Makefile:126: recipe for target 'cmTC_c6e4a/fast' failed
  22923. make: *** [cmTC_c6e4a/fast] Error 2
  22924. Source file was:
  22925. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  22926. #if defined(__osf__)
  22927. # define _OSF_SOURCE
  22928. #endif
  22929. /*
  22930. * Ensure we have C99-style int64_t, etc, all defined.
  22931. */
  22932. /* First, we need to know if the system has already defined them. */
  22933. #define HAVE_INT16_T
  22934. #define HAVE_INT32_T
  22935. #define HAVE_INT64_T
  22936. #define HAVE_INTMAX_T
  22937. #define HAVE_UINT8_T
  22938. #define HAVE_UINT16_T
  22939. #define HAVE_UINT32_T
  22940. #define HAVE_UINT64_T
  22941. #define HAVE_UINTMAX_T
  22942. /* We might have the types we want under other spellings. */
  22943. /* #undef HAVE___INT64 */
  22944. /* #undef HAVE_U_INT64_T */
  22945. /* #undef HAVE_UNSIGNED___INT64 */
  22946. /* The sizes of various standard integer types. */
  22947. #define SIZE_OF_SHORT 2
  22948. #define SIZE_OF_INT 4
  22949. #define SIZE_OF_LONG 8
  22950. #define SIZE_OF_LONG_LONG 8
  22951. #define SIZE_OF_UNSIGNED_SHORT 2
  22952. #define SIZE_OF_UNSIGNED 4
  22953. #define SIZE_OF_UNSIGNED_LONG 8
  22954. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  22955. /*
  22956. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  22957. * that exists and is the right size.
  22958. */
  22959. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  22960. typedef __int64 int64_t;
  22961. #define HAVE_INT64_T
  22962. #endif
  22963. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  22964. typedef int int64_t;
  22965. #define HAVE_INT64_T
  22966. #endif
  22967. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  22968. typedef long int64_t;
  22969. #define HAVE_INT64_T
  22970. #endif
  22971. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  22972. typedef long long int64_t;
  22973. #define HAVE_INT64_T
  22974. #endif
  22975. #if !defined(HAVE_INT64_T)
  22976. #error No 64-bit integer type was found.
  22977. #endif
  22978. /*
  22979. * Similarly for int32_t
  22980. */
  22981. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  22982. typedef int int32_t;
  22983. #define HAVE_INT32_T
  22984. #endif
  22985. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  22986. typedef long int32_t;
  22987. #define HAVE_INT32_T
  22988. #endif
  22989. #if !defined(HAVE_INT32_T)
  22990. #error No 32-bit integer type was found.
  22991. #endif
  22992. /*
  22993. * Similarly for int16_t
  22994. */
  22995. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  22996. typedef int int16_t;
  22997. #define HAVE_INT16_T
  22998. #endif
  22999. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  23000. typedef short int16_t;
  23001. #define HAVE_INT16_T
  23002. #endif
  23003. #if !defined(HAVE_INT16_T)
  23004. #error No 16-bit integer type was found.
  23005. #endif
  23006. /*
  23007. * Similarly for uint64_t
  23008. */
  23009. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  23010. typedef unsigned __int64 uint64_t;
  23011. #define HAVE_UINT64_T
  23012. #endif
  23013. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  23014. typedef unsigned uint64_t;
  23015. #define HAVE_UINT64_T
  23016. #endif
  23017. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  23018. typedef unsigned long uint64_t;
  23019. #define HAVE_UINT64_T
  23020. #endif
  23021. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  23022. typedef unsigned long long uint64_t;
  23023. #define HAVE_UINT64_T
  23024. #endif
  23025. #if !defined(HAVE_UINT64_T)
  23026. #error No 64-bit unsigned integer type was found.
  23027. #endif
  23028. /*
  23029. * Similarly for uint32_t
  23030. */
  23031. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  23032. typedef unsigned uint32_t;
  23033. #define HAVE_UINT32_T
  23034. #endif
  23035. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  23036. typedef unsigned long uint32_t;
  23037. #define HAVE_UINT32_T
  23038. #endif
  23039. #if !defined(HAVE_UINT32_T)
  23040. #error No 32-bit unsigned integer type was found.
  23041. #endif
  23042. /*
  23043. * Similarly for uint16_t
  23044. */
  23045. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  23046. typedef unsigned uint16_t;
  23047. #define HAVE_UINT16_T
  23048. #endif
  23049. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  23050. typedef unsigned short uint16_t;
  23051. #define HAVE_UINT16_T
  23052. #endif
  23053. #if !defined(HAVE_UINT16_T)
  23054. #error No 16-bit unsigned integer type was found.
  23055. #endif
  23056. /*
  23057. * Similarly for uint8_t
  23058. */
  23059. #if !defined(HAVE_UINT8_T)
  23060. typedef unsigned char uint8_t;
  23061. #define HAVE_UINT8_T
  23062. #endif
  23063. #if !defined(HAVE_UINT16_T)
  23064. #error No 8-bit unsigned integer type was found.
  23065. #endif
  23066. /* Define intmax_t and uintmax_t if they are not already defined. */
  23067. #if !defined(HAVE_INTMAX_T)
  23068. typedef int64_t intmax_t;
  23069. #endif
  23070. #if !defined(HAVE_UINTMAX_T)
  23071. typedef uint64_t uintmax_t;
  23072. #endif
  23073. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  23074. /* #undef ZLIB_WINAPI */
  23075. /* Darwin ACL support */
  23076. /* #undef ARCHIVE_ACL_DARWIN */
  23077. /* FreeBSD ACL support */
  23078. /* #undef ARCHIVE_ACL_FREEBSD */
  23079. /* FreeBSD NFSv4 ACL support */
  23080. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  23081. /* Linux POSIX.1e ACL support via libacl */
  23082. /* #undef ARCHIVE_ACL_LIBACL */
  23083. /* Linux NFSv4 ACL support via librichacl */
  23084. /* #undef ARCHIVE_ACL_LIBRICHACL */
  23085. /* Solaris ACL support */
  23086. /* #undef ARCHIVE_ACL_SUNOS */
  23087. /* Solaris NFSv4 ACL support */
  23088. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  23089. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  23090. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  23091. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  23092. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  23093. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  23094. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  23095. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  23096. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  23097. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  23098. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  23099. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  23100. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  23101. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  23102. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  23103. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  23104. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  23105. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  23106. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  23107. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  23108. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  23109. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  23110. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  23111. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  23112. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  23113. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  23114. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  23115. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  23116. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  23117. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  23118. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  23119. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  23120. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  23121. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  23122. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  23123. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  23124. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  23125. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  23126. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  23127. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  23128. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  23129. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  23130. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  23131. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  23132. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  23133. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  23134. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  23135. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  23136. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  23137. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  23138. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  23139. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  23140. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  23141. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  23142. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  23143. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  23144. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  23145. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  23146. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  23147. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  23148. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  23149. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  23150. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  23151. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  23152. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  23153. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  23154. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  23155. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  23156. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  23157. /* AIX xattr support */
  23158. /* #undef ARCHIVE_XATTR_AIX */
  23159. /* Darwin xattr support */
  23160. /* #undef ARCHIVE_XATTR_DARWIN */
  23161. /* FreeBSD xattr support */
  23162. /* #undef ARCHIVE_XATTR_FREEBSD */
  23163. /* Linux xattr support */
  23164. /* #undef ARCHIVE_XATTR_LINUX */
  23165. /* Version number of bsdcpio */
  23166. #define BSDCPIO_VERSION_STRING "3.3.2"
  23167. /* Version number of bsdtar */
  23168. #define BSDTAR_VERSION_STRING "3.3.2"
  23169. /* Version number of bsdcat */
  23170. #define BSDCAT_VERSION_STRING "3.3.2"
  23171. /* Define to 1 if you have the `acl_create_entry' function. */
  23172. /* #undef HAVE_ACL_CREATE_ENTRY */
  23173. /* Define to 1 if you have the `acl_get_fd_np' function. */
  23174. /* #undef HAVE_ACL_GET_FD_NP */
  23175. /* Define to 1 if you have the `acl_get_link' function. */
  23176. /* #undef HAVE_ACL_GET_LINK */
  23177. /* Define to 1 if you have the `acl_get_link_np' function. */
  23178. /* #undef HAVE_ACL_GET_LINK_NP */
  23179. /* Define to 1 if you have the `acl_get_perm' function. */
  23180. /* #undef HAVE_ACL_GET_PERM */
  23181. /* Define to 1 if you have the `acl_get_perm_np' function. */
  23182. /* #undef HAVE_ACL_GET_PERM_NP */
  23183. /* Define to 1 if you have the `acl_init' function. */
  23184. /* #undef HAVE_ACL_INIT */
  23185. /* Define to 1 if you have the <acl/libacl.h> header file. */
  23186. /* #undef HAVE_ACL_LIBACL_H */
  23187. /* Define to 1 if the system has the type `acl_permset_t'. */
  23188. /* #undef HAVE_ACL_PERMSET_T */
  23189. /* Define to 1 if you have the `acl_set_fd' function. */
  23190. /* #undef HAVE_ACL_SET_FD */
  23191. /* Define to 1 if you have the `acl_set_fd_np' function. */
  23192. /* #undef HAVE_ACL_SET_FD_NP */
  23193. /* Define to 1 if you have the `acl_set_file' function. */
  23194. /* #undef HAVE_ACL_SET_FILE */
  23195. /* Define to 1 if you have the `arc4random_buf' function. */
  23196. /* #undef HAVE_ARC4RANDOM_BUF */
  23197. /* Define to 1 if you have the <attr/xattr.h> header file. */
  23198. /* #undef HAVE_ATTR_XATTR_H */
  23199. /* Define to 1 if you have the <Bcrypt.h> header file. */
  23200. /* #undef HAVE_BCRYPT_H */
  23201. /* Define to 1 if you have the <bsdxml.h> header file. */
  23202. /* #undef HAVE_BSDXML_H */
  23203. /* Define to 1 if you have the <bzlib.h> header file. */
  23204. #define HAVE_BZLIB_H 1
  23205. /* Define to 1 if you have the `chflags' function. */
  23206. /* #undef HAVE_CHFLAGS */
  23207. /* Define to 1 if you have the `chown' function. */
  23208. #define HAVE_CHOWN 1
  23209. /* Define to 1 if you have the `chroot' function. */
  23210. #define HAVE_CHROOT 1
  23211. /* Define to 1 if you have the <copyfile.h> header file. */
  23212. /* #undef HAVE_COPYFILE_H */
  23213. /* Define to 1 if you have the `ctime_r' function. */
  23214. #define HAVE_CTIME_R 1
  23215. /* Define to 1 if you have the <ctype.h> header file. */
  23216. #define HAVE_CTYPE_H 1
  23217. /* Define to 1 if you have the `cygwin_conv_path' function. */
  23218. /* #undef HAVE_CYGWIN_CONV_PATH */
  23219. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  23220. don't. */
  23221. /* #undef HAVE_DECL_ACE_GETACL */
  23222. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  23223. don't. */
  23224. /* #undef HAVE_DECL_ACE_GETACLCNT */
  23225. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  23226. don't. */
  23227. /* #undef HAVE_DECL_ACE_SETACL */
  23228. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  23229. you don't. */
  23230. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  23231. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  23232. you don't. */
  23233. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  23234. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  23235. don't. */
  23236. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  23237. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  23238. don't. */
  23239. /* #undef HAVE_DECL_ACL_USER */
  23240. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  23241. don't. */
  23242. #define HAVE_DECL_INT32_MAX 1
  23243. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  23244. don't. */
  23245. #define HAVE_DECL_INT32_MIN 1
  23246. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  23247. don't. */
  23248. #define HAVE_DECL_INT64_MAX 1
  23249. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  23250. don't. */
  23251. #define HAVE_DECL_INT64_MIN 1
  23252. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  23253. don't. */
  23254. #define HAVE_DECL_INTMAX_MAX 1
  23255. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  23256. don't. */
  23257. #define HAVE_DECL_INTMAX_MIN 1
  23258. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  23259. */
  23260. /* #undef HAVE_DECL_SETACL */
  23261. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  23262. don't. */
  23263. #define HAVE_DECL_SIZE_MAX 1
  23264. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  23265. don't. */
  23266. #define HAVE_DECL_SSIZE_MAX 1
  23267. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  23268. don't. */
  23269. #define HAVE_DECL_STRERROR_R 1
  23270. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  23271. don't. */
  23272. #define HAVE_DECL_UINT32_MAX 1
  23273. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  23274. don't. */
  23275. #define HAVE_DECL_UINT64_MAX 1
  23276. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  23277. don't. */
  23278. #define HAVE_DECL_UINTMAX_MAX 1
  23279. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  23280. you don't. */
  23281. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  23282. /* Define to 1 if you have the <direct.h> header file. */
  23283. /* #undef HAVE_DIRECT_H */
  23284. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  23285. */
  23286. #define HAVE_DIRENT_H 1
  23287. /* Define to 1 if you have the `dirfd' function. */
  23288. #define HAVE_DIRFD 1
  23289. /* Define to 1 if you have the <dlfcn.h> header file. */
  23290. #define HAVE_DLFCN_H 1
  23291. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  23292. /* #undef HAVE_DOPRNT */
  23293. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  23294. /* #undef HAVE_D_MD_ORDER */
  23295. /* A possible errno value for invalid file format errors */
  23296. /* #undef HAVE_EFTYPE */
  23297. /* A possible errno value for invalid file format errors */
  23298. #define HAVE_EILSEQ 1
  23299. /* Define to 1 if you have the <errno.h> header file. */
  23300. #define HAVE_ERRNO_H 1
  23301. /* Define to 1 if you have the <expat.h> header file. */
  23302. /* #undef HAVE_EXPAT_H */
  23303. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  23304. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  23305. /* Define to 1 if you have the `extattr_get_file' function. */
  23306. /* #undef HAVE_EXTATTR_GET_FILE */
  23307. /* Define to 1 if you have the `extattr_list_file' function. */
  23308. /* #undef HAVE_EXTATTR_LIST_FILE */
  23309. /* Define to 1 if you have the `extattr_set_fd' function. */
  23310. /* #undef HAVE_EXTATTR_SET_FD */
  23311. /* Define to 1 if you have the `extattr_set_file' function. */
  23312. /* #undef HAVE_EXTATTR_SET_FILE */
  23313. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  23314. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  23315. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  23316. */
  23317. /* #undef HAVE_DECL_GETACL */
  23318. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  23319. don't. */
  23320. /* #undef HAVE_DECL_GETACLCNT */
  23321. /* Define to 1 if you have the `fchdir' function. */
  23322. #define HAVE_FCHDIR 1
  23323. /* Define to 1 if you have the `fchflags' function. */
  23324. /* #undef HAVE_FCHFLAGS */
  23325. /* Define to 1 if you have the `fchmod' function. */
  23326. #define HAVE_FCHMOD 1
  23327. /* Define to 1 if you have the `fchown' function. */
  23328. #define HAVE_FCHOWN 1
  23329. /* Define to 1 if you have the `fcntl' function. */
  23330. #define HAVE_FCNTL 1
  23331. /* Define to 1 if you have the <fcntl.h> header file. */
  23332. #define HAVE_FCNTL_H 1
  23333. /* Define to 1 if you have the `fdopendir' function. */
  23334. #define HAVE_FDOPENDIR 1
  23335. /* Define to 1 if you have the `fgetea' function. */
  23336. /* #undef HAVE_FGETEA */
  23337. /* Define to 1 if you have the `fgetxattr' function. */
  23338. /* #undef HAVE_FGETXATTR */
  23339. /* Define to 1 if you have the `flistea' function. */
  23340. /* #undef HAVE_FLISTEA */
  23341. /* Define to 1 if you have the `flistxattr' function. */
  23342. /* #undef HAVE_FLISTXATTR */
  23343. /* Define to 1 if you have the `fork' function. */
  23344. #define HAVE_FORK 1
  23345. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  23346. #define HAVE_FSEEKO 1
  23347. /* Define to 1 if you have the `fsetea' function. */
  23348. /* #undef HAVE_FSETEA */
  23349. /* Define to 1 if you have the `fsetxattr' function. */
  23350. #define HAVE_FSETXATTR 1
  23351. /* Define to 1 if you have the `fstat' function. */
  23352. #define HAVE_FSTAT 1
  23353. /* Define to 1 if you have the `fstatat' function. */
  23354. #define HAVE_FSTATAT 1
  23355. /* Define to 1 if you have the `fstatfs' function. */
  23356. #define HAVE_FSTATFS 1
  23357. /* Define to 1 if you have the `fstatvfs' function. */
  23358. #define HAVE_FSTATVFS 1
  23359. /* Define to 1 if you have the `ftruncate' function. */
  23360. #define HAVE_FTRUNCATE 1
  23361. /* Define to 1 if you have the `futimens' function. */
  23362. #define HAVE_FUTIMENS 1
  23363. /* Define to 1 if you have the `futimes' function. */
  23364. #define HAVE_FUTIMES 1
  23365. /* Define to 1 if you have the `futimesat' function. */
  23366. #define HAVE_FUTIMESAT 1
  23367. /* Define to 1 if you have the `getea' function. */
  23368. /* #undef HAVE_GETEA */
  23369. /* Define to 1 if you have the `geteuid' function. */
  23370. #define HAVE_GETEUID 1
  23371. /* Define to 1 if you have the `getgrgid_r' function. */
  23372. #define HAVE_GETGRGID_R 1
  23373. /* Define to 1 if you have the `getgrnam_r' function. */
  23374. #define HAVE_GETGRNAM_R 1
  23375. /* Define to 1 if you have the `getpid' function. */
  23376. #define HAVE_GETPID 1
  23377. /* Define to 1 if you have the `getpwnam_r' function. */
  23378. #define HAVE_GETPWNAM_R 1
  23379. /* Define to 1 if you have the `getpwuid_r' function. */
  23380. #define HAVE_GETPWUID_R 1
  23381. /* Define to 1 if you have the `getvfsbyname' function. */
  23382. /* #undef HAVE_GETVFSBYNAME */
  23383. /* Define to 1 if you have the `getxattr' function. */
  23384. /* #undef HAVE_GETXATTR */
  23385. /* Define to 1 if you have the `gmtime_r' function. */
  23386. #define HAVE_GMTIME_R 1
  23387. /* Define to 1 if you have the <grp.h> header file. */
  23388. #define HAVE_GRP_H 1
  23389. /* Define to 1 if you have the `iconv' function. */
  23390. /* #undef HAVE_ICONV */
  23391. /* Define to 1 if you have the <iconv.h> header file. */
  23392. /* #undef HAVE_ICONV_H */
  23393. /* Define to 1 if you have the <inttypes.h> header file. */
  23394. #define HAVE_INTTYPES_H 1
  23395. /* Define to 1 if you have the <io.h> header file. */
  23396. /* #undef HAVE_IO_H */
  23397. /* Define to 1 if you have the <langinfo.h> header file. */
  23398. #define HAVE_LANGINFO_H 1
  23399. /* Define to 1 if you have the `lchflags' function. */
  23400. /* #undef HAVE_LCHFLAGS */
  23401. /* Define to 1 if you have the `lchmod' function. */
  23402. /* #undef HAVE_LCHMOD */
  23403. /* Define to 1 if you have the `lchown' function. */
  23404. #define HAVE_LCHOWN 1
  23405. /* Define to 1 if you have the `lgetea' function. */
  23406. /* #undef HAVE_LGETEA */
  23407. /* Define to 1 if you have the `lgetxattr' function. */
  23408. /* #undef HAVE_LGETXATTR */
  23409. /* Define to 1 if you have the `acl' library (-lacl). */
  23410. /* #undef HAVE_LIBACL */
  23411. /* Define to 1 if you have the `attr' library (-lattr). */
  23412. /* #undef HAVE_LIBATTR */
  23413. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  23414. /* #undef HAVE_LIBBSDXML */
  23415. /* Define to 1 if you have the `bz2' library (-lbz2). */
  23416. #define HAVE_LIBBZ2 1
  23417. /* Define to 1 if you have the `charset' library (-lcharset). */
  23418. /* #undef HAVE_LIBCHARSET */
  23419. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  23420. #define HAVE_LIBCRYPTO 1
  23421. /* Define to 1 if you have the `expat' library (-lexpat). */
  23422. /* #undef HAVE_LIBEXPAT */
  23423. /* Define to 1 if you have the `gcc' library (-lgcc). */
  23424. /* #undef HAVE_LIBGCC */
  23425. /* Define to 1 if you have the `lz4' library (-llz4). */
  23426. /* #undef HAVE_LIBLZ4 */
  23427. /* Define to 1 if you have the `lzma' library (-llzma). */
  23428. #define HAVE_LIBLZMA 1
  23429. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  23430. /* #undef HAVE_LIBLZMADEC */
  23431. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  23432. /* #undef HAVE_LIBLZO2 */
  23433. /* Define to 1 if you have the `nettle' library (-lnettle). */
  23434. /* #undef HAVE_LIBNETTLE */
  23435. /* Define to 1 if you have the `pcre' library (-lpcre). */
  23436. /* #undef HAVE_LIBPCRE */
  23437. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  23438. /* #undef HAVE_LIBPCREPOSIX */
  23439. /* Define to 1 if you have the `xml2' library (-lxml2). */
  23440. /* #undef HAVE_LIBXML2 */
  23441. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  23442. /* #undef HAVE_LIBXML_XMLREADER_H */
  23443. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  23444. /* #undef HAVE_LIBXML_XMLWRITER_H */
  23445. /* Define to 1 if you have the `z' library (-lz). */
  23446. #define HAVE_LIBZ 1
  23447. /* Define to 1 if you have the <limits.h> header file. */
  23448. #define HAVE_LIMITS_H 1
  23449. /* Define to 1 if you have the `link' function. */
  23450. #define HAVE_LINK 1
  23451. /* Define to 1 if you have the <linux/types.h> header file. */
  23452. #define HAVE_LINUX_TYPES_H 1
  23453. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  23454. #define HAVE_LINUX_FIEMAP_H 1
  23455. /* Define to 1 if you have the <linux/fs.h> header file. */
  23456. #define HAVE_LINUX_FS_H 1
  23457. /* Define to 1 if you have the <linux/magic.h> header file. */
  23458. #define HAVE_LINUX_MAGIC_H 1
  23459. /* Define to 1 if you have the <linux/types.h> header file. */
  23460. #define HAVE_LINUX_TYPES_H 1
  23461. /* Define to 1 if you have the `listea' function. */
  23462. /* #undef HAVE_LISTEA */
  23463. /* Define to 1 if you have the `listxattr' function. */
  23464. /* #undef HAVE_LISTXATTR */
  23465. /* Define to 1 if you have the `llistea' function. */
  23466. /* #undef HAVE_LLISTEA */
  23467. /* Define to 1 if you have the `llistxattr' function. */
  23468. /* #undef HAVE_LLISTXATTR */
  23469. /* Define to 1 if you have the <localcharset.h> header file. */
  23470. /* #undef HAVE_LOCALCHARSET_H */
  23471. /* Define to 1 if you have the `locale_charset' function. */
  23472. /* #undef HAVE_LOCALE_CHARSET */
  23473. /* Define to 1 if you have the <locale.h> header file. */
  23474. #define HAVE_LOCALE_H 1
  23475. /* Define to 1 if you have the `localtime_r' function. */
  23476. #define HAVE_LOCALTIME_R 1
  23477. /* Define to 1 if the system has the type `long long int'. */
  23478. /* #undef HAVE_LONG_LONG_INT */
  23479. /* Define to 1 if you have the `lsetea' function. */
  23480. /* #undef HAVE_LSETEA */
  23481. /* Define to 1 if you have the `lsetxattr' function. */
  23482. /* #undef HAVE_LSETXATTR */
  23483. /* Define to 1 if you have the `lstat' function. */
  23484. #define HAVE_LSTAT 1
  23485. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  23486. zero-length file name argument. */
  23487. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  23488. /* Define to 1 if you have the `lutimes' function. */
  23489. #define HAVE_LUTIMES 1
  23490. /* Define to 1 if you have the <lz4hc.h> header file. */
  23491. /* #undef HAVE_LZ4HC_H */
  23492. /* Define to 1 if you have the <lz4.h> header file. */
  23493. /* #undef HAVE_LZ4_H */
  23494. /* Define to 1 if you have the <lzmadec.h> header file. */
  23495. /* #undef HAVE_LZMADEC_H */
  23496. /* Define to 1 if you have the <lzma.h> header file. */
  23497. #define HAVE_LZMA_H 1
  23498. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  23499. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  23500. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  23501. /* #undef HAVE_LZO_LZO1X_H */
  23502. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  23503. /* #undef HAVE_LZO_LZOCONF_H */
  23504. /* Define to 1 if you have the `mbrtowc' function. */
  23505. #define HAVE_MBRTOWC 1
  23506. /* Define to 1 if you have the <membership.h> header file. */
  23507. /* #undef HAVE_MEMBERSHIP_H */
  23508. /* Define to 1 if you have the `memmove' function. */
  23509. #define HAVE_MEMMOVE 1
  23510. /* Define to 1 if you have the <memory.h> header file. */
  23511. #define HAVE_MEMORY_H 1
  23512. /* Define to 1 if you have the `mkdir' function. */
  23513. #define HAVE_MKDIR 1
  23514. /* Define to 1 if you have the `mkfifo' function. */
  23515. #define HAVE_MKFIFO 1
  23516. /* Define to 1 if you have the `mknod' function. */
  23517. #define HAVE_MKNOD 1
  23518. /* Define to 1 if you have the `mkstemp' function. */
  23519. #define HAVE_MKSTEMP 1
  23520. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  23521. /* #undef HAVE_NDIR_H */
  23522. /* Define to 1 if you have the <nettle/aes.h> header file. */
  23523. /* #undef HAVE_NETTLE_AES_H */
  23524. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  23525. /* #undef HAVE_NETTLE_HMAC_H */
  23526. /* Define to 1 if you have the <nettle/md5.h> header file. */
  23527. /* #undef HAVE_NETTLE_MD5_H */
  23528. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  23529. /* #undef HAVE_NETTLE_PBKDF2_H */
  23530. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  23531. /* #undef HAVE_NETTLE_RIPEMD160_H */
  23532. /* Define to 1 if you have the <nettle/sha.h> header file. */
  23533. /* #undef HAVE_NETTLE_SHA_H */
  23534. /* Define to 1 if you have the `nl_langinfo' function. */
  23535. #define HAVE_NL_LANGINFO 1
  23536. /* Define to 1 if you have the `openat' function. */
  23537. #define HAVE_OPENAT 1
  23538. /* Define to 1 if you have the <paths.h> header file. */
  23539. #define HAVE_PATHS_H 1
  23540. /* Define to 1 if you have the <pcreposix.h> header file. */
  23541. /* #undef HAVE_PCREPOSIX_H */
  23542. /* Define to 1 if you have the `pipe' function. */
  23543. #define HAVE_PIPE 1
  23544. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  23545. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  23546. /* Define to 1 if you have the `poll' function. */
  23547. #define HAVE_POLL 1
  23548. /* Define to 1 if you have the <poll.h> header file. */
  23549. #define HAVE_POLL_H 1
  23550. /* Define to 1 if you have the `posix_spawnp' function. */
  23551. #define HAVE_POSIX_SPAWNP 1
  23552. /* Define to 1 if you have the <process.h> header file. */
  23553. /* #undef HAVE_PROCESS_H */
  23554. /* Define to 1 if you have the <pthread.h> header file. */
  23555. /* #undef HAVE_PTHREAD_H */
  23556. /* Define to 1 if you have the <pwd.h> header file. */
  23557. #define HAVE_PWD_H 1
  23558. /* Define to 1 if you have the `readdir_r' function. */
  23559. #define HAVE_READDIR_R 1
  23560. /* Define to 1 if you have the `readlink' function. */
  23561. #define HAVE_READLINK 1
  23562. /* Define to 1 if you have the `readlinkat' function. */
  23563. #define HAVE_READLINKAT 1
  23564. /* Define to 1 if you have the `readpassphrase' function. */
  23565. /* #undef HAVE_READPASSPHRASE */
  23566. /* Define to 1 if you have the <readpassphrase.h> header file. */
  23567. /* #undef HAVE_READPASSPHRASE_H */
  23568. /* Define to 1 if you have the <regex.h> header file. */
  23569. #define HAVE_REGEX_H 1
  23570. /* Define to 1 if you have the `select' function. */
  23571. #define HAVE_SELECT 1
  23572. /* Define to 1 if you have the `setenv' function. */
  23573. #define HAVE_SETENV 1
  23574. /* Define to 1 if you have the `setlocale' function. */
  23575. #define HAVE_SETLOCALE 1
  23576. /* Define to 1 if you have the `sigaction' function. */
  23577. #define HAVE_SIGACTION 1
  23578. /* Define to 1 if you have the <signal.h> header file. */
  23579. #define HAVE_SIGNAL_H 1
  23580. /* Define to 1 if you have the <spawn.h> header file. */
  23581. #define HAVE_SPAWN_H 1
  23582. /* Define to 1 if you have the `statfs' function. */
  23583. #define HAVE_STATFS 1
  23584. /* Define to 1 if you have the `statvfs' function. */
  23585. #define HAVE_STATVFS 1
  23586. /* Define to 1 if `stat' has the bug that it succeeds when given the
  23587. zero-length file name argument. */
  23588. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  23589. /* Define to 1 if you have the <stdarg.h> header file. */
  23590. #define HAVE_STDARG_H 1
  23591. /* Define to 1 if you have the <stdint.h> header file. */
  23592. #define HAVE_STDINT_H 1
  23593. /* Define to 1 if you have the <stdlib.h> header file. */
  23594. #define HAVE_STDLIB_H 1
  23595. /* Define to 1 if you have the `strchr' function. */
  23596. #define HAVE_STRCHR 1
  23597. /* Define to 1 if you have the `strdup' function. */
  23598. #define HAVE_STRDUP 1
  23599. /* Define to 1 if you have the `strerror' function. */
  23600. #define HAVE_STRERROR 1
  23601. /* Define to 1 if you have the `strerror_r' function. */
  23602. #define HAVE_STRERROR_R 1
  23603. /* Define to 1 if you have the `strftime' function. */
  23604. #define HAVE_STRFTIME 1
  23605. /* Define to 1 if you have the <strings.h> header file. */
  23606. #define HAVE_STRINGS_H 1
  23607. /* Define to 1 if you have the <string.h> header file. */
  23608. #define HAVE_STRING_H 1
  23609. /* Define to 1 if you have the `strrchr' function. */
  23610. #define HAVE_STRRCHR 1
  23611. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  23612. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  23613. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  23614. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  23615. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  23616. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  23617. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  23618. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  23619. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  23620. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  23621. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  23622. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  23623. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  23624. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  23625. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  23626. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  23627. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  23628. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  23629. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  23630. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  23631. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  23632. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  23633. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  23634. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  23635. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  23636. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  23637. /* Define to 1 if you have `struct vfsconf'. */
  23638. /* #undef HAVE_STRUCT_VFSCONF */
  23639. /* Define to 1 if you have `struct xvfsconf'. */
  23640. /* #undef HAVE_STRUCT_XVFSCONF */
  23641. /* Define to 1 if you have the `symlink' function. */
  23642. #define HAVE_SYMLINK 1
  23643. /* Define to 1 if you have the <sys/acl.h> header file. */
  23644. /* #undef HAVE_SYS_ACL_H */
  23645. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  23646. #define HAVE_SYS_CDEFS_H 1
  23647. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  23648. */
  23649. /* #undef HAVE_SYS_DIR_H */
  23650. /* Define to 1 if you have the <sys/ea.h> header file. */
  23651. /* #undef HAVE_SYS_EA_H */
  23652. /* Define to 1 if you have the <sys/extattr.h> header file. */
  23653. /* #undef HAVE_SYS_EXTATTR_H */
  23654. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  23655. #define HAVE_SYS_IOCTL_H 1
  23656. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  23657. /* #undef HAVE_SYS_MKDEV_H */
  23658. /* Define to 1 if you have the <sys/mount.h> header file. */
  23659. /* #undef HAVE_SYS_MOUNT_H */
  23660. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  23661. */
  23662. /* #undef HAVE_SYS_NDIR_H */
  23663. /* Define to 1 if you have the <sys/param.h> header file. */
  23664. #define HAVE_SYS_PARAM_H 1
  23665. /* Define to 1 if you have the <sys/poll.h> header file. */
  23666. #define HAVE_SYS_POLL_H 1
  23667. /* Define to 1 if you have the <sys/richacl.h> header file. */
  23668. /* #undef HAVE_SYS_RICHACL_H */
  23669. /* Define to 1 if you have the <sys/select.h> header file. */
  23670. #define HAVE_SYS_SELECT_H 1
  23671. /* Define to 1 if you have the <sys/statfs.h> header file. */
  23672. #define HAVE_SYS_STATFS_H 1
  23673. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  23674. #define HAVE_SYS_STATVFS_H 1
  23675. /* Define to 1 if you have the <sys/stat.h> header file. */
  23676. #define HAVE_SYS_STAT_H 1
  23677. /* Define to 1 if you have the <sys/time.h> header file. */
  23678. #define HAVE_SYS_TIME_H 1
  23679. /* Define to 1 if you have the <sys/types.h> header file. */
  23680. #define HAVE_SYS_TYPES_H 1
  23681. /* Define to 1 if you have the <sys/utime.h> header file. */
  23682. /* #undef HAVE_SYS_UTIME_H */
  23683. /* Define to 1 if you have the <sys/utsname.h> header file. */
  23684. #define HAVE_SYS_UTSNAME_H 1
  23685. /* Define to 1 if you have the <sys/vfs.h> header file. */
  23686. #define HAVE_SYS_VFS_H 1
  23687. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  23688. #define HAVE_SYS_WAIT_H 1
  23689. /* Define to 1 if you have the <sys/xattr.h> header file. */
  23690. #define HAVE_SYS_XATTR_H 1
  23691. /* Define to 1 if you have the `timegm' function. */
  23692. #define HAVE_TIMEGM 1
  23693. /* Define to 1 if you have the <time.h> header file. */
  23694. #define HAVE_TIME_H 1
  23695. /* Define to 1 if you have the `tzset' function. */
  23696. #define HAVE_TZSET 1
  23697. /* Define to 1 if you have the <unistd.h> header file. */
  23698. #define HAVE_UNISTD_H 1
  23699. /* Define to 1 if you have the `unsetenv' function. */
  23700. #define HAVE_UNSETENV 1
  23701. /* Define to 1 if the system has the type `unsigned long long'. */
  23702. /* #undef HAVE_UNSIGNED_LONG_LONG */
  23703. /* Define to 1 if the system has the type `unsigned long long int'. */
  23704. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  23705. /* Define to 1 if you have the `utime' function. */
  23706. #define HAVE_UTIME 1
  23707. /* Define to 1 if you have the `utimensat' function. */
  23708. #define HAVE_UTIMENSAT 1
  23709. /* Define to 1 if you have the `utimes' function. */
  23710. #define HAVE_UTIMES 1
  23711. /* Define to 1 if you have the <utime.h> header file. */
  23712. #define HAVE_UTIME_H 1
  23713. /* Define to 1 if you have the `vfork' function. */
  23714. #define HAVE_VFORK 1
  23715. /* Define to 1 if you have the `vprintf' function. */
  23716. #define HAVE_VPRINTF 1
  23717. /* Define to 1 if you have the <wchar.h> header file. */
  23718. #define HAVE_WCHAR_H 1
  23719. /* Define to 1 if the system has the type `wchar_t'. */
  23720. #define HAVE_WCHAR_T 1
  23721. /* Define to 1 if you have the `wcrtomb' function. */
  23722. #define HAVE_WCRTOMB 1
  23723. /* Define to 1 if you have the `wcscmp' function. */
  23724. #define HAVE_WCSCMP 1
  23725. /* Define to 1 if you have the `wcscpy' function. */
  23726. #define HAVE_WCSCPY 1
  23727. /* Define to 1 if you have the `wcslen' function. */
  23728. #define HAVE_WCSLEN 1
  23729. /* Define to 1 if you have the `wctomb' function. */
  23730. #define HAVE_WCTOMB 1
  23731. /* Define to 1 if you have the <wctype.h> header file. */
  23732. #define HAVE_WCTYPE_H 1
  23733. /* Define to 1 if you have the <wincrypt.h> header file. */
  23734. /* #undef HAVE_WINCRYPT_H */
  23735. /* Define to 1 if you have the <windows.h> header file. */
  23736. /* #undef HAVE_WINDOWS_H */
  23737. /* Define to 1 if you have the <winioctl.h> header file. */
  23738. /* #undef HAVE_WINIOCTL_H */
  23739. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  23740. /* #undef HAVE__CrtSetReportMode */
  23741. /* Define to 1 if you have the `wmemcmp' function. */
  23742. #define HAVE_WMEMCMP 1
  23743. /* Define to 1 if you have the `wmemcpy' function. */
  23744. #define HAVE_WMEMCPY 1
  23745. /* Define to 1 if you have the `wmemmove' function. */
  23746. #define HAVE_WMEMMOVE 1
  23747. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  23748. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  23749. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  23750. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  23751. /* Define to 1 if you have the <zlib.h> header file. */
  23752. #define HAVE_ZLIB_H 1
  23753. /* Define to 1 if you have the `_ctime64_s' function. */
  23754. /* #undef HAVE__CTIME64_S */
  23755. /* Define to 1 if you have the `_fseeki64' function. */
  23756. /* #undef HAVE__FSEEKI64 */
  23757. /* Define to 1 if you have the `_get_timezone' function. */
  23758. /* #undef HAVE__GET_TIMEZONE */
  23759. /* Define to 1 if you have the `_localtime64_s' function. */
  23760. /* #undef HAVE__LOCALTIME64_S */
  23761. /* Define to 1 if you have the `_mkgmtime64' function. */
  23762. /* #undef HAVE__MKGMTIME64 */
  23763. /* Define as const if the declaration of iconv() needs const. */
  23764. #define ICONV_CONST
  23765. /* Version number of libarchive as a single integer */
  23766. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  23767. /* Version number of libarchive */
  23768. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  23769. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  23770. slash. */
  23771. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  23772. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  23773. */
  23774. /* #undef MAJOR_IN_MKDEV */
  23775. /* Define to 1 if `major', `minor', and `makedev' are declared in
  23776. <sysmacros.h>. */
  23777. #define MAJOR_IN_SYSMACROS 1
  23778. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  23779. /* #undef NO_MINUS_C_MINUS_O */
  23780. /* The size of `wchar_t', as computed by sizeof. */
  23781. #define SIZEOF_WCHAR_T 4
  23782. /* Define to 1 if strerror_r returns char *. */
  23783. /* #undef STRERROR_R_CHAR_P */
  23784. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  23785. #define TIME_WITH_SYS_TIME 1
  23786. /*
  23787. * Some platform requires a macro to use extension functions.
  23788. */
  23789. #define SAFE_TO_DEFINE_EXTENSIONS 1
  23790. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  23791. /* Enable extensions on AIX 3, Interix. */
  23792. #ifndef _ALL_SOURCE
  23793. # define _ALL_SOURCE 1
  23794. #endif
  23795. /* Enable GNU extensions on systems that have them. */
  23796. #ifndef _GNU_SOURCE
  23797. # define _GNU_SOURCE 1
  23798. #endif
  23799. /* Enable threading extensions on Solaris. */
  23800. #ifndef _POSIX_PTHREAD_SEMANTICS
  23801. # define _POSIX_PTHREAD_SEMANTICS 1
  23802. #endif
  23803. /* Enable extensions on HP NonStop. */
  23804. #ifndef _TANDEM_SOURCE
  23805. # define _TANDEM_SOURCE 1
  23806. #endif
  23807. /* Enable general extensions on Solaris. */
  23808. #ifndef __EXTENSIONS__
  23809. # define __EXTENSIONS__ 1
  23810. #endif
  23811. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  23812. /* Version number of package */
  23813. #define VERSION "3.3.2"
  23814. /* Number of bits in a file offset, on hosts where this is settable. */
  23815. /* #undef _FILE_OFFSET_BITS */
  23816. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  23817. /* #undef _LARGEFILE_SOURCE */
  23818. /* Define for large files, on AIX-style hosts. */
  23819. /* #undef _LARGE_FILES */
  23820. /* Define to control Windows SDK version */
  23821. #ifndef NTDDI_VERSION
  23822. /* #undef NTDDI_VERSION */
  23823. #endif // NTDDI_VERSION
  23824. #ifndef _WIN32_WINNT
  23825. /* #undef _WIN32_WINNT */
  23826. #endif // _WIN32_WINNT
  23827. #ifndef WINVER
  23828. /* #undef WINVER */
  23829. #endif // WINVER
  23830. /* Define to empty if `const' does not conform to ANSI C. */
  23831. /* #undef const */
  23832. /* Define to `int' if <sys/types.h> doesn't define. */
  23833. /* #undef gid_t */
  23834. /* Define to `unsigned long' if <sys/types.h> does not define. */
  23835. /* #undef id_t */
  23836. /* Define to `int' if <sys/types.h> does not define. */
  23837. /* #undef mode_t */
  23838. /* Define to `long long' if <sys/types.h> does not define. */
  23839. /* #undef off_t */
  23840. /* Define to `int' if <sys/types.h> doesn't define. */
  23841. /* #undef pid_t */
  23842. /* Define to `unsigned int' if <sys/types.h> does not define. */
  23843. /* #undef size_t */
  23844. /* Define to `int' if <sys/types.h> does not define. */
  23845. /* #undef ssize_t */
  23846. /* Define to `int' if <sys/types.h> doesn't define. */
  23847. /* #undef uid_t */
  23848. /* Define to `int' if <sys/types.h> does not define. */
  23849. /* #undef intptr_t */
  23850. /* Define to `unsigned int' if <sys/types.h> does not define. */
  23851. /* #undef uintptr_t */
  23852. #define ARCHIVE_SHA384_COMPILE_TEST
  23853. #define ARCHIVE_CRYPTO_SHA384_LIBC2
  23854. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  23855. /*-
  23856. * Copyright (c) 2003-2007 Tim Kientzle
  23857. * Copyright (c) 2011 Andres Mejia
  23858. * Copyright (c) 2011 Michihiro NAKAJIMA
  23859. * All rights reserved.
  23860. *
  23861. * Redistribution and use in source and binary forms, with or without
  23862. * modification, are permitted provided that the following conditions
  23863. * are met:
  23864. * 1. Redistributions of source code must retain the above copyright
  23865. * notice, this list of conditions and the following disclaimer.
  23866. * 2. Redistributions in binary form must reproduce the above copyright
  23867. * notice, this list of conditions and the following disclaimer in the
  23868. * documentation and/or other materials provided with the distribution.
  23869. *
  23870. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  23871. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  23872. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  23873. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  23874. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  23875. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  23876. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  23877. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  23878. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  23879. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  23880. */
  23881. #include "archive_platform.h"
  23882. #include "archive.h"
  23883. #include "archive_digest_private.h"
  23884. /* In particular, force the configure probe to break if it tries
  23885. * to test a combination of OpenSSL and libmd. */
  23886. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  23887. #error Cannot use both OpenSSL and libmd.
  23888. #endif
  23889. /*
  23890. * Message digest functions for Windows platform.
  23891. */
  23892. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  23893. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  23894. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  23895. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  23896. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  23897. /*
  23898. * Initialize a Message digest.
  23899. */
  23900. static int
  23901. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  23902. {
  23903. ctx->valid = 0;
  23904. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  23905. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  23906. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  23907. return (ARCHIVE_FAILED);
  23908. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  23909. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  23910. return (ARCHIVE_FAILED);
  23911. }
  23912. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  23913. CryptReleaseContext(ctx->cryptProv, 0);
  23914. return (ARCHIVE_FAILED);
  23915. }
  23916. ctx->valid = 1;
  23917. return (ARCHIVE_OK);
  23918. }
  23919. /*
  23920. * Update a Message digest.
  23921. */
  23922. static int
  23923. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  23924. {
  23925. if (!ctx->valid)
  23926. return (ARCHIVE_FAILED);
  23927. CryptHashData(ctx->hash,
  23928. (unsigned char *)(uintptr_t)buf,
  23929. (DWORD)len, 0);
  23930. return (ARCHIVE_OK);
  23931. }
  23932. static int
  23933. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  23934. {
  23935. DWORD siglen = (DWORD)bufsize;
  23936. if (!ctx->valid)
  23937. return (ARCHIVE_FAILED);
  23938. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  23939. CryptDestroyHash(ctx->hash);
  23940. CryptReleaseContext(ctx->cryptProv, 0);
  23941. ctx->valid = 0;
  23942. return (ARCHIVE_OK);
  23943. }
  23944. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  23945. /* MD5 implementations */
  23946. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  23947. static int
  23948. __archive_libc_md5init(archive_md5_ctx *ctx)
  23949. {
  23950. MD5Init(ctx);
  23951. return (ARCHIVE_OK);
  23952. }
  23953. static int
  23954. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  23955. size_t insize)
  23956. {
  23957. MD5Update(ctx, indata, insize);
  23958. return (ARCHIVE_OK);
  23959. }
  23960. static int
  23961. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  23962. {
  23963. MD5Final(md, ctx);
  23964. return (ARCHIVE_OK);
  23965. }
  23966. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  23967. static int
  23968. __archive_libmd_md5init(archive_md5_ctx *ctx)
  23969. {
  23970. MD5Init(ctx);
  23971. return (ARCHIVE_OK);
  23972. }
  23973. static int
  23974. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  23975. size_t insize)
  23976. {
  23977. MD5Update(ctx, indata, insize);
  23978. return (ARCHIVE_OK);
  23979. }
  23980. static int
  23981. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  23982. {
  23983. MD5Final(md, ctx);
  23984. return (ARCHIVE_OK);
  23985. }
  23986. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  23987. static int
  23988. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  23989. {
  23990. CC_MD5_Init(ctx);
  23991. return (ARCHIVE_OK);
  23992. }
  23993. static int
  23994. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  23995. size_t insize)
  23996. {
  23997. CC_MD5_Update(ctx, indata, insize);
  23998. return (ARCHIVE_OK);
  23999. }
  24000. static int
  24001. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  24002. {
  24003. CC_MD5_Final(md, ctx);
  24004. return (ARCHIVE_OK);
  24005. }
  24006. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  24007. static int
  24008. __archive_nettle_md5init(archive_md5_ctx *ctx)
  24009. {
  24010. md5_init(ctx);
  24011. return (ARCHIVE_OK);
  24012. }
  24013. static int
  24014. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  24015. size_t insize)
  24016. {
  24017. md5_update(ctx, insize, indata);
  24018. return (ARCHIVE_OK);
  24019. }
  24020. static int
  24021. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  24022. {
  24023. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  24024. return (ARCHIVE_OK);
  24025. }
  24026. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  24027. static int
  24028. __archive_openssl_md5init(archive_md5_ctx *ctx)
  24029. {
  24030. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  24031. return (ARCHIVE_FAILED);
  24032. EVP_DigestInit(*ctx, EVP_md5());
  24033. return (ARCHIVE_OK);
  24034. }
  24035. static int
  24036. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  24037. size_t insize)
  24038. {
  24039. EVP_DigestUpdate(*ctx, indata, insize);
  24040. return (ARCHIVE_OK);
  24041. }
  24042. static int
  24043. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  24044. {
  24045. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  24046. * this is meant to cope with that. Real fix is probably to fix
  24047. * archive_write_set_format_xar.c
  24048. */
  24049. if (*ctx) {
  24050. EVP_DigestFinal(*ctx, md, NULL);
  24051. EVP_MD_CTX_free(*ctx);
  24052. *ctx = NULL;
  24053. }
  24054. return (ARCHIVE_OK);
  24055. }
  24056. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  24057. static int
  24058. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  24059. {
  24060. return (win_crypto_init(ctx, CALG_MD5));
  24061. }
  24062. static int
  24063. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  24064. size_t insize)
  24065. {
  24066. return (win_crypto_Update(ctx, indata, insize));
  24067. }
  24068. static int
  24069. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  24070. {
  24071. return (win_crypto_Final(md, 16, ctx));
  24072. }
  24073. #else
  24074. static int
  24075. __archive_stub_md5init(archive_md5_ctx *ctx)
  24076. {
  24077. (void)ctx; /* UNUSED */
  24078. return (ARCHIVE_FAILED);
  24079. }
  24080. static int
  24081. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  24082. size_t insize)
  24083. {
  24084. (void)ctx; /* UNUSED */
  24085. (void)indata; /* UNUSED */
  24086. (void)insize; /* UNUSED */
  24087. return (ARCHIVE_FAILED);
  24088. }
  24089. static int
  24090. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  24091. {
  24092. (void)ctx; /* UNUSED */
  24093. (void)md; /* UNUSED */
  24094. return (ARCHIVE_FAILED);
  24095. }
  24096. #endif
  24097. /* RIPEMD160 implementations */
  24098. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  24099. static int
  24100. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  24101. {
  24102. RMD160Init(ctx);
  24103. return (ARCHIVE_OK);
  24104. }
  24105. static int
  24106. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  24107. size_t insize)
  24108. {
  24109. RMD160Update(ctx, indata, insize);
  24110. return (ARCHIVE_OK);
  24111. }
  24112. static int
  24113. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  24114. {
  24115. RMD160Final(md, ctx);
  24116. return (ARCHIVE_OK);
  24117. }
  24118. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  24119. static int
  24120. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  24121. {
  24122. RIPEMD160_Init(ctx);
  24123. return (ARCHIVE_OK);
  24124. }
  24125. static int
  24126. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  24127. size_t insize)
  24128. {
  24129. RIPEMD160_Update(ctx, indata, insize);
  24130. return (ARCHIVE_OK);
  24131. }
  24132. static int
  24133. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  24134. {
  24135. RIPEMD160_Final(md, ctx);
  24136. return (ARCHIVE_OK);
  24137. }
  24138. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  24139. static int
  24140. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  24141. {
  24142. ripemd160_init(ctx);
  24143. return (ARCHIVE_OK);
  24144. }
  24145. static int
  24146. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  24147. size_t insize)
  24148. {
  24149. ripemd160_update(ctx, insize, indata);
  24150. return (ARCHIVE_OK);
  24151. }
  24152. static int
  24153. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  24154. {
  24155. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  24156. return (ARCHIVE_OK);
  24157. }
  24158. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  24159. static int
  24160. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  24161. {
  24162. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  24163. return (ARCHIVE_FAILED);
  24164. EVP_DigestInit(*ctx, EVP_ripemd160());
  24165. return (ARCHIVE_OK);
  24166. }
  24167. static int
  24168. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  24169. size_t insize)
  24170. {
  24171. EVP_DigestUpdate(*ctx, indata, insize);
  24172. return (ARCHIVE_OK);
  24173. }
  24174. static int
  24175. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  24176. {
  24177. if (*ctx) {
  24178. EVP_DigestFinal(*ctx, md, NULL);
  24179. EVP_MD_CTX_free(*ctx);
  24180. *ctx = NULL;
  24181. }
  24182. return (ARCHIVE_OK);
  24183. }
  24184. #else
  24185. static int
  24186. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  24187. {
  24188. (void)ctx; /* UNUSED */
  24189. return (ARCHIVE_FAILED);
  24190. }
  24191. static int
  24192. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  24193. size_t insize)
  24194. {
  24195. (void)ctx; /* UNUSED */
  24196. (void)indata; /* UNUSED */
  24197. (void)insize; /* UNUSED */
  24198. return (ARCHIVE_FAILED);
  24199. }
  24200. static int
  24201. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  24202. {
  24203. (void)ctx; /* UNUSED */
  24204. (void)md; /* UNUSED */
  24205. return (ARCHIVE_FAILED);
  24206. }
  24207. #endif
  24208. /* SHA1 implementations */
  24209. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  24210. static int
  24211. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  24212. {
  24213. SHA1Init(ctx);
  24214. return (ARCHIVE_OK);
  24215. }
  24216. static int
  24217. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  24218. size_t insize)
  24219. {
  24220. SHA1Update(ctx, indata, insize);
  24221. return (ARCHIVE_OK);
  24222. }
  24223. static int
  24224. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  24225. {
  24226. SHA1Final(md, ctx);
  24227. return (ARCHIVE_OK);
  24228. }
  24229. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  24230. static int
  24231. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  24232. {
  24233. SHA1_Init(ctx);
  24234. return (ARCHIVE_OK);
  24235. }
  24236. static int
  24237. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  24238. size_t insize)
  24239. {
  24240. SHA1_Update(ctx, indata, insize);
  24241. return (ARCHIVE_OK);
  24242. }
  24243. static int
  24244. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  24245. {
  24246. SHA1_Final(md, ctx);
  24247. return (ARCHIVE_OK);
  24248. }
  24249. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  24250. static int
  24251. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  24252. {
  24253. CC_SHA1_Init(ctx);
  24254. return (ARCHIVE_OK);
  24255. }
  24256. static int
  24257. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  24258. size_t insize)
  24259. {
  24260. CC_SHA1_Update(ctx, indata, insize);
  24261. return (ARCHIVE_OK);
  24262. }
  24263. static int
  24264. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  24265. {
  24266. CC_SHA1_Final(md, ctx);
  24267. return (ARCHIVE_OK);
  24268. }
  24269. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  24270. static int
  24271. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  24272. {
  24273. sha1_init(ctx);
  24274. return (ARCHIVE_OK);
  24275. }
  24276. static int
  24277. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  24278. size_t insize)
  24279. {
  24280. sha1_update(ctx, insize, indata);
  24281. return (ARCHIVE_OK);
  24282. }
  24283. static int
  24284. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  24285. {
  24286. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  24287. return (ARCHIVE_OK);
  24288. }
  24289. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  24290. static int
  24291. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  24292. {
  24293. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  24294. return (ARCHIVE_FAILED);
  24295. EVP_DigestInit(*ctx, EVP_sha1());
  24296. return (ARCHIVE_OK);
  24297. }
  24298. static int
  24299. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  24300. size_t insize)
  24301. {
  24302. EVP_DigestUpdate(*ctx, indata, insize);
  24303. return (ARCHIVE_OK);
  24304. }
  24305. static int
  24306. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  24307. {
  24308. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  24309. * this is meant to cope with that. Real fix is probably to fix
  24310. * archive_write_set_format_xar.c
  24311. */
  24312. if (*ctx) {
  24313. EVP_DigestFinal(*ctx, md, NULL);
  24314. EVP_MD_CTX_free(*ctx);
  24315. *ctx = NULL;
  24316. }
  24317. return (ARCHIVE_OK);
  24318. }
  24319. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  24320. static int
  24321. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  24322. {
  24323. return (win_crypto_init(ctx, CALG_SHA1));
  24324. }
  24325. static int
  24326. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  24327. size_t insize)
  24328. {
  24329. return (win_crypto_Update(ctx, indata, insize));
  24330. }
  24331. static int
  24332. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  24333. {
  24334. return (win_crypto_Final(md, 20, ctx));
  24335. }
  24336. #else
  24337. static int
  24338. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  24339. {
  24340. (void)ctx; /* UNUSED */
  24341. return (ARCHIVE_FAILED);
  24342. }
  24343. static int
  24344. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  24345. size_t insize)
  24346. {
  24347. (void)ctx; /* UNUSED */
  24348. (void)indata; /* UNUSED */
  24349. (void)insize; /* UNUSED */
  24350. return (ARCHIVE_FAILED);
  24351. }
  24352. static int
  24353. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  24354. {
  24355. (void)ctx; /* UNUSED */
  24356. (void)md; /* UNUSED */
  24357. return (ARCHIVE_FAILED);
  24358. }
  24359. #endif
  24360. /* SHA256 implementations */
  24361. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  24362. static int
  24363. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  24364. {
  24365. SHA256_Init(ctx);
  24366. return (ARCHIVE_OK);
  24367. }
  24368. static int
  24369. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  24370. size_t insize)
  24371. {
  24372. SHA256_Update(ctx, indata, insize);
  24373. return (ARCHIVE_OK);
  24374. }
  24375. static int
  24376. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  24377. {
  24378. SHA256_Final(md, ctx);
  24379. return (ARCHIVE_OK);
  24380. }
  24381. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  24382. static int
  24383. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  24384. {
  24385. SHA256Init(ctx);
  24386. return (ARCHIVE_OK);
  24387. }
  24388. static int
  24389. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  24390. size_t insize)
  24391. {
  24392. SHA256Update(ctx, indata, insize);
  24393. return (ARCHIVE_OK);
  24394. }
  24395. static int
  24396. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  24397. {
  24398. SHA256Final(md, ctx);
  24399. return (ARCHIVE_OK);
  24400. }
  24401. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  24402. static int
  24403. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  24404. {
  24405. SHA256Init(ctx);
  24406. return (ARCHIVE_OK);
  24407. }
  24408. static int
  24409. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  24410. size_t insize)
  24411. {
  24412. SHA256Update(ctx, indata, insize);
  24413. return (ARCHIVE_OK);
  24414. }
  24415. static int
  24416. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  24417. {
  24418. SHA256Final(md, ctx);
  24419. return (ARCHIVE_OK);
  24420. }
  24421. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  24422. static int
  24423. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  24424. {
  24425. SHA256_Init(ctx);
  24426. return (ARCHIVE_OK);
  24427. }
  24428. static int
  24429. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  24430. size_t insize)
  24431. {
  24432. SHA256_Update(ctx, indata, insize);
  24433. return (ARCHIVE_OK);
  24434. }
  24435. static int
  24436. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  24437. {
  24438. SHA256_Final(md, ctx);
  24439. return (ARCHIVE_OK);
  24440. }
  24441. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  24442. static int
  24443. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  24444. {
  24445. CC_SHA256_Init(ctx);
  24446. return (ARCHIVE_OK);
  24447. }
  24448. static int
  24449. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  24450. size_t insize)
  24451. {
  24452. CC_SHA256_Update(ctx, indata, insize);
  24453. return (ARCHIVE_OK);
  24454. }
  24455. static int
  24456. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  24457. {
  24458. CC_SHA256_Final(md, ctx);
  24459. return (ARCHIVE_OK);
  24460. }
  24461. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  24462. static int
  24463. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  24464. {
  24465. sha256_init(ctx);
  24466. return (ARCHIVE_OK);
  24467. }
  24468. static int
  24469. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  24470. size_t insize)
  24471. {
  24472. sha256_update(ctx, insize, indata);
  24473. return (ARCHIVE_OK);
  24474. }
  24475. static int
  24476. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  24477. {
  24478. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  24479. return (ARCHIVE_OK);
  24480. }
  24481. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  24482. static int
  24483. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  24484. {
  24485. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  24486. return (ARCHIVE_FAILED);
  24487. EVP_DigestInit(*ctx, EVP_sha256());
  24488. return (ARCHIVE_OK);
  24489. }
  24490. static int
  24491. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  24492. size_t insize)
  24493. {
  24494. EVP_DigestUpdate(*ctx, indata, insize);
  24495. return (ARCHIVE_OK);
  24496. }
  24497. static int
  24498. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  24499. {
  24500. if (*ctx) {
  24501. EVP_DigestFinal(*ctx, md, NULL);
  24502. EVP_MD_CTX_free(*ctx);
  24503. *ctx = NULL;
  24504. }
  24505. return (ARCHIVE_OK);
  24506. }
  24507. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  24508. static int
  24509. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  24510. {
  24511. return (win_crypto_init(ctx, CALG_SHA_256));
  24512. }
  24513. static int
  24514. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  24515. size_t insize)
  24516. {
  24517. return (win_crypto_Update(ctx, indata, insize));
  24518. }
  24519. static int
  24520. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  24521. {
  24522. return (win_crypto_Final(md, 32, ctx));
  24523. }
  24524. #else
  24525. static int
  24526. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  24527. {
  24528. (void)ctx; /* UNUSED */
  24529. return (ARCHIVE_FAILED);
  24530. }
  24531. static int
  24532. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  24533. size_t insize)
  24534. {
  24535. (void)ctx; /* UNUSED */
  24536. (void)indata; /* UNUSED */
  24537. (void)insize; /* UNUSED */
  24538. return (ARCHIVE_FAILED);
  24539. }
  24540. static int
  24541. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  24542. {
  24543. (void)ctx; /* UNUSED */
  24544. (void)md; /* UNUSED */
  24545. return (ARCHIVE_FAILED);
  24546. }
  24547. #endif
  24548. /* SHA384 implementations */
  24549. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  24550. static int
  24551. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  24552. {
  24553. SHA384_Init(ctx);
  24554. return (ARCHIVE_OK);
  24555. }
  24556. static int
  24557. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  24558. size_t insize)
  24559. {
  24560. SHA384_Update(ctx, indata, insize);
  24561. return (ARCHIVE_OK);
  24562. }
  24563. static int
  24564. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  24565. {
  24566. SHA384_Final(md, ctx);
  24567. return (ARCHIVE_OK);
  24568. }
  24569. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  24570. static int
  24571. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  24572. {
  24573. SHA384Init(ctx);
  24574. return (ARCHIVE_OK);
  24575. }
  24576. static int
  24577. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  24578. size_t insize)
  24579. {
  24580. SHA384Update(ctx, indata, insize);
  24581. return (ARCHIVE_OK);
  24582. }
  24583. static int
  24584. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  24585. {
  24586. SHA384Final(md, ctx);
  24587. return (ARCHIVE_OK);
  24588. }
  24589. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  24590. static int
  24591. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  24592. {
  24593. SHA384Init(ctx);
  24594. return (ARCHIVE_OK);
  24595. }
  24596. static int
  24597. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  24598. size_t insize)
  24599. {
  24600. SHA384Update(ctx, indata, insize);
  24601. return (ARCHIVE_OK);
  24602. }
  24603. static int
  24604. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  24605. {
  24606. SHA384Final(md, ctx);
  24607. return (ARCHIVE_OK);
  24608. }
  24609. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  24610. static int
  24611. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  24612. {
  24613. CC_SHA384_Init(ctx);
  24614. return (ARCHIVE_OK);
  24615. }
  24616. static int
  24617. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  24618. size_t insize)
  24619. {
  24620. CC_SHA384_Update(ctx, indata, insize);
  24621. return (ARCHIVE_OK);
  24622. }
  24623. static int
  24624. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  24625. {
  24626. CC_SHA384_Final(md, ctx);
  24627. return (ARCHIVE_OK);
  24628. }
  24629. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  24630. static int
  24631. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  24632. {
  24633. sha384_init(ctx);
  24634. return (ARCHIVE_OK);
  24635. }
  24636. static int
  24637. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  24638. size_t insize)
  24639. {
  24640. sha384_update(ctx, insize, indata);
  24641. return (ARCHIVE_OK);
  24642. }
  24643. static int
  24644. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  24645. {
  24646. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  24647. return (ARCHIVE_OK);
  24648. }
  24649. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  24650. static int
  24651. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  24652. {
  24653. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  24654. return (ARCHIVE_FAILED);
  24655. EVP_DigestInit(*ctx, EVP_sha384());
  24656. return (ARCHIVE_OK);
  24657. }
  24658. static int
  24659. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  24660. size_t insize)
  24661. {
  24662. EVP_DigestUpdate(*ctx, indata, insize);
  24663. return (ARCHIVE_OK);
  24664. }
  24665. static int
  24666. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  24667. {
  24668. if (*ctx) {
  24669. EVP_DigestFinal(*ctx, md, NULL);
  24670. EVP_MD_CTX_free(*ctx);
  24671. *ctx = NULL;
  24672. }
  24673. return (ARCHIVE_OK);
  24674. }
  24675. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  24676. static int
  24677. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  24678. {
  24679. return (win_crypto_init(ctx, CALG_SHA_384));
  24680. }
  24681. static int
  24682. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  24683. size_t insize)
  24684. {
  24685. return (win_crypto_Update(ctx, indata, insize));
  24686. }
  24687. static int
  24688. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  24689. {
  24690. return (win_crypto_Final(md, 48, ctx));
  24691. }
  24692. #else
  24693. static int
  24694. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  24695. {
  24696. (void)ctx; /* UNUSED */
  24697. return (ARCHIVE_FAILED);
  24698. }
  24699. static int
  24700. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  24701. size_t insize)
  24702. {
  24703. (void)ctx; /* UNUSED */
  24704. (void)indata; /* UNUSED */
  24705. (void)insize; /* UNUSED */
  24706. return (ARCHIVE_FAILED);
  24707. }
  24708. static int
  24709. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  24710. {
  24711. (void)ctx; /* UNUSED */
  24712. (void)md; /* UNUSED */
  24713. return (ARCHIVE_FAILED);
  24714. }
  24715. #endif
  24716. /* SHA512 implementations */
  24717. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  24718. static int
  24719. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  24720. {
  24721. SHA512_Init(ctx);
  24722. return (ARCHIVE_OK);
  24723. }
  24724. static int
  24725. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  24726. size_t insize)
  24727. {
  24728. SHA512_Update(ctx, indata, insize);
  24729. return (ARCHIVE_OK);
  24730. }
  24731. static int
  24732. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  24733. {
  24734. SHA512_Final(md, ctx);
  24735. return (ARCHIVE_OK);
  24736. }
  24737. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  24738. static int
  24739. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  24740. {
  24741. SHA512Init(ctx);
  24742. return (ARCHIVE_OK);
  24743. }
  24744. static int
  24745. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  24746. size_t insize)
  24747. {
  24748. SHA512Update(ctx, indata, insize);
  24749. return (ARCHIVE_OK);
  24750. }
  24751. static int
  24752. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  24753. {
  24754. SHA512Final(md, ctx);
  24755. return (ARCHIVE_OK);
  24756. }
  24757. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  24758. static int
  24759. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  24760. {
  24761. SHA512Init(ctx);
  24762. return (ARCHIVE_OK);
  24763. }
  24764. static int
  24765. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  24766. size_t insize)
  24767. {
  24768. SHA512Update(ctx, indata, insize);
  24769. return (ARCHIVE_OK);
  24770. }
  24771. static int
  24772. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  24773. {
  24774. SHA512Final(md, ctx);
  24775. return (ARCHIVE_OK);
  24776. }
  24777. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  24778. static int
  24779. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  24780. {
  24781. SHA512_Init(ctx);
  24782. return (ARCHIVE_OK);
  24783. }
  24784. static int
  24785. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  24786. size_t insize)
  24787. {
  24788. SHA512_Update(ctx, indata, insize);
  24789. return (ARCHIVE_OK);
  24790. }
  24791. static int
  24792. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  24793. {
  24794. SHA512_Final(md, ctx);
  24795. return (ARCHIVE_OK);
  24796. }
  24797. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  24798. static int
  24799. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  24800. {
  24801. CC_SHA512_Init(ctx);
  24802. return (ARCHIVE_OK);
  24803. }
  24804. static int
  24805. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  24806. size_t insize)
  24807. {
  24808. CC_SHA512_Update(ctx, indata, insize);
  24809. return (ARCHIVE_OK);
  24810. }
  24811. static int
  24812. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  24813. {
  24814. CC_SHA512_Final(md, ctx);
  24815. return (ARCHIVE_OK);
  24816. }
  24817. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  24818. static int
  24819. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  24820. {
  24821. sha512_init(ctx);
  24822. return (ARCHIVE_OK);
  24823. }
  24824. static int
  24825. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  24826. size_t insize)
  24827. {
  24828. sha512_update(ctx, insize, indata);
  24829. return (ARCHIVE_OK);
  24830. }
  24831. static int
  24832. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  24833. {
  24834. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  24835. return (ARCHIVE_OK);
  24836. }
  24837. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  24838. static int
  24839. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  24840. {
  24841. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  24842. return (ARCHIVE_FAILED);
  24843. EVP_DigestInit(*ctx, EVP_sha512());
  24844. return (ARCHIVE_OK);
  24845. }
  24846. static int
  24847. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  24848. size_t insize)
  24849. {
  24850. EVP_DigestUpdate(*ctx, indata, insize);
  24851. return (ARCHIVE_OK);
  24852. }
  24853. static int
  24854. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  24855. {
  24856. if (*ctx) {
  24857. EVP_DigestFinal(*ctx, md, NULL);
  24858. EVP_MD_CTX_free(*ctx);
  24859. *ctx = NULL;
  24860. }
  24861. return (ARCHIVE_OK);
  24862. }
  24863. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  24864. static int
  24865. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  24866. {
  24867. return (win_crypto_init(ctx, CALG_SHA_512));
  24868. }
  24869. static int
  24870. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  24871. size_t insize)
  24872. {
  24873. return (win_crypto_Update(ctx, indata, insize));
  24874. }
  24875. static int
  24876. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  24877. {
  24878. return (win_crypto_Final(md, 64, ctx));
  24879. }
  24880. #else
  24881. static int
  24882. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  24883. {
  24884. (void)ctx; /* UNUSED */
  24885. return (ARCHIVE_FAILED);
  24886. }
  24887. static int
  24888. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  24889. size_t insize)
  24890. {
  24891. (void)ctx; /* UNUSED */
  24892. (void)indata; /* UNUSED */
  24893. (void)insize; /* UNUSED */
  24894. return (ARCHIVE_FAILED);
  24895. }
  24896. static int
  24897. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  24898. {
  24899. (void)ctx; /* UNUSED */
  24900. (void)md; /* UNUSED */
  24901. return (ARCHIVE_FAILED);
  24902. }
  24903. #endif
  24904. /* NOTE: Message Digest functions are set based on availability and by the
  24905. * following order of preference.
  24906. * 1. libc
  24907. * 2. libc2
  24908. * 3. libc3
  24909. * 4. libSystem
  24910. * 5. Nettle
  24911. * 6. OpenSSL
  24912. * 7. libmd
  24913. * 8. Windows API
  24914. */
  24915. const struct archive_digest __archive_digest =
  24916. {
  24917. /* MD5 */
  24918. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  24919. &__archive_libc_md5init,
  24920. &__archive_libc_md5update,
  24921. &__archive_libc_md5final,
  24922. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  24923. &__archive_libmd_md5init,
  24924. &__archive_libmd_md5update,
  24925. &__archive_libmd_md5final,
  24926. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  24927. &__archive_libsystem_md5init,
  24928. &__archive_libsystem_md5update,
  24929. &__archive_libsystem_md5final,
  24930. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  24931. &__archive_nettle_md5init,
  24932. &__archive_nettle_md5update,
  24933. &__archive_nettle_md5final,
  24934. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  24935. &__archive_openssl_md5init,
  24936. &__archive_openssl_md5update,
  24937. &__archive_openssl_md5final,
  24938. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  24939. &__archive_windowsapi_md5init,
  24940. &__archive_windowsapi_md5update,
  24941. &__archive_windowsapi_md5final,
  24942. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  24943. &__archive_stub_md5init,
  24944. &__archive_stub_md5update,
  24945. &__archive_stub_md5final,
  24946. #endif
  24947. /* RIPEMD160 */
  24948. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  24949. &__archive_libc_ripemd160init,
  24950. &__archive_libc_ripemd160update,
  24951. &__archive_libc_ripemd160final,
  24952. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  24953. &__archive_libmd_ripemd160init,
  24954. &__archive_libmd_ripemd160update,
  24955. &__archive_libmd_ripemd160final,
  24956. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  24957. &__archive_nettle_ripemd160init,
  24958. &__archive_nettle_ripemd160update,
  24959. &__archive_nettle_ripemd160final,
  24960. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  24961. &__archive_openssl_ripemd160init,
  24962. &__archive_openssl_ripemd160update,
  24963. &__archive_openssl_ripemd160final,
  24964. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  24965. &__archive_stub_ripemd160init,
  24966. &__archive_stub_ripemd160update,
  24967. &__archive_stub_ripemd160final,
  24968. #endif
  24969. /* SHA1 */
  24970. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  24971. &__archive_libc_sha1init,
  24972. &__archive_libc_sha1update,
  24973. &__archive_libc_sha1final,
  24974. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  24975. &__archive_libmd_sha1init,
  24976. &__archive_libmd_sha1update,
  24977. &__archive_libmd_sha1final,
  24978. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  24979. &__archive_libsystem_sha1init,
  24980. &__archive_libsystem_sha1update,
  24981. &__archive_libsystem_sha1final,
  24982. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  24983. &__archive_nettle_sha1init,
  24984. &__archive_nettle_sha1update,
  24985. &__archive_nettle_sha1final,
  24986. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  24987. &__archive_openssl_sha1init,
  24988. &__archive_openssl_sha1update,
  24989. &__archive_openssl_sha1final,
  24990. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  24991. &__archive_windowsapi_sha1init,
  24992. &__archive_windowsapi_sha1update,
  24993. &__archive_windowsapi_sha1final,
  24994. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  24995. &__archive_stub_sha1init,
  24996. &__archive_stub_sha1update,
  24997. &__archive_stub_sha1final,
  24998. #endif
  24999. /* SHA256 */
  25000. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  25001. &__archive_libc_sha256init,
  25002. &__archive_libc_sha256update,
  25003. &__archive_libc_sha256final,
  25004. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  25005. &__archive_libc2_sha256init,
  25006. &__archive_libc2_sha256update,
  25007. &__archive_libc2_sha256final,
  25008. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  25009. &__archive_libc3_sha256init,
  25010. &__archive_libc3_sha256update,
  25011. &__archive_libc3_sha256final,
  25012. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  25013. &__archive_libmd_sha256init,
  25014. &__archive_libmd_sha256update,
  25015. &__archive_libmd_sha256final,
  25016. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  25017. &__archive_libsystem_sha256init,
  25018. &__archive_libsystem_sha256update,
  25019. &__archive_libsystem_sha256final,
  25020. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  25021. &__archive_nettle_sha256init,
  25022. &__archive_nettle_sha256update,
  25023. &__archive_nettle_sha256final,
  25024. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  25025. &__archive_openssl_sha256init,
  25026. &__archive_openssl_sha256update,
  25027. &__archive_openssl_sha256final,
  25028. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  25029. &__archive_windowsapi_sha256init,
  25030. &__archive_windowsapi_sha256update,
  25031. &__archive_windowsapi_sha256final,
  25032. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  25033. &__archive_stub_sha256init,
  25034. &__archive_stub_sha256update,
  25035. &__archive_stub_sha256final,
  25036. #endif
  25037. /* SHA384 */
  25038. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  25039. &__archive_libc_sha384init,
  25040. &__archive_libc_sha384update,
  25041. &__archive_libc_sha384final,
  25042. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  25043. &__archive_libc2_sha384init,
  25044. &__archive_libc2_sha384update,
  25045. &__archive_libc2_sha384final,
  25046. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  25047. &__archive_libc3_sha384init,
  25048. &__archive_libc3_sha384update,
  25049. &__archive_libc3_sha384final,
  25050. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  25051. &__archive_libsystem_sha384init,
  25052. &__archive_libsystem_sha384update,
  25053. &__archive_libsystem_sha384final,
  25054. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  25055. &__archive_nettle_sha384init,
  25056. &__archive_nettle_sha384update,
  25057. &__archive_nettle_sha384final,
  25058. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  25059. &__archive_openssl_sha384init,
  25060. &__archive_openssl_sha384update,
  25061. &__archive_openssl_sha384final,
  25062. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  25063. &__archive_windowsapi_sha384init,
  25064. &__archive_windowsapi_sha384update,
  25065. &__archive_windowsapi_sha384final,
  25066. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  25067. &__archive_stub_sha384init,
  25068. &__archive_stub_sha384update,
  25069. &__archive_stub_sha384final,
  25070. #endif
  25071. /* SHA512 */
  25072. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  25073. &__archive_libc_sha512init,
  25074. &__archive_libc_sha512update,
  25075. &__archive_libc_sha512final
  25076. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  25077. &__archive_libc2_sha512init,
  25078. &__archive_libc2_sha512update,
  25079. &__archive_libc2_sha512final
  25080. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  25081. &__archive_libc3_sha512init,
  25082. &__archive_libc3_sha512update,
  25083. &__archive_libc3_sha512final
  25084. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  25085. &__archive_libmd_sha512init,
  25086. &__archive_libmd_sha512update,
  25087. &__archive_libmd_sha512final
  25088. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  25089. &__archive_libsystem_sha512init,
  25090. &__archive_libsystem_sha512update,
  25091. &__archive_libsystem_sha512final
  25092. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  25093. &__archive_nettle_sha512init,
  25094. &__archive_nettle_sha512update,
  25095. &__archive_nettle_sha512final
  25096. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  25097. &__archive_openssl_sha512init,
  25098. &__archive_openssl_sha512update,
  25099. &__archive_openssl_sha512final
  25100. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  25101. &__archive_windowsapi_sha512init,
  25102. &__archive_windowsapi_sha512update,
  25103. &__archive_windowsapi_sha512final
  25104. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  25105. &__archive_stub_sha512init,
  25106. &__archive_stub_sha512update,
  25107. &__archive_stub_sha512final
  25108. #endif
  25109. };
  25110. int
  25111. main(int argc, char **argv)
  25112. {
  25113. archive_sha384_ctx ctx;
  25114. archive_sha384_init(&ctx);
  25115. archive_sha384_update(&ctx, *argv, argc);
  25116. archive_sha384_final(&ctx, NULL);
  25117. return 0;
  25118. }
  25119. Checking support for ARCHIVE_CRYPTO_SHA512_LIBC2 failed with the following output:
  25120. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  25121. Run Build Command:"/usr/bin/make" "cmTC_702cb/fast"
  25122. make -f CMakeFiles/cmTC_702cb.dir/build.make CMakeFiles/cmTC_702cb.dir/build
  25123. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  25124. Building C object CMakeFiles/cmTC_702cb.dir/check_crypto_md.c.o
  25125. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_702cb.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  25126. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  25127. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory
  25128. compilation terminated.
  25129. CMakeFiles/cmTC_702cb.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_702cb.dir/check_crypto_md.c.o' failed
  25130. make[1]: *** [CMakeFiles/cmTC_702cb.dir/check_crypto_md.c.o] Error 1
  25131. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  25132. Makefile:126: recipe for target 'cmTC_702cb/fast' failed
  25133. make: *** [cmTC_702cb/fast] Error 2
  25134. Source file was:
  25135. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  25136. #if defined(__osf__)
  25137. # define _OSF_SOURCE
  25138. #endif
  25139. /*
  25140. * Ensure we have C99-style int64_t, etc, all defined.
  25141. */
  25142. /* First, we need to know if the system has already defined them. */
  25143. #define HAVE_INT16_T
  25144. #define HAVE_INT32_T
  25145. #define HAVE_INT64_T
  25146. #define HAVE_INTMAX_T
  25147. #define HAVE_UINT8_T
  25148. #define HAVE_UINT16_T
  25149. #define HAVE_UINT32_T
  25150. #define HAVE_UINT64_T
  25151. #define HAVE_UINTMAX_T
  25152. /* We might have the types we want under other spellings. */
  25153. /* #undef HAVE___INT64 */
  25154. /* #undef HAVE_U_INT64_T */
  25155. /* #undef HAVE_UNSIGNED___INT64 */
  25156. /* The sizes of various standard integer types. */
  25157. #define SIZE_OF_SHORT 2
  25158. #define SIZE_OF_INT 4
  25159. #define SIZE_OF_LONG 8
  25160. #define SIZE_OF_LONG_LONG 8
  25161. #define SIZE_OF_UNSIGNED_SHORT 2
  25162. #define SIZE_OF_UNSIGNED 4
  25163. #define SIZE_OF_UNSIGNED_LONG 8
  25164. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  25165. /*
  25166. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  25167. * that exists and is the right size.
  25168. */
  25169. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  25170. typedef __int64 int64_t;
  25171. #define HAVE_INT64_T
  25172. #endif
  25173. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  25174. typedef int int64_t;
  25175. #define HAVE_INT64_T
  25176. #endif
  25177. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  25178. typedef long int64_t;
  25179. #define HAVE_INT64_T
  25180. #endif
  25181. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  25182. typedef long long int64_t;
  25183. #define HAVE_INT64_T
  25184. #endif
  25185. #if !defined(HAVE_INT64_T)
  25186. #error No 64-bit integer type was found.
  25187. #endif
  25188. /*
  25189. * Similarly for int32_t
  25190. */
  25191. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  25192. typedef int int32_t;
  25193. #define HAVE_INT32_T
  25194. #endif
  25195. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  25196. typedef long int32_t;
  25197. #define HAVE_INT32_T
  25198. #endif
  25199. #if !defined(HAVE_INT32_T)
  25200. #error No 32-bit integer type was found.
  25201. #endif
  25202. /*
  25203. * Similarly for int16_t
  25204. */
  25205. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  25206. typedef int int16_t;
  25207. #define HAVE_INT16_T
  25208. #endif
  25209. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  25210. typedef short int16_t;
  25211. #define HAVE_INT16_T
  25212. #endif
  25213. #if !defined(HAVE_INT16_T)
  25214. #error No 16-bit integer type was found.
  25215. #endif
  25216. /*
  25217. * Similarly for uint64_t
  25218. */
  25219. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  25220. typedef unsigned __int64 uint64_t;
  25221. #define HAVE_UINT64_T
  25222. #endif
  25223. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  25224. typedef unsigned uint64_t;
  25225. #define HAVE_UINT64_T
  25226. #endif
  25227. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  25228. typedef unsigned long uint64_t;
  25229. #define HAVE_UINT64_T
  25230. #endif
  25231. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  25232. typedef unsigned long long uint64_t;
  25233. #define HAVE_UINT64_T
  25234. #endif
  25235. #if !defined(HAVE_UINT64_T)
  25236. #error No 64-bit unsigned integer type was found.
  25237. #endif
  25238. /*
  25239. * Similarly for uint32_t
  25240. */
  25241. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  25242. typedef unsigned uint32_t;
  25243. #define HAVE_UINT32_T
  25244. #endif
  25245. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  25246. typedef unsigned long uint32_t;
  25247. #define HAVE_UINT32_T
  25248. #endif
  25249. #if !defined(HAVE_UINT32_T)
  25250. #error No 32-bit unsigned integer type was found.
  25251. #endif
  25252. /*
  25253. * Similarly for uint16_t
  25254. */
  25255. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  25256. typedef unsigned uint16_t;
  25257. #define HAVE_UINT16_T
  25258. #endif
  25259. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  25260. typedef unsigned short uint16_t;
  25261. #define HAVE_UINT16_T
  25262. #endif
  25263. #if !defined(HAVE_UINT16_T)
  25264. #error No 16-bit unsigned integer type was found.
  25265. #endif
  25266. /*
  25267. * Similarly for uint8_t
  25268. */
  25269. #if !defined(HAVE_UINT8_T)
  25270. typedef unsigned char uint8_t;
  25271. #define HAVE_UINT8_T
  25272. #endif
  25273. #if !defined(HAVE_UINT16_T)
  25274. #error No 8-bit unsigned integer type was found.
  25275. #endif
  25276. /* Define intmax_t and uintmax_t if they are not already defined. */
  25277. #if !defined(HAVE_INTMAX_T)
  25278. typedef int64_t intmax_t;
  25279. #endif
  25280. #if !defined(HAVE_UINTMAX_T)
  25281. typedef uint64_t uintmax_t;
  25282. #endif
  25283. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  25284. /* #undef ZLIB_WINAPI */
  25285. /* Darwin ACL support */
  25286. /* #undef ARCHIVE_ACL_DARWIN */
  25287. /* FreeBSD ACL support */
  25288. /* #undef ARCHIVE_ACL_FREEBSD */
  25289. /* FreeBSD NFSv4 ACL support */
  25290. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  25291. /* Linux POSIX.1e ACL support via libacl */
  25292. /* #undef ARCHIVE_ACL_LIBACL */
  25293. /* Linux NFSv4 ACL support via librichacl */
  25294. /* #undef ARCHIVE_ACL_LIBRICHACL */
  25295. /* Solaris ACL support */
  25296. /* #undef ARCHIVE_ACL_SUNOS */
  25297. /* Solaris NFSv4 ACL support */
  25298. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  25299. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  25300. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  25301. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  25302. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  25303. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  25304. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  25305. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  25306. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  25307. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  25308. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  25309. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  25310. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  25311. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  25312. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  25313. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  25314. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  25315. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  25316. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  25317. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  25318. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  25319. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  25320. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  25321. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  25322. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  25323. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  25324. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  25325. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  25326. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  25327. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  25328. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  25329. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  25330. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  25331. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  25332. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  25333. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  25334. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  25335. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  25336. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  25337. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  25338. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  25339. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  25340. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  25341. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  25342. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  25343. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  25344. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  25345. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  25346. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  25347. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  25348. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  25349. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  25350. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  25351. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  25352. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  25353. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  25354. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  25355. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  25356. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  25357. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  25358. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  25359. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  25360. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  25361. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  25362. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  25363. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  25364. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  25365. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  25366. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  25367. /* AIX xattr support */
  25368. /* #undef ARCHIVE_XATTR_AIX */
  25369. /* Darwin xattr support */
  25370. /* #undef ARCHIVE_XATTR_DARWIN */
  25371. /* FreeBSD xattr support */
  25372. /* #undef ARCHIVE_XATTR_FREEBSD */
  25373. /* Linux xattr support */
  25374. /* #undef ARCHIVE_XATTR_LINUX */
  25375. /* Version number of bsdcpio */
  25376. #define BSDCPIO_VERSION_STRING "3.3.2"
  25377. /* Version number of bsdtar */
  25378. #define BSDTAR_VERSION_STRING "3.3.2"
  25379. /* Version number of bsdcat */
  25380. #define BSDCAT_VERSION_STRING "3.3.2"
  25381. /* Define to 1 if you have the `acl_create_entry' function. */
  25382. /* #undef HAVE_ACL_CREATE_ENTRY */
  25383. /* Define to 1 if you have the `acl_get_fd_np' function. */
  25384. /* #undef HAVE_ACL_GET_FD_NP */
  25385. /* Define to 1 if you have the `acl_get_link' function. */
  25386. /* #undef HAVE_ACL_GET_LINK */
  25387. /* Define to 1 if you have the `acl_get_link_np' function. */
  25388. /* #undef HAVE_ACL_GET_LINK_NP */
  25389. /* Define to 1 if you have the `acl_get_perm' function. */
  25390. /* #undef HAVE_ACL_GET_PERM */
  25391. /* Define to 1 if you have the `acl_get_perm_np' function. */
  25392. /* #undef HAVE_ACL_GET_PERM_NP */
  25393. /* Define to 1 if you have the `acl_init' function. */
  25394. /* #undef HAVE_ACL_INIT */
  25395. /* Define to 1 if you have the <acl/libacl.h> header file. */
  25396. /* #undef HAVE_ACL_LIBACL_H */
  25397. /* Define to 1 if the system has the type `acl_permset_t'. */
  25398. /* #undef HAVE_ACL_PERMSET_T */
  25399. /* Define to 1 if you have the `acl_set_fd' function. */
  25400. /* #undef HAVE_ACL_SET_FD */
  25401. /* Define to 1 if you have the `acl_set_fd_np' function. */
  25402. /* #undef HAVE_ACL_SET_FD_NP */
  25403. /* Define to 1 if you have the `acl_set_file' function. */
  25404. /* #undef HAVE_ACL_SET_FILE */
  25405. /* Define to 1 if you have the `arc4random_buf' function. */
  25406. /* #undef HAVE_ARC4RANDOM_BUF */
  25407. /* Define to 1 if you have the <attr/xattr.h> header file. */
  25408. /* #undef HAVE_ATTR_XATTR_H */
  25409. /* Define to 1 if you have the <Bcrypt.h> header file. */
  25410. /* #undef HAVE_BCRYPT_H */
  25411. /* Define to 1 if you have the <bsdxml.h> header file. */
  25412. /* #undef HAVE_BSDXML_H */
  25413. /* Define to 1 if you have the <bzlib.h> header file. */
  25414. #define HAVE_BZLIB_H 1
  25415. /* Define to 1 if you have the `chflags' function. */
  25416. /* #undef HAVE_CHFLAGS */
  25417. /* Define to 1 if you have the `chown' function. */
  25418. #define HAVE_CHOWN 1
  25419. /* Define to 1 if you have the `chroot' function. */
  25420. #define HAVE_CHROOT 1
  25421. /* Define to 1 if you have the <copyfile.h> header file. */
  25422. /* #undef HAVE_COPYFILE_H */
  25423. /* Define to 1 if you have the `ctime_r' function. */
  25424. #define HAVE_CTIME_R 1
  25425. /* Define to 1 if you have the <ctype.h> header file. */
  25426. #define HAVE_CTYPE_H 1
  25427. /* Define to 1 if you have the `cygwin_conv_path' function. */
  25428. /* #undef HAVE_CYGWIN_CONV_PATH */
  25429. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  25430. don't. */
  25431. /* #undef HAVE_DECL_ACE_GETACL */
  25432. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  25433. don't. */
  25434. /* #undef HAVE_DECL_ACE_GETACLCNT */
  25435. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  25436. don't. */
  25437. /* #undef HAVE_DECL_ACE_SETACL */
  25438. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  25439. you don't. */
  25440. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  25441. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  25442. you don't. */
  25443. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  25444. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  25445. don't. */
  25446. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  25447. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  25448. don't. */
  25449. /* #undef HAVE_DECL_ACL_USER */
  25450. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  25451. don't. */
  25452. #define HAVE_DECL_INT32_MAX 1
  25453. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  25454. don't. */
  25455. #define HAVE_DECL_INT32_MIN 1
  25456. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  25457. don't. */
  25458. #define HAVE_DECL_INT64_MAX 1
  25459. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  25460. don't. */
  25461. #define HAVE_DECL_INT64_MIN 1
  25462. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  25463. don't. */
  25464. #define HAVE_DECL_INTMAX_MAX 1
  25465. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  25466. don't. */
  25467. #define HAVE_DECL_INTMAX_MIN 1
  25468. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  25469. */
  25470. /* #undef HAVE_DECL_SETACL */
  25471. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  25472. don't. */
  25473. #define HAVE_DECL_SIZE_MAX 1
  25474. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  25475. don't. */
  25476. #define HAVE_DECL_SSIZE_MAX 1
  25477. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  25478. don't. */
  25479. #define HAVE_DECL_STRERROR_R 1
  25480. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  25481. don't. */
  25482. #define HAVE_DECL_UINT32_MAX 1
  25483. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  25484. don't. */
  25485. #define HAVE_DECL_UINT64_MAX 1
  25486. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  25487. don't. */
  25488. #define HAVE_DECL_UINTMAX_MAX 1
  25489. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  25490. you don't. */
  25491. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  25492. /* Define to 1 if you have the <direct.h> header file. */
  25493. /* #undef HAVE_DIRECT_H */
  25494. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  25495. */
  25496. #define HAVE_DIRENT_H 1
  25497. /* Define to 1 if you have the `dirfd' function. */
  25498. #define HAVE_DIRFD 1
  25499. /* Define to 1 if you have the <dlfcn.h> header file. */
  25500. #define HAVE_DLFCN_H 1
  25501. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  25502. /* #undef HAVE_DOPRNT */
  25503. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  25504. /* #undef HAVE_D_MD_ORDER */
  25505. /* A possible errno value for invalid file format errors */
  25506. /* #undef HAVE_EFTYPE */
  25507. /* A possible errno value for invalid file format errors */
  25508. #define HAVE_EILSEQ 1
  25509. /* Define to 1 if you have the <errno.h> header file. */
  25510. #define HAVE_ERRNO_H 1
  25511. /* Define to 1 if you have the <expat.h> header file. */
  25512. /* #undef HAVE_EXPAT_H */
  25513. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  25514. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  25515. /* Define to 1 if you have the `extattr_get_file' function. */
  25516. /* #undef HAVE_EXTATTR_GET_FILE */
  25517. /* Define to 1 if you have the `extattr_list_file' function. */
  25518. /* #undef HAVE_EXTATTR_LIST_FILE */
  25519. /* Define to 1 if you have the `extattr_set_fd' function. */
  25520. /* #undef HAVE_EXTATTR_SET_FD */
  25521. /* Define to 1 if you have the `extattr_set_file' function. */
  25522. /* #undef HAVE_EXTATTR_SET_FILE */
  25523. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  25524. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  25525. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  25526. */
  25527. /* #undef HAVE_DECL_GETACL */
  25528. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  25529. don't. */
  25530. /* #undef HAVE_DECL_GETACLCNT */
  25531. /* Define to 1 if you have the `fchdir' function. */
  25532. #define HAVE_FCHDIR 1
  25533. /* Define to 1 if you have the `fchflags' function. */
  25534. /* #undef HAVE_FCHFLAGS */
  25535. /* Define to 1 if you have the `fchmod' function. */
  25536. #define HAVE_FCHMOD 1
  25537. /* Define to 1 if you have the `fchown' function. */
  25538. #define HAVE_FCHOWN 1
  25539. /* Define to 1 if you have the `fcntl' function. */
  25540. #define HAVE_FCNTL 1
  25541. /* Define to 1 if you have the <fcntl.h> header file. */
  25542. #define HAVE_FCNTL_H 1
  25543. /* Define to 1 if you have the `fdopendir' function. */
  25544. #define HAVE_FDOPENDIR 1
  25545. /* Define to 1 if you have the `fgetea' function. */
  25546. /* #undef HAVE_FGETEA */
  25547. /* Define to 1 if you have the `fgetxattr' function. */
  25548. /* #undef HAVE_FGETXATTR */
  25549. /* Define to 1 if you have the `flistea' function. */
  25550. /* #undef HAVE_FLISTEA */
  25551. /* Define to 1 if you have the `flistxattr' function. */
  25552. /* #undef HAVE_FLISTXATTR */
  25553. /* Define to 1 if you have the `fork' function. */
  25554. #define HAVE_FORK 1
  25555. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  25556. #define HAVE_FSEEKO 1
  25557. /* Define to 1 if you have the `fsetea' function. */
  25558. /* #undef HAVE_FSETEA */
  25559. /* Define to 1 if you have the `fsetxattr' function. */
  25560. #define HAVE_FSETXATTR 1
  25561. /* Define to 1 if you have the `fstat' function. */
  25562. #define HAVE_FSTAT 1
  25563. /* Define to 1 if you have the `fstatat' function. */
  25564. #define HAVE_FSTATAT 1
  25565. /* Define to 1 if you have the `fstatfs' function. */
  25566. #define HAVE_FSTATFS 1
  25567. /* Define to 1 if you have the `fstatvfs' function. */
  25568. #define HAVE_FSTATVFS 1
  25569. /* Define to 1 if you have the `ftruncate' function. */
  25570. #define HAVE_FTRUNCATE 1
  25571. /* Define to 1 if you have the `futimens' function. */
  25572. #define HAVE_FUTIMENS 1
  25573. /* Define to 1 if you have the `futimes' function. */
  25574. #define HAVE_FUTIMES 1
  25575. /* Define to 1 if you have the `futimesat' function. */
  25576. #define HAVE_FUTIMESAT 1
  25577. /* Define to 1 if you have the `getea' function. */
  25578. /* #undef HAVE_GETEA */
  25579. /* Define to 1 if you have the `geteuid' function. */
  25580. #define HAVE_GETEUID 1
  25581. /* Define to 1 if you have the `getgrgid_r' function. */
  25582. #define HAVE_GETGRGID_R 1
  25583. /* Define to 1 if you have the `getgrnam_r' function. */
  25584. #define HAVE_GETGRNAM_R 1
  25585. /* Define to 1 if you have the `getpid' function. */
  25586. #define HAVE_GETPID 1
  25587. /* Define to 1 if you have the `getpwnam_r' function. */
  25588. #define HAVE_GETPWNAM_R 1
  25589. /* Define to 1 if you have the `getpwuid_r' function. */
  25590. #define HAVE_GETPWUID_R 1
  25591. /* Define to 1 if you have the `getvfsbyname' function. */
  25592. /* #undef HAVE_GETVFSBYNAME */
  25593. /* Define to 1 if you have the `getxattr' function. */
  25594. /* #undef HAVE_GETXATTR */
  25595. /* Define to 1 if you have the `gmtime_r' function. */
  25596. #define HAVE_GMTIME_R 1
  25597. /* Define to 1 if you have the <grp.h> header file. */
  25598. #define HAVE_GRP_H 1
  25599. /* Define to 1 if you have the `iconv' function. */
  25600. /* #undef HAVE_ICONV */
  25601. /* Define to 1 if you have the <iconv.h> header file. */
  25602. /* #undef HAVE_ICONV_H */
  25603. /* Define to 1 if you have the <inttypes.h> header file. */
  25604. #define HAVE_INTTYPES_H 1
  25605. /* Define to 1 if you have the <io.h> header file. */
  25606. /* #undef HAVE_IO_H */
  25607. /* Define to 1 if you have the <langinfo.h> header file. */
  25608. #define HAVE_LANGINFO_H 1
  25609. /* Define to 1 if you have the `lchflags' function. */
  25610. /* #undef HAVE_LCHFLAGS */
  25611. /* Define to 1 if you have the `lchmod' function. */
  25612. /* #undef HAVE_LCHMOD */
  25613. /* Define to 1 if you have the `lchown' function. */
  25614. #define HAVE_LCHOWN 1
  25615. /* Define to 1 if you have the `lgetea' function. */
  25616. /* #undef HAVE_LGETEA */
  25617. /* Define to 1 if you have the `lgetxattr' function. */
  25618. /* #undef HAVE_LGETXATTR */
  25619. /* Define to 1 if you have the `acl' library (-lacl). */
  25620. /* #undef HAVE_LIBACL */
  25621. /* Define to 1 if you have the `attr' library (-lattr). */
  25622. /* #undef HAVE_LIBATTR */
  25623. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  25624. /* #undef HAVE_LIBBSDXML */
  25625. /* Define to 1 if you have the `bz2' library (-lbz2). */
  25626. #define HAVE_LIBBZ2 1
  25627. /* Define to 1 if you have the `charset' library (-lcharset). */
  25628. /* #undef HAVE_LIBCHARSET */
  25629. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  25630. #define HAVE_LIBCRYPTO 1
  25631. /* Define to 1 if you have the `expat' library (-lexpat). */
  25632. /* #undef HAVE_LIBEXPAT */
  25633. /* Define to 1 if you have the `gcc' library (-lgcc). */
  25634. /* #undef HAVE_LIBGCC */
  25635. /* Define to 1 if you have the `lz4' library (-llz4). */
  25636. /* #undef HAVE_LIBLZ4 */
  25637. /* Define to 1 if you have the `lzma' library (-llzma). */
  25638. #define HAVE_LIBLZMA 1
  25639. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  25640. /* #undef HAVE_LIBLZMADEC */
  25641. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  25642. /* #undef HAVE_LIBLZO2 */
  25643. /* Define to 1 if you have the `nettle' library (-lnettle). */
  25644. /* #undef HAVE_LIBNETTLE */
  25645. /* Define to 1 if you have the `pcre' library (-lpcre). */
  25646. /* #undef HAVE_LIBPCRE */
  25647. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  25648. /* #undef HAVE_LIBPCREPOSIX */
  25649. /* Define to 1 if you have the `xml2' library (-lxml2). */
  25650. /* #undef HAVE_LIBXML2 */
  25651. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  25652. /* #undef HAVE_LIBXML_XMLREADER_H */
  25653. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  25654. /* #undef HAVE_LIBXML_XMLWRITER_H */
  25655. /* Define to 1 if you have the `z' library (-lz). */
  25656. #define HAVE_LIBZ 1
  25657. /* Define to 1 if you have the <limits.h> header file. */
  25658. #define HAVE_LIMITS_H 1
  25659. /* Define to 1 if you have the `link' function. */
  25660. #define HAVE_LINK 1
  25661. /* Define to 1 if you have the <linux/types.h> header file. */
  25662. #define HAVE_LINUX_TYPES_H 1
  25663. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  25664. #define HAVE_LINUX_FIEMAP_H 1
  25665. /* Define to 1 if you have the <linux/fs.h> header file. */
  25666. #define HAVE_LINUX_FS_H 1
  25667. /* Define to 1 if you have the <linux/magic.h> header file. */
  25668. #define HAVE_LINUX_MAGIC_H 1
  25669. /* Define to 1 if you have the <linux/types.h> header file. */
  25670. #define HAVE_LINUX_TYPES_H 1
  25671. /* Define to 1 if you have the `listea' function. */
  25672. /* #undef HAVE_LISTEA */
  25673. /* Define to 1 if you have the `listxattr' function. */
  25674. /* #undef HAVE_LISTXATTR */
  25675. /* Define to 1 if you have the `llistea' function. */
  25676. /* #undef HAVE_LLISTEA */
  25677. /* Define to 1 if you have the `llistxattr' function. */
  25678. /* #undef HAVE_LLISTXATTR */
  25679. /* Define to 1 if you have the <localcharset.h> header file. */
  25680. /* #undef HAVE_LOCALCHARSET_H */
  25681. /* Define to 1 if you have the `locale_charset' function. */
  25682. /* #undef HAVE_LOCALE_CHARSET */
  25683. /* Define to 1 if you have the <locale.h> header file. */
  25684. #define HAVE_LOCALE_H 1
  25685. /* Define to 1 if you have the `localtime_r' function. */
  25686. #define HAVE_LOCALTIME_R 1
  25687. /* Define to 1 if the system has the type `long long int'. */
  25688. /* #undef HAVE_LONG_LONG_INT */
  25689. /* Define to 1 if you have the `lsetea' function. */
  25690. /* #undef HAVE_LSETEA */
  25691. /* Define to 1 if you have the `lsetxattr' function. */
  25692. /* #undef HAVE_LSETXATTR */
  25693. /* Define to 1 if you have the `lstat' function. */
  25694. #define HAVE_LSTAT 1
  25695. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  25696. zero-length file name argument. */
  25697. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  25698. /* Define to 1 if you have the `lutimes' function. */
  25699. #define HAVE_LUTIMES 1
  25700. /* Define to 1 if you have the <lz4hc.h> header file. */
  25701. /* #undef HAVE_LZ4HC_H */
  25702. /* Define to 1 if you have the <lz4.h> header file. */
  25703. /* #undef HAVE_LZ4_H */
  25704. /* Define to 1 if you have the <lzmadec.h> header file. */
  25705. /* #undef HAVE_LZMADEC_H */
  25706. /* Define to 1 if you have the <lzma.h> header file. */
  25707. #define HAVE_LZMA_H 1
  25708. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  25709. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  25710. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  25711. /* #undef HAVE_LZO_LZO1X_H */
  25712. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  25713. /* #undef HAVE_LZO_LZOCONF_H */
  25714. /* Define to 1 if you have the `mbrtowc' function. */
  25715. #define HAVE_MBRTOWC 1
  25716. /* Define to 1 if you have the <membership.h> header file. */
  25717. /* #undef HAVE_MEMBERSHIP_H */
  25718. /* Define to 1 if you have the `memmove' function. */
  25719. #define HAVE_MEMMOVE 1
  25720. /* Define to 1 if you have the <memory.h> header file. */
  25721. #define HAVE_MEMORY_H 1
  25722. /* Define to 1 if you have the `mkdir' function. */
  25723. #define HAVE_MKDIR 1
  25724. /* Define to 1 if you have the `mkfifo' function. */
  25725. #define HAVE_MKFIFO 1
  25726. /* Define to 1 if you have the `mknod' function. */
  25727. #define HAVE_MKNOD 1
  25728. /* Define to 1 if you have the `mkstemp' function. */
  25729. #define HAVE_MKSTEMP 1
  25730. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  25731. /* #undef HAVE_NDIR_H */
  25732. /* Define to 1 if you have the <nettle/aes.h> header file. */
  25733. /* #undef HAVE_NETTLE_AES_H */
  25734. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  25735. /* #undef HAVE_NETTLE_HMAC_H */
  25736. /* Define to 1 if you have the <nettle/md5.h> header file. */
  25737. /* #undef HAVE_NETTLE_MD5_H */
  25738. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  25739. /* #undef HAVE_NETTLE_PBKDF2_H */
  25740. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  25741. /* #undef HAVE_NETTLE_RIPEMD160_H */
  25742. /* Define to 1 if you have the <nettle/sha.h> header file. */
  25743. /* #undef HAVE_NETTLE_SHA_H */
  25744. /* Define to 1 if you have the `nl_langinfo' function. */
  25745. #define HAVE_NL_LANGINFO 1
  25746. /* Define to 1 if you have the `openat' function. */
  25747. #define HAVE_OPENAT 1
  25748. /* Define to 1 if you have the <paths.h> header file. */
  25749. #define HAVE_PATHS_H 1
  25750. /* Define to 1 if you have the <pcreposix.h> header file. */
  25751. /* #undef HAVE_PCREPOSIX_H */
  25752. /* Define to 1 if you have the `pipe' function. */
  25753. #define HAVE_PIPE 1
  25754. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  25755. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  25756. /* Define to 1 if you have the `poll' function. */
  25757. #define HAVE_POLL 1
  25758. /* Define to 1 if you have the <poll.h> header file. */
  25759. #define HAVE_POLL_H 1
  25760. /* Define to 1 if you have the `posix_spawnp' function. */
  25761. #define HAVE_POSIX_SPAWNP 1
  25762. /* Define to 1 if you have the <process.h> header file. */
  25763. /* #undef HAVE_PROCESS_H */
  25764. /* Define to 1 if you have the <pthread.h> header file. */
  25765. /* #undef HAVE_PTHREAD_H */
  25766. /* Define to 1 if you have the <pwd.h> header file. */
  25767. #define HAVE_PWD_H 1
  25768. /* Define to 1 if you have the `readdir_r' function. */
  25769. #define HAVE_READDIR_R 1
  25770. /* Define to 1 if you have the `readlink' function. */
  25771. #define HAVE_READLINK 1
  25772. /* Define to 1 if you have the `readlinkat' function. */
  25773. #define HAVE_READLINKAT 1
  25774. /* Define to 1 if you have the `readpassphrase' function. */
  25775. /* #undef HAVE_READPASSPHRASE */
  25776. /* Define to 1 if you have the <readpassphrase.h> header file. */
  25777. /* #undef HAVE_READPASSPHRASE_H */
  25778. /* Define to 1 if you have the <regex.h> header file. */
  25779. #define HAVE_REGEX_H 1
  25780. /* Define to 1 if you have the `select' function. */
  25781. #define HAVE_SELECT 1
  25782. /* Define to 1 if you have the `setenv' function. */
  25783. #define HAVE_SETENV 1
  25784. /* Define to 1 if you have the `setlocale' function. */
  25785. #define HAVE_SETLOCALE 1
  25786. /* Define to 1 if you have the `sigaction' function. */
  25787. #define HAVE_SIGACTION 1
  25788. /* Define to 1 if you have the <signal.h> header file. */
  25789. #define HAVE_SIGNAL_H 1
  25790. /* Define to 1 if you have the <spawn.h> header file. */
  25791. #define HAVE_SPAWN_H 1
  25792. /* Define to 1 if you have the `statfs' function. */
  25793. #define HAVE_STATFS 1
  25794. /* Define to 1 if you have the `statvfs' function. */
  25795. #define HAVE_STATVFS 1
  25796. /* Define to 1 if `stat' has the bug that it succeeds when given the
  25797. zero-length file name argument. */
  25798. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  25799. /* Define to 1 if you have the <stdarg.h> header file. */
  25800. #define HAVE_STDARG_H 1
  25801. /* Define to 1 if you have the <stdint.h> header file. */
  25802. #define HAVE_STDINT_H 1
  25803. /* Define to 1 if you have the <stdlib.h> header file. */
  25804. #define HAVE_STDLIB_H 1
  25805. /* Define to 1 if you have the `strchr' function. */
  25806. #define HAVE_STRCHR 1
  25807. /* Define to 1 if you have the `strdup' function. */
  25808. #define HAVE_STRDUP 1
  25809. /* Define to 1 if you have the `strerror' function. */
  25810. #define HAVE_STRERROR 1
  25811. /* Define to 1 if you have the `strerror_r' function. */
  25812. #define HAVE_STRERROR_R 1
  25813. /* Define to 1 if you have the `strftime' function. */
  25814. #define HAVE_STRFTIME 1
  25815. /* Define to 1 if you have the <strings.h> header file. */
  25816. #define HAVE_STRINGS_H 1
  25817. /* Define to 1 if you have the <string.h> header file. */
  25818. #define HAVE_STRING_H 1
  25819. /* Define to 1 if you have the `strrchr' function. */
  25820. #define HAVE_STRRCHR 1
  25821. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  25822. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  25823. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  25824. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  25825. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  25826. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  25827. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  25828. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  25829. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  25830. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  25831. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  25832. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  25833. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  25834. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  25835. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  25836. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  25837. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  25838. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  25839. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  25840. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  25841. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  25842. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  25843. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  25844. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  25845. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  25846. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  25847. /* Define to 1 if you have `struct vfsconf'. */
  25848. /* #undef HAVE_STRUCT_VFSCONF */
  25849. /* Define to 1 if you have `struct xvfsconf'. */
  25850. /* #undef HAVE_STRUCT_XVFSCONF */
  25851. /* Define to 1 if you have the `symlink' function. */
  25852. #define HAVE_SYMLINK 1
  25853. /* Define to 1 if you have the <sys/acl.h> header file. */
  25854. /* #undef HAVE_SYS_ACL_H */
  25855. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  25856. #define HAVE_SYS_CDEFS_H 1
  25857. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  25858. */
  25859. /* #undef HAVE_SYS_DIR_H */
  25860. /* Define to 1 if you have the <sys/ea.h> header file. */
  25861. /* #undef HAVE_SYS_EA_H */
  25862. /* Define to 1 if you have the <sys/extattr.h> header file. */
  25863. /* #undef HAVE_SYS_EXTATTR_H */
  25864. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  25865. #define HAVE_SYS_IOCTL_H 1
  25866. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  25867. /* #undef HAVE_SYS_MKDEV_H */
  25868. /* Define to 1 if you have the <sys/mount.h> header file. */
  25869. /* #undef HAVE_SYS_MOUNT_H */
  25870. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  25871. */
  25872. /* #undef HAVE_SYS_NDIR_H */
  25873. /* Define to 1 if you have the <sys/param.h> header file. */
  25874. #define HAVE_SYS_PARAM_H 1
  25875. /* Define to 1 if you have the <sys/poll.h> header file. */
  25876. #define HAVE_SYS_POLL_H 1
  25877. /* Define to 1 if you have the <sys/richacl.h> header file. */
  25878. /* #undef HAVE_SYS_RICHACL_H */
  25879. /* Define to 1 if you have the <sys/select.h> header file. */
  25880. #define HAVE_SYS_SELECT_H 1
  25881. /* Define to 1 if you have the <sys/statfs.h> header file. */
  25882. #define HAVE_SYS_STATFS_H 1
  25883. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  25884. #define HAVE_SYS_STATVFS_H 1
  25885. /* Define to 1 if you have the <sys/stat.h> header file. */
  25886. #define HAVE_SYS_STAT_H 1
  25887. /* Define to 1 if you have the <sys/time.h> header file. */
  25888. #define HAVE_SYS_TIME_H 1
  25889. /* Define to 1 if you have the <sys/types.h> header file. */
  25890. #define HAVE_SYS_TYPES_H 1
  25891. /* Define to 1 if you have the <sys/utime.h> header file. */
  25892. /* #undef HAVE_SYS_UTIME_H */
  25893. /* Define to 1 if you have the <sys/utsname.h> header file. */
  25894. #define HAVE_SYS_UTSNAME_H 1
  25895. /* Define to 1 if you have the <sys/vfs.h> header file. */
  25896. #define HAVE_SYS_VFS_H 1
  25897. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  25898. #define HAVE_SYS_WAIT_H 1
  25899. /* Define to 1 if you have the <sys/xattr.h> header file. */
  25900. #define HAVE_SYS_XATTR_H 1
  25901. /* Define to 1 if you have the `timegm' function. */
  25902. #define HAVE_TIMEGM 1
  25903. /* Define to 1 if you have the <time.h> header file. */
  25904. #define HAVE_TIME_H 1
  25905. /* Define to 1 if you have the `tzset' function. */
  25906. #define HAVE_TZSET 1
  25907. /* Define to 1 if you have the <unistd.h> header file. */
  25908. #define HAVE_UNISTD_H 1
  25909. /* Define to 1 if you have the `unsetenv' function. */
  25910. #define HAVE_UNSETENV 1
  25911. /* Define to 1 if the system has the type `unsigned long long'. */
  25912. /* #undef HAVE_UNSIGNED_LONG_LONG */
  25913. /* Define to 1 if the system has the type `unsigned long long int'. */
  25914. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  25915. /* Define to 1 if you have the `utime' function. */
  25916. #define HAVE_UTIME 1
  25917. /* Define to 1 if you have the `utimensat' function. */
  25918. #define HAVE_UTIMENSAT 1
  25919. /* Define to 1 if you have the `utimes' function. */
  25920. #define HAVE_UTIMES 1
  25921. /* Define to 1 if you have the <utime.h> header file. */
  25922. #define HAVE_UTIME_H 1
  25923. /* Define to 1 if you have the `vfork' function. */
  25924. #define HAVE_VFORK 1
  25925. /* Define to 1 if you have the `vprintf' function. */
  25926. #define HAVE_VPRINTF 1
  25927. /* Define to 1 if you have the <wchar.h> header file. */
  25928. #define HAVE_WCHAR_H 1
  25929. /* Define to 1 if the system has the type `wchar_t'. */
  25930. #define HAVE_WCHAR_T 1
  25931. /* Define to 1 if you have the `wcrtomb' function. */
  25932. #define HAVE_WCRTOMB 1
  25933. /* Define to 1 if you have the `wcscmp' function. */
  25934. #define HAVE_WCSCMP 1
  25935. /* Define to 1 if you have the `wcscpy' function. */
  25936. #define HAVE_WCSCPY 1
  25937. /* Define to 1 if you have the `wcslen' function. */
  25938. #define HAVE_WCSLEN 1
  25939. /* Define to 1 if you have the `wctomb' function. */
  25940. #define HAVE_WCTOMB 1
  25941. /* Define to 1 if you have the <wctype.h> header file. */
  25942. #define HAVE_WCTYPE_H 1
  25943. /* Define to 1 if you have the <wincrypt.h> header file. */
  25944. /* #undef HAVE_WINCRYPT_H */
  25945. /* Define to 1 if you have the <windows.h> header file. */
  25946. /* #undef HAVE_WINDOWS_H */
  25947. /* Define to 1 if you have the <winioctl.h> header file. */
  25948. /* #undef HAVE_WINIOCTL_H */
  25949. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  25950. /* #undef HAVE__CrtSetReportMode */
  25951. /* Define to 1 if you have the `wmemcmp' function. */
  25952. #define HAVE_WMEMCMP 1
  25953. /* Define to 1 if you have the `wmemcpy' function. */
  25954. #define HAVE_WMEMCPY 1
  25955. /* Define to 1 if you have the `wmemmove' function. */
  25956. #define HAVE_WMEMMOVE 1
  25957. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  25958. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  25959. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  25960. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  25961. /* Define to 1 if you have the <zlib.h> header file. */
  25962. #define HAVE_ZLIB_H 1
  25963. /* Define to 1 if you have the `_ctime64_s' function. */
  25964. /* #undef HAVE__CTIME64_S */
  25965. /* Define to 1 if you have the `_fseeki64' function. */
  25966. /* #undef HAVE__FSEEKI64 */
  25967. /* Define to 1 if you have the `_get_timezone' function. */
  25968. /* #undef HAVE__GET_TIMEZONE */
  25969. /* Define to 1 if you have the `_localtime64_s' function. */
  25970. /* #undef HAVE__LOCALTIME64_S */
  25971. /* Define to 1 if you have the `_mkgmtime64' function. */
  25972. /* #undef HAVE__MKGMTIME64 */
  25973. /* Define as const if the declaration of iconv() needs const. */
  25974. #define ICONV_CONST
  25975. /* Version number of libarchive as a single integer */
  25976. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  25977. /* Version number of libarchive */
  25978. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  25979. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  25980. slash. */
  25981. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  25982. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  25983. */
  25984. /* #undef MAJOR_IN_MKDEV */
  25985. /* Define to 1 if `major', `minor', and `makedev' are declared in
  25986. <sysmacros.h>. */
  25987. #define MAJOR_IN_SYSMACROS 1
  25988. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  25989. /* #undef NO_MINUS_C_MINUS_O */
  25990. /* The size of `wchar_t', as computed by sizeof. */
  25991. #define SIZEOF_WCHAR_T 4
  25992. /* Define to 1 if strerror_r returns char *. */
  25993. /* #undef STRERROR_R_CHAR_P */
  25994. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  25995. #define TIME_WITH_SYS_TIME 1
  25996. /*
  25997. * Some platform requires a macro to use extension functions.
  25998. */
  25999. #define SAFE_TO_DEFINE_EXTENSIONS 1
  26000. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  26001. /* Enable extensions on AIX 3, Interix. */
  26002. #ifndef _ALL_SOURCE
  26003. # define _ALL_SOURCE 1
  26004. #endif
  26005. /* Enable GNU extensions on systems that have them. */
  26006. #ifndef _GNU_SOURCE
  26007. # define _GNU_SOURCE 1
  26008. #endif
  26009. /* Enable threading extensions on Solaris. */
  26010. #ifndef _POSIX_PTHREAD_SEMANTICS
  26011. # define _POSIX_PTHREAD_SEMANTICS 1
  26012. #endif
  26013. /* Enable extensions on HP NonStop. */
  26014. #ifndef _TANDEM_SOURCE
  26015. # define _TANDEM_SOURCE 1
  26016. #endif
  26017. /* Enable general extensions on Solaris. */
  26018. #ifndef __EXTENSIONS__
  26019. # define __EXTENSIONS__ 1
  26020. #endif
  26021. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  26022. /* Version number of package */
  26023. #define VERSION "3.3.2"
  26024. /* Number of bits in a file offset, on hosts where this is settable. */
  26025. /* #undef _FILE_OFFSET_BITS */
  26026. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  26027. /* #undef _LARGEFILE_SOURCE */
  26028. /* Define for large files, on AIX-style hosts. */
  26029. /* #undef _LARGE_FILES */
  26030. /* Define to control Windows SDK version */
  26031. #ifndef NTDDI_VERSION
  26032. /* #undef NTDDI_VERSION */
  26033. #endif // NTDDI_VERSION
  26034. #ifndef _WIN32_WINNT
  26035. /* #undef _WIN32_WINNT */
  26036. #endif // _WIN32_WINNT
  26037. #ifndef WINVER
  26038. /* #undef WINVER */
  26039. #endif // WINVER
  26040. /* Define to empty if `const' does not conform to ANSI C. */
  26041. /* #undef const */
  26042. /* Define to `int' if <sys/types.h> doesn't define. */
  26043. /* #undef gid_t */
  26044. /* Define to `unsigned long' if <sys/types.h> does not define. */
  26045. /* #undef id_t */
  26046. /* Define to `int' if <sys/types.h> does not define. */
  26047. /* #undef mode_t */
  26048. /* Define to `long long' if <sys/types.h> does not define. */
  26049. /* #undef off_t */
  26050. /* Define to `int' if <sys/types.h> doesn't define. */
  26051. /* #undef pid_t */
  26052. /* Define to `unsigned int' if <sys/types.h> does not define. */
  26053. /* #undef size_t */
  26054. /* Define to `int' if <sys/types.h> does not define. */
  26055. /* #undef ssize_t */
  26056. /* Define to `int' if <sys/types.h> doesn't define. */
  26057. /* #undef uid_t */
  26058. /* Define to `int' if <sys/types.h> does not define. */
  26059. /* #undef intptr_t */
  26060. /* Define to `unsigned int' if <sys/types.h> does not define. */
  26061. /* #undef uintptr_t */
  26062. #define ARCHIVE_SHA512_COMPILE_TEST
  26063. #define ARCHIVE_CRYPTO_SHA512_LIBC2
  26064. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  26065. /*-
  26066. * Copyright (c) 2003-2007 Tim Kientzle
  26067. * Copyright (c) 2011 Andres Mejia
  26068. * Copyright (c) 2011 Michihiro NAKAJIMA
  26069. * All rights reserved.
  26070. *
  26071. * Redistribution and use in source and binary forms, with or without
  26072. * modification, are permitted provided that the following conditions
  26073. * are met:
  26074. * 1. Redistributions of source code must retain the above copyright
  26075. * notice, this list of conditions and the following disclaimer.
  26076. * 2. Redistributions in binary form must reproduce the above copyright
  26077. * notice, this list of conditions and the following disclaimer in the
  26078. * documentation and/or other materials provided with the distribution.
  26079. *
  26080. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  26081. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  26082. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  26083. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  26084. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  26085. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  26086. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  26087. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26088. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  26089. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26090. */
  26091. #include "archive_platform.h"
  26092. #include "archive.h"
  26093. #include "archive_digest_private.h"
  26094. /* In particular, force the configure probe to break if it tries
  26095. * to test a combination of OpenSSL and libmd. */
  26096. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  26097. #error Cannot use both OpenSSL and libmd.
  26098. #endif
  26099. /*
  26100. * Message digest functions for Windows platform.
  26101. */
  26102. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  26103. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  26104. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  26105. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  26106. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  26107. /*
  26108. * Initialize a Message digest.
  26109. */
  26110. static int
  26111. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  26112. {
  26113. ctx->valid = 0;
  26114. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  26115. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  26116. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  26117. return (ARCHIVE_FAILED);
  26118. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  26119. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  26120. return (ARCHIVE_FAILED);
  26121. }
  26122. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  26123. CryptReleaseContext(ctx->cryptProv, 0);
  26124. return (ARCHIVE_FAILED);
  26125. }
  26126. ctx->valid = 1;
  26127. return (ARCHIVE_OK);
  26128. }
  26129. /*
  26130. * Update a Message digest.
  26131. */
  26132. static int
  26133. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  26134. {
  26135. if (!ctx->valid)
  26136. return (ARCHIVE_FAILED);
  26137. CryptHashData(ctx->hash,
  26138. (unsigned char *)(uintptr_t)buf,
  26139. (DWORD)len, 0);
  26140. return (ARCHIVE_OK);
  26141. }
  26142. static int
  26143. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  26144. {
  26145. DWORD siglen = (DWORD)bufsize;
  26146. if (!ctx->valid)
  26147. return (ARCHIVE_FAILED);
  26148. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  26149. CryptDestroyHash(ctx->hash);
  26150. CryptReleaseContext(ctx->cryptProv, 0);
  26151. ctx->valid = 0;
  26152. return (ARCHIVE_OK);
  26153. }
  26154. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  26155. /* MD5 implementations */
  26156. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  26157. static int
  26158. __archive_libc_md5init(archive_md5_ctx *ctx)
  26159. {
  26160. MD5Init(ctx);
  26161. return (ARCHIVE_OK);
  26162. }
  26163. static int
  26164. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  26165. size_t insize)
  26166. {
  26167. MD5Update(ctx, indata, insize);
  26168. return (ARCHIVE_OK);
  26169. }
  26170. static int
  26171. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  26172. {
  26173. MD5Final(md, ctx);
  26174. return (ARCHIVE_OK);
  26175. }
  26176. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  26177. static int
  26178. __archive_libmd_md5init(archive_md5_ctx *ctx)
  26179. {
  26180. MD5Init(ctx);
  26181. return (ARCHIVE_OK);
  26182. }
  26183. static int
  26184. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  26185. size_t insize)
  26186. {
  26187. MD5Update(ctx, indata, insize);
  26188. return (ARCHIVE_OK);
  26189. }
  26190. static int
  26191. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  26192. {
  26193. MD5Final(md, ctx);
  26194. return (ARCHIVE_OK);
  26195. }
  26196. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  26197. static int
  26198. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  26199. {
  26200. CC_MD5_Init(ctx);
  26201. return (ARCHIVE_OK);
  26202. }
  26203. static int
  26204. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  26205. size_t insize)
  26206. {
  26207. CC_MD5_Update(ctx, indata, insize);
  26208. return (ARCHIVE_OK);
  26209. }
  26210. static int
  26211. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  26212. {
  26213. CC_MD5_Final(md, ctx);
  26214. return (ARCHIVE_OK);
  26215. }
  26216. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  26217. static int
  26218. __archive_nettle_md5init(archive_md5_ctx *ctx)
  26219. {
  26220. md5_init(ctx);
  26221. return (ARCHIVE_OK);
  26222. }
  26223. static int
  26224. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  26225. size_t insize)
  26226. {
  26227. md5_update(ctx, insize, indata);
  26228. return (ARCHIVE_OK);
  26229. }
  26230. static int
  26231. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  26232. {
  26233. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  26234. return (ARCHIVE_OK);
  26235. }
  26236. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  26237. static int
  26238. __archive_openssl_md5init(archive_md5_ctx *ctx)
  26239. {
  26240. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  26241. return (ARCHIVE_FAILED);
  26242. EVP_DigestInit(*ctx, EVP_md5());
  26243. return (ARCHIVE_OK);
  26244. }
  26245. static int
  26246. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  26247. size_t insize)
  26248. {
  26249. EVP_DigestUpdate(*ctx, indata, insize);
  26250. return (ARCHIVE_OK);
  26251. }
  26252. static int
  26253. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  26254. {
  26255. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  26256. * this is meant to cope with that. Real fix is probably to fix
  26257. * archive_write_set_format_xar.c
  26258. */
  26259. if (*ctx) {
  26260. EVP_DigestFinal(*ctx, md, NULL);
  26261. EVP_MD_CTX_free(*ctx);
  26262. *ctx = NULL;
  26263. }
  26264. return (ARCHIVE_OK);
  26265. }
  26266. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  26267. static int
  26268. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  26269. {
  26270. return (win_crypto_init(ctx, CALG_MD5));
  26271. }
  26272. static int
  26273. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  26274. size_t insize)
  26275. {
  26276. return (win_crypto_Update(ctx, indata, insize));
  26277. }
  26278. static int
  26279. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  26280. {
  26281. return (win_crypto_Final(md, 16, ctx));
  26282. }
  26283. #else
  26284. static int
  26285. __archive_stub_md5init(archive_md5_ctx *ctx)
  26286. {
  26287. (void)ctx; /* UNUSED */
  26288. return (ARCHIVE_FAILED);
  26289. }
  26290. static int
  26291. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  26292. size_t insize)
  26293. {
  26294. (void)ctx; /* UNUSED */
  26295. (void)indata; /* UNUSED */
  26296. (void)insize; /* UNUSED */
  26297. return (ARCHIVE_FAILED);
  26298. }
  26299. static int
  26300. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  26301. {
  26302. (void)ctx; /* UNUSED */
  26303. (void)md; /* UNUSED */
  26304. return (ARCHIVE_FAILED);
  26305. }
  26306. #endif
  26307. /* RIPEMD160 implementations */
  26308. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  26309. static int
  26310. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  26311. {
  26312. RMD160Init(ctx);
  26313. return (ARCHIVE_OK);
  26314. }
  26315. static int
  26316. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  26317. size_t insize)
  26318. {
  26319. RMD160Update(ctx, indata, insize);
  26320. return (ARCHIVE_OK);
  26321. }
  26322. static int
  26323. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  26324. {
  26325. RMD160Final(md, ctx);
  26326. return (ARCHIVE_OK);
  26327. }
  26328. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  26329. static int
  26330. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  26331. {
  26332. RIPEMD160_Init(ctx);
  26333. return (ARCHIVE_OK);
  26334. }
  26335. static int
  26336. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  26337. size_t insize)
  26338. {
  26339. RIPEMD160_Update(ctx, indata, insize);
  26340. return (ARCHIVE_OK);
  26341. }
  26342. static int
  26343. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  26344. {
  26345. RIPEMD160_Final(md, ctx);
  26346. return (ARCHIVE_OK);
  26347. }
  26348. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  26349. static int
  26350. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  26351. {
  26352. ripemd160_init(ctx);
  26353. return (ARCHIVE_OK);
  26354. }
  26355. static int
  26356. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  26357. size_t insize)
  26358. {
  26359. ripemd160_update(ctx, insize, indata);
  26360. return (ARCHIVE_OK);
  26361. }
  26362. static int
  26363. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  26364. {
  26365. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  26366. return (ARCHIVE_OK);
  26367. }
  26368. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  26369. static int
  26370. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  26371. {
  26372. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  26373. return (ARCHIVE_FAILED);
  26374. EVP_DigestInit(*ctx, EVP_ripemd160());
  26375. return (ARCHIVE_OK);
  26376. }
  26377. static int
  26378. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  26379. size_t insize)
  26380. {
  26381. EVP_DigestUpdate(*ctx, indata, insize);
  26382. return (ARCHIVE_OK);
  26383. }
  26384. static int
  26385. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  26386. {
  26387. if (*ctx) {
  26388. EVP_DigestFinal(*ctx, md, NULL);
  26389. EVP_MD_CTX_free(*ctx);
  26390. *ctx = NULL;
  26391. }
  26392. return (ARCHIVE_OK);
  26393. }
  26394. #else
  26395. static int
  26396. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  26397. {
  26398. (void)ctx; /* UNUSED */
  26399. return (ARCHIVE_FAILED);
  26400. }
  26401. static int
  26402. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  26403. size_t insize)
  26404. {
  26405. (void)ctx; /* UNUSED */
  26406. (void)indata; /* UNUSED */
  26407. (void)insize; /* UNUSED */
  26408. return (ARCHIVE_FAILED);
  26409. }
  26410. static int
  26411. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  26412. {
  26413. (void)ctx; /* UNUSED */
  26414. (void)md; /* UNUSED */
  26415. return (ARCHIVE_FAILED);
  26416. }
  26417. #endif
  26418. /* SHA1 implementations */
  26419. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  26420. static int
  26421. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  26422. {
  26423. SHA1Init(ctx);
  26424. return (ARCHIVE_OK);
  26425. }
  26426. static int
  26427. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  26428. size_t insize)
  26429. {
  26430. SHA1Update(ctx, indata, insize);
  26431. return (ARCHIVE_OK);
  26432. }
  26433. static int
  26434. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  26435. {
  26436. SHA1Final(md, ctx);
  26437. return (ARCHIVE_OK);
  26438. }
  26439. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  26440. static int
  26441. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  26442. {
  26443. SHA1_Init(ctx);
  26444. return (ARCHIVE_OK);
  26445. }
  26446. static int
  26447. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  26448. size_t insize)
  26449. {
  26450. SHA1_Update(ctx, indata, insize);
  26451. return (ARCHIVE_OK);
  26452. }
  26453. static int
  26454. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  26455. {
  26456. SHA1_Final(md, ctx);
  26457. return (ARCHIVE_OK);
  26458. }
  26459. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  26460. static int
  26461. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  26462. {
  26463. CC_SHA1_Init(ctx);
  26464. return (ARCHIVE_OK);
  26465. }
  26466. static int
  26467. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  26468. size_t insize)
  26469. {
  26470. CC_SHA1_Update(ctx, indata, insize);
  26471. return (ARCHIVE_OK);
  26472. }
  26473. static int
  26474. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  26475. {
  26476. CC_SHA1_Final(md, ctx);
  26477. return (ARCHIVE_OK);
  26478. }
  26479. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  26480. static int
  26481. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  26482. {
  26483. sha1_init(ctx);
  26484. return (ARCHIVE_OK);
  26485. }
  26486. static int
  26487. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  26488. size_t insize)
  26489. {
  26490. sha1_update(ctx, insize, indata);
  26491. return (ARCHIVE_OK);
  26492. }
  26493. static int
  26494. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  26495. {
  26496. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  26497. return (ARCHIVE_OK);
  26498. }
  26499. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  26500. static int
  26501. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  26502. {
  26503. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  26504. return (ARCHIVE_FAILED);
  26505. EVP_DigestInit(*ctx, EVP_sha1());
  26506. return (ARCHIVE_OK);
  26507. }
  26508. static int
  26509. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  26510. size_t insize)
  26511. {
  26512. EVP_DigestUpdate(*ctx, indata, insize);
  26513. return (ARCHIVE_OK);
  26514. }
  26515. static int
  26516. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  26517. {
  26518. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  26519. * this is meant to cope with that. Real fix is probably to fix
  26520. * archive_write_set_format_xar.c
  26521. */
  26522. if (*ctx) {
  26523. EVP_DigestFinal(*ctx, md, NULL);
  26524. EVP_MD_CTX_free(*ctx);
  26525. *ctx = NULL;
  26526. }
  26527. return (ARCHIVE_OK);
  26528. }
  26529. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  26530. static int
  26531. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  26532. {
  26533. return (win_crypto_init(ctx, CALG_SHA1));
  26534. }
  26535. static int
  26536. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  26537. size_t insize)
  26538. {
  26539. return (win_crypto_Update(ctx, indata, insize));
  26540. }
  26541. static int
  26542. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  26543. {
  26544. return (win_crypto_Final(md, 20, ctx));
  26545. }
  26546. #else
  26547. static int
  26548. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  26549. {
  26550. (void)ctx; /* UNUSED */
  26551. return (ARCHIVE_FAILED);
  26552. }
  26553. static int
  26554. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  26555. size_t insize)
  26556. {
  26557. (void)ctx; /* UNUSED */
  26558. (void)indata; /* UNUSED */
  26559. (void)insize; /* UNUSED */
  26560. return (ARCHIVE_FAILED);
  26561. }
  26562. static int
  26563. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  26564. {
  26565. (void)ctx; /* UNUSED */
  26566. (void)md; /* UNUSED */
  26567. return (ARCHIVE_FAILED);
  26568. }
  26569. #endif
  26570. /* SHA256 implementations */
  26571. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  26572. static int
  26573. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  26574. {
  26575. SHA256_Init(ctx);
  26576. return (ARCHIVE_OK);
  26577. }
  26578. static int
  26579. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  26580. size_t insize)
  26581. {
  26582. SHA256_Update(ctx, indata, insize);
  26583. return (ARCHIVE_OK);
  26584. }
  26585. static int
  26586. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  26587. {
  26588. SHA256_Final(md, ctx);
  26589. return (ARCHIVE_OK);
  26590. }
  26591. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  26592. static int
  26593. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  26594. {
  26595. SHA256Init(ctx);
  26596. return (ARCHIVE_OK);
  26597. }
  26598. static int
  26599. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  26600. size_t insize)
  26601. {
  26602. SHA256Update(ctx, indata, insize);
  26603. return (ARCHIVE_OK);
  26604. }
  26605. static int
  26606. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  26607. {
  26608. SHA256Final(md, ctx);
  26609. return (ARCHIVE_OK);
  26610. }
  26611. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  26612. static int
  26613. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  26614. {
  26615. SHA256Init(ctx);
  26616. return (ARCHIVE_OK);
  26617. }
  26618. static int
  26619. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  26620. size_t insize)
  26621. {
  26622. SHA256Update(ctx, indata, insize);
  26623. return (ARCHIVE_OK);
  26624. }
  26625. static int
  26626. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  26627. {
  26628. SHA256Final(md, ctx);
  26629. return (ARCHIVE_OK);
  26630. }
  26631. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  26632. static int
  26633. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  26634. {
  26635. SHA256_Init(ctx);
  26636. return (ARCHIVE_OK);
  26637. }
  26638. static int
  26639. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  26640. size_t insize)
  26641. {
  26642. SHA256_Update(ctx, indata, insize);
  26643. return (ARCHIVE_OK);
  26644. }
  26645. static int
  26646. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  26647. {
  26648. SHA256_Final(md, ctx);
  26649. return (ARCHIVE_OK);
  26650. }
  26651. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  26652. static int
  26653. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  26654. {
  26655. CC_SHA256_Init(ctx);
  26656. return (ARCHIVE_OK);
  26657. }
  26658. static int
  26659. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  26660. size_t insize)
  26661. {
  26662. CC_SHA256_Update(ctx, indata, insize);
  26663. return (ARCHIVE_OK);
  26664. }
  26665. static int
  26666. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  26667. {
  26668. CC_SHA256_Final(md, ctx);
  26669. return (ARCHIVE_OK);
  26670. }
  26671. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  26672. static int
  26673. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  26674. {
  26675. sha256_init(ctx);
  26676. return (ARCHIVE_OK);
  26677. }
  26678. static int
  26679. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  26680. size_t insize)
  26681. {
  26682. sha256_update(ctx, insize, indata);
  26683. return (ARCHIVE_OK);
  26684. }
  26685. static int
  26686. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  26687. {
  26688. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  26689. return (ARCHIVE_OK);
  26690. }
  26691. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  26692. static int
  26693. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  26694. {
  26695. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  26696. return (ARCHIVE_FAILED);
  26697. EVP_DigestInit(*ctx, EVP_sha256());
  26698. return (ARCHIVE_OK);
  26699. }
  26700. static int
  26701. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  26702. size_t insize)
  26703. {
  26704. EVP_DigestUpdate(*ctx, indata, insize);
  26705. return (ARCHIVE_OK);
  26706. }
  26707. static int
  26708. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  26709. {
  26710. if (*ctx) {
  26711. EVP_DigestFinal(*ctx, md, NULL);
  26712. EVP_MD_CTX_free(*ctx);
  26713. *ctx = NULL;
  26714. }
  26715. return (ARCHIVE_OK);
  26716. }
  26717. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  26718. static int
  26719. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  26720. {
  26721. return (win_crypto_init(ctx, CALG_SHA_256));
  26722. }
  26723. static int
  26724. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  26725. size_t insize)
  26726. {
  26727. return (win_crypto_Update(ctx, indata, insize));
  26728. }
  26729. static int
  26730. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  26731. {
  26732. return (win_crypto_Final(md, 32, ctx));
  26733. }
  26734. #else
  26735. static int
  26736. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  26737. {
  26738. (void)ctx; /* UNUSED */
  26739. return (ARCHIVE_FAILED);
  26740. }
  26741. static int
  26742. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  26743. size_t insize)
  26744. {
  26745. (void)ctx; /* UNUSED */
  26746. (void)indata; /* UNUSED */
  26747. (void)insize; /* UNUSED */
  26748. return (ARCHIVE_FAILED);
  26749. }
  26750. static int
  26751. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  26752. {
  26753. (void)ctx; /* UNUSED */
  26754. (void)md; /* UNUSED */
  26755. return (ARCHIVE_FAILED);
  26756. }
  26757. #endif
  26758. /* SHA384 implementations */
  26759. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  26760. static int
  26761. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  26762. {
  26763. SHA384_Init(ctx);
  26764. return (ARCHIVE_OK);
  26765. }
  26766. static int
  26767. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  26768. size_t insize)
  26769. {
  26770. SHA384_Update(ctx, indata, insize);
  26771. return (ARCHIVE_OK);
  26772. }
  26773. static int
  26774. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  26775. {
  26776. SHA384_Final(md, ctx);
  26777. return (ARCHIVE_OK);
  26778. }
  26779. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  26780. static int
  26781. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  26782. {
  26783. SHA384Init(ctx);
  26784. return (ARCHIVE_OK);
  26785. }
  26786. static int
  26787. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  26788. size_t insize)
  26789. {
  26790. SHA384Update(ctx, indata, insize);
  26791. return (ARCHIVE_OK);
  26792. }
  26793. static int
  26794. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  26795. {
  26796. SHA384Final(md, ctx);
  26797. return (ARCHIVE_OK);
  26798. }
  26799. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  26800. static int
  26801. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  26802. {
  26803. SHA384Init(ctx);
  26804. return (ARCHIVE_OK);
  26805. }
  26806. static int
  26807. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  26808. size_t insize)
  26809. {
  26810. SHA384Update(ctx, indata, insize);
  26811. return (ARCHIVE_OK);
  26812. }
  26813. static int
  26814. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  26815. {
  26816. SHA384Final(md, ctx);
  26817. return (ARCHIVE_OK);
  26818. }
  26819. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  26820. static int
  26821. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  26822. {
  26823. CC_SHA384_Init(ctx);
  26824. return (ARCHIVE_OK);
  26825. }
  26826. static int
  26827. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  26828. size_t insize)
  26829. {
  26830. CC_SHA384_Update(ctx, indata, insize);
  26831. return (ARCHIVE_OK);
  26832. }
  26833. static int
  26834. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  26835. {
  26836. CC_SHA384_Final(md, ctx);
  26837. return (ARCHIVE_OK);
  26838. }
  26839. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  26840. static int
  26841. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  26842. {
  26843. sha384_init(ctx);
  26844. return (ARCHIVE_OK);
  26845. }
  26846. static int
  26847. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  26848. size_t insize)
  26849. {
  26850. sha384_update(ctx, insize, indata);
  26851. return (ARCHIVE_OK);
  26852. }
  26853. static int
  26854. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  26855. {
  26856. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  26857. return (ARCHIVE_OK);
  26858. }
  26859. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  26860. static int
  26861. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  26862. {
  26863. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  26864. return (ARCHIVE_FAILED);
  26865. EVP_DigestInit(*ctx, EVP_sha384());
  26866. return (ARCHIVE_OK);
  26867. }
  26868. static int
  26869. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  26870. size_t insize)
  26871. {
  26872. EVP_DigestUpdate(*ctx, indata, insize);
  26873. return (ARCHIVE_OK);
  26874. }
  26875. static int
  26876. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  26877. {
  26878. if (*ctx) {
  26879. EVP_DigestFinal(*ctx, md, NULL);
  26880. EVP_MD_CTX_free(*ctx);
  26881. *ctx = NULL;
  26882. }
  26883. return (ARCHIVE_OK);
  26884. }
  26885. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  26886. static int
  26887. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  26888. {
  26889. return (win_crypto_init(ctx, CALG_SHA_384));
  26890. }
  26891. static int
  26892. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  26893. size_t insize)
  26894. {
  26895. return (win_crypto_Update(ctx, indata, insize));
  26896. }
  26897. static int
  26898. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  26899. {
  26900. return (win_crypto_Final(md, 48, ctx));
  26901. }
  26902. #else
  26903. static int
  26904. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  26905. {
  26906. (void)ctx; /* UNUSED */
  26907. return (ARCHIVE_FAILED);
  26908. }
  26909. static int
  26910. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  26911. size_t insize)
  26912. {
  26913. (void)ctx; /* UNUSED */
  26914. (void)indata; /* UNUSED */
  26915. (void)insize; /* UNUSED */
  26916. return (ARCHIVE_FAILED);
  26917. }
  26918. static int
  26919. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  26920. {
  26921. (void)ctx; /* UNUSED */
  26922. (void)md; /* UNUSED */
  26923. return (ARCHIVE_FAILED);
  26924. }
  26925. #endif
  26926. /* SHA512 implementations */
  26927. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  26928. static int
  26929. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  26930. {
  26931. SHA512_Init(ctx);
  26932. return (ARCHIVE_OK);
  26933. }
  26934. static int
  26935. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  26936. size_t insize)
  26937. {
  26938. SHA512_Update(ctx, indata, insize);
  26939. return (ARCHIVE_OK);
  26940. }
  26941. static int
  26942. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  26943. {
  26944. SHA512_Final(md, ctx);
  26945. return (ARCHIVE_OK);
  26946. }
  26947. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  26948. static int
  26949. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  26950. {
  26951. SHA512Init(ctx);
  26952. return (ARCHIVE_OK);
  26953. }
  26954. static int
  26955. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  26956. size_t insize)
  26957. {
  26958. SHA512Update(ctx, indata, insize);
  26959. return (ARCHIVE_OK);
  26960. }
  26961. static int
  26962. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  26963. {
  26964. SHA512Final(md, ctx);
  26965. return (ARCHIVE_OK);
  26966. }
  26967. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  26968. static int
  26969. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  26970. {
  26971. SHA512Init(ctx);
  26972. return (ARCHIVE_OK);
  26973. }
  26974. static int
  26975. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  26976. size_t insize)
  26977. {
  26978. SHA512Update(ctx, indata, insize);
  26979. return (ARCHIVE_OK);
  26980. }
  26981. static int
  26982. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  26983. {
  26984. SHA512Final(md, ctx);
  26985. return (ARCHIVE_OK);
  26986. }
  26987. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  26988. static int
  26989. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  26990. {
  26991. SHA512_Init(ctx);
  26992. return (ARCHIVE_OK);
  26993. }
  26994. static int
  26995. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  26996. size_t insize)
  26997. {
  26998. SHA512_Update(ctx, indata, insize);
  26999. return (ARCHIVE_OK);
  27000. }
  27001. static int
  27002. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  27003. {
  27004. SHA512_Final(md, ctx);
  27005. return (ARCHIVE_OK);
  27006. }
  27007. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  27008. static int
  27009. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  27010. {
  27011. CC_SHA512_Init(ctx);
  27012. return (ARCHIVE_OK);
  27013. }
  27014. static int
  27015. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  27016. size_t insize)
  27017. {
  27018. CC_SHA512_Update(ctx, indata, insize);
  27019. return (ARCHIVE_OK);
  27020. }
  27021. static int
  27022. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  27023. {
  27024. CC_SHA512_Final(md, ctx);
  27025. return (ARCHIVE_OK);
  27026. }
  27027. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  27028. static int
  27029. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  27030. {
  27031. sha512_init(ctx);
  27032. return (ARCHIVE_OK);
  27033. }
  27034. static int
  27035. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  27036. size_t insize)
  27037. {
  27038. sha512_update(ctx, insize, indata);
  27039. return (ARCHIVE_OK);
  27040. }
  27041. static int
  27042. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  27043. {
  27044. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  27045. return (ARCHIVE_OK);
  27046. }
  27047. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  27048. static int
  27049. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  27050. {
  27051. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  27052. return (ARCHIVE_FAILED);
  27053. EVP_DigestInit(*ctx, EVP_sha512());
  27054. return (ARCHIVE_OK);
  27055. }
  27056. static int
  27057. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  27058. size_t insize)
  27059. {
  27060. EVP_DigestUpdate(*ctx, indata, insize);
  27061. return (ARCHIVE_OK);
  27062. }
  27063. static int
  27064. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  27065. {
  27066. if (*ctx) {
  27067. EVP_DigestFinal(*ctx, md, NULL);
  27068. EVP_MD_CTX_free(*ctx);
  27069. *ctx = NULL;
  27070. }
  27071. return (ARCHIVE_OK);
  27072. }
  27073. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  27074. static int
  27075. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  27076. {
  27077. return (win_crypto_init(ctx, CALG_SHA_512));
  27078. }
  27079. static int
  27080. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  27081. size_t insize)
  27082. {
  27083. return (win_crypto_Update(ctx, indata, insize));
  27084. }
  27085. static int
  27086. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  27087. {
  27088. return (win_crypto_Final(md, 64, ctx));
  27089. }
  27090. #else
  27091. static int
  27092. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  27093. {
  27094. (void)ctx; /* UNUSED */
  27095. return (ARCHIVE_FAILED);
  27096. }
  27097. static int
  27098. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  27099. size_t insize)
  27100. {
  27101. (void)ctx; /* UNUSED */
  27102. (void)indata; /* UNUSED */
  27103. (void)insize; /* UNUSED */
  27104. return (ARCHIVE_FAILED);
  27105. }
  27106. static int
  27107. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  27108. {
  27109. (void)ctx; /* UNUSED */
  27110. (void)md; /* UNUSED */
  27111. return (ARCHIVE_FAILED);
  27112. }
  27113. #endif
  27114. /* NOTE: Message Digest functions are set based on availability and by the
  27115. * following order of preference.
  27116. * 1. libc
  27117. * 2. libc2
  27118. * 3. libc3
  27119. * 4. libSystem
  27120. * 5. Nettle
  27121. * 6. OpenSSL
  27122. * 7. libmd
  27123. * 8. Windows API
  27124. */
  27125. const struct archive_digest __archive_digest =
  27126. {
  27127. /* MD5 */
  27128. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  27129. &__archive_libc_md5init,
  27130. &__archive_libc_md5update,
  27131. &__archive_libc_md5final,
  27132. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  27133. &__archive_libmd_md5init,
  27134. &__archive_libmd_md5update,
  27135. &__archive_libmd_md5final,
  27136. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  27137. &__archive_libsystem_md5init,
  27138. &__archive_libsystem_md5update,
  27139. &__archive_libsystem_md5final,
  27140. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  27141. &__archive_nettle_md5init,
  27142. &__archive_nettle_md5update,
  27143. &__archive_nettle_md5final,
  27144. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  27145. &__archive_openssl_md5init,
  27146. &__archive_openssl_md5update,
  27147. &__archive_openssl_md5final,
  27148. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  27149. &__archive_windowsapi_md5init,
  27150. &__archive_windowsapi_md5update,
  27151. &__archive_windowsapi_md5final,
  27152. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  27153. &__archive_stub_md5init,
  27154. &__archive_stub_md5update,
  27155. &__archive_stub_md5final,
  27156. #endif
  27157. /* RIPEMD160 */
  27158. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  27159. &__archive_libc_ripemd160init,
  27160. &__archive_libc_ripemd160update,
  27161. &__archive_libc_ripemd160final,
  27162. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  27163. &__archive_libmd_ripemd160init,
  27164. &__archive_libmd_ripemd160update,
  27165. &__archive_libmd_ripemd160final,
  27166. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  27167. &__archive_nettle_ripemd160init,
  27168. &__archive_nettle_ripemd160update,
  27169. &__archive_nettle_ripemd160final,
  27170. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  27171. &__archive_openssl_ripemd160init,
  27172. &__archive_openssl_ripemd160update,
  27173. &__archive_openssl_ripemd160final,
  27174. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  27175. &__archive_stub_ripemd160init,
  27176. &__archive_stub_ripemd160update,
  27177. &__archive_stub_ripemd160final,
  27178. #endif
  27179. /* SHA1 */
  27180. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  27181. &__archive_libc_sha1init,
  27182. &__archive_libc_sha1update,
  27183. &__archive_libc_sha1final,
  27184. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  27185. &__archive_libmd_sha1init,
  27186. &__archive_libmd_sha1update,
  27187. &__archive_libmd_sha1final,
  27188. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  27189. &__archive_libsystem_sha1init,
  27190. &__archive_libsystem_sha1update,
  27191. &__archive_libsystem_sha1final,
  27192. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  27193. &__archive_nettle_sha1init,
  27194. &__archive_nettle_sha1update,
  27195. &__archive_nettle_sha1final,
  27196. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  27197. &__archive_openssl_sha1init,
  27198. &__archive_openssl_sha1update,
  27199. &__archive_openssl_sha1final,
  27200. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  27201. &__archive_windowsapi_sha1init,
  27202. &__archive_windowsapi_sha1update,
  27203. &__archive_windowsapi_sha1final,
  27204. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  27205. &__archive_stub_sha1init,
  27206. &__archive_stub_sha1update,
  27207. &__archive_stub_sha1final,
  27208. #endif
  27209. /* SHA256 */
  27210. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  27211. &__archive_libc_sha256init,
  27212. &__archive_libc_sha256update,
  27213. &__archive_libc_sha256final,
  27214. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  27215. &__archive_libc2_sha256init,
  27216. &__archive_libc2_sha256update,
  27217. &__archive_libc2_sha256final,
  27218. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  27219. &__archive_libc3_sha256init,
  27220. &__archive_libc3_sha256update,
  27221. &__archive_libc3_sha256final,
  27222. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  27223. &__archive_libmd_sha256init,
  27224. &__archive_libmd_sha256update,
  27225. &__archive_libmd_sha256final,
  27226. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  27227. &__archive_libsystem_sha256init,
  27228. &__archive_libsystem_sha256update,
  27229. &__archive_libsystem_sha256final,
  27230. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  27231. &__archive_nettle_sha256init,
  27232. &__archive_nettle_sha256update,
  27233. &__archive_nettle_sha256final,
  27234. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  27235. &__archive_openssl_sha256init,
  27236. &__archive_openssl_sha256update,
  27237. &__archive_openssl_sha256final,
  27238. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  27239. &__archive_windowsapi_sha256init,
  27240. &__archive_windowsapi_sha256update,
  27241. &__archive_windowsapi_sha256final,
  27242. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  27243. &__archive_stub_sha256init,
  27244. &__archive_stub_sha256update,
  27245. &__archive_stub_sha256final,
  27246. #endif
  27247. /* SHA384 */
  27248. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  27249. &__archive_libc_sha384init,
  27250. &__archive_libc_sha384update,
  27251. &__archive_libc_sha384final,
  27252. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  27253. &__archive_libc2_sha384init,
  27254. &__archive_libc2_sha384update,
  27255. &__archive_libc2_sha384final,
  27256. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  27257. &__archive_libc3_sha384init,
  27258. &__archive_libc3_sha384update,
  27259. &__archive_libc3_sha384final,
  27260. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  27261. &__archive_libsystem_sha384init,
  27262. &__archive_libsystem_sha384update,
  27263. &__archive_libsystem_sha384final,
  27264. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  27265. &__archive_nettle_sha384init,
  27266. &__archive_nettle_sha384update,
  27267. &__archive_nettle_sha384final,
  27268. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  27269. &__archive_openssl_sha384init,
  27270. &__archive_openssl_sha384update,
  27271. &__archive_openssl_sha384final,
  27272. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  27273. &__archive_windowsapi_sha384init,
  27274. &__archive_windowsapi_sha384update,
  27275. &__archive_windowsapi_sha384final,
  27276. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  27277. &__archive_stub_sha384init,
  27278. &__archive_stub_sha384update,
  27279. &__archive_stub_sha384final,
  27280. #endif
  27281. /* SHA512 */
  27282. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  27283. &__archive_libc_sha512init,
  27284. &__archive_libc_sha512update,
  27285. &__archive_libc_sha512final
  27286. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  27287. &__archive_libc2_sha512init,
  27288. &__archive_libc2_sha512update,
  27289. &__archive_libc2_sha512final
  27290. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  27291. &__archive_libc3_sha512init,
  27292. &__archive_libc3_sha512update,
  27293. &__archive_libc3_sha512final
  27294. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  27295. &__archive_libmd_sha512init,
  27296. &__archive_libmd_sha512update,
  27297. &__archive_libmd_sha512final
  27298. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  27299. &__archive_libsystem_sha512init,
  27300. &__archive_libsystem_sha512update,
  27301. &__archive_libsystem_sha512final
  27302. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  27303. &__archive_nettle_sha512init,
  27304. &__archive_nettle_sha512update,
  27305. &__archive_nettle_sha512final
  27306. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  27307. &__archive_openssl_sha512init,
  27308. &__archive_openssl_sha512update,
  27309. &__archive_openssl_sha512final
  27310. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  27311. &__archive_windowsapi_sha512init,
  27312. &__archive_windowsapi_sha512update,
  27313. &__archive_windowsapi_sha512final
  27314. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  27315. &__archive_stub_sha512init,
  27316. &__archive_stub_sha512update,
  27317. &__archive_stub_sha512final
  27318. #endif
  27319. };
  27320. int
  27321. main(int argc, char **argv)
  27322. {
  27323. archive_sha512_ctx ctx;
  27324. archive_sha512_init(&ctx);
  27325. archive_sha512_update(&ctx, *argv, argc);
  27326. archive_sha512_final(&ctx, NULL);
  27327. return 0;
  27328. }
  27329. Checking support for ARCHIVE_CRYPTO_SHA256_LIBC3 failed with the following output:
  27330. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  27331. Run Build Command:"/usr/bin/make" "cmTC_31cad/fast"
  27332. make -f CMakeFiles/cmTC_31cad.dir/build.make CMakeFiles/cmTC_31cad.dir/build
  27333. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  27334. Building C object CMakeFiles/cmTC_31cad.dir/check_crypto_md.c.o
  27335. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_31cad.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  27336. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  27337. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory
  27338. compilation terminated.
  27339. CMakeFiles/cmTC_31cad.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_31cad.dir/check_crypto_md.c.o' failed
  27340. make[1]: *** [CMakeFiles/cmTC_31cad.dir/check_crypto_md.c.o] Error 1
  27341. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  27342. Makefile:126: recipe for target 'cmTC_31cad/fast' failed
  27343. make: *** [cmTC_31cad/fast] Error 2
  27344. Source file was:
  27345. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  27346. #if defined(__osf__)
  27347. # define _OSF_SOURCE
  27348. #endif
  27349. /*
  27350. * Ensure we have C99-style int64_t, etc, all defined.
  27351. */
  27352. /* First, we need to know if the system has already defined them. */
  27353. #define HAVE_INT16_T
  27354. #define HAVE_INT32_T
  27355. #define HAVE_INT64_T
  27356. #define HAVE_INTMAX_T
  27357. #define HAVE_UINT8_T
  27358. #define HAVE_UINT16_T
  27359. #define HAVE_UINT32_T
  27360. #define HAVE_UINT64_T
  27361. #define HAVE_UINTMAX_T
  27362. /* We might have the types we want under other spellings. */
  27363. /* #undef HAVE___INT64 */
  27364. /* #undef HAVE_U_INT64_T */
  27365. /* #undef HAVE_UNSIGNED___INT64 */
  27366. /* The sizes of various standard integer types. */
  27367. #define SIZE_OF_SHORT 2
  27368. #define SIZE_OF_INT 4
  27369. #define SIZE_OF_LONG 8
  27370. #define SIZE_OF_LONG_LONG 8
  27371. #define SIZE_OF_UNSIGNED_SHORT 2
  27372. #define SIZE_OF_UNSIGNED 4
  27373. #define SIZE_OF_UNSIGNED_LONG 8
  27374. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  27375. /*
  27376. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  27377. * that exists and is the right size.
  27378. */
  27379. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  27380. typedef __int64 int64_t;
  27381. #define HAVE_INT64_T
  27382. #endif
  27383. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  27384. typedef int int64_t;
  27385. #define HAVE_INT64_T
  27386. #endif
  27387. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  27388. typedef long int64_t;
  27389. #define HAVE_INT64_T
  27390. #endif
  27391. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  27392. typedef long long int64_t;
  27393. #define HAVE_INT64_T
  27394. #endif
  27395. #if !defined(HAVE_INT64_T)
  27396. #error No 64-bit integer type was found.
  27397. #endif
  27398. /*
  27399. * Similarly for int32_t
  27400. */
  27401. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  27402. typedef int int32_t;
  27403. #define HAVE_INT32_T
  27404. #endif
  27405. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  27406. typedef long int32_t;
  27407. #define HAVE_INT32_T
  27408. #endif
  27409. #if !defined(HAVE_INT32_T)
  27410. #error No 32-bit integer type was found.
  27411. #endif
  27412. /*
  27413. * Similarly for int16_t
  27414. */
  27415. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  27416. typedef int int16_t;
  27417. #define HAVE_INT16_T
  27418. #endif
  27419. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  27420. typedef short int16_t;
  27421. #define HAVE_INT16_T
  27422. #endif
  27423. #if !defined(HAVE_INT16_T)
  27424. #error No 16-bit integer type was found.
  27425. #endif
  27426. /*
  27427. * Similarly for uint64_t
  27428. */
  27429. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  27430. typedef unsigned __int64 uint64_t;
  27431. #define HAVE_UINT64_T
  27432. #endif
  27433. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  27434. typedef unsigned uint64_t;
  27435. #define HAVE_UINT64_T
  27436. #endif
  27437. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  27438. typedef unsigned long uint64_t;
  27439. #define HAVE_UINT64_T
  27440. #endif
  27441. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  27442. typedef unsigned long long uint64_t;
  27443. #define HAVE_UINT64_T
  27444. #endif
  27445. #if !defined(HAVE_UINT64_T)
  27446. #error No 64-bit unsigned integer type was found.
  27447. #endif
  27448. /*
  27449. * Similarly for uint32_t
  27450. */
  27451. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  27452. typedef unsigned uint32_t;
  27453. #define HAVE_UINT32_T
  27454. #endif
  27455. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  27456. typedef unsigned long uint32_t;
  27457. #define HAVE_UINT32_T
  27458. #endif
  27459. #if !defined(HAVE_UINT32_T)
  27460. #error No 32-bit unsigned integer type was found.
  27461. #endif
  27462. /*
  27463. * Similarly for uint16_t
  27464. */
  27465. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  27466. typedef unsigned uint16_t;
  27467. #define HAVE_UINT16_T
  27468. #endif
  27469. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  27470. typedef unsigned short uint16_t;
  27471. #define HAVE_UINT16_T
  27472. #endif
  27473. #if !defined(HAVE_UINT16_T)
  27474. #error No 16-bit unsigned integer type was found.
  27475. #endif
  27476. /*
  27477. * Similarly for uint8_t
  27478. */
  27479. #if !defined(HAVE_UINT8_T)
  27480. typedef unsigned char uint8_t;
  27481. #define HAVE_UINT8_T
  27482. #endif
  27483. #if !defined(HAVE_UINT16_T)
  27484. #error No 8-bit unsigned integer type was found.
  27485. #endif
  27486. /* Define intmax_t and uintmax_t if they are not already defined. */
  27487. #if !defined(HAVE_INTMAX_T)
  27488. typedef int64_t intmax_t;
  27489. #endif
  27490. #if !defined(HAVE_UINTMAX_T)
  27491. typedef uint64_t uintmax_t;
  27492. #endif
  27493. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  27494. /* #undef ZLIB_WINAPI */
  27495. /* Darwin ACL support */
  27496. /* #undef ARCHIVE_ACL_DARWIN */
  27497. /* FreeBSD ACL support */
  27498. /* #undef ARCHIVE_ACL_FREEBSD */
  27499. /* FreeBSD NFSv4 ACL support */
  27500. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  27501. /* Linux POSIX.1e ACL support via libacl */
  27502. /* #undef ARCHIVE_ACL_LIBACL */
  27503. /* Linux NFSv4 ACL support via librichacl */
  27504. /* #undef ARCHIVE_ACL_LIBRICHACL */
  27505. /* Solaris ACL support */
  27506. /* #undef ARCHIVE_ACL_SUNOS */
  27507. /* Solaris NFSv4 ACL support */
  27508. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  27509. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  27510. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  27511. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  27512. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  27513. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  27514. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  27515. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  27516. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  27517. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  27518. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  27519. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  27520. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  27521. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  27522. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  27523. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  27524. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  27525. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  27526. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  27527. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  27528. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  27529. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  27530. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  27531. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  27532. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  27533. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  27534. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  27535. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  27536. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  27537. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  27538. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  27539. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  27540. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  27541. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  27542. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  27543. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  27544. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  27545. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  27546. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  27547. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  27548. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  27549. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  27550. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  27551. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  27552. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  27553. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  27554. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  27555. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  27556. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  27557. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  27558. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  27559. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  27560. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  27561. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  27562. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  27563. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  27564. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  27565. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  27566. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  27567. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  27568. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  27569. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  27570. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  27571. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  27572. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  27573. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  27574. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  27575. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  27576. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  27577. /* AIX xattr support */
  27578. /* #undef ARCHIVE_XATTR_AIX */
  27579. /* Darwin xattr support */
  27580. /* #undef ARCHIVE_XATTR_DARWIN */
  27581. /* FreeBSD xattr support */
  27582. /* #undef ARCHIVE_XATTR_FREEBSD */
  27583. /* Linux xattr support */
  27584. /* #undef ARCHIVE_XATTR_LINUX */
  27585. /* Version number of bsdcpio */
  27586. #define BSDCPIO_VERSION_STRING "3.3.2"
  27587. /* Version number of bsdtar */
  27588. #define BSDTAR_VERSION_STRING "3.3.2"
  27589. /* Version number of bsdcat */
  27590. #define BSDCAT_VERSION_STRING "3.3.2"
  27591. /* Define to 1 if you have the `acl_create_entry' function. */
  27592. /* #undef HAVE_ACL_CREATE_ENTRY */
  27593. /* Define to 1 if you have the `acl_get_fd_np' function. */
  27594. /* #undef HAVE_ACL_GET_FD_NP */
  27595. /* Define to 1 if you have the `acl_get_link' function. */
  27596. /* #undef HAVE_ACL_GET_LINK */
  27597. /* Define to 1 if you have the `acl_get_link_np' function. */
  27598. /* #undef HAVE_ACL_GET_LINK_NP */
  27599. /* Define to 1 if you have the `acl_get_perm' function. */
  27600. /* #undef HAVE_ACL_GET_PERM */
  27601. /* Define to 1 if you have the `acl_get_perm_np' function. */
  27602. /* #undef HAVE_ACL_GET_PERM_NP */
  27603. /* Define to 1 if you have the `acl_init' function. */
  27604. /* #undef HAVE_ACL_INIT */
  27605. /* Define to 1 if you have the <acl/libacl.h> header file. */
  27606. /* #undef HAVE_ACL_LIBACL_H */
  27607. /* Define to 1 if the system has the type `acl_permset_t'. */
  27608. /* #undef HAVE_ACL_PERMSET_T */
  27609. /* Define to 1 if you have the `acl_set_fd' function. */
  27610. /* #undef HAVE_ACL_SET_FD */
  27611. /* Define to 1 if you have the `acl_set_fd_np' function. */
  27612. /* #undef HAVE_ACL_SET_FD_NP */
  27613. /* Define to 1 if you have the `acl_set_file' function. */
  27614. /* #undef HAVE_ACL_SET_FILE */
  27615. /* Define to 1 if you have the `arc4random_buf' function. */
  27616. /* #undef HAVE_ARC4RANDOM_BUF */
  27617. /* Define to 1 if you have the <attr/xattr.h> header file. */
  27618. /* #undef HAVE_ATTR_XATTR_H */
  27619. /* Define to 1 if you have the <Bcrypt.h> header file. */
  27620. /* #undef HAVE_BCRYPT_H */
  27621. /* Define to 1 if you have the <bsdxml.h> header file. */
  27622. /* #undef HAVE_BSDXML_H */
  27623. /* Define to 1 if you have the <bzlib.h> header file. */
  27624. #define HAVE_BZLIB_H 1
  27625. /* Define to 1 if you have the `chflags' function. */
  27626. /* #undef HAVE_CHFLAGS */
  27627. /* Define to 1 if you have the `chown' function. */
  27628. #define HAVE_CHOWN 1
  27629. /* Define to 1 if you have the `chroot' function. */
  27630. #define HAVE_CHROOT 1
  27631. /* Define to 1 if you have the <copyfile.h> header file. */
  27632. /* #undef HAVE_COPYFILE_H */
  27633. /* Define to 1 if you have the `ctime_r' function. */
  27634. #define HAVE_CTIME_R 1
  27635. /* Define to 1 if you have the <ctype.h> header file. */
  27636. #define HAVE_CTYPE_H 1
  27637. /* Define to 1 if you have the `cygwin_conv_path' function. */
  27638. /* #undef HAVE_CYGWIN_CONV_PATH */
  27639. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  27640. don't. */
  27641. /* #undef HAVE_DECL_ACE_GETACL */
  27642. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  27643. don't. */
  27644. /* #undef HAVE_DECL_ACE_GETACLCNT */
  27645. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  27646. don't. */
  27647. /* #undef HAVE_DECL_ACE_SETACL */
  27648. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  27649. you don't. */
  27650. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  27651. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  27652. you don't. */
  27653. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  27654. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  27655. don't. */
  27656. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  27657. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  27658. don't. */
  27659. /* #undef HAVE_DECL_ACL_USER */
  27660. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  27661. don't. */
  27662. #define HAVE_DECL_INT32_MAX 1
  27663. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  27664. don't. */
  27665. #define HAVE_DECL_INT32_MIN 1
  27666. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  27667. don't. */
  27668. #define HAVE_DECL_INT64_MAX 1
  27669. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  27670. don't. */
  27671. #define HAVE_DECL_INT64_MIN 1
  27672. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  27673. don't. */
  27674. #define HAVE_DECL_INTMAX_MAX 1
  27675. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  27676. don't. */
  27677. #define HAVE_DECL_INTMAX_MIN 1
  27678. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  27679. */
  27680. /* #undef HAVE_DECL_SETACL */
  27681. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  27682. don't. */
  27683. #define HAVE_DECL_SIZE_MAX 1
  27684. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  27685. don't. */
  27686. #define HAVE_DECL_SSIZE_MAX 1
  27687. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  27688. don't. */
  27689. #define HAVE_DECL_STRERROR_R 1
  27690. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  27691. don't. */
  27692. #define HAVE_DECL_UINT32_MAX 1
  27693. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  27694. don't. */
  27695. #define HAVE_DECL_UINT64_MAX 1
  27696. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  27697. don't. */
  27698. #define HAVE_DECL_UINTMAX_MAX 1
  27699. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  27700. you don't. */
  27701. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  27702. /* Define to 1 if you have the <direct.h> header file. */
  27703. /* #undef HAVE_DIRECT_H */
  27704. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  27705. */
  27706. #define HAVE_DIRENT_H 1
  27707. /* Define to 1 if you have the `dirfd' function. */
  27708. #define HAVE_DIRFD 1
  27709. /* Define to 1 if you have the <dlfcn.h> header file. */
  27710. #define HAVE_DLFCN_H 1
  27711. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  27712. /* #undef HAVE_DOPRNT */
  27713. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  27714. /* #undef HAVE_D_MD_ORDER */
  27715. /* A possible errno value for invalid file format errors */
  27716. /* #undef HAVE_EFTYPE */
  27717. /* A possible errno value for invalid file format errors */
  27718. #define HAVE_EILSEQ 1
  27719. /* Define to 1 if you have the <errno.h> header file. */
  27720. #define HAVE_ERRNO_H 1
  27721. /* Define to 1 if you have the <expat.h> header file. */
  27722. /* #undef HAVE_EXPAT_H */
  27723. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  27724. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  27725. /* Define to 1 if you have the `extattr_get_file' function. */
  27726. /* #undef HAVE_EXTATTR_GET_FILE */
  27727. /* Define to 1 if you have the `extattr_list_file' function. */
  27728. /* #undef HAVE_EXTATTR_LIST_FILE */
  27729. /* Define to 1 if you have the `extattr_set_fd' function. */
  27730. /* #undef HAVE_EXTATTR_SET_FD */
  27731. /* Define to 1 if you have the `extattr_set_file' function. */
  27732. /* #undef HAVE_EXTATTR_SET_FILE */
  27733. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  27734. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  27735. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  27736. */
  27737. /* #undef HAVE_DECL_GETACL */
  27738. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  27739. don't. */
  27740. /* #undef HAVE_DECL_GETACLCNT */
  27741. /* Define to 1 if you have the `fchdir' function. */
  27742. #define HAVE_FCHDIR 1
  27743. /* Define to 1 if you have the `fchflags' function. */
  27744. /* #undef HAVE_FCHFLAGS */
  27745. /* Define to 1 if you have the `fchmod' function. */
  27746. #define HAVE_FCHMOD 1
  27747. /* Define to 1 if you have the `fchown' function. */
  27748. #define HAVE_FCHOWN 1
  27749. /* Define to 1 if you have the `fcntl' function. */
  27750. #define HAVE_FCNTL 1
  27751. /* Define to 1 if you have the <fcntl.h> header file. */
  27752. #define HAVE_FCNTL_H 1
  27753. /* Define to 1 if you have the `fdopendir' function. */
  27754. #define HAVE_FDOPENDIR 1
  27755. /* Define to 1 if you have the `fgetea' function. */
  27756. /* #undef HAVE_FGETEA */
  27757. /* Define to 1 if you have the `fgetxattr' function. */
  27758. /* #undef HAVE_FGETXATTR */
  27759. /* Define to 1 if you have the `flistea' function. */
  27760. /* #undef HAVE_FLISTEA */
  27761. /* Define to 1 if you have the `flistxattr' function. */
  27762. /* #undef HAVE_FLISTXATTR */
  27763. /* Define to 1 if you have the `fork' function. */
  27764. #define HAVE_FORK 1
  27765. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  27766. #define HAVE_FSEEKO 1
  27767. /* Define to 1 if you have the `fsetea' function. */
  27768. /* #undef HAVE_FSETEA */
  27769. /* Define to 1 if you have the `fsetxattr' function. */
  27770. #define HAVE_FSETXATTR 1
  27771. /* Define to 1 if you have the `fstat' function. */
  27772. #define HAVE_FSTAT 1
  27773. /* Define to 1 if you have the `fstatat' function. */
  27774. #define HAVE_FSTATAT 1
  27775. /* Define to 1 if you have the `fstatfs' function. */
  27776. #define HAVE_FSTATFS 1
  27777. /* Define to 1 if you have the `fstatvfs' function. */
  27778. #define HAVE_FSTATVFS 1
  27779. /* Define to 1 if you have the `ftruncate' function. */
  27780. #define HAVE_FTRUNCATE 1
  27781. /* Define to 1 if you have the `futimens' function. */
  27782. #define HAVE_FUTIMENS 1
  27783. /* Define to 1 if you have the `futimes' function. */
  27784. #define HAVE_FUTIMES 1
  27785. /* Define to 1 if you have the `futimesat' function. */
  27786. #define HAVE_FUTIMESAT 1
  27787. /* Define to 1 if you have the `getea' function. */
  27788. /* #undef HAVE_GETEA */
  27789. /* Define to 1 if you have the `geteuid' function. */
  27790. #define HAVE_GETEUID 1
  27791. /* Define to 1 if you have the `getgrgid_r' function. */
  27792. #define HAVE_GETGRGID_R 1
  27793. /* Define to 1 if you have the `getgrnam_r' function. */
  27794. #define HAVE_GETGRNAM_R 1
  27795. /* Define to 1 if you have the `getpid' function. */
  27796. #define HAVE_GETPID 1
  27797. /* Define to 1 if you have the `getpwnam_r' function. */
  27798. #define HAVE_GETPWNAM_R 1
  27799. /* Define to 1 if you have the `getpwuid_r' function. */
  27800. #define HAVE_GETPWUID_R 1
  27801. /* Define to 1 if you have the `getvfsbyname' function. */
  27802. /* #undef HAVE_GETVFSBYNAME */
  27803. /* Define to 1 if you have the `getxattr' function. */
  27804. /* #undef HAVE_GETXATTR */
  27805. /* Define to 1 if you have the `gmtime_r' function. */
  27806. #define HAVE_GMTIME_R 1
  27807. /* Define to 1 if you have the <grp.h> header file. */
  27808. #define HAVE_GRP_H 1
  27809. /* Define to 1 if you have the `iconv' function. */
  27810. /* #undef HAVE_ICONV */
  27811. /* Define to 1 if you have the <iconv.h> header file. */
  27812. /* #undef HAVE_ICONV_H */
  27813. /* Define to 1 if you have the <inttypes.h> header file. */
  27814. #define HAVE_INTTYPES_H 1
  27815. /* Define to 1 if you have the <io.h> header file. */
  27816. /* #undef HAVE_IO_H */
  27817. /* Define to 1 if you have the <langinfo.h> header file. */
  27818. #define HAVE_LANGINFO_H 1
  27819. /* Define to 1 if you have the `lchflags' function. */
  27820. /* #undef HAVE_LCHFLAGS */
  27821. /* Define to 1 if you have the `lchmod' function. */
  27822. /* #undef HAVE_LCHMOD */
  27823. /* Define to 1 if you have the `lchown' function. */
  27824. #define HAVE_LCHOWN 1
  27825. /* Define to 1 if you have the `lgetea' function. */
  27826. /* #undef HAVE_LGETEA */
  27827. /* Define to 1 if you have the `lgetxattr' function. */
  27828. /* #undef HAVE_LGETXATTR */
  27829. /* Define to 1 if you have the `acl' library (-lacl). */
  27830. /* #undef HAVE_LIBACL */
  27831. /* Define to 1 if you have the `attr' library (-lattr). */
  27832. /* #undef HAVE_LIBATTR */
  27833. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  27834. /* #undef HAVE_LIBBSDXML */
  27835. /* Define to 1 if you have the `bz2' library (-lbz2). */
  27836. #define HAVE_LIBBZ2 1
  27837. /* Define to 1 if you have the `charset' library (-lcharset). */
  27838. /* #undef HAVE_LIBCHARSET */
  27839. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  27840. #define HAVE_LIBCRYPTO 1
  27841. /* Define to 1 if you have the `expat' library (-lexpat). */
  27842. /* #undef HAVE_LIBEXPAT */
  27843. /* Define to 1 if you have the `gcc' library (-lgcc). */
  27844. /* #undef HAVE_LIBGCC */
  27845. /* Define to 1 if you have the `lz4' library (-llz4). */
  27846. /* #undef HAVE_LIBLZ4 */
  27847. /* Define to 1 if you have the `lzma' library (-llzma). */
  27848. #define HAVE_LIBLZMA 1
  27849. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  27850. /* #undef HAVE_LIBLZMADEC */
  27851. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  27852. /* #undef HAVE_LIBLZO2 */
  27853. /* Define to 1 if you have the `nettle' library (-lnettle). */
  27854. /* #undef HAVE_LIBNETTLE */
  27855. /* Define to 1 if you have the `pcre' library (-lpcre). */
  27856. /* #undef HAVE_LIBPCRE */
  27857. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  27858. /* #undef HAVE_LIBPCREPOSIX */
  27859. /* Define to 1 if you have the `xml2' library (-lxml2). */
  27860. /* #undef HAVE_LIBXML2 */
  27861. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  27862. /* #undef HAVE_LIBXML_XMLREADER_H */
  27863. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  27864. /* #undef HAVE_LIBXML_XMLWRITER_H */
  27865. /* Define to 1 if you have the `z' library (-lz). */
  27866. #define HAVE_LIBZ 1
  27867. /* Define to 1 if you have the <limits.h> header file. */
  27868. #define HAVE_LIMITS_H 1
  27869. /* Define to 1 if you have the `link' function. */
  27870. #define HAVE_LINK 1
  27871. /* Define to 1 if you have the <linux/types.h> header file. */
  27872. #define HAVE_LINUX_TYPES_H 1
  27873. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  27874. #define HAVE_LINUX_FIEMAP_H 1
  27875. /* Define to 1 if you have the <linux/fs.h> header file. */
  27876. #define HAVE_LINUX_FS_H 1
  27877. /* Define to 1 if you have the <linux/magic.h> header file. */
  27878. #define HAVE_LINUX_MAGIC_H 1
  27879. /* Define to 1 if you have the <linux/types.h> header file. */
  27880. #define HAVE_LINUX_TYPES_H 1
  27881. /* Define to 1 if you have the `listea' function. */
  27882. /* #undef HAVE_LISTEA */
  27883. /* Define to 1 if you have the `listxattr' function. */
  27884. /* #undef HAVE_LISTXATTR */
  27885. /* Define to 1 if you have the `llistea' function. */
  27886. /* #undef HAVE_LLISTEA */
  27887. /* Define to 1 if you have the `llistxattr' function. */
  27888. /* #undef HAVE_LLISTXATTR */
  27889. /* Define to 1 if you have the <localcharset.h> header file. */
  27890. /* #undef HAVE_LOCALCHARSET_H */
  27891. /* Define to 1 if you have the `locale_charset' function. */
  27892. /* #undef HAVE_LOCALE_CHARSET */
  27893. /* Define to 1 if you have the <locale.h> header file. */
  27894. #define HAVE_LOCALE_H 1
  27895. /* Define to 1 if you have the `localtime_r' function. */
  27896. #define HAVE_LOCALTIME_R 1
  27897. /* Define to 1 if the system has the type `long long int'. */
  27898. /* #undef HAVE_LONG_LONG_INT */
  27899. /* Define to 1 if you have the `lsetea' function. */
  27900. /* #undef HAVE_LSETEA */
  27901. /* Define to 1 if you have the `lsetxattr' function. */
  27902. /* #undef HAVE_LSETXATTR */
  27903. /* Define to 1 if you have the `lstat' function. */
  27904. #define HAVE_LSTAT 1
  27905. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  27906. zero-length file name argument. */
  27907. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  27908. /* Define to 1 if you have the `lutimes' function. */
  27909. #define HAVE_LUTIMES 1
  27910. /* Define to 1 if you have the <lz4hc.h> header file. */
  27911. /* #undef HAVE_LZ4HC_H */
  27912. /* Define to 1 if you have the <lz4.h> header file. */
  27913. /* #undef HAVE_LZ4_H */
  27914. /* Define to 1 if you have the <lzmadec.h> header file. */
  27915. /* #undef HAVE_LZMADEC_H */
  27916. /* Define to 1 if you have the <lzma.h> header file. */
  27917. #define HAVE_LZMA_H 1
  27918. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  27919. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  27920. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  27921. /* #undef HAVE_LZO_LZO1X_H */
  27922. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  27923. /* #undef HAVE_LZO_LZOCONF_H */
  27924. /* Define to 1 if you have the `mbrtowc' function. */
  27925. #define HAVE_MBRTOWC 1
  27926. /* Define to 1 if you have the <membership.h> header file. */
  27927. /* #undef HAVE_MEMBERSHIP_H */
  27928. /* Define to 1 if you have the `memmove' function. */
  27929. #define HAVE_MEMMOVE 1
  27930. /* Define to 1 if you have the <memory.h> header file. */
  27931. #define HAVE_MEMORY_H 1
  27932. /* Define to 1 if you have the `mkdir' function. */
  27933. #define HAVE_MKDIR 1
  27934. /* Define to 1 if you have the `mkfifo' function. */
  27935. #define HAVE_MKFIFO 1
  27936. /* Define to 1 if you have the `mknod' function. */
  27937. #define HAVE_MKNOD 1
  27938. /* Define to 1 if you have the `mkstemp' function. */
  27939. #define HAVE_MKSTEMP 1
  27940. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  27941. /* #undef HAVE_NDIR_H */
  27942. /* Define to 1 if you have the <nettle/aes.h> header file. */
  27943. /* #undef HAVE_NETTLE_AES_H */
  27944. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  27945. /* #undef HAVE_NETTLE_HMAC_H */
  27946. /* Define to 1 if you have the <nettle/md5.h> header file. */
  27947. /* #undef HAVE_NETTLE_MD5_H */
  27948. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  27949. /* #undef HAVE_NETTLE_PBKDF2_H */
  27950. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  27951. /* #undef HAVE_NETTLE_RIPEMD160_H */
  27952. /* Define to 1 if you have the <nettle/sha.h> header file. */
  27953. /* #undef HAVE_NETTLE_SHA_H */
  27954. /* Define to 1 if you have the `nl_langinfo' function. */
  27955. #define HAVE_NL_LANGINFO 1
  27956. /* Define to 1 if you have the `openat' function. */
  27957. #define HAVE_OPENAT 1
  27958. /* Define to 1 if you have the <paths.h> header file. */
  27959. #define HAVE_PATHS_H 1
  27960. /* Define to 1 if you have the <pcreposix.h> header file. */
  27961. /* #undef HAVE_PCREPOSIX_H */
  27962. /* Define to 1 if you have the `pipe' function. */
  27963. #define HAVE_PIPE 1
  27964. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  27965. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  27966. /* Define to 1 if you have the `poll' function. */
  27967. #define HAVE_POLL 1
  27968. /* Define to 1 if you have the <poll.h> header file. */
  27969. #define HAVE_POLL_H 1
  27970. /* Define to 1 if you have the `posix_spawnp' function. */
  27971. #define HAVE_POSIX_SPAWNP 1
  27972. /* Define to 1 if you have the <process.h> header file. */
  27973. /* #undef HAVE_PROCESS_H */
  27974. /* Define to 1 if you have the <pthread.h> header file. */
  27975. /* #undef HAVE_PTHREAD_H */
  27976. /* Define to 1 if you have the <pwd.h> header file. */
  27977. #define HAVE_PWD_H 1
  27978. /* Define to 1 if you have the `readdir_r' function. */
  27979. #define HAVE_READDIR_R 1
  27980. /* Define to 1 if you have the `readlink' function. */
  27981. #define HAVE_READLINK 1
  27982. /* Define to 1 if you have the `readlinkat' function. */
  27983. #define HAVE_READLINKAT 1
  27984. /* Define to 1 if you have the `readpassphrase' function. */
  27985. /* #undef HAVE_READPASSPHRASE */
  27986. /* Define to 1 if you have the <readpassphrase.h> header file. */
  27987. /* #undef HAVE_READPASSPHRASE_H */
  27988. /* Define to 1 if you have the <regex.h> header file. */
  27989. #define HAVE_REGEX_H 1
  27990. /* Define to 1 if you have the `select' function. */
  27991. #define HAVE_SELECT 1
  27992. /* Define to 1 if you have the `setenv' function. */
  27993. #define HAVE_SETENV 1
  27994. /* Define to 1 if you have the `setlocale' function. */
  27995. #define HAVE_SETLOCALE 1
  27996. /* Define to 1 if you have the `sigaction' function. */
  27997. #define HAVE_SIGACTION 1
  27998. /* Define to 1 if you have the <signal.h> header file. */
  27999. #define HAVE_SIGNAL_H 1
  28000. /* Define to 1 if you have the <spawn.h> header file. */
  28001. #define HAVE_SPAWN_H 1
  28002. /* Define to 1 if you have the `statfs' function. */
  28003. #define HAVE_STATFS 1
  28004. /* Define to 1 if you have the `statvfs' function. */
  28005. #define HAVE_STATVFS 1
  28006. /* Define to 1 if `stat' has the bug that it succeeds when given the
  28007. zero-length file name argument. */
  28008. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  28009. /* Define to 1 if you have the <stdarg.h> header file. */
  28010. #define HAVE_STDARG_H 1
  28011. /* Define to 1 if you have the <stdint.h> header file. */
  28012. #define HAVE_STDINT_H 1
  28013. /* Define to 1 if you have the <stdlib.h> header file. */
  28014. #define HAVE_STDLIB_H 1
  28015. /* Define to 1 if you have the `strchr' function. */
  28016. #define HAVE_STRCHR 1
  28017. /* Define to 1 if you have the `strdup' function. */
  28018. #define HAVE_STRDUP 1
  28019. /* Define to 1 if you have the `strerror' function. */
  28020. #define HAVE_STRERROR 1
  28021. /* Define to 1 if you have the `strerror_r' function. */
  28022. #define HAVE_STRERROR_R 1
  28023. /* Define to 1 if you have the `strftime' function. */
  28024. #define HAVE_STRFTIME 1
  28025. /* Define to 1 if you have the <strings.h> header file. */
  28026. #define HAVE_STRINGS_H 1
  28027. /* Define to 1 if you have the <string.h> header file. */
  28028. #define HAVE_STRING_H 1
  28029. /* Define to 1 if you have the `strrchr' function. */
  28030. #define HAVE_STRRCHR 1
  28031. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  28032. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  28033. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  28034. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  28035. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  28036. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  28037. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  28038. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  28039. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  28040. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  28041. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  28042. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  28043. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  28044. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  28045. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  28046. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  28047. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  28048. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  28049. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  28050. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  28051. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  28052. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  28053. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  28054. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  28055. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  28056. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  28057. /* Define to 1 if you have `struct vfsconf'. */
  28058. /* #undef HAVE_STRUCT_VFSCONF */
  28059. /* Define to 1 if you have `struct xvfsconf'. */
  28060. /* #undef HAVE_STRUCT_XVFSCONF */
  28061. /* Define to 1 if you have the `symlink' function. */
  28062. #define HAVE_SYMLINK 1
  28063. /* Define to 1 if you have the <sys/acl.h> header file. */
  28064. /* #undef HAVE_SYS_ACL_H */
  28065. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  28066. #define HAVE_SYS_CDEFS_H 1
  28067. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  28068. */
  28069. /* #undef HAVE_SYS_DIR_H */
  28070. /* Define to 1 if you have the <sys/ea.h> header file. */
  28071. /* #undef HAVE_SYS_EA_H */
  28072. /* Define to 1 if you have the <sys/extattr.h> header file. */
  28073. /* #undef HAVE_SYS_EXTATTR_H */
  28074. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  28075. #define HAVE_SYS_IOCTL_H 1
  28076. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  28077. /* #undef HAVE_SYS_MKDEV_H */
  28078. /* Define to 1 if you have the <sys/mount.h> header file. */
  28079. /* #undef HAVE_SYS_MOUNT_H */
  28080. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  28081. */
  28082. /* #undef HAVE_SYS_NDIR_H */
  28083. /* Define to 1 if you have the <sys/param.h> header file. */
  28084. #define HAVE_SYS_PARAM_H 1
  28085. /* Define to 1 if you have the <sys/poll.h> header file. */
  28086. #define HAVE_SYS_POLL_H 1
  28087. /* Define to 1 if you have the <sys/richacl.h> header file. */
  28088. /* #undef HAVE_SYS_RICHACL_H */
  28089. /* Define to 1 if you have the <sys/select.h> header file. */
  28090. #define HAVE_SYS_SELECT_H 1
  28091. /* Define to 1 if you have the <sys/statfs.h> header file. */
  28092. #define HAVE_SYS_STATFS_H 1
  28093. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  28094. #define HAVE_SYS_STATVFS_H 1
  28095. /* Define to 1 if you have the <sys/stat.h> header file. */
  28096. #define HAVE_SYS_STAT_H 1
  28097. /* Define to 1 if you have the <sys/time.h> header file. */
  28098. #define HAVE_SYS_TIME_H 1
  28099. /* Define to 1 if you have the <sys/types.h> header file. */
  28100. #define HAVE_SYS_TYPES_H 1
  28101. /* Define to 1 if you have the <sys/utime.h> header file. */
  28102. /* #undef HAVE_SYS_UTIME_H */
  28103. /* Define to 1 if you have the <sys/utsname.h> header file. */
  28104. #define HAVE_SYS_UTSNAME_H 1
  28105. /* Define to 1 if you have the <sys/vfs.h> header file. */
  28106. #define HAVE_SYS_VFS_H 1
  28107. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  28108. #define HAVE_SYS_WAIT_H 1
  28109. /* Define to 1 if you have the <sys/xattr.h> header file. */
  28110. #define HAVE_SYS_XATTR_H 1
  28111. /* Define to 1 if you have the `timegm' function. */
  28112. #define HAVE_TIMEGM 1
  28113. /* Define to 1 if you have the <time.h> header file. */
  28114. #define HAVE_TIME_H 1
  28115. /* Define to 1 if you have the `tzset' function. */
  28116. #define HAVE_TZSET 1
  28117. /* Define to 1 if you have the <unistd.h> header file. */
  28118. #define HAVE_UNISTD_H 1
  28119. /* Define to 1 if you have the `unsetenv' function. */
  28120. #define HAVE_UNSETENV 1
  28121. /* Define to 1 if the system has the type `unsigned long long'. */
  28122. /* #undef HAVE_UNSIGNED_LONG_LONG */
  28123. /* Define to 1 if the system has the type `unsigned long long int'. */
  28124. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  28125. /* Define to 1 if you have the `utime' function. */
  28126. #define HAVE_UTIME 1
  28127. /* Define to 1 if you have the `utimensat' function. */
  28128. #define HAVE_UTIMENSAT 1
  28129. /* Define to 1 if you have the `utimes' function. */
  28130. #define HAVE_UTIMES 1
  28131. /* Define to 1 if you have the <utime.h> header file. */
  28132. #define HAVE_UTIME_H 1
  28133. /* Define to 1 if you have the `vfork' function. */
  28134. #define HAVE_VFORK 1
  28135. /* Define to 1 if you have the `vprintf' function. */
  28136. #define HAVE_VPRINTF 1
  28137. /* Define to 1 if you have the <wchar.h> header file. */
  28138. #define HAVE_WCHAR_H 1
  28139. /* Define to 1 if the system has the type `wchar_t'. */
  28140. #define HAVE_WCHAR_T 1
  28141. /* Define to 1 if you have the `wcrtomb' function. */
  28142. #define HAVE_WCRTOMB 1
  28143. /* Define to 1 if you have the `wcscmp' function. */
  28144. #define HAVE_WCSCMP 1
  28145. /* Define to 1 if you have the `wcscpy' function. */
  28146. #define HAVE_WCSCPY 1
  28147. /* Define to 1 if you have the `wcslen' function. */
  28148. #define HAVE_WCSLEN 1
  28149. /* Define to 1 if you have the `wctomb' function. */
  28150. #define HAVE_WCTOMB 1
  28151. /* Define to 1 if you have the <wctype.h> header file. */
  28152. #define HAVE_WCTYPE_H 1
  28153. /* Define to 1 if you have the <wincrypt.h> header file. */
  28154. /* #undef HAVE_WINCRYPT_H */
  28155. /* Define to 1 if you have the <windows.h> header file. */
  28156. /* #undef HAVE_WINDOWS_H */
  28157. /* Define to 1 if you have the <winioctl.h> header file. */
  28158. /* #undef HAVE_WINIOCTL_H */
  28159. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  28160. /* #undef HAVE__CrtSetReportMode */
  28161. /* Define to 1 if you have the `wmemcmp' function. */
  28162. #define HAVE_WMEMCMP 1
  28163. /* Define to 1 if you have the `wmemcpy' function. */
  28164. #define HAVE_WMEMCPY 1
  28165. /* Define to 1 if you have the `wmemmove' function. */
  28166. #define HAVE_WMEMMOVE 1
  28167. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  28168. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  28169. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  28170. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  28171. /* Define to 1 if you have the <zlib.h> header file. */
  28172. #define HAVE_ZLIB_H 1
  28173. /* Define to 1 if you have the `_ctime64_s' function. */
  28174. /* #undef HAVE__CTIME64_S */
  28175. /* Define to 1 if you have the `_fseeki64' function. */
  28176. /* #undef HAVE__FSEEKI64 */
  28177. /* Define to 1 if you have the `_get_timezone' function. */
  28178. /* #undef HAVE__GET_TIMEZONE */
  28179. /* Define to 1 if you have the `_localtime64_s' function. */
  28180. /* #undef HAVE__LOCALTIME64_S */
  28181. /* Define to 1 if you have the `_mkgmtime64' function. */
  28182. /* #undef HAVE__MKGMTIME64 */
  28183. /* Define as const if the declaration of iconv() needs const. */
  28184. #define ICONV_CONST
  28185. /* Version number of libarchive as a single integer */
  28186. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  28187. /* Version number of libarchive */
  28188. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  28189. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  28190. slash. */
  28191. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  28192. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  28193. */
  28194. /* #undef MAJOR_IN_MKDEV */
  28195. /* Define to 1 if `major', `minor', and `makedev' are declared in
  28196. <sysmacros.h>. */
  28197. #define MAJOR_IN_SYSMACROS 1
  28198. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  28199. /* #undef NO_MINUS_C_MINUS_O */
  28200. /* The size of `wchar_t', as computed by sizeof. */
  28201. #define SIZEOF_WCHAR_T 4
  28202. /* Define to 1 if strerror_r returns char *. */
  28203. /* #undef STRERROR_R_CHAR_P */
  28204. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  28205. #define TIME_WITH_SYS_TIME 1
  28206. /*
  28207. * Some platform requires a macro to use extension functions.
  28208. */
  28209. #define SAFE_TO_DEFINE_EXTENSIONS 1
  28210. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  28211. /* Enable extensions on AIX 3, Interix. */
  28212. #ifndef _ALL_SOURCE
  28213. # define _ALL_SOURCE 1
  28214. #endif
  28215. /* Enable GNU extensions on systems that have them. */
  28216. #ifndef _GNU_SOURCE
  28217. # define _GNU_SOURCE 1
  28218. #endif
  28219. /* Enable threading extensions on Solaris. */
  28220. #ifndef _POSIX_PTHREAD_SEMANTICS
  28221. # define _POSIX_PTHREAD_SEMANTICS 1
  28222. #endif
  28223. /* Enable extensions on HP NonStop. */
  28224. #ifndef _TANDEM_SOURCE
  28225. # define _TANDEM_SOURCE 1
  28226. #endif
  28227. /* Enable general extensions on Solaris. */
  28228. #ifndef __EXTENSIONS__
  28229. # define __EXTENSIONS__ 1
  28230. #endif
  28231. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  28232. /* Version number of package */
  28233. #define VERSION "3.3.2"
  28234. /* Number of bits in a file offset, on hosts where this is settable. */
  28235. /* #undef _FILE_OFFSET_BITS */
  28236. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  28237. /* #undef _LARGEFILE_SOURCE */
  28238. /* Define for large files, on AIX-style hosts. */
  28239. /* #undef _LARGE_FILES */
  28240. /* Define to control Windows SDK version */
  28241. #ifndef NTDDI_VERSION
  28242. /* #undef NTDDI_VERSION */
  28243. #endif // NTDDI_VERSION
  28244. #ifndef _WIN32_WINNT
  28245. /* #undef _WIN32_WINNT */
  28246. #endif // _WIN32_WINNT
  28247. #ifndef WINVER
  28248. /* #undef WINVER */
  28249. #endif // WINVER
  28250. /* Define to empty if `const' does not conform to ANSI C. */
  28251. /* #undef const */
  28252. /* Define to `int' if <sys/types.h> doesn't define. */
  28253. /* #undef gid_t */
  28254. /* Define to `unsigned long' if <sys/types.h> does not define. */
  28255. /* #undef id_t */
  28256. /* Define to `int' if <sys/types.h> does not define. */
  28257. /* #undef mode_t */
  28258. /* Define to `long long' if <sys/types.h> does not define. */
  28259. /* #undef off_t */
  28260. /* Define to `int' if <sys/types.h> doesn't define. */
  28261. /* #undef pid_t */
  28262. /* Define to `unsigned int' if <sys/types.h> does not define. */
  28263. /* #undef size_t */
  28264. /* Define to `int' if <sys/types.h> does not define. */
  28265. /* #undef ssize_t */
  28266. /* Define to `int' if <sys/types.h> doesn't define. */
  28267. /* #undef uid_t */
  28268. /* Define to `int' if <sys/types.h> does not define. */
  28269. /* #undef intptr_t */
  28270. /* Define to `unsigned int' if <sys/types.h> does not define. */
  28271. /* #undef uintptr_t */
  28272. #define ARCHIVE_SHA256_COMPILE_TEST
  28273. #define ARCHIVE_CRYPTO_SHA256_LIBC3
  28274. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  28275. /*-
  28276. * Copyright (c) 2003-2007 Tim Kientzle
  28277. * Copyright (c) 2011 Andres Mejia
  28278. * Copyright (c) 2011 Michihiro NAKAJIMA
  28279. * All rights reserved.
  28280. *
  28281. * Redistribution and use in source and binary forms, with or without
  28282. * modification, are permitted provided that the following conditions
  28283. * are met:
  28284. * 1. Redistributions of source code must retain the above copyright
  28285. * notice, this list of conditions and the following disclaimer.
  28286. * 2. Redistributions in binary form must reproduce the above copyright
  28287. * notice, this list of conditions and the following disclaimer in the
  28288. * documentation and/or other materials provided with the distribution.
  28289. *
  28290. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  28291. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  28292. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  28293. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  28294. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  28295. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  28296. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28297. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  28298. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  28299. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  28300. */
  28301. #include "archive_platform.h"
  28302. #include "archive.h"
  28303. #include "archive_digest_private.h"
  28304. /* In particular, force the configure probe to break if it tries
  28305. * to test a combination of OpenSSL and libmd. */
  28306. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  28307. #error Cannot use both OpenSSL and libmd.
  28308. #endif
  28309. /*
  28310. * Message digest functions for Windows platform.
  28311. */
  28312. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  28313. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  28314. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  28315. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  28316. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  28317. /*
  28318. * Initialize a Message digest.
  28319. */
  28320. static int
  28321. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  28322. {
  28323. ctx->valid = 0;
  28324. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  28325. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  28326. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  28327. return (ARCHIVE_FAILED);
  28328. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  28329. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  28330. return (ARCHIVE_FAILED);
  28331. }
  28332. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  28333. CryptReleaseContext(ctx->cryptProv, 0);
  28334. return (ARCHIVE_FAILED);
  28335. }
  28336. ctx->valid = 1;
  28337. return (ARCHIVE_OK);
  28338. }
  28339. /*
  28340. * Update a Message digest.
  28341. */
  28342. static int
  28343. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  28344. {
  28345. if (!ctx->valid)
  28346. return (ARCHIVE_FAILED);
  28347. CryptHashData(ctx->hash,
  28348. (unsigned char *)(uintptr_t)buf,
  28349. (DWORD)len, 0);
  28350. return (ARCHIVE_OK);
  28351. }
  28352. static int
  28353. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  28354. {
  28355. DWORD siglen = (DWORD)bufsize;
  28356. if (!ctx->valid)
  28357. return (ARCHIVE_FAILED);
  28358. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  28359. CryptDestroyHash(ctx->hash);
  28360. CryptReleaseContext(ctx->cryptProv, 0);
  28361. ctx->valid = 0;
  28362. return (ARCHIVE_OK);
  28363. }
  28364. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  28365. /* MD5 implementations */
  28366. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  28367. static int
  28368. __archive_libc_md5init(archive_md5_ctx *ctx)
  28369. {
  28370. MD5Init(ctx);
  28371. return (ARCHIVE_OK);
  28372. }
  28373. static int
  28374. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  28375. size_t insize)
  28376. {
  28377. MD5Update(ctx, indata, insize);
  28378. return (ARCHIVE_OK);
  28379. }
  28380. static int
  28381. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  28382. {
  28383. MD5Final(md, ctx);
  28384. return (ARCHIVE_OK);
  28385. }
  28386. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  28387. static int
  28388. __archive_libmd_md5init(archive_md5_ctx *ctx)
  28389. {
  28390. MD5Init(ctx);
  28391. return (ARCHIVE_OK);
  28392. }
  28393. static int
  28394. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  28395. size_t insize)
  28396. {
  28397. MD5Update(ctx, indata, insize);
  28398. return (ARCHIVE_OK);
  28399. }
  28400. static int
  28401. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  28402. {
  28403. MD5Final(md, ctx);
  28404. return (ARCHIVE_OK);
  28405. }
  28406. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  28407. static int
  28408. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  28409. {
  28410. CC_MD5_Init(ctx);
  28411. return (ARCHIVE_OK);
  28412. }
  28413. static int
  28414. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  28415. size_t insize)
  28416. {
  28417. CC_MD5_Update(ctx, indata, insize);
  28418. return (ARCHIVE_OK);
  28419. }
  28420. static int
  28421. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  28422. {
  28423. CC_MD5_Final(md, ctx);
  28424. return (ARCHIVE_OK);
  28425. }
  28426. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  28427. static int
  28428. __archive_nettle_md5init(archive_md5_ctx *ctx)
  28429. {
  28430. md5_init(ctx);
  28431. return (ARCHIVE_OK);
  28432. }
  28433. static int
  28434. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  28435. size_t insize)
  28436. {
  28437. md5_update(ctx, insize, indata);
  28438. return (ARCHIVE_OK);
  28439. }
  28440. static int
  28441. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  28442. {
  28443. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  28444. return (ARCHIVE_OK);
  28445. }
  28446. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  28447. static int
  28448. __archive_openssl_md5init(archive_md5_ctx *ctx)
  28449. {
  28450. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  28451. return (ARCHIVE_FAILED);
  28452. EVP_DigestInit(*ctx, EVP_md5());
  28453. return (ARCHIVE_OK);
  28454. }
  28455. static int
  28456. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  28457. size_t insize)
  28458. {
  28459. EVP_DigestUpdate(*ctx, indata, insize);
  28460. return (ARCHIVE_OK);
  28461. }
  28462. static int
  28463. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  28464. {
  28465. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  28466. * this is meant to cope with that. Real fix is probably to fix
  28467. * archive_write_set_format_xar.c
  28468. */
  28469. if (*ctx) {
  28470. EVP_DigestFinal(*ctx, md, NULL);
  28471. EVP_MD_CTX_free(*ctx);
  28472. *ctx = NULL;
  28473. }
  28474. return (ARCHIVE_OK);
  28475. }
  28476. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  28477. static int
  28478. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  28479. {
  28480. return (win_crypto_init(ctx, CALG_MD5));
  28481. }
  28482. static int
  28483. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  28484. size_t insize)
  28485. {
  28486. return (win_crypto_Update(ctx, indata, insize));
  28487. }
  28488. static int
  28489. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  28490. {
  28491. return (win_crypto_Final(md, 16, ctx));
  28492. }
  28493. #else
  28494. static int
  28495. __archive_stub_md5init(archive_md5_ctx *ctx)
  28496. {
  28497. (void)ctx; /* UNUSED */
  28498. return (ARCHIVE_FAILED);
  28499. }
  28500. static int
  28501. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  28502. size_t insize)
  28503. {
  28504. (void)ctx; /* UNUSED */
  28505. (void)indata; /* UNUSED */
  28506. (void)insize; /* UNUSED */
  28507. return (ARCHIVE_FAILED);
  28508. }
  28509. static int
  28510. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  28511. {
  28512. (void)ctx; /* UNUSED */
  28513. (void)md; /* UNUSED */
  28514. return (ARCHIVE_FAILED);
  28515. }
  28516. #endif
  28517. /* RIPEMD160 implementations */
  28518. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  28519. static int
  28520. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  28521. {
  28522. RMD160Init(ctx);
  28523. return (ARCHIVE_OK);
  28524. }
  28525. static int
  28526. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  28527. size_t insize)
  28528. {
  28529. RMD160Update(ctx, indata, insize);
  28530. return (ARCHIVE_OK);
  28531. }
  28532. static int
  28533. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  28534. {
  28535. RMD160Final(md, ctx);
  28536. return (ARCHIVE_OK);
  28537. }
  28538. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  28539. static int
  28540. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  28541. {
  28542. RIPEMD160_Init(ctx);
  28543. return (ARCHIVE_OK);
  28544. }
  28545. static int
  28546. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  28547. size_t insize)
  28548. {
  28549. RIPEMD160_Update(ctx, indata, insize);
  28550. return (ARCHIVE_OK);
  28551. }
  28552. static int
  28553. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  28554. {
  28555. RIPEMD160_Final(md, ctx);
  28556. return (ARCHIVE_OK);
  28557. }
  28558. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  28559. static int
  28560. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  28561. {
  28562. ripemd160_init(ctx);
  28563. return (ARCHIVE_OK);
  28564. }
  28565. static int
  28566. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  28567. size_t insize)
  28568. {
  28569. ripemd160_update(ctx, insize, indata);
  28570. return (ARCHIVE_OK);
  28571. }
  28572. static int
  28573. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  28574. {
  28575. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  28576. return (ARCHIVE_OK);
  28577. }
  28578. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  28579. static int
  28580. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  28581. {
  28582. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  28583. return (ARCHIVE_FAILED);
  28584. EVP_DigestInit(*ctx, EVP_ripemd160());
  28585. return (ARCHIVE_OK);
  28586. }
  28587. static int
  28588. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  28589. size_t insize)
  28590. {
  28591. EVP_DigestUpdate(*ctx, indata, insize);
  28592. return (ARCHIVE_OK);
  28593. }
  28594. static int
  28595. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  28596. {
  28597. if (*ctx) {
  28598. EVP_DigestFinal(*ctx, md, NULL);
  28599. EVP_MD_CTX_free(*ctx);
  28600. *ctx = NULL;
  28601. }
  28602. return (ARCHIVE_OK);
  28603. }
  28604. #else
  28605. static int
  28606. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  28607. {
  28608. (void)ctx; /* UNUSED */
  28609. return (ARCHIVE_FAILED);
  28610. }
  28611. static int
  28612. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  28613. size_t insize)
  28614. {
  28615. (void)ctx; /* UNUSED */
  28616. (void)indata; /* UNUSED */
  28617. (void)insize; /* UNUSED */
  28618. return (ARCHIVE_FAILED);
  28619. }
  28620. static int
  28621. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  28622. {
  28623. (void)ctx; /* UNUSED */
  28624. (void)md; /* UNUSED */
  28625. return (ARCHIVE_FAILED);
  28626. }
  28627. #endif
  28628. /* SHA1 implementations */
  28629. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  28630. static int
  28631. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  28632. {
  28633. SHA1Init(ctx);
  28634. return (ARCHIVE_OK);
  28635. }
  28636. static int
  28637. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  28638. size_t insize)
  28639. {
  28640. SHA1Update(ctx, indata, insize);
  28641. return (ARCHIVE_OK);
  28642. }
  28643. static int
  28644. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  28645. {
  28646. SHA1Final(md, ctx);
  28647. return (ARCHIVE_OK);
  28648. }
  28649. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  28650. static int
  28651. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  28652. {
  28653. SHA1_Init(ctx);
  28654. return (ARCHIVE_OK);
  28655. }
  28656. static int
  28657. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  28658. size_t insize)
  28659. {
  28660. SHA1_Update(ctx, indata, insize);
  28661. return (ARCHIVE_OK);
  28662. }
  28663. static int
  28664. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  28665. {
  28666. SHA1_Final(md, ctx);
  28667. return (ARCHIVE_OK);
  28668. }
  28669. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  28670. static int
  28671. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  28672. {
  28673. CC_SHA1_Init(ctx);
  28674. return (ARCHIVE_OK);
  28675. }
  28676. static int
  28677. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  28678. size_t insize)
  28679. {
  28680. CC_SHA1_Update(ctx, indata, insize);
  28681. return (ARCHIVE_OK);
  28682. }
  28683. static int
  28684. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  28685. {
  28686. CC_SHA1_Final(md, ctx);
  28687. return (ARCHIVE_OK);
  28688. }
  28689. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  28690. static int
  28691. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  28692. {
  28693. sha1_init(ctx);
  28694. return (ARCHIVE_OK);
  28695. }
  28696. static int
  28697. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  28698. size_t insize)
  28699. {
  28700. sha1_update(ctx, insize, indata);
  28701. return (ARCHIVE_OK);
  28702. }
  28703. static int
  28704. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  28705. {
  28706. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  28707. return (ARCHIVE_OK);
  28708. }
  28709. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  28710. static int
  28711. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  28712. {
  28713. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  28714. return (ARCHIVE_FAILED);
  28715. EVP_DigestInit(*ctx, EVP_sha1());
  28716. return (ARCHIVE_OK);
  28717. }
  28718. static int
  28719. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  28720. size_t insize)
  28721. {
  28722. EVP_DigestUpdate(*ctx, indata, insize);
  28723. return (ARCHIVE_OK);
  28724. }
  28725. static int
  28726. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  28727. {
  28728. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  28729. * this is meant to cope with that. Real fix is probably to fix
  28730. * archive_write_set_format_xar.c
  28731. */
  28732. if (*ctx) {
  28733. EVP_DigestFinal(*ctx, md, NULL);
  28734. EVP_MD_CTX_free(*ctx);
  28735. *ctx = NULL;
  28736. }
  28737. return (ARCHIVE_OK);
  28738. }
  28739. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  28740. static int
  28741. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  28742. {
  28743. return (win_crypto_init(ctx, CALG_SHA1));
  28744. }
  28745. static int
  28746. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  28747. size_t insize)
  28748. {
  28749. return (win_crypto_Update(ctx, indata, insize));
  28750. }
  28751. static int
  28752. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  28753. {
  28754. return (win_crypto_Final(md, 20, ctx));
  28755. }
  28756. #else
  28757. static int
  28758. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  28759. {
  28760. (void)ctx; /* UNUSED */
  28761. return (ARCHIVE_FAILED);
  28762. }
  28763. static int
  28764. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  28765. size_t insize)
  28766. {
  28767. (void)ctx; /* UNUSED */
  28768. (void)indata; /* UNUSED */
  28769. (void)insize; /* UNUSED */
  28770. return (ARCHIVE_FAILED);
  28771. }
  28772. static int
  28773. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  28774. {
  28775. (void)ctx; /* UNUSED */
  28776. (void)md; /* UNUSED */
  28777. return (ARCHIVE_FAILED);
  28778. }
  28779. #endif
  28780. /* SHA256 implementations */
  28781. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  28782. static int
  28783. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  28784. {
  28785. SHA256_Init(ctx);
  28786. return (ARCHIVE_OK);
  28787. }
  28788. static int
  28789. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  28790. size_t insize)
  28791. {
  28792. SHA256_Update(ctx, indata, insize);
  28793. return (ARCHIVE_OK);
  28794. }
  28795. static int
  28796. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  28797. {
  28798. SHA256_Final(md, ctx);
  28799. return (ARCHIVE_OK);
  28800. }
  28801. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  28802. static int
  28803. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  28804. {
  28805. SHA256Init(ctx);
  28806. return (ARCHIVE_OK);
  28807. }
  28808. static int
  28809. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  28810. size_t insize)
  28811. {
  28812. SHA256Update(ctx, indata, insize);
  28813. return (ARCHIVE_OK);
  28814. }
  28815. static int
  28816. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  28817. {
  28818. SHA256Final(md, ctx);
  28819. return (ARCHIVE_OK);
  28820. }
  28821. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  28822. static int
  28823. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  28824. {
  28825. SHA256Init(ctx);
  28826. return (ARCHIVE_OK);
  28827. }
  28828. static int
  28829. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  28830. size_t insize)
  28831. {
  28832. SHA256Update(ctx, indata, insize);
  28833. return (ARCHIVE_OK);
  28834. }
  28835. static int
  28836. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  28837. {
  28838. SHA256Final(md, ctx);
  28839. return (ARCHIVE_OK);
  28840. }
  28841. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  28842. static int
  28843. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  28844. {
  28845. SHA256_Init(ctx);
  28846. return (ARCHIVE_OK);
  28847. }
  28848. static int
  28849. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  28850. size_t insize)
  28851. {
  28852. SHA256_Update(ctx, indata, insize);
  28853. return (ARCHIVE_OK);
  28854. }
  28855. static int
  28856. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  28857. {
  28858. SHA256_Final(md, ctx);
  28859. return (ARCHIVE_OK);
  28860. }
  28861. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  28862. static int
  28863. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  28864. {
  28865. CC_SHA256_Init(ctx);
  28866. return (ARCHIVE_OK);
  28867. }
  28868. static int
  28869. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  28870. size_t insize)
  28871. {
  28872. CC_SHA256_Update(ctx, indata, insize);
  28873. return (ARCHIVE_OK);
  28874. }
  28875. static int
  28876. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  28877. {
  28878. CC_SHA256_Final(md, ctx);
  28879. return (ARCHIVE_OK);
  28880. }
  28881. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  28882. static int
  28883. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  28884. {
  28885. sha256_init(ctx);
  28886. return (ARCHIVE_OK);
  28887. }
  28888. static int
  28889. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  28890. size_t insize)
  28891. {
  28892. sha256_update(ctx, insize, indata);
  28893. return (ARCHIVE_OK);
  28894. }
  28895. static int
  28896. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  28897. {
  28898. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  28899. return (ARCHIVE_OK);
  28900. }
  28901. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  28902. static int
  28903. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  28904. {
  28905. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  28906. return (ARCHIVE_FAILED);
  28907. EVP_DigestInit(*ctx, EVP_sha256());
  28908. return (ARCHIVE_OK);
  28909. }
  28910. static int
  28911. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  28912. size_t insize)
  28913. {
  28914. EVP_DigestUpdate(*ctx, indata, insize);
  28915. return (ARCHIVE_OK);
  28916. }
  28917. static int
  28918. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  28919. {
  28920. if (*ctx) {
  28921. EVP_DigestFinal(*ctx, md, NULL);
  28922. EVP_MD_CTX_free(*ctx);
  28923. *ctx = NULL;
  28924. }
  28925. return (ARCHIVE_OK);
  28926. }
  28927. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  28928. static int
  28929. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  28930. {
  28931. return (win_crypto_init(ctx, CALG_SHA_256));
  28932. }
  28933. static int
  28934. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  28935. size_t insize)
  28936. {
  28937. return (win_crypto_Update(ctx, indata, insize));
  28938. }
  28939. static int
  28940. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  28941. {
  28942. return (win_crypto_Final(md, 32, ctx));
  28943. }
  28944. #else
  28945. static int
  28946. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  28947. {
  28948. (void)ctx; /* UNUSED */
  28949. return (ARCHIVE_FAILED);
  28950. }
  28951. static int
  28952. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  28953. size_t insize)
  28954. {
  28955. (void)ctx; /* UNUSED */
  28956. (void)indata; /* UNUSED */
  28957. (void)insize; /* UNUSED */
  28958. return (ARCHIVE_FAILED);
  28959. }
  28960. static int
  28961. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  28962. {
  28963. (void)ctx; /* UNUSED */
  28964. (void)md; /* UNUSED */
  28965. return (ARCHIVE_FAILED);
  28966. }
  28967. #endif
  28968. /* SHA384 implementations */
  28969. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  28970. static int
  28971. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  28972. {
  28973. SHA384_Init(ctx);
  28974. return (ARCHIVE_OK);
  28975. }
  28976. static int
  28977. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  28978. size_t insize)
  28979. {
  28980. SHA384_Update(ctx, indata, insize);
  28981. return (ARCHIVE_OK);
  28982. }
  28983. static int
  28984. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  28985. {
  28986. SHA384_Final(md, ctx);
  28987. return (ARCHIVE_OK);
  28988. }
  28989. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  28990. static int
  28991. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  28992. {
  28993. SHA384Init(ctx);
  28994. return (ARCHIVE_OK);
  28995. }
  28996. static int
  28997. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  28998. size_t insize)
  28999. {
  29000. SHA384Update(ctx, indata, insize);
  29001. return (ARCHIVE_OK);
  29002. }
  29003. static int
  29004. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  29005. {
  29006. SHA384Final(md, ctx);
  29007. return (ARCHIVE_OK);
  29008. }
  29009. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  29010. static int
  29011. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  29012. {
  29013. SHA384Init(ctx);
  29014. return (ARCHIVE_OK);
  29015. }
  29016. static int
  29017. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  29018. size_t insize)
  29019. {
  29020. SHA384Update(ctx, indata, insize);
  29021. return (ARCHIVE_OK);
  29022. }
  29023. static int
  29024. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  29025. {
  29026. SHA384Final(md, ctx);
  29027. return (ARCHIVE_OK);
  29028. }
  29029. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  29030. static int
  29031. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  29032. {
  29033. CC_SHA384_Init(ctx);
  29034. return (ARCHIVE_OK);
  29035. }
  29036. static int
  29037. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  29038. size_t insize)
  29039. {
  29040. CC_SHA384_Update(ctx, indata, insize);
  29041. return (ARCHIVE_OK);
  29042. }
  29043. static int
  29044. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  29045. {
  29046. CC_SHA384_Final(md, ctx);
  29047. return (ARCHIVE_OK);
  29048. }
  29049. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  29050. static int
  29051. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  29052. {
  29053. sha384_init(ctx);
  29054. return (ARCHIVE_OK);
  29055. }
  29056. static int
  29057. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  29058. size_t insize)
  29059. {
  29060. sha384_update(ctx, insize, indata);
  29061. return (ARCHIVE_OK);
  29062. }
  29063. static int
  29064. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  29065. {
  29066. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  29067. return (ARCHIVE_OK);
  29068. }
  29069. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  29070. static int
  29071. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  29072. {
  29073. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  29074. return (ARCHIVE_FAILED);
  29075. EVP_DigestInit(*ctx, EVP_sha384());
  29076. return (ARCHIVE_OK);
  29077. }
  29078. static int
  29079. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  29080. size_t insize)
  29081. {
  29082. EVP_DigestUpdate(*ctx, indata, insize);
  29083. return (ARCHIVE_OK);
  29084. }
  29085. static int
  29086. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  29087. {
  29088. if (*ctx) {
  29089. EVP_DigestFinal(*ctx, md, NULL);
  29090. EVP_MD_CTX_free(*ctx);
  29091. *ctx = NULL;
  29092. }
  29093. return (ARCHIVE_OK);
  29094. }
  29095. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  29096. static int
  29097. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  29098. {
  29099. return (win_crypto_init(ctx, CALG_SHA_384));
  29100. }
  29101. static int
  29102. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  29103. size_t insize)
  29104. {
  29105. return (win_crypto_Update(ctx, indata, insize));
  29106. }
  29107. static int
  29108. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  29109. {
  29110. return (win_crypto_Final(md, 48, ctx));
  29111. }
  29112. #else
  29113. static int
  29114. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  29115. {
  29116. (void)ctx; /* UNUSED */
  29117. return (ARCHIVE_FAILED);
  29118. }
  29119. static int
  29120. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  29121. size_t insize)
  29122. {
  29123. (void)ctx; /* UNUSED */
  29124. (void)indata; /* UNUSED */
  29125. (void)insize; /* UNUSED */
  29126. return (ARCHIVE_FAILED);
  29127. }
  29128. static int
  29129. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  29130. {
  29131. (void)ctx; /* UNUSED */
  29132. (void)md; /* UNUSED */
  29133. return (ARCHIVE_FAILED);
  29134. }
  29135. #endif
  29136. /* SHA512 implementations */
  29137. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  29138. static int
  29139. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  29140. {
  29141. SHA512_Init(ctx);
  29142. return (ARCHIVE_OK);
  29143. }
  29144. static int
  29145. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  29146. size_t insize)
  29147. {
  29148. SHA512_Update(ctx, indata, insize);
  29149. return (ARCHIVE_OK);
  29150. }
  29151. static int
  29152. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  29153. {
  29154. SHA512_Final(md, ctx);
  29155. return (ARCHIVE_OK);
  29156. }
  29157. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  29158. static int
  29159. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  29160. {
  29161. SHA512Init(ctx);
  29162. return (ARCHIVE_OK);
  29163. }
  29164. static int
  29165. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  29166. size_t insize)
  29167. {
  29168. SHA512Update(ctx, indata, insize);
  29169. return (ARCHIVE_OK);
  29170. }
  29171. static int
  29172. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  29173. {
  29174. SHA512Final(md, ctx);
  29175. return (ARCHIVE_OK);
  29176. }
  29177. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  29178. static int
  29179. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  29180. {
  29181. SHA512Init(ctx);
  29182. return (ARCHIVE_OK);
  29183. }
  29184. static int
  29185. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  29186. size_t insize)
  29187. {
  29188. SHA512Update(ctx, indata, insize);
  29189. return (ARCHIVE_OK);
  29190. }
  29191. static int
  29192. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  29193. {
  29194. SHA512Final(md, ctx);
  29195. return (ARCHIVE_OK);
  29196. }
  29197. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  29198. static int
  29199. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  29200. {
  29201. SHA512_Init(ctx);
  29202. return (ARCHIVE_OK);
  29203. }
  29204. static int
  29205. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  29206. size_t insize)
  29207. {
  29208. SHA512_Update(ctx, indata, insize);
  29209. return (ARCHIVE_OK);
  29210. }
  29211. static int
  29212. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  29213. {
  29214. SHA512_Final(md, ctx);
  29215. return (ARCHIVE_OK);
  29216. }
  29217. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  29218. static int
  29219. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  29220. {
  29221. CC_SHA512_Init(ctx);
  29222. return (ARCHIVE_OK);
  29223. }
  29224. static int
  29225. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  29226. size_t insize)
  29227. {
  29228. CC_SHA512_Update(ctx, indata, insize);
  29229. return (ARCHIVE_OK);
  29230. }
  29231. static int
  29232. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  29233. {
  29234. CC_SHA512_Final(md, ctx);
  29235. return (ARCHIVE_OK);
  29236. }
  29237. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  29238. static int
  29239. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  29240. {
  29241. sha512_init(ctx);
  29242. return (ARCHIVE_OK);
  29243. }
  29244. static int
  29245. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  29246. size_t insize)
  29247. {
  29248. sha512_update(ctx, insize, indata);
  29249. return (ARCHIVE_OK);
  29250. }
  29251. static int
  29252. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  29253. {
  29254. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  29255. return (ARCHIVE_OK);
  29256. }
  29257. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  29258. static int
  29259. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  29260. {
  29261. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  29262. return (ARCHIVE_FAILED);
  29263. EVP_DigestInit(*ctx, EVP_sha512());
  29264. return (ARCHIVE_OK);
  29265. }
  29266. static int
  29267. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  29268. size_t insize)
  29269. {
  29270. EVP_DigestUpdate(*ctx, indata, insize);
  29271. return (ARCHIVE_OK);
  29272. }
  29273. static int
  29274. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  29275. {
  29276. if (*ctx) {
  29277. EVP_DigestFinal(*ctx, md, NULL);
  29278. EVP_MD_CTX_free(*ctx);
  29279. *ctx = NULL;
  29280. }
  29281. return (ARCHIVE_OK);
  29282. }
  29283. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  29284. static int
  29285. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  29286. {
  29287. return (win_crypto_init(ctx, CALG_SHA_512));
  29288. }
  29289. static int
  29290. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  29291. size_t insize)
  29292. {
  29293. return (win_crypto_Update(ctx, indata, insize));
  29294. }
  29295. static int
  29296. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  29297. {
  29298. return (win_crypto_Final(md, 64, ctx));
  29299. }
  29300. #else
  29301. static int
  29302. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  29303. {
  29304. (void)ctx; /* UNUSED */
  29305. return (ARCHIVE_FAILED);
  29306. }
  29307. static int
  29308. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  29309. size_t insize)
  29310. {
  29311. (void)ctx; /* UNUSED */
  29312. (void)indata; /* UNUSED */
  29313. (void)insize; /* UNUSED */
  29314. return (ARCHIVE_FAILED);
  29315. }
  29316. static int
  29317. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  29318. {
  29319. (void)ctx; /* UNUSED */
  29320. (void)md; /* UNUSED */
  29321. return (ARCHIVE_FAILED);
  29322. }
  29323. #endif
  29324. /* NOTE: Message Digest functions are set based on availability and by the
  29325. * following order of preference.
  29326. * 1. libc
  29327. * 2. libc2
  29328. * 3. libc3
  29329. * 4. libSystem
  29330. * 5. Nettle
  29331. * 6. OpenSSL
  29332. * 7. libmd
  29333. * 8. Windows API
  29334. */
  29335. const struct archive_digest __archive_digest =
  29336. {
  29337. /* MD5 */
  29338. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  29339. &__archive_libc_md5init,
  29340. &__archive_libc_md5update,
  29341. &__archive_libc_md5final,
  29342. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  29343. &__archive_libmd_md5init,
  29344. &__archive_libmd_md5update,
  29345. &__archive_libmd_md5final,
  29346. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  29347. &__archive_libsystem_md5init,
  29348. &__archive_libsystem_md5update,
  29349. &__archive_libsystem_md5final,
  29350. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  29351. &__archive_nettle_md5init,
  29352. &__archive_nettle_md5update,
  29353. &__archive_nettle_md5final,
  29354. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  29355. &__archive_openssl_md5init,
  29356. &__archive_openssl_md5update,
  29357. &__archive_openssl_md5final,
  29358. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  29359. &__archive_windowsapi_md5init,
  29360. &__archive_windowsapi_md5update,
  29361. &__archive_windowsapi_md5final,
  29362. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  29363. &__archive_stub_md5init,
  29364. &__archive_stub_md5update,
  29365. &__archive_stub_md5final,
  29366. #endif
  29367. /* RIPEMD160 */
  29368. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  29369. &__archive_libc_ripemd160init,
  29370. &__archive_libc_ripemd160update,
  29371. &__archive_libc_ripemd160final,
  29372. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  29373. &__archive_libmd_ripemd160init,
  29374. &__archive_libmd_ripemd160update,
  29375. &__archive_libmd_ripemd160final,
  29376. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  29377. &__archive_nettle_ripemd160init,
  29378. &__archive_nettle_ripemd160update,
  29379. &__archive_nettle_ripemd160final,
  29380. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  29381. &__archive_openssl_ripemd160init,
  29382. &__archive_openssl_ripemd160update,
  29383. &__archive_openssl_ripemd160final,
  29384. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  29385. &__archive_stub_ripemd160init,
  29386. &__archive_stub_ripemd160update,
  29387. &__archive_stub_ripemd160final,
  29388. #endif
  29389. /* SHA1 */
  29390. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  29391. &__archive_libc_sha1init,
  29392. &__archive_libc_sha1update,
  29393. &__archive_libc_sha1final,
  29394. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  29395. &__archive_libmd_sha1init,
  29396. &__archive_libmd_sha1update,
  29397. &__archive_libmd_sha1final,
  29398. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  29399. &__archive_libsystem_sha1init,
  29400. &__archive_libsystem_sha1update,
  29401. &__archive_libsystem_sha1final,
  29402. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  29403. &__archive_nettle_sha1init,
  29404. &__archive_nettle_sha1update,
  29405. &__archive_nettle_sha1final,
  29406. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  29407. &__archive_openssl_sha1init,
  29408. &__archive_openssl_sha1update,
  29409. &__archive_openssl_sha1final,
  29410. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  29411. &__archive_windowsapi_sha1init,
  29412. &__archive_windowsapi_sha1update,
  29413. &__archive_windowsapi_sha1final,
  29414. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  29415. &__archive_stub_sha1init,
  29416. &__archive_stub_sha1update,
  29417. &__archive_stub_sha1final,
  29418. #endif
  29419. /* SHA256 */
  29420. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  29421. &__archive_libc_sha256init,
  29422. &__archive_libc_sha256update,
  29423. &__archive_libc_sha256final,
  29424. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  29425. &__archive_libc2_sha256init,
  29426. &__archive_libc2_sha256update,
  29427. &__archive_libc2_sha256final,
  29428. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  29429. &__archive_libc3_sha256init,
  29430. &__archive_libc3_sha256update,
  29431. &__archive_libc3_sha256final,
  29432. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  29433. &__archive_libmd_sha256init,
  29434. &__archive_libmd_sha256update,
  29435. &__archive_libmd_sha256final,
  29436. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  29437. &__archive_libsystem_sha256init,
  29438. &__archive_libsystem_sha256update,
  29439. &__archive_libsystem_sha256final,
  29440. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  29441. &__archive_nettle_sha256init,
  29442. &__archive_nettle_sha256update,
  29443. &__archive_nettle_sha256final,
  29444. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  29445. &__archive_openssl_sha256init,
  29446. &__archive_openssl_sha256update,
  29447. &__archive_openssl_sha256final,
  29448. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  29449. &__archive_windowsapi_sha256init,
  29450. &__archive_windowsapi_sha256update,
  29451. &__archive_windowsapi_sha256final,
  29452. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  29453. &__archive_stub_sha256init,
  29454. &__archive_stub_sha256update,
  29455. &__archive_stub_sha256final,
  29456. #endif
  29457. /* SHA384 */
  29458. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  29459. &__archive_libc_sha384init,
  29460. &__archive_libc_sha384update,
  29461. &__archive_libc_sha384final,
  29462. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  29463. &__archive_libc2_sha384init,
  29464. &__archive_libc2_sha384update,
  29465. &__archive_libc2_sha384final,
  29466. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  29467. &__archive_libc3_sha384init,
  29468. &__archive_libc3_sha384update,
  29469. &__archive_libc3_sha384final,
  29470. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  29471. &__archive_libsystem_sha384init,
  29472. &__archive_libsystem_sha384update,
  29473. &__archive_libsystem_sha384final,
  29474. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  29475. &__archive_nettle_sha384init,
  29476. &__archive_nettle_sha384update,
  29477. &__archive_nettle_sha384final,
  29478. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  29479. &__archive_openssl_sha384init,
  29480. &__archive_openssl_sha384update,
  29481. &__archive_openssl_sha384final,
  29482. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  29483. &__archive_windowsapi_sha384init,
  29484. &__archive_windowsapi_sha384update,
  29485. &__archive_windowsapi_sha384final,
  29486. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  29487. &__archive_stub_sha384init,
  29488. &__archive_stub_sha384update,
  29489. &__archive_stub_sha384final,
  29490. #endif
  29491. /* SHA512 */
  29492. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  29493. &__archive_libc_sha512init,
  29494. &__archive_libc_sha512update,
  29495. &__archive_libc_sha512final
  29496. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  29497. &__archive_libc2_sha512init,
  29498. &__archive_libc2_sha512update,
  29499. &__archive_libc2_sha512final
  29500. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  29501. &__archive_libc3_sha512init,
  29502. &__archive_libc3_sha512update,
  29503. &__archive_libc3_sha512final
  29504. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  29505. &__archive_libmd_sha512init,
  29506. &__archive_libmd_sha512update,
  29507. &__archive_libmd_sha512final
  29508. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  29509. &__archive_libsystem_sha512init,
  29510. &__archive_libsystem_sha512update,
  29511. &__archive_libsystem_sha512final
  29512. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  29513. &__archive_nettle_sha512init,
  29514. &__archive_nettle_sha512update,
  29515. &__archive_nettle_sha512final
  29516. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  29517. &__archive_openssl_sha512init,
  29518. &__archive_openssl_sha512update,
  29519. &__archive_openssl_sha512final
  29520. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  29521. &__archive_windowsapi_sha512init,
  29522. &__archive_windowsapi_sha512update,
  29523. &__archive_windowsapi_sha512final
  29524. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  29525. &__archive_stub_sha512init,
  29526. &__archive_stub_sha512update,
  29527. &__archive_stub_sha512final
  29528. #endif
  29529. };
  29530. int
  29531. main(int argc, char **argv)
  29532. {
  29533. archive_sha256_ctx ctx;
  29534. archive_sha256_init(&ctx);
  29535. archive_sha256_update(&ctx, *argv, argc);
  29536. archive_sha256_final(&ctx, NULL);
  29537. return 0;
  29538. }
  29539. Checking support for ARCHIVE_CRYPTO_SHA384_LIBC3 failed with the following output:
  29540. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  29541. Run Build Command:"/usr/bin/make" "cmTC_a2379/fast"
  29542. make -f CMakeFiles/cmTC_a2379.dir/build.make CMakeFiles/cmTC_a2379.dir/build
  29543. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  29544. Building C object CMakeFiles/cmTC_a2379.dir/check_crypto_md.c.o
  29545. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_a2379.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  29546. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  29547. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory
  29548. compilation terminated.
  29549. CMakeFiles/cmTC_a2379.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_a2379.dir/check_crypto_md.c.o' failed
  29550. make[1]: *** [CMakeFiles/cmTC_a2379.dir/check_crypto_md.c.o] Error 1
  29551. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  29552. Makefile:126: recipe for target 'cmTC_a2379/fast' failed
  29553. make: *** [cmTC_a2379/fast] Error 2
  29554. Source file was:
  29555. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  29556. #if defined(__osf__)
  29557. # define _OSF_SOURCE
  29558. #endif
  29559. /*
  29560. * Ensure we have C99-style int64_t, etc, all defined.
  29561. */
  29562. /* First, we need to know if the system has already defined them. */
  29563. #define HAVE_INT16_T
  29564. #define HAVE_INT32_T
  29565. #define HAVE_INT64_T
  29566. #define HAVE_INTMAX_T
  29567. #define HAVE_UINT8_T
  29568. #define HAVE_UINT16_T
  29569. #define HAVE_UINT32_T
  29570. #define HAVE_UINT64_T
  29571. #define HAVE_UINTMAX_T
  29572. /* We might have the types we want under other spellings. */
  29573. /* #undef HAVE___INT64 */
  29574. /* #undef HAVE_U_INT64_T */
  29575. /* #undef HAVE_UNSIGNED___INT64 */
  29576. /* The sizes of various standard integer types. */
  29577. #define SIZE_OF_SHORT 2
  29578. #define SIZE_OF_INT 4
  29579. #define SIZE_OF_LONG 8
  29580. #define SIZE_OF_LONG_LONG 8
  29581. #define SIZE_OF_UNSIGNED_SHORT 2
  29582. #define SIZE_OF_UNSIGNED 4
  29583. #define SIZE_OF_UNSIGNED_LONG 8
  29584. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  29585. /*
  29586. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  29587. * that exists and is the right size.
  29588. */
  29589. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  29590. typedef __int64 int64_t;
  29591. #define HAVE_INT64_T
  29592. #endif
  29593. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  29594. typedef int int64_t;
  29595. #define HAVE_INT64_T
  29596. #endif
  29597. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  29598. typedef long int64_t;
  29599. #define HAVE_INT64_T
  29600. #endif
  29601. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  29602. typedef long long int64_t;
  29603. #define HAVE_INT64_T
  29604. #endif
  29605. #if !defined(HAVE_INT64_T)
  29606. #error No 64-bit integer type was found.
  29607. #endif
  29608. /*
  29609. * Similarly for int32_t
  29610. */
  29611. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  29612. typedef int int32_t;
  29613. #define HAVE_INT32_T
  29614. #endif
  29615. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  29616. typedef long int32_t;
  29617. #define HAVE_INT32_T
  29618. #endif
  29619. #if !defined(HAVE_INT32_T)
  29620. #error No 32-bit integer type was found.
  29621. #endif
  29622. /*
  29623. * Similarly for int16_t
  29624. */
  29625. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  29626. typedef int int16_t;
  29627. #define HAVE_INT16_T
  29628. #endif
  29629. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  29630. typedef short int16_t;
  29631. #define HAVE_INT16_T
  29632. #endif
  29633. #if !defined(HAVE_INT16_T)
  29634. #error No 16-bit integer type was found.
  29635. #endif
  29636. /*
  29637. * Similarly for uint64_t
  29638. */
  29639. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  29640. typedef unsigned __int64 uint64_t;
  29641. #define HAVE_UINT64_T
  29642. #endif
  29643. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  29644. typedef unsigned uint64_t;
  29645. #define HAVE_UINT64_T
  29646. #endif
  29647. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  29648. typedef unsigned long uint64_t;
  29649. #define HAVE_UINT64_T
  29650. #endif
  29651. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  29652. typedef unsigned long long uint64_t;
  29653. #define HAVE_UINT64_T
  29654. #endif
  29655. #if !defined(HAVE_UINT64_T)
  29656. #error No 64-bit unsigned integer type was found.
  29657. #endif
  29658. /*
  29659. * Similarly for uint32_t
  29660. */
  29661. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  29662. typedef unsigned uint32_t;
  29663. #define HAVE_UINT32_T
  29664. #endif
  29665. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  29666. typedef unsigned long uint32_t;
  29667. #define HAVE_UINT32_T
  29668. #endif
  29669. #if !defined(HAVE_UINT32_T)
  29670. #error No 32-bit unsigned integer type was found.
  29671. #endif
  29672. /*
  29673. * Similarly for uint16_t
  29674. */
  29675. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  29676. typedef unsigned uint16_t;
  29677. #define HAVE_UINT16_T
  29678. #endif
  29679. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  29680. typedef unsigned short uint16_t;
  29681. #define HAVE_UINT16_T
  29682. #endif
  29683. #if !defined(HAVE_UINT16_T)
  29684. #error No 16-bit unsigned integer type was found.
  29685. #endif
  29686. /*
  29687. * Similarly for uint8_t
  29688. */
  29689. #if !defined(HAVE_UINT8_T)
  29690. typedef unsigned char uint8_t;
  29691. #define HAVE_UINT8_T
  29692. #endif
  29693. #if !defined(HAVE_UINT16_T)
  29694. #error No 8-bit unsigned integer type was found.
  29695. #endif
  29696. /* Define intmax_t and uintmax_t if they are not already defined. */
  29697. #if !defined(HAVE_INTMAX_T)
  29698. typedef int64_t intmax_t;
  29699. #endif
  29700. #if !defined(HAVE_UINTMAX_T)
  29701. typedef uint64_t uintmax_t;
  29702. #endif
  29703. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  29704. /* #undef ZLIB_WINAPI */
  29705. /* Darwin ACL support */
  29706. /* #undef ARCHIVE_ACL_DARWIN */
  29707. /* FreeBSD ACL support */
  29708. /* #undef ARCHIVE_ACL_FREEBSD */
  29709. /* FreeBSD NFSv4 ACL support */
  29710. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  29711. /* Linux POSIX.1e ACL support via libacl */
  29712. /* #undef ARCHIVE_ACL_LIBACL */
  29713. /* Linux NFSv4 ACL support via librichacl */
  29714. /* #undef ARCHIVE_ACL_LIBRICHACL */
  29715. /* Solaris ACL support */
  29716. /* #undef ARCHIVE_ACL_SUNOS */
  29717. /* Solaris NFSv4 ACL support */
  29718. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  29719. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  29720. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  29721. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  29722. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  29723. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  29724. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  29725. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  29726. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  29727. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  29728. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  29729. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  29730. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  29731. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  29732. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  29733. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  29734. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  29735. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  29736. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  29737. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  29738. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  29739. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  29740. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  29741. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  29742. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  29743. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  29744. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  29745. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  29746. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  29747. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  29748. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  29749. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  29750. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  29751. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  29752. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  29753. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  29754. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  29755. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  29756. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  29757. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  29758. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  29759. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  29760. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  29761. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  29762. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  29763. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  29764. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  29765. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  29766. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  29767. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  29768. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  29769. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  29770. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  29771. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  29772. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  29773. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  29774. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  29775. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  29776. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  29777. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  29778. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  29779. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  29780. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  29781. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  29782. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  29783. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  29784. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  29785. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  29786. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  29787. /* AIX xattr support */
  29788. /* #undef ARCHIVE_XATTR_AIX */
  29789. /* Darwin xattr support */
  29790. /* #undef ARCHIVE_XATTR_DARWIN */
  29791. /* FreeBSD xattr support */
  29792. /* #undef ARCHIVE_XATTR_FREEBSD */
  29793. /* Linux xattr support */
  29794. /* #undef ARCHIVE_XATTR_LINUX */
  29795. /* Version number of bsdcpio */
  29796. #define BSDCPIO_VERSION_STRING "3.3.2"
  29797. /* Version number of bsdtar */
  29798. #define BSDTAR_VERSION_STRING "3.3.2"
  29799. /* Version number of bsdcat */
  29800. #define BSDCAT_VERSION_STRING "3.3.2"
  29801. /* Define to 1 if you have the `acl_create_entry' function. */
  29802. /* #undef HAVE_ACL_CREATE_ENTRY */
  29803. /* Define to 1 if you have the `acl_get_fd_np' function. */
  29804. /* #undef HAVE_ACL_GET_FD_NP */
  29805. /* Define to 1 if you have the `acl_get_link' function. */
  29806. /* #undef HAVE_ACL_GET_LINK */
  29807. /* Define to 1 if you have the `acl_get_link_np' function. */
  29808. /* #undef HAVE_ACL_GET_LINK_NP */
  29809. /* Define to 1 if you have the `acl_get_perm' function. */
  29810. /* #undef HAVE_ACL_GET_PERM */
  29811. /* Define to 1 if you have the `acl_get_perm_np' function. */
  29812. /* #undef HAVE_ACL_GET_PERM_NP */
  29813. /* Define to 1 if you have the `acl_init' function. */
  29814. /* #undef HAVE_ACL_INIT */
  29815. /* Define to 1 if you have the <acl/libacl.h> header file. */
  29816. /* #undef HAVE_ACL_LIBACL_H */
  29817. /* Define to 1 if the system has the type `acl_permset_t'. */
  29818. /* #undef HAVE_ACL_PERMSET_T */
  29819. /* Define to 1 if you have the `acl_set_fd' function. */
  29820. /* #undef HAVE_ACL_SET_FD */
  29821. /* Define to 1 if you have the `acl_set_fd_np' function. */
  29822. /* #undef HAVE_ACL_SET_FD_NP */
  29823. /* Define to 1 if you have the `acl_set_file' function. */
  29824. /* #undef HAVE_ACL_SET_FILE */
  29825. /* Define to 1 if you have the `arc4random_buf' function. */
  29826. /* #undef HAVE_ARC4RANDOM_BUF */
  29827. /* Define to 1 if you have the <attr/xattr.h> header file. */
  29828. /* #undef HAVE_ATTR_XATTR_H */
  29829. /* Define to 1 if you have the <Bcrypt.h> header file. */
  29830. /* #undef HAVE_BCRYPT_H */
  29831. /* Define to 1 if you have the <bsdxml.h> header file. */
  29832. /* #undef HAVE_BSDXML_H */
  29833. /* Define to 1 if you have the <bzlib.h> header file. */
  29834. #define HAVE_BZLIB_H 1
  29835. /* Define to 1 if you have the `chflags' function. */
  29836. /* #undef HAVE_CHFLAGS */
  29837. /* Define to 1 if you have the `chown' function. */
  29838. #define HAVE_CHOWN 1
  29839. /* Define to 1 if you have the `chroot' function. */
  29840. #define HAVE_CHROOT 1
  29841. /* Define to 1 if you have the <copyfile.h> header file. */
  29842. /* #undef HAVE_COPYFILE_H */
  29843. /* Define to 1 if you have the `ctime_r' function. */
  29844. #define HAVE_CTIME_R 1
  29845. /* Define to 1 if you have the <ctype.h> header file. */
  29846. #define HAVE_CTYPE_H 1
  29847. /* Define to 1 if you have the `cygwin_conv_path' function. */
  29848. /* #undef HAVE_CYGWIN_CONV_PATH */
  29849. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  29850. don't. */
  29851. /* #undef HAVE_DECL_ACE_GETACL */
  29852. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  29853. don't. */
  29854. /* #undef HAVE_DECL_ACE_GETACLCNT */
  29855. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  29856. don't. */
  29857. /* #undef HAVE_DECL_ACE_SETACL */
  29858. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  29859. you don't. */
  29860. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  29861. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  29862. you don't. */
  29863. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  29864. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  29865. don't. */
  29866. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  29867. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  29868. don't. */
  29869. /* #undef HAVE_DECL_ACL_USER */
  29870. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  29871. don't. */
  29872. #define HAVE_DECL_INT32_MAX 1
  29873. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  29874. don't. */
  29875. #define HAVE_DECL_INT32_MIN 1
  29876. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  29877. don't. */
  29878. #define HAVE_DECL_INT64_MAX 1
  29879. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  29880. don't. */
  29881. #define HAVE_DECL_INT64_MIN 1
  29882. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  29883. don't. */
  29884. #define HAVE_DECL_INTMAX_MAX 1
  29885. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  29886. don't. */
  29887. #define HAVE_DECL_INTMAX_MIN 1
  29888. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  29889. */
  29890. /* #undef HAVE_DECL_SETACL */
  29891. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  29892. don't. */
  29893. #define HAVE_DECL_SIZE_MAX 1
  29894. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  29895. don't. */
  29896. #define HAVE_DECL_SSIZE_MAX 1
  29897. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  29898. don't. */
  29899. #define HAVE_DECL_STRERROR_R 1
  29900. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  29901. don't. */
  29902. #define HAVE_DECL_UINT32_MAX 1
  29903. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  29904. don't. */
  29905. #define HAVE_DECL_UINT64_MAX 1
  29906. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  29907. don't. */
  29908. #define HAVE_DECL_UINTMAX_MAX 1
  29909. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  29910. you don't. */
  29911. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  29912. /* Define to 1 if you have the <direct.h> header file. */
  29913. /* #undef HAVE_DIRECT_H */
  29914. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  29915. */
  29916. #define HAVE_DIRENT_H 1
  29917. /* Define to 1 if you have the `dirfd' function. */
  29918. #define HAVE_DIRFD 1
  29919. /* Define to 1 if you have the <dlfcn.h> header file. */
  29920. #define HAVE_DLFCN_H 1
  29921. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  29922. /* #undef HAVE_DOPRNT */
  29923. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  29924. /* #undef HAVE_D_MD_ORDER */
  29925. /* A possible errno value for invalid file format errors */
  29926. /* #undef HAVE_EFTYPE */
  29927. /* A possible errno value for invalid file format errors */
  29928. #define HAVE_EILSEQ 1
  29929. /* Define to 1 if you have the <errno.h> header file. */
  29930. #define HAVE_ERRNO_H 1
  29931. /* Define to 1 if you have the <expat.h> header file. */
  29932. /* #undef HAVE_EXPAT_H */
  29933. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  29934. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  29935. /* Define to 1 if you have the `extattr_get_file' function. */
  29936. /* #undef HAVE_EXTATTR_GET_FILE */
  29937. /* Define to 1 if you have the `extattr_list_file' function. */
  29938. /* #undef HAVE_EXTATTR_LIST_FILE */
  29939. /* Define to 1 if you have the `extattr_set_fd' function. */
  29940. /* #undef HAVE_EXTATTR_SET_FD */
  29941. /* Define to 1 if you have the `extattr_set_file' function. */
  29942. /* #undef HAVE_EXTATTR_SET_FILE */
  29943. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  29944. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  29945. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  29946. */
  29947. /* #undef HAVE_DECL_GETACL */
  29948. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  29949. don't. */
  29950. /* #undef HAVE_DECL_GETACLCNT */
  29951. /* Define to 1 if you have the `fchdir' function. */
  29952. #define HAVE_FCHDIR 1
  29953. /* Define to 1 if you have the `fchflags' function. */
  29954. /* #undef HAVE_FCHFLAGS */
  29955. /* Define to 1 if you have the `fchmod' function. */
  29956. #define HAVE_FCHMOD 1
  29957. /* Define to 1 if you have the `fchown' function. */
  29958. #define HAVE_FCHOWN 1
  29959. /* Define to 1 if you have the `fcntl' function. */
  29960. #define HAVE_FCNTL 1
  29961. /* Define to 1 if you have the <fcntl.h> header file. */
  29962. #define HAVE_FCNTL_H 1
  29963. /* Define to 1 if you have the `fdopendir' function. */
  29964. #define HAVE_FDOPENDIR 1
  29965. /* Define to 1 if you have the `fgetea' function. */
  29966. /* #undef HAVE_FGETEA */
  29967. /* Define to 1 if you have the `fgetxattr' function. */
  29968. /* #undef HAVE_FGETXATTR */
  29969. /* Define to 1 if you have the `flistea' function. */
  29970. /* #undef HAVE_FLISTEA */
  29971. /* Define to 1 if you have the `flistxattr' function. */
  29972. /* #undef HAVE_FLISTXATTR */
  29973. /* Define to 1 if you have the `fork' function. */
  29974. #define HAVE_FORK 1
  29975. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  29976. #define HAVE_FSEEKO 1
  29977. /* Define to 1 if you have the `fsetea' function. */
  29978. /* #undef HAVE_FSETEA */
  29979. /* Define to 1 if you have the `fsetxattr' function. */
  29980. #define HAVE_FSETXATTR 1
  29981. /* Define to 1 if you have the `fstat' function. */
  29982. #define HAVE_FSTAT 1
  29983. /* Define to 1 if you have the `fstatat' function. */
  29984. #define HAVE_FSTATAT 1
  29985. /* Define to 1 if you have the `fstatfs' function. */
  29986. #define HAVE_FSTATFS 1
  29987. /* Define to 1 if you have the `fstatvfs' function. */
  29988. #define HAVE_FSTATVFS 1
  29989. /* Define to 1 if you have the `ftruncate' function. */
  29990. #define HAVE_FTRUNCATE 1
  29991. /* Define to 1 if you have the `futimens' function. */
  29992. #define HAVE_FUTIMENS 1
  29993. /* Define to 1 if you have the `futimes' function. */
  29994. #define HAVE_FUTIMES 1
  29995. /* Define to 1 if you have the `futimesat' function. */
  29996. #define HAVE_FUTIMESAT 1
  29997. /* Define to 1 if you have the `getea' function. */
  29998. /* #undef HAVE_GETEA */
  29999. /* Define to 1 if you have the `geteuid' function. */
  30000. #define HAVE_GETEUID 1
  30001. /* Define to 1 if you have the `getgrgid_r' function. */
  30002. #define HAVE_GETGRGID_R 1
  30003. /* Define to 1 if you have the `getgrnam_r' function. */
  30004. #define HAVE_GETGRNAM_R 1
  30005. /* Define to 1 if you have the `getpid' function. */
  30006. #define HAVE_GETPID 1
  30007. /* Define to 1 if you have the `getpwnam_r' function. */
  30008. #define HAVE_GETPWNAM_R 1
  30009. /* Define to 1 if you have the `getpwuid_r' function. */
  30010. #define HAVE_GETPWUID_R 1
  30011. /* Define to 1 if you have the `getvfsbyname' function. */
  30012. /* #undef HAVE_GETVFSBYNAME */
  30013. /* Define to 1 if you have the `getxattr' function. */
  30014. /* #undef HAVE_GETXATTR */
  30015. /* Define to 1 if you have the `gmtime_r' function. */
  30016. #define HAVE_GMTIME_R 1
  30017. /* Define to 1 if you have the <grp.h> header file. */
  30018. #define HAVE_GRP_H 1
  30019. /* Define to 1 if you have the `iconv' function. */
  30020. /* #undef HAVE_ICONV */
  30021. /* Define to 1 if you have the <iconv.h> header file. */
  30022. /* #undef HAVE_ICONV_H */
  30023. /* Define to 1 if you have the <inttypes.h> header file. */
  30024. #define HAVE_INTTYPES_H 1
  30025. /* Define to 1 if you have the <io.h> header file. */
  30026. /* #undef HAVE_IO_H */
  30027. /* Define to 1 if you have the <langinfo.h> header file. */
  30028. #define HAVE_LANGINFO_H 1
  30029. /* Define to 1 if you have the `lchflags' function. */
  30030. /* #undef HAVE_LCHFLAGS */
  30031. /* Define to 1 if you have the `lchmod' function. */
  30032. /* #undef HAVE_LCHMOD */
  30033. /* Define to 1 if you have the `lchown' function. */
  30034. #define HAVE_LCHOWN 1
  30035. /* Define to 1 if you have the `lgetea' function. */
  30036. /* #undef HAVE_LGETEA */
  30037. /* Define to 1 if you have the `lgetxattr' function. */
  30038. /* #undef HAVE_LGETXATTR */
  30039. /* Define to 1 if you have the `acl' library (-lacl). */
  30040. /* #undef HAVE_LIBACL */
  30041. /* Define to 1 if you have the `attr' library (-lattr). */
  30042. /* #undef HAVE_LIBATTR */
  30043. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  30044. /* #undef HAVE_LIBBSDXML */
  30045. /* Define to 1 if you have the `bz2' library (-lbz2). */
  30046. #define HAVE_LIBBZ2 1
  30047. /* Define to 1 if you have the `charset' library (-lcharset). */
  30048. /* #undef HAVE_LIBCHARSET */
  30049. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  30050. #define HAVE_LIBCRYPTO 1
  30051. /* Define to 1 if you have the `expat' library (-lexpat). */
  30052. /* #undef HAVE_LIBEXPAT */
  30053. /* Define to 1 if you have the `gcc' library (-lgcc). */
  30054. /* #undef HAVE_LIBGCC */
  30055. /* Define to 1 if you have the `lz4' library (-llz4). */
  30056. /* #undef HAVE_LIBLZ4 */
  30057. /* Define to 1 if you have the `lzma' library (-llzma). */
  30058. #define HAVE_LIBLZMA 1
  30059. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  30060. /* #undef HAVE_LIBLZMADEC */
  30061. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  30062. /* #undef HAVE_LIBLZO2 */
  30063. /* Define to 1 if you have the `nettle' library (-lnettle). */
  30064. /* #undef HAVE_LIBNETTLE */
  30065. /* Define to 1 if you have the `pcre' library (-lpcre). */
  30066. /* #undef HAVE_LIBPCRE */
  30067. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  30068. /* #undef HAVE_LIBPCREPOSIX */
  30069. /* Define to 1 if you have the `xml2' library (-lxml2). */
  30070. /* #undef HAVE_LIBXML2 */
  30071. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  30072. /* #undef HAVE_LIBXML_XMLREADER_H */
  30073. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  30074. /* #undef HAVE_LIBXML_XMLWRITER_H */
  30075. /* Define to 1 if you have the `z' library (-lz). */
  30076. #define HAVE_LIBZ 1
  30077. /* Define to 1 if you have the <limits.h> header file. */
  30078. #define HAVE_LIMITS_H 1
  30079. /* Define to 1 if you have the `link' function. */
  30080. #define HAVE_LINK 1
  30081. /* Define to 1 if you have the <linux/types.h> header file. */
  30082. #define HAVE_LINUX_TYPES_H 1
  30083. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  30084. #define HAVE_LINUX_FIEMAP_H 1
  30085. /* Define to 1 if you have the <linux/fs.h> header file. */
  30086. #define HAVE_LINUX_FS_H 1
  30087. /* Define to 1 if you have the <linux/magic.h> header file. */
  30088. #define HAVE_LINUX_MAGIC_H 1
  30089. /* Define to 1 if you have the <linux/types.h> header file. */
  30090. #define HAVE_LINUX_TYPES_H 1
  30091. /* Define to 1 if you have the `listea' function. */
  30092. /* #undef HAVE_LISTEA */
  30093. /* Define to 1 if you have the `listxattr' function. */
  30094. /* #undef HAVE_LISTXATTR */
  30095. /* Define to 1 if you have the `llistea' function. */
  30096. /* #undef HAVE_LLISTEA */
  30097. /* Define to 1 if you have the `llistxattr' function. */
  30098. /* #undef HAVE_LLISTXATTR */
  30099. /* Define to 1 if you have the <localcharset.h> header file. */
  30100. /* #undef HAVE_LOCALCHARSET_H */
  30101. /* Define to 1 if you have the `locale_charset' function. */
  30102. /* #undef HAVE_LOCALE_CHARSET */
  30103. /* Define to 1 if you have the <locale.h> header file. */
  30104. #define HAVE_LOCALE_H 1
  30105. /* Define to 1 if you have the `localtime_r' function. */
  30106. #define HAVE_LOCALTIME_R 1
  30107. /* Define to 1 if the system has the type `long long int'. */
  30108. /* #undef HAVE_LONG_LONG_INT */
  30109. /* Define to 1 if you have the `lsetea' function. */
  30110. /* #undef HAVE_LSETEA */
  30111. /* Define to 1 if you have the `lsetxattr' function. */
  30112. /* #undef HAVE_LSETXATTR */
  30113. /* Define to 1 if you have the `lstat' function. */
  30114. #define HAVE_LSTAT 1
  30115. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  30116. zero-length file name argument. */
  30117. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  30118. /* Define to 1 if you have the `lutimes' function. */
  30119. #define HAVE_LUTIMES 1
  30120. /* Define to 1 if you have the <lz4hc.h> header file. */
  30121. /* #undef HAVE_LZ4HC_H */
  30122. /* Define to 1 if you have the <lz4.h> header file. */
  30123. /* #undef HAVE_LZ4_H */
  30124. /* Define to 1 if you have the <lzmadec.h> header file. */
  30125. /* #undef HAVE_LZMADEC_H */
  30126. /* Define to 1 if you have the <lzma.h> header file. */
  30127. #define HAVE_LZMA_H 1
  30128. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  30129. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  30130. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  30131. /* #undef HAVE_LZO_LZO1X_H */
  30132. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  30133. /* #undef HAVE_LZO_LZOCONF_H */
  30134. /* Define to 1 if you have the `mbrtowc' function. */
  30135. #define HAVE_MBRTOWC 1
  30136. /* Define to 1 if you have the <membership.h> header file. */
  30137. /* #undef HAVE_MEMBERSHIP_H */
  30138. /* Define to 1 if you have the `memmove' function. */
  30139. #define HAVE_MEMMOVE 1
  30140. /* Define to 1 if you have the <memory.h> header file. */
  30141. #define HAVE_MEMORY_H 1
  30142. /* Define to 1 if you have the `mkdir' function. */
  30143. #define HAVE_MKDIR 1
  30144. /* Define to 1 if you have the `mkfifo' function. */
  30145. #define HAVE_MKFIFO 1
  30146. /* Define to 1 if you have the `mknod' function. */
  30147. #define HAVE_MKNOD 1
  30148. /* Define to 1 if you have the `mkstemp' function. */
  30149. #define HAVE_MKSTEMP 1
  30150. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  30151. /* #undef HAVE_NDIR_H */
  30152. /* Define to 1 if you have the <nettle/aes.h> header file. */
  30153. /* #undef HAVE_NETTLE_AES_H */
  30154. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  30155. /* #undef HAVE_NETTLE_HMAC_H */
  30156. /* Define to 1 if you have the <nettle/md5.h> header file. */
  30157. /* #undef HAVE_NETTLE_MD5_H */
  30158. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  30159. /* #undef HAVE_NETTLE_PBKDF2_H */
  30160. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  30161. /* #undef HAVE_NETTLE_RIPEMD160_H */
  30162. /* Define to 1 if you have the <nettle/sha.h> header file. */
  30163. /* #undef HAVE_NETTLE_SHA_H */
  30164. /* Define to 1 if you have the `nl_langinfo' function. */
  30165. #define HAVE_NL_LANGINFO 1
  30166. /* Define to 1 if you have the `openat' function. */
  30167. #define HAVE_OPENAT 1
  30168. /* Define to 1 if you have the <paths.h> header file. */
  30169. #define HAVE_PATHS_H 1
  30170. /* Define to 1 if you have the <pcreposix.h> header file. */
  30171. /* #undef HAVE_PCREPOSIX_H */
  30172. /* Define to 1 if you have the `pipe' function. */
  30173. #define HAVE_PIPE 1
  30174. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  30175. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  30176. /* Define to 1 if you have the `poll' function. */
  30177. #define HAVE_POLL 1
  30178. /* Define to 1 if you have the <poll.h> header file. */
  30179. #define HAVE_POLL_H 1
  30180. /* Define to 1 if you have the `posix_spawnp' function. */
  30181. #define HAVE_POSIX_SPAWNP 1
  30182. /* Define to 1 if you have the <process.h> header file. */
  30183. /* #undef HAVE_PROCESS_H */
  30184. /* Define to 1 if you have the <pthread.h> header file. */
  30185. /* #undef HAVE_PTHREAD_H */
  30186. /* Define to 1 if you have the <pwd.h> header file. */
  30187. #define HAVE_PWD_H 1
  30188. /* Define to 1 if you have the `readdir_r' function. */
  30189. #define HAVE_READDIR_R 1
  30190. /* Define to 1 if you have the `readlink' function. */
  30191. #define HAVE_READLINK 1
  30192. /* Define to 1 if you have the `readlinkat' function. */
  30193. #define HAVE_READLINKAT 1
  30194. /* Define to 1 if you have the `readpassphrase' function. */
  30195. /* #undef HAVE_READPASSPHRASE */
  30196. /* Define to 1 if you have the <readpassphrase.h> header file. */
  30197. /* #undef HAVE_READPASSPHRASE_H */
  30198. /* Define to 1 if you have the <regex.h> header file. */
  30199. #define HAVE_REGEX_H 1
  30200. /* Define to 1 if you have the `select' function. */
  30201. #define HAVE_SELECT 1
  30202. /* Define to 1 if you have the `setenv' function. */
  30203. #define HAVE_SETENV 1
  30204. /* Define to 1 if you have the `setlocale' function. */
  30205. #define HAVE_SETLOCALE 1
  30206. /* Define to 1 if you have the `sigaction' function. */
  30207. #define HAVE_SIGACTION 1
  30208. /* Define to 1 if you have the <signal.h> header file. */
  30209. #define HAVE_SIGNAL_H 1
  30210. /* Define to 1 if you have the <spawn.h> header file. */
  30211. #define HAVE_SPAWN_H 1
  30212. /* Define to 1 if you have the `statfs' function. */
  30213. #define HAVE_STATFS 1
  30214. /* Define to 1 if you have the `statvfs' function. */
  30215. #define HAVE_STATVFS 1
  30216. /* Define to 1 if `stat' has the bug that it succeeds when given the
  30217. zero-length file name argument. */
  30218. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  30219. /* Define to 1 if you have the <stdarg.h> header file. */
  30220. #define HAVE_STDARG_H 1
  30221. /* Define to 1 if you have the <stdint.h> header file. */
  30222. #define HAVE_STDINT_H 1
  30223. /* Define to 1 if you have the <stdlib.h> header file. */
  30224. #define HAVE_STDLIB_H 1
  30225. /* Define to 1 if you have the `strchr' function. */
  30226. #define HAVE_STRCHR 1
  30227. /* Define to 1 if you have the `strdup' function. */
  30228. #define HAVE_STRDUP 1
  30229. /* Define to 1 if you have the `strerror' function. */
  30230. #define HAVE_STRERROR 1
  30231. /* Define to 1 if you have the `strerror_r' function. */
  30232. #define HAVE_STRERROR_R 1
  30233. /* Define to 1 if you have the `strftime' function. */
  30234. #define HAVE_STRFTIME 1
  30235. /* Define to 1 if you have the <strings.h> header file. */
  30236. #define HAVE_STRINGS_H 1
  30237. /* Define to 1 if you have the <string.h> header file. */
  30238. #define HAVE_STRING_H 1
  30239. /* Define to 1 if you have the `strrchr' function. */
  30240. #define HAVE_STRRCHR 1
  30241. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  30242. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  30243. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  30244. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  30245. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  30246. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  30247. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  30248. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  30249. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  30250. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  30251. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  30252. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  30253. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  30254. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  30255. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  30256. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  30257. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  30258. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  30259. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  30260. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  30261. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  30262. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  30263. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  30264. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  30265. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  30266. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  30267. /* Define to 1 if you have `struct vfsconf'. */
  30268. /* #undef HAVE_STRUCT_VFSCONF */
  30269. /* Define to 1 if you have `struct xvfsconf'. */
  30270. /* #undef HAVE_STRUCT_XVFSCONF */
  30271. /* Define to 1 if you have the `symlink' function. */
  30272. #define HAVE_SYMLINK 1
  30273. /* Define to 1 if you have the <sys/acl.h> header file. */
  30274. /* #undef HAVE_SYS_ACL_H */
  30275. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  30276. #define HAVE_SYS_CDEFS_H 1
  30277. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  30278. */
  30279. /* #undef HAVE_SYS_DIR_H */
  30280. /* Define to 1 if you have the <sys/ea.h> header file. */
  30281. /* #undef HAVE_SYS_EA_H */
  30282. /* Define to 1 if you have the <sys/extattr.h> header file. */
  30283. /* #undef HAVE_SYS_EXTATTR_H */
  30284. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  30285. #define HAVE_SYS_IOCTL_H 1
  30286. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  30287. /* #undef HAVE_SYS_MKDEV_H */
  30288. /* Define to 1 if you have the <sys/mount.h> header file. */
  30289. /* #undef HAVE_SYS_MOUNT_H */
  30290. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  30291. */
  30292. /* #undef HAVE_SYS_NDIR_H */
  30293. /* Define to 1 if you have the <sys/param.h> header file. */
  30294. #define HAVE_SYS_PARAM_H 1
  30295. /* Define to 1 if you have the <sys/poll.h> header file. */
  30296. #define HAVE_SYS_POLL_H 1
  30297. /* Define to 1 if you have the <sys/richacl.h> header file. */
  30298. /* #undef HAVE_SYS_RICHACL_H */
  30299. /* Define to 1 if you have the <sys/select.h> header file. */
  30300. #define HAVE_SYS_SELECT_H 1
  30301. /* Define to 1 if you have the <sys/statfs.h> header file. */
  30302. #define HAVE_SYS_STATFS_H 1
  30303. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  30304. #define HAVE_SYS_STATVFS_H 1
  30305. /* Define to 1 if you have the <sys/stat.h> header file. */
  30306. #define HAVE_SYS_STAT_H 1
  30307. /* Define to 1 if you have the <sys/time.h> header file. */
  30308. #define HAVE_SYS_TIME_H 1
  30309. /* Define to 1 if you have the <sys/types.h> header file. */
  30310. #define HAVE_SYS_TYPES_H 1
  30311. /* Define to 1 if you have the <sys/utime.h> header file. */
  30312. /* #undef HAVE_SYS_UTIME_H */
  30313. /* Define to 1 if you have the <sys/utsname.h> header file. */
  30314. #define HAVE_SYS_UTSNAME_H 1
  30315. /* Define to 1 if you have the <sys/vfs.h> header file. */
  30316. #define HAVE_SYS_VFS_H 1
  30317. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  30318. #define HAVE_SYS_WAIT_H 1
  30319. /* Define to 1 if you have the <sys/xattr.h> header file. */
  30320. #define HAVE_SYS_XATTR_H 1
  30321. /* Define to 1 if you have the `timegm' function. */
  30322. #define HAVE_TIMEGM 1
  30323. /* Define to 1 if you have the <time.h> header file. */
  30324. #define HAVE_TIME_H 1
  30325. /* Define to 1 if you have the `tzset' function. */
  30326. #define HAVE_TZSET 1
  30327. /* Define to 1 if you have the <unistd.h> header file. */
  30328. #define HAVE_UNISTD_H 1
  30329. /* Define to 1 if you have the `unsetenv' function. */
  30330. #define HAVE_UNSETENV 1
  30331. /* Define to 1 if the system has the type `unsigned long long'. */
  30332. /* #undef HAVE_UNSIGNED_LONG_LONG */
  30333. /* Define to 1 if the system has the type `unsigned long long int'. */
  30334. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  30335. /* Define to 1 if you have the `utime' function. */
  30336. #define HAVE_UTIME 1
  30337. /* Define to 1 if you have the `utimensat' function. */
  30338. #define HAVE_UTIMENSAT 1
  30339. /* Define to 1 if you have the `utimes' function. */
  30340. #define HAVE_UTIMES 1
  30341. /* Define to 1 if you have the <utime.h> header file. */
  30342. #define HAVE_UTIME_H 1
  30343. /* Define to 1 if you have the `vfork' function. */
  30344. #define HAVE_VFORK 1
  30345. /* Define to 1 if you have the `vprintf' function. */
  30346. #define HAVE_VPRINTF 1
  30347. /* Define to 1 if you have the <wchar.h> header file. */
  30348. #define HAVE_WCHAR_H 1
  30349. /* Define to 1 if the system has the type `wchar_t'. */
  30350. #define HAVE_WCHAR_T 1
  30351. /* Define to 1 if you have the `wcrtomb' function. */
  30352. #define HAVE_WCRTOMB 1
  30353. /* Define to 1 if you have the `wcscmp' function. */
  30354. #define HAVE_WCSCMP 1
  30355. /* Define to 1 if you have the `wcscpy' function. */
  30356. #define HAVE_WCSCPY 1
  30357. /* Define to 1 if you have the `wcslen' function. */
  30358. #define HAVE_WCSLEN 1
  30359. /* Define to 1 if you have the `wctomb' function. */
  30360. #define HAVE_WCTOMB 1
  30361. /* Define to 1 if you have the <wctype.h> header file. */
  30362. #define HAVE_WCTYPE_H 1
  30363. /* Define to 1 if you have the <wincrypt.h> header file. */
  30364. /* #undef HAVE_WINCRYPT_H */
  30365. /* Define to 1 if you have the <windows.h> header file. */
  30366. /* #undef HAVE_WINDOWS_H */
  30367. /* Define to 1 if you have the <winioctl.h> header file. */
  30368. /* #undef HAVE_WINIOCTL_H */
  30369. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  30370. /* #undef HAVE__CrtSetReportMode */
  30371. /* Define to 1 if you have the `wmemcmp' function. */
  30372. #define HAVE_WMEMCMP 1
  30373. /* Define to 1 if you have the `wmemcpy' function. */
  30374. #define HAVE_WMEMCPY 1
  30375. /* Define to 1 if you have the `wmemmove' function. */
  30376. #define HAVE_WMEMMOVE 1
  30377. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  30378. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  30379. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  30380. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  30381. /* Define to 1 if you have the <zlib.h> header file. */
  30382. #define HAVE_ZLIB_H 1
  30383. /* Define to 1 if you have the `_ctime64_s' function. */
  30384. /* #undef HAVE__CTIME64_S */
  30385. /* Define to 1 if you have the `_fseeki64' function. */
  30386. /* #undef HAVE__FSEEKI64 */
  30387. /* Define to 1 if you have the `_get_timezone' function. */
  30388. /* #undef HAVE__GET_TIMEZONE */
  30389. /* Define to 1 if you have the `_localtime64_s' function. */
  30390. /* #undef HAVE__LOCALTIME64_S */
  30391. /* Define to 1 if you have the `_mkgmtime64' function. */
  30392. /* #undef HAVE__MKGMTIME64 */
  30393. /* Define as const if the declaration of iconv() needs const. */
  30394. #define ICONV_CONST
  30395. /* Version number of libarchive as a single integer */
  30396. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  30397. /* Version number of libarchive */
  30398. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  30399. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  30400. slash. */
  30401. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  30402. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  30403. */
  30404. /* #undef MAJOR_IN_MKDEV */
  30405. /* Define to 1 if `major', `minor', and `makedev' are declared in
  30406. <sysmacros.h>. */
  30407. #define MAJOR_IN_SYSMACROS 1
  30408. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  30409. /* #undef NO_MINUS_C_MINUS_O */
  30410. /* The size of `wchar_t', as computed by sizeof. */
  30411. #define SIZEOF_WCHAR_T 4
  30412. /* Define to 1 if strerror_r returns char *. */
  30413. /* #undef STRERROR_R_CHAR_P */
  30414. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  30415. #define TIME_WITH_SYS_TIME 1
  30416. /*
  30417. * Some platform requires a macro to use extension functions.
  30418. */
  30419. #define SAFE_TO_DEFINE_EXTENSIONS 1
  30420. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  30421. /* Enable extensions on AIX 3, Interix. */
  30422. #ifndef _ALL_SOURCE
  30423. # define _ALL_SOURCE 1
  30424. #endif
  30425. /* Enable GNU extensions on systems that have them. */
  30426. #ifndef _GNU_SOURCE
  30427. # define _GNU_SOURCE 1
  30428. #endif
  30429. /* Enable threading extensions on Solaris. */
  30430. #ifndef _POSIX_PTHREAD_SEMANTICS
  30431. # define _POSIX_PTHREAD_SEMANTICS 1
  30432. #endif
  30433. /* Enable extensions on HP NonStop. */
  30434. #ifndef _TANDEM_SOURCE
  30435. # define _TANDEM_SOURCE 1
  30436. #endif
  30437. /* Enable general extensions on Solaris. */
  30438. #ifndef __EXTENSIONS__
  30439. # define __EXTENSIONS__ 1
  30440. #endif
  30441. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  30442. /* Version number of package */
  30443. #define VERSION "3.3.2"
  30444. /* Number of bits in a file offset, on hosts where this is settable. */
  30445. /* #undef _FILE_OFFSET_BITS */
  30446. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  30447. /* #undef _LARGEFILE_SOURCE */
  30448. /* Define for large files, on AIX-style hosts. */
  30449. /* #undef _LARGE_FILES */
  30450. /* Define to control Windows SDK version */
  30451. #ifndef NTDDI_VERSION
  30452. /* #undef NTDDI_VERSION */
  30453. #endif // NTDDI_VERSION
  30454. #ifndef _WIN32_WINNT
  30455. /* #undef _WIN32_WINNT */
  30456. #endif // _WIN32_WINNT
  30457. #ifndef WINVER
  30458. /* #undef WINVER */
  30459. #endif // WINVER
  30460. /* Define to empty if `const' does not conform to ANSI C. */
  30461. /* #undef const */
  30462. /* Define to `int' if <sys/types.h> doesn't define. */
  30463. /* #undef gid_t */
  30464. /* Define to `unsigned long' if <sys/types.h> does not define. */
  30465. /* #undef id_t */
  30466. /* Define to `int' if <sys/types.h> does not define. */
  30467. /* #undef mode_t */
  30468. /* Define to `long long' if <sys/types.h> does not define. */
  30469. /* #undef off_t */
  30470. /* Define to `int' if <sys/types.h> doesn't define. */
  30471. /* #undef pid_t */
  30472. /* Define to `unsigned int' if <sys/types.h> does not define. */
  30473. /* #undef size_t */
  30474. /* Define to `int' if <sys/types.h> does not define. */
  30475. /* #undef ssize_t */
  30476. /* Define to `int' if <sys/types.h> doesn't define. */
  30477. /* #undef uid_t */
  30478. /* Define to `int' if <sys/types.h> does not define. */
  30479. /* #undef intptr_t */
  30480. /* Define to `unsigned int' if <sys/types.h> does not define. */
  30481. /* #undef uintptr_t */
  30482. #define ARCHIVE_SHA384_COMPILE_TEST
  30483. #define ARCHIVE_CRYPTO_SHA384_LIBC3
  30484. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  30485. /*-
  30486. * Copyright (c) 2003-2007 Tim Kientzle
  30487. * Copyright (c) 2011 Andres Mejia
  30488. * Copyright (c) 2011 Michihiro NAKAJIMA
  30489. * All rights reserved.
  30490. *
  30491. * Redistribution and use in source and binary forms, with or without
  30492. * modification, are permitted provided that the following conditions
  30493. * are met:
  30494. * 1. Redistributions of source code must retain the above copyright
  30495. * notice, this list of conditions and the following disclaimer.
  30496. * 2. Redistributions in binary form must reproduce the above copyright
  30497. * notice, this list of conditions and the following disclaimer in the
  30498. * documentation and/or other materials provided with the distribution.
  30499. *
  30500. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  30501. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  30502. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  30503. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  30504. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  30505. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  30506. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  30507. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  30508. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  30509. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30510. */
  30511. #include "archive_platform.h"
  30512. #include "archive.h"
  30513. #include "archive_digest_private.h"
  30514. /* In particular, force the configure probe to break if it tries
  30515. * to test a combination of OpenSSL and libmd. */
  30516. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  30517. #error Cannot use both OpenSSL and libmd.
  30518. #endif
  30519. /*
  30520. * Message digest functions for Windows platform.
  30521. */
  30522. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  30523. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  30524. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  30525. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  30526. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  30527. /*
  30528. * Initialize a Message digest.
  30529. */
  30530. static int
  30531. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  30532. {
  30533. ctx->valid = 0;
  30534. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  30535. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  30536. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  30537. return (ARCHIVE_FAILED);
  30538. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  30539. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  30540. return (ARCHIVE_FAILED);
  30541. }
  30542. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  30543. CryptReleaseContext(ctx->cryptProv, 0);
  30544. return (ARCHIVE_FAILED);
  30545. }
  30546. ctx->valid = 1;
  30547. return (ARCHIVE_OK);
  30548. }
  30549. /*
  30550. * Update a Message digest.
  30551. */
  30552. static int
  30553. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  30554. {
  30555. if (!ctx->valid)
  30556. return (ARCHIVE_FAILED);
  30557. CryptHashData(ctx->hash,
  30558. (unsigned char *)(uintptr_t)buf,
  30559. (DWORD)len, 0);
  30560. return (ARCHIVE_OK);
  30561. }
  30562. static int
  30563. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  30564. {
  30565. DWORD siglen = (DWORD)bufsize;
  30566. if (!ctx->valid)
  30567. return (ARCHIVE_FAILED);
  30568. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  30569. CryptDestroyHash(ctx->hash);
  30570. CryptReleaseContext(ctx->cryptProv, 0);
  30571. ctx->valid = 0;
  30572. return (ARCHIVE_OK);
  30573. }
  30574. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  30575. /* MD5 implementations */
  30576. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  30577. static int
  30578. __archive_libc_md5init(archive_md5_ctx *ctx)
  30579. {
  30580. MD5Init(ctx);
  30581. return (ARCHIVE_OK);
  30582. }
  30583. static int
  30584. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  30585. size_t insize)
  30586. {
  30587. MD5Update(ctx, indata, insize);
  30588. return (ARCHIVE_OK);
  30589. }
  30590. static int
  30591. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  30592. {
  30593. MD5Final(md, ctx);
  30594. return (ARCHIVE_OK);
  30595. }
  30596. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  30597. static int
  30598. __archive_libmd_md5init(archive_md5_ctx *ctx)
  30599. {
  30600. MD5Init(ctx);
  30601. return (ARCHIVE_OK);
  30602. }
  30603. static int
  30604. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  30605. size_t insize)
  30606. {
  30607. MD5Update(ctx, indata, insize);
  30608. return (ARCHIVE_OK);
  30609. }
  30610. static int
  30611. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  30612. {
  30613. MD5Final(md, ctx);
  30614. return (ARCHIVE_OK);
  30615. }
  30616. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  30617. static int
  30618. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  30619. {
  30620. CC_MD5_Init(ctx);
  30621. return (ARCHIVE_OK);
  30622. }
  30623. static int
  30624. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  30625. size_t insize)
  30626. {
  30627. CC_MD5_Update(ctx, indata, insize);
  30628. return (ARCHIVE_OK);
  30629. }
  30630. static int
  30631. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  30632. {
  30633. CC_MD5_Final(md, ctx);
  30634. return (ARCHIVE_OK);
  30635. }
  30636. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  30637. static int
  30638. __archive_nettle_md5init(archive_md5_ctx *ctx)
  30639. {
  30640. md5_init(ctx);
  30641. return (ARCHIVE_OK);
  30642. }
  30643. static int
  30644. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  30645. size_t insize)
  30646. {
  30647. md5_update(ctx, insize, indata);
  30648. return (ARCHIVE_OK);
  30649. }
  30650. static int
  30651. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  30652. {
  30653. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  30654. return (ARCHIVE_OK);
  30655. }
  30656. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  30657. static int
  30658. __archive_openssl_md5init(archive_md5_ctx *ctx)
  30659. {
  30660. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  30661. return (ARCHIVE_FAILED);
  30662. EVP_DigestInit(*ctx, EVP_md5());
  30663. return (ARCHIVE_OK);
  30664. }
  30665. static int
  30666. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  30667. size_t insize)
  30668. {
  30669. EVP_DigestUpdate(*ctx, indata, insize);
  30670. return (ARCHIVE_OK);
  30671. }
  30672. static int
  30673. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  30674. {
  30675. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  30676. * this is meant to cope with that. Real fix is probably to fix
  30677. * archive_write_set_format_xar.c
  30678. */
  30679. if (*ctx) {
  30680. EVP_DigestFinal(*ctx, md, NULL);
  30681. EVP_MD_CTX_free(*ctx);
  30682. *ctx = NULL;
  30683. }
  30684. return (ARCHIVE_OK);
  30685. }
  30686. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  30687. static int
  30688. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  30689. {
  30690. return (win_crypto_init(ctx, CALG_MD5));
  30691. }
  30692. static int
  30693. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  30694. size_t insize)
  30695. {
  30696. return (win_crypto_Update(ctx, indata, insize));
  30697. }
  30698. static int
  30699. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  30700. {
  30701. return (win_crypto_Final(md, 16, ctx));
  30702. }
  30703. #else
  30704. static int
  30705. __archive_stub_md5init(archive_md5_ctx *ctx)
  30706. {
  30707. (void)ctx; /* UNUSED */
  30708. return (ARCHIVE_FAILED);
  30709. }
  30710. static int
  30711. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  30712. size_t insize)
  30713. {
  30714. (void)ctx; /* UNUSED */
  30715. (void)indata; /* UNUSED */
  30716. (void)insize; /* UNUSED */
  30717. return (ARCHIVE_FAILED);
  30718. }
  30719. static int
  30720. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  30721. {
  30722. (void)ctx; /* UNUSED */
  30723. (void)md; /* UNUSED */
  30724. return (ARCHIVE_FAILED);
  30725. }
  30726. #endif
  30727. /* RIPEMD160 implementations */
  30728. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  30729. static int
  30730. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  30731. {
  30732. RMD160Init(ctx);
  30733. return (ARCHIVE_OK);
  30734. }
  30735. static int
  30736. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  30737. size_t insize)
  30738. {
  30739. RMD160Update(ctx, indata, insize);
  30740. return (ARCHIVE_OK);
  30741. }
  30742. static int
  30743. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  30744. {
  30745. RMD160Final(md, ctx);
  30746. return (ARCHIVE_OK);
  30747. }
  30748. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  30749. static int
  30750. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  30751. {
  30752. RIPEMD160_Init(ctx);
  30753. return (ARCHIVE_OK);
  30754. }
  30755. static int
  30756. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  30757. size_t insize)
  30758. {
  30759. RIPEMD160_Update(ctx, indata, insize);
  30760. return (ARCHIVE_OK);
  30761. }
  30762. static int
  30763. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  30764. {
  30765. RIPEMD160_Final(md, ctx);
  30766. return (ARCHIVE_OK);
  30767. }
  30768. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  30769. static int
  30770. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  30771. {
  30772. ripemd160_init(ctx);
  30773. return (ARCHIVE_OK);
  30774. }
  30775. static int
  30776. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  30777. size_t insize)
  30778. {
  30779. ripemd160_update(ctx, insize, indata);
  30780. return (ARCHIVE_OK);
  30781. }
  30782. static int
  30783. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  30784. {
  30785. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  30786. return (ARCHIVE_OK);
  30787. }
  30788. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  30789. static int
  30790. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  30791. {
  30792. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  30793. return (ARCHIVE_FAILED);
  30794. EVP_DigestInit(*ctx, EVP_ripemd160());
  30795. return (ARCHIVE_OK);
  30796. }
  30797. static int
  30798. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  30799. size_t insize)
  30800. {
  30801. EVP_DigestUpdate(*ctx, indata, insize);
  30802. return (ARCHIVE_OK);
  30803. }
  30804. static int
  30805. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  30806. {
  30807. if (*ctx) {
  30808. EVP_DigestFinal(*ctx, md, NULL);
  30809. EVP_MD_CTX_free(*ctx);
  30810. *ctx = NULL;
  30811. }
  30812. return (ARCHIVE_OK);
  30813. }
  30814. #else
  30815. static int
  30816. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  30817. {
  30818. (void)ctx; /* UNUSED */
  30819. return (ARCHIVE_FAILED);
  30820. }
  30821. static int
  30822. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  30823. size_t insize)
  30824. {
  30825. (void)ctx; /* UNUSED */
  30826. (void)indata; /* UNUSED */
  30827. (void)insize; /* UNUSED */
  30828. return (ARCHIVE_FAILED);
  30829. }
  30830. static int
  30831. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  30832. {
  30833. (void)ctx; /* UNUSED */
  30834. (void)md; /* UNUSED */
  30835. return (ARCHIVE_FAILED);
  30836. }
  30837. #endif
  30838. /* SHA1 implementations */
  30839. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  30840. static int
  30841. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  30842. {
  30843. SHA1Init(ctx);
  30844. return (ARCHIVE_OK);
  30845. }
  30846. static int
  30847. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  30848. size_t insize)
  30849. {
  30850. SHA1Update(ctx, indata, insize);
  30851. return (ARCHIVE_OK);
  30852. }
  30853. static int
  30854. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  30855. {
  30856. SHA1Final(md, ctx);
  30857. return (ARCHIVE_OK);
  30858. }
  30859. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  30860. static int
  30861. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  30862. {
  30863. SHA1_Init(ctx);
  30864. return (ARCHIVE_OK);
  30865. }
  30866. static int
  30867. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  30868. size_t insize)
  30869. {
  30870. SHA1_Update(ctx, indata, insize);
  30871. return (ARCHIVE_OK);
  30872. }
  30873. static int
  30874. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  30875. {
  30876. SHA1_Final(md, ctx);
  30877. return (ARCHIVE_OK);
  30878. }
  30879. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  30880. static int
  30881. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  30882. {
  30883. CC_SHA1_Init(ctx);
  30884. return (ARCHIVE_OK);
  30885. }
  30886. static int
  30887. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  30888. size_t insize)
  30889. {
  30890. CC_SHA1_Update(ctx, indata, insize);
  30891. return (ARCHIVE_OK);
  30892. }
  30893. static int
  30894. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  30895. {
  30896. CC_SHA1_Final(md, ctx);
  30897. return (ARCHIVE_OK);
  30898. }
  30899. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  30900. static int
  30901. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  30902. {
  30903. sha1_init(ctx);
  30904. return (ARCHIVE_OK);
  30905. }
  30906. static int
  30907. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  30908. size_t insize)
  30909. {
  30910. sha1_update(ctx, insize, indata);
  30911. return (ARCHIVE_OK);
  30912. }
  30913. static int
  30914. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  30915. {
  30916. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  30917. return (ARCHIVE_OK);
  30918. }
  30919. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  30920. static int
  30921. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  30922. {
  30923. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  30924. return (ARCHIVE_FAILED);
  30925. EVP_DigestInit(*ctx, EVP_sha1());
  30926. return (ARCHIVE_OK);
  30927. }
  30928. static int
  30929. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  30930. size_t insize)
  30931. {
  30932. EVP_DigestUpdate(*ctx, indata, insize);
  30933. return (ARCHIVE_OK);
  30934. }
  30935. static int
  30936. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  30937. {
  30938. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  30939. * this is meant to cope with that. Real fix is probably to fix
  30940. * archive_write_set_format_xar.c
  30941. */
  30942. if (*ctx) {
  30943. EVP_DigestFinal(*ctx, md, NULL);
  30944. EVP_MD_CTX_free(*ctx);
  30945. *ctx = NULL;
  30946. }
  30947. return (ARCHIVE_OK);
  30948. }
  30949. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  30950. static int
  30951. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  30952. {
  30953. return (win_crypto_init(ctx, CALG_SHA1));
  30954. }
  30955. static int
  30956. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  30957. size_t insize)
  30958. {
  30959. return (win_crypto_Update(ctx, indata, insize));
  30960. }
  30961. static int
  30962. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  30963. {
  30964. return (win_crypto_Final(md, 20, ctx));
  30965. }
  30966. #else
  30967. static int
  30968. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  30969. {
  30970. (void)ctx; /* UNUSED */
  30971. return (ARCHIVE_FAILED);
  30972. }
  30973. static int
  30974. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  30975. size_t insize)
  30976. {
  30977. (void)ctx; /* UNUSED */
  30978. (void)indata; /* UNUSED */
  30979. (void)insize; /* UNUSED */
  30980. return (ARCHIVE_FAILED);
  30981. }
  30982. static int
  30983. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  30984. {
  30985. (void)ctx; /* UNUSED */
  30986. (void)md; /* UNUSED */
  30987. return (ARCHIVE_FAILED);
  30988. }
  30989. #endif
  30990. /* SHA256 implementations */
  30991. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  30992. static int
  30993. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  30994. {
  30995. SHA256_Init(ctx);
  30996. return (ARCHIVE_OK);
  30997. }
  30998. static int
  30999. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  31000. size_t insize)
  31001. {
  31002. SHA256_Update(ctx, indata, insize);
  31003. return (ARCHIVE_OK);
  31004. }
  31005. static int
  31006. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  31007. {
  31008. SHA256_Final(md, ctx);
  31009. return (ARCHIVE_OK);
  31010. }
  31011. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  31012. static int
  31013. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  31014. {
  31015. SHA256Init(ctx);
  31016. return (ARCHIVE_OK);
  31017. }
  31018. static int
  31019. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  31020. size_t insize)
  31021. {
  31022. SHA256Update(ctx, indata, insize);
  31023. return (ARCHIVE_OK);
  31024. }
  31025. static int
  31026. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  31027. {
  31028. SHA256Final(md, ctx);
  31029. return (ARCHIVE_OK);
  31030. }
  31031. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  31032. static int
  31033. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  31034. {
  31035. SHA256Init(ctx);
  31036. return (ARCHIVE_OK);
  31037. }
  31038. static int
  31039. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  31040. size_t insize)
  31041. {
  31042. SHA256Update(ctx, indata, insize);
  31043. return (ARCHIVE_OK);
  31044. }
  31045. static int
  31046. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  31047. {
  31048. SHA256Final(md, ctx);
  31049. return (ARCHIVE_OK);
  31050. }
  31051. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  31052. static int
  31053. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  31054. {
  31055. SHA256_Init(ctx);
  31056. return (ARCHIVE_OK);
  31057. }
  31058. static int
  31059. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  31060. size_t insize)
  31061. {
  31062. SHA256_Update(ctx, indata, insize);
  31063. return (ARCHIVE_OK);
  31064. }
  31065. static int
  31066. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  31067. {
  31068. SHA256_Final(md, ctx);
  31069. return (ARCHIVE_OK);
  31070. }
  31071. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  31072. static int
  31073. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  31074. {
  31075. CC_SHA256_Init(ctx);
  31076. return (ARCHIVE_OK);
  31077. }
  31078. static int
  31079. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  31080. size_t insize)
  31081. {
  31082. CC_SHA256_Update(ctx, indata, insize);
  31083. return (ARCHIVE_OK);
  31084. }
  31085. static int
  31086. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  31087. {
  31088. CC_SHA256_Final(md, ctx);
  31089. return (ARCHIVE_OK);
  31090. }
  31091. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  31092. static int
  31093. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  31094. {
  31095. sha256_init(ctx);
  31096. return (ARCHIVE_OK);
  31097. }
  31098. static int
  31099. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  31100. size_t insize)
  31101. {
  31102. sha256_update(ctx, insize, indata);
  31103. return (ARCHIVE_OK);
  31104. }
  31105. static int
  31106. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  31107. {
  31108. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  31109. return (ARCHIVE_OK);
  31110. }
  31111. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  31112. static int
  31113. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  31114. {
  31115. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  31116. return (ARCHIVE_FAILED);
  31117. EVP_DigestInit(*ctx, EVP_sha256());
  31118. return (ARCHIVE_OK);
  31119. }
  31120. static int
  31121. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  31122. size_t insize)
  31123. {
  31124. EVP_DigestUpdate(*ctx, indata, insize);
  31125. return (ARCHIVE_OK);
  31126. }
  31127. static int
  31128. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  31129. {
  31130. if (*ctx) {
  31131. EVP_DigestFinal(*ctx, md, NULL);
  31132. EVP_MD_CTX_free(*ctx);
  31133. *ctx = NULL;
  31134. }
  31135. return (ARCHIVE_OK);
  31136. }
  31137. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  31138. static int
  31139. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  31140. {
  31141. return (win_crypto_init(ctx, CALG_SHA_256));
  31142. }
  31143. static int
  31144. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  31145. size_t insize)
  31146. {
  31147. return (win_crypto_Update(ctx, indata, insize));
  31148. }
  31149. static int
  31150. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  31151. {
  31152. return (win_crypto_Final(md, 32, ctx));
  31153. }
  31154. #else
  31155. static int
  31156. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  31157. {
  31158. (void)ctx; /* UNUSED */
  31159. return (ARCHIVE_FAILED);
  31160. }
  31161. static int
  31162. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  31163. size_t insize)
  31164. {
  31165. (void)ctx; /* UNUSED */
  31166. (void)indata; /* UNUSED */
  31167. (void)insize; /* UNUSED */
  31168. return (ARCHIVE_FAILED);
  31169. }
  31170. static int
  31171. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  31172. {
  31173. (void)ctx; /* UNUSED */
  31174. (void)md; /* UNUSED */
  31175. return (ARCHIVE_FAILED);
  31176. }
  31177. #endif
  31178. /* SHA384 implementations */
  31179. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  31180. static int
  31181. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  31182. {
  31183. SHA384_Init(ctx);
  31184. return (ARCHIVE_OK);
  31185. }
  31186. static int
  31187. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  31188. size_t insize)
  31189. {
  31190. SHA384_Update(ctx, indata, insize);
  31191. return (ARCHIVE_OK);
  31192. }
  31193. static int
  31194. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  31195. {
  31196. SHA384_Final(md, ctx);
  31197. return (ARCHIVE_OK);
  31198. }
  31199. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  31200. static int
  31201. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  31202. {
  31203. SHA384Init(ctx);
  31204. return (ARCHIVE_OK);
  31205. }
  31206. static int
  31207. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  31208. size_t insize)
  31209. {
  31210. SHA384Update(ctx, indata, insize);
  31211. return (ARCHIVE_OK);
  31212. }
  31213. static int
  31214. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  31215. {
  31216. SHA384Final(md, ctx);
  31217. return (ARCHIVE_OK);
  31218. }
  31219. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  31220. static int
  31221. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  31222. {
  31223. SHA384Init(ctx);
  31224. return (ARCHIVE_OK);
  31225. }
  31226. static int
  31227. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  31228. size_t insize)
  31229. {
  31230. SHA384Update(ctx, indata, insize);
  31231. return (ARCHIVE_OK);
  31232. }
  31233. static int
  31234. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  31235. {
  31236. SHA384Final(md, ctx);
  31237. return (ARCHIVE_OK);
  31238. }
  31239. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  31240. static int
  31241. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  31242. {
  31243. CC_SHA384_Init(ctx);
  31244. return (ARCHIVE_OK);
  31245. }
  31246. static int
  31247. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  31248. size_t insize)
  31249. {
  31250. CC_SHA384_Update(ctx, indata, insize);
  31251. return (ARCHIVE_OK);
  31252. }
  31253. static int
  31254. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  31255. {
  31256. CC_SHA384_Final(md, ctx);
  31257. return (ARCHIVE_OK);
  31258. }
  31259. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  31260. static int
  31261. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  31262. {
  31263. sha384_init(ctx);
  31264. return (ARCHIVE_OK);
  31265. }
  31266. static int
  31267. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  31268. size_t insize)
  31269. {
  31270. sha384_update(ctx, insize, indata);
  31271. return (ARCHIVE_OK);
  31272. }
  31273. static int
  31274. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  31275. {
  31276. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  31277. return (ARCHIVE_OK);
  31278. }
  31279. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  31280. static int
  31281. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  31282. {
  31283. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  31284. return (ARCHIVE_FAILED);
  31285. EVP_DigestInit(*ctx, EVP_sha384());
  31286. return (ARCHIVE_OK);
  31287. }
  31288. static int
  31289. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  31290. size_t insize)
  31291. {
  31292. EVP_DigestUpdate(*ctx, indata, insize);
  31293. return (ARCHIVE_OK);
  31294. }
  31295. static int
  31296. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  31297. {
  31298. if (*ctx) {
  31299. EVP_DigestFinal(*ctx, md, NULL);
  31300. EVP_MD_CTX_free(*ctx);
  31301. *ctx = NULL;
  31302. }
  31303. return (ARCHIVE_OK);
  31304. }
  31305. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  31306. static int
  31307. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  31308. {
  31309. return (win_crypto_init(ctx, CALG_SHA_384));
  31310. }
  31311. static int
  31312. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  31313. size_t insize)
  31314. {
  31315. return (win_crypto_Update(ctx, indata, insize));
  31316. }
  31317. static int
  31318. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  31319. {
  31320. return (win_crypto_Final(md, 48, ctx));
  31321. }
  31322. #else
  31323. static int
  31324. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  31325. {
  31326. (void)ctx; /* UNUSED */
  31327. return (ARCHIVE_FAILED);
  31328. }
  31329. static int
  31330. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  31331. size_t insize)
  31332. {
  31333. (void)ctx; /* UNUSED */
  31334. (void)indata; /* UNUSED */
  31335. (void)insize; /* UNUSED */
  31336. return (ARCHIVE_FAILED);
  31337. }
  31338. static int
  31339. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  31340. {
  31341. (void)ctx; /* UNUSED */
  31342. (void)md; /* UNUSED */
  31343. return (ARCHIVE_FAILED);
  31344. }
  31345. #endif
  31346. /* SHA512 implementations */
  31347. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  31348. static int
  31349. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  31350. {
  31351. SHA512_Init(ctx);
  31352. return (ARCHIVE_OK);
  31353. }
  31354. static int
  31355. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  31356. size_t insize)
  31357. {
  31358. SHA512_Update(ctx, indata, insize);
  31359. return (ARCHIVE_OK);
  31360. }
  31361. static int
  31362. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  31363. {
  31364. SHA512_Final(md, ctx);
  31365. return (ARCHIVE_OK);
  31366. }
  31367. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  31368. static int
  31369. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  31370. {
  31371. SHA512Init(ctx);
  31372. return (ARCHIVE_OK);
  31373. }
  31374. static int
  31375. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  31376. size_t insize)
  31377. {
  31378. SHA512Update(ctx, indata, insize);
  31379. return (ARCHIVE_OK);
  31380. }
  31381. static int
  31382. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  31383. {
  31384. SHA512Final(md, ctx);
  31385. return (ARCHIVE_OK);
  31386. }
  31387. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  31388. static int
  31389. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  31390. {
  31391. SHA512Init(ctx);
  31392. return (ARCHIVE_OK);
  31393. }
  31394. static int
  31395. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  31396. size_t insize)
  31397. {
  31398. SHA512Update(ctx, indata, insize);
  31399. return (ARCHIVE_OK);
  31400. }
  31401. static int
  31402. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  31403. {
  31404. SHA512Final(md, ctx);
  31405. return (ARCHIVE_OK);
  31406. }
  31407. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  31408. static int
  31409. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  31410. {
  31411. SHA512_Init(ctx);
  31412. return (ARCHIVE_OK);
  31413. }
  31414. static int
  31415. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  31416. size_t insize)
  31417. {
  31418. SHA512_Update(ctx, indata, insize);
  31419. return (ARCHIVE_OK);
  31420. }
  31421. static int
  31422. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  31423. {
  31424. SHA512_Final(md, ctx);
  31425. return (ARCHIVE_OK);
  31426. }
  31427. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  31428. static int
  31429. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  31430. {
  31431. CC_SHA512_Init(ctx);
  31432. return (ARCHIVE_OK);
  31433. }
  31434. static int
  31435. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  31436. size_t insize)
  31437. {
  31438. CC_SHA512_Update(ctx, indata, insize);
  31439. return (ARCHIVE_OK);
  31440. }
  31441. static int
  31442. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  31443. {
  31444. CC_SHA512_Final(md, ctx);
  31445. return (ARCHIVE_OK);
  31446. }
  31447. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  31448. static int
  31449. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  31450. {
  31451. sha512_init(ctx);
  31452. return (ARCHIVE_OK);
  31453. }
  31454. static int
  31455. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  31456. size_t insize)
  31457. {
  31458. sha512_update(ctx, insize, indata);
  31459. return (ARCHIVE_OK);
  31460. }
  31461. static int
  31462. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  31463. {
  31464. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  31465. return (ARCHIVE_OK);
  31466. }
  31467. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  31468. static int
  31469. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  31470. {
  31471. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  31472. return (ARCHIVE_FAILED);
  31473. EVP_DigestInit(*ctx, EVP_sha512());
  31474. return (ARCHIVE_OK);
  31475. }
  31476. static int
  31477. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  31478. size_t insize)
  31479. {
  31480. EVP_DigestUpdate(*ctx, indata, insize);
  31481. return (ARCHIVE_OK);
  31482. }
  31483. static int
  31484. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  31485. {
  31486. if (*ctx) {
  31487. EVP_DigestFinal(*ctx, md, NULL);
  31488. EVP_MD_CTX_free(*ctx);
  31489. *ctx = NULL;
  31490. }
  31491. return (ARCHIVE_OK);
  31492. }
  31493. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  31494. static int
  31495. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  31496. {
  31497. return (win_crypto_init(ctx, CALG_SHA_512));
  31498. }
  31499. static int
  31500. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  31501. size_t insize)
  31502. {
  31503. return (win_crypto_Update(ctx, indata, insize));
  31504. }
  31505. static int
  31506. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  31507. {
  31508. return (win_crypto_Final(md, 64, ctx));
  31509. }
  31510. #else
  31511. static int
  31512. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  31513. {
  31514. (void)ctx; /* UNUSED */
  31515. return (ARCHIVE_FAILED);
  31516. }
  31517. static int
  31518. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  31519. size_t insize)
  31520. {
  31521. (void)ctx; /* UNUSED */
  31522. (void)indata; /* UNUSED */
  31523. (void)insize; /* UNUSED */
  31524. return (ARCHIVE_FAILED);
  31525. }
  31526. static int
  31527. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  31528. {
  31529. (void)ctx; /* UNUSED */
  31530. (void)md; /* UNUSED */
  31531. return (ARCHIVE_FAILED);
  31532. }
  31533. #endif
  31534. /* NOTE: Message Digest functions are set based on availability and by the
  31535. * following order of preference.
  31536. * 1. libc
  31537. * 2. libc2
  31538. * 3. libc3
  31539. * 4. libSystem
  31540. * 5. Nettle
  31541. * 6. OpenSSL
  31542. * 7. libmd
  31543. * 8. Windows API
  31544. */
  31545. const struct archive_digest __archive_digest =
  31546. {
  31547. /* MD5 */
  31548. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  31549. &__archive_libc_md5init,
  31550. &__archive_libc_md5update,
  31551. &__archive_libc_md5final,
  31552. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  31553. &__archive_libmd_md5init,
  31554. &__archive_libmd_md5update,
  31555. &__archive_libmd_md5final,
  31556. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  31557. &__archive_libsystem_md5init,
  31558. &__archive_libsystem_md5update,
  31559. &__archive_libsystem_md5final,
  31560. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  31561. &__archive_nettle_md5init,
  31562. &__archive_nettle_md5update,
  31563. &__archive_nettle_md5final,
  31564. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  31565. &__archive_openssl_md5init,
  31566. &__archive_openssl_md5update,
  31567. &__archive_openssl_md5final,
  31568. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  31569. &__archive_windowsapi_md5init,
  31570. &__archive_windowsapi_md5update,
  31571. &__archive_windowsapi_md5final,
  31572. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  31573. &__archive_stub_md5init,
  31574. &__archive_stub_md5update,
  31575. &__archive_stub_md5final,
  31576. #endif
  31577. /* RIPEMD160 */
  31578. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  31579. &__archive_libc_ripemd160init,
  31580. &__archive_libc_ripemd160update,
  31581. &__archive_libc_ripemd160final,
  31582. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  31583. &__archive_libmd_ripemd160init,
  31584. &__archive_libmd_ripemd160update,
  31585. &__archive_libmd_ripemd160final,
  31586. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  31587. &__archive_nettle_ripemd160init,
  31588. &__archive_nettle_ripemd160update,
  31589. &__archive_nettle_ripemd160final,
  31590. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  31591. &__archive_openssl_ripemd160init,
  31592. &__archive_openssl_ripemd160update,
  31593. &__archive_openssl_ripemd160final,
  31594. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  31595. &__archive_stub_ripemd160init,
  31596. &__archive_stub_ripemd160update,
  31597. &__archive_stub_ripemd160final,
  31598. #endif
  31599. /* SHA1 */
  31600. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  31601. &__archive_libc_sha1init,
  31602. &__archive_libc_sha1update,
  31603. &__archive_libc_sha1final,
  31604. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  31605. &__archive_libmd_sha1init,
  31606. &__archive_libmd_sha1update,
  31607. &__archive_libmd_sha1final,
  31608. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  31609. &__archive_libsystem_sha1init,
  31610. &__archive_libsystem_sha1update,
  31611. &__archive_libsystem_sha1final,
  31612. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  31613. &__archive_nettle_sha1init,
  31614. &__archive_nettle_sha1update,
  31615. &__archive_nettle_sha1final,
  31616. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  31617. &__archive_openssl_sha1init,
  31618. &__archive_openssl_sha1update,
  31619. &__archive_openssl_sha1final,
  31620. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  31621. &__archive_windowsapi_sha1init,
  31622. &__archive_windowsapi_sha1update,
  31623. &__archive_windowsapi_sha1final,
  31624. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  31625. &__archive_stub_sha1init,
  31626. &__archive_stub_sha1update,
  31627. &__archive_stub_sha1final,
  31628. #endif
  31629. /* SHA256 */
  31630. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  31631. &__archive_libc_sha256init,
  31632. &__archive_libc_sha256update,
  31633. &__archive_libc_sha256final,
  31634. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  31635. &__archive_libc2_sha256init,
  31636. &__archive_libc2_sha256update,
  31637. &__archive_libc2_sha256final,
  31638. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  31639. &__archive_libc3_sha256init,
  31640. &__archive_libc3_sha256update,
  31641. &__archive_libc3_sha256final,
  31642. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  31643. &__archive_libmd_sha256init,
  31644. &__archive_libmd_sha256update,
  31645. &__archive_libmd_sha256final,
  31646. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  31647. &__archive_libsystem_sha256init,
  31648. &__archive_libsystem_sha256update,
  31649. &__archive_libsystem_sha256final,
  31650. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  31651. &__archive_nettle_sha256init,
  31652. &__archive_nettle_sha256update,
  31653. &__archive_nettle_sha256final,
  31654. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  31655. &__archive_openssl_sha256init,
  31656. &__archive_openssl_sha256update,
  31657. &__archive_openssl_sha256final,
  31658. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  31659. &__archive_windowsapi_sha256init,
  31660. &__archive_windowsapi_sha256update,
  31661. &__archive_windowsapi_sha256final,
  31662. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  31663. &__archive_stub_sha256init,
  31664. &__archive_stub_sha256update,
  31665. &__archive_stub_sha256final,
  31666. #endif
  31667. /* SHA384 */
  31668. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  31669. &__archive_libc_sha384init,
  31670. &__archive_libc_sha384update,
  31671. &__archive_libc_sha384final,
  31672. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  31673. &__archive_libc2_sha384init,
  31674. &__archive_libc2_sha384update,
  31675. &__archive_libc2_sha384final,
  31676. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  31677. &__archive_libc3_sha384init,
  31678. &__archive_libc3_sha384update,
  31679. &__archive_libc3_sha384final,
  31680. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  31681. &__archive_libsystem_sha384init,
  31682. &__archive_libsystem_sha384update,
  31683. &__archive_libsystem_sha384final,
  31684. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  31685. &__archive_nettle_sha384init,
  31686. &__archive_nettle_sha384update,
  31687. &__archive_nettle_sha384final,
  31688. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  31689. &__archive_openssl_sha384init,
  31690. &__archive_openssl_sha384update,
  31691. &__archive_openssl_sha384final,
  31692. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  31693. &__archive_windowsapi_sha384init,
  31694. &__archive_windowsapi_sha384update,
  31695. &__archive_windowsapi_sha384final,
  31696. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  31697. &__archive_stub_sha384init,
  31698. &__archive_stub_sha384update,
  31699. &__archive_stub_sha384final,
  31700. #endif
  31701. /* SHA512 */
  31702. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  31703. &__archive_libc_sha512init,
  31704. &__archive_libc_sha512update,
  31705. &__archive_libc_sha512final
  31706. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  31707. &__archive_libc2_sha512init,
  31708. &__archive_libc2_sha512update,
  31709. &__archive_libc2_sha512final
  31710. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  31711. &__archive_libc3_sha512init,
  31712. &__archive_libc3_sha512update,
  31713. &__archive_libc3_sha512final
  31714. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  31715. &__archive_libmd_sha512init,
  31716. &__archive_libmd_sha512update,
  31717. &__archive_libmd_sha512final
  31718. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  31719. &__archive_libsystem_sha512init,
  31720. &__archive_libsystem_sha512update,
  31721. &__archive_libsystem_sha512final
  31722. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  31723. &__archive_nettle_sha512init,
  31724. &__archive_nettle_sha512update,
  31725. &__archive_nettle_sha512final
  31726. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  31727. &__archive_openssl_sha512init,
  31728. &__archive_openssl_sha512update,
  31729. &__archive_openssl_sha512final
  31730. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  31731. &__archive_windowsapi_sha512init,
  31732. &__archive_windowsapi_sha512update,
  31733. &__archive_windowsapi_sha512final
  31734. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  31735. &__archive_stub_sha512init,
  31736. &__archive_stub_sha512update,
  31737. &__archive_stub_sha512final
  31738. #endif
  31739. };
  31740. int
  31741. main(int argc, char **argv)
  31742. {
  31743. archive_sha384_ctx ctx;
  31744. archive_sha384_init(&ctx);
  31745. archive_sha384_update(&ctx, *argv, argc);
  31746. archive_sha384_final(&ctx, NULL);
  31747. return 0;
  31748. }
  31749. Checking support for ARCHIVE_CRYPTO_SHA512_LIBC3 failed with the following output:
  31750. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  31751. Run Build Command:"/usr/bin/make" "cmTC_82ffa/fast"
  31752. make -f CMakeFiles/cmTC_82ffa.dir/build.make CMakeFiles/cmTC_82ffa.dir/build
  31753. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  31754. Building C object CMakeFiles/cmTC_82ffa.dir/check_crypto_md.c.o
  31755. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_82ffa.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  31756. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  31757. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:78:18: fatal error: sha2.h: No such file or directory
  31758. compilation terminated.
  31759. CMakeFiles/cmTC_82ffa.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_82ffa.dir/check_crypto_md.c.o' failed
  31760. make[1]: *** [CMakeFiles/cmTC_82ffa.dir/check_crypto_md.c.o] Error 1
  31761. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  31762. Makefile:126: recipe for target 'cmTC_82ffa/fast' failed
  31763. make: *** [cmTC_82ffa/fast] Error 2
  31764. Source file was:
  31765. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  31766. #if defined(__osf__)
  31767. # define _OSF_SOURCE
  31768. #endif
  31769. /*
  31770. * Ensure we have C99-style int64_t, etc, all defined.
  31771. */
  31772. /* First, we need to know if the system has already defined them. */
  31773. #define HAVE_INT16_T
  31774. #define HAVE_INT32_T
  31775. #define HAVE_INT64_T
  31776. #define HAVE_INTMAX_T
  31777. #define HAVE_UINT8_T
  31778. #define HAVE_UINT16_T
  31779. #define HAVE_UINT32_T
  31780. #define HAVE_UINT64_T
  31781. #define HAVE_UINTMAX_T
  31782. /* We might have the types we want under other spellings. */
  31783. /* #undef HAVE___INT64 */
  31784. /* #undef HAVE_U_INT64_T */
  31785. /* #undef HAVE_UNSIGNED___INT64 */
  31786. /* The sizes of various standard integer types. */
  31787. #define SIZE_OF_SHORT 2
  31788. #define SIZE_OF_INT 4
  31789. #define SIZE_OF_LONG 8
  31790. #define SIZE_OF_LONG_LONG 8
  31791. #define SIZE_OF_UNSIGNED_SHORT 2
  31792. #define SIZE_OF_UNSIGNED 4
  31793. #define SIZE_OF_UNSIGNED_LONG 8
  31794. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  31795. /*
  31796. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  31797. * that exists and is the right size.
  31798. */
  31799. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  31800. typedef __int64 int64_t;
  31801. #define HAVE_INT64_T
  31802. #endif
  31803. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  31804. typedef int int64_t;
  31805. #define HAVE_INT64_T
  31806. #endif
  31807. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  31808. typedef long int64_t;
  31809. #define HAVE_INT64_T
  31810. #endif
  31811. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  31812. typedef long long int64_t;
  31813. #define HAVE_INT64_T
  31814. #endif
  31815. #if !defined(HAVE_INT64_T)
  31816. #error No 64-bit integer type was found.
  31817. #endif
  31818. /*
  31819. * Similarly for int32_t
  31820. */
  31821. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  31822. typedef int int32_t;
  31823. #define HAVE_INT32_T
  31824. #endif
  31825. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  31826. typedef long int32_t;
  31827. #define HAVE_INT32_T
  31828. #endif
  31829. #if !defined(HAVE_INT32_T)
  31830. #error No 32-bit integer type was found.
  31831. #endif
  31832. /*
  31833. * Similarly for int16_t
  31834. */
  31835. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  31836. typedef int int16_t;
  31837. #define HAVE_INT16_T
  31838. #endif
  31839. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  31840. typedef short int16_t;
  31841. #define HAVE_INT16_T
  31842. #endif
  31843. #if !defined(HAVE_INT16_T)
  31844. #error No 16-bit integer type was found.
  31845. #endif
  31846. /*
  31847. * Similarly for uint64_t
  31848. */
  31849. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  31850. typedef unsigned __int64 uint64_t;
  31851. #define HAVE_UINT64_T
  31852. #endif
  31853. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  31854. typedef unsigned uint64_t;
  31855. #define HAVE_UINT64_T
  31856. #endif
  31857. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  31858. typedef unsigned long uint64_t;
  31859. #define HAVE_UINT64_T
  31860. #endif
  31861. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  31862. typedef unsigned long long uint64_t;
  31863. #define HAVE_UINT64_T
  31864. #endif
  31865. #if !defined(HAVE_UINT64_T)
  31866. #error No 64-bit unsigned integer type was found.
  31867. #endif
  31868. /*
  31869. * Similarly for uint32_t
  31870. */
  31871. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  31872. typedef unsigned uint32_t;
  31873. #define HAVE_UINT32_T
  31874. #endif
  31875. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  31876. typedef unsigned long uint32_t;
  31877. #define HAVE_UINT32_T
  31878. #endif
  31879. #if !defined(HAVE_UINT32_T)
  31880. #error No 32-bit unsigned integer type was found.
  31881. #endif
  31882. /*
  31883. * Similarly for uint16_t
  31884. */
  31885. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  31886. typedef unsigned uint16_t;
  31887. #define HAVE_UINT16_T
  31888. #endif
  31889. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  31890. typedef unsigned short uint16_t;
  31891. #define HAVE_UINT16_T
  31892. #endif
  31893. #if !defined(HAVE_UINT16_T)
  31894. #error No 16-bit unsigned integer type was found.
  31895. #endif
  31896. /*
  31897. * Similarly for uint8_t
  31898. */
  31899. #if !defined(HAVE_UINT8_T)
  31900. typedef unsigned char uint8_t;
  31901. #define HAVE_UINT8_T
  31902. #endif
  31903. #if !defined(HAVE_UINT16_T)
  31904. #error No 8-bit unsigned integer type was found.
  31905. #endif
  31906. /* Define intmax_t and uintmax_t if they are not already defined. */
  31907. #if !defined(HAVE_INTMAX_T)
  31908. typedef int64_t intmax_t;
  31909. #endif
  31910. #if !defined(HAVE_UINTMAX_T)
  31911. typedef uint64_t uintmax_t;
  31912. #endif
  31913. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  31914. /* #undef ZLIB_WINAPI */
  31915. /* Darwin ACL support */
  31916. /* #undef ARCHIVE_ACL_DARWIN */
  31917. /* FreeBSD ACL support */
  31918. /* #undef ARCHIVE_ACL_FREEBSD */
  31919. /* FreeBSD NFSv4 ACL support */
  31920. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  31921. /* Linux POSIX.1e ACL support via libacl */
  31922. /* #undef ARCHIVE_ACL_LIBACL */
  31923. /* Linux NFSv4 ACL support via librichacl */
  31924. /* #undef ARCHIVE_ACL_LIBRICHACL */
  31925. /* Solaris ACL support */
  31926. /* #undef ARCHIVE_ACL_SUNOS */
  31927. /* Solaris NFSv4 ACL support */
  31928. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  31929. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  31930. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  31931. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  31932. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  31933. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  31934. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  31935. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  31936. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  31937. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  31938. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  31939. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  31940. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  31941. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  31942. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  31943. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  31944. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  31945. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  31946. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  31947. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  31948. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  31949. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  31950. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  31951. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  31952. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  31953. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  31954. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  31955. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  31956. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  31957. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  31958. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  31959. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  31960. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  31961. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  31962. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  31963. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  31964. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  31965. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  31966. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  31967. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  31968. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  31969. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  31970. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  31971. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  31972. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  31973. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  31974. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  31975. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  31976. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  31977. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  31978. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  31979. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  31980. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  31981. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  31982. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  31983. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  31984. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  31985. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  31986. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  31987. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  31988. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  31989. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  31990. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  31991. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  31992. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  31993. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  31994. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  31995. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  31996. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  31997. /* AIX xattr support */
  31998. /* #undef ARCHIVE_XATTR_AIX */
  31999. /* Darwin xattr support */
  32000. /* #undef ARCHIVE_XATTR_DARWIN */
  32001. /* FreeBSD xattr support */
  32002. /* #undef ARCHIVE_XATTR_FREEBSD */
  32003. /* Linux xattr support */
  32004. /* #undef ARCHIVE_XATTR_LINUX */
  32005. /* Version number of bsdcpio */
  32006. #define BSDCPIO_VERSION_STRING "3.3.2"
  32007. /* Version number of bsdtar */
  32008. #define BSDTAR_VERSION_STRING "3.3.2"
  32009. /* Version number of bsdcat */
  32010. #define BSDCAT_VERSION_STRING "3.3.2"
  32011. /* Define to 1 if you have the `acl_create_entry' function. */
  32012. /* #undef HAVE_ACL_CREATE_ENTRY */
  32013. /* Define to 1 if you have the `acl_get_fd_np' function. */
  32014. /* #undef HAVE_ACL_GET_FD_NP */
  32015. /* Define to 1 if you have the `acl_get_link' function. */
  32016. /* #undef HAVE_ACL_GET_LINK */
  32017. /* Define to 1 if you have the `acl_get_link_np' function. */
  32018. /* #undef HAVE_ACL_GET_LINK_NP */
  32019. /* Define to 1 if you have the `acl_get_perm' function. */
  32020. /* #undef HAVE_ACL_GET_PERM */
  32021. /* Define to 1 if you have the `acl_get_perm_np' function. */
  32022. /* #undef HAVE_ACL_GET_PERM_NP */
  32023. /* Define to 1 if you have the `acl_init' function. */
  32024. /* #undef HAVE_ACL_INIT */
  32025. /* Define to 1 if you have the <acl/libacl.h> header file. */
  32026. /* #undef HAVE_ACL_LIBACL_H */
  32027. /* Define to 1 if the system has the type `acl_permset_t'. */
  32028. /* #undef HAVE_ACL_PERMSET_T */
  32029. /* Define to 1 if you have the `acl_set_fd' function. */
  32030. /* #undef HAVE_ACL_SET_FD */
  32031. /* Define to 1 if you have the `acl_set_fd_np' function. */
  32032. /* #undef HAVE_ACL_SET_FD_NP */
  32033. /* Define to 1 if you have the `acl_set_file' function. */
  32034. /* #undef HAVE_ACL_SET_FILE */
  32035. /* Define to 1 if you have the `arc4random_buf' function. */
  32036. /* #undef HAVE_ARC4RANDOM_BUF */
  32037. /* Define to 1 if you have the <attr/xattr.h> header file. */
  32038. /* #undef HAVE_ATTR_XATTR_H */
  32039. /* Define to 1 if you have the <Bcrypt.h> header file. */
  32040. /* #undef HAVE_BCRYPT_H */
  32041. /* Define to 1 if you have the <bsdxml.h> header file. */
  32042. /* #undef HAVE_BSDXML_H */
  32043. /* Define to 1 if you have the <bzlib.h> header file. */
  32044. #define HAVE_BZLIB_H 1
  32045. /* Define to 1 if you have the `chflags' function. */
  32046. /* #undef HAVE_CHFLAGS */
  32047. /* Define to 1 if you have the `chown' function. */
  32048. #define HAVE_CHOWN 1
  32049. /* Define to 1 if you have the `chroot' function. */
  32050. #define HAVE_CHROOT 1
  32051. /* Define to 1 if you have the <copyfile.h> header file. */
  32052. /* #undef HAVE_COPYFILE_H */
  32053. /* Define to 1 if you have the `ctime_r' function. */
  32054. #define HAVE_CTIME_R 1
  32055. /* Define to 1 if you have the <ctype.h> header file. */
  32056. #define HAVE_CTYPE_H 1
  32057. /* Define to 1 if you have the `cygwin_conv_path' function. */
  32058. /* #undef HAVE_CYGWIN_CONV_PATH */
  32059. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  32060. don't. */
  32061. /* #undef HAVE_DECL_ACE_GETACL */
  32062. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  32063. don't. */
  32064. /* #undef HAVE_DECL_ACE_GETACLCNT */
  32065. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  32066. don't. */
  32067. /* #undef HAVE_DECL_ACE_SETACL */
  32068. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  32069. you don't. */
  32070. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  32071. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  32072. you don't. */
  32073. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  32074. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  32075. don't. */
  32076. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  32077. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  32078. don't. */
  32079. /* #undef HAVE_DECL_ACL_USER */
  32080. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  32081. don't. */
  32082. #define HAVE_DECL_INT32_MAX 1
  32083. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  32084. don't. */
  32085. #define HAVE_DECL_INT32_MIN 1
  32086. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  32087. don't. */
  32088. #define HAVE_DECL_INT64_MAX 1
  32089. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  32090. don't. */
  32091. #define HAVE_DECL_INT64_MIN 1
  32092. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  32093. don't. */
  32094. #define HAVE_DECL_INTMAX_MAX 1
  32095. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  32096. don't. */
  32097. #define HAVE_DECL_INTMAX_MIN 1
  32098. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  32099. */
  32100. /* #undef HAVE_DECL_SETACL */
  32101. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  32102. don't. */
  32103. #define HAVE_DECL_SIZE_MAX 1
  32104. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  32105. don't. */
  32106. #define HAVE_DECL_SSIZE_MAX 1
  32107. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  32108. don't. */
  32109. #define HAVE_DECL_STRERROR_R 1
  32110. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  32111. don't. */
  32112. #define HAVE_DECL_UINT32_MAX 1
  32113. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  32114. don't. */
  32115. #define HAVE_DECL_UINT64_MAX 1
  32116. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  32117. don't. */
  32118. #define HAVE_DECL_UINTMAX_MAX 1
  32119. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  32120. you don't. */
  32121. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  32122. /* Define to 1 if you have the <direct.h> header file. */
  32123. /* #undef HAVE_DIRECT_H */
  32124. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  32125. */
  32126. #define HAVE_DIRENT_H 1
  32127. /* Define to 1 if you have the `dirfd' function. */
  32128. #define HAVE_DIRFD 1
  32129. /* Define to 1 if you have the <dlfcn.h> header file. */
  32130. #define HAVE_DLFCN_H 1
  32131. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  32132. /* #undef HAVE_DOPRNT */
  32133. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  32134. /* #undef HAVE_D_MD_ORDER */
  32135. /* A possible errno value for invalid file format errors */
  32136. /* #undef HAVE_EFTYPE */
  32137. /* A possible errno value for invalid file format errors */
  32138. #define HAVE_EILSEQ 1
  32139. /* Define to 1 if you have the <errno.h> header file. */
  32140. #define HAVE_ERRNO_H 1
  32141. /* Define to 1 if you have the <expat.h> header file. */
  32142. /* #undef HAVE_EXPAT_H */
  32143. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  32144. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  32145. /* Define to 1 if you have the `extattr_get_file' function. */
  32146. /* #undef HAVE_EXTATTR_GET_FILE */
  32147. /* Define to 1 if you have the `extattr_list_file' function. */
  32148. /* #undef HAVE_EXTATTR_LIST_FILE */
  32149. /* Define to 1 if you have the `extattr_set_fd' function. */
  32150. /* #undef HAVE_EXTATTR_SET_FD */
  32151. /* Define to 1 if you have the `extattr_set_file' function. */
  32152. /* #undef HAVE_EXTATTR_SET_FILE */
  32153. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  32154. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  32155. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  32156. */
  32157. /* #undef HAVE_DECL_GETACL */
  32158. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  32159. don't. */
  32160. /* #undef HAVE_DECL_GETACLCNT */
  32161. /* Define to 1 if you have the `fchdir' function. */
  32162. #define HAVE_FCHDIR 1
  32163. /* Define to 1 if you have the `fchflags' function. */
  32164. /* #undef HAVE_FCHFLAGS */
  32165. /* Define to 1 if you have the `fchmod' function. */
  32166. #define HAVE_FCHMOD 1
  32167. /* Define to 1 if you have the `fchown' function. */
  32168. #define HAVE_FCHOWN 1
  32169. /* Define to 1 if you have the `fcntl' function. */
  32170. #define HAVE_FCNTL 1
  32171. /* Define to 1 if you have the <fcntl.h> header file. */
  32172. #define HAVE_FCNTL_H 1
  32173. /* Define to 1 if you have the `fdopendir' function. */
  32174. #define HAVE_FDOPENDIR 1
  32175. /* Define to 1 if you have the `fgetea' function. */
  32176. /* #undef HAVE_FGETEA */
  32177. /* Define to 1 if you have the `fgetxattr' function. */
  32178. /* #undef HAVE_FGETXATTR */
  32179. /* Define to 1 if you have the `flistea' function. */
  32180. /* #undef HAVE_FLISTEA */
  32181. /* Define to 1 if you have the `flistxattr' function. */
  32182. /* #undef HAVE_FLISTXATTR */
  32183. /* Define to 1 if you have the `fork' function. */
  32184. #define HAVE_FORK 1
  32185. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  32186. #define HAVE_FSEEKO 1
  32187. /* Define to 1 if you have the `fsetea' function. */
  32188. /* #undef HAVE_FSETEA */
  32189. /* Define to 1 if you have the `fsetxattr' function. */
  32190. #define HAVE_FSETXATTR 1
  32191. /* Define to 1 if you have the `fstat' function. */
  32192. #define HAVE_FSTAT 1
  32193. /* Define to 1 if you have the `fstatat' function. */
  32194. #define HAVE_FSTATAT 1
  32195. /* Define to 1 if you have the `fstatfs' function. */
  32196. #define HAVE_FSTATFS 1
  32197. /* Define to 1 if you have the `fstatvfs' function. */
  32198. #define HAVE_FSTATVFS 1
  32199. /* Define to 1 if you have the `ftruncate' function. */
  32200. #define HAVE_FTRUNCATE 1
  32201. /* Define to 1 if you have the `futimens' function. */
  32202. #define HAVE_FUTIMENS 1
  32203. /* Define to 1 if you have the `futimes' function. */
  32204. #define HAVE_FUTIMES 1
  32205. /* Define to 1 if you have the `futimesat' function. */
  32206. #define HAVE_FUTIMESAT 1
  32207. /* Define to 1 if you have the `getea' function. */
  32208. /* #undef HAVE_GETEA */
  32209. /* Define to 1 if you have the `geteuid' function. */
  32210. #define HAVE_GETEUID 1
  32211. /* Define to 1 if you have the `getgrgid_r' function. */
  32212. #define HAVE_GETGRGID_R 1
  32213. /* Define to 1 if you have the `getgrnam_r' function. */
  32214. #define HAVE_GETGRNAM_R 1
  32215. /* Define to 1 if you have the `getpid' function. */
  32216. #define HAVE_GETPID 1
  32217. /* Define to 1 if you have the `getpwnam_r' function. */
  32218. #define HAVE_GETPWNAM_R 1
  32219. /* Define to 1 if you have the `getpwuid_r' function. */
  32220. #define HAVE_GETPWUID_R 1
  32221. /* Define to 1 if you have the `getvfsbyname' function. */
  32222. /* #undef HAVE_GETVFSBYNAME */
  32223. /* Define to 1 if you have the `getxattr' function. */
  32224. /* #undef HAVE_GETXATTR */
  32225. /* Define to 1 if you have the `gmtime_r' function. */
  32226. #define HAVE_GMTIME_R 1
  32227. /* Define to 1 if you have the <grp.h> header file. */
  32228. #define HAVE_GRP_H 1
  32229. /* Define to 1 if you have the `iconv' function. */
  32230. /* #undef HAVE_ICONV */
  32231. /* Define to 1 if you have the <iconv.h> header file. */
  32232. /* #undef HAVE_ICONV_H */
  32233. /* Define to 1 if you have the <inttypes.h> header file. */
  32234. #define HAVE_INTTYPES_H 1
  32235. /* Define to 1 if you have the <io.h> header file. */
  32236. /* #undef HAVE_IO_H */
  32237. /* Define to 1 if you have the <langinfo.h> header file. */
  32238. #define HAVE_LANGINFO_H 1
  32239. /* Define to 1 if you have the `lchflags' function. */
  32240. /* #undef HAVE_LCHFLAGS */
  32241. /* Define to 1 if you have the `lchmod' function. */
  32242. /* #undef HAVE_LCHMOD */
  32243. /* Define to 1 if you have the `lchown' function. */
  32244. #define HAVE_LCHOWN 1
  32245. /* Define to 1 if you have the `lgetea' function. */
  32246. /* #undef HAVE_LGETEA */
  32247. /* Define to 1 if you have the `lgetxattr' function. */
  32248. /* #undef HAVE_LGETXATTR */
  32249. /* Define to 1 if you have the `acl' library (-lacl). */
  32250. /* #undef HAVE_LIBACL */
  32251. /* Define to 1 if you have the `attr' library (-lattr). */
  32252. /* #undef HAVE_LIBATTR */
  32253. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  32254. /* #undef HAVE_LIBBSDXML */
  32255. /* Define to 1 if you have the `bz2' library (-lbz2). */
  32256. #define HAVE_LIBBZ2 1
  32257. /* Define to 1 if you have the `charset' library (-lcharset). */
  32258. /* #undef HAVE_LIBCHARSET */
  32259. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  32260. #define HAVE_LIBCRYPTO 1
  32261. /* Define to 1 if you have the `expat' library (-lexpat). */
  32262. /* #undef HAVE_LIBEXPAT */
  32263. /* Define to 1 if you have the `gcc' library (-lgcc). */
  32264. /* #undef HAVE_LIBGCC */
  32265. /* Define to 1 if you have the `lz4' library (-llz4). */
  32266. /* #undef HAVE_LIBLZ4 */
  32267. /* Define to 1 if you have the `lzma' library (-llzma). */
  32268. #define HAVE_LIBLZMA 1
  32269. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  32270. /* #undef HAVE_LIBLZMADEC */
  32271. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  32272. /* #undef HAVE_LIBLZO2 */
  32273. /* Define to 1 if you have the `nettle' library (-lnettle). */
  32274. /* #undef HAVE_LIBNETTLE */
  32275. /* Define to 1 if you have the `pcre' library (-lpcre). */
  32276. /* #undef HAVE_LIBPCRE */
  32277. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  32278. /* #undef HAVE_LIBPCREPOSIX */
  32279. /* Define to 1 if you have the `xml2' library (-lxml2). */
  32280. /* #undef HAVE_LIBXML2 */
  32281. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  32282. /* #undef HAVE_LIBXML_XMLREADER_H */
  32283. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  32284. /* #undef HAVE_LIBXML_XMLWRITER_H */
  32285. /* Define to 1 if you have the `z' library (-lz). */
  32286. #define HAVE_LIBZ 1
  32287. /* Define to 1 if you have the <limits.h> header file. */
  32288. #define HAVE_LIMITS_H 1
  32289. /* Define to 1 if you have the `link' function. */
  32290. #define HAVE_LINK 1
  32291. /* Define to 1 if you have the <linux/types.h> header file. */
  32292. #define HAVE_LINUX_TYPES_H 1
  32293. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  32294. #define HAVE_LINUX_FIEMAP_H 1
  32295. /* Define to 1 if you have the <linux/fs.h> header file. */
  32296. #define HAVE_LINUX_FS_H 1
  32297. /* Define to 1 if you have the <linux/magic.h> header file. */
  32298. #define HAVE_LINUX_MAGIC_H 1
  32299. /* Define to 1 if you have the <linux/types.h> header file. */
  32300. #define HAVE_LINUX_TYPES_H 1
  32301. /* Define to 1 if you have the `listea' function. */
  32302. /* #undef HAVE_LISTEA */
  32303. /* Define to 1 if you have the `listxattr' function. */
  32304. /* #undef HAVE_LISTXATTR */
  32305. /* Define to 1 if you have the `llistea' function. */
  32306. /* #undef HAVE_LLISTEA */
  32307. /* Define to 1 if you have the `llistxattr' function. */
  32308. /* #undef HAVE_LLISTXATTR */
  32309. /* Define to 1 if you have the <localcharset.h> header file. */
  32310. /* #undef HAVE_LOCALCHARSET_H */
  32311. /* Define to 1 if you have the `locale_charset' function. */
  32312. /* #undef HAVE_LOCALE_CHARSET */
  32313. /* Define to 1 if you have the <locale.h> header file. */
  32314. #define HAVE_LOCALE_H 1
  32315. /* Define to 1 if you have the `localtime_r' function. */
  32316. #define HAVE_LOCALTIME_R 1
  32317. /* Define to 1 if the system has the type `long long int'. */
  32318. /* #undef HAVE_LONG_LONG_INT */
  32319. /* Define to 1 if you have the `lsetea' function. */
  32320. /* #undef HAVE_LSETEA */
  32321. /* Define to 1 if you have the `lsetxattr' function. */
  32322. /* #undef HAVE_LSETXATTR */
  32323. /* Define to 1 if you have the `lstat' function. */
  32324. #define HAVE_LSTAT 1
  32325. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  32326. zero-length file name argument. */
  32327. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  32328. /* Define to 1 if you have the `lutimes' function. */
  32329. #define HAVE_LUTIMES 1
  32330. /* Define to 1 if you have the <lz4hc.h> header file. */
  32331. /* #undef HAVE_LZ4HC_H */
  32332. /* Define to 1 if you have the <lz4.h> header file. */
  32333. /* #undef HAVE_LZ4_H */
  32334. /* Define to 1 if you have the <lzmadec.h> header file. */
  32335. /* #undef HAVE_LZMADEC_H */
  32336. /* Define to 1 if you have the <lzma.h> header file. */
  32337. #define HAVE_LZMA_H 1
  32338. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  32339. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  32340. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  32341. /* #undef HAVE_LZO_LZO1X_H */
  32342. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  32343. /* #undef HAVE_LZO_LZOCONF_H */
  32344. /* Define to 1 if you have the `mbrtowc' function. */
  32345. #define HAVE_MBRTOWC 1
  32346. /* Define to 1 if you have the <membership.h> header file. */
  32347. /* #undef HAVE_MEMBERSHIP_H */
  32348. /* Define to 1 if you have the `memmove' function. */
  32349. #define HAVE_MEMMOVE 1
  32350. /* Define to 1 if you have the <memory.h> header file. */
  32351. #define HAVE_MEMORY_H 1
  32352. /* Define to 1 if you have the `mkdir' function. */
  32353. #define HAVE_MKDIR 1
  32354. /* Define to 1 if you have the `mkfifo' function. */
  32355. #define HAVE_MKFIFO 1
  32356. /* Define to 1 if you have the `mknod' function. */
  32357. #define HAVE_MKNOD 1
  32358. /* Define to 1 if you have the `mkstemp' function. */
  32359. #define HAVE_MKSTEMP 1
  32360. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  32361. /* #undef HAVE_NDIR_H */
  32362. /* Define to 1 if you have the <nettle/aes.h> header file. */
  32363. /* #undef HAVE_NETTLE_AES_H */
  32364. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  32365. /* #undef HAVE_NETTLE_HMAC_H */
  32366. /* Define to 1 if you have the <nettle/md5.h> header file. */
  32367. /* #undef HAVE_NETTLE_MD5_H */
  32368. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  32369. /* #undef HAVE_NETTLE_PBKDF2_H */
  32370. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  32371. /* #undef HAVE_NETTLE_RIPEMD160_H */
  32372. /* Define to 1 if you have the <nettle/sha.h> header file. */
  32373. /* #undef HAVE_NETTLE_SHA_H */
  32374. /* Define to 1 if you have the `nl_langinfo' function. */
  32375. #define HAVE_NL_LANGINFO 1
  32376. /* Define to 1 if you have the `openat' function. */
  32377. #define HAVE_OPENAT 1
  32378. /* Define to 1 if you have the <paths.h> header file. */
  32379. #define HAVE_PATHS_H 1
  32380. /* Define to 1 if you have the <pcreposix.h> header file. */
  32381. /* #undef HAVE_PCREPOSIX_H */
  32382. /* Define to 1 if you have the `pipe' function. */
  32383. #define HAVE_PIPE 1
  32384. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  32385. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  32386. /* Define to 1 if you have the `poll' function. */
  32387. #define HAVE_POLL 1
  32388. /* Define to 1 if you have the <poll.h> header file. */
  32389. #define HAVE_POLL_H 1
  32390. /* Define to 1 if you have the `posix_spawnp' function. */
  32391. #define HAVE_POSIX_SPAWNP 1
  32392. /* Define to 1 if you have the <process.h> header file. */
  32393. /* #undef HAVE_PROCESS_H */
  32394. /* Define to 1 if you have the <pthread.h> header file. */
  32395. /* #undef HAVE_PTHREAD_H */
  32396. /* Define to 1 if you have the <pwd.h> header file. */
  32397. #define HAVE_PWD_H 1
  32398. /* Define to 1 if you have the `readdir_r' function. */
  32399. #define HAVE_READDIR_R 1
  32400. /* Define to 1 if you have the `readlink' function. */
  32401. #define HAVE_READLINK 1
  32402. /* Define to 1 if you have the `readlinkat' function. */
  32403. #define HAVE_READLINKAT 1
  32404. /* Define to 1 if you have the `readpassphrase' function. */
  32405. /* #undef HAVE_READPASSPHRASE */
  32406. /* Define to 1 if you have the <readpassphrase.h> header file. */
  32407. /* #undef HAVE_READPASSPHRASE_H */
  32408. /* Define to 1 if you have the <regex.h> header file. */
  32409. #define HAVE_REGEX_H 1
  32410. /* Define to 1 if you have the `select' function. */
  32411. #define HAVE_SELECT 1
  32412. /* Define to 1 if you have the `setenv' function. */
  32413. #define HAVE_SETENV 1
  32414. /* Define to 1 if you have the `setlocale' function. */
  32415. #define HAVE_SETLOCALE 1
  32416. /* Define to 1 if you have the `sigaction' function. */
  32417. #define HAVE_SIGACTION 1
  32418. /* Define to 1 if you have the <signal.h> header file. */
  32419. #define HAVE_SIGNAL_H 1
  32420. /* Define to 1 if you have the <spawn.h> header file. */
  32421. #define HAVE_SPAWN_H 1
  32422. /* Define to 1 if you have the `statfs' function. */
  32423. #define HAVE_STATFS 1
  32424. /* Define to 1 if you have the `statvfs' function. */
  32425. #define HAVE_STATVFS 1
  32426. /* Define to 1 if `stat' has the bug that it succeeds when given the
  32427. zero-length file name argument. */
  32428. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  32429. /* Define to 1 if you have the <stdarg.h> header file. */
  32430. #define HAVE_STDARG_H 1
  32431. /* Define to 1 if you have the <stdint.h> header file. */
  32432. #define HAVE_STDINT_H 1
  32433. /* Define to 1 if you have the <stdlib.h> header file. */
  32434. #define HAVE_STDLIB_H 1
  32435. /* Define to 1 if you have the `strchr' function. */
  32436. #define HAVE_STRCHR 1
  32437. /* Define to 1 if you have the `strdup' function. */
  32438. #define HAVE_STRDUP 1
  32439. /* Define to 1 if you have the `strerror' function. */
  32440. #define HAVE_STRERROR 1
  32441. /* Define to 1 if you have the `strerror_r' function. */
  32442. #define HAVE_STRERROR_R 1
  32443. /* Define to 1 if you have the `strftime' function. */
  32444. #define HAVE_STRFTIME 1
  32445. /* Define to 1 if you have the <strings.h> header file. */
  32446. #define HAVE_STRINGS_H 1
  32447. /* Define to 1 if you have the <string.h> header file. */
  32448. #define HAVE_STRING_H 1
  32449. /* Define to 1 if you have the `strrchr' function. */
  32450. #define HAVE_STRRCHR 1
  32451. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  32452. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  32453. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  32454. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  32455. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  32456. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  32457. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  32458. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  32459. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  32460. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  32461. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  32462. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  32463. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  32464. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  32465. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  32466. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  32467. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  32468. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  32469. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  32470. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  32471. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  32472. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  32473. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  32474. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  32475. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  32476. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  32477. /* Define to 1 if you have `struct vfsconf'. */
  32478. /* #undef HAVE_STRUCT_VFSCONF */
  32479. /* Define to 1 if you have `struct xvfsconf'. */
  32480. /* #undef HAVE_STRUCT_XVFSCONF */
  32481. /* Define to 1 if you have the `symlink' function. */
  32482. #define HAVE_SYMLINK 1
  32483. /* Define to 1 if you have the <sys/acl.h> header file. */
  32484. /* #undef HAVE_SYS_ACL_H */
  32485. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  32486. #define HAVE_SYS_CDEFS_H 1
  32487. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  32488. */
  32489. /* #undef HAVE_SYS_DIR_H */
  32490. /* Define to 1 if you have the <sys/ea.h> header file. */
  32491. /* #undef HAVE_SYS_EA_H */
  32492. /* Define to 1 if you have the <sys/extattr.h> header file. */
  32493. /* #undef HAVE_SYS_EXTATTR_H */
  32494. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  32495. #define HAVE_SYS_IOCTL_H 1
  32496. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  32497. /* #undef HAVE_SYS_MKDEV_H */
  32498. /* Define to 1 if you have the <sys/mount.h> header file. */
  32499. /* #undef HAVE_SYS_MOUNT_H */
  32500. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  32501. */
  32502. /* #undef HAVE_SYS_NDIR_H */
  32503. /* Define to 1 if you have the <sys/param.h> header file. */
  32504. #define HAVE_SYS_PARAM_H 1
  32505. /* Define to 1 if you have the <sys/poll.h> header file. */
  32506. #define HAVE_SYS_POLL_H 1
  32507. /* Define to 1 if you have the <sys/richacl.h> header file. */
  32508. /* #undef HAVE_SYS_RICHACL_H */
  32509. /* Define to 1 if you have the <sys/select.h> header file. */
  32510. #define HAVE_SYS_SELECT_H 1
  32511. /* Define to 1 if you have the <sys/statfs.h> header file. */
  32512. #define HAVE_SYS_STATFS_H 1
  32513. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  32514. #define HAVE_SYS_STATVFS_H 1
  32515. /* Define to 1 if you have the <sys/stat.h> header file. */
  32516. #define HAVE_SYS_STAT_H 1
  32517. /* Define to 1 if you have the <sys/time.h> header file. */
  32518. #define HAVE_SYS_TIME_H 1
  32519. /* Define to 1 if you have the <sys/types.h> header file. */
  32520. #define HAVE_SYS_TYPES_H 1
  32521. /* Define to 1 if you have the <sys/utime.h> header file. */
  32522. /* #undef HAVE_SYS_UTIME_H */
  32523. /* Define to 1 if you have the <sys/utsname.h> header file. */
  32524. #define HAVE_SYS_UTSNAME_H 1
  32525. /* Define to 1 if you have the <sys/vfs.h> header file. */
  32526. #define HAVE_SYS_VFS_H 1
  32527. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  32528. #define HAVE_SYS_WAIT_H 1
  32529. /* Define to 1 if you have the <sys/xattr.h> header file. */
  32530. #define HAVE_SYS_XATTR_H 1
  32531. /* Define to 1 if you have the `timegm' function. */
  32532. #define HAVE_TIMEGM 1
  32533. /* Define to 1 if you have the <time.h> header file. */
  32534. #define HAVE_TIME_H 1
  32535. /* Define to 1 if you have the `tzset' function. */
  32536. #define HAVE_TZSET 1
  32537. /* Define to 1 if you have the <unistd.h> header file. */
  32538. #define HAVE_UNISTD_H 1
  32539. /* Define to 1 if you have the `unsetenv' function. */
  32540. #define HAVE_UNSETENV 1
  32541. /* Define to 1 if the system has the type `unsigned long long'. */
  32542. /* #undef HAVE_UNSIGNED_LONG_LONG */
  32543. /* Define to 1 if the system has the type `unsigned long long int'. */
  32544. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  32545. /* Define to 1 if you have the `utime' function. */
  32546. #define HAVE_UTIME 1
  32547. /* Define to 1 if you have the `utimensat' function. */
  32548. #define HAVE_UTIMENSAT 1
  32549. /* Define to 1 if you have the `utimes' function. */
  32550. #define HAVE_UTIMES 1
  32551. /* Define to 1 if you have the <utime.h> header file. */
  32552. #define HAVE_UTIME_H 1
  32553. /* Define to 1 if you have the `vfork' function. */
  32554. #define HAVE_VFORK 1
  32555. /* Define to 1 if you have the `vprintf' function. */
  32556. #define HAVE_VPRINTF 1
  32557. /* Define to 1 if you have the <wchar.h> header file. */
  32558. #define HAVE_WCHAR_H 1
  32559. /* Define to 1 if the system has the type `wchar_t'. */
  32560. #define HAVE_WCHAR_T 1
  32561. /* Define to 1 if you have the `wcrtomb' function. */
  32562. #define HAVE_WCRTOMB 1
  32563. /* Define to 1 if you have the `wcscmp' function. */
  32564. #define HAVE_WCSCMP 1
  32565. /* Define to 1 if you have the `wcscpy' function. */
  32566. #define HAVE_WCSCPY 1
  32567. /* Define to 1 if you have the `wcslen' function. */
  32568. #define HAVE_WCSLEN 1
  32569. /* Define to 1 if you have the `wctomb' function. */
  32570. #define HAVE_WCTOMB 1
  32571. /* Define to 1 if you have the <wctype.h> header file. */
  32572. #define HAVE_WCTYPE_H 1
  32573. /* Define to 1 if you have the <wincrypt.h> header file. */
  32574. /* #undef HAVE_WINCRYPT_H */
  32575. /* Define to 1 if you have the <windows.h> header file. */
  32576. /* #undef HAVE_WINDOWS_H */
  32577. /* Define to 1 if you have the <winioctl.h> header file. */
  32578. /* #undef HAVE_WINIOCTL_H */
  32579. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  32580. /* #undef HAVE__CrtSetReportMode */
  32581. /* Define to 1 if you have the `wmemcmp' function. */
  32582. #define HAVE_WMEMCMP 1
  32583. /* Define to 1 if you have the `wmemcpy' function. */
  32584. #define HAVE_WMEMCPY 1
  32585. /* Define to 1 if you have the `wmemmove' function. */
  32586. #define HAVE_WMEMMOVE 1
  32587. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  32588. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  32589. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  32590. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  32591. /* Define to 1 if you have the <zlib.h> header file. */
  32592. #define HAVE_ZLIB_H 1
  32593. /* Define to 1 if you have the `_ctime64_s' function. */
  32594. /* #undef HAVE__CTIME64_S */
  32595. /* Define to 1 if you have the `_fseeki64' function. */
  32596. /* #undef HAVE__FSEEKI64 */
  32597. /* Define to 1 if you have the `_get_timezone' function. */
  32598. /* #undef HAVE__GET_TIMEZONE */
  32599. /* Define to 1 if you have the `_localtime64_s' function. */
  32600. /* #undef HAVE__LOCALTIME64_S */
  32601. /* Define to 1 if you have the `_mkgmtime64' function. */
  32602. /* #undef HAVE__MKGMTIME64 */
  32603. /* Define as const if the declaration of iconv() needs const. */
  32604. #define ICONV_CONST
  32605. /* Version number of libarchive as a single integer */
  32606. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  32607. /* Version number of libarchive */
  32608. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  32609. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  32610. slash. */
  32611. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  32612. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  32613. */
  32614. /* #undef MAJOR_IN_MKDEV */
  32615. /* Define to 1 if `major', `minor', and `makedev' are declared in
  32616. <sysmacros.h>. */
  32617. #define MAJOR_IN_SYSMACROS 1
  32618. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  32619. /* #undef NO_MINUS_C_MINUS_O */
  32620. /* The size of `wchar_t', as computed by sizeof. */
  32621. #define SIZEOF_WCHAR_T 4
  32622. /* Define to 1 if strerror_r returns char *. */
  32623. /* #undef STRERROR_R_CHAR_P */
  32624. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  32625. #define TIME_WITH_SYS_TIME 1
  32626. /*
  32627. * Some platform requires a macro to use extension functions.
  32628. */
  32629. #define SAFE_TO_DEFINE_EXTENSIONS 1
  32630. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  32631. /* Enable extensions on AIX 3, Interix. */
  32632. #ifndef _ALL_SOURCE
  32633. # define _ALL_SOURCE 1
  32634. #endif
  32635. /* Enable GNU extensions on systems that have them. */
  32636. #ifndef _GNU_SOURCE
  32637. # define _GNU_SOURCE 1
  32638. #endif
  32639. /* Enable threading extensions on Solaris. */
  32640. #ifndef _POSIX_PTHREAD_SEMANTICS
  32641. # define _POSIX_PTHREAD_SEMANTICS 1
  32642. #endif
  32643. /* Enable extensions on HP NonStop. */
  32644. #ifndef _TANDEM_SOURCE
  32645. # define _TANDEM_SOURCE 1
  32646. #endif
  32647. /* Enable general extensions on Solaris. */
  32648. #ifndef __EXTENSIONS__
  32649. # define __EXTENSIONS__ 1
  32650. #endif
  32651. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  32652. /* Version number of package */
  32653. #define VERSION "3.3.2"
  32654. /* Number of bits in a file offset, on hosts where this is settable. */
  32655. /* #undef _FILE_OFFSET_BITS */
  32656. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  32657. /* #undef _LARGEFILE_SOURCE */
  32658. /* Define for large files, on AIX-style hosts. */
  32659. /* #undef _LARGE_FILES */
  32660. /* Define to control Windows SDK version */
  32661. #ifndef NTDDI_VERSION
  32662. /* #undef NTDDI_VERSION */
  32663. #endif // NTDDI_VERSION
  32664. #ifndef _WIN32_WINNT
  32665. /* #undef _WIN32_WINNT */
  32666. #endif // _WIN32_WINNT
  32667. #ifndef WINVER
  32668. /* #undef WINVER */
  32669. #endif // WINVER
  32670. /* Define to empty if `const' does not conform to ANSI C. */
  32671. /* #undef const */
  32672. /* Define to `int' if <sys/types.h> doesn't define. */
  32673. /* #undef gid_t */
  32674. /* Define to `unsigned long' if <sys/types.h> does not define. */
  32675. /* #undef id_t */
  32676. /* Define to `int' if <sys/types.h> does not define. */
  32677. /* #undef mode_t */
  32678. /* Define to `long long' if <sys/types.h> does not define. */
  32679. /* #undef off_t */
  32680. /* Define to `int' if <sys/types.h> doesn't define. */
  32681. /* #undef pid_t */
  32682. /* Define to `unsigned int' if <sys/types.h> does not define. */
  32683. /* #undef size_t */
  32684. /* Define to `int' if <sys/types.h> does not define. */
  32685. /* #undef ssize_t */
  32686. /* Define to `int' if <sys/types.h> doesn't define. */
  32687. /* #undef uid_t */
  32688. /* Define to `int' if <sys/types.h> does not define. */
  32689. /* #undef intptr_t */
  32690. /* Define to `unsigned int' if <sys/types.h> does not define. */
  32691. /* #undef uintptr_t */
  32692. #define ARCHIVE_SHA512_COMPILE_TEST
  32693. #define ARCHIVE_CRYPTO_SHA512_LIBC3
  32694. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  32695. /*-
  32696. * Copyright (c) 2003-2007 Tim Kientzle
  32697. * Copyright (c) 2011 Andres Mejia
  32698. * Copyright (c) 2011 Michihiro NAKAJIMA
  32699. * All rights reserved.
  32700. *
  32701. * Redistribution and use in source and binary forms, with or without
  32702. * modification, are permitted provided that the following conditions
  32703. * are met:
  32704. * 1. Redistributions of source code must retain the above copyright
  32705. * notice, this list of conditions and the following disclaimer.
  32706. * 2. Redistributions in binary form must reproduce the above copyright
  32707. * notice, this list of conditions and the following disclaimer in the
  32708. * documentation and/or other materials provided with the distribution.
  32709. *
  32710. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  32711. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  32712. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  32713. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  32714. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  32715. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  32716. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  32717. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  32718. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  32719. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32720. */
  32721. #include "archive_platform.h"
  32722. #include "archive.h"
  32723. #include "archive_digest_private.h"
  32724. /* In particular, force the configure probe to break if it tries
  32725. * to test a combination of OpenSSL and libmd. */
  32726. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  32727. #error Cannot use both OpenSSL and libmd.
  32728. #endif
  32729. /*
  32730. * Message digest functions for Windows platform.
  32731. */
  32732. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  32733. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  32734. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  32735. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  32736. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  32737. /*
  32738. * Initialize a Message digest.
  32739. */
  32740. static int
  32741. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  32742. {
  32743. ctx->valid = 0;
  32744. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  32745. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  32746. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  32747. return (ARCHIVE_FAILED);
  32748. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  32749. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  32750. return (ARCHIVE_FAILED);
  32751. }
  32752. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  32753. CryptReleaseContext(ctx->cryptProv, 0);
  32754. return (ARCHIVE_FAILED);
  32755. }
  32756. ctx->valid = 1;
  32757. return (ARCHIVE_OK);
  32758. }
  32759. /*
  32760. * Update a Message digest.
  32761. */
  32762. static int
  32763. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  32764. {
  32765. if (!ctx->valid)
  32766. return (ARCHIVE_FAILED);
  32767. CryptHashData(ctx->hash,
  32768. (unsigned char *)(uintptr_t)buf,
  32769. (DWORD)len, 0);
  32770. return (ARCHIVE_OK);
  32771. }
  32772. static int
  32773. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  32774. {
  32775. DWORD siglen = (DWORD)bufsize;
  32776. if (!ctx->valid)
  32777. return (ARCHIVE_FAILED);
  32778. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  32779. CryptDestroyHash(ctx->hash);
  32780. CryptReleaseContext(ctx->cryptProv, 0);
  32781. ctx->valid = 0;
  32782. return (ARCHIVE_OK);
  32783. }
  32784. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  32785. /* MD5 implementations */
  32786. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  32787. static int
  32788. __archive_libc_md5init(archive_md5_ctx *ctx)
  32789. {
  32790. MD5Init(ctx);
  32791. return (ARCHIVE_OK);
  32792. }
  32793. static int
  32794. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  32795. size_t insize)
  32796. {
  32797. MD5Update(ctx, indata, insize);
  32798. return (ARCHIVE_OK);
  32799. }
  32800. static int
  32801. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  32802. {
  32803. MD5Final(md, ctx);
  32804. return (ARCHIVE_OK);
  32805. }
  32806. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  32807. static int
  32808. __archive_libmd_md5init(archive_md5_ctx *ctx)
  32809. {
  32810. MD5Init(ctx);
  32811. return (ARCHIVE_OK);
  32812. }
  32813. static int
  32814. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  32815. size_t insize)
  32816. {
  32817. MD5Update(ctx, indata, insize);
  32818. return (ARCHIVE_OK);
  32819. }
  32820. static int
  32821. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  32822. {
  32823. MD5Final(md, ctx);
  32824. return (ARCHIVE_OK);
  32825. }
  32826. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  32827. static int
  32828. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  32829. {
  32830. CC_MD5_Init(ctx);
  32831. return (ARCHIVE_OK);
  32832. }
  32833. static int
  32834. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  32835. size_t insize)
  32836. {
  32837. CC_MD5_Update(ctx, indata, insize);
  32838. return (ARCHIVE_OK);
  32839. }
  32840. static int
  32841. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  32842. {
  32843. CC_MD5_Final(md, ctx);
  32844. return (ARCHIVE_OK);
  32845. }
  32846. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  32847. static int
  32848. __archive_nettle_md5init(archive_md5_ctx *ctx)
  32849. {
  32850. md5_init(ctx);
  32851. return (ARCHIVE_OK);
  32852. }
  32853. static int
  32854. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  32855. size_t insize)
  32856. {
  32857. md5_update(ctx, insize, indata);
  32858. return (ARCHIVE_OK);
  32859. }
  32860. static int
  32861. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  32862. {
  32863. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  32864. return (ARCHIVE_OK);
  32865. }
  32866. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  32867. static int
  32868. __archive_openssl_md5init(archive_md5_ctx *ctx)
  32869. {
  32870. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  32871. return (ARCHIVE_FAILED);
  32872. EVP_DigestInit(*ctx, EVP_md5());
  32873. return (ARCHIVE_OK);
  32874. }
  32875. static int
  32876. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  32877. size_t insize)
  32878. {
  32879. EVP_DigestUpdate(*ctx, indata, insize);
  32880. return (ARCHIVE_OK);
  32881. }
  32882. static int
  32883. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  32884. {
  32885. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  32886. * this is meant to cope with that. Real fix is probably to fix
  32887. * archive_write_set_format_xar.c
  32888. */
  32889. if (*ctx) {
  32890. EVP_DigestFinal(*ctx, md, NULL);
  32891. EVP_MD_CTX_free(*ctx);
  32892. *ctx = NULL;
  32893. }
  32894. return (ARCHIVE_OK);
  32895. }
  32896. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  32897. static int
  32898. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  32899. {
  32900. return (win_crypto_init(ctx, CALG_MD5));
  32901. }
  32902. static int
  32903. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  32904. size_t insize)
  32905. {
  32906. return (win_crypto_Update(ctx, indata, insize));
  32907. }
  32908. static int
  32909. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  32910. {
  32911. return (win_crypto_Final(md, 16, ctx));
  32912. }
  32913. #else
  32914. static int
  32915. __archive_stub_md5init(archive_md5_ctx *ctx)
  32916. {
  32917. (void)ctx; /* UNUSED */
  32918. return (ARCHIVE_FAILED);
  32919. }
  32920. static int
  32921. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  32922. size_t insize)
  32923. {
  32924. (void)ctx; /* UNUSED */
  32925. (void)indata; /* UNUSED */
  32926. (void)insize; /* UNUSED */
  32927. return (ARCHIVE_FAILED);
  32928. }
  32929. static int
  32930. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  32931. {
  32932. (void)ctx; /* UNUSED */
  32933. (void)md; /* UNUSED */
  32934. return (ARCHIVE_FAILED);
  32935. }
  32936. #endif
  32937. /* RIPEMD160 implementations */
  32938. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  32939. static int
  32940. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  32941. {
  32942. RMD160Init(ctx);
  32943. return (ARCHIVE_OK);
  32944. }
  32945. static int
  32946. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  32947. size_t insize)
  32948. {
  32949. RMD160Update(ctx, indata, insize);
  32950. return (ARCHIVE_OK);
  32951. }
  32952. static int
  32953. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  32954. {
  32955. RMD160Final(md, ctx);
  32956. return (ARCHIVE_OK);
  32957. }
  32958. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  32959. static int
  32960. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  32961. {
  32962. RIPEMD160_Init(ctx);
  32963. return (ARCHIVE_OK);
  32964. }
  32965. static int
  32966. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  32967. size_t insize)
  32968. {
  32969. RIPEMD160_Update(ctx, indata, insize);
  32970. return (ARCHIVE_OK);
  32971. }
  32972. static int
  32973. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  32974. {
  32975. RIPEMD160_Final(md, ctx);
  32976. return (ARCHIVE_OK);
  32977. }
  32978. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  32979. static int
  32980. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  32981. {
  32982. ripemd160_init(ctx);
  32983. return (ARCHIVE_OK);
  32984. }
  32985. static int
  32986. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  32987. size_t insize)
  32988. {
  32989. ripemd160_update(ctx, insize, indata);
  32990. return (ARCHIVE_OK);
  32991. }
  32992. static int
  32993. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  32994. {
  32995. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  32996. return (ARCHIVE_OK);
  32997. }
  32998. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  32999. static int
  33000. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  33001. {
  33002. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  33003. return (ARCHIVE_FAILED);
  33004. EVP_DigestInit(*ctx, EVP_ripemd160());
  33005. return (ARCHIVE_OK);
  33006. }
  33007. static int
  33008. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  33009. size_t insize)
  33010. {
  33011. EVP_DigestUpdate(*ctx, indata, insize);
  33012. return (ARCHIVE_OK);
  33013. }
  33014. static int
  33015. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  33016. {
  33017. if (*ctx) {
  33018. EVP_DigestFinal(*ctx, md, NULL);
  33019. EVP_MD_CTX_free(*ctx);
  33020. *ctx = NULL;
  33021. }
  33022. return (ARCHIVE_OK);
  33023. }
  33024. #else
  33025. static int
  33026. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  33027. {
  33028. (void)ctx; /* UNUSED */
  33029. return (ARCHIVE_FAILED);
  33030. }
  33031. static int
  33032. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  33033. size_t insize)
  33034. {
  33035. (void)ctx; /* UNUSED */
  33036. (void)indata; /* UNUSED */
  33037. (void)insize; /* UNUSED */
  33038. return (ARCHIVE_FAILED);
  33039. }
  33040. static int
  33041. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  33042. {
  33043. (void)ctx; /* UNUSED */
  33044. (void)md; /* UNUSED */
  33045. return (ARCHIVE_FAILED);
  33046. }
  33047. #endif
  33048. /* SHA1 implementations */
  33049. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  33050. static int
  33051. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  33052. {
  33053. SHA1Init(ctx);
  33054. return (ARCHIVE_OK);
  33055. }
  33056. static int
  33057. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  33058. size_t insize)
  33059. {
  33060. SHA1Update(ctx, indata, insize);
  33061. return (ARCHIVE_OK);
  33062. }
  33063. static int
  33064. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  33065. {
  33066. SHA1Final(md, ctx);
  33067. return (ARCHIVE_OK);
  33068. }
  33069. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  33070. static int
  33071. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  33072. {
  33073. SHA1_Init(ctx);
  33074. return (ARCHIVE_OK);
  33075. }
  33076. static int
  33077. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  33078. size_t insize)
  33079. {
  33080. SHA1_Update(ctx, indata, insize);
  33081. return (ARCHIVE_OK);
  33082. }
  33083. static int
  33084. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  33085. {
  33086. SHA1_Final(md, ctx);
  33087. return (ARCHIVE_OK);
  33088. }
  33089. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  33090. static int
  33091. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  33092. {
  33093. CC_SHA1_Init(ctx);
  33094. return (ARCHIVE_OK);
  33095. }
  33096. static int
  33097. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  33098. size_t insize)
  33099. {
  33100. CC_SHA1_Update(ctx, indata, insize);
  33101. return (ARCHIVE_OK);
  33102. }
  33103. static int
  33104. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  33105. {
  33106. CC_SHA1_Final(md, ctx);
  33107. return (ARCHIVE_OK);
  33108. }
  33109. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  33110. static int
  33111. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  33112. {
  33113. sha1_init(ctx);
  33114. return (ARCHIVE_OK);
  33115. }
  33116. static int
  33117. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  33118. size_t insize)
  33119. {
  33120. sha1_update(ctx, insize, indata);
  33121. return (ARCHIVE_OK);
  33122. }
  33123. static int
  33124. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  33125. {
  33126. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  33127. return (ARCHIVE_OK);
  33128. }
  33129. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  33130. static int
  33131. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  33132. {
  33133. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  33134. return (ARCHIVE_FAILED);
  33135. EVP_DigestInit(*ctx, EVP_sha1());
  33136. return (ARCHIVE_OK);
  33137. }
  33138. static int
  33139. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  33140. size_t insize)
  33141. {
  33142. EVP_DigestUpdate(*ctx, indata, insize);
  33143. return (ARCHIVE_OK);
  33144. }
  33145. static int
  33146. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  33147. {
  33148. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  33149. * this is meant to cope with that. Real fix is probably to fix
  33150. * archive_write_set_format_xar.c
  33151. */
  33152. if (*ctx) {
  33153. EVP_DigestFinal(*ctx, md, NULL);
  33154. EVP_MD_CTX_free(*ctx);
  33155. *ctx = NULL;
  33156. }
  33157. return (ARCHIVE_OK);
  33158. }
  33159. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  33160. static int
  33161. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  33162. {
  33163. return (win_crypto_init(ctx, CALG_SHA1));
  33164. }
  33165. static int
  33166. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  33167. size_t insize)
  33168. {
  33169. return (win_crypto_Update(ctx, indata, insize));
  33170. }
  33171. static int
  33172. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  33173. {
  33174. return (win_crypto_Final(md, 20, ctx));
  33175. }
  33176. #else
  33177. static int
  33178. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  33179. {
  33180. (void)ctx; /* UNUSED */
  33181. return (ARCHIVE_FAILED);
  33182. }
  33183. static int
  33184. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  33185. size_t insize)
  33186. {
  33187. (void)ctx; /* UNUSED */
  33188. (void)indata; /* UNUSED */
  33189. (void)insize; /* UNUSED */
  33190. return (ARCHIVE_FAILED);
  33191. }
  33192. static int
  33193. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  33194. {
  33195. (void)ctx; /* UNUSED */
  33196. (void)md; /* UNUSED */
  33197. return (ARCHIVE_FAILED);
  33198. }
  33199. #endif
  33200. /* SHA256 implementations */
  33201. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  33202. static int
  33203. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  33204. {
  33205. SHA256_Init(ctx);
  33206. return (ARCHIVE_OK);
  33207. }
  33208. static int
  33209. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  33210. size_t insize)
  33211. {
  33212. SHA256_Update(ctx, indata, insize);
  33213. return (ARCHIVE_OK);
  33214. }
  33215. static int
  33216. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  33217. {
  33218. SHA256_Final(md, ctx);
  33219. return (ARCHIVE_OK);
  33220. }
  33221. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  33222. static int
  33223. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  33224. {
  33225. SHA256Init(ctx);
  33226. return (ARCHIVE_OK);
  33227. }
  33228. static int
  33229. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  33230. size_t insize)
  33231. {
  33232. SHA256Update(ctx, indata, insize);
  33233. return (ARCHIVE_OK);
  33234. }
  33235. static int
  33236. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  33237. {
  33238. SHA256Final(md, ctx);
  33239. return (ARCHIVE_OK);
  33240. }
  33241. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  33242. static int
  33243. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  33244. {
  33245. SHA256Init(ctx);
  33246. return (ARCHIVE_OK);
  33247. }
  33248. static int
  33249. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  33250. size_t insize)
  33251. {
  33252. SHA256Update(ctx, indata, insize);
  33253. return (ARCHIVE_OK);
  33254. }
  33255. static int
  33256. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  33257. {
  33258. SHA256Final(md, ctx);
  33259. return (ARCHIVE_OK);
  33260. }
  33261. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  33262. static int
  33263. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  33264. {
  33265. SHA256_Init(ctx);
  33266. return (ARCHIVE_OK);
  33267. }
  33268. static int
  33269. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  33270. size_t insize)
  33271. {
  33272. SHA256_Update(ctx, indata, insize);
  33273. return (ARCHIVE_OK);
  33274. }
  33275. static int
  33276. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  33277. {
  33278. SHA256_Final(md, ctx);
  33279. return (ARCHIVE_OK);
  33280. }
  33281. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  33282. static int
  33283. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  33284. {
  33285. CC_SHA256_Init(ctx);
  33286. return (ARCHIVE_OK);
  33287. }
  33288. static int
  33289. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  33290. size_t insize)
  33291. {
  33292. CC_SHA256_Update(ctx, indata, insize);
  33293. return (ARCHIVE_OK);
  33294. }
  33295. static int
  33296. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  33297. {
  33298. CC_SHA256_Final(md, ctx);
  33299. return (ARCHIVE_OK);
  33300. }
  33301. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  33302. static int
  33303. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  33304. {
  33305. sha256_init(ctx);
  33306. return (ARCHIVE_OK);
  33307. }
  33308. static int
  33309. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  33310. size_t insize)
  33311. {
  33312. sha256_update(ctx, insize, indata);
  33313. return (ARCHIVE_OK);
  33314. }
  33315. static int
  33316. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  33317. {
  33318. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  33319. return (ARCHIVE_OK);
  33320. }
  33321. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  33322. static int
  33323. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  33324. {
  33325. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  33326. return (ARCHIVE_FAILED);
  33327. EVP_DigestInit(*ctx, EVP_sha256());
  33328. return (ARCHIVE_OK);
  33329. }
  33330. static int
  33331. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  33332. size_t insize)
  33333. {
  33334. EVP_DigestUpdate(*ctx, indata, insize);
  33335. return (ARCHIVE_OK);
  33336. }
  33337. static int
  33338. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  33339. {
  33340. if (*ctx) {
  33341. EVP_DigestFinal(*ctx, md, NULL);
  33342. EVP_MD_CTX_free(*ctx);
  33343. *ctx = NULL;
  33344. }
  33345. return (ARCHIVE_OK);
  33346. }
  33347. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  33348. static int
  33349. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  33350. {
  33351. return (win_crypto_init(ctx, CALG_SHA_256));
  33352. }
  33353. static int
  33354. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  33355. size_t insize)
  33356. {
  33357. return (win_crypto_Update(ctx, indata, insize));
  33358. }
  33359. static int
  33360. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  33361. {
  33362. return (win_crypto_Final(md, 32, ctx));
  33363. }
  33364. #else
  33365. static int
  33366. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  33367. {
  33368. (void)ctx; /* UNUSED */
  33369. return (ARCHIVE_FAILED);
  33370. }
  33371. static int
  33372. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  33373. size_t insize)
  33374. {
  33375. (void)ctx; /* UNUSED */
  33376. (void)indata; /* UNUSED */
  33377. (void)insize; /* UNUSED */
  33378. return (ARCHIVE_FAILED);
  33379. }
  33380. static int
  33381. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  33382. {
  33383. (void)ctx; /* UNUSED */
  33384. (void)md; /* UNUSED */
  33385. return (ARCHIVE_FAILED);
  33386. }
  33387. #endif
  33388. /* SHA384 implementations */
  33389. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  33390. static int
  33391. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  33392. {
  33393. SHA384_Init(ctx);
  33394. return (ARCHIVE_OK);
  33395. }
  33396. static int
  33397. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  33398. size_t insize)
  33399. {
  33400. SHA384_Update(ctx, indata, insize);
  33401. return (ARCHIVE_OK);
  33402. }
  33403. static int
  33404. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  33405. {
  33406. SHA384_Final(md, ctx);
  33407. return (ARCHIVE_OK);
  33408. }
  33409. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  33410. static int
  33411. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  33412. {
  33413. SHA384Init(ctx);
  33414. return (ARCHIVE_OK);
  33415. }
  33416. static int
  33417. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  33418. size_t insize)
  33419. {
  33420. SHA384Update(ctx, indata, insize);
  33421. return (ARCHIVE_OK);
  33422. }
  33423. static int
  33424. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  33425. {
  33426. SHA384Final(md, ctx);
  33427. return (ARCHIVE_OK);
  33428. }
  33429. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  33430. static int
  33431. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  33432. {
  33433. SHA384Init(ctx);
  33434. return (ARCHIVE_OK);
  33435. }
  33436. static int
  33437. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  33438. size_t insize)
  33439. {
  33440. SHA384Update(ctx, indata, insize);
  33441. return (ARCHIVE_OK);
  33442. }
  33443. static int
  33444. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  33445. {
  33446. SHA384Final(md, ctx);
  33447. return (ARCHIVE_OK);
  33448. }
  33449. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  33450. static int
  33451. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  33452. {
  33453. CC_SHA384_Init(ctx);
  33454. return (ARCHIVE_OK);
  33455. }
  33456. static int
  33457. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  33458. size_t insize)
  33459. {
  33460. CC_SHA384_Update(ctx, indata, insize);
  33461. return (ARCHIVE_OK);
  33462. }
  33463. static int
  33464. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  33465. {
  33466. CC_SHA384_Final(md, ctx);
  33467. return (ARCHIVE_OK);
  33468. }
  33469. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  33470. static int
  33471. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  33472. {
  33473. sha384_init(ctx);
  33474. return (ARCHIVE_OK);
  33475. }
  33476. static int
  33477. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  33478. size_t insize)
  33479. {
  33480. sha384_update(ctx, insize, indata);
  33481. return (ARCHIVE_OK);
  33482. }
  33483. static int
  33484. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  33485. {
  33486. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  33487. return (ARCHIVE_OK);
  33488. }
  33489. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  33490. static int
  33491. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  33492. {
  33493. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  33494. return (ARCHIVE_FAILED);
  33495. EVP_DigestInit(*ctx, EVP_sha384());
  33496. return (ARCHIVE_OK);
  33497. }
  33498. static int
  33499. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  33500. size_t insize)
  33501. {
  33502. EVP_DigestUpdate(*ctx, indata, insize);
  33503. return (ARCHIVE_OK);
  33504. }
  33505. static int
  33506. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  33507. {
  33508. if (*ctx) {
  33509. EVP_DigestFinal(*ctx, md, NULL);
  33510. EVP_MD_CTX_free(*ctx);
  33511. *ctx = NULL;
  33512. }
  33513. return (ARCHIVE_OK);
  33514. }
  33515. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  33516. static int
  33517. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  33518. {
  33519. return (win_crypto_init(ctx, CALG_SHA_384));
  33520. }
  33521. static int
  33522. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  33523. size_t insize)
  33524. {
  33525. return (win_crypto_Update(ctx, indata, insize));
  33526. }
  33527. static int
  33528. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  33529. {
  33530. return (win_crypto_Final(md, 48, ctx));
  33531. }
  33532. #else
  33533. static int
  33534. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  33535. {
  33536. (void)ctx; /* UNUSED */
  33537. return (ARCHIVE_FAILED);
  33538. }
  33539. static int
  33540. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  33541. size_t insize)
  33542. {
  33543. (void)ctx; /* UNUSED */
  33544. (void)indata; /* UNUSED */
  33545. (void)insize; /* UNUSED */
  33546. return (ARCHIVE_FAILED);
  33547. }
  33548. static int
  33549. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  33550. {
  33551. (void)ctx; /* UNUSED */
  33552. (void)md; /* UNUSED */
  33553. return (ARCHIVE_FAILED);
  33554. }
  33555. #endif
  33556. /* SHA512 implementations */
  33557. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  33558. static int
  33559. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  33560. {
  33561. SHA512_Init(ctx);
  33562. return (ARCHIVE_OK);
  33563. }
  33564. static int
  33565. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  33566. size_t insize)
  33567. {
  33568. SHA512_Update(ctx, indata, insize);
  33569. return (ARCHIVE_OK);
  33570. }
  33571. static int
  33572. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  33573. {
  33574. SHA512_Final(md, ctx);
  33575. return (ARCHIVE_OK);
  33576. }
  33577. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  33578. static int
  33579. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  33580. {
  33581. SHA512Init(ctx);
  33582. return (ARCHIVE_OK);
  33583. }
  33584. static int
  33585. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  33586. size_t insize)
  33587. {
  33588. SHA512Update(ctx, indata, insize);
  33589. return (ARCHIVE_OK);
  33590. }
  33591. static int
  33592. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  33593. {
  33594. SHA512Final(md, ctx);
  33595. return (ARCHIVE_OK);
  33596. }
  33597. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  33598. static int
  33599. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  33600. {
  33601. SHA512Init(ctx);
  33602. return (ARCHIVE_OK);
  33603. }
  33604. static int
  33605. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  33606. size_t insize)
  33607. {
  33608. SHA512Update(ctx, indata, insize);
  33609. return (ARCHIVE_OK);
  33610. }
  33611. static int
  33612. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  33613. {
  33614. SHA512Final(md, ctx);
  33615. return (ARCHIVE_OK);
  33616. }
  33617. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  33618. static int
  33619. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  33620. {
  33621. SHA512_Init(ctx);
  33622. return (ARCHIVE_OK);
  33623. }
  33624. static int
  33625. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  33626. size_t insize)
  33627. {
  33628. SHA512_Update(ctx, indata, insize);
  33629. return (ARCHIVE_OK);
  33630. }
  33631. static int
  33632. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  33633. {
  33634. SHA512_Final(md, ctx);
  33635. return (ARCHIVE_OK);
  33636. }
  33637. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  33638. static int
  33639. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  33640. {
  33641. CC_SHA512_Init(ctx);
  33642. return (ARCHIVE_OK);
  33643. }
  33644. static int
  33645. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  33646. size_t insize)
  33647. {
  33648. CC_SHA512_Update(ctx, indata, insize);
  33649. return (ARCHIVE_OK);
  33650. }
  33651. static int
  33652. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  33653. {
  33654. CC_SHA512_Final(md, ctx);
  33655. return (ARCHIVE_OK);
  33656. }
  33657. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  33658. static int
  33659. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  33660. {
  33661. sha512_init(ctx);
  33662. return (ARCHIVE_OK);
  33663. }
  33664. static int
  33665. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  33666. size_t insize)
  33667. {
  33668. sha512_update(ctx, insize, indata);
  33669. return (ARCHIVE_OK);
  33670. }
  33671. static int
  33672. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  33673. {
  33674. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  33675. return (ARCHIVE_OK);
  33676. }
  33677. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  33678. static int
  33679. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  33680. {
  33681. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  33682. return (ARCHIVE_FAILED);
  33683. EVP_DigestInit(*ctx, EVP_sha512());
  33684. return (ARCHIVE_OK);
  33685. }
  33686. static int
  33687. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  33688. size_t insize)
  33689. {
  33690. EVP_DigestUpdate(*ctx, indata, insize);
  33691. return (ARCHIVE_OK);
  33692. }
  33693. static int
  33694. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  33695. {
  33696. if (*ctx) {
  33697. EVP_DigestFinal(*ctx, md, NULL);
  33698. EVP_MD_CTX_free(*ctx);
  33699. *ctx = NULL;
  33700. }
  33701. return (ARCHIVE_OK);
  33702. }
  33703. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  33704. static int
  33705. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  33706. {
  33707. return (win_crypto_init(ctx, CALG_SHA_512));
  33708. }
  33709. static int
  33710. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  33711. size_t insize)
  33712. {
  33713. return (win_crypto_Update(ctx, indata, insize));
  33714. }
  33715. static int
  33716. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  33717. {
  33718. return (win_crypto_Final(md, 64, ctx));
  33719. }
  33720. #else
  33721. static int
  33722. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  33723. {
  33724. (void)ctx; /* UNUSED */
  33725. return (ARCHIVE_FAILED);
  33726. }
  33727. static int
  33728. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  33729. size_t insize)
  33730. {
  33731. (void)ctx; /* UNUSED */
  33732. (void)indata; /* UNUSED */
  33733. (void)insize; /* UNUSED */
  33734. return (ARCHIVE_FAILED);
  33735. }
  33736. static int
  33737. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  33738. {
  33739. (void)ctx; /* UNUSED */
  33740. (void)md; /* UNUSED */
  33741. return (ARCHIVE_FAILED);
  33742. }
  33743. #endif
  33744. /* NOTE: Message Digest functions are set based on availability and by the
  33745. * following order of preference.
  33746. * 1. libc
  33747. * 2. libc2
  33748. * 3. libc3
  33749. * 4. libSystem
  33750. * 5. Nettle
  33751. * 6. OpenSSL
  33752. * 7. libmd
  33753. * 8. Windows API
  33754. */
  33755. const struct archive_digest __archive_digest =
  33756. {
  33757. /* MD5 */
  33758. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  33759. &__archive_libc_md5init,
  33760. &__archive_libc_md5update,
  33761. &__archive_libc_md5final,
  33762. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  33763. &__archive_libmd_md5init,
  33764. &__archive_libmd_md5update,
  33765. &__archive_libmd_md5final,
  33766. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  33767. &__archive_libsystem_md5init,
  33768. &__archive_libsystem_md5update,
  33769. &__archive_libsystem_md5final,
  33770. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  33771. &__archive_nettle_md5init,
  33772. &__archive_nettle_md5update,
  33773. &__archive_nettle_md5final,
  33774. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  33775. &__archive_openssl_md5init,
  33776. &__archive_openssl_md5update,
  33777. &__archive_openssl_md5final,
  33778. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  33779. &__archive_windowsapi_md5init,
  33780. &__archive_windowsapi_md5update,
  33781. &__archive_windowsapi_md5final,
  33782. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  33783. &__archive_stub_md5init,
  33784. &__archive_stub_md5update,
  33785. &__archive_stub_md5final,
  33786. #endif
  33787. /* RIPEMD160 */
  33788. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  33789. &__archive_libc_ripemd160init,
  33790. &__archive_libc_ripemd160update,
  33791. &__archive_libc_ripemd160final,
  33792. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  33793. &__archive_libmd_ripemd160init,
  33794. &__archive_libmd_ripemd160update,
  33795. &__archive_libmd_ripemd160final,
  33796. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  33797. &__archive_nettle_ripemd160init,
  33798. &__archive_nettle_ripemd160update,
  33799. &__archive_nettle_ripemd160final,
  33800. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  33801. &__archive_openssl_ripemd160init,
  33802. &__archive_openssl_ripemd160update,
  33803. &__archive_openssl_ripemd160final,
  33804. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  33805. &__archive_stub_ripemd160init,
  33806. &__archive_stub_ripemd160update,
  33807. &__archive_stub_ripemd160final,
  33808. #endif
  33809. /* SHA1 */
  33810. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  33811. &__archive_libc_sha1init,
  33812. &__archive_libc_sha1update,
  33813. &__archive_libc_sha1final,
  33814. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  33815. &__archive_libmd_sha1init,
  33816. &__archive_libmd_sha1update,
  33817. &__archive_libmd_sha1final,
  33818. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  33819. &__archive_libsystem_sha1init,
  33820. &__archive_libsystem_sha1update,
  33821. &__archive_libsystem_sha1final,
  33822. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  33823. &__archive_nettle_sha1init,
  33824. &__archive_nettle_sha1update,
  33825. &__archive_nettle_sha1final,
  33826. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  33827. &__archive_openssl_sha1init,
  33828. &__archive_openssl_sha1update,
  33829. &__archive_openssl_sha1final,
  33830. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  33831. &__archive_windowsapi_sha1init,
  33832. &__archive_windowsapi_sha1update,
  33833. &__archive_windowsapi_sha1final,
  33834. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  33835. &__archive_stub_sha1init,
  33836. &__archive_stub_sha1update,
  33837. &__archive_stub_sha1final,
  33838. #endif
  33839. /* SHA256 */
  33840. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  33841. &__archive_libc_sha256init,
  33842. &__archive_libc_sha256update,
  33843. &__archive_libc_sha256final,
  33844. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  33845. &__archive_libc2_sha256init,
  33846. &__archive_libc2_sha256update,
  33847. &__archive_libc2_sha256final,
  33848. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  33849. &__archive_libc3_sha256init,
  33850. &__archive_libc3_sha256update,
  33851. &__archive_libc3_sha256final,
  33852. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  33853. &__archive_libmd_sha256init,
  33854. &__archive_libmd_sha256update,
  33855. &__archive_libmd_sha256final,
  33856. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  33857. &__archive_libsystem_sha256init,
  33858. &__archive_libsystem_sha256update,
  33859. &__archive_libsystem_sha256final,
  33860. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  33861. &__archive_nettle_sha256init,
  33862. &__archive_nettle_sha256update,
  33863. &__archive_nettle_sha256final,
  33864. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  33865. &__archive_openssl_sha256init,
  33866. &__archive_openssl_sha256update,
  33867. &__archive_openssl_sha256final,
  33868. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  33869. &__archive_windowsapi_sha256init,
  33870. &__archive_windowsapi_sha256update,
  33871. &__archive_windowsapi_sha256final,
  33872. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  33873. &__archive_stub_sha256init,
  33874. &__archive_stub_sha256update,
  33875. &__archive_stub_sha256final,
  33876. #endif
  33877. /* SHA384 */
  33878. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  33879. &__archive_libc_sha384init,
  33880. &__archive_libc_sha384update,
  33881. &__archive_libc_sha384final,
  33882. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  33883. &__archive_libc2_sha384init,
  33884. &__archive_libc2_sha384update,
  33885. &__archive_libc2_sha384final,
  33886. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  33887. &__archive_libc3_sha384init,
  33888. &__archive_libc3_sha384update,
  33889. &__archive_libc3_sha384final,
  33890. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  33891. &__archive_libsystem_sha384init,
  33892. &__archive_libsystem_sha384update,
  33893. &__archive_libsystem_sha384final,
  33894. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  33895. &__archive_nettle_sha384init,
  33896. &__archive_nettle_sha384update,
  33897. &__archive_nettle_sha384final,
  33898. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  33899. &__archive_openssl_sha384init,
  33900. &__archive_openssl_sha384update,
  33901. &__archive_openssl_sha384final,
  33902. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  33903. &__archive_windowsapi_sha384init,
  33904. &__archive_windowsapi_sha384update,
  33905. &__archive_windowsapi_sha384final,
  33906. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  33907. &__archive_stub_sha384init,
  33908. &__archive_stub_sha384update,
  33909. &__archive_stub_sha384final,
  33910. #endif
  33911. /* SHA512 */
  33912. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  33913. &__archive_libc_sha512init,
  33914. &__archive_libc_sha512update,
  33915. &__archive_libc_sha512final
  33916. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  33917. &__archive_libc2_sha512init,
  33918. &__archive_libc2_sha512update,
  33919. &__archive_libc2_sha512final
  33920. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  33921. &__archive_libc3_sha512init,
  33922. &__archive_libc3_sha512update,
  33923. &__archive_libc3_sha512final
  33924. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  33925. &__archive_libmd_sha512init,
  33926. &__archive_libmd_sha512update,
  33927. &__archive_libmd_sha512final
  33928. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  33929. &__archive_libsystem_sha512init,
  33930. &__archive_libsystem_sha512update,
  33931. &__archive_libsystem_sha512final
  33932. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  33933. &__archive_nettle_sha512init,
  33934. &__archive_nettle_sha512update,
  33935. &__archive_nettle_sha512final
  33936. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  33937. &__archive_openssl_sha512init,
  33938. &__archive_openssl_sha512update,
  33939. &__archive_openssl_sha512final
  33940. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  33941. &__archive_windowsapi_sha512init,
  33942. &__archive_windowsapi_sha512update,
  33943. &__archive_windowsapi_sha512final
  33944. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  33945. &__archive_stub_sha512init,
  33946. &__archive_stub_sha512update,
  33947. &__archive_stub_sha512final
  33948. #endif
  33949. };
  33950. int
  33951. main(int argc, char **argv)
  33952. {
  33953. archive_sha512_ctx ctx;
  33954. archive_sha512_init(&ctx);
  33955. archive_sha512_update(&ctx, *argv, argc);
  33956. archive_sha512_final(&ctx, NULL);
  33957. return 0;
  33958. }
  33959. Checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM failed with the following output:
  33960. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  33961. Run Build Command:"/usr/bin/make" "cmTC_eac8e/fast"
  33962. make -f CMakeFiles/cmTC_eac8e.dir/build.make CMakeFiles/cmTC_eac8e.dir/build
  33963. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  33964. Building C object CMakeFiles/cmTC_eac8e.dir/check_crypto_md.c.o
  33965. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_eac8e.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  33966. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  33967. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:112:39: fatal error: CommonCrypto/CommonDigest.h: No such file or directory
  33968. compilation terminated.
  33969. CMakeFiles/cmTC_eac8e.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_eac8e.dir/check_crypto_md.c.o' failed
  33970. make[1]: *** [CMakeFiles/cmTC_eac8e.dir/check_crypto_md.c.o] Error 1
  33971. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  33972. Makefile:126: recipe for target 'cmTC_eac8e/fast' failed
  33973. make: *** [cmTC_eac8e/fast] Error 2
  33974. Source file was:
  33975. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  33976. #if defined(__osf__)
  33977. # define _OSF_SOURCE
  33978. #endif
  33979. /*
  33980. * Ensure we have C99-style int64_t, etc, all defined.
  33981. */
  33982. /* First, we need to know if the system has already defined them. */
  33983. #define HAVE_INT16_T
  33984. #define HAVE_INT32_T
  33985. #define HAVE_INT64_T
  33986. #define HAVE_INTMAX_T
  33987. #define HAVE_UINT8_T
  33988. #define HAVE_UINT16_T
  33989. #define HAVE_UINT32_T
  33990. #define HAVE_UINT64_T
  33991. #define HAVE_UINTMAX_T
  33992. /* We might have the types we want under other spellings. */
  33993. /* #undef HAVE___INT64 */
  33994. /* #undef HAVE_U_INT64_T */
  33995. /* #undef HAVE_UNSIGNED___INT64 */
  33996. /* The sizes of various standard integer types. */
  33997. #define SIZE_OF_SHORT 2
  33998. #define SIZE_OF_INT 4
  33999. #define SIZE_OF_LONG 8
  34000. #define SIZE_OF_LONG_LONG 8
  34001. #define SIZE_OF_UNSIGNED_SHORT 2
  34002. #define SIZE_OF_UNSIGNED 4
  34003. #define SIZE_OF_UNSIGNED_LONG 8
  34004. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  34005. /*
  34006. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  34007. * that exists and is the right size.
  34008. */
  34009. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  34010. typedef __int64 int64_t;
  34011. #define HAVE_INT64_T
  34012. #endif
  34013. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  34014. typedef int int64_t;
  34015. #define HAVE_INT64_T
  34016. #endif
  34017. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  34018. typedef long int64_t;
  34019. #define HAVE_INT64_T
  34020. #endif
  34021. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  34022. typedef long long int64_t;
  34023. #define HAVE_INT64_T
  34024. #endif
  34025. #if !defined(HAVE_INT64_T)
  34026. #error No 64-bit integer type was found.
  34027. #endif
  34028. /*
  34029. * Similarly for int32_t
  34030. */
  34031. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  34032. typedef int int32_t;
  34033. #define HAVE_INT32_T
  34034. #endif
  34035. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  34036. typedef long int32_t;
  34037. #define HAVE_INT32_T
  34038. #endif
  34039. #if !defined(HAVE_INT32_T)
  34040. #error No 32-bit integer type was found.
  34041. #endif
  34042. /*
  34043. * Similarly for int16_t
  34044. */
  34045. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  34046. typedef int int16_t;
  34047. #define HAVE_INT16_T
  34048. #endif
  34049. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  34050. typedef short int16_t;
  34051. #define HAVE_INT16_T
  34052. #endif
  34053. #if !defined(HAVE_INT16_T)
  34054. #error No 16-bit integer type was found.
  34055. #endif
  34056. /*
  34057. * Similarly for uint64_t
  34058. */
  34059. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  34060. typedef unsigned __int64 uint64_t;
  34061. #define HAVE_UINT64_T
  34062. #endif
  34063. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  34064. typedef unsigned uint64_t;
  34065. #define HAVE_UINT64_T
  34066. #endif
  34067. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  34068. typedef unsigned long uint64_t;
  34069. #define HAVE_UINT64_T
  34070. #endif
  34071. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  34072. typedef unsigned long long uint64_t;
  34073. #define HAVE_UINT64_T
  34074. #endif
  34075. #if !defined(HAVE_UINT64_T)
  34076. #error No 64-bit unsigned integer type was found.
  34077. #endif
  34078. /*
  34079. * Similarly for uint32_t
  34080. */
  34081. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  34082. typedef unsigned uint32_t;
  34083. #define HAVE_UINT32_T
  34084. #endif
  34085. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  34086. typedef unsigned long uint32_t;
  34087. #define HAVE_UINT32_T
  34088. #endif
  34089. #if !defined(HAVE_UINT32_T)
  34090. #error No 32-bit unsigned integer type was found.
  34091. #endif
  34092. /*
  34093. * Similarly for uint16_t
  34094. */
  34095. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  34096. typedef unsigned uint16_t;
  34097. #define HAVE_UINT16_T
  34098. #endif
  34099. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  34100. typedef unsigned short uint16_t;
  34101. #define HAVE_UINT16_T
  34102. #endif
  34103. #if !defined(HAVE_UINT16_T)
  34104. #error No 16-bit unsigned integer type was found.
  34105. #endif
  34106. /*
  34107. * Similarly for uint8_t
  34108. */
  34109. #if !defined(HAVE_UINT8_T)
  34110. typedef unsigned char uint8_t;
  34111. #define HAVE_UINT8_T
  34112. #endif
  34113. #if !defined(HAVE_UINT16_T)
  34114. #error No 8-bit unsigned integer type was found.
  34115. #endif
  34116. /* Define intmax_t and uintmax_t if they are not already defined. */
  34117. #if !defined(HAVE_INTMAX_T)
  34118. typedef int64_t intmax_t;
  34119. #endif
  34120. #if !defined(HAVE_UINTMAX_T)
  34121. typedef uint64_t uintmax_t;
  34122. #endif
  34123. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  34124. /* #undef ZLIB_WINAPI */
  34125. /* Darwin ACL support */
  34126. /* #undef ARCHIVE_ACL_DARWIN */
  34127. /* FreeBSD ACL support */
  34128. /* #undef ARCHIVE_ACL_FREEBSD */
  34129. /* FreeBSD NFSv4 ACL support */
  34130. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  34131. /* Linux POSIX.1e ACL support via libacl */
  34132. /* #undef ARCHIVE_ACL_LIBACL */
  34133. /* Linux NFSv4 ACL support via librichacl */
  34134. /* #undef ARCHIVE_ACL_LIBRICHACL */
  34135. /* Solaris ACL support */
  34136. /* #undef ARCHIVE_ACL_SUNOS */
  34137. /* Solaris NFSv4 ACL support */
  34138. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  34139. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  34140. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  34141. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  34142. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  34143. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  34144. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  34145. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  34146. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  34147. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  34148. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  34149. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  34150. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  34151. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  34152. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  34153. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  34154. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  34155. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  34156. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  34157. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  34158. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  34159. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  34160. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  34161. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  34162. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  34163. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  34164. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  34165. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  34166. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  34167. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  34168. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  34169. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  34170. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  34171. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  34172. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  34173. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  34174. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  34175. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  34176. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  34177. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  34178. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  34179. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  34180. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  34181. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  34182. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  34183. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  34184. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  34185. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  34186. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  34187. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  34188. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  34189. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  34190. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  34191. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  34192. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  34193. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  34194. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  34195. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  34196. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  34197. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  34198. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  34199. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  34200. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  34201. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  34202. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  34203. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  34204. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  34205. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  34206. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  34207. /* AIX xattr support */
  34208. /* #undef ARCHIVE_XATTR_AIX */
  34209. /* Darwin xattr support */
  34210. /* #undef ARCHIVE_XATTR_DARWIN */
  34211. /* FreeBSD xattr support */
  34212. /* #undef ARCHIVE_XATTR_FREEBSD */
  34213. /* Linux xattr support */
  34214. /* #undef ARCHIVE_XATTR_LINUX */
  34215. /* Version number of bsdcpio */
  34216. #define BSDCPIO_VERSION_STRING "3.3.2"
  34217. /* Version number of bsdtar */
  34218. #define BSDTAR_VERSION_STRING "3.3.2"
  34219. /* Version number of bsdcat */
  34220. #define BSDCAT_VERSION_STRING "3.3.2"
  34221. /* Define to 1 if you have the `acl_create_entry' function. */
  34222. /* #undef HAVE_ACL_CREATE_ENTRY */
  34223. /* Define to 1 if you have the `acl_get_fd_np' function. */
  34224. /* #undef HAVE_ACL_GET_FD_NP */
  34225. /* Define to 1 if you have the `acl_get_link' function. */
  34226. /* #undef HAVE_ACL_GET_LINK */
  34227. /* Define to 1 if you have the `acl_get_link_np' function. */
  34228. /* #undef HAVE_ACL_GET_LINK_NP */
  34229. /* Define to 1 if you have the `acl_get_perm' function. */
  34230. /* #undef HAVE_ACL_GET_PERM */
  34231. /* Define to 1 if you have the `acl_get_perm_np' function. */
  34232. /* #undef HAVE_ACL_GET_PERM_NP */
  34233. /* Define to 1 if you have the `acl_init' function. */
  34234. /* #undef HAVE_ACL_INIT */
  34235. /* Define to 1 if you have the <acl/libacl.h> header file. */
  34236. /* #undef HAVE_ACL_LIBACL_H */
  34237. /* Define to 1 if the system has the type `acl_permset_t'. */
  34238. /* #undef HAVE_ACL_PERMSET_T */
  34239. /* Define to 1 if you have the `acl_set_fd' function. */
  34240. /* #undef HAVE_ACL_SET_FD */
  34241. /* Define to 1 if you have the `acl_set_fd_np' function. */
  34242. /* #undef HAVE_ACL_SET_FD_NP */
  34243. /* Define to 1 if you have the `acl_set_file' function. */
  34244. /* #undef HAVE_ACL_SET_FILE */
  34245. /* Define to 1 if you have the `arc4random_buf' function. */
  34246. /* #undef HAVE_ARC4RANDOM_BUF */
  34247. /* Define to 1 if you have the <attr/xattr.h> header file. */
  34248. /* #undef HAVE_ATTR_XATTR_H */
  34249. /* Define to 1 if you have the <Bcrypt.h> header file. */
  34250. /* #undef HAVE_BCRYPT_H */
  34251. /* Define to 1 if you have the <bsdxml.h> header file. */
  34252. /* #undef HAVE_BSDXML_H */
  34253. /* Define to 1 if you have the <bzlib.h> header file. */
  34254. #define HAVE_BZLIB_H 1
  34255. /* Define to 1 if you have the `chflags' function. */
  34256. /* #undef HAVE_CHFLAGS */
  34257. /* Define to 1 if you have the `chown' function. */
  34258. #define HAVE_CHOWN 1
  34259. /* Define to 1 if you have the `chroot' function. */
  34260. #define HAVE_CHROOT 1
  34261. /* Define to 1 if you have the <copyfile.h> header file. */
  34262. /* #undef HAVE_COPYFILE_H */
  34263. /* Define to 1 if you have the `ctime_r' function. */
  34264. #define HAVE_CTIME_R 1
  34265. /* Define to 1 if you have the <ctype.h> header file. */
  34266. #define HAVE_CTYPE_H 1
  34267. /* Define to 1 if you have the `cygwin_conv_path' function. */
  34268. /* #undef HAVE_CYGWIN_CONV_PATH */
  34269. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  34270. don't. */
  34271. /* #undef HAVE_DECL_ACE_GETACL */
  34272. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  34273. don't. */
  34274. /* #undef HAVE_DECL_ACE_GETACLCNT */
  34275. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  34276. don't. */
  34277. /* #undef HAVE_DECL_ACE_SETACL */
  34278. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  34279. you don't. */
  34280. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  34281. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  34282. you don't. */
  34283. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  34284. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  34285. don't. */
  34286. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  34287. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  34288. don't. */
  34289. /* #undef HAVE_DECL_ACL_USER */
  34290. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  34291. don't. */
  34292. #define HAVE_DECL_INT32_MAX 1
  34293. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  34294. don't. */
  34295. #define HAVE_DECL_INT32_MIN 1
  34296. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  34297. don't. */
  34298. #define HAVE_DECL_INT64_MAX 1
  34299. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  34300. don't. */
  34301. #define HAVE_DECL_INT64_MIN 1
  34302. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  34303. don't. */
  34304. #define HAVE_DECL_INTMAX_MAX 1
  34305. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  34306. don't. */
  34307. #define HAVE_DECL_INTMAX_MIN 1
  34308. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  34309. */
  34310. /* #undef HAVE_DECL_SETACL */
  34311. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  34312. don't. */
  34313. #define HAVE_DECL_SIZE_MAX 1
  34314. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  34315. don't. */
  34316. #define HAVE_DECL_SSIZE_MAX 1
  34317. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  34318. don't. */
  34319. #define HAVE_DECL_STRERROR_R 1
  34320. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  34321. don't. */
  34322. #define HAVE_DECL_UINT32_MAX 1
  34323. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  34324. don't. */
  34325. #define HAVE_DECL_UINT64_MAX 1
  34326. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  34327. don't. */
  34328. #define HAVE_DECL_UINTMAX_MAX 1
  34329. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  34330. you don't. */
  34331. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  34332. /* Define to 1 if you have the <direct.h> header file. */
  34333. /* #undef HAVE_DIRECT_H */
  34334. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  34335. */
  34336. #define HAVE_DIRENT_H 1
  34337. /* Define to 1 if you have the `dirfd' function. */
  34338. #define HAVE_DIRFD 1
  34339. /* Define to 1 if you have the <dlfcn.h> header file. */
  34340. #define HAVE_DLFCN_H 1
  34341. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  34342. /* #undef HAVE_DOPRNT */
  34343. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  34344. /* #undef HAVE_D_MD_ORDER */
  34345. /* A possible errno value for invalid file format errors */
  34346. /* #undef HAVE_EFTYPE */
  34347. /* A possible errno value for invalid file format errors */
  34348. #define HAVE_EILSEQ 1
  34349. /* Define to 1 if you have the <errno.h> header file. */
  34350. #define HAVE_ERRNO_H 1
  34351. /* Define to 1 if you have the <expat.h> header file. */
  34352. /* #undef HAVE_EXPAT_H */
  34353. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  34354. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  34355. /* Define to 1 if you have the `extattr_get_file' function. */
  34356. /* #undef HAVE_EXTATTR_GET_FILE */
  34357. /* Define to 1 if you have the `extattr_list_file' function. */
  34358. /* #undef HAVE_EXTATTR_LIST_FILE */
  34359. /* Define to 1 if you have the `extattr_set_fd' function. */
  34360. /* #undef HAVE_EXTATTR_SET_FD */
  34361. /* Define to 1 if you have the `extattr_set_file' function. */
  34362. /* #undef HAVE_EXTATTR_SET_FILE */
  34363. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  34364. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  34365. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  34366. */
  34367. /* #undef HAVE_DECL_GETACL */
  34368. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  34369. don't. */
  34370. /* #undef HAVE_DECL_GETACLCNT */
  34371. /* Define to 1 if you have the `fchdir' function. */
  34372. #define HAVE_FCHDIR 1
  34373. /* Define to 1 if you have the `fchflags' function. */
  34374. /* #undef HAVE_FCHFLAGS */
  34375. /* Define to 1 if you have the `fchmod' function. */
  34376. #define HAVE_FCHMOD 1
  34377. /* Define to 1 if you have the `fchown' function. */
  34378. #define HAVE_FCHOWN 1
  34379. /* Define to 1 if you have the `fcntl' function. */
  34380. #define HAVE_FCNTL 1
  34381. /* Define to 1 if you have the <fcntl.h> header file. */
  34382. #define HAVE_FCNTL_H 1
  34383. /* Define to 1 if you have the `fdopendir' function. */
  34384. #define HAVE_FDOPENDIR 1
  34385. /* Define to 1 if you have the `fgetea' function. */
  34386. /* #undef HAVE_FGETEA */
  34387. /* Define to 1 if you have the `fgetxattr' function. */
  34388. /* #undef HAVE_FGETXATTR */
  34389. /* Define to 1 if you have the `flistea' function. */
  34390. /* #undef HAVE_FLISTEA */
  34391. /* Define to 1 if you have the `flistxattr' function. */
  34392. /* #undef HAVE_FLISTXATTR */
  34393. /* Define to 1 if you have the `fork' function. */
  34394. #define HAVE_FORK 1
  34395. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  34396. #define HAVE_FSEEKO 1
  34397. /* Define to 1 if you have the `fsetea' function. */
  34398. /* #undef HAVE_FSETEA */
  34399. /* Define to 1 if you have the `fsetxattr' function. */
  34400. #define HAVE_FSETXATTR 1
  34401. /* Define to 1 if you have the `fstat' function. */
  34402. #define HAVE_FSTAT 1
  34403. /* Define to 1 if you have the `fstatat' function. */
  34404. #define HAVE_FSTATAT 1
  34405. /* Define to 1 if you have the `fstatfs' function. */
  34406. #define HAVE_FSTATFS 1
  34407. /* Define to 1 if you have the `fstatvfs' function. */
  34408. #define HAVE_FSTATVFS 1
  34409. /* Define to 1 if you have the `ftruncate' function. */
  34410. #define HAVE_FTRUNCATE 1
  34411. /* Define to 1 if you have the `futimens' function. */
  34412. #define HAVE_FUTIMENS 1
  34413. /* Define to 1 if you have the `futimes' function. */
  34414. #define HAVE_FUTIMES 1
  34415. /* Define to 1 if you have the `futimesat' function. */
  34416. #define HAVE_FUTIMESAT 1
  34417. /* Define to 1 if you have the `getea' function. */
  34418. /* #undef HAVE_GETEA */
  34419. /* Define to 1 if you have the `geteuid' function. */
  34420. #define HAVE_GETEUID 1
  34421. /* Define to 1 if you have the `getgrgid_r' function. */
  34422. #define HAVE_GETGRGID_R 1
  34423. /* Define to 1 if you have the `getgrnam_r' function. */
  34424. #define HAVE_GETGRNAM_R 1
  34425. /* Define to 1 if you have the `getpid' function. */
  34426. #define HAVE_GETPID 1
  34427. /* Define to 1 if you have the `getpwnam_r' function. */
  34428. #define HAVE_GETPWNAM_R 1
  34429. /* Define to 1 if you have the `getpwuid_r' function. */
  34430. #define HAVE_GETPWUID_R 1
  34431. /* Define to 1 if you have the `getvfsbyname' function. */
  34432. /* #undef HAVE_GETVFSBYNAME */
  34433. /* Define to 1 if you have the `getxattr' function. */
  34434. /* #undef HAVE_GETXATTR */
  34435. /* Define to 1 if you have the `gmtime_r' function. */
  34436. #define HAVE_GMTIME_R 1
  34437. /* Define to 1 if you have the <grp.h> header file. */
  34438. #define HAVE_GRP_H 1
  34439. /* Define to 1 if you have the `iconv' function. */
  34440. /* #undef HAVE_ICONV */
  34441. /* Define to 1 if you have the <iconv.h> header file. */
  34442. /* #undef HAVE_ICONV_H */
  34443. /* Define to 1 if you have the <inttypes.h> header file. */
  34444. #define HAVE_INTTYPES_H 1
  34445. /* Define to 1 if you have the <io.h> header file. */
  34446. /* #undef HAVE_IO_H */
  34447. /* Define to 1 if you have the <langinfo.h> header file. */
  34448. #define HAVE_LANGINFO_H 1
  34449. /* Define to 1 if you have the `lchflags' function. */
  34450. /* #undef HAVE_LCHFLAGS */
  34451. /* Define to 1 if you have the `lchmod' function. */
  34452. /* #undef HAVE_LCHMOD */
  34453. /* Define to 1 if you have the `lchown' function. */
  34454. #define HAVE_LCHOWN 1
  34455. /* Define to 1 if you have the `lgetea' function. */
  34456. /* #undef HAVE_LGETEA */
  34457. /* Define to 1 if you have the `lgetxattr' function. */
  34458. /* #undef HAVE_LGETXATTR */
  34459. /* Define to 1 if you have the `acl' library (-lacl). */
  34460. /* #undef HAVE_LIBACL */
  34461. /* Define to 1 if you have the `attr' library (-lattr). */
  34462. /* #undef HAVE_LIBATTR */
  34463. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  34464. /* #undef HAVE_LIBBSDXML */
  34465. /* Define to 1 if you have the `bz2' library (-lbz2). */
  34466. #define HAVE_LIBBZ2 1
  34467. /* Define to 1 if you have the `charset' library (-lcharset). */
  34468. /* #undef HAVE_LIBCHARSET */
  34469. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  34470. #define HAVE_LIBCRYPTO 1
  34471. /* Define to 1 if you have the `expat' library (-lexpat). */
  34472. /* #undef HAVE_LIBEXPAT */
  34473. /* Define to 1 if you have the `gcc' library (-lgcc). */
  34474. /* #undef HAVE_LIBGCC */
  34475. /* Define to 1 if you have the `lz4' library (-llz4). */
  34476. /* #undef HAVE_LIBLZ4 */
  34477. /* Define to 1 if you have the `lzma' library (-llzma). */
  34478. #define HAVE_LIBLZMA 1
  34479. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  34480. /* #undef HAVE_LIBLZMADEC */
  34481. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  34482. /* #undef HAVE_LIBLZO2 */
  34483. /* Define to 1 if you have the `nettle' library (-lnettle). */
  34484. /* #undef HAVE_LIBNETTLE */
  34485. /* Define to 1 if you have the `pcre' library (-lpcre). */
  34486. /* #undef HAVE_LIBPCRE */
  34487. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  34488. /* #undef HAVE_LIBPCREPOSIX */
  34489. /* Define to 1 if you have the `xml2' library (-lxml2). */
  34490. /* #undef HAVE_LIBXML2 */
  34491. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  34492. /* #undef HAVE_LIBXML_XMLREADER_H */
  34493. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  34494. /* #undef HAVE_LIBXML_XMLWRITER_H */
  34495. /* Define to 1 if you have the `z' library (-lz). */
  34496. #define HAVE_LIBZ 1
  34497. /* Define to 1 if you have the <limits.h> header file. */
  34498. #define HAVE_LIMITS_H 1
  34499. /* Define to 1 if you have the `link' function. */
  34500. #define HAVE_LINK 1
  34501. /* Define to 1 if you have the <linux/types.h> header file. */
  34502. #define HAVE_LINUX_TYPES_H 1
  34503. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  34504. #define HAVE_LINUX_FIEMAP_H 1
  34505. /* Define to 1 if you have the <linux/fs.h> header file. */
  34506. #define HAVE_LINUX_FS_H 1
  34507. /* Define to 1 if you have the <linux/magic.h> header file. */
  34508. #define HAVE_LINUX_MAGIC_H 1
  34509. /* Define to 1 if you have the <linux/types.h> header file. */
  34510. #define HAVE_LINUX_TYPES_H 1
  34511. /* Define to 1 if you have the `listea' function. */
  34512. /* #undef HAVE_LISTEA */
  34513. /* Define to 1 if you have the `listxattr' function. */
  34514. /* #undef HAVE_LISTXATTR */
  34515. /* Define to 1 if you have the `llistea' function. */
  34516. /* #undef HAVE_LLISTEA */
  34517. /* Define to 1 if you have the `llistxattr' function. */
  34518. /* #undef HAVE_LLISTXATTR */
  34519. /* Define to 1 if you have the <localcharset.h> header file. */
  34520. /* #undef HAVE_LOCALCHARSET_H */
  34521. /* Define to 1 if you have the `locale_charset' function. */
  34522. /* #undef HAVE_LOCALE_CHARSET */
  34523. /* Define to 1 if you have the <locale.h> header file. */
  34524. #define HAVE_LOCALE_H 1
  34525. /* Define to 1 if you have the `localtime_r' function. */
  34526. #define HAVE_LOCALTIME_R 1
  34527. /* Define to 1 if the system has the type `long long int'. */
  34528. /* #undef HAVE_LONG_LONG_INT */
  34529. /* Define to 1 if you have the `lsetea' function. */
  34530. /* #undef HAVE_LSETEA */
  34531. /* Define to 1 if you have the `lsetxattr' function. */
  34532. /* #undef HAVE_LSETXATTR */
  34533. /* Define to 1 if you have the `lstat' function. */
  34534. #define HAVE_LSTAT 1
  34535. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  34536. zero-length file name argument. */
  34537. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  34538. /* Define to 1 if you have the `lutimes' function. */
  34539. #define HAVE_LUTIMES 1
  34540. /* Define to 1 if you have the <lz4hc.h> header file. */
  34541. /* #undef HAVE_LZ4HC_H */
  34542. /* Define to 1 if you have the <lz4.h> header file. */
  34543. /* #undef HAVE_LZ4_H */
  34544. /* Define to 1 if you have the <lzmadec.h> header file. */
  34545. /* #undef HAVE_LZMADEC_H */
  34546. /* Define to 1 if you have the <lzma.h> header file. */
  34547. #define HAVE_LZMA_H 1
  34548. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  34549. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  34550. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  34551. /* #undef HAVE_LZO_LZO1X_H */
  34552. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  34553. /* #undef HAVE_LZO_LZOCONF_H */
  34554. /* Define to 1 if you have the `mbrtowc' function. */
  34555. #define HAVE_MBRTOWC 1
  34556. /* Define to 1 if you have the <membership.h> header file. */
  34557. /* #undef HAVE_MEMBERSHIP_H */
  34558. /* Define to 1 if you have the `memmove' function. */
  34559. #define HAVE_MEMMOVE 1
  34560. /* Define to 1 if you have the <memory.h> header file. */
  34561. #define HAVE_MEMORY_H 1
  34562. /* Define to 1 if you have the `mkdir' function. */
  34563. #define HAVE_MKDIR 1
  34564. /* Define to 1 if you have the `mkfifo' function. */
  34565. #define HAVE_MKFIFO 1
  34566. /* Define to 1 if you have the `mknod' function. */
  34567. #define HAVE_MKNOD 1
  34568. /* Define to 1 if you have the `mkstemp' function. */
  34569. #define HAVE_MKSTEMP 1
  34570. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  34571. /* #undef HAVE_NDIR_H */
  34572. /* Define to 1 if you have the <nettle/aes.h> header file. */
  34573. /* #undef HAVE_NETTLE_AES_H */
  34574. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  34575. /* #undef HAVE_NETTLE_HMAC_H */
  34576. /* Define to 1 if you have the <nettle/md5.h> header file. */
  34577. /* #undef HAVE_NETTLE_MD5_H */
  34578. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  34579. /* #undef HAVE_NETTLE_PBKDF2_H */
  34580. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  34581. /* #undef HAVE_NETTLE_RIPEMD160_H */
  34582. /* Define to 1 if you have the <nettle/sha.h> header file. */
  34583. /* #undef HAVE_NETTLE_SHA_H */
  34584. /* Define to 1 if you have the `nl_langinfo' function. */
  34585. #define HAVE_NL_LANGINFO 1
  34586. /* Define to 1 if you have the `openat' function. */
  34587. #define HAVE_OPENAT 1
  34588. /* Define to 1 if you have the <paths.h> header file. */
  34589. #define HAVE_PATHS_H 1
  34590. /* Define to 1 if you have the <pcreposix.h> header file. */
  34591. /* #undef HAVE_PCREPOSIX_H */
  34592. /* Define to 1 if you have the `pipe' function. */
  34593. #define HAVE_PIPE 1
  34594. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  34595. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  34596. /* Define to 1 if you have the `poll' function. */
  34597. #define HAVE_POLL 1
  34598. /* Define to 1 if you have the <poll.h> header file. */
  34599. #define HAVE_POLL_H 1
  34600. /* Define to 1 if you have the `posix_spawnp' function. */
  34601. #define HAVE_POSIX_SPAWNP 1
  34602. /* Define to 1 if you have the <process.h> header file. */
  34603. /* #undef HAVE_PROCESS_H */
  34604. /* Define to 1 if you have the <pthread.h> header file. */
  34605. /* #undef HAVE_PTHREAD_H */
  34606. /* Define to 1 if you have the <pwd.h> header file. */
  34607. #define HAVE_PWD_H 1
  34608. /* Define to 1 if you have the `readdir_r' function. */
  34609. #define HAVE_READDIR_R 1
  34610. /* Define to 1 if you have the `readlink' function. */
  34611. #define HAVE_READLINK 1
  34612. /* Define to 1 if you have the `readlinkat' function. */
  34613. #define HAVE_READLINKAT 1
  34614. /* Define to 1 if you have the `readpassphrase' function. */
  34615. /* #undef HAVE_READPASSPHRASE */
  34616. /* Define to 1 if you have the <readpassphrase.h> header file. */
  34617. /* #undef HAVE_READPASSPHRASE_H */
  34618. /* Define to 1 if you have the <regex.h> header file. */
  34619. #define HAVE_REGEX_H 1
  34620. /* Define to 1 if you have the `select' function. */
  34621. #define HAVE_SELECT 1
  34622. /* Define to 1 if you have the `setenv' function. */
  34623. #define HAVE_SETENV 1
  34624. /* Define to 1 if you have the `setlocale' function. */
  34625. #define HAVE_SETLOCALE 1
  34626. /* Define to 1 if you have the `sigaction' function. */
  34627. #define HAVE_SIGACTION 1
  34628. /* Define to 1 if you have the <signal.h> header file. */
  34629. #define HAVE_SIGNAL_H 1
  34630. /* Define to 1 if you have the <spawn.h> header file. */
  34631. #define HAVE_SPAWN_H 1
  34632. /* Define to 1 if you have the `statfs' function. */
  34633. #define HAVE_STATFS 1
  34634. /* Define to 1 if you have the `statvfs' function. */
  34635. #define HAVE_STATVFS 1
  34636. /* Define to 1 if `stat' has the bug that it succeeds when given the
  34637. zero-length file name argument. */
  34638. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  34639. /* Define to 1 if you have the <stdarg.h> header file. */
  34640. #define HAVE_STDARG_H 1
  34641. /* Define to 1 if you have the <stdint.h> header file. */
  34642. #define HAVE_STDINT_H 1
  34643. /* Define to 1 if you have the <stdlib.h> header file. */
  34644. #define HAVE_STDLIB_H 1
  34645. /* Define to 1 if you have the `strchr' function. */
  34646. #define HAVE_STRCHR 1
  34647. /* Define to 1 if you have the `strdup' function. */
  34648. #define HAVE_STRDUP 1
  34649. /* Define to 1 if you have the `strerror' function. */
  34650. #define HAVE_STRERROR 1
  34651. /* Define to 1 if you have the `strerror_r' function. */
  34652. #define HAVE_STRERROR_R 1
  34653. /* Define to 1 if you have the `strftime' function. */
  34654. #define HAVE_STRFTIME 1
  34655. /* Define to 1 if you have the <strings.h> header file. */
  34656. #define HAVE_STRINGS_H 1
  34657. /* Define to 1 if you have the <string.h> header file. */
  34658. #define HAVE_STRING_H 1
  34659. /* Define to 1 if you have the `strrchr' function. */
  34660. #define HAVE_STRRCHR 1
  34661. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  34662. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  34663. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  34664. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  34665. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  34666. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  34667. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  34668. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  34669. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  34670. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  34671. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  34672. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  34673. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  34674. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  34675. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  34676. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  34677. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  34678. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  34679. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  34680. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  34681. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  34682. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  34683. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  34684. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  34685. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  34686. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  34687. /* Define to 1 if you have `struct vfsconf'. */
  34688. /* #undef HAVE_STRUCT_VFSCONF */
  34689. /* Define to 1 if you have `struct xvfsconf'. */
  34690. /* #undef HAVE_STRUCT_XVFSCONF */
  34691. /* Define to 1 if you have the `symlink' function. */
  34692. #define HAVE_SYMLINK 1
  34693. /* Define to 1 if you have the <sys/acl.h> header file. */
  34694. /* #undef HAVE_SYS_ACL_H */
  34695. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  34696. #define HAVE_SYS_CDEFS_H 1
  34697. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  34698. */
  34699. /* #undef HAVE_SYS_DIR_H */
  34700. /* Define to 1 if you have the <sys/ea.h> header file. */
  34701. /* #undef HAVE_SYS_EA_H */
  34702. /* Define to 1 if you have the <sys/extattr.h> header file. */
  34703. /* #undef HAVE_SYS_EXTATTR_H */
  34704. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  34705. #define HAVE_SYS_IOCTL_H 1
  34706. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  34707. /* #undef HAVE_SYS_MKDEV_H */
  34708. /* Define to 1 if you have the <sys/mount.h> header file. */
  34709. /* #undef HAVE_SYS_MOUNT_H */
  34710. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  34711. */
  34712. /* #undef HAVE_SYS_NDIR_H */
  34713. /* Define to 1 if you have the <sys/param.h> header file. */
  34714. #define HAVE_SYS_PARAM_H 1
  34715. /* Define to 1 if you have the <sys/poll.h> header file. */
  34716. #define HAVE_SYS_POLL_H 1
  34717. /* Define to 1 if you have the <sys/richacl.h> header file. */
  34718. /* #undef HAVE_SYS_RICHACL_H */
  34719. /* Define to 1 if you have the <sys/select.h> header file. */
  34720. #define HAVE_SYS_SELECT_H 1
  34721. /* Define to 1 if you have the <sys/statfs.h> header file. */
  34722. #define HAVE_SYS_STATFS_H 1
  34723. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  34724. #define HAVE_SYS_STATVFS_H 1
  34725. /* Define to 1 if you have the <sys/stat.h> header file. */
  34726. #define HAVE_SYS_STAT_H 1
  34727. /* Define to 1 if you have the <sys/time.h> header file. */
  34728. #define HAVE_SYS_TIME_H 1
  34729. /* Define to 1 if you have the <sys/types.h> header file. */
  34730. #define HAVE_SYS_TYPES_H 1
  34731. /* Define to 1 if you have the <sys/utime.h> header file. */
  34732. /* #undef HAVE_SYS_UTIME_H */
  34733. /* Define to 1 if you have the <sys/utsname.h> header file. */
  34734. #define HAVE_SYS_UTSNAME_H 1
  34735. /* Define to 1 if you have the <sys/vfs.h> header file. */
  34736. #define HAVE_SYS_VFS_H 1
  34737. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  34738. #define HAVE_SYS_WAIT_H 1
  34739. /* Define to 1 if you have the <sys/xattr.h> header file. */
  34740. #define HAVE_SYS_XATTR_H 1
  34741. /* Define to 1 if you have the `timegm' function. */
  34742. #define HAVE_TIMEGM 1
  34743. /* Define to 1 if you have the <time.h> header file. */
  34744. #define HAVE_TIME_H 1
  34745. /* Define to 1 if you have the `tzset' function. */
  34746. #define HAVE_TZSET 1
  34747. /* Define to 1 if you have the <unistd.h> header file. */
  34748. #define HAVE_UNISTD_H 1
  34749. /* Define to 1 if you have the `unsetenv' function. */
  34750. #define HAVE_UNSETENV 1
  34751. /* Define to 1 if the system has the type `unsigned long long'. */
  34752. /* #undef HAVE_UNSIGNED_LONG_LONG */
  34753. /* Define to 1 if the system has the type `unsigned long long int'. */
  34754. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  34755. /* Define to 1 if you have the `utime' function. */
  34756. #define HAVE_UTIME 1
  34757. /* Define to 1 if you have the `utimensat' function. */
  34758. #define HAVE_UTIMENSAT 1
  34759. /* Define to 1 if you have the `utimes' function. */
  34760. #define HAVE_UTIMES 1
  34761. /* Define to 1 if you have the <utime.h> header file. */
  34762. #define HAVE_UTIME_H 1
  34763. /* Define to 1 if you have the `vfork' function. */
  34764. #define HAVE_VFORK 1
  34765. /* Define to 1 if you have the `vprintf' function. */
  34766. #define HAVE_VPRINTF 1
  34767. /* Define to 1 if you have the <wchar.h> header file. */
  34768. #define HAVE_WCHAR_H 1
  34769. /* Define to 1 if the system has the type `wchar_t'. */
  34770. #define HAVE_WCHAR_T 1
  34771. /* Define to 1 if you have the `wcrtomb' function. */
  34772. #define HAVE_WCRTOMB 1
  34773. /* Define to 1 if you have the `wcscmp' function. */
  34774. #define HAVE_WCSCMP 1
  34775. /* Define to 1 if you have the `wcscpy' function. */
  34776. #define HAVE_WCSCPY 1
  34777. /* Define to 1 if you have the `wcslen' function. */
  34778. #define HAVE_WCSLEN 1
  34779. /* Define to 1 if you have the `wctomb' function. */
  34780. #define HAVE_WCTOMB 1
  34781. /* Define to 1 if you have the <wctype.h> header file. */
  34782. #define HAVE_WCTYPE_H 1
  34783. /* Define to 1 if you have the <wincrypt.h> header file. */
  34784. /* #undef HAVE_WINCRYPT_H */
  34785. /* Define to 1 if you have the <windows.h> header file. */
  34786. /* #undef HAVE_WINDOWS_H */
  34787. /* Define to 1 if you have the <winioctl.h> header file. */
  34788. /* #undef HAVE_WINIOCTL_H */
  34789. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  34790. /* #undef HAVE__CrtSetReportMode */
  34791. /* Define to 1 if you have the `wmemcmp' function. */
  34792. #define HAVE_WMEMCMP 1
  34793. /* Define to 1 if you have the `wmemcpy' function. */
  34794. #define HAVE_WMEMCPY 1
  34795. /* Define to 1 if you have the `wmemmove' function. */
  34796. #define HAVE_WMEMMOVE 1
  34797. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  34798. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  34799. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  34800. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  34801. /* Define to 1 if you have the <zlib.h> header file. */
  34802. #define HAVE_ZLIB_H 1
  34803. /* Define to 1 if you have the `_ctime64_s' function. */
  34804. /* #undef HAVE__CTIME64_S */
  34805. /* Define to 1 if you have the `_fseeki64' function. */
  34806. /* #undef HAVE__FSEEKI64 */
  34807. /* Define to 1 if you have the `_get_timezone' function. */
  34808. /* #undef HAVE__GET_TIMEZONE */
  34809. /* Define to 1 if you have the `_localtime64_s' function. */
  34810. /* #undef HAVE__LOCALTIME64_S */
  34811. /* Define to 1 if you have the `_mkgmtime64' function. */
  34812. /* #undef HAVE__MKGMTIME64 */
  34813. /* Define as const if the declaration of iconv() needs const. */
  34814. #define ICONV_CONST
  34815. /* Version number of libarchive as a single integer */
  34816. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  34817. /* Version number of libarchive */
  34818. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  34819. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  34820. slash. */
  34821. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  34822. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  34823. */
  34824. /* #undef MAJOR_IN_MKDEV */
  34825. /* Define to 1 if `major', `minor', and `makedev' are declared in
  34826. <sysmacros.h>. */
  34827. #define MAJOR_IN_SYSMACROS 1
  34828. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  34829. /* #undef NO_MINUS_C_MINUS_O */
  34830. /* The size of `wchar_t', as computed by sizeof. */
  34831. #define SIZEOF_WCHAR_T 4
  34832. /* Define to 1 if strerror_r returns char *. */
  34833. /* #undef STRERROR_R_CHAR_P */
  34834. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  34835. #define TIME_WITH_SYS_TIME 1
  34836. /*
  34837. * Some platform requires a macro to use extension functions.
  34838. */
  34839. #define SAFE_TO_DEFINE_EXTENSIONS 1
  34840. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  34841. /* Enable extensions on AIX 3, Interix. */
  34842. #ifndef _ALL_SOURCE
  34843. # define _ALL_SOURCE 1
  34844. #endif
  34845. /* Enable GNU extensions on systems that have them. */
  34846. #ifndef _GNU_SOURCE
  34847. # define _GNU_SOURCE 1
  34848. #endif
  34849. /* Enable threading extensions on Solaris. */
  34850. #ifndef _POSIX_PTHREAD_SEMANTICS
  34851. # define _POSIX_PTHREAD_SEMANTICS 1
  34852. #endif
  34853. /* Enable extensions on HP NonStop. */
  34854. #ifndef _TANDEM_SOURCE
  34855. # define _TANDEM_SOURCE 1
  34856. #endif
  34857. /* Enable general extensions on Solaris. */
  34858. #ifndef __EXTENSIONS__
  34859. # define __EXTENSIONS__ 1
  34860. #endif
  34861. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  34862. /* Version number of package */
  34863. #define VERSION "3.3.2"
  34864. /* Number of bits in a file offset, on hosts where this is settable. */
  34865. /* #undef _FILE_OFFSET_BITS */
  34866. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  34867. /* #undef _LARGEFILE_SOURCE */
  34868. /* Define for large files, on AIX-style hosts. */
  34869. /* #undef _LARGE_FILES */
  34870. /* Define to control Windows SDK version */
  34871. #ifndef NTDDI_VERSION
  34872. /* #undef NTDDI_VERSION */
  34873. #endif // NTDDI_VERSION
  34874. #ifndef _WIN32_WINNT
  34875. /* #undef _WIN32_WINNT */
  34876. #endif // _WIN32_WINNT
  34877. #ifndef WINVER
  34878. /* #undef WINVER */
  34879. #endif // WINVER
  34880. /* Define to empty if `const' does not conform to ANSI C. */
  34881. /* #undef const */
  34882. /* Define to `int' if <sys/types.h> doesn't define. */
  34883. /* #undef gid_t */
  34884. /* Define to `unsigned long' if <sys/types.h> does not define. */
  34885. /* #undef id_t */
  34886. /* Define to `int' if <sys/types.h> does not define. */
  34887. /* #undef mode_t */
  34888. /* Define to `long long' if <sys/types.h> does not define. */
  34889. /* #undef off_t */
  34890. /* Define to `int' if <sys/types.h> doesn't define. */
  34891. /* #undef pid_t */
  34892. /* Define to `unsigned int' if <sys/types.h> does not define. */
  34893. /* #undef size_t */
  34894. /* Define to `int' if <sys/types.h> does not define. */
  34895. /* #undef ssize_t */
  34896. /* Define to `int' if <sys/types.h> doesn't define. */
  34897. /* #undef uid_t */
  34898. /* Define to `int' if <sys/types.h> does not define. */
  34899. /* #undef intptr_t */
  34900. /* Define to `unsigned int' if <sys/types.h> does not define. */
  34901. /* #undef uintptr_t */
  34902. #define ARCHIVE_MD5_COMPILE_TEST
  34903. #define ARCHIVE_CRYPTO_MD5_LIBSYSTEM
  34904. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  34905. /*-
  34906. * Copyright (c) 2003-2007 Tim Kientzle
  34907. * Copyright (c) 2011 Andres Mejia
  34908. * Copyright (c) 2011 Michihiro NAKAJIMA
  34909. * All rights reserved.
  34910. *
  34911. * Redistribution and use in source and binary forms, with or without
  34912. * modification, are permitted provided that the following conditions
  34913. * are met:
  34914. * 1. Redistributions of source code must retain the above copyright
  34915. * notice, this list of conditions and the following disclaimer.
  34916. * 2. Redistributions in binary form must reproduce the above copyright
  34917. * notice, this list of conditions and the following disclaimer in the
  34918. * documentation and/or other materials provided with the distribution.
  34919. *
  34920. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  34921. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  34922. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  34923. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  34924. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  34925. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  34926. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  34927. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  34928. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  34929. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  34930. */
  34931. #include "archive_platform.h"
  34932. #include "archive.h"
  34933. #include "archive_digest_private.h"
  34934. /* In particular, force the configure probe to break if it tries
  34935. * to test a combination of OpenSSL and libmd. */
  34936. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  34937. #error Cannot use both OpenSSL and libmd.
  34938. #endif
  34939. /*
  34940. * Message digest functions for Windows platform.
  34941. */
  34942. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  34943. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  34944. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  34945. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  34946. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  34947. /*
  34948. * Initialize a Message digest.
  34949. */
  34950. static int
  34951. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  34952. {
  34953. ctx->valid = 0;
  34954. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  34955. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  34956. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  34957. return (ARCHIVE_FAILED);
  34958. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  34959. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  34960. return (ARCHIVE_FAILED);
  34961. }
  34962. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  34963. CryptReleaseContext(ctx->cryptProv, 0);
  34964. return (ARCHIVE_FAILED);
  34965. }
  34966. ctx->valid = 1;
  34967. return (ARCHIVE_OK);
  34968. }
  34969. /*
  34970. * Update a Message digest.
  34971. */
  34972. static int
  34973. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  34974. {
  34975. if (!ctx->valid)
  34976. return (ARCHIVE_FAILED);
  34977. CryptHashData(ctx->hash,
  34978. (unsigned char *)(uintptr_t)buf,
  34979. (DWORD)len, 0);
  34980. return (ARCHIVE_OK);
  34981. }
  34982. static int
  34983. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  34984. {
  34985. DWORD siglen = (DWORD)bufsize;
  34986. if (!ctx->valid)
  34987. return (ARCHIVE_FAILED);
  34988. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  34989. CryptDestroyHash(ctx->hash);
  34990. CryptReleaseContext(ctx->cryptProv, 0);
  34991. ctx->valid = 0;
  34992. return (ARCHIVE_OK);
  34993. }
  34994. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  34995. /* MD5 implementations */
  34996. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  34997. static int
  34998. __archive_libc_md5init(archive_md5_ctx *ctx)
  34999. {
  35000. MD5Init(ctx);
  35001. return (ARCHIVE_OK);
  35002. }
  35003. static int
  35004. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  35005. size_t insize)
  35006. {
  35007. MD5Update(ctx, indata, insize);
  35008. return (ARCHIVE_OK);
  35009. }
  35010. static int
  35011. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  35012. {
  35013. MD5Final(md, ctx);
  35014. return (ARCHIVE_OK);
  35015. }
  35016. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  35017. static int
  35018. __archive_libmd_md5init(archive_md5_ctx *ctx)
  35019. {
  35020. MD5Init(ctx);
  35021. return (ARCHIVE_OK);
  35022. }
  35023. static int
  35024. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  35025. size_t insize)
  35026. {
  35027. MD5Update(ctx, indata, insize);
  35028. return (ARCHIVE_OK);
  35029. }
  35030. static int
  35031. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  35032. {
  35033. MD5Final(md, ctx);
  35034. return (ARCHIVE_OK);
  35035. }
  35036. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  35037. static int
  35038. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  35039. {
  35040. CC_MD5_Init(ctx);
  35041. return (ARCHIVE_OK);
  35042. }
  35043. static int
  35044. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  35045. size_t insize)
  35046. {
  35047. CC_MD5_Update(ctx, indata, insize);
  35048. return (ARCHIVE_OK);
  35049. }
  35050. static int
  35051. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  35052. {
  35053. CC_MD5_Final(md, ctx);
  35054. return (ARCHIVE_OK);
  35055. }
  35056. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  35057. static int
  35058. __archive_nettle_md5init(archive_md5_ctx *ctx)
  35059. {
  35060. md5_init(ctx);
  35061. return (ARCHIVE_OK);
  35062. }
  35063. static int
  35064. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  35065. size_t insize)
  35066. {
  35067. md5_update(ctx, insize, indata);
  35068. return (ARCHIVE_OK);
  35069. }
  35070. static int
  35071. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  35072. {
  35073. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  35074. return (ARCHIVE_OK);
  35075. }
  35076. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  35077. static int
  35078. __archive_openssl_md5init(archive_md5_ctx *ctx)
  35079. {
  35080. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  35081. return (ARCHIVE_FAILED);
  35082. EVP_DigestInit(*ctx, EVP_md5());
  35083. return (ARCHIVE_OK);
  35084. }
  35085. static int
  35086. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  35087. size_t insize)
  35088. {
  35089. EVP_DigestUpdate(*ctx, indata, insize);
  35090. return (ARCHIVE_OK);
  35091. }
  35092. static int
  35093. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  35094. {
  35095. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  35096. * this is meant to cope with that. Real fix is probably to fix
  35097. * archive_write_set_format_xar.c
  35098. */
  35099. if (*ctx) {
  35100. EVP_DigestFinal(*ctx, md, NULL);
  35101. EVP_MD_CTX_free(*ctx);
  35102. *ctx = NULL;
  35103. }
  35104. return (ARCHIVE_OK);
  35105. }
  35106. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  35107. static int
  35108. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  35109. {
  35110. return (win_crypto_init(ctx, CALG_MD5));
  35111. }
  35112. static int
  35113. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  35114. size_t insize)
  35115. {
  35116. return (win_crypto_Update(ctx, indata, insize));
  35117. }
  35118. static int
  35119. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  35120. {
  35121. return (win_crypto_Final(md, 16, ctx));
  35122. }
  35123. #else
  35124. static int
  35125. __archive_stub_md5init(archive_md5_ctx *ctx)
  35126. {
  35127. (void)ctx; /* UNUSED */
  35128. return (ARCHIVE_FAILED);
  35129. }
  35130. static int
  35131. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  35132. size_t insize)
  35133. {
  35134. (void)ctx; /* UNUSED */
  35135. (void)indata; /* UNUSED */
  35136. (void)insize; /* UNUSED */
  35137. return (ARCHIVE_FAILED);
  35138. }
  35139. static int
  35140. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  35141. {
  35142. (void)ctx; /* UNUSED */
  35143. (void)md; /* UNUSED */
  35144. return (ARCHIVE_FAILED);
  35145. }
  35146. #endif
  35147. /* RIPEMD160 implementations */
  35148. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  35149. static int
  35150. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  35151. {
  35152. RMD160Init(ctx);
  35153. return (ARCHIVE_OK);
  35154. }
  35155. static int
  35156. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  35157. size_t insize)
  35158. {
  35159. RMD160Update(ctx, indata, insize);
  35160. return (ARCHIVE_OK);
  35161. }
  35162. static int
  35163. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  35164. {
  35165. RMD160Final(md, ctx);
  35166. return (ARCHIVE_OK);
  35167. }
  35168. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  35169. static int
  35170. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  35171. {
  35172. RIPEMD160_Init(ctx);
  35173. return (ARCHIVE_OK);
  35174. }
  35175. static int
  35176. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  35177. size_t insize)
  35178. {
  35179. RIPEMD160_Update(ctx, indata, insize);
  35180. return (ARCHIVE_OK);
  35181. }
  35182. static int
  35183. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  35184. {
  35185. RIPEMD160_Final(md, ctx);
  35186. return (ARCHIVE_OK);
  35187. }
  35188. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  35189. static int
  35190. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  35191. {
  35192. ripemd160_init(ctx);
  35193. return (ARCHIVE_OK);
  35194. }
  35195. static int
  35196. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  35197. size_t insize)
  35198. {
  35199. ripemd160_update(ctx, insize, indata);
  35200. return (ARCHIVE_OK);
  35201. }
  35202. static int
  35203. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  35204. {
  35205. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  35206. return (ARCHIVE_OK);
  35207. }
  35208. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  35209. static int
  35210. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  35211. {
  35212. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  35213. return (ARCHIVE_FAILED);
  35214. EVP_DigestInit(*ctx, EVP_ripemd160());
  35215. return (ARCHIVE_OK);
  35216. }
  35217. static int
  35218. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  35219. size_t insize)
  35220. {
  35221. EVP_DigestUpdate(*ctx, indata, insize);
  35222. return (ARCHIVE_OK);
  35223. }
  35224. static int
  35225. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  35226. {
  35227. if (*ctx) {
  35228. EVP_DigestFinal(*ctx, md, NULL);
  35229. EVP_MD_CTX_free(*ctx);
  35230. *ctx = NULL;
  35231. }
  35232. return (ARCHIVE_OK);
  35233. }
  35234. #else
  35235. static int
  35236. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  35237. {
  35238. (void)ctx; /* UNUSED */
  35239. return (ARCHIVE_FAILED);
  35240. }
  35241. static int
  35242. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  35243. size_t insize)
  35244. {
  35245. (void)ctx; /* UNUSED */
  35246. (void)indata; /* UNUSED */
  35247. (void)insize; /* UNUSED */
  35248. return (ARCHIVE_FAILED);
  35249. }
  35250. static int
  35251. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  35252. {
  35253. (void)ctx; /* UNUSED */
  35254. (void)md; /* UNUSED */
  35255. return (ARCHIVE_FAILED);
  35256. }
  35257. #endif
  35258. /* SHA1 implementations */
  35259. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  35260. static int
  35261. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  35262. {
  35263. SHA1Init(ctx);
  35264. return (ARCHIVE_OK);
  35265. }
  35266. static int
  35267. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  35268. size_t insize)
  35269. {
  35270. SHA1Update(ctx, indata, insize);
  35271. return (ARCHIVE_OK);
  35272. }
  35273. static int
  35274. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  35275. {
  35276. SHA1Final(md, ctx);
  35277. return (ARCHIVE_OK);
  35278. }
  35279. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  35280. static int
  35281. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  35282. {
  35283. SHA1_Init(ctx);
  35284. return (ARCHIVE_OK);
  35285. }
  35286. static int
  35287. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  35288. size_t insize)
  35289. {
  35290. SHA1_Update(ctx, indata, insize);
  35291. return (ARCHIVE_OK);
  35292. }
  35293. static int
  35294. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  35295. {
  35296. SHA1_Final(md, ctx);
  35297. return (ARCHIVE_OK);
  35298. }
  35299. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  35300. static int
  35301. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  35302. {
  35303. CC_SHA1_Init(ctx);
  35304. return (ARCHIVE_OK);
  35305. }
  35306. static int
  35307. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  35308. size_t insize)
  35309. {
  35310. CC_SHA1_Update(ctx, indata, insize);
  35311. return (ARCHIVE_OK);
  35312. }
  35313. static int
  35314. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  35315. {
  35316. CC_SHA1_Final(md, ctx);
  35317. return (ARCHIVE_OK);
  35318. }
  35319. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  35320. static int
  35321. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  35322. {
  35323. sha1_init(ctx);
  35324. return (ARCHIVE_OK);
  35325. }
  35326. static int
  35327. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  35328. size_t insize)
  35329. {
  35330. sha1_update(ctx, insize, indata);
  35331. return (ARCHIVE_OK);
  35332. }
  35333. static int
  35334. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  35335. {
  35336. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  35337. return (ARCHIVE_OK);
  35338. }
  35339. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  35340. static int
  35341. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  35342. {
  35343. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  35344. return (ARCHIVE_FAILED);
  35345. EVP_DigestInit(*ctx, EVP_sha1());
  35346. return (ARCHIVE_OK);
  35347. }
  35348. static int
  35349. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  35350. size_t insize)
  35351. {
  35352. EVP_DigestUpdate(*ctx, indata, insize);
  35353. return (ARCHIVE_OK);
  35354. }
  35355. static int
  35356. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  35357. {
  35358. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  35359. * this is meant to cope with that. Real fix is probably to fix
  35360. * archive_write_set_format_xar.c
  35361. */
  35362. if (*ctx) {
  35363. EVP_DigestFinal(*ctx, md, NULL);
  35364. EVP_MD_CTX_free(*ctx);
  35365. *ctx = NULL;
  35366. }
  35367. return (ARCHIVE_OK);
  35368. }
  35369. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  35370. static int
  35371. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  35372. {
  35373. return (win_crypto_init(ctx, CALG_SHA1));
  35374. }
  35375. static int
  35376. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  35377. size_t insize)
  35378. {
  35379. return (win_crypto_Update(ctx, indata, insize));
  35380. }
  35381. static int
  35382. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  35383. {
  35384. return (win_crypto_Final(md, 20, ctx));
  35385. }
  35386. #else
  35387. static int
  35388. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  35389. {
  35390. (void)ctx; /* UNUSED */
  35391. return (ARCHIVE_FAILED);
  35392. }
  35393. static int
  35394. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  35395. size_t insize)
  35396. {
  35397. (void)ctx; /* UNUSED */
  35398. (void)indata; /* UNUSED */
  35399. (void)insize; /* UNUSED */
  35400. return (ARCHIVE_FAILED);
  35401. }
  35402. static int
  35403. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  35404. {
  35405. (void)ctx; /* UNUSED */
  35406. (void)md; /* UNUSED */
  35407. return (ARCHIVE_FAILED);
  35408. }
  35409. #endif
  35410. /* SHA256 implementations */
  35411. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  35412. static int
  35413. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  35414. {
  35415. SHA256_Init(ctx);
  35416. return (ARCHIVE_OK);
  35417. }
  35418. static int
  35419. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  35420. size_t insize)
  35421. {
  35422. SHA256_Update(ctx, indata, insize);
  35423. return (ARCHIVE_OK);
  35424. }
  35425. static int
  35426. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  35427. {
  35428. SHA256_Final(md, ctx);
  35429. return (ARCHIVE_OK);
  35430. }
  35431. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  35432. static int
  35433. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  35434. {
  35435. SHA256Init(ctx);
  35436. return (ARCHIVE_OK);
  35437. }
  35438. static int
  35439. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  35440. size_t insize)
  35441. {
  35442. SHA256Update(ctx, indata, insize);
  35443. return (ARCHIVE_OK);
  35444. }
  35445. static int
  35446. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  35447. {
  35448. SHA256Final(md, ctx);
  35449. return (ARCHIVE_OK);
  35450. }
  35451. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  35452. static int
  35453. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  35454. {
  35455. SHA256Init(ctx);
  35456. return (ARCHIVE_OK);
  35457. }
  35458. static int
  35459. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  35460. size_t insize)
  35461. {
  35462. SHA256Update(ctx, indata, insize);
  35463. return (ARCHIVE_OK);
  35464. }
  35465. static int
  35466. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  35467. {
  35468. SHA256Final(md, ctx);
  35469. return (ARCHIVE_OK);
  35470. }
  35471. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  35472. static int
  35473. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  35474. {
  35475. SHA256_Init(ctx);
  35476. return (ARCHIVE_OK);
  35477. }
  35478. static int
  35479. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  35480. size_t insize)
  35481. {
  35482. SHA256_Update(ctx, indata, insize);
  35483. return (ARCHIVE_OK);
  35484. }
  35485. static int
  35486. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  35487. {
  35488. SHA256_Final(md, ctx);
  35489. return (ARCHIVE_OK);
  35490. }
  35491. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  35492. static int
  35493. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  35494. {
  35495. CC_SHA256_Init(ctx);
  35496. return (ARCHIVE_OK);
  35497. }
  35498. static int
  35499. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  35500. size_t insize)
  35501. {
  35502. CC_SHA256_Update(ctx, indata, insize);
  35503. return (ARCHIVE_OK);
  35504. }
  35505. static int
  35506. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  35507. {
  35508. CC_SHA256_Final(md, ctx);
  35509. return (ARCHIVE_OK);
  35510. }
  35511. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  35512. static int
  35513. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  35514. {
  35515. sha256_init(ctx);
  35516. return (ARCHIVE_OK);
  35517. }
  35518. static int
  35519. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  35520. size_t insize)
  35521. {
  35522. sha256_update(ctx, insize, indata);
  35523. return (ARCHIVE_OK);
  35524. }
  35525. static int
  35526. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  35527. {
  35528. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  35529. return (ARCHIVE_OK);
  35530. }
  35531. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  35532. static int
  35533. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  35534. {
  35535. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  35536. return (ARCHIVE_FAILED);
  35537. EVP_DigestInit(*ctx, EVP_sha256());
  35538. return (ARCHIVE_OK);
  35539. }
  35540. static int
  35541. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  35542. size_t insize)
  35543. {
  35544. EVP_DigestUpdate(*ctx, indata, insize);
  35545. return (ARCHIVE_OK);
  35546. }
  35547. static int
  35548. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  35549. {
  35550. if (*ctx) {
  35551. EVP_DigestFinal(*ctx, md, NULL);
  35552. EVP_MD_CTX_free(*ctx);
  35553. *ctx = NULL;
  35554. }
  35555. return (ARCHIVE_OK);
  35556. }
  35557. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  35558. static int
  35559. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  35560. {
  35561. return (win_crypto_init(ctx, CALG_SHA_256));
  35562. }
  35563. static int
  35564. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  35565. size_t insize)
  35566. {
  35567. return (win_crypto_Update(ctx, indata, insize));
  35568. }
  35569. static int
  35570. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  35571. {
  35572. return (win_crypto_Final(md, 32, ctx));
  35573. }
  35574. #else
  35575. static int
  35576. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  35577. {
  35578. (void)ctx; /* UNUSED */
  35579. return (ARCHIVE_FAILED);
  35580. }
  35581. static int
  35582. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  35583. size_t insize)
  35584. {
  35585. (void)ctx; /* UNUSED */
  35586. (void)indata; /* UNUSED */
  35587. (void)insize; /* UNUSED */
  35588. return (ARCHIVE_FAILED);
  35589. }
  35590. static int
  35591. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  35592. {
  35593. (void)ctx; /* UNUSED */
  35594. (void)md; /* UNUSED */
  35595. return (ARCHIVE_FAILED);
  35596. }
  35597. #endif
  35598. /* SHA384 implementations */
  35599. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  35600. static int
  35601. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  35602. {
  35603. SHA384_Init(ctx);
  35604. return (ARCHIVE_OK);
  35605. }
  35606. static int
  35607. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  35608. size_t insize)
  35609. {
  35610. SHA384_Update(ctx, indata, insize);
  35611. return (ARCHIVE_OK);
  35612. }
  35613. static int
  35614. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  35615. {
  35616. SHA384_Final(md, ctx);
  35617. return (ARCHIVE_OK);
  35618. }
  35619. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  35620. static int
  35621. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  35622. {
  35623. SHA384Init(ctx);
  35624. return (ARCHIVE_OK);
  35625. }
  35626. static int
  35627. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  35628. size_t insize)
  35629. {
  35630. SHA384Update(ctx, indata, insize);
  35631. return (ARCHIVE_OK);
  35632. }
  35633. static int
  35634. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  35635. {
  35636. SHA384Final(md, ctx);
  35637. return (ARCHIVE_OK);
  35638. }
  35639. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  35640. static int
  35641. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  35642. {
  35643. SHA384Init(ctx);
  35644. return (ARCHIVE_OK);
  35645. }
  35646. static int
  35647. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  35648. size_t insize)
  35649. {
  35650. SHA384Update(ctx, indata, insize);
  35651. return (ARCHIVE_OK);
  35652. }
  35653. static int
  35654. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  35655. {
  35656. SHA384Final(md, ctx);
  35657. return (ARCHIVE_OK);
  35658. }
  35659. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  35660. static int
  35661. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  35662. {
  35663. CC_SHA384_Init(ctx);
  35664. return (ARCHIVE_OK);
  35665. }
  35666. static int
  35667. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  35668. size_t insize)
  35669. {
  35670. CC_SHA384_Update(ctx, indata, insize);
  35671. return (ARCHIVE_OK);
  35672. }
  35673. static int
  35674. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  35675. {
  35676. CC_SHA384_Final(md, ctx);
  35677. return (ARCHIVE_OK);
  35678. }
  35679. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  35680. static int
  35681. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  35682. {
  35683. sha384_init(ctx);
  35684. return (ARCHIVE_OK);
  35685. }
  35686. static int
  35687. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  35688. size_t insize)
  35689. {
  35690. sha384_update(ctx, insize, indata);
  35691. return (ARCHIVE_OK);
  35692. }
  35693. static int
  35694. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  35695. {
  35696. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  35697. return (ARCHIVE_OK);
  35698. }
  35699. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  35700. static int
  35701. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  35702. {
  35703. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  35704. return (ARCHIVE_FAILED);
  35705. EVP_DigestInit(*ctx, EVP_sha384());
  35706. return (ARCHIVE_OK);
  35707. }
  35708. static int
  35709. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  35710. size_t insize)
  35711. {
  35712. EVP_DigestUpdate(*ctx, indata, insize);
  35713. return (ARCHIVE_OK);
  35714. }
  35715. static int
  35716. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  35717. {
  35718. if (*ctx) {
  35719. EVP_DigestFinal(*ctx, md, NULL);
  35720. EVP_MD_CTX_free(*ctx);
  35721. *ctx = NULL;
  35722. }
  35723. return (ARCHIVE_OK);
  35724. }
  35725. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  35726. static int
  35727. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  35728. {
  35729. return (win_crypto_init(ctx, CALG_SHA_384));
  35730. }
  35731. static int
  35732. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  35733. size_t insize)
  35734. {
  35735. return (win_crypto_Update(ctx, indata, insize));
  35736. }
  35737. static int
  35738. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  35739. {
  35740. return (win_crypto_Final(md, 48, ctx));
  35741. }
  35742. #else
  35743. static int
  35744. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  35745. {
  35746. (void)ctx; /* UNUSED */
  35747. return (ARCHIVE_FAILED);
  35748. }
  35749. static int
  35750. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  35751. size_t insize)
  35752. {
  35753. (void)ctx; /* UNUSED */
  35754. (void)indata; /* UNUSED */
  35755. (void)insize; /* UNUSED */
  35756. return (ARCHIVE_FAILED);
  35757. }
  35758. static int
  35759. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  35760. {
  35761. (void)ctx; /* UNUSED */
  35762. (void)md; /* UNUSED */
  35763. return (ARCHIVE_FAILED);
  35764. }
  35765. #endif
  35766. /* SHA512 implementations */
  35767. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  35768. static int
  35769. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  35770. {
  35771. SHA512_Init(ctx);
  35772. return (ARCHIVE_OK);
  35773. }
  35774. static int
  35775. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  35776. size_t insize)
  35777. {
  35778. SHA512_Update(ctx, indata, insize);
  35779. return (ARCHIVE_OK);
  35780. }
  35781. static int
  35782. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  35783. {
  35784. SHA512_Final(md, ctx);
  35785. return (ARCHIVE_OK);
  35786. }
  35787. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  35788. static int
  35789. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  35790. {
  35791. SHA512Init(ctx);
  35792. return (ARCHIVE_OK);
  35793. }
  35794. static int
  35795. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  35796. size_t insize)
  35797. {
  35798. SHA512Update(ctx, indata, insize);
  35799. return (ARCHIVE_OK);
  35800. }
  35801. static int
  35802. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  35803. {
  35804. SHA512Final(md, ctx);
  35805. return (ARCHIVE_OK);
  35806. }
  35807. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  35808. static int
  35809. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  35810. {
  35811. SHA512Init(ctx);
  35812. return (ARCHIVE_OK);
  35813. }
  35814. static int
  35815. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  35816. size_t insize)
  35817. {
  35818. SHA512Update(ctx, indata, insize);
  35819. return (ARCHIVE_OK);
  35820. }
  35821. static int
  35822. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  35823. {
  35824. SHA512Final(md, ctx);
  35825. return (ARCHIVE_OK);
  35826. }
  35827. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  35828. static int
  35829. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  35830. {
  35831. SHA512_Init(ctx);
  35832. return (ARCHIVE_OK);
  35833. }
  35834. static int
  35835. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  35836. size_t insize)
  35837. {
  35838. SHA512_Update(ctx, indata, insize);
  35839. return (ARCHIVE_OK);
  35840. }
  35841. static int
  35842. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  35843. {
  35844. SHA512_Final(md, ctx);
  35845. return (ARCHIVE_OK);
  35846. }
  35847. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  35848. static int
  35849. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  35850. {
  35851. CC_SHA512_Init(ctx);
  35852. return (ARCHIVE_OK);
  35853. }
  35854. static int
  35855. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  35856. size_t insize)
  35857. {
  35858. CC_SHA512_Update(ctx, indata, insize);
  35859. return (ARCHIVE_OK);
  35860. }
  35861. static int
  35862. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  35863. {
  35864. CC_SHA512_Final(md, ctx);
  35865. return (ARCHIVE_OK);
  35866. }
  35867. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  35868. static int
  35869. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  35870. {
  35871. sha512_init(ctx);
  35872. return (ARCHIVE_OK);
  35873. }
  35874. static int
  35875. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  35876. size_t insize)
  35877. {
  35878. sha512_update(ctx, insize, indata);
  35879. return (ARCHIVE_OK);
  35880. }
  35881. static int
  35882. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  35883. {
  35884. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  35885. return (ARCHIVE_OK);
  35886. }
  35887. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  35888. static int
  35889. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  35890. {
  35891. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  35892. return (ARCHIVE_FAILED);
  35893. EVP_DigestInit(*ctx, EVP_sha512());
  35894. return (ARCHIVE_OK);
  35895. }
  35896. static int
  35897. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  35898. size_t insize)
  35899. {
  35900. EVP_DigestUpdate(*ctx, indata, insize);
  35901. return (ARCHIVE_OK);
  35902. }
  35903. static int
  35904. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  35905. {
  35906. if (*ctx) {
  35907. EVP_DigestFinal(*ctx, md, NULL);
  35908. EVP_MD_CTX_free(*ctx);
  35909. *ctx = NULL;
  35910. }
  35911. return (ARCHIVE_OK);
  35912. }
  35913. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  35914. static int
  35915. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  35916. {
  35917. return (win_crypto_init(ctx, CALG_SHA_512));
  35918. }
  35919. static int
  35920. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  35921. size_t insize)
  35922. {
  35923. return (win_crypto_Update(ctx, indata, insize));
  35924. }
  35925. static int
  35926. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  35927. {
  35928. return (win_crypto_Final(md, 64, ctx));
  35929. }
  35930. #else
  35931. static int
  35932. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  35933. {
  35934. (void)ctx; /* UNUSED */
  35935. return (ARCHIVE_FAILED);
  35936. }
  35937. static int
  35938. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  35939. size_t insize)
  35940. {
  35941. (void)ctx; /* UNUSED */
  35942. (void)indata; /* UNUSED */
  35943. (void)insize; /* UNUSED */
  35944. return (ARCHIVE_FAILED);
  35945. }
  35946. static int
  35947. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  35948. {
  35949. (void)ctx; /* UNUSED */
  35950. (void)md; /* UNUSED */
  35951. return (ARCHIVE_FAILED);
  35952. }
  35953. #endif
  35954. /* NOTE: Message Digest functions are set based on availability and by the
  35955. * following order of preference.
  35956. * 1. libc
  35957. * 2. libc2
  35958. * 3. libc3
  35959. * 4. libSystem
  35960. * 5. Nettle
  35961. * 6. OpenSSL
  35962. * 7. libmd
  35963. * 8. Windows API
  35964. */
  35965. const struct archive_digest __archive_digest =
  35966. {
  35967. /* MD5 */
  35968. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  35969. &__archive_libc_md5init,
  35970. &__archive_libc_md5update,
  35971. &__archive_libc_md5final,
  35972. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  35973. &__archive_libmd_md5init,
  35974. &__archive_libmd_md5update,
  35975. &__archive_libmd_md5final,
  35976. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  35977. &__archive_libsystem_md5init,
  35978. &__archive_libsystem_md5update,
  35979. &__archive_libsystem_md5final,
  35980. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  35981. &__archive_nettle_md5init,
  35982. &__archive_nettle_md5update,
  35983. &__archive_nettle_md5final,
  35984. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  35985. &__archive_openssl_md5init,
  35986. &__archive_openssl_md5update,
  35987. &__archive_openssl_md5final,
  35988. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  35989. &__archive_windowsapi_md5init,
  35990. &__archive_windowsapi_md5update,
  35991. &__archive_windowsapi_md5final,
  35992. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  35993. &__archive_stub_md5init,
  35994. &__archive_stub_md5update,
  35995. &__archive_stub_md5final,
  35996. #endif
  35997. /* RIPEMD160 */
  35998. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  35999. &__archive_libc_ripemd160init,
  36000. &__archive_libc_ripemd160update,
  36001. &__archive_libc_ripemd160final,
  36002. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  36003. &__archive_libmd_ripemd160init,
  36004. &__archive_libmd_ripemd160update,
  36005. &__archive_libmd_ripemd160final,
  36006. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  36007. &__archive_nettle_ripemd160init,
  36008. &__archive_nettle_ripemd160update,
  36009. &__archive_nettle_ripemd160final,
  36010. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  36011. &__archive_openssl_ripemd160init,
  36012. &__archive_openssl_ripemd160update,
  36013. &__archive_openssl_ripemd160final,
  36014. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  36015. &__archive_stub_ripemd160init,
  36016. &__archive_stub_ripemd160update,
  36017. &__archive_stub_ripemd160final,
  36018. #endif
  36019. /* SHA1 */
  36020. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  36021. &__archive_libc_sha1init,
  36022. &__archive_libc_sha1update,
  36023. &__archive_libc_sha1final,
  36024. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  36025. &__archive_libmd_sha1init,
  36026. &__archive_libmd_sha1update,
  36027. &__archive_libmd_sha1final,
  36028. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  36029. &__archive_libsystem_sha1init,
  36030. &__archive_libsystem_sha1update,
  36031. &__archive_libsystem_sha1final,
  36032. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  36033. &__archive_nettle_sha1init,
  36034. &__archive_nettle_sha1update,
  36035. &__archive_nettle_sha1final,
  36036. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  36037. &__archive_openssl_sha1init,
  36038. &__archive_openssl_sha1update,
  36039. &__archive_openssl_sha1final,
  36040. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  36041. &__archive_windowsapi_sha1init,
  36042. &__archive_windowsapi_sha1update,
  36043. &__archive_windowsapi_sha1final,
  36044. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  36045. &__archive_stub_sha1init,
  36046. &__archive_stub_sha1update,
  36047. &__archive_stub_sha1final,
  36048. #endif
  36049. /* SHA256 */
  36050. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  36051. &__archive_libc_sha256init,
  36052. &__archive_libc_sha256update,
  36053. &__archive_libc_sha256final,
  36054. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  36055. &__archive_libc2_sha256init,
  36056. &__archive_libc2_sha256update,
  36057. &__archive_libc2_sha256final,
  36058. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  36059. &__archive_libc3_sha256init,
  36060. &__archive_libc3_sha256update,
  36061. &__archive_libc3_sha256final,
  36062. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  36063. &__archive_libmd_sha256init,
  36064. &__archive_libmd_sha256update,
  36065. &__archive_libmd_sha256final,
  36066. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  36067. &__archive_libsystem_sha256init,
  36068. &__archive_libsystem_sha256update,
  36069. &__archive_libsystem_sha256final,
  36070. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  36071. &__archive_nettle_sha256init,
  36072. &__archive_nettle_sha256update,
  36073. &__archive_nettle_sha256final,
  36074. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  36075. &__archive_openssl_sha256init,
  36076. &__archive_openssl_sha256update,
  36077. &__archive_openssl_sha256final,
  36078. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  36079. &__archive_windowsapi_sha256init,
  36080. &__archive_windowsapi_sha256update,
  36081. &__archive_windowsapi_sha256final,
  36082. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  36083. &__archive_stub_sha256init,
  36084. &__archive_stub_sha256update,
  36085. &__archive_stub_sha256final,
  36086. #endif
  36087. /* SHA384 */
  36088. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  36089. &__archive_libc_sha384init,
  36090. &__archive_libc_sha384update,
  36091. &__archive_libc_sha384final,
  36092. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  36093. &__archive_libc2_sha384init,
  36094. &__archive_libc2_sha384update,
  36095. &__archive_libc2_sha384final,
  36096. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  36097. &__archive_libc3_sha384init,
  36098. &__archive_libc3_sha384update,
  36099. &__archive_libc3_sha384final,
  36100. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  36101. &__archive_libsystem_sha384init,
  36102. &__archive_libsystem_sha384update,
  36103. &__archive_libsystem_sha384final,
  36104. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  36105. &__archive_nettle_sha384init,
  36106. &__archive_nettle_sha384update,
  36107. &__archive_nettle_sha384final,
  36108. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  36109. &__archive_openssl_sha384init,
  36110. &__archive_openssl_sha384update,
  36111. &__archive_openssl_sha384final,
  36112. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  36113. &__archive_windowsapi_sha384init,
  36114. &__archive_windowsapi_sha384update,
  36115. &__archive_windowsapi_sha384final,
  36116. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  36117. &__archive_stub_sha384init,
  36118. &__archive_stub_sha384update,
  36119. &__archive_stub_sha384final,
  36120. #endif
  36121. /* SHA512 */
  36122. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  36123. &__archive_libc_sha512init,
  36124. &__archive_libc_sha512update,
  36125. &__archive_libc_sha512final
  36126. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  36127. &__archive_libc2_sha512init,
  36128. &__archive_libc2_sha512update,
  36129. &__archive_libc2_sha512final
  36130. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  36131. &__archive_libc3_sha512init,
  36132. &__archive_libc3_sha512update,
  36133. &__archive_libc3_sha512final
  36134. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  36135. &__archive_libmd_sha512init,
  36136. &__archive_libmd_sha512update,
  36137. &__archive_libmd_sha512final
  36138. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  36139. &__archive_libsystem_sha512init,
  36140. &__archive_libsystem_sha512update,
  36141. &__archive_libsystem_sha512final
  36142. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  36143. &__archive_nettle_sha512init,
  36144. &__archive_nettle_sha512update,
  36145. &__archive_nettle_sha512final
  36146. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  36147. &__archive_openssl_sha512init,
  36148. &__archive_openssl_sha512update,
  36149. &__archive_openssl_sha512final
  36150. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  36151. &__archive_windowsapi_sha512init,
  36152. &__archive_windowsapi_sha512update,
  36153. &__archive_windowsapi_sha512final
  36154. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  36155. &__archive_stub_sha512init,
  36156. &__archive_stub_sha512update,
  36157. &__archive_stub_sha512final
  36158. #endif
  36159. };
  36160. int
  36161. main(int argc, char **argv)
  36162. {
  36163. archive_md5_ctx ctx;
  36164. archive_md5_init(&ctx);
  36165. archive_md5_update(&ctx, *argv, argc);
  36166. archive_md5_final(&ctx, NULL);
  36167. return 0;
  36168. }
  36169. Checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM failed with the following output:
  36170. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  36171. Run Build Command:"/usr/bin/make" "cmTC_ff763/fast"
  36172. make -f CMakeFiles/cmTC_ff763.dir/build.make CMakeFiles/cmTC_ff763.dir/build
  36173. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  36174. Building C object CMakeFiles/cmTC_ff763.dir/check_crypto_md.c.o
  36175. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_ff763.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  36176. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  36177. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:112:39: fatal error: CommonCrypto/CommonDigest.h: No such file or directory
  36178. compilation terminated.
  36179. CMakeFiles/cmTC_ff763.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_ff763.dir/check_crypto_md.c.o' failed
  36180. make[1]: *** [CMakeFiles/cmTC_ff763.dir/check_crypto_md.c.o] Error 1
  36181. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  36182. Makefile:126: recipe for target 'cmTC_ff763/fast' failed
  36183. make: *** [cmTC_ff763/fast] Error 2
  36184. Source file was:
  36185. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  36186. #if defined(__osf__)
  36187. # define _OSF_SOURCE
  36188. #endif
  36189. /*
  36190. * Ensure we have C99-style int64_t, etc, all defined.
  36191. */
  36192. /* First, we need to know if the system has already defined them. */
  36193. #define HAVE_INT16_T
  36194. #define HAVE_INT32_T
  36195. #define HAVE_INT64_T
  36196. #define HAVE_INTMAX_T
  36197. #define HAVE_UINT8_T
  36198. #define HAVE_UINT16_T
  36199. #define HAVE_UINT32_T
  36200. #define HAVE_UINT64_T
  36201. #define HAVE_UINTMAX_T
  36202. /* We might have the types we want under other spellings. */
  36203. /* #undef HAVE___INT64 */
  36204. /* #undef HAVE_U_INT64_T */
  36205. /* #undef HAVE_UNSIGNED___INT64 */
  36206. /* The sizes of various standard integer types. */
  36207. #define SIZE_OF_SHORT 2
  36208. #define SIZE_OF_INT 4
  36209. #define SIZE_OF_LONG 8
  36210. #define SIZE_OF_LONG_LONG 8
  36211. #define SIZE_OF_UNSIGNED_SHORT 2
  36212. #define SIZE_OF_UNSIGNED 4
  36213. #define SIZE_OF_UNSIGNED_LONG 8
  36214. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  36215. /*
  36216. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  36217. * that exists and is the right size.
  36218. */
  36219. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  36220. typedef __int64 int64_t;
  36221. #define HAVE_INT64_T
  36222. #endif
  36223. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  36224. typedef int int64_t;
  36225. #define HAVE_INT64_T
  36226. #endif
  36227. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  36228. typedef long int64_t;
  36229. #define HAVE_INT64_T
  36230. #endif
  36231. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  36232. typedef long long int64_t;
  36233. #define HAVE_INT64_T
  36234. #endif
  36235. #if !defined(HAVE_INT64_T)
  36236. #error No 64-bit integer type was found.
  36237. #endif
  36238. /*
  36239. * Similarly for int32_t
  36240. */
  36241. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  36242. typedef int int32_t;
  36243. #define HAVE_INT32_T
  36244. #endif
  36245. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  36246. typedef long int32_t;
  36247. #define HAVE_INT32_T
  36248. #endif
  36249. #if !defined(HAVE_INT32_T)
  36250. #error No 32-bit integer type was found.
  36251. #endif
  36252. /*
  36253. * Similarly for int16_t
  36254. */
  36255. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  36256. typedef int int16_t;
  36257. #define HAVE_INT16_T
  36258. #endif
  36259. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  36260. typedef short int16_t;
  36261. #define HAVE_INT16_T
  36262. #endif
  36263. #if !defined(HAVE_INT16_T)
  36264. #error No 16-bit integer type was found.
  36265. #endif
  36266. /*
  36267. * Similarly for uint64_t
  36268. */
  36269. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  36270. typedef unsigned __int64 uint64_t;
  36271. #define HAVE_UINT64_T
  36272. #endif
  36273. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  36274. typedef unsigned uint64_t;
  36275. #define HAVE_UINT64_T
  36276. #endif
  36277. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  36278. typedef unsigned long uint64_t;
  36279. #define HAVE_UINT64_T
  36280. #endif
  36281. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  36282. typedef unsigned long long uint64_t;
  36283. #define HAVE_UINT64_T
  36284. #endif
  36285. #if !defined(HAVE_UINT64_T)
  36286. #error No 64-bit unsigned integer type was found.
  36287. #endif
  36288. /*
  36289. * Similarly for uint32_t
  36290. */
  36291. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  36292. typedef unsigned uint32_t;
  36293. #define HAVE_UINT32_T
  36294. #endif
  36295. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  36296. typedef unsigned long uint32_t;
  36297. #define HAVE_UINT32_T
  36298. #endif
  36299. #if !defined(HAVE_UINT32_T)
  36300. #error No 32-bit unsigned integer type was found.
  36301. #endif
  36302. /*
  36303. * Similarly for uint16_t
  36304. */
  36305. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  36306. typedef unsigned uint16_t;
  36307. #define HAVE_UINT16_T
  36308. #endif
  36309. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  36310. typedef unsigned short uint16_t;
  36311. #define HAVE_UINT16_T
  36312. #endif
  36313. #if !defined(HAVE_UINT16_T)
  36314. #error No 16-bit unsigned integer type was found.
  36315. #endif
  36316. /*
  36317. * Similarly for uint8_t
  36318. */
  36319. #if !defined(HAVE_UINT8_T)
  36320. typedef unsigned char uint8_t;
  36321. #define HAVE_UINT8_T
  36322. #endif
  36323. #if !defined(HAVE_UINT16_T)
  36324. #error No 8-bit unsigned integer type was found.
  36325. #endif
  36326. /* Define intmax_t and uintmax_t if they are not already defined. */
  36327. #if !defined(HAVE_INTMAX_T)
  36328. typedef int64_t intmax_t;
  36329. #endif
  36330. #if !defined(HAVE_UINTMAX_T)
  36331. typedef uint64_t uintmax_t;
  36332. #endif
  36333. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  36334. /* #undef ZLIB_WINAPI */
  36335. /* Darwin ACL support */
  36336. /* #undef ARCHIVE_ACL_DARWIN */
  36337. /* FreeBSD ACL support */
  36338. /* #undef ARCHIVE_ACL_FREEBSD */
  36339. /* FreeBSD NFSv4 ACL support */
  36340. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  36341. /* Linux POSIX.1e ACL support via libacl */
  36342. /* #undef ARCHIVE_ACL_LIBACL */
  36343. /* Linux NFSv4 ACL support via librichacl */
  36344. /* #undef ARCHIVE_ACL_LIBRICHACL */
  36345. /* Solaris ACL support */
  36346. /* #undef ARCHIVE_ACL_SUNOS */
  36347. /* Solaris NFSv4 ACL support */
  36348. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  36349. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  36350. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  36351. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  36352. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  36353. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  36354. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  36355. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  36356. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  36357. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  36358. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  36359. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  36360. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  36361. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  36362. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  36363. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  36364. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  36365. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  36366. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  36367. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  36368. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  36369. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  36370. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  36371. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  36372. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  36373. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  36374. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  36375. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  36376. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  36377. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  36378. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  36379. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  36380. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  36381. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  36382. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  36383. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  36384. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  36385. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  36386. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  36387. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  36388. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  36389. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  36390. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  36391. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  36392. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  36393. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  36394. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  36395. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  36396. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  36397. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  36398. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  36399. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  36400. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  36401. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  36402. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  36403. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  36404. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  36405. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  36406. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  36407. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  36408. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  36409. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  36410. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  36411. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  36412. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  36413. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  36414. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  36415. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  36416. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  36417. /* AIX xattr support */
  36418. /* #undef ARCHIVE_XATTR_AIX */
  36419. /* Darwin xattr support */
  36420. /* #undef ARCHIVE_XATTR_DARWIN */
  36421. /* FreeBSD xattr support */
  36422. /* #undef ARCHIVE_XATTR_FREEBSD */
  36423. /* Linux xattr support */
  36424. /* #undef ARCHIVE_XATTR_LINUX */
  36425. /* Version number of bsdcpio */
  36426. #define BSDCPIO_VERSION_STRING "3.3.2"
  36427. /* Version number of bsdtar */
  36428. #define BSDTAR_VERSION_STRING "3.3.2"
  36429. /* Version number of bsdcat */
  36430. #define BSDCAT_VERSION_STRING "3.3.2"
  36431. /* Define to 1 if you have the `acl_create_entry' function. */
  36432. /* #undef HAVE_ACL_CREATE_ENTRY */
  36433. /* Define to 1 if you have the `acl_get_fd_np' function. */
  36434. /* #undef HAVE_ACL_GET_FD_NP */
  36435. /* Define to 1 if you have the `acl_get_link' function. */
  36436. /* #undef HAVE_ACL_GET_LINK */
  36437. /* Define to 1 if you have the `acl_get_link_np' function. */
  36438. /* #undef HAVE_ACL_GET_LINK_NP */
  36439. /* Define to 1 if you have the `acl_get_perm' function. */
  36440. /* #undef HAVE_ACL_GET_PERM */
  36441. /* Define to 1 if you have the `acl_get_perm_np' function. */
  36442. /* #undef HAVE_ACL_GET_PERM_NP */
  36443. /* Define to 1 if you have the `acl_init' function. */
  36444. /* #undef HAVE_ACL_INIT */
  36445. /* Define to 1 if you have the <acl/libacl.h> header file. */
  36446. /* #undef HAVE_ACL_LIBACL_H */
  36447. /* Define to 1 if the system has the type `acl_permset_t'. */
  36448. /* #undef HAVE_ACL_PERMSET_T */
  36449. /* Define to 1 if you have the `acl_set_fd' function. */
  36450. /* #undef HAVE_ACL_SET_FD */
  36451. /* Define to 1 if you have the `acl_set_fd_np' function. */
  36452. /* #undef HAVE_ACL_SET_FD_NP */
  36453. /* Define to 1 if you have the `acl_set_file' function. */
  36454. /* #undef HAVE_ACL_SET_FILE */
  36455. /* Define to 1 if you have the `arc4random_buf' function. */
  36456. /* #undef HAVE_ARC4RANDOM_BUF */
  36457. /* Define to 1 if you have the <attr/xattr.h> header file. */
  36458. /* #undef HAVE_ATTR_XATTR_H */
  36459. /* Define to 1 if you have the <Bcrypt.h> header file. */
  36460. /* #undef HAVE_BCRYPT_H */
  36461. /* Define to 1 if you have the <bsdxml.h> header file. */
  36462. /* #undef HAVE_BSDXML_H */
  36463. /* Define to 1 if you have the <bzlib.h> header file. */
  36464. #define HAVE_BZLIB_H 1
  36465. /* Define to 1 if you have the `chflags' function. */
  36466. /* #undef HAVE_CHFLAGS */
  36467. /* Define to 1 if you have the `chown' function. */
  36468. #define HAVE_CHOWN 1
  36469. /* Define to 1 if you have the `chroot' function. */
  36470. #define HAVE_CHROOT 1
  36471. /* Define to 1 if you have the <copyfile.h> header file. */
  36472. /* #undef HAVE_COPYFILE_H */
  36473. /* Define to 1 if you have the `ctime_r' function. */
  36474. #define HAVE_CTIME_R 1
  36475. /* Define to 1 if you have the <ctype.h> header file. */
  36476. #define HAVE_CTYPE_H 1
  36477. /* Define to 1 if you have the `cygwin_conv_path' function. */
  36478. /* #undef HAVE_CYGWIN_CONV_PATH */
  36479. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  36480. don't. */
  36481. /* #undef HAVE_DECL_ACE_GETACL */
  36482. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  36483. don't. */
  36484. /* #undef HAVE_DECL_ACE_GETACLCNT */
  36485. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  36486. don't. */
  36487. /* #undef HAVE_DECL_ACE_SETACL */
  36488. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  36489. you don't. */
  36490. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  36491. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  36492. you don't. */
  36493. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  36494. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  36495. don't. */
  36496. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  36497. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  36498. don't. */
  36499. /* #undef HAVE_DECL_ACL_USER */
  36500. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  36501. don't. */
  36502. #define HAVE_DECL_INT32_MAX 1
  36503. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  36504. don't. */
  36505. #define HAVE_DECL_INT32_MIN 1
  36506. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  36507. don't. */
  36508. #define HAVE_DECL_INT64_MAX 1
  36509. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  36510. don't. */
  36511. #define HAVE_DECL_INT64_MIN 1
  36512. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  36513. don't. */
  36514. #define HAVE_DECL_INTMAX_MAX 1
  36515. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  36516. don't. */
  36517. #define HAVE_DECL_INTMAX_MIN 1
  36518. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  36519. */
  36520. /* #undef HAVE_DECL_SETACL */
  36521. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  36522. don't. */
  36523. #define HAVE_DECL_SIZE_MAX 1
  36524. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  36525. don't. */
  36526. #define HAVE_DECL_SSIZE_MAX 1
  36527. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  36528. don't. */
  36529. #define HAVE_DECL_STRERROR_R 1
  36530. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  36531. don't. */
  36532. #define HAVE_DECL_UINT32_MAX 1
  36533. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  36534. don't. */
  36535. #define HAVE_DECL_UINT64_MAX 1
  36536. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  36537. don't. */
  36538. #define HAVE_DECL_UINTMAX_MAX 1
  36539. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  36540. you don't. */
  36541. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  36542. /* Define to 1 if you have the <direct.h> header file. */
  36543. /* #undef HAVE_DIRECT_H */
  36544. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  36545. */
  36546. #define HAVE_DIRENT_H 1
  36547. /* Define to 1 if you have the `dirfd' function. */
  36548. #define HAVE_DIRFD 1
  36549. /* Define to 1 if you have the <dlfcn.h> header file. */
  36550. #define HAVE_DLFCN_H 1
  36551. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  36552. /* #undef HAVE_DOPRNT */
  36553. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  36554. /* #undef HAVE_D_MD_ORDER */
  36555. /* A possible errno value for invalid file format errors */
  36556. /* #undef HAVE_EFTYPE */
  36557. /* A possible errno value for invalid file format errors */
  36558. #define HAVE_EILSEQ 1
  36559. /* Define to 1 if you have the <errno.h> header file. */
  36560. #define HAVE_ERRNO_H 1
  36561. /* Define to 1 if you have the <expat.h> header file. */
  36562. /* #undef HAVE_EXPAT_H */
  36563. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  36564. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  36565. /* Define to 1 if you have the `extattr_get_file' function. */
  36566. /* #undef HAVE_EXTATTR_GET_FILE */
  36567. /* Define to 1 if you have the `extattr_list_file' function. */
  36568. /* #undef HAVE_EXTATTR_LIST_FILE */
  36569. /* Define to 1 if you have the `extattr_set_fd' function. */
  36570. /* #undef HAVE_EXTATTR_SET_FD */
  36571. /* Define to 1 if you have the `extattr_set_file' function. */
  36572. /* #undef HAVE_EXTATTR_SET_FILE */
  36573. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  36574. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  36575. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  36576. */
  36577. /* #undef HAVE_DECL_GETACL */
  36578. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  36579. don't. */
  36580. /* #undef HAVE_DECL_GETACLCNT */
  36581. /* Define to 1 if you have the `fchdir' function. */
  36582. #define HAVE_FCHDIR 1
  36583. /* Define to 1 if you have the `fchflags' function. */
  36584. /* #undef HAVE_FCHFLAGS */
  36585. /* Define to 1 if you have the `fchmod' function. */
  36586. #define HAVE_FCHMOD 1
  36587. /* Define to 1 if you have the `fchown' function. */
  36588. #define HAVE_FCHOWN 1
  36589. /* Define to 1 if you have the `fcntl' function. */
  36590. #define HAVE_FCNTL 1
  36591. /* Define to 1 if you have the <fcntl.h> header file. */
  36592. #define HAVE_FCNTL_H 1
  36593. /* Define to 1 if you have the `fdopendir' function. */
  36594. #define HAVE_FDOPENDIR 1
  36595. /* Define to 1 if you have the `fgetea' function. */
  36596. /* #undef HAVE_FGETEA */
  36597. /* Define to 1 if you have the `fgetxattr' function. */
  36598. /* #undef HAVE_FGETXATTR */
  36599. /* Define to 1 if you have the `flistea' function. */
  36600. /* #undef HAVE_FLISTEA */
  36601. /* Define to 1 if you have the `flistxattr' function. */
  36602. /* #undef HAVE_FLISTXATTR */
  36603. /* Define to 1 if you have the `fork' function. */
  36604. #define HAVE_FORK 1
  36605. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  36606. #define HAVE_FSEEKO 1
  36607. /* Define to 1 if you have the `fsetea' function. */
  36608. /* #undef HAVE_FSETEA */
  36609. /* Define to 1 if you have the `fsetxattr' function. */
  36610. #define HAVE_FSETXATTR 1
  36611. /* Define to 1 if you have the `fstat' function. */
  36612. #define HAVE_FSTAT 1
  36613. /* Define to 1 if you have the `fstatat' function. */
  36614. #define HAVE_FSTATAT 1
  36615. /* Define to 1 if you have the `fstatfs' function. */
  36616. #define HAVE_FSTATFS 1
  36617. /* Define to 1 if you have the `fstatvfs' function. */
  36618. #define HAVE_FSTATVFS 1
  36619. /* Define to 1 if you have the `ftruncate' function. */
  36620. #define HAVE_FTRUNCATE 1
  36621. /* Define to 1 if you have the `futimens' function. */
  36622. #define HAVE_FUTIMENS 1
  36623. /* Define to 1 if you have the `futimes' function. */
  36624. #define HAVE_FUTIMES 1
  36625. /* Define to 1 if you have the `futimesat' function. */
  36626. #define HAVE_FUTIMESAT 1
  36627. /* Define to 1 if you have the `getea' function. */
  36628. /* #undef HAVE_GETEA */
  36629. /* Define to 1 if you have the `geteuid' function. */
  36630. #define HAVE_GETEUID 1
  36631. /* Define to 1 if you have the `getgrgid_r' function. */
  36632. #define HAVE_GETGRGID_R 1
  36633. /* Define to 1 if you have the `getgrnam_r' function. */
  36634. #define HAVE_GETGRNAM_R 1
  36635. /* Define to 1 if you have the `getpid' function. */
  36636. #define HAVE_GETPID 1
  36637. /* Define to 1 if you have the `getpwnam_r' function. */
  36638. #define HAVE_GETPWNAM_R 1
  36639. /* Define to 1 if you have the `getpwuid_r' function. */
  36640. #define HAVE_GETPWUID_R 1
  36641. /* Define to 1 if you have the `getvfsbyname' function. */
  36642. /* #undef HAVE_GETVFSBYNAME */
  36643. /* Define to 1 if you have the `getxattr' function. */
  36644. /* #undef HAVE_GETXATTR */
  36645. /* Define to 1 if you have the `gmtime_r' function. */
  36646. #define HAVE_GMTIME_R 1
  36647. /* Define to 1 if you have the <grp.h> header file. */
  36648. #define HAVE_GRP_H 1
  36649. /* Define to 1 if you have the `iconv' function. */
  36650. /* #undef HAVE_ICONV */
  36651. /* Define to 1 if you have the <iconv.h> header file. */
  36652. /* #undef HAVE_ICONV_H */
  36653. /* Define to 1 if you have the <inttypes.h> header file. */
  36654. #define HAVE_INTTYPES_H 1
  36655. /* Define to 1 if you have the <io.h> header file. */
  36656. /* #undef HAVE_IO_H */
  36657. /* Define to 1 if you have the <langinfo.h> header file. */
  36658. #define HAVE_LANGINFO_H 1
  36659. /* Define to 1 if you have the `lchflags' function. */
  36660. /* #undef HAVE_LCHFLAGS */
  36661. /* Define to 1 if you have the `lchmod' function. */
  36662. /* #undef HAVE_LCHMOD */
  36663. /* Define to 1 if you have the `lchown' function. */
  36664. #define HAVE_LCHOWN 1
  36665. /* Define to 1 if you have the `lgetea' function. */
  36666. /* #undef HAVE_LGETEA */
  36667. /* Define to 1 if you have the `lgetxattr' function. */
  36668. /* #undef HAVE_LGETXATTR */
  36669. /* Define to 1 if you have the `acl' library (-lacl). */
  36670. /* #undef HAVE_LIBACL */
  36671. /* Define to 1 if you have the `attr' library (-lattr). */
  36672. /* #undef HAVE_LIBATTR */
  36673. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  36674. /* #undef HAVE_LIBBSDXML */
  36675. /* Define to 1 if you have the `bz2' library (-lbz2). */
  36676. #define HAVE_LIBBZ2 1
  36677. /* Define to 1 if you have the `charset' library (-lcharset). */
  36678. /* #undef HAVE_LIBCHARSET */
  36679. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  36680. #define HAVE_LIBCRYPTO 1
  36681. /* Define to 1 if you have the `expat' library (-lexpat). */
  36682. /* #undef HAVE_LIBEXPAT */
  36683. /* Define to 1 if you have the `gcc' library (-lgcc). */
  36684. /* #undef HAVE_LIBGCC */
  36685. /* Define to 1 if you have the `lz4' library (-llz4). */
  36686. /* #undef HAVE_LIBLZ4 */
  36687. /* Define to 1 if you have the `lzma' library (-llzma). */
  36688. #define HAVE_LIBLZMA 1
  36689. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  36690. /* #undef HAVE_LIBLZMADEC */
  36691. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  36692. /* #undef HAVE_LIBLZO2 */
  36693. /* Define to 1 if you have the `nettle' library (-lnettle). */
  36694. /* #undef HAVE_LIBNETTLE */
  36695. /* Define to 1 if you have the `pcre' library (-lpcre). */
  36696. /* #undef HAVE_LIBPCRE */
  36697. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  36698. /* #undef HAVE_LIBPCREPOSIX */
  36699. /* Define to 1 if you have the `xml2' library (-lxml2). */
  36700. /* #undef HAVE_LIBXML2 */
  36701. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  36702. /* #undef HAVE_LIBXML_XMLREADER_H */
  36703. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  36704. /* #undef HAVE_LIBXML_XMLWRITER_H */
  36705. /* Define to 1 if you have the `z' library (-lz). */
  36706. #define HAVE_LIBZ 1
  36707. /* Define to 1 if you have the <limits.h> header file. */
  36708. #define HAVE_LIMITS_H 1
  36709. /* Define to 1 if you have the `link' function. */
  36710. #define HAVE_LINK 1
  36711. /* Define to 1 if you have the <linux/types.h> header file. */
  36712. #define HAVE_LINUX_TYPES_H 1
  36713. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  36714. #define HAVE_LINUX_FIEMAP_H 1
  36715. /* Define to 1 if you have the <linux/fs.h> header file. */
  36716. #define HAVE_LINUX_FS_H 1
  36717. /* Define to 1 if you have the <linux/magic.h> header file. */
  36718. #define HAVE_LINUX_MAGIC_H 1
  36719. /* Define to 1 if you have the <linux/types.h> header file. */
  36720. #define HAVE_LINUX_TYPES_H 1
  36721. /* Define to 1 if you have the `listea' function. */
  36722. /* #undef HAVE_LISTEA */
  36723. /* Define to 1 if you have the `listxattr' function. */
  36724. /* #undef HAVE_LISTXATTR */
  36725. /* Define to 1 if you have the `llistea' function. */
  36726. /* #undef HAVE_LLISTEA */
  36727. /* Define to 1 if you have the `llistxattr' function. */
  36728. /* #undef HAVE_LLISTXATTR */
  36729. /* Define to 1 if you have the <localcharset.h> header file. */
  36730. /* #undef HAVE_LOCALCHARSET_H */
  36731. /* Define to 1 if you have the `locale_charset' function. */
  36732. /* #undef HAVE_LOCALE_CHARSET */
  36733. /* Define to 1 if you have the <locale.h> header file. */
  36734. #define HAVE_LOCALE_H 1
  36735. /* Define to 1 if you have the `localtime_r' function. */
  36736. #define HAVE_LOCALTIME_R 1
  36737. /* Define to 1 if the system has the type `long long int'. */
  36738. /* #undef HAVE_LONG_LONG_INT */
  36739. /* Define to 1 if you have the `lsetea' function. */
  36740. /* #undef HAVE_LSETEA */
  36741. /* Define to 1 if you have the `lsetxattr' function. */
  36742. /* #undef HAVE_LSETXATTR */
  36743. /* Define to 1 if you have the `lstat' function. */
  36744. #define HAVE_LSTAT 1
  36745. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  36746. zero-length file name argument. */
  36747. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  36748. /* Define to 1 if you have the `lutimes' function. */
  36749. #define HAVE_LUTIMES 1
  36750. /* Define to 1 if you have the <lz4hc.h> header file. */
  36751. /* #undef HAVE_LZ4HC_H */
  36752. /* Define to 1 if you have the <lz4.h> header file. */
  36753. /* #undef HAVE_LZ4_H */
  36754. /* Define to 1 if you have the <lzmadec.h> header file. */
  36755. /* #undef HAVE_LZMADEC_H */
  36756. /* Define to 1 if you have the <lzma.h> header file. */
  36757. #define HAVE_LZMA_H 1
  36758. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  36759. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  36760. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  36761. /* #undef HAVE_LZO_LZO1X_H */
  36762. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  36763. /* #undef HAVE_LZO_LZOCONF_H */
  36764. /* Define to 1 if you have the `mbrtowc' function. */
  36765. #define HAVE_MBRTOWC 1
  36766. /* Define to 1 if you have the <membership.h> header file. */
  36767. /* #undef HAVE_MEMBERSHIP_H */
  36768. /* Define to 1 if you have the `memmove' function. */
  36769. #define HAVE_MEMMOVE 1
  36770. /* Define to 1 if you have the <memory.h> header file. */
  36771. #define HAVE_MEMORY_H 1
  36772. /* Define to 1 if you have the `mkdir' function. */
  36773. #define HAVE_MKDIR 1
  36774. /* Define to 1 if you have the `mkfifo' function. */
  36775. #define HAVE_MKFIFO 1
  36776. /* Define to 1 if you have the `mknod' function. */
  36777. #define HAVE_MKNOD 1
  36778. /* Define to 1 if you have the `mkstemp' function. */
  36779. #define HAVE_MKSTEMP 1
  36780. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  36781. /* #undef HAVE_NDIR_H */
  36782. /* Define to 1 if you have the <nettle/aes.h> header file. */
  36783. /* #undef HAVE_NETTLE_AES_H */
  36784. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  36785. /* #undef HAVE_NETTLE_HMAC_H */
  36786. /* Define to 1 if you have the <nettle/md5.h> header file. */
  36787. /* #undef HAVE_NETTLE_MD5_H */
  36788. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  36789. /* #undef HAVE_NETTLE_PBKDF2_H */
  36790. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  36791. /* #undef HAVE_NETTLE_RIPEMD160_H */
  36792. /* Define to 1 if you have the <nettle/sha.h> header file. */
  36793. /* #undef HAVE_NETTLE_SHA_H */
  36794. /* Define to 1 if you have the `nl_langinfo' function. */
  36795. #define HAVE_NL_LANGINFO 1
  36796. /* Define to 1 if you have the `openat' function. */
  36797. #define HAVE_OPENAT 1
  36798. /* Define to 1 if you have the <paths.h> header file. */
  36799. #define HAVE_PATHS_H 1
  36800. /* Define to 1 if you have the <pcreposix.h> header file. */
  36801. /* #undef HAVE_PCREPOSIX_H */
  36802. /* Define to 1 if you have the `pipe' function. */
  36803. #define HAVE_PIPE 1
  36804. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  36805. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  36806. /* Define to 1 if you have the `poll' function. */
  36807. #define HAVE_POLL 1
  36808. /* Define to 1 if you have the <poll.h> header file. */
  36809. #define HAVE_POLL_H 1
  36810. /* Define to 1 if you have the `posix_spawnp' function. */
  36811. #define HAVE_POSIX_SPAWNP 1
  36812. /* Define to 1 if you have the <process.h> header file. */
  36813. /* #undef HAVE_PROCESS_H */
  36814. /* Define to 1 if you have the <pthread.h> header file. */
  36815. /* #undef HAVE_PTHREAD_H */
  36816. /* Define to 1 if you have the <pwd.h> header file. */
  36817. #define HAVE_PWD_H 1
  36818. /* Define to 1 if you have the `readdir_r' function. */
  36819. #define HAVE_READDIR_R 1
  36820. /* Define to 1 if you have the `readlink' function. */
  36821. #define HAVE_READLINK 1
  36822. /* Define to 1 if you have the `readlinkat' function. */
  36823. #define HAVE_READLINKAT 1
  36824. /* Define to 1 if you have the `readpassphrase' function. */
  36825. /* #undef HAVE_READPASSPHRASE */
  36826. /* Define to 1 if you have the <readpassphrase.h> header file. */
  36827. /* #undef HAVE_READPASSPHRASE_H */
  36828. /* Define to 1 if you have the <regex.h> header file. */
  36829. #define HAVE_REGEX_H 1
  36830. /* Define to 1 if you have the `select' function. */
  36831. #define HAVE_SELECT 1
  36832. /* Define to 1 if you have the `setenv' function. */
  36833. #define HAVE_SETENV 1
  36834. /* Define to 1 if you have the `setlocale' function. */
  36835. #define HAVE_SETLOCALE 1
  36836. /* Define to 1 if you have the `sigaction' function. */
  36837. #define HAVE_SIGACTION 1
  36838. /* Define to 1 if you have the <signal.h> header file. */
  36839. #define HAVE_SIGNAL_H 1
  36840. /* Define to 1 if you have the <spawn.h> header file. */
  36841. #define HAVE_SPAWN_H 1
  36842. /* Define to 1 if you have the `statfs' function. */
  36843. #define HAVE_STATFS 1
  36844. /* Define to 1 if you have the `statvfs' function. */
  36845. #define HAVE_STATVFS 1
  36846. /* Define to 1 if `stat' has the bug that it succeeds when given the
  36847. zero-length file name argument. */
  36848. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  36849. /* Define to 1 if you have the <stdarg.h> header file. */
  36850. #define HAVE_STDARG_H 1
  36851. /* Define to 1 if you have the <stdint.h> header file. */
  36852. #define HAVE_STDINT_H 1
  36853. /* Define to 1 if you have the <stdlib.h> header file. */
  36854. #define HAVE_STDLIB_H 1
  36855. /* Define to 1 if you have the `strchr' function. */
  36856. #define HAVE_STRCHR 1
  36857. /* Define to 1 if you have the `strdup' function. */
  36858. #define HAVE_STRDUP 1
  36859. /* Define to 1 if you have the `strerror' function. */
  36860. #define HAVE_STRERROR 1
  36861. /* Define to 1 if you have the `strerror_r' function. */
  36862. #define HAVE_STRERROR_R 1
  36863. /* Define to 1 if you have the `strftime' function. */
  36864. #define HAVE_STRFTIME 1
  36865. /* Define to 1 if you have the <strings.h> header file. */
  36866. #define HAVE_STRINGS_H 1
  36867. /* Define to 1 if you have the <string.h> header file. */
  36868. #define HAVE_STRING_H 1
  36869. /* Define to 1 if you have the `strrchr' function. */
  36870. #define HAVE_STRRCHR 1
  36871. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  36872. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  36873. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  36874. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  36875. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  36876. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  36877. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  36878. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  36879. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  36880. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  36881. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  36882. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  36883. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  36884. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  36885. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  36886. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  36887. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  36888. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  36889. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  36890. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  36891. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  36892. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  36893. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  36894. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  36895. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  36896. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  36897. /* Define to 1 if you have `struct vfsconf'. */
  36898. /* #undef HAVE_STRUCT_VFSCONF */
  36899. /* Define to 1 if you have `struct xvfsconf'. */
  36900. /* #undef HAVE_STRUCT_XVFSCONF */
  36901. /* Define to 1 if you have the `symlink' function. */
  36902. #define HAVE_SYMLINK 1
  36903. /* Define to 1 if you have the <sys/acl.h> header file. */
  36904. /* #undef HAVE_SYS_ACL_H */
  36905. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  36906. #define HAVE_SYS_CDEFS_H 1
  36907. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  36908. */
  36909. /* #undef HAVE_SYS_DIR_H */
  36910. /* Define to 1 if you have the <sys/ea.h> header file. */
  36911. /* #undef HAVE_SYS_EA_H */
  36912. /* Define to 1 if you have the <sys/extattr.h> header file. */
  36913. /* #undef HAVE_SYS_EXTATTR_H */
  36914. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  36915. #define HAVE_SYS_IOCTL_H 1
  36916. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  36917. /* #undef HAVE_SYS_MKDEV_H */
  36918. /* Define to 1 if you have the <sys/mount.h> header file. */
  36919. /* #undef HAVE_SYS_MOUNT_H */
  36920. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  36921. */
  36922. /* #undef HAVE_SYS_NDIR_H */
  36923. /* Define to 1 if you have the <sys/param.h> header file. */
  36924. #define HAVE_SYS_PARAM_H 1
  36925. /* Define to 1 if you have the <sys/poll.h> header file. */
  36926. #define HAVE_SYS_POLL_H 1
  36927. /* Define to 1 if you have the <sys/richacl.h> header file. */
  36928. /* #undef HAVE_SYS_RICHACL_H */
  36929. /* Define to 1 if you have the <sys/select.h> header file. */
  36930. #define HAVE_SYS_SELECT_H 1
  36931. /* Define to 1 if you have the <sys/statfs.h> header file. */
  36932. #define HAVE_SYS_STATFS_H 1
  36933. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  36934. #define HAVE_SYS_STATVFS_H 1
  36935. /* Define to 1 if you have the <sys/stat.h> header file. */
  36936. #define HAVE_SYS_STAT_H 1
  36937. /* Define to 1 if you have the <sys/time.h> header file. */
  36938. #define HAVE_SYS_TIME_H 1
  36939. /* Define to 1 if you have the <sys/types.h> header file. */
  36940. #define HAVE_SYS_TYPES_H 1
  36941. /* Define to 1 if you have the <sys/utime.h> header file. */
  36942. /* #undef HAVE_SYS_UTIME_H */
  36943. /* Define to 1 if you have the <sys/utsname.h> header file. */
  36944. #define HAVE_SYS_UTSNAME_H 1
  36945. /* Define to 1 if you have the <sys/vfs.h> header file. */
  36946. #define HAVE_SYS_VFS_H 1
  36947. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  36948. #define HAVE_SYS_WAIT_H 1
  36949. /* Define to 1 if you have the <sys/xattr.h> header file. */
  36950. #define HAVE_SYS_XATTR_H 1
  36951. /* Define to 1 if you have the `timegm' function. */
  36952. #define HAVE_TIMEGM 1
  36953. /* Define to 1 if you have the <time.h> header file. */
  36954. #define HAVE_TIME_H 1
  36955. /* Define to 1 if you have the `tzset' function. */
  36956. #define HAVE_TZSET 1
  36957. /* Define to 1 if you have the <unistd.h> header file. */
  36958. #define HAVE_UNISTD_H 1
  36959. /* Define to 1 if you have the `unsetenv' function. */
  36960. #define HAVE_UNSETENV 1
  36961. /* Define to 1 if the system has the type `unsigned long long'. */
  36962. /* #undef HAVE_UNSIGNED_LONG_LONG */
  36963. /* Define to 1 if the system has the type `unsigned long long int'. */
  36964. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  36965. /* Define to 1 if you have the `utime' function. */
  36966. #define HAVE_UTIME 1
  36967. /* Define to 1 if you have the `utimensat' function. */
  36968. #define HAVE_UTIMENSAT 1
  36969. /* Define to 1 if you have the `utimes' function. */
  36970. #define HAVE_UTIMES 1
  36971. /* Define to 1 if you have the <utime.h> header file. */
  36972. #define HAVE_UTIME_H 1
  36973. /* Define to 1 if you have the `vfork' function. */
  36974. #define HAVE_VFORK 1
  36975. /* Define to 1 if you have the `vprintf' function. */
  36976. #define HAVE_VPRINTF 1
  36977. /* Define to 1 if you have the <wchar.h> header file. */
  36978. #define HAVE_WCHAR_H 1
  36979. /* Define to 1 if the system has the type `wchar_t'. */
  36980. #define HAVE_WCHAR_T 1
  36981. /* Define to 1 if you have the `wcrtomb' function. */
  36982. #define HAVE_WCRTOMB 1
  36983. /* Define to 1 if you have the `wcscmp' function. */
  36984. #define HAVE_WCSCMP 1
  36985. /* Define to 1 if you have the `wcscpy' function. */
  36986. #define HAVE_WCSCPY 1
  36987. /* Define to 1 if you have the `wcslen' function. */
  36988. #define HAVE_WCSLEN 1
  36989. /* Define to 1 if you have the `wctomb' function. */
  36990. #define HAVE_WCTOMB 1
  36991. /* Define to 1 if you have the <wctype.h> header file. */
  36992. #define HAVE_WCTYPE_H 1
  36993. /* Define to 1 if you have the <wincrypt.h> header file. */
  36994. /* #undef HAVE_WINCRYPT_H */
  36995. /* Define to 1 if you have the <windows.h> header file. */
  36996. /* #undef HAVE_WINDOWS_H */
  36997. /* Define to 1 if you have the <winioctl.h> header file. */
  36998. /* #undef HAVE_WINIOCTL_H */
  36999. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  37000. /* #undef HAVE__CrtSetReportMode */
  37001. /* Define to 1 if you have the `wmemcmp' function. */
  37002. #define HAVE_WMEMCMP 1
  37003. /* Define to 1 if you have the `wmemcpy' function. */
  37004. #define HAVE_WMEMCPY 1
  37005. /* Define to 1 if you have the `wmemmove' function. */
  37006. #define HAVE_WMEMMOVE 1
  37007. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  37008. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  37009. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  37010. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  37011. /* Define to 1 if you have the <zlib.h> header file. */
  37012. #define HAVE_ZLIB_H 1
  37013. /* Define to 1 if you have the `_ctime64_s' function. */
  37014. /* #undef HAVE__CTIME64_S */
  37015. /* Define to 1 if you have the `_fseeki64' function. */
  37016. /* #undef HAVE__FSEEKI64 */
  37017. /* Define to 1 if you have the `_get_timezone' function. */
  37018. /* #undef HAVE__GET_TIMEZONE */
  37019. /* Define to 1 if you have the `_localtime64_s' function. */
  37020. /* #undef HAVE__LOCALTIME64_S */
  37021. /* Define to 1 if you have the `_mkgmtime64' function. */
  37022. /* #undef HAVE__MKGMTIME64 */
  37023. /* Define as const if the declaration of iconv() needs const. */
  37024. #define ICONV_CONST
  37025. /* Version number of libarchive as a single integer */
  37026. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  37027. /* Version number of libarchive */
  37028. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  37029. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  37030. slash. */
  37031. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  37032. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  37033. */
  37034. /* #undef MAJOR_IN_MKDEV */
  37035. /* Define to 1 if `major', `minor', and `makedev' are declared in
  37036. <sysmacros.h>. */
  37037. #define MAJOR_IN_SYSMACROS 1
  37038. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  37039. /* #undef NO_MINUS_C_MINUS_O */
  37040. /* The size of `wchar_t', as computed by sizeof. */
  37041. #define SIZEOF_WCHAR_T 4
  37042. /* Define to 1 if strerror_r returns char *. */
  37043. /* #undef STRERROR_R_CHAR_P */
  37044. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  37045. #define TIME_WITH_SYS_TIME 1
  37046. /*
  37047. * Some platform requires a macro to use extension functions.
  37048. */
  37049. #define SAFE_TO_DEFINE_EXTENSIONS 1
  37050. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  37051. /* Enable extensions on AIX 3, Interix. */
  37052. #ifndef _ALL_SOURCE
  37053. # define _ALL_SOURCE 1
  37054. #endif
  37055. /* Enable GNU extensions on systems that have them. */
  37056. #ifndef _GNU_SOURCE
  37057. # define _GNU_SOURCE 1
  37058. #endif
  37059. /* Enable threading extensions on Solaris. */
  37060. #ifndef _POSIX_PTHREAD_SEMANTICS
  37061. # define _POSIX_PTHREAD_SEMANTICS 1
  37062. #endif
  37063. /* Enable extensions on HP NonStop. */
  37064. #ifndef _TANDEM_SOURCE
  37065. # define _TANDEM_SOURCE 1
  37066. #endif
  37067. /* Enable general extensions on Solaris. */
  37068. #ifndef __EXTENSIONS__
  37069. # define __EXTENSIONS__ 1
  37070. #endif
  37071. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  37072. /* Version number of package */
  37073. #define VERSION "3.3.2"
  37074. /* Number of bits in a file offset, on hosts where this is settable. */
  37075. /* #undef _FILE_OFFSET_BITS */
  37076. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  37077. /* #undef _LARGEFILE_SOURCE */
  37078. /* Define for large files, on AIX-style hosts. */
  37079. /* #undef _LARGE_FILES */
  37080. /* Define to control Windows SDK version */
  37081. #ifndef NTDDI_VERSION
  37082. /* #undef NTDDI_VERSION */
  37083. #endif // NTDDI_VERSION
  37084. #ifndef _WIN32_WINNT
  37085. /* #undef _WIN32_WINNT */
  37086. #endif // _WIN32_WINNT
  37087. #ifndef WINVER
  37088. /* #undef WINVER */
  37089. #endif // WINVER
  37090. /* Define to empty if `const' does not conform to ANSI C. */
  37091. /* #undef const */
  37092. /* Define to `int' if <sys/types.h> doesn't define. */
  37093. /* #undef gid_t */
  37094. /* Define to `unsigned long' if <sys/types.h> does not define. */
  37095. /* #undef id_t */
  37096. /* Define to `int' if <sys/types.h> does not define. */
  37097. /* #undef mode_t */
  37098. /* Define to `long long' if <sys/types.h> does not define. */
  37099. /* #undef off_t */
  37100. /* Define to `int' if <sys/types.h> doesn't define. */
  37101. /* #undef pid_t */
  37102. /* Define to `unsigned int' if <sys/types.h> does not define. */
  37103. /* #undef size_t */
  37104. /* Define to `int' if <sys/types.h> does not define. */
  37105. /* #undef ssize_t */
  37106. /* Define to `int' if <sys/types.h> doesn't define. */
  37107. /* #undef uid_t */
  37108. /* Define to `int' if <sys/types.h> does not define. */
  37109. /* #undef intptr_t */
  37110. /* Define to `unsigned int' if <sys/types.h> does not define. */
  37111. /* #undef uintptr_t */
  37112. #define ARCHIVE_SHA1_COMPILE_TEST
  37113. #define ARCHIVE_CRYPTO_SHA1_LIBSYSTEM
  37114. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  37115. /*-
  37116. * Copyright (c) 2003-2007 Tim Kientzle
  37117. * Copyright (c) 2011 Andres Mejia
  37118. * Copyright (c) 2011 Michihiro NAKAJIMA
  37119. * All rights reserved.
  37120. *
  37121. * Redistribution and use in source and binary forms, with or without
  37122. * modification, are permitted provided that the following conditions
  37123. * are met:
  37124. * 1. Redistributions of source code must retain the above copyright
  37125. * notice, this list of conditions and the following disclaimer.
  37126. * 2. Redistributions in binary form must reproduce the above copyright
  37127. * notice, this list of conditions and the following disclaimer in the
  37128. * documentation and/or other materials provided with the distribution.
  37129. *
  37130. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  37131. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  37132. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  37133. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  37134. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  37135. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  37136. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  37137. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  37138. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  37139. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  37140. */
  37141. #include "archive_platform.h"
  37142. #include "archive.h"
  37143. #include "archive_digest_private.h"
  37144. /* In particular, force the configure probe to break if it tries
  37145. * to test a combination of OpenSSL and libmd. */
  37146. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  37147. #error Cannot use both OpenSSL and libmd.
  37148. #endif
  37149. /*
  37150. * Message digest functions for Windows platform.
  37151. */
  37152. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  37153. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  37154. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  37155. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  37156. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  37157. /*
  37158. * Initialize a Message digest.
  37159. */
  37160. static int
  37161. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  37162. {
  37163. ctx->valid = 0;
  37164. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  37165. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  37166. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  37167. return (ARCHIVE_FAILED);
  37168. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  37169. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  37170. return (ARCHIVE_FAILED);
  37171. }
  37172. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  37173. CryptReleaseContext(ctx->cryptProv, 0);
  37174. return (ARCHIVE_FAILED);
  37175. }
  37176. ctx->valid = 1;
  37177. return (ARCHIVE_OK);
  37178. }
  37179. /*
  37180. * Update a Message digest.
  37181. */
  37182. static int
  37183. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  37184. {
  37185. if (!ctx->valid)
  37186. return (ARCHIVE_FAILED);
  37187. CryptHashData(ctx->hash,
  37188. (unsigned char *)(uintptr_t)buf,
  37189. (DWORD)len, 0);
  37190. return (ARCHIVE_OK);
  37191. }
  37192. static int
  37193. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  37194. {
  37195. DWORD siglen = (DWORD)bufsize;
  37196. if (!ctx->valid)
  37197. return (ARCHIVE_FAILED);
  37198. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  37199. CryptDestroyHash(ctx->hash);
  37200. CryptReleaseContext(ctx->cryptProv, 0);
  37201. ctx->valid = 0;
  37202. return (ARCHIVE_OK);
  37203. }
  37204. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  37205. /* MD5 implementations */
  37206. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  37207. static int
  37208. __archive_libc_md5init(archive_md5_ctx *ctx)
  37209. {
  37210. MD5Init(ctx);
  37211. return (ARCHIVE_OK);
  37212. }
  37213. static int
  37214. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  37215. size_t insize)
  37216. {
  37217. MD5Update(ctx, indata, insize);
  37218. return (ARCHIVE_OK);
  37219. }
  37220. static int
  37221. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  37222. {
  37223. MD5Final(md, ctx);
  37224. return (ARCHIVE_OK);
  37225. }
  37226. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  37227. static int
  37228. __archive_libmd_md5init(archive_md5_ctx *ctx)
  37229. {
  37230. MD5Init(ctx);
  37231. return (ARCHIVE_OK);
  37232. }
  37233. static int
  37234. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  37235. size_t insize)
  37236. {
  37237. MD5Update(ctx, indata, insize);
  37238. return (ARCHIVE_OK);
  37239. }
  37240. static int
  37241. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  37242. {
  37243. MD5Final(md, ctx);
  37244. return (ARCHIVE_OK);
  37245. }
  37246. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  37247. static int
  37248. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  37249. {
  37250. CC_MD5_Init(ctx);
  37251. return (ARCHIVE_OK);
  37252. }
  37253. static int
  37254. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  37255. size_t insize)
  37256. {
  37257. CC_MD5_Update(ctx, indata, insize);
  37258. return (ARCHIVE_OK);
  37259. }
  37260. static int
  37261. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  37262. {
  37263. CC_MD5_Final(md, ctx);
  37264. return (ARCHIVE_OK);
  37265. }
  37266. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  37267. static int
  37268. __archive_nettle_md5init(archive_md5_ctx *ctx)
  37269. {
  37270. md5_init(ctx);
  37271. return (ARCHIVE_OK);
  37272. }
  37273. static int
  37274. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  37275. size_t insize)
  37276. {
  37277. md5_update(ctx, insize, indata);
  37278. return (ARCHIVE_OK);
  37279. }
  37280. static int
  37281. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  37282. {
  37283. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  37284. return (ARCHIVE_OK);
  37285. }
  37286. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  37287. static int
  37288. __archive_openssl_md5init(archive_md5_ctx *ctx)
  37289. {
  37290. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  37291. return (ARCHIVE_FAILED);
  37292. EVP_DigestInit(*ctx, EVP_md5());
  37293. return (ARCHIVE_OK);
  37294. }
  37295. static int
  37296. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  37297. size_t insize)
  37298. {
  37299. EVP_DigestUpdate(*ctx, indata, insize);
  37300. return (ARCHIVE_OK);
  37301. }
  37302. static int
  37303. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  37304. {
  37305. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  37306. * this is meant to cope with that. Real fix is probably to fix
  37307. * archive_write_set_format_xar.c
  37308. */
  37309. if (*ctx) {
  37310. EVP_DigestFinal(*ctx, md, NULL);
  37311. EVP_MD_CTX_free(*ctx);
  37312. *ctx = NULL;
  37313. }
  37314. return (ARCHIVE_OK);
  37315. }
  37316. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  37317. static int
  37318. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  37319. {
  37320. return (win_crypto_init(ctx, CALG_MD5));
  37321. }
  37322. static int
  37323. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  37324. size_t insize)
  37325. {
  37326. return (win_crypto_Update(ctx, indata, insize));
  37327. }
  37328. static int
  37329. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  37330. {
  37331. return (win_crypto_Final(md, 16, ctx));
  37332. }
  37333. #else
  37334. static int
  37335. __archive_stub_md5init(archive_md5_ctx *ctx)
  37336. {
  37337. (void)ctx; /* UNUSED */
  37338. return (ARCHIVE_FAILED);
  37339. }
  37340. static int
  37341. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  37342. size_t insize)
  37343. {
  37344. (void)ctx; /* UNUSED */
  37345. (void)indata; /* UNUSED */
  37346. (void)insize; /* UNUSED */
  37347. return (ARCHIVE_FAILED);
  37348. }
  37349. static int
  37350. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  37351. {
  37352. (void)ctx; /* UNUSED */
  37353. (void)md; /* UNUSED */
  37354. return (ARCHIVE_FAILED);
  37355. }
  37356. #endif
  37357. /* RIPEMD160 implementations */
  37358. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  37359. static int
  37360. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  37361. {
  37362. RMD160Init(ctx);
  37363. return (ARCHIVE_OK);
  37364. }
  37365. static int
  37366. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  37367. size_t insize)
  37368. {
  37369. RMD160Update(ctx, indata, insize);
  37370. return (ARCHIVE_OK);
  37371. }
  37372. static int
  37373. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  37374. {
  37375. RMD160Final(md, ctx);
  37376. return (ARCHIVE_OK);
  37377. }
  37378. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  37379. static int
  37380. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  37381. {
  37382. RIPEMD160_Init(ctx);
  37383. return (ARCHIVE_OK);
  37384. }
  37385. static int
  37386. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  37387. size_t insize)
  37388. {
  37389. RIPEMD160_Update(ctx, indata, insize);
  37390. return (ARCHIVE_OK);
  37391. }
  37392. static int
  37393. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  37394. {
  37395. RIPEMD160_Final(md, ctx);
  37396. return (ARCHIVE_OK);
  37397. }
  37398. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  37399. static int
  37400. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  37401. {
  37402. ripemd160_init(ctx);
  37403. return (ARCHIVE_OK);
  37404. }
  37405. static int
  37406. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  37407. size_t insize)
  37408. {
  37409. ripemd160_update(ctx, insize, indata);
  37410. return (ARCHIVE_OK);
  37411. }
  37412. static int
  37413. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  37414. {
  37415. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  37416. return (ARCHIVE_OK);
  37417. }
  37418. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  37419. static int
  37420. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  37421. {
  37422. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  37423. return (ARCHIVE_FAILED);
  37424. EVP_DigestInit(*ctx, EVP_ripemd160());
  37425. return (ARCHIVE_OK);
  37426. }
  37427. static int
  37428. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  37429. size_t insize)
  37430. {
  37431. EVP_DigestUpdate(*ctx, indata, insize);
  37432. return (ARCHIVE_OK);
  37433. }
  37434. static int
  37435. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  37436. {
  37437. if (*ctx) {
  37438. EVP_DigestFinal(*ctx, md, NULL);
  37439. EVP_MD_CTX_free(*ctx);
  37440. *ctx = NULL;
  37441. }
  37442. return (ARCHIVE_OK);
  37443. }
  37444. #else
  37445. static int
  37446. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  37447. {
  37448. (void)ctx; /* UNUSED */
  37449. return (ARCHIVE_FAILED);
  37450. }
  37451. static int
  37452. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  37453. size_t insize)
  37454. {
  37455. (void)ctx; /* UNUSED */
  37456. (void)indata; /* UNUSED */
  37457. (void)insize; /* UNUSED */
  37458. return (ARCHIVE_FAILED);
  37459. }
  37460. static int
  37461. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  37462. {
  37463. (void)ctx; /* UNUSED */
  37464. (void)md; /* UNUSED */
  37465. return (ARCHIVE_FAILED);
  37466. }
  37467. #endif
  37468. /* SHA1 implementations */
  37469. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  37470. static int
  37471. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  37472. {
  37473. SHA1Init(ctx);
  37474. return (ARCHIVE_OK);
  37475. }
  37476. static int
  37477. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  37478. size_t insize)
  37479. {
  37480. SHA1Update(ctx, indata, insize);
  37481. return (ARCHIVE_OK);
  37482. }
  37483. static int
  37484. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  37485. {
  37486. SHA1Final(md, ctx);
  37487. return (ARCHIVE_OK);
  37488. }
  37489. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  37490. static int
  37491. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  37492. {
  37493. SHA1_Init(ctx);
  37494. return (ARCHIVE_OK);
  37495. }
  37496. static int
  37497. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  37498. size_t insize)
  37499. {
  37500. SHA1_Update(ctx, indata, insize);
  37501. return (ARCHIVE_OK);
  37502. }
  37503. static int
  37504. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  37505. {
  37506. SHA1_Final(md, ctx);
  37507. return (ARCHIVE_OK);
  37508. }
  37509. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  37510. static int
  37511. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  37512. {
  37513. CC_SHA1_Init(ctx);
  37514. return (ARCHIVE_OK);
  37515. }
  37516. static int
  37517. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  37518. size_t insize)
  37519. {
  37520. CC_SHA1_Update(ctx, indata, insize);
  37521. return (ARCHIVE_OK);
  37522. }
  37523. static int
  37524. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  37525. {
  37526. CC_SHA1_Final(md, ctx);
  37527. return (ARCHIVE_OK);
  37528. }
  37529. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  37530. static int
  37531. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  37532. {
  37533. sha1_init(ctx);
  37534. return (ARCHIVE_OK);
  37535. }
  37536. static int
  37537. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  37538. size_t insize)
  37539. {
  37540. sha1_update(ctx, insize, indata);
  37541. return (ARCHIVE_OK);
  37542. }
  37543. static int
  37544. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  37545. {
  37546. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  37547. return (ARCHIVE_OK);
  37548. }
  37549. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  37550. static int
  37551. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  37552. {
  37553. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  37554. return (ARCHIVE_FAILED);
  37555. EVP_DigestInit(*ctx, EVP_sha1());
  37556. return (ARCHIVE_OK);
  37557. }
  37558. static int
  37559. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  37560. size_t insize)
  37561. {
  37562. EVP_DigestUpdate(*ctx, indata, insize);
  37563. return (ARCHIVE_OK);
  37564. }
  37565. static int
  37566. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  37567. {
  37568. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  37569. * this is meant to cope with that. Real fix is probably to fix
  37570. * archive_write_set_format_xar.c
  37571. */
  37572. if (*ctx) {
  37573. EVP_DigestFinal(*ctx, md, NULL);
  37574. EVP_MD_CTX_free(*ctx);
  37575. *ctx = NULL;
  37576. }
  37577. return (ARCHIVE_OK);
  37578. }
  37579. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  37580. static int
  37581. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  37582. {
  37583. return (win_crypto_init(ctx, CALG_SHA1));
  37584. }
  37585. static int
  37586. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  37587. size_t insize)
  37588. {
  37589. return (win_crypto_Update(ctx, indata, insize));
  37590. }
  37591. static int
  37592. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  37593. {
  37594. return (win_crypto_Final(md, 20, ctx));
  37595. }
  37596. #else
  37597. static int
  37598. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  37599. {
  37600. (void)ctx; /* UNUSED */
  37601. return (ARCHIVE_FAILED);
  37602. }
  37603. static int
  37604. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  37605. size_t insize)
  37606. {
  37607. (void)ctx; /* UNUSED */
  37608. (void)indata; /* UNUSED */
  37609. (void)insize; /* UNUSED */
  37610. return (ARCHIVE_FAILED);
  37611. }
  37612. static int
  37613. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  37614. {
  37615. (void)ctx; /* UNUSED */
  37616. (void)md; /* UNUSED */
  37617. return (ARCHIVE_FAILED);
  37618. }
  37619. #endif
  37620. /* SHA256 implementations */
  37621. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  37622. static int
  37623. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  37624. {
  37625. SHA256_Init(ctx);
  37626. return (ARCHIVE_OK);
  37627. }
  37628. static int
  37629. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  37630. size_t insize)
  37631. {
  37632. SHA256_Update(ctx, indata, insize);
  37633. return (ARCHIVE_OK);
  37634. }
  37635. static int
  37636. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  37637. {
  37638. SHA256_Final(md, ctx);
  37639. return (ARCHIVE_OK);
  37640. }
  37641. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  37642. static int
  37643. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  37644. {
  37645. SHA256Init(ctx);
  37646. return (ARCHIVE_OK);
  37647. }
  37648. static int
  37649. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  37650. size_t insize)
  37651. {
  37652. SHA256Update(ctx, indata, insize);
  37653. return (ARCHIVE_OK);
  37654. }
  37655. static int
  37656. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  37657. {
  37658. SHA256Final(md, ctx);
  37659. return (ARCHIVE_OK);
  37660. }
  37661. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  37662. static int
  37663. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  37664. {
  37665. SHA256Init(ctx);
  37666. return (ARCHIVE_OK);
  37667. }
  37668. static int
  37669. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  37670. size_t insize)
  37671. {
  37672. SHA256Update(ctx, indata, insize);
  37673. return (ARCHIVE_OK);
  37674. }
  37675. static int
  37676. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  37677. {
  37678. SHA256Final(md, ctx);
  37679. return (ARCHIVE_OK);
  37680. }
  37681. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  37682. static int
  37683. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  37684. {
  37685. SHA256_Init(ctx);
  37686. return (ARCHIVE_OK);
  37687. }
  37688. static int
  37689. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  37690. size_t insize)
  37691. {
  37692. SHA256_Update(ctx, indata, insize);
  37693. return (ARCHIVE_OK);
  37694. }
  37695. static int
  37696. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  37697. {
  37698. SHA256_Final(md, ctx);
  37699. return (ARCHIVE_OK);
  37700. }
  37701. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  37702. static int
  37703. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  37704. {
  37705. CC_SHA256_Init(ctx);
  37706. return (ARCHIVE_OK);
  37707. }
  37708. static int
  37709. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  37710. size_t insize)
  37711. {
  37712. CC_SHA256_Update(ctx, indata, insize);
  37713. return (ARCHIVE_OK);
  37714. }
  37715. static int
  37716. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  37717. {
  37718. CC_SHA256_Final(md, ctx);
  37719. return (ARCHIVE_OK);
  37720. }
  37721. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  37722. static int
  37723. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  37724. {
  37725. sha256_init(ctx);
  37726. return (ARCHIVE_OK);
  37727. }
  37728. static int
  37729. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  37730. size_t insize)
  37731. {
  37732. sha256_update(ctx, insize, indata);
  37733. return (ARCHIVE_OK);
  37734. }
  37735. static int
  37736. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  37737. {
  37738. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  37739. return (ARCHIVE_OK);
  37740. }
  37741. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  37742. static int
  37743. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  37744. {
  37745. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  37746. return (ARCHIVE_FAILED);
  37747. EVP_DigestInit(*ctx, EVP_sha256());
  37748. return (ARCHIVE_OK);
  37749. }
  37750. static int
  37751. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  37752. size_t insize)
  37753. {
  37754. EVP_DigestUpdate(*ctx, indata, insize);
  37755. return (ARCHIVE_OK);
  37756. }
  37757. static int
  37758. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  37759. {
  37760. if (*ctx) {
  37761. EVP_DigestFinal(*ctx, md, NULL);
  37762. EVP_MD_CTX_free(*ctx);
  37763. *ctx = NULL;
  37764. }
  37765. return (ARCHIVE_OK);
  37766. }
  37767. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  37768. static int
  37769. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  37770. {
  37771. return (win_crypto_init(ctx, CALG_SHA_256));
  37772. }
  37773. static int
  37774. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  37775. size_t insize)
  37776. {
  37777. return (win_crypto_Update(ctx, indata, insize));
  37778. }
  37779. static int
  37780. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  37781. {
  37782. return (win_crypto_Final(md, 32, ctx));
  37783. }
  37784. #else
  37785. static int
  37786. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  37787. {
  37788. (void)ctx; /* UNUSED */
  37789. return (ARCHIVE_FAILED);
  37790. }
  37791. static int
  37792. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  37793. size_t insize)
  37794. {
  37795. (void)ctx; /* UNUSED */
  37796. (void)indata; /* UNUSED */
  37797. (void)insize; /* UNUSED */
  37798. return (ARCHIVE_FAILED);
  37799. }
  37800. static int
  37801. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  37802. {
  37803. (void)ctx; /* UNUSED */
  37804. (void)md; /* UNUSED */
  37805. return (ARCHIVE_FAILED);
  37806. }
  37807. #endif
  37808. /* SHA384 implementations */
  37809. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  37810. static int
  37811. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  37812. {
  37813. SHA384_Init(ctx);
  37814. return (ARCHIVE_OK);
  37815. }
  37816. static int
  37817. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  37818. size_t insize)
  37819. {
  37820. SHA384_Update(ctx, indata, insize);
  37821. return (ARCHIVE_OK);
  37822. }
  37823. static int
  37824. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  37825. {
  37826. SHA384_Final(md, ctx);
  37827. return (ARCHIVE_OK);
  37828. }
  37829. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  37830. static int
  37831. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  37832. {
  37833. SHA384Init(ctx);
  37834. return (ARCHIVE_OK);
  37835. }
  37836. static int
  37837. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  37838. size_t insize)
  37839. {
  37840. SHA384Update(ctx, indata, insize);
  37841. return (ARCHIVE_OK);
  37842. }
  37843. static int
  37844. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  37845. {
  37846. SHA384Final(md, ctx);
  37847. return (ARCHIVE_OK);
  37848. }
  37849. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  37850. static int
  37851. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  37852. {
  37853. SHA384Init(ctx);
  37854. return (ARCHIVE_OK);
  37855. }
  37856. static int
  37857. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  37858. size_t insize)
  37859. {
  37860. SHA384Update(ctx, indata, insize);
  37861. return (ARCHIVE_OK);
  37862. }
  37863. static int
  37864. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  37865. {
  37866. SHA384Final(md, ctx);
  37867. return (ARCHIVE_OK);
  37868. }
  37869. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  37870. static int
  37871. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  37872. {
  37873. CC_SHA384_Init(ctx);
  37874. return (ARCHIVE_OK);
  37875. }
  37876. static int
  37877. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  37878. size_t insize)
  37879. {
  37880. CC_SHA384_Update(ctx, indata, insize);
  37881. return (ARCHIVE_OK);
  37882. }
  37883. static int
  37884. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  37885. {
  37886. CC_SHA384_Final(md, ctx);
  37887. return (ARCHIVE_OK);
  37888. }
  37889. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  37890. static int
  37891. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  37892. {
  37893. sha384_init(ctx);
  37894. return (ARCHIVE_OK);
  37895. }
  37896. static int
  37897. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  37898. size_t insize)
  37899. {
  37900. sha384_update(ctx, insize, indata);
  37901. return (ARCHIVE_OK);
  37902. }
  37903. static int
  37904. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  37905. {
  37906. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  37907. return (ARCHIVE_OK);
  37908. }
  37909. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  37910. static int
  37911. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  37912. {
  37913. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  37914. return (ARCHIVE_FAILED);
  37915. EVP_DigestInit(*ctx, EVP_sha384());
  37916. return (ARCHIVE_OK);
  37917. }
  37918. static int
  37919. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  37920. size_t insize)
  37921. {
  37922. EVP_DigestUpdate(*ctx, indata, insize);
  37923. return (ARCHIVE_OK);
  37924. }
  37925. static int
  37926. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  37927. {
  37928. if (*ctx) {
  37929. EVP_DigestFinal(*ctx, md, NULL);
  37930. EVP_MD_CTX_free(*ctx);
  37931. *ctx = NULL;
  37932. }
  37933. return (ARCHIVE_OK);
  37934. }
  37935. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  37936. static int
  37937. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  37938. {
  37939. return (win_crypto_init(ctx, CALG_SHA_384));
  37940. }
  37941. static int
  37942. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  37943. size_t insize)
  37944. {
  37945. return (win_crypto_Update(ctx, indata, insize));
  37946. }
  37947. static int
  37948. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  37949. {
  37950. return (win_crypto_Final(md, 48, ctx));
  37951. }
  37952. #else
  37953. static int
  37954. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  37955. {
  37956. (void)ctx; /* UNUSED */
  37957. return (ARCHIVE_FAILED);
  37958. }
  37959. static int
  37960. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  37961. size_t insize)
  37962. {
  37963. (void)ctx; /* UNUSED */
  37964. (void)indata; /* UNUSED */
  37965. (void)insize; /* UNUSED */
  37966. return (ARCHIVE_FAILED);
  37967. }
  37968. static int
  37969. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  37970. {
  37971. (void)ctx; /* UNUSED */
  37972. (void)md; /* UNUSED */
  37973. return (ARCHIVE_FAILED);
  37974. }
  37975. #endif
  37976. /* SHA512 implementations */
  37977. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  37978. static int
  37979. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  37980. {
  37981. SHA512_Init(ctx);
  37982. return (ARCHIVE_OK);
  37983. }
  37984. static int
  37985. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  37986. size_t insize)
  37987. {
  37988. SHA512_Update(ctx, indata, insize);
  37989. return (ARCHIVE_OK);
  37990. }
  37991. static int
  37992. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  37993. {
  37994. SHA512_Final(md, ctx);
  37995. return (ARCHIVE_OK);
  37996. }
  37997. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  37998. static int
  37999. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  38000. {
  38001. SHA512Init(ctx);
  38002. return (ARCHIVE_OK);
  38003. }
  38004. static int
  38005. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  38006. size_t insize)
  38007. {
  38008. SHA512Update(ctx, indata, insize);
  38009. return (ARCHIVE_OK);
  38010. }
  38011. static int
  38012. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  38013. {
  38014. SHA512Final(md, ctx);
  38015. return (ARCHIVE_OK);
  38016. }
  38017. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  38018. static int
  38019. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  38020. {
  38021. SHA512Init(ctx);
  38022. return (ARCHIVE_OK);
  38023. }
  38024. static int
  38025. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  38026. size_t insize)
  38027. {
  38028. SHA512Update(ctx, indata, insize);
  38029. return (ARCHIVE_OK);
  38030. }
  38031. static int
  38032. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  38033. {
  38034. SHA512Final(md, ctx);
  38035. return (ARCHIVE_OK);
  38036. }
  38037. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  38038. static int
  38039. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  38040. {
  38041. SHA512_Init(ctx);
  38042. return (ARCHIVE_OK);
  38043. }
  38044. static int
  38045. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  38046. size_t insize)
  38047. {
  38048. SHA512_Update(ctx, indata, insize);
  38049. return (ARCHIVE_OK);
  38050. }
  38051. static int
  38052. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  38053. {
  38054. SHA512_Final(md, ctx);
  38055. return (ARCHIVE_OK);
  38056. }
  38057. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  38058. static int
  38059. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  38060. {
  38061. CC_SHA512_Init(ctx);
  38062. return (ARCHIVE_OK);
  38063. }
  38064. static int
  38065. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  38066. size_t insize)
  38067. {
  38068. CC_SHA512_Update(ctx, indata, insize);
  38069. return (ARCHIVE_OK);
  38070. }
  38071. static int
  38072. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  38073. {
  38074. CC_SHA512_Final(md, ctx);
  38075. return (ARCHIVE_OK);
  38076. }
  38077. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  38078. static int
  38079. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  38080. {
  38081. sha512_init(ctx);
  38082. return (ARCHIVE_OK);
  38083. }
  38084. static int
  38085. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  38086. size_t insize)
  38087. {
  38088. sha512_update(ctx, insize, indata);
  38089. return (ARCHIVE_OK);
  38090. }
  38091. static int
  38092. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  38093. {
  38094. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  38095. return (ARCHIVE_OK);
  38096. }
  38097. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  38098. static int
  38099. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  38100. {
  38101. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  38102. return (ARCHIVE_FAILED);
  38103. EVP_DigestInit(*ctx, EVP_sha512());
  38104. return (ARCHIVE_OK);
  38105. }
  38106. static int
  38107. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  38108. size_t insize)
  38109. {
  38110. EVP_DigestUpdate(*ctx, indata, insize);
  38111. return (ARCHIVE_OK);
  38112. }
  38113. static int
  38114. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  38115. {
  38116. if (*ctx) {
  38117. EVP_DigestFinal(*ctx, md, NULL);
  38118. EVP_MD_CTX_free(*ctx);
  38119. *ctx = NULL;
  38120. }
  38121. return (ARCHIVE_OK);
  38122. }
  38123. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  38124. static int
  38125. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  38126. {
  38127. return (win_crypto_init(ctx, CALG_SHA_512));
  38128. }
  38129. static int
  38130. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  38131. size_t insize)
  38132. {
  38133. return (win_crypto_Update(ctx, indata, insize));
  38134. }
  38135. static int
  38136. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  38137. {
  38138. return (win_crypto_Final(md, 64, ctx));
  38139. }
  38140. #else
  38141. static int
  38142. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  38143. {
  38144. (void)ctx; /* UNUSED */
  38145. return (ARCHIVE_FAILED);
  38146. }
  38147. static int
  38148. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  38149. size_t insize)
  38150. {
  38151. (void)ctx; /* UNUSED */
  38152. (void)indata; /* UNUSED */
  38153. (void)insize; /* UNUSED */
  38154. return (ARCHIVE_FAILED);
  38155. }
  38156. static int
  38157. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  38158. {
  38159. (void)ctx; /* UNUSED */
  38160. (void)md; /* UNUSED */
  38161. return (ARCHIVE_FAILED);
  38162. }
  38163. #endif
  38164. /* NOTE: Message Digest functions are set based on availability and by the
  38165. * following order of preference.
  38166. * 1. libc
  38167. * 2. libc2
  38168. * 3. libc3
  38169. * 4. libSystem
  38170. * 5. Nettle
  38171. * 6. OpenSSL
  38172. * 7. libmd
  38173. * 8. Windows API
  38174. */
  38175. const struct archive_digest __archive_digest =
  38176. {
  38177. /* MD5 */
  38178. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  38179. &__archive_libc_md5init,
  38180. &__archive_libc_md5update,
  38181. &__archive_libc_md5final,
  38182. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  38183. &__archive_libmd_md5init,
  38184. &__archive_libmd_md5update,
  38185. &__archive_libmd_md5final,
  38186. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  38187. &__archive_libsystem_md5init,
  38188. &__archive_libsystem_md5update,
  38189. &__archive_libsystem_md5final,
  38190. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  38191. &__archive_nettle_md5init,
  38192. &__archive_nettle_md5update,
  38193. &__archive_nettle_md5final,
  38194. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  38195. &__archive_openssl_md5init,
  38196. &__archive_openssl_md5update,
  38197. &__archive_openssl_md5final,
  38198. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  38199. &__archive_windowsapi_md5init,
  38200. &__archive_windowsapi_md5update,
  38201. &__archive_windowsapi_md5final,
  38202. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  38203. &__archive_stub_md5init,
  38204. &__archive_stub_md5update,
  38205. &__archive_stub_md5final,
  38206. #endif
  38207. /* RIPEMD160 */
  38208. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  38209. &__archive_libc_ripemd160init,
  38210. &__archive_libc_ripemd160update,
  38211. &__archive_libc_ripemd160final,
  38212. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  38213. &__archive_libmd_ripemd160init,
  38214. &__archive_libmd_ripemd160update,
  38215. &__archive_libmd_ripemd160final,
  38216. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  38217. &__archive_nettle_ripemd160init,
  38218. &__archive_nettle_ripemd160update,
  38219. &__archive_nettle_ripemd160final,
  38220. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  38221. &__archive_openssl_ripemd160init,
  38222. &__archive_openssl_ripemd160update,
  38223. &__archive_openssl_ripemd160final,
  38224. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  38225. &__archive_stub_ripemd160init,
  38226. &__archive_stub_ripemd160update,
  38227. &__archive_stub_ripemd160final,
  38228. #endif
  38229. /* SHA1 */
  38230. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  38231. &__archive_libc_sha1init,
  38232. &__archive_libc_sha1update,
  38233. &__archive_libc_sha1final,
  38234. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  38235. &__archive_libmd_sha1init,
  38236. &__archive_libmd_sha1update,
  38237. &__archive_libmd_sha1final,
  38238. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  38239. &__archive_libsystem_sha1init,
  38240. &__archive_libsystem_sha1update,
  38241. &__archive_libsystem_sha1final,
  38242. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  38243. &__archive_nettle_sha1init,
  38244. &__archive_nettle_sha1update,
  38245. &__archive_nettle_sha1final,
  38246. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  38247. &__archive_openssl_sha1init,
  38248. &__archive_openssl_sha1update,
  38249. &__archive_openssl_sha1final,
  38250. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  38251. &__archive_windowsapi_sha1init,
  38252. &__archive_windowsapi_sha1update,
  38253. &__archive_windowsapi_sha1final,
  38254. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  38255. &__archive_stub_sha1init,
  38256. &__archive_stub_sha1update,
  38257. &__archive_stub_sha1final,
  38258. #endif
  38259. /* SHA256 */
  38260. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  38261. &__archive_libc_sha256init,
  38262. &__archive_libc_sha256update,
  38263. &__archive_libc_sha256final,
  38264. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  38265. &__archive_libc2_sha256init,
  38266. &__archive_libc2_sha256update,
  38267. &__archive_libc2_sha256final,
  38268. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  38269. &__archive_libc3_sha256init,
  38270. &__archive_libc3_sha256update,
  38271. &__archive_libc3_sha256final,
  38272. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  38273. &__archive_libmd_sha256init,
  38274. &__archive_libmd_sha256update,
  38275. &__archive_libmd_sha256final,
  38276. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  38277. &__archive_libsystem_sha256init,
  38278. &__archive_libsystem_sha256update,
  38279. &__archive_libsystem_sha256final,
  38280. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  38281. &__archive_nettle_sha256init,
  38282. &__archive_nettle_sha256update,
  38283. &__archive_nettle_sha256final,
  38284. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  38285. &__archive_openssl_sha256init,
  38286. &__archive_openssl_sha256update,
  38287. &__archive_openssl_sha256final,
  38288. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  38289. &__archive_windowsapi_sha256init,
  38290. &__archive_windowsapi_sha256update,
  38291. &__archive_windowsapi_sha256final,
  38292. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  38293. &__archive_stub_sha256init,
  38294. &__archive_stub_sha256update,
  38295. &__archive_stub_sha256final,
  38296. #endif
  38297. /* SHA384 */
  38298. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  38299. &__archive_libc_sha384init,
  38300. &__archive_libc_sha384update,
  38301. &__archive_libc_sha384final,
  38302. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  38303. &__archive_libc2_sha384init,
  38304. &__archive_libc2_sha384update,
  38305. &__archive_libc2_sha384final,
  38306. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  38307. &__archive_libc3_sha384init,
  38308. &__archive_libc3_sha384update,
  38309. &__archive_libc3_sha384final,
  38310. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  38311. &__archive_libsystem_sha384init,
  38312. &__archive_libsystem_sha384update,
  38313. &__archive_libsystem_sha384final,
  38314. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  38315. &__archive_nettle_sha384init,
  38316. &__archive_nettle_sha384update,
  38317. &__archive_nettle_sha384final,
  38318. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  38319. &__archive_openssl_sha384init,
  38320. &__archive_openssl_sha384update,
  38321. &__archive_openssl_sha384final,
  38322. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  38323. &__archive_windowsapi_sha384init,
  38324. &__archive_windowsapi_sha384update,
  38325. &__archive_windowsapi_sha384final,
  38326. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  38327. &__archive_stub_sha384init,
  38328. &__archive_stub_sha384update,
  38329. &__archive_stub_sha384final,
  38330. #endif
  38331. /* SHA512 */
  38332. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  38333. &__archive_libc_sha512init,
  38334. &__archive_libc_sha512update,
  38335. &__archive_libc_sha512final
  38336. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  38337. &__archive_libc2_sha512init,
  38338. &__archive_libc2_sha512update,
  38339. &__archive_libc2_sha512final
  38340. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  38341. &__archive_libc3_sha512init,
  38342. &__archive_libc3_sha512update,
  38343. &__archive_libc3_sha512final
  38344. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  38345. &__archive_libmd_sha512init,
  38346. &__archive_libmd_sha512update,
  38347. &__archive_libmd_sha512final
  38348. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  38349. &__archive_libsystem_sha512init,
  38350. &__archive_libsystem_sha512update,
  38351. &__archive_libsystem_sha512final
  38352. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  38353. &__archive_nettle_sha512init,
  38354. &__archive_nettle_sha512update,
  38355. &__archive_nettle_sha512final
  38356. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  38357. &__archive_openssl_sha512init,
  38358. &__archive_openssl_sha512update,
  38359. &__archive_openssl_sha512final
  38360. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  38361. &__archive_windowsapi_sha512init,
  38362. &__archive_windowsapi_sha512update,
  38363. &__archive_windowsapi_sha512final
  38364. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  38365. &__archive_stub_sha512init,
  38366. &__archive_stub_sha512update,
  38367. &__archive_stub_sha512final
  38368. #endif
  38369. };
  38370. int
  38371. main(int argc, char **argv)
  38372. {
  38373. archive_sha1_ctx ctx;
  38374. archive_sha1_init(&ctx);
  38375. archive_sha1_update(&ctx, *argv, argc);
  38376. archive_sha1_final(&ctx, NULL);
  38377. return 0;
  38378. }
  38379. Checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM failed with the following output:
  38380. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  38381. Run Build Command:"/usr/bin/make" "cmTC_c43cb/fast"
  38382. make -f CMakeFiles/cmTC_c43cb.dir/build.make CMakeFiles/cmTC_c43cb.dir/build
  38383. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  38384. Building C object CMakeFiles/cmTC_c43cb.dir/check_crypto_md.c.o
  38385. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_c43cb.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  38386. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  38387. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:112:39: fatal error: CommonCrypto/CommonDigest.h: No such file or directory
  38388. compilation terminated.
  38389. CMakeFiles/cmTC_c43cb.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_c43cb.dir/check_crypto_md.c.o' failed
  38390. make[1]: *** [CMakeFiles/cmTC_c43cb.dir/check_crypto_md.c.o] Error 1
  38391. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  38392. Makefile:126: recipe for target 'cmTC_c43cb/fast' failed
  38393. make: *** [cmTC_c43cb/fast] Error 2
  38394. Source file was:
  38395. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  38396. #if defined(__osf__)
  38397. # define _OSF_SOURCE
  38398. #endif
  38399. /*
  38400. * Ensure we have C99-style int64_t, etc, all defined.
  38401. */
  38402. /* First, we need to know if the system has already defined them. */
  38403. #define HAVE_INT16_T
  38404. #define HAVE_INT32_T
  38405. #define HAVE_INT64_T
  38406. #define HAVE_INTMAX_T
  38407. #define HAVE_UINT8_T
  38408. #define HAVE_UINT16_T
  38409. #define HAVE_UINT32_T
  38410. #define HAVE_UINT64_T
  38411. #define HAVE_UINTMAX_T
  38412. /* We might have the types we want under other spellings. */
  38413. /* #undef HAVE___INT64 */
  38414. /* #undef HAVE_U_INT64_T */
  38415. /* #undef HAVE_UNSIGNED___INT64 */
  38416. /* The sizes of various standard integer types. */
  38417. #define SIZE_OF_SHORT 2
  38418. #define SIZE_OF_INT 4
  38419. #define SIZE_OF_LONG 8
  38420. #define SIZE_OF_LONG_LONG 8
  38421. #define SIZE_OF_UNSIGNED_SHORT 2
  38422. #define SIZE_OF_UNSIGNED 4
  38423. #define SIZE_OF_UNSIGNED_LONG 8
  38424. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  38425. /*
  38426. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  38427. * that exists and is the right size.
  38428. */
  38429. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  38430. typedef __int64 int64_t;
  38431. #define HAVE_INT64_T
  38432. #endif
  38433. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  38434. typedef int int64_t;
  38435. #define HAVE_INT64_T
  38436. #endif
  38437. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  38438. typedef long int64_t;
  38439. #define HAVE_INT64_T
  38440. #endif
  38441. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  38442. typedef long long int64_t;
  38443. #define HAVE_INT64_T
  38444. #endif
  38445. #if !defined(HAVE_INT64_T)
  38446. #error No 64-bit integer type was found.
  38447. #endif
  38448. /*
  38449. * Similarly for int32_t
  38450. */
  38451. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  38452. typedef int int32_t;
  38453. #define HAVE_INT32_T
  38454. #endif
  38455. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  38456. typedef long int32_t;
  38457. #define HAVE_INT32_T
  38458. #endif
  38459. #if !defined(HAVE_INT32_T)
  38460. #error No 32-bit integer type was found.
  38461. #endif
  38462. /*
  38463. * Similarly for int16_t
  38464. */
  38465. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  38466. typedef int int16_t;
  38467. #define HAVE_INT16_T
  38468. #endif
  38469. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  38470. typedef short int16_t;
  38471. #define HAVE_INT16_T
  38472. #endif
  38473. #if !defined(HAVE_INT16_T)
  38474. #error No 16-bit integer type was found.
  38475. #endif
  38476. /*
  38477. * Similarly for uint64_t
  38478. */
  38479. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  38480. typedef unsigned __int64 uint64_t;
  38481. #define HAVE_UINT64_T
  38482. #endif
  38483. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  38484. typedef unsigned uint64_t;
  38485. #define HAVE_UINT64_T
  38486. #endif
  38487. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  38488. typedef unsigned long uint64_t;
  38489. #define HAVE_UINT64_T
  38490. #endif
  38491. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  38492. typedef unsigned long long uint64_t;
  38493. #define HAVE_UINT64_T
  38494. #endif
  38495. #if !defined(HAVE_UINT64_T)
  38496. #error No 64-bit unsigned integer type was found.
  38497. #endif
  38498. /*
  38499. * Similarly for uint32_t
  38500. */
  38501. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  38502. typedef unsigned uint32_t;
  38503. #define HAVE_UINT32_T
  38504. #endif
  38505. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  38506. typedef unsigned long uint32_t;
  38507. #define HAVE_UINT32_T
  38508. #endif
  38509. #if !defined(HAVE_UINT32_T)
  38510. #error No 32-bit unsigned integer type was found.
  38511. #endif
  38512. /*
  38513. * Similarly for uint16_t
  38514. */
  38515. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  38516. typedef unsigned uint16_t;
  38517. #define HAVE_UINT16_T
  38518. #endif
  38519. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  38520. typedef unsigned short uint16_t;
  38521. #define HAVE_UINT16_T
  38522. #endif
  38523. #if !defined(HAVE_UINT16_T)
  38524. #error No 16-bit unsigned integer type was found.
  38525. #endif
  38526. /*
  38527. * Similarly for uint8_t
  38528. */
  38529. #if !defined(HAVE_UINT8_T)
  38530. typedef unsigned char uint8_t;
  38531. #define HAVE_UINT8_T
  38532. #endif
  38533. #if !defined(HAVE_UINT16_T)
  38534. #error No 8-bit unsigned integer type was found.
  38535. #endif
  38536. /* Define intmax_t and uintmax_t if they are not already defined. */
  38537. #if !defined(HAVE_INTMAX_T)
  38538. typedef int64_t intmax_t;
  38539. #endif
  38540. #if !defined(HAVE_UINTMAX_T)
  38541. typedef uint64_t uintmax_t;
  38542. #endif
  38543. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  38544. /* #undef ZLIB_WINAPI */
  38545. /* Darwin ACL support */
  38546. /* #undef ARCHIVE_ACL_DARWIN */
  38547. /* FreeBSD ACL support */
  38548. /* #undef ARCHIVE_ACL_FREEBSD */
  38549. /* FreeBSD NFSv4 ACL support */
  38550. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  38551. /* Linux POSIX.1e ACL support via libacl */
  38552. /* #undef ARCHIVE_ACL_LIBACL */
  38553. /* Linux NFSv4 ACL support via librichacl */
  38554. /* #undef ARCHIVE_ACL_LIBRICHACL */
  38555. /* Solaris ACL support */
  38556. /* #undef ARCHIVE_ACL_SUNOS */
  38557. /* Solaris NFSv4 ACL support */
  38558. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  38559. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  38560. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  38561. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  38562. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  38563. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  38564. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  38565. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  38566. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  38567. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  38568. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  38569. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  38570. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  38571. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  38572. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  38573. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  38574. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  38575. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  38576. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  38577. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  38578. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  38579. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  38580. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  38581. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  38582. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  38583. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  38584. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  38585. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  38586. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  38587. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  38588. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  38589. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  38590. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  38591. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  38592. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  38593. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  38594. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  38595. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  38596. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  38597. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  38598. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  38599. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  38600. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  38601. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  38602. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  38603. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  38604. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  38605. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  38606. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  38607. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  38608. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  38609. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  38610. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  38611. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  38612. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  38613. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  38614. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  38615. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  38616. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  38617. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  38618. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  38619. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  38620. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  38621. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  38622. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  38623. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  38624. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  38625. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  38626. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  38627. /* AIX xattr support */
  38628. /* #undef ARCHIVE_XATTR_AIX */
  38629. /* Darwin xattr support */
  38630. /* #undef ARCHIVE_XATTR_DARWIN */
  38631. /* FreeBSD xattr support */
  38632. /* #undef ARCHIVE_XATTR_FREEBSD */
  38633. /* Linux xattr support */
  38634. /* #undef ARCHIVE_XATTR_LINUX */
  38635. /* Version number of bsdcpio */
  38636. #define BSDCPIO_VERSION_STRING "3.3.2"
  38637. /* Version number of bsdtar */
  38638. #define BSDTAR_VERSION_STRING "3.3.2"
  38639. /* Version number of bsdcat */
  38640. #define BSDCAT_VERSION_STRING "3.3.2"
  38641. /* Define to 1 if you have the `acl_create_entry' function. */
  38642. /* #undef HAVE_ACL_CREATE_ENTRY */
  38643. /* Define to 1 if you have the `acl_get_fd_np' function. */
  38644. /* #undef HAVE_ACL_GET_FD_NP */
  38645. /* Define to 1 if you have the `acl_get_link' function. */
  38646. /* #undef HAVE_ACL_GET_LINK */
  38647. /* Define to 1 if you have the `acl_get_link_np' function. */
  38648. /* #undef HAVE_ACL_GET_LINK_NP */
  38649. /* Define to 1 if you have the `acl_get_perm' function. */
  38650. /* #undef HAVE_ACL_GET_PERM */
  38651. /* Define to 1 if you have the `acl_get_perm_np' function. */
  38652. /* #undef HAVE_ACL_GET_PERM_NP */
  38653. /* Define to 1 if you have the `acl_init' function. */
  38654. /* #undef HAVE_ACL_INIT */
  38655. /* Define to 1 if you have the <acl/libacl.h> header file. */
  38656. /* #undef HAVE_ACL_LIBACL_H */
  38657. /* Define to 1 if the system has the type `acl_permset_t'. */
  38658. /* #undef HAVE_ACL_PERMSET_T */
  38659. /* Define to 1 if you have the `acl_set_fd' function. */
  38660. /* #undef HAVE_ACL_SET_FD */
  38661. /* Define to 1 if you have the `acl_set_fd_np' function. */
  38662. /* #undef HAVE_ACL_SET_FD_NP */
  38663. /* Define to 1 if you have the `acl_set_file' function. */
  38664. /* #undef HAVE_ACL_SET_FILE */
  38665. /* Define to 1 if you have the `arc4random_buf' function. */
  38666. /* #undef HAVE_ARC4RANDOM_BUF */
  38667. /* Define to 1 if you have the <attr/xattr.h> header file. */
  38668. /* #undef HAVE_ATTR_XATTR_H */
  38669. /* Define to 1 if you have the <Bcrypt.h> header file. */
  38670. /* #undef HAVE_BCRYPT_H */
  38671. /* Define to 1 if you have the <bsdxml.h> header file. */
  38672. /* #undef HAVE_BSDXML_H */
  38673. /* Define to 1 if you have the <bzlib.h> header file. */
  38674. #define HAVE_BZLIB_H 1
  38675. /* Define to 1 if you have the `chflags' function. */
  38676. /* #undef HAVE_CHFLAGS */
  38677. /* Define to 1 if you have the `chown' function. */
  38678. #define HAVE_CHOWN 1
  38679. /* Define to 1 if you have the `chroot' function. */
  38680. #define HAVE_CHROOT 1
  38681. /* Define to 1 if you have the <copyfile.h> header file. */
  38682. /* #undef HAVE_COPYFILE_H */
  38683. /* Define to 1 if you have the `ctime_r' function. */
  38684. #define HAVE_CTIME_R 1
  38685. /* Define to 1 if you have the <ctype.h> header file. */
  38686. #define HAVE_CTYPE_H 1
  38687. /* Define to 1 if you have the `cygwin_conv_path' function. */
  38688. /* #undef HAVE_CYGWIN_CONV_PATH */
  38689. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  38690. don't. */
  38691. /* #undef HAVE_DECL_ACE_GETACL */
  38692. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  38693. don't. */
  38694. /* #undef HAVE_DECL_ACE_GETACLCNT */
  38695. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  38696. don't. */
  38697. /* #undef HAVE_DECL_ACE_SETACL */
  38698. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  38699. you don't. */
  38700. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  38701. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  38702. you don't. */
  38703. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  38704. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  38705. don't. */
  38706. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  38707. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  38708. don't. */
  38709. /* #undef HAVE_DECL_ACL_USER */
  38710. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  38711. don't. */
  38712. #define HAVE_DECL_INT32_MAX 1
  38713. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  38714. don't. */
  38715. #define HAVE_DECL_INT32_MIN 1
  38716. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  38717. don't. */
  38718. #define HAVE_DECL_INT64_MAX 1
  38719. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  38720. don't. */
  38721. #define HAVE_DECL_INT64_MIN 1
  38722. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  38723. don't. */
  38724. #define HAVE_DECL_INTMAX_MAX 1
  38725. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  38726. don't. */
  38727. #define HAVE_DECL_INTMAX_MIN 1
  38728. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  38729. */
  38730. /* #undef HAVE_DECL_SETACL */
  38731. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  38732. don't. */
  38733. #define HAVE_DECL_SIZE_MAX 1
  38734. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  38735. don't. */
  38736. #define HAVE_DECL_SSIZE_MAX 1
  38737. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  38738. don't. */
  38739. #define HAVE_DECL_STRERROR_R 1
  38740. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  38741. don't. */
  38742. #define HAVE_DECL_UINT32_MAX 1
  38743. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  38744. don't. */
  38745. #define HAVE_DECL_UINT64_MAX 1
  38746. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  38747. don't. */
  38748. #define HAVE_DECL_UINTMAX_MAX 1
  38749. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  38750. you don't. */
  38751. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  38752. /* Define to 1 if you have the <direct.h> header file. */
  38753. /* #undef HAVE_DIRECT_H */
  38754. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  38755. */
  38756. #define HAVE_DIRENT_H 1
  38757. /* Define to 1 if you have the `dirfd' function. */
  38758. #define HAVE_DIRFD 1
  38759. /* Define to 1 if you have the <dlfcn.h> header file. */
  38760. #define HAVE_DLFCN_H 1
  38761. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  38762. /* #undef HAVE_DOPRNT */
  38763. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  38764. /* #undef HAVE_D_MD_ORDER */
  38765. /* A possible errno value for invalid file format errors */
  38766. /* #undef HAVE_EFTYPE */
  38767. /* A possible errno value for invalid file format errors */
  38768. #define HAVE_EILSEQ 1
  38769. /* Define to 1 if you have the <errno.h> header file. */
  38770. #define HAVE_ERRNO_H 1
  38771. /* Define to 1 if you have the <expat.h> header file. */
  38772. /* #undef HAVE_EXPAT_H */
  38773. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  38774. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  38775. /* Define to 1 if you have the `extattr_get_file' function. */
  38776. /* #undef HAVE_EXTATTR_GET_FILE */
  38777. /* Define to 1 if you have the `extattr_list_file' function. */
  38778. /* #undef HAVE_EXTATTR_LIST_FILE */
  38779. /* Define to 1 if you have the `extattr_set_fd' function. */
  38780. /* #undef HAVE_EXTATTR_SET_FD */
  38781. /* Define to 1 if you have the `extattr_set_file' function. */
  38782. /* #undef HAVE_EXTATTR_SET_FILE */
  38783. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  38784. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  38785. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  38786. */
  38787. /* #undef HAVE_DECL_GETACL */
  38788. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  38789. don't. */
  38790. /* #undef HAVE_DECL_GETACLCNT */
  38791. /* Define to 1 if you have the `fchdir' function. */
  38792. #define HAVE_FCHDIR 1
  38793. /* Define to 1 if you have the `fchflags' function. */
  38794. /* #undef HAVE_FCHFLAGS */
  38795. /* Define to 1 if you have the `fchmod' function. */
  38796. #define HAVE_FCHMOD 1
  38797. /* Define to 1 if you have the `fchown' function. */
  38798. #define HAVE_FCHOWN 1
  38799. /* Define to 1 if you have the `fcntl' function. */
  38800. #define HAVE_FCNTL 1
  38801. /* Define to 1 if you have the <fcntl.h> header file. */
  38802. #define HAVE_FCNTL_H 1
  38803. /* Define to 1 if you have the `fdopendir' function. */
  38804. #define HAVE_FDOPENDIR 1
  38805. /* Define to 1 if you have the `fgetea' function. */
  38806. /* #undef HAVE_FGETEA */
  38807. /* Define to 1 if you have the `fgetxattr' function. */
  38808. /* #undef HAVE_FGETXATTR */
  38809. /* Define to 1 if you have the `flistea' function. */
  38810. /* #undef HAVE_FLISTEA */
  38811. /* Define to 1 if you have the `flistxattr' function. */
  38812. /* #undef HAVE_FLISTXATTR */
  38813. /* Define to 1 if you have the `fork' function. */
  38814. #define HAVE_FORK 1
  38815. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  38816. #define HAVE_FSEEKO 1
  38817. /* Define to 1 if you have the `fsetea' function. */
  38818. /* #undef HAVE_FSETEA */
  38819. /* Define to 1 if you have the `fsetxattr' function. */
  38820. #define HAVE_FSETXATTR 1
  38821. /* Define to 1 if you have the `fstat' function. */
  38822. #define HAVE_FSTAT 1
  38823. /* Define to 1 if you have the `fstatat' function. */
  38824. #define HAVE_FSTATAT 1
  38825. /* Define to 1 if you have the `fstatfs' function. */
  38826. #define HAVE_FSTATFS 1
  38827. /* Define to 1 if you have the `fstatvfs' function. */
  38828. #define HAVE_FSTATVFS 1
  38829. /* Define to 1 if you have the `ftruncate' function. */
  38830. #define HAVE_FTRUNCATE 1
  38831. /* Define to 1 if you have the `futimens' function. */
  38832. #define HAVE_FUTIMENS 1
  38833. /* Define to 1 if you have the `futimes' function. */
  38834. #define HAVE_FUTIMES 1
  38835. /* Define to 1 if you have the `futimesat' function. */
  38836. #define HAVE_FUTIMESAT 1
  38837. /* Define to 1 if you have the `getea' function. */
  38838. /* #undef HAVE_GETEA */
  38839. /* Define to 1 if you have the `geteuid' function. */
  38840. #define HAVE_GETEUID 1
  38841. /* Define to 1 if you have the `getgrgid_r' function. */
  38842. #define HAVE_GETGRGID_R 1
  38843. /* Define to 1 if you have the `getgrnam_r' function. */
  38844. #define HAVE_GETGRNAM_R 1
  38845. /* Define to 1 if you have the `getpid' function. */
  38846. #define HAVE_GETPID 1
  38847. /* Define to 1 if you have the `getpwnam_r' function. */
  38848. #define HAVE_GETPWNAM_R 1
  38849. /* Define to 1 if you have the `getpwuid_r' function. */
  38850. #define HAVE_GETPWUID_R 1
  38851. /* Define to 1 if you have the `getvfsbyname' function. */
  38852. /* #undef HAVE_GETVFSBYNAME */
  38853. /* Define to 1 if you have the `getxattr' function. */
  38854. /* #undef HAVE_GETXATTR */
  38855. /* Define to 1 if you have the `gmtime_r' function. */
  38856. #define HAVE_GMTIME_R 1
  38857. /* Define to 1 if you have the <grp.h> header file. */
  38858. #define HAVE_GRP_H 1
  38859. /* Define to 1 if you have the `iconv' function. */
  38860. /* #undef HAVE_ICONV */
  38861. /* Define to 1 if you have the <iconv.h> header file. */
  38862. /* #undef HAVE_ICONV_H */
  38863. /* Define to 1 if you have the <inttypes.h> header file. */
  38864. #define HAVE_INTTYPES_H 1
  38865. /* Define to 1 if you have the <io.h> header file. */
  38866. /* #undef HAVE_IO_H */
  38867. /* Define to 1 if you have the <langinfo.h> header file. */
  38868. #define HAVE_LANGINFO_H 1
  38869. /* Define to 1 if you have the `lchflags' function. */
  38870. /* #undef HAVE_LCHFLAGS */
  38871. /* Define to 1 if you have the `lchmod' function. */
  38872. /* #undef HAVE_LCHMOD */
  38873. /* Define to 1 if you have the `lchown' function. */
  38874. #define HAVE_LCHOWN 1
  38875. /* Define to 1 if you have the `lgetea' function. */
  38876. /* #undef HAVE_LGETEA */
  38877. /* Define to 1 if you have the `lgetxattr' function. */
  38878. /* #undef HAVE_LGETXATTR */
  38879. /* Define to 1 if you have the `acl' library (-lacl). */
  38880. /* #undef HAVE_LIBACL */
  38881. /* Define to 1 if you have the `attr' library (-lattr). */
  38882. /* #undef HAVE_LIBATTR */
  38883. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  38884. /* #undef HAVE_LIBBSDXML */
  38885. /* Define to 1 if you have the `bz2' library (-lbz2). */
  38886. #define HAVE_LIBBZ2 1
  38887. /* Define to 1 if you have the `charset' library (-lcharset). */
  38888. /* #undef HAVE_LIBCHARSET */
  38889. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  38890. #define HAVE_LIBCRYPTO 1
  38891. /* Define to 1 if you have the `expat' library (-lexpat). */
  38892. /* #undef HAVE_LIBEXPAT */
  38893. /* Define to 1 if you have the `gcc' library (-lgcc). */
  38894. /* #undef HAVE_LIBGCC */
  38895. /* Define to 1 if you have the `lz4' library (-llz4). */
  38896. /* #undef HAVE_LIBLZ4 */
  38897. /* Define to 1 if you have the `lzma' library (-llzma). */
  38898. #define HAVE_LIBLZMA 1
  38899. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  38900. /* #undef HAVE_LIBLZMADEC */
  38901. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  38902. /* #undef HAVE_LIBLZO2 */
  38903. /* Define to 1 if you have the `nettle' library (-lnettle). */
  38904. /* #undef HAVE_LIBNETTLE */
  38905. /* Define to 1 if you have the `pcre' library (-lpcre). */
  38906. /* #undef HAVE_LIBPCRE */
  38907. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  38908. /* #undef HAVE_LIBPCREPOSIX */
  38909. /* Define to 1 if you have the `xml2' library (-lxml2). */
  38910. /* #undef HAVE_LIBXML2 */
  38911. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  38912. /* #undef HAVE_LIBXML_XMLREADER_H */
  38913. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  38914. /* #undef HAVE_LIBXML_XMLWRITER_H */
  38915. /* Define to 1 if you have the `z' library (-lz). */
  38916. #define HAVE_LIBZ 1
  38917. /* Define to 1 if you have the <limits.h> header file. */
  38918. #define HAVE_LIMITS_H 1
  38919. /* Define to 1 if you have the `link' function. */
  38920. #define HAVE_LINK 1
  38921. /* Define to 1 if you have the <linux/types.h> header file. */
  38922. #define HAVE_LINUX_TYPES_H 1
  38923. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  38924. #define HAVE_LINUX_FIEMAP_H 1
  38925. /* Define to 1 if you have the <linux/fs.h> header file. */
  38926. #define HAVE_LINUX_FS_H 1
  38927. /* Define to 1 if you have the <linux/magic.h> header file. */
  38928. #define HAVE_LINUX_MAGIC_H 1
  38929. /* Define to 1 if you have the <linux/types.h> header file. */
  38930. #define HAVE_LINUX_TYPES_H 1
  38931. /* Define to 1 if you have the `listea' function. */
  38932. /* #undef HAVE_LISTEA */
  38933. /* Define to 1 if you have the `listxattr' function. */
  38934. /* #undef HAVE_LISTXATTR */
  38935. /* Define to 1 if you have the `llistea' function. */
  38936. /* #undef HAVE_LLISTEA */
  38937. /* Define to 1 if you have the `llistxattr' function. */
  38938. /* #undef HAVE_LLISTXATTR */
  38939. /* Define to 1 if you have the <localcharset.h> header file. */
  38940. /* #undef HAVE_LOCALCHARSET_H */
  38941. /* Define to 1 if you have the `locale_charset' function. */
  38942. /* #undef HAVE_LOCALE_CHARSET */
  38943. /* Define to 1 if you have the <locale.h> header file. */
  38944. #define HAVE_LOCALE_H 1
  38945. /* Define to 1 if you have the `localtime_r' function. */
  38946. #define HAVE_LOCALTIME_R 1
  38947. /* Define to 1 if the system has the type `long long int'. */
  38948. /* #undef HAVE_LONG_LONG_INT */
  38949. /* Define to 1 if you have the `lsetea' function. */
  38950. /* #undef HAVE_LSETEA */
  38951. /* Define to 1 if you have the `lsetxattr' function. */
  38952. /* #undef HAVE_LSETXATTR */
  38953. /* Define to 1 if you have the `lstat' function. */
  38954. #define HAVE_LSTAT 1
  38955. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  38956. zero-length file name argument. */
  38957. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  38958. /* Define to 1 if you have the `lutimes' function. */
  38959. #define HAVE_LUTIMES 1
  38960. /* Define to 1 if you have the <lz4hc.h> header file. */
  38961. /* #undef HAVE_LZ4HC_H */
  38962. /* Define to 1 if you have the <lz4.h> header file. */
  38963. /* #undef HAVE_LZ4_H */
  38964. /* Define to 1 if you have the <lzmadec.h> header file. */
  38965. /* #undef HAVE_LZMADEC_H */
  38966. /* Define to 1 if you have the <lzma.h> header file. */
  38967. #define HAVE_LZMA_H 1
  38968. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  38969. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  38970. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  38971. /* #undef HAVE_LZO_LZO1X_H */
  38972. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  38973. /* #undef HAVE_LZO_LZOCONF_H */
  38974. /* Define to 1 if you have the `mbrtowc' function. */
  38975. #define HAVE_MBRTOWC 1
  38976. /* Define to 1 if you have the <membership.h> header file. */
  38977. /* #undef HAVE_MEMBERSHIP_H */
  38978. /* Define to 1 if you have the `memmove' function. */
  38979. #define HAVE_MEMMOVE 1
  38980. /* Define to 1 if you have the <memory.h> header file. */
  38981. #define HAVE_MEMORY_H 1
  38982. /* Define to 1 if you have the `mkdir' function. */
  38983. #define HAVE_MKDIR 1
  38984. /* Define to 1 if you have the `mkfifo' function. */
  38985. #define HAVE_MKFIFO 1
  38986. /* Define to 1 if you have the `mknod' function. */
  38987. #define HAVE_MKNOD 1
  38988. /* Define to 1 if you have the `mkstemp' function. */
  38989. #define HAVE_MKSTEMP 1
  38990. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  38991. /* #undef HAVE_NDIR_H */
  38992. /* Define to 1 if you have the <nettle/aes.h> header file. */
  38993. /* #undef HAVE_NETTLE_AES_H */
  38994. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  38995. /* #undef HAVE_NETTLE_HMAC_H */
  38996. /* Define to 1 if you have the <nettle/md5.h> header file. */
  38997. /* #undef HAVE_NETTLE_MD5_H */
  38998. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  38999. /* #undef HAVE_NETTLE_PBKDF2_H */
  39000. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  39001. /* #undef HAVE_NETTLE_RIPEMD160_H */
  39002. /* Define to 1 if you have the <nettle/sha.h> header file. */
  39003. /* #undef HAVE_NETTLE_SHA_H */
  39004. /* Define to 1 if you have the `nl_langinfo' function. */
  39005. #define HAVE_NL_LANGINFO 1
  39006. /* Define to 1 if you have the `openat' function. */
  39007. #define HAVE_OPENAT 1
  39008. /* Define to 1 if you have the <paths.h> header file. */
  39009. #define HAVE_PATHS_H 1
  39010. /* Define to 1 if you have the <pcreposix.h> header file. */
  39011. /* #undef HAVE_PCREPOSIX_H */
  39012. /* Define to 1 if you have the `pipe' function. */
  39013. #define HAVE_PIPE 1
  39014. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  39015. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  39016. /* Define to 1 if you have the `poll' function. */
  39017. #define HAVE_POLL 1
  39018. /* Define to 1 if you have the <poll.h> header file. */
  39019. #define HAVE_POLL_H 1
  39020. /* Define to 1 if you have the `posix_spawnp' function. */
  39021. #define HAVE_POSIX_SPAWNP 1
  39022. /* Define to 1 if you have the <process.h> header file. */
  39023. /* #undef HAVE_PROCESS_H */
  39024. /* Define to 1 if you have the <pthread.h> header file. */
  39025. /* #undef HAVE_PTHREAD_H */
  39026. /* Define to 1 if you have the <pwd.h> header file. */
  39027. #define HAVE_PWD_H 1
  39028. /* Define to 1 if you have the `readdir_r' function. */
  39029. #define HAVE_READDIR_R 1
  39030. /* Define to 1 if you have the `readlink' function. */
  39031. #define HAVE_READLINK 1
  39032. /* Define to 1 if you have the `readlinkat' function. */
  39033. #define HAVE_READLINKAT 1
  39034. /* Define to 1 if you have the `readpassphrase' function. */
  39035. /* #undef HAVE_READPASSPHRASE */
  39036. /* Define to 1 if you have the <readpassphrase.h> header file. */
  39037. /* #undef HAVE_READPASSPHRASE_H */
  39038. /* Define to 1 if you have the <regex.h> header file. */
  39039. #define HAVE_REGEX_H 1
  39040. /* Define to 1 if you have the `select' function. */
  39041. #define HAVE_SELECT 1
  39042. /* Define to 1 if you have the `setenv' function. */
  39043. #define HAVE_SETENV 1
  39044. /* Define to 1 if you have the `setlocale' function. */
  39045. #define HAVE_SETLOCALE 1
  39046. /* Define to 1 if you have the `sigaction' function. */
  39047. #define HAVE_SIGACTION 1
  39048. /* Define to 1 if you have the <signal.h> header file. */
  39049. #define HAVE_SIGNAL_H 1
  39050. /* Define to 1 if you have the <spawn.h> header file. */
  39051. #define HAVE_SPAWN_H 1
  39052. /* Define to 1 if you have the `statfs' function. */
  39053. #define HAVE_STATFS 1
  39054. /* Define to 1 if you have the `statvfs' function. */
  39055. #define HAVE_STATVFS 1
  39056. /* Define to 1 if `stat' has the bug that it succeeds when given the
  39057. zero-length file name argument. */
  39058. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  39059. /* Define to 1 if you have the <stdarg.h> header file. */
  39060. #define HAVE_STDARG_H 1
  39061. /* Define to 1 if you have the <stdint.h> header file. */
  39062. #define HAVE_STDINT_H 1
  39063. /* Define to 1 if you have the <stdlib.h> header file. */
  39064. #define HAVE_STDLIB_H 1
  39065. /* Define to 1 if you have the `strchr' function. */
  39066. #define HAVE_STRCHR 1
  39067. /* Define to 1 if you have the `strdup' function. */
  39068. #define HAVE_STRDUP 1
  39069. /* Define to 1 if you have the `strerror' function. */
  39070. #define HAVE_STRERROR 1
  39071. /* Define to 1 if you have the `strerror_r' function. */
  39072. #define HAVE_STRERROR_R 1
  39073. /* Define to 1 if you have the `strftime' function. */
  39074. #define HAVE_STRFTIME 1
  39075. /* Define to 1 if you have the <strings.h> header file. */
  39076. #define HAVE_STRINGS_H 1
  39077. /* Define to 1 if you have the <string.h> header file. */
  39078. #define HAVE_STRING_H 1
  39079. /* Define to 1 if you have the `strrchr' function. */
  39080. #define HAVE_STRRCHR 1
  39081. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  39082. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  39083. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  39084. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  39085. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  39086. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  39087. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  39088. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  39089. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  39090. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  39091. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  39092. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  39093. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  39094. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  39095. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  39096. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  39097. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  39098. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  39099. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  39100. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  39101. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  39102. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  39103. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  39104. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  39105. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  39106. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  39107. /* Define to 1 if you have `struct vfsconf'. */
  39108. /* #undef HAVE_STRUCT_VFSCONF */
  39109. /* Define to 1 if you have `struct xvfsconf'. */
  39110. /* #undef HAVE_STRUCT_XVFSCONF */
  39111. /* Define to 1 if you have the `symlink' function. */
  39112. #define HAVE_SYMLINK 1
  39113. /* Define to 1 if you have the <sys/acl.h> header file. */
  39114. /* #undef HAVE_SYS_ACL_H */
  39115. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  39116. #define HAVE_SYS_CDEFS_H 1
  39117. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  39118. */
  39119. /* #undef HAVE_SYS_DIR_H */
  39120. /* Define to 1 if you have the <sys/ea.h> header file. */
  39121. /* #undef HAVE_SYS_EA_H */
  39122. /* Define to 1 if you have the <sys/extattr.h> header file. */
  39123. /* #undef HAVE_SYS_EXTATTR_H */
  39124. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  39125. #define HAVE_SYS_IOCTL_H 1
  39126. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  39127. /* #undef HAVE_SYS_MKDEV_H */
  39128. /* Define to 1 if you have the <sys/mount.h> header file. */
  39129. /* #undef HAVE_SYS_MOUNT_H */
  39130. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  39131. */
  39132. /* #undef HAVE_SYS_NDIR_H */
  39133. /* Define to 1 if you have the <sys/param.h> header file. */
  39134. #define HAVE_SYS_PARAM_H 1
  39135. /* Define to 1 if you have the <sys/poll.h> header file. */
  39136. #define HAVE_SYS_POLL_H 1
  39137. /* Define to 1 if you have the <sys/richacl.h> header file. */
  39138. /* #undef HAVE_SYS_RICHACL_H */
  39139. /* Define to 1 if you have the <sys/select.h> header file. */
  39140. #define HAVE_SYS_SELECT_H 1
  39141. /* Define to 1 if you have the <sys/statfs.h> header file. */
  39142. #define HAVE_SYS_STATFS_H 1
  39143. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  39144. #define HAVE_SYS_STATVFS_H 1
  39145. /* Define to 1 if you have the <sys/stat.h> header file. */
  39146. #define HAVE_SYS_STAT_H 1
  39147. /* Define to 1 if you have the <sys/time.h> header file. */
  39148. #define HAVE_SYS_TIME_H 1
  39149. /* Define to 1 if you have the <sys/types.h> header file. */
  39150. #define HAVE_SYS_TYPES_H 1
  39151. /* Define to 1 if you have the <sys/utime.h> header file. */
  39152. /* #undef HAVE_SYS_UTIME_H */
  39153. /* Define to 1 if you have the <sys/utsname.h> header file. */
  39154. #define HAVE_SYS_UTSNAME_H 1
  39155. /* Define to 1 if you have the <sys/vfs.h> header file. */
  39156. #define HAVE_SYS_VFS_H 1
  39157. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  39158. #define HAVE_SYS_WAIT_H 1
  39159. /* Define to 1 if you have the <sys/xattr.h> header file. */
  39160. #define HAVE_SYS_XATTR_H 1
  39161. /* Define to 1 if you have the `timegm' function. */
  39162. #define HAVE_TIMEGM 1
  39163. /* Define to 1 if you have the <time.h> header file. */
  39164. #define HAVE_TIME_H 1
  39165. /* Define to 1 if you have the `tzset' function. */
  39166. #define HAVE_TZSET 1
  39167. /* Define to 1 if you have the <unistd.h> header file. */
  39168. #define HAVE_UNISTD_H 1
  39169. /* Define to 1 if you have the `unsetenv' function. */
  39170. #define HAVE_UNSETENV 1
  39171. /* Define to 1 if the system has the type `unsigned long long'. */
  39172. /* #undef HAVE_UNSIGNED_LONG_LONG */
  39173. /* Define to 1 if the system has the type `unsigned long long int'. */
  39174. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  39175. /* Define to 1 if you have the `utime' function. */
  39176. #define HAVE_UTIME 1
  39177. /* Define to 1 if you have the `utimensat' function. */
  39178. #define HAVE_UTIMENSAT 1
  39179. /* Define to 1 if you have the `utimes' function. */
  39180. #define HAVE_UTIMES 1
  39181. /* Define to 1 if you have the <utime.h> header file. */
  39182. #define HAVE_UTIME_H 1
  39183. /* Define to 1 if you have the `vfork' function. */
  39184. #define HAVE_VFORK 1
  39185. /* Define to 1 if you have the `vprintf' function. */
  39186. #define HAVE_VPRINTF 1
  39187. /* Define to 1 if you have the <wchar.h> header file. */
  39188. #define HAVE_WCHAR_H 1
  39189. /* Define to 1 if the system has the type `wchar_t'. */
  39190. #define HAVE_WCHAR_T 1
  39191. /* Define to 1 if you have the `wcrtomb' function. */
  39192. #define HAVE_WCRTOMB 1
  39193. /* Define to 1 if you have the `wcscmp' function. */
  39194. #define HAVE_WCSCMP 1
  39195. /* Define to 1 if you have the `wcscpy' function. */
  39196. #define HAVE_WCSCPY 1
  39197. /* Define to 1 if you have the `wcslen' function. */
  39198. #define HAVE_WCSLEN 1
  39199. /* Define to 1 if you have the `wctomb' function. */
  39200. #define HAVE_WCTOMB 1
  39201. /* Define to 1 if you have the <wctype.h> header file. */
  39202. #define HAVE_WCTYPE_H 1
  39203. /* Define to 1 if you have the <wincrypt.h> header file. */
  39204. /* #undef HAVE_WINCRYPT_H */
  39205. /* Define to 1 if you have the <windows.h> header file. */
  39206. /* #undef HAVE_WINDOWS_H */
  39207. /* Define to 1 if you have the <winioctl.h> header file. */
  39208. /* #undef HAVE_WINIOCTL_H */
  39209. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  39210. /* #undef HAVE__CrtSetReportMode */
  39211. /* Define to 1 if you have the `wmemcmp' function. */
  39212. #define HAVE_WMEMCMP 1
  39213. /* Define to 1 if you have the `wmemcpy' function. */
  39214. #define HAVE_WMEMCPY 1
  39215. /* Define to 1 if you have the `wmemmove' function. */
  39216. #define HAVE_WMEMMOVE 1
  39217. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  39218. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  39219. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  39220. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  39221. /* Define to 1 if you have the <zlib.h> header file. */
  39222. #define HAVE_ZLIB_H 1
  39223. /* Define to 1 if you have the `_ctime64_s' function. */
  39224. /* #undef HAVE__CTIME64_S */
  39225. /* Define to 1 if you have the `_fseeki64' function. */
  39226. /* #undef HAVE__FSEEKI64 */
  39227. /* Define to 1 if you have the `_get_timezone' function. */
  39228. /* #undef HAVE__GET_TIMEZONE */
  39229. /* Define to 1 if you have the `_localtime64_s' function. */
  39230. /* #undef HAVE__LOCALTIME64_S */
  39231. /* Define to 1 if you have the `_mkgmtime64' function. */
  39232. /* #undef HAVE__MKGMTIME64 */
  39233. /* Define as const if the declaration of iconv() needs const. */
  39234. #define ICONV_CONST
  39235. /* Version number of libarchive as a single integer */
  39236. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  39237. /* Version number of libarchive */
  39238. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  39239. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  39240. slash. */
  39241. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  39242. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  39243. */
  39244. /* #undef MAJOR_IN_MKDEV */
  39245. /* Define to 1 if `major', `minor', and `makedev' are declared in
  39246. <sysmacros.h>. */
  39247. #define MAJOR_IN_SYSMACROS 1
  39248. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  39249. /* #undef NO_MINUS_C_MINUS_O */
  39250. /* The size of `wchar_t', as computed by sizeof. */
  39251. #define SIZEOF_WCHAR_T 4
  39252. /* Define to 1 if strerror_r returns char *. */
  39253. /* #undef STRERROR_R_CHAR_P */
  39254. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  39255. #define TIME_WITH_SYS_TIME 1
  39256. /*
  39257. * Some platform requires a macro to use extension functions.
  39258. */
  39259. #define SAFE_TO_DEFINE_EXTENSIONS 1
  39260. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  39261. /* Enable extensions on AIX 3, Interix. */
  39262. #ifndef _ALL_SOURCE
  39263. # define _ALL_SOURCE 1
  39264. #endif
  39265. /* Enable GNU extensions on systems that have them. */
  39266. #ifndef _GNU_SOURCE
  39267. # define _GNU_SOURCE 1
  39268. #endif
  39269. /* Enable threading extensions on Solaris. */
  39270. #ifndef _POSIX_PTHREAD_SEMANTICS
  39271. # define _POSIX_PTHREAD_SEMANTICS 1
  39272. #endif
  39273. /* Enable extensions on HP NonStop. */
  39274. #ifndef _TANDEM_SOURCE
  39275. # define _TANDEM_SOURCE 1
  39276. #endif
  39277. /* Enable general extensions on Solaris. */
  39278. #ifndef __EXTENSIONS__
  39279. # define __EXTENSIONS__ 1
  39280. #endif
  39281. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  39282. /* Version number of package */
  39283. #define VERSION "3.3.2"
  39284. /* Number of bits in a file offset, on hosts where this is settable. */
  39285. /* #undef _FILE_OFFSET_BITS */
  39286. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  39287. /* #undef _LARGEFILE_SOURCE */
  39288. /* Define for large files, on AIX-style hosts. */
  39289. /* #undef _LARGE_FILES */
  39290. /* Define to control Windows SDK version */
  39291. #ifndef NTDDI_VERSION
  39292. /* #undef NTDDI_VERSION */
  39293. #endif // NTDDI_VERSION
  39294. #ifndef _WIN32_WINNT
  39295. /* #undef _WIN32_WINNT */
  39296. #endif // _WIN32_WINNT
  39297. #ifndef WINVER
  39298. /* #undef WINVER */
  39299. #endif // WINVER
  39300. /* Define to empty if `const' does not conform to ANSI C. */
  39301. /* #undef const */
  39302. /* Define to `int' if <sys/types.h> doesn't define. */
  39303. /* #undef gid_t */
  39304. /* Define to `unsigned long' if <sys/types.h> does not define. */
  39305. /* #undef id_t */
  39306. /* Define to `int' if <sys/types.h> does not define. */
  39307. /* #undef mode_t */
  39308. /* Define to `long long' if <sys/types.h> does not define. */
  39309. /* #undef off_t */
  39310. /* Define to `int' if <sys/types.h> doesn't define. */
  39311. /* #undef pid_t */
  39312. /* Define to `unsigned int' if <sys/types.h> does not define. */
  39313. /* #undef size_t */
  39314. /* Define to `int' if <sys/types.h> does not define. */
  39315. /* #undef ssize_t */
  39316. /* Define to `int' if <sys/types.h> doesn't define. */
  39317. /* #undef uid_t */
  39318. /* Define to `int' if <sys/types.h> does not define. */
  39319. /* #undef intptr_t */
  39320. /* Define to `unsigned int' if <sys/types.h> does not define. */
  39321. /* #undef uintptr_t */
  39322. #define ARCHIVE_SHA256_COMPILE_TEST
  39323. #define ARCHIVE_CRYPTO_SHA256_LIBSYSTEM
  39324. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  39325. /*-
  39326. * Copyright (c) 2003-2007 Tim Kientzle
  39327. * Copyright (c) 2011 Andres Mejia
  39328. * Copyright (c) 2011 Michihiro NAKAJIMA
  39329. * All rights reserved.
  39330. *
  39331. * Redistribution and use in source and binary forms, with or without
  39332. * modification, are permitted provided that the following conditions
  39333. * are met:
  39334. * 1. Redistributions of source code must retain the above copyright
  39335. * notice, this list of conditions and the following disclaimer.
  39336. * 2. Redistributions in binary form must reproduce the above copyright
  39337. * notice, this list of conditions and the following disclaimer in the
  39338. * documentation and/or other materials provided with the distribution.
  39339. *
  39340. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  39341. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  39342. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  39343. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  39344. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  39345. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  39346. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  39347. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  39348. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  39349. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  39350. */
  39351. #include "archive_platform.h"
  39352. #include "archive.h"
  39353. #include "archive_digest_private.h"
  39354. /* In particular, force the configure probe to break if it tries
  39355. * to test a combination of OpenSSL and libmd. */
  39356. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  39357. #error Cannot use both OpenSSL and libmd.
  39358. #endif
  39359. /*
  39360. * Message digest functions for Windows platform.
  39361. */
  39362. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  39363. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  39364. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  39365. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  39366. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  39367. /*
  39368. * Initialize a Message digest.
  39369. */
  39370. static int
  39371. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  39372. {
  39373. ctx->valid = 0;
  39374. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  39375. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  39376. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  39377. return (ARCHIVE_FAILED);
  39378. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  39379. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  39380. return (ARCHIVE_FAILED);
  39381. }
  39382. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  39383. CryptReleaseContext(ctx->cryptProv, 0);
  39384. return (ARCHIVE_FAILED);
  39385. }
  39386. ctx->valid = 1;
  39387. return (ARCHIVE_OK);
  39388. }
  39389. /*
  39390. * Update a Message digest.
  39391. */
  39392. static int
  39393. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  39394. {
  39395. if (!ctx->valid)
  39396. return (ARCHIVE_FAILED);
  39397. CryptHashData(ctx->hash,
  39398. (unsigned char *)(uintptr_t)buf,
  39399. (DWORD)len, 0);
  39400. return (ARCHIVE_OK);
  39401. }
  39402. static int
  39403. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  39404. {
  39405. DWORD siglen = (DWORD)bufsize;
  39406. if (!ctx->valid)
  39407. return (ARCHIVE_FAILED);
  39408. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  39409. CryptDestroyHash(ctx->hash);
  39410. CryptReleaseContext(ctx->cryptProv, 0);
  39411. ctx->valid = 0;
  39412. return (ARCHIVE_OK);
  39413. }
  39414. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  39415. /* MD5 implementations */
  39416. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  39417. static int
  39418. __archive_libc_md5init(archive_md5_ctx *ctx)
  39419. {
  39420. MD5Init(ctx);
  39421. return (ARCHIVE_OK);
  39422. }
  39423. static int
  39424. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  39425. size_t insize)
  39426. {
  39427. MD5Update(ctx, indata, insize);
  39428. return (ARCHIVE_OK);
  39429. }
  39430. static int
  39431. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  39432. {
  39433. MD5Final(md, ctx);
  39434. return (ARCHIVE_OK);
  39435. }
  39436. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  39437. static int
  39438. __archive_libmd_md5init(archive_md5_ctx *ctx)
  39439. {
  39440. MD5Init(ctx);
  39441. return (ARCHIVE_OK);
  39442. }
  39443. static int
  39444. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  39445. size_t insize)
  39446. {
  39447. MD5Update(ctx, indata, insize);
  39448. return (ARCHIVE_OK);
  39449. }
  39450. static int
  39451. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  39452. {
  39453. MD5Final(md, ctx);
  39454. return (ARCHIVE_OK);
  39455. }
  39456. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  39457. static int
  39458. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  39459. {
  39460. CC_MD5_Init(ctx);
  39461. return (ARCHIVE_OK);
  39462. }
  39463. static int
  39464. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  39465. size_t insize)
  39466. {
  39467. CC_MD5_Update(ctx, indata, insize);
  39468. return (ARCHIVE_OK);
  39469. }
  39470. static int
  39471. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  39472. {
  39473. CC_MD5_Final(md, ctx);
  39474. return (ARCHIVE_OK);
  39475. }
  39476. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  39477. static int
  39478. __archive_nettle_md5init(archive_md5_ctx *ctx)
  39479. {
  39480. md5_init(ctx);
  39481. return (ARCHIVE_OK);
  39482. }
  39483. static int
  39484. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  39485. size_t insize)
  39486. {
  39487. md5_update(ctx, insize, indata);
  39488. return (ARCHIVE_OK);
  39489. }
  39490. static int
  39491. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  39492. {
  39493. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  39494. return (ARCHIVE_OK);
  39495. }
  39496. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  39497. static int
  39498. __archive_openssl_md5init(archive_md5_ctx *ctx)
  39499. {
  39500. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  39501. return (ARCHIVE_FAILED);
  39502. EVP_DigestInit(*ctx, EVP_md5());
  39503. return (ARCHIVE_OK);
  39504. }
  39505. static int
  39506. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  39507. size_t insize)
  39508. {
  39509. EVP_DigestUpdate(*ctx, indata, insize);
  39510. return (ARCHIVE_OK);
  39511. }
  39512. static int
  39513. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  39514. {
  39515. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  39516. * this is meant to cope with that. Real fix is probably to fix
  39517. * archive_write_set_format_xar.c
  39518. */
  39519. if (*ctx) {
  39520. EVP_DigestFinal(*ctx, md, NULL);
  39521. EVP_MD_CTX_free(*ctx);
  39522. *ctx = NULL;
  39523. }
  39524. return (ARCHIVE_OK);
  39525. }
  39526. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  39527. static int
  39528. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  39529. {
  39530. return (win_crypto_init(ctx, CALG_MD5));
  39531. }
  39532. static int
  39533. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  39534. size_t insize)
  39535. {
  39536. return (win_crypto_Update(ctx, indata, insize));
  39537. }
  39538. static int
  39539. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  39540. {
  39541. return (win_crypto_Final(md, 16, ctx));
  39542. }
  39543. #else
  39544. static int
  39545. __archive_stub_md5init(archive_md5_ctx *ctx)
  39546. {
  39547. (void)ctx; /* UNUSED */
  39548. return (ARCHIVE_FAILED);
  39549. }
  39550. static int
  39551. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  39552. size_t insize)
  39553. {
  39554. (void)ctx; /* UNUSED */
  39555. (void)indata; /* UNUSED */
  39556. (void)insize; /* UNUSED */
  39557. return (ARCHIVE_FAILED);
  39558. }
  39559. static int
  39560. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  39561. {
  39562. (void)ctx; /* UNUSED */
  39563. (void)md; /* UNUSED */
  39564. return (ARCHIVE_FAILED);
  39565. }
  39566. #endif
  39567. /* RIPEMD160 implementations */
  39568. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  39569. static int
  39570. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  39571. {
  39572. RMD160Init(ctx);
  39573. return (ARCHIVE_OK);
  39574. }
  39575. static int
  39576. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  39577. size_t insize)
  39578. {
  39579. RMD160Update(ctx, indata, insize);
  39580. return (ARCHIVE_OK);
  39581. }
  39582. static int
  39583. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  39584. {
  39585. RMD160Final(md, ctx);
  39586. return (ARCHIVE_OK);
  39587. }
  39588. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  39589. static int
  39590. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  39591. {
  39592. RIPEMD160_Init(ctx);
  39593. return (ARCHIVE_OK);
  39594. }
  39595. static int
  39596. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  39597. size_t insize)
  39598. {
  39599. RIPEMD160_Update(ctx, indata, insize);
  39600. return (ARCHIVE_OK);
  39601. }
  39602. static int
  39603. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  39604. {
  39605. RIPEMD160_Final(md, ctx);
  39606. return (ARCHIVE_OK);
  39607. }
  39608. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  39609. static int
  39610. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  39611. {
  39612. ripemd160_init(ctx);
  39613. return (ARCHIVE_OK);
  39614. }
  39615. static int
  39616. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  39617. size_t insize)
  39618. {
  39619. ripemd160_update(ctx, insize, indata);
  39620. return (ARCHIVE_OK);
  39621. }
  39622. static int
  39623. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  39624. {
  39625. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  39626. return (ARCHIVE_OK);
  39627. }
  39628. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  39629. static int
  39630. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  39631. {
  39632. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  39633. return (ARCHIVE_FAILED);
  39634. EVP_DigestInit(*ctx, EVP_ripemd160());
  39635. return (ARCHIVE_OK);
  39636. }
  39637. static int
  39638. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  39639. size_t insize)
  39640. {
  39641. EVP_DigestUpdate(*ctx, indata, insize);
  39642. return (ARCHIVE_OK);
  39643. }
  39644. static int
  39645. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  39646. {
  39647. if (*ctx) {
  39648. EVP_DigestFinal(*ctx, md, NULL);
  39649. EVP_MD_CTX_free(*ctx);
  39650. *ctx = NULL;
  39651. }
  39652. return (ARCHIVE_OK);
  39653. }
  39654. #else
  39655. static int
  39656. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  39657. {
  39658. (void)ctx; /* UNUSED */
  39659. return (ARCHIVE_FAILED);
  39660. }
  39661. static int
  39662. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  39663. size_t insize)
  39664. {
  39665. (void)ctx; /* UNUSED */
  39666. (void)indata; /* UNUSED */
  39667. (void)insize; /* UNUSED */
  39668. return (ARCHIVE_FAILED);
  39669. }
  39670. static int
  39671. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  39672. {
  39673. (void)ctx; /* UNUSED */
  39674. (void)md; /* UNUSED */
  39675. return (ARCHIVE_FAILED);
  39676. }
  39677. #endif
  39678. /* SHA1 implementations */
  39679. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  39680. static int
  39681. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  39682. {
  39683. SHA1Init(ctx);
  39684. return (ARCHIVE_OK);
  39685. }
  39686. static int
  39687. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  39688. size_t insize)
  39689. {
  39690. SHA1Update(ctx, indata, insize);
  39691. return (ARCHIVE_OK);
  39692. }
  39693. static int
  39694. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  39695. {
  39696. SHA1Final(md, ctx);
  39697. return (ARCHIVE_OK);
  39698. }
  39699. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  39700. static int
  39701. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  39702. {
  39703. SHA1_Init(ctx);
  39704. return (ARCHIVE_OK);
  39705. }
  39706. static int
  39707. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  39708. size_t insize)
  39709. {
  39710. SHA1_Update(ctx, indata, insize);
  39711. return (ARCHIVE_OK);
  39712. }
  39713. static int
  39714. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  39715. {
  39716. SHA1_Final(md, ctx);
  39717. return (ARCHIVE_OK);
  39718. }
  39719. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  39720. static int
  39721. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  39722. {
  39723. CC_SHA1_Init(ctx);
  39724. return (ARCHIVE_OK);
  39725. }
  39726. static int
  39727. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  39728. size_t insize)
  39729. {
  39730. CC_SHA1_Update(ctx, indata, insize);
  39731. return (ARCHIVE_OK);
  39732. }
  39733. static int
  39734. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  39735. {
  39736. CC_SHA1_Final(md, ctx);
  39737. return (ARCHIVE_OK);
  39738. }
  39739. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  39740. static int
  39741. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  39742. {
  39743. sha1_init(ctx);
  39744. return (ARCHIVE_OK);
  39745. }
  39746. static int
  39747. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  39748. size_t insize)
  39749. {
  39750. sha1_update(ctx, insize, indata);
  39751. return (ARCHIVE_OK);
  39752. }
  39753. static int
  39754. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  39755. {
  39756. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  39757. return (ARCHIVE_OK);
  39758. }
  39759. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  39760. static int
  39761. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  39762. {
  39763. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  39764. return (ARCHIVE_FAILED);
  39765. EVP_DigestInit(*ctx, EVP_sha1());
  39766. return (ARCHIVE_OK);
  39767. }
  39768. static int
  39769. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  39770. size_t insize)
  39771. {
  39772. EVP_DigestUpdate(*ctx, indata, insize);
  39773. return (ARCHIVE_OK);
  39774. }
  39775. static int
  39776. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  39777. {
  39778. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  39779. * this is meant to cope with that. Real fix is probably to fix
  39780. * archive_write_set_format_xar.c
  39781. */
  39782. if (*ctx) {
  39783. EVP_DigestFinal(*ctx, md, NULL);
  39784. EVP_MD_CTX_free(*ctx);
  39785. *ctx = NULL;
  39786. }
  39787. return (ARCHIVE_OK);
  39788. }
  39789. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  39790. static int
  39791. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  39792. {
  39793. return (win_crypto_init(ctx, CALG_SHA1));
  39794. }
  39795. static int
  39796. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  39797. size_t insize)
  39798. {
  39799. return (win_crypto_Update(ctx, indata, insize));
  39800. }
  39801. static int
  39802. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  39803. {
  39804. return (win_crypto_Final(md, 20, ctx));
  39805. }
  39806. #else
  39807. static int
  39808. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  39809. {
  39810. (void)ctx; /* UNUSED */
  39811. return (ARCHIVE_FAILED);
  39812. }
  39813. static int
  39814. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  39815. size_t insize)
  39816. {
  39817. (void)ctx; /* UNUSED */
  39818. (void)indata; /* UNUSED */
  39819. (void)insize; /* UNUSED */
  39820. return (ARCHIVE_FAILED);
  39821. }
  39822. static int
  39823. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  39824. {
  39825. (void)ctx; /* UNUSED */
  39826. (void)md; /* UNUSED */
  39827. return (ARCHIVE_FAILED);
  39828. }
  39829. #endif
  39830. /* SHA256 implementations */
  39831. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  39832. static int
  39833. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  39834. {
  39835. SHA256_Init(ctx);
  39836. return (ARCHIVE_OK);
  39837. }
  39838. static int
  39839. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  39840. size_t insize)
  39841. {
  39842. SHA256_Update(ctx, indata, insize);
  39843. return (ARCHIVE_OK);
  39844. }
  39845. static int
  39846. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  39847. {
  39848. SHA256_Final(md, ctx);
  39849. return (ARCHIVE_OK);
  39850. }
  39851. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  39852. static int
  39853. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  39854. {
  39855. SHA256Init(ctx);
  39856. return (ARCHIVE_OK);
  39857. }
  39858. static int
  39859. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  39860. size_t insize)
  39861. {
  39862. SHA256Update(ctx, indata, insize);
  39863. return (ARCHIVE_OK);
  39864. }
  39865. static int
  39866. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  39867. {
  39868. SHA256Final(md, ctx);
  39869. return (ARCHIVE_OK);
  39870. }
  39871. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  39872. static int
  39873. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  39874. {
  39875. SHA256Init(ctx);
  39876. return (ARCHIVE_OK);
  39877. }
  39878. static int
  39879. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  39880. size_t insize)
  39881. {
  39882. SHA256Update(ctx, indata, insize);
  39883. return (ARCHIVE_OK);
  39884. }
  39885. static int
  39886. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  39887. {
  39888. SHA256Final(md, ctx);
  39889. return (ARCHIVE_OK);
  39890. }
  39891. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  39892. static int
  39893. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  39894. {
  39895. SHA256_Init(ctx);
  39896. return (ARCHIVE_OK);
  39897. }
  39898. static int
  39899. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  39900. size_t insize)
  39901. {
  39902. SHA256_Update(ctx, indata, insize);
  39903. return (ARCHIVE_OK);
  39904. }
  39905. static int
  39906. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  39907. {
  39908. SHA256_Final(md, ctx);
  39909. return (ARCHIVE_OK);
  39910. }
  39911. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  39912. static int
  39913. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  39914. {
  39915. CC_SHA256_Init(ctx);
  39916. return (ARCHIVE_OK);
  39917. }
  39918. static int
  39919. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  39920. size_t insize)
  39921. {
  39922. CC_SHA256_Update(ctx, indata, insize);
  39923. return (ARCHIVE_OK);
  39924. }
  39925. static int
  39926. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  39927. {
  39928. CC_SHA256_Final(md, ctx);
  39929. return (ARCHIVE_OK);
  39930. }
  39931. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  39932. static int
  39933. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  39934. {
  39935. sha256_init(ctx);
  39936. return (ARCHIVE_OK);
  39937. }
  39938. static int
  39939. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  39940. size_t insize)
  39941. {
  39942. sha256_update(ctx, insize, indata);
  39943. return (ARCHIVE_OK);
  39944. }
  39945. static int
  39946. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  39947. {
  39948. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  39949. return (ARCHIVE_OK);
  39950. }
  39951. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  39952. static int
  39953. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  39954. {
  39955. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  39956. return (ARCHIVE_FAILED);
  39957. EVP_DigestInit(*ctx, EVP_sha256());
  39958. return (ARCHIVE_OK);
  39959. }
  39960. static int
  39961. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  39962. size_t insize)
  39963. {
  39964. EVP_DigestUpdate(*ctx, indata, insize);
  39965. return (ARCHIVE_OK);
  39966. }
  39967. static int
  39968. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  39969. {
  39970. if (*ctx) {
  39971. EVP_DigestFinal(*ctx, md, NULL);
  39972. EVP_MD_CTX_free(*ctx);
  39973. *ctx = NULL;
  39974. }
  39975. return (ARCHIVE_OK);
  39976. }
  39977. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  39978. static int
  39979. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  39980. {
  39981. return (win_crypto_init(ctx, CALG_SHA_256));
  39982. }
  39983. static int
  39984. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  39985. size_t insize)
  39986. {
  39987. return (win_crypto_Update(ctx, indata, insize));
  39988. }
  39989. static int
  39990. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  39991. {
  39992. return (win_crypto_Final(md, 32, ctx));
  39993. }
  39994. #else
  39995. static int
  39996. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  39997. {
  39998. (void)ctx; /* UNUSED */
  39999. return (ARCHIVE_FAILED);
  40000. }
  40001. static int
  40002. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  40003. size_t insize)
  40004. {
  40005. (void)ctx; /* UNUSED */
  40006. (void)indata; /* UNUSED */
  40007. (void)insize; /* UNUSED */
  40008. return (ARCHIVE_FAILED);
  40009. }
  40010. static int
  40011. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  40012. {
  40013. (void)ctx; /* UNUSED */
  40014. (void)md; /* UNUSED */
  40015. return (ARCHIVE_FAILED);
  40016. }
  40017. #endif
  40018. /* SHA384 implementations */
  40019. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  40020. static int
  40021. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  40022. {
  40023. SHA384_Init(ctx);
  40024. return (ARCHIVE_OK);
  40025. }
  40026. static int
  40027. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  40028. size_t insize)
  40029. {
  40030. SHA384_Update(ctx, indata, insize);
  40031. return (ARCHIVE_OK);
  40032. }
  40033. static int
  40034. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  40035. {
  40036. SHA384_Final(md, ctx);
  40037. return (ARCHIVE_OK);
  40038. }
  40039. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  40040. static int
  40041. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  40042. {
  40043. SHA384Init(ctx);
  40044. return (ARCHIVE_OK);
  40045. }
  40046. static int
  40047. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  40048. size_t insize)
  40049. {
  40050. SHA384Update(ctx, indata, insize);
  40051. return (ARCHIVE_OK);
  40052. }
  40053. static int
  40054. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  40055. {
  40056. SHA384Final(md, ctx);
  40057. return (ARCHIVE_OK);
  40058. }
  40059. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  40060. static int
  40061. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  40062. {
  40063. SHA384Init(ctx);
  40064. return (ARCHIVE_OK);
  40065. }
  40066. static int
  40067. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  40068. size_t insize)
  40069. {
  40070. SHA384Update(ctx, indata, insize);
  40071. return (ARCHIVE_OK);
  40072. }
  40073. static int
  40074. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  40075. {
  40076. SHA384Final(md, ctx);
  40077. return (ARCHIVE_OK);
  40078. }
  40079. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  40080. static int
  40081. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  40082. {
  40083. CC_SHA384_Init(ctx);
  40084. return (ARCHIVE_OK);
  40085. }
  40086. static int
  40087. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  40088. size_t insize)
  40089. {
  40090. CC_SHA384_Update(ctx, indata, insize);
  40091. return (ARCHIVE_OK);
  40092. }
  40093. static int
  40094. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  40095. {
  40096. CC_SHA384_Final(md, ctx);
  40097. return (ARCHIVE_OK);
  40098. }
  40099. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  40100. static int
  40101. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  40102. {
  40103. sha384_init(ctx);
  40104. return (ARCHIVE_OK);
  40105. }
  40106. static int
  40107. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  40108. size_t insize)
  40109. {
  40110. sha384_update(ctx, insize, indata);
  40111. return (ARCHIVE_OK);
  40112. }
  40113. static int
  40114. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  40115. {
  40116. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  40117. return (ARCHIVE_OK);
  40118. }
  40119. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  40120. static int
  40121. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  40122. {
  40123. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  40124. return (ARCHIVE_FAILED);
  40125. EVP_DigestInit(*ctx, EVP_sha384());
  40126. return (ARCHIVE_OK);
  40127. }
  40128. static int
  40129. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  40130. size_t insize)
  40131. {
  40132. EVP_DigestUpdate(*ctx, indata, insize);
  40133. return (ARCHIVE_OK);
  40134. }
  40135. static int
  40136. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  40137. {
  40138. if (*ctx) {
  40139. EVP_DigestFinal(*ctx, md, NULL);
  40140. EVP_MD_CTX_free(*ctx);
  40141. *ctx = NULL;
  40142. }
  40143. return (ARCHIVE_OK);
  40144. }
  40145. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  40146. static int
  40147. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  40148. {
  40149. return (win_crypto_init(ctx, CALG_SHA_384));
  40150. }
  40151. static int
  40152. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  40153. size_t insize)
  40154. {
  40155. return (win_crypto_Update(ctx, indata, insize));
  40156. }
  40157. static int
  40158. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  40159. {
  40160. return (win_crypto_Final(md, 48, ctx));
  40161. }
  40162. #else
  40163. static int
  40164. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  40165. {
  40166. (void)ctx; /* UNUSED */
  40167. return (ARCHIVE_FAILED);
  40168. }
  40169. static int
  40170. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  40171. size_t insize)
  40172. {
  40173. (void)ctx; /* UNUSED */
  40174. (void)indata; /* UNUSED */
  40175. (void)insize; /* UNUSED */
  40176. return (ARCHIVE_FAILED);
  40177. }
  40178. static int
  40179. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  40180. {
  40181. (void)ctx; /* UNUSED */
  40182. (void)md; /* UNUSED */
  40183. return (ARCHIVE_FAILED);
  40184. }
  40185. #endif
  40186. /* SHA512 implementations */
  40187. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  40188. static int
  40189. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  40190. {
  40191. SHA512_Init(ctx);
  40192. return (ARCHIVE_OK);
  40193. }
  40194. static int
  40195. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  40196. size_t insize)
  40197. {
  40198. SHA512_Update(ctx, indata, insize);
  40199. return (ARCHIVE_OK);
  40200. }
  40201. static int
  40202. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  40203. {
  40204. SHA512_Final(md, ctx);
  40205. return (ARCHIVE_OK);
  40206. }
  40207. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  40208. static int
  40209. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  40210. {
  40211. SHA512Init(ctx);
  40212. return (ARCHIVE_OK);
  40213. }
  40214. static int
  40215. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  40216. size_t insize)
  40217. {
  40218. SHA512Update(ctx, indata, insize);
  40219. return (ARCHIVE_OK);
  40220. }
  40221. static int
  40222. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  40223. {
  40224. SHA512Final(md, ctx);
  40225. return (ARCHIVE_OK);
  40226. }
  40227. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  40228. static int
  40229. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  40230. {
  40231. SHA512Init(ctx);
  40232. return (ARCHIVE_OK);
  40233. }
  40234. static int
  40235. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  40236. size_t insize)
  40237. {
  40238. SHA512Update(ctx, indata, insize);
  40239. return (ARCHIVE_OK);
  40240. }
  40241. static int
  40242. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  40243. {
  40244. SHA512Final(md, ctx);
  40245. return (ARCHIVE_OK);
  40246. }
  40247. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  40248. static int
  40249. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  40250. {
  40251. SHA512_Init(ctx);
  40252. return (ARCHIVE_OK);
  40253. }
  40254. static int
  40255. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  40256. size_t insize)
  40257. {
  40258. SHA512_Update(ctx, indata, insize);
  40259. return (ARCHIVE_OK);
  40260. }
  40261. static int
  40262. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  40263. {
  40264. SHA512_Final(md, ctx);
  40265. return (ARCHIVE_OK);
  40266. }
  40267. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  40268. static int
  40269. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  40270. {
  40271. CC_SHA512_Init(ctx);
  40272. return (ARCHIVE_OK);
  40273. }
  40274. static int
  40275. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  40276. size_t insize)
  40277. {
  40278. CC_SHA512_Update(ctx, indata, insize);
  40279. return (ARCHIVE_OK);
  40280. }
  40281. static int
  40282. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  40283. {
  40284. CC_SHA512_Final(md, ctx);
  40285. return (ARCHIVE_OK);
  40286. }
  40287. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  40288. static int
  40289. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  40290. {
  40291. sha512_init(ctx);
  40292. return (ARCHIVE_OK);
  40293. }
  40294. static int
  40295. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  40296. size_t insize)
  40297. {
  40298. sha512_update(ctx, insize, indata);
  40299. return (ARCHIVE_OK);
  40300. }
  40301. static int
  40302. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  40303. {
  40304. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  40305. return (ARCHIVE_OK);
  40306. }
  40307. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  40308. static int
  40309. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  40310. {
  40311. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  40312. return (ARCHIVE_FAILED);
  40313. EVP_DigestInit(*ctx, EVP_sha512());
  40314. return (ARCHIVE_OK);
  40315. }
  40316. static int
  40317. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  40318. size_t insize)
  40319. {
  40320. EVP_DigestUpdate(*ctx, indata, insize);
  40321. return (ARCHIVE_OK);
  40322. }
  40323. static int
  40324. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  40325. {
  40326. if (*ctx) {
  40327. EVP_DigestFinal(*ctx, md, NULL);
  40328. EVP_MD_CTX_free(*ctx);
  40329. *ctx = NULL;
  40330. }
  40331. return (ARCHIVE_OK);
  40332. }
  40333. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  40334. static int
  40335. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  40336. {
  40337. return (win_crypto_init(ctx, CALG_SHA_512));
  40338. }
  40339. static int
  40340. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  40341. size_t insize)
  40342. {
  40343. return (win_crypto_Update(ctx, indata, insize));
  40344. }
  40345. static int
  40346. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  40347. {
  40348. return (win_crypto_Final(md, 64, ctx));
  40349. }
  40350. #else
  40351. static int
  40352. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  40353. {
  40354. (void)ctx; /* UNUSED */
  40355. return (ARCHIVE_FAILED);
  40356. }
  40357. static int
  40358. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  40359. size_t insize)
  40360. {
  40361. (void)ctx; /* UNUSED */
  40362. (void)indata; /* UNUSED */
  40363. (void)insize; /* UNUSED */
  40364. return (ARCHIVE_FAILED);
  40365. }
  40366. static int
  40367. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  40368. {
  40369. (void)ctx; /* UNUSED */
  40370. (void)md; /* UNUSED */
  40371. return (ARCHIVE_FAILED);
  40372. }
  40373. #endif
  40374. /* NOTE: Message Digest functions are set based on availability and by the
  40375. * following order of preference.
  40376. * 1. libc
  40377. * 2. libc2
  40378. * 3. libc3
  40379. * 4. libSystem
  40380. * 5. Nettle
  40381. * 6. OpenSSL
  40382. * 7. libmd
  40383. * 8. Windows API
  40384. */
  40385. const struct archive_digest __archive_digest =
  40386. {
  40387. /* MD5 */
  40388. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  40389. &__archive_libc_md5init,
  40390. &__archive_libc_md5update,
  40391. &__archive_libc_md5final,
  40392. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  40393. &__archive_libmd_md5init,
  40394. &__archive_libmd_md5update,
  40395. &__archive_libmd_md5final,
  40396. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  40397. &__archive_libsystem_md5init,
  40398. &__archive_libsystem_md5update,
  40399. &__archive_libsystem_md5final,
  40400. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  40401. &__archive_nettle_md5init,
  40402. &__archive_nettle_md5update,
  40403. &__archive_nettle_md5final,
  40404. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  40405. &__archive_openssl_md5init,
  40406. &__archive_openssl_md5update,
  40407. &__archive_openssl_md5final,
  40408. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  40409. &__archive_windowsapi_md5init,
  40410. &__archive_windowsapi_md5update,
  40411. &__archive_windowsapi_md5final,
  40412. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  40413. &__archive_stub_md5init,
  40414. &__archive_stub_md5update,
  40415. &__archive_stub_md5final,
  40416. #endif
  40417. /* RIPEMD160 */
  40418. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  40419. &__archive_libc_ripemd160init,
  40420. &__archive_libc_ripemd160update,
  40421. &__archive_libc_ripemd160final,
  40422. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  40423. &__archive_libmd_ripemd160init,
  40424. &__archive_libmd_ripemd160update,
  40425. &__archive_libmd_ripemd160final,
  40426. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  40427. &__archive_nettle_ripemd160init,
  40428. &__archive_nettle_ripemd160update,
  40429. &__archive_nettle_ripemd160final,
  40430. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  40431. &__archive_openssl_ripemd160init,
  40432. &__archive_openssl_ripemd160update,
  40433. &__archive_openssl_ripemd160final,
  40434. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  40435. &__archive_stub_ripemd160init,
  40436. &__archive_stub_ripemd160update,
  40437. &__archive_stub_ripemd160final,
  40438. #endif
  40439. /* SHA1 */
  40440. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  40441. &__archive_libc_sha1init,
  40442. &__archive_libc_sha1update,
  40443. &__archive_libc_sha1final,
  40444. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  40445. &__archive_libmd_sha1init,
  40446. &__archive_libmd_sha1update,
  40447. &__archive_libmd_sha1final,
  40448. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  40449. &__archive_libsystem_sha1init,
  40450. &__archive_libsystem_sha1update,
  40451. &__archive_libsystem_sha1final,
  40452. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  40453. &__archive_nettle_sha1init,
  40454. &__archive_nettle_sha1update,
  40455. &__archive_nettle_sha1final,
  40456. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  40457. &__archive_openssl_sha1init,
  40458. &__archive_openssl_sha1update,
  40459. &__archive_openssl_sha1final,
  40460. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  40461. &__archive_windowsapi_sha1init,
  40462. &__archive_windowsapi_sha1update,
  40463. &__archive_windowsapi_sha1final,
  40464. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  40465. &__archive_stub_sha1init,
  40466. &__archive_stub_sha1update,
  40467. &__archive_stub_sha1final,
  40468. #endif
  40469. /* SHA256 */
  40470. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  40471. &__archive_libc_sha256init,
  40472. &__archive_libc_sha256update,
  40473. &__archive_libc_sha256final,
  40474. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  40475. &__archive_libc2_sha256init,
  40476. &__archive_libc2_sha256update,
  40477. &__archive_libc2_sha256final,
  40478. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  40479. &__archive_libc3_sha256init,
  40480. &__archive_libc3_sha256update,
  40481. &__archive_libc3_sha256final,
  40482. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  40483. &__archive_libmd_sha256init,
  40484. &__archive_libmd_sha256update,
  40485. &__archive_libmd_sha256final,
  40486. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  40487. &__archive_libsystem_sha256init,
  40488. &__archive_libsystem_sha256update,
  40489. &__archive_libsystem_sha256final,
  40490. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  40491. &__archive_nettle_sha256init,
  40492. &__archive_nettle_sha256update,
  40493. &__archive_nettle_sha256final,
  40494. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  40495. &__archive_openssl_sha256init,
  40496. &__archive_openssl_sha256update,
  40497. &__archive_openssl_sha256final,
  40498. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  40499. &__archive_windowsapi_sha256init,
  40500. &__archive_windowsapi_sha256update,
  40501. &__archive_windowsapi_sha256final,
  40502. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  40503. &__archive_stub_sha256init,
  40504. &__archive_stub_sha256update,
  40505. &__archive_stub_sha256final,
  40506. #endif
  40507. /* SHA384 */
  40508. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  40509. &__archive_libc_sha384init,
  40510. &__archive_libc_sha384update,
  40511. &__archive_libc_sha384final,
  40512. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  40513. &__archive_libc2_sha384init,
  40514. &__archive_libc2_sha384update,
  40515. &__archive_libc2_sha384final,
  40516. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  40517. &__archive_libc3_sha384init,
  40518. &__archive_libc3_sha384update,
  40519. &__archive_libc3_sha384final,
  40520. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  40521. &__archive_libsystem_sha384init,
  40522. &__archive_libsystem_sha384update,
  40523. &__archive_libsystem_sha384final,
  40524. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  40525. &__archive_nettle_sha384init,
  40526. &__archive_nettle_sha384update,
  40527. &__archive_nettle_sha384final,
  40528. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  40529. &__archive_openssl_sha384init,
  40530. &__archive_openssl_sha384update,
  40531. &__archive_openssl_sha384final,
  40532. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  40533. &__archive_windowsapi_sha384init,
  40534. &__archive_windowsapi_sha384update,
  40535. &__archive_windowsapi_sha384final,
  40536. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  40537. &__archive_stub_sha384init,
  40538. &__archive_stub_sha384update,
  40539. &__archive_stub_sha384final,
  40540. #endif
  40541. /* SHA512 */
  40542. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  40543. &__archive_libc_sha512init,
  40544. &__archive_libc_sha512update,
  40545. &__archive_libc_sha512final
  40546. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  40547. &__archive_libc2_sha512init,
  40548. &__archive_libc2_sha512update,
  40549. &__archive_libc2_sha512final
  40550. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  40551. &__archive_libc3_sha512init,
  40552. &__archive_libc3_sha512update,
  40553. &__archive_libc3_sha512final
  40554. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  40555. &__archive_libmd_sha512init,
  40556. &__archive_libmd_sha512update,
  40557. &__archive_libmd_sha512final
  40558. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  40559. &__archive_libsystem_sha512init,
  40560. &__archive_libsystem_sha512update,
  40561. &__archive_libsystem_sha512final
  40562. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  40563. &__archive_nettle_sha512init,
  40564. &__archive_nettle_sha512update,
  40565. &__archive_nettle_sha512final
  40566. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  40567. &__archive_openssl_sha512init,
  40568. &__archive_openssl_sha512update,
  40569. &__archive_openssl_sha512final
  40570. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  40571. &__archive_windowsapi_sha512init,
  40572. &__archive_windowsapi_sha512update,
  40573. &__archive_windowsapi_sha512final
  40574. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  40575. &__archive_stub_sha512init,
  40576. &__archive_stub_sha512update,
  40577. &__archive_stub_sha512final
  40578. #endif
  40579. };
  40580. int
  40581. main(int argc, char **argv)
  40582. {
  40583. archive_sha256_ctx ctx;
  40584. archive_sha256_init(&ctx);
  40585. archive_sha256_update(&ctx, *argv, argc);
  40586. archive_sha256_final(&ctx, NULL);
  40587. return 0;
  40588. }
  40589. Checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM failed with the following output:
  40590. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  40591. Run Build Command:"/usr/bin/make" "cmTC_2bdd8/fast"
  40592. make -f CMakeFiles/cmTC_2bdd8.dir/build.make CMakeFiles/cmTC_2bdd8.dir/build
  40593. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  40594. Building C object CMakeFiles/cmTC_2bdd8.dir/check_crypto_md.c.o
  40595. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_2bdd8.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  40596. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  40597. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:112:39: fatal error: CommonCrypto/CommonDigest.h: No such file or directory
  40598. compilation terminated.
  40599. CMakeFiles/cmTC_2bdd8.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_2bdd8.dir/check_crypto_md.c.o' failed
  40600. make[1]: *** [CMakeFiles/cmTC_2bdd8.dir/check_crypto_md.c.o] Error 1
  40601. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  40602. Makefile:126: recipe for target 'cmTC_2bdd8/fast' failed
  40603. make: *** [cmTC_2bdd8/fast] Error 2
  40604. Source file was:
  40605. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  40606. #if defined(__osf__)
  40607. # define _OSF_SOURCE
  40608. #endif
  40609. /*
  40610. * Ensure we have C99-style int64_t, etc, all defined.
  40611. */
  40612. /* First, we need to know if the system has already defined them. */
  40613. #define HAVE_INT16_T
  40614. #define HAVE_INT32_T
  40615. #define HAVE_INT64_T
  40616. #define HAVE_INTMAX_T
  40617. #define HAVE_UINT8_T
  40618. #define HAVE_UINT16_T
  40619. #define HAVE_UINT32_T
  40620. #define HAVE_UINT64_T
  40621. #define HAVE_UINTMAX_T
  40622. /* We might have the types we want under other spellings. */
  40623. /* #undef HAVE___INT64 */
  40624. /* #undef HAVE_U_INT64_T */
  40625. /* #undef HAVE_UNSIGNED___INT64 */
  40626. /* The sizes of various standard integer types. */
  40627. #define SIZE_OF_SHORT 2
  40628. #define SIZE_OF_INT 4
  40629. #define SIZE_OF_LONG 8
  40630. #define SIZE_OF_LONG_LONG 8
  40631. #define SIZE_OF_UNSIGNED_SHORT 2
  40632. #define SIZE_OF_UNSIGNED 4
  40633. #define SIZE_OF_UNSIGNED_LONG 8
  40634. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  40635. /*
  40636. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  40637. * that exists and is the right size.
  40638. */
  40639. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  40640. typedef __int64 int64_t;
  40641. #define HAVE_INT64_T
  40642. #endif
  40643. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  40644. typedef int int64_t;
  40645. #define HAVE_INT64_T
  40646. #endif
  40647. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  40648. typedef long int64_t;
  40649. #define HAVE_INT64_T
  40650. #endif
  40651. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  40652. typedef long long int64_t;
  40653. #define HAVE_INT64_T
  40654. #endif
  40655. #if !defined(HAVE_INT64_T)
  40656. #error No 64-bit integer type was found.
  40657. #endif
  40658. /*
  40659. * Similarly for int32_t
  40660. */
  40661. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  40662. typedef int int32_t;
  40663. #define HAVE_INT32_T
  40664. #endif
  40665. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  40666. typedef long int32_t;
  40667. #define HAVE_INT32_T
  40668. #endif
  40669. #if !defined(HAVE_INT32_T)
  40670. #error No 32-bit integer type was found.
  40671. #endif
  40672. /*
  40673. * Similarly for int16_t
  40674. */
  40675. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  40676. typedef int int16_t;
  40677. #define HAVE_INT16_T
  40678. #endif
  40679. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  40680. typedef short int16_t;
  40681. #define HAVE_INT16_T
  40682. #endif
  40683. #if !defined(HAVE_INT16_T)
  40684. #error No 16-bit integer type was found.
  40685. #endif
  40686. /*
  40687. * Similarly for uint64_t
  40688. */
  40689. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  40690. typedef unsigned __int64 uint64_t;
  40691. #define HAVE_UINT64_T
  40692. #endif
  40693. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  40694. typedef unsigned uint64_t;
  40695. #define HAVE_UINT64_T
  40696. #endif
  40697. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  40698. typedef unsigned long uint64_t;
  40699. #define HAVE_UINT64_T
  40700. #endif
  40701. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  40702. typedef unsigned long long uint64_t;
  40703. #define HAVE_UINT64_T
  40704. #endif
  40705. #if !defined(HAVE_UINT64_T)
  40706. #error No 64-bit unsigned integer type was found.
  40707. #endif
  40708. /*
  40709. * Similarly for uint32_t
  40710. */
  40711. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  40712. typedef unsigned uint32_t;
  40713. #define HAVE_UINT32_T
  40714. #endif
  40715. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  40716. typedef unsigned long uint32_t;
  40717. #define HAVE_UINT32_T
  40718. #endif
  40719. #if !defined(HAVE_UINT32_T)
  40720. #error No 32-bit unsigned integer type was found.
  40721. #endif
  40722. /*
  40723. * Similarly for uint16_t
  40724. */
  40725. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  40726. typedef unsigned uint16_t;
  40727. #define HAVE_UINT16_T
  40728. #endif
  40729. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  40730. typedef unsigned short uint16_t;
  40731. #define HAVE_UINT16_T
  40732. #endif
  40733. #if !defined(HAVE_UINT16_T)
  40734. #error No 16-bit unsigned integer type was found.
  40735. #endif
  40736. /*
  40737. * Similarly for uint8_t
  40738. */
  40739. #if !defined(HAVE_UINT8_T)
  40740. typedef unsigned char uint8_t;
  40741. #define HAVE_UINT8_T
  40742. #endif
  40743. #if !defined(HAVE_UINT16_T)
  40744. #error No 8-bit unsigned integer type was found.
  40745. #endif
  40746. /* Define intmax_t and uintmax_t if they are not already defined. */
  40747. #if !defined(HAVE_INTMAX_T)
  40748. typedef int64_t intmax_t;
  40749. #endif
  40750. #if !defined(HAVE_UINTMAX_T)
  40751. typedef uint64_t uintmax_t;
  40752. #endif
  40753. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  40754. /* #undef ZLIB_WINAPI */
  40755. /* Darwin ACL support */
  40756. /* #undef ARCHIVE_ACL_DARWIN */
  40757. /* FreeBSD ACL support */
  40758. /* #undef ARCHIVE_ACL_FREEBSD */
  40759. /* FreeBSD NFSv4 ACL support */
  40760. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  40761. /* Linux POSIX.1e ACL support via libacl */
  40762. /* #undef ARCHIVE_ACL_LIBACL */
  40763. /* Linux NFSv4 ACL support via librichacl */
  40764. /* #undef ARCHIVE_ACL_LIBRICHACL */
  40765. /* Solaris ACL support */
  40766. /* #undef ARCHIVE_ACL_SUNOS */
  40767. /* Solaris NFSv4 ACL support */
  40768. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  40769. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  40770. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  40771. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  40772. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  40773. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  40774. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  40775. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  40776. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  40777. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  40778. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  40779. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  40780. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  40781. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  40782. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  40783. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  40784. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  40785. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  40786. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  40787. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  40788. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  40789. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  40790. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  40791. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  40792. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  40793. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  40794. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  40795. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  40796. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  40797. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  40798. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  40799. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  40800. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  40801. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  40802. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  40803. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  40804. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  40805. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  40806. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  40807. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  40808. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  40809. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  40810. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  40811. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  40812. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  40813. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  40814. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  40815. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  40816. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  40817. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  40818. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  40819. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  40820. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  40821. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  40822. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  40823. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  40824. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  40825. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  40826. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  40827. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  40828. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  40829. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  40830. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  40831. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  40832. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  40833. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  40834. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  40835. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  40836. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  40837. /* AIX xattr support */
  40838. /* #undef ARCHIVE_XATTR_AIX */
  40839. /* Darwin xattr support */
  40840. /* #undef ARCHIVE_XATTR_DARWIN */
  40841. /* FreeBSD xattr support */
  40842. /* #undef ARCHIVE_XATTR_FREEBSD */
  40843. /* Linux xattr support */
  40844. /* #undef ARCHIVE_XATTR_LINUX */
  40845. /* Version number of bsdcpio */
  40846. #define BSDCPIO_VERSION_STRING "3.3.2"
  40847. /* Version number of bsdtar */
  40848. #define BSDTAR_VERSION_STRING "3.3.2"
  40849. /* Version number of bsdcat */
  40850. #define BSDCAT_VERSION_STRING "3.3.2"
  40851. /* Define to 1 if you have the `acl_create_entry' function. */
  40852. /* #undef HAVE_ACL_CREATE_ENTRY */
  40853. /* Define to 1 if you have the `acl_get_fd_np' function. */
  40854. /* #undef HAVE_ACL_GET_FD_NP */
  40855. /* Define to 1 if you have the `acl_get_link' function. */
  40856. /* #undef HAVE_ACL_GET_LINK */
  40857. /* Define to 1 if you have the `acl_get_link_np' function. */
  40858. /* #undef HAVE_ACL_GET_LINK_NP */
  40859. /* Define to 1 if you have the `acl_get_perm' function. */
  40860. /* #undef HAVE_ACL_GET_PERM */
  40861. /* Define to 1 if you have the `acl_get_perm_np' function. */
  40862. /* #undef HAVE_ACL_GET_PERM_NP */
  40863. /* Define to 1 if you have the `acl_init' function. */
  40864. /* #undef HAVE_ACL_INIT */
  40865. /* Define to 1 if you have the <acl/libacl.h> header file. */
  40866. /* #undef HAVE_ACL_LIBACL_H */
  40867. /* Define to 1 if the system has the type `acl_permset_t'. */
  40868. /* #undef HAVE_ACL_PERMSET_T */
  40869. /* Define to 1 if you have the `acl_set_fd' function. */
  40870. /* #undef HAVE_ACL_SET_FD */
  40871. /* Define to 1 if you have the `acl_set_fd_np' function. */
  40872. /* #undef HAVE_ACL_SET_FD_NP */
  40873. /* Define to 1 if you have the `acl_set_file' function. */
  40874. /* #undef HAVE_ACL_SET_FILE */
  40875. /* Define to 1 if you have the `arc4random_buf' function. */
  40876. /* #undef HAVE_ARC4RANDOM_BUF */
  40877. /* Define to 1 if you have the <attr/xattr.h> header file. */
  40878. /* #undef HAVE_ATTR_XATTR_H */
  40879. /* Define to 1 if you have the <Bcrypt.h> header file. */
  40880. /* #undef HAVE_BCRYPT_H */
  40881. /* Define to 1 if you have the <bsdxml.h> header file. */
  40882. /* #undef HAVE_BSDXML_H */
  40883. /* Define to 1 if you have the <bzlib.h> header file. */
  40884. #define HAVE_BZLIB_H 1
  40885. /* Define to 1 if you have the `chflags' function. */
  40886. /* #undef HAVE_CHFLAGS */
  40887. /* Define to 1 if you have the `chown' function. */
  40888. #define HAVE_CHOWN 1
  40889. /* Define to 1 if you have the `chroot' function. */
  40890. #define HAVE_CHROOT 1
  40891. /* Define to 1 if you have the <copyfile.h> header file. */
  40892. /* #undef HAVE_COPYFILE_H */
  40893. /* Define to 1 if you have the `ctime_r' function. */
  40894. #define HAVE_CTIME_R 1
  40895. /* Define to 1 if you have the <ctype.h> header file. */
  40896. #define HAVE_CTYPE_H 1
  40897. /* Define to 1 if you have the `cygwin_conv_path' function. */
  40898. /* #undef HAVE_CYGWIN_CONV_PATH */
  40899. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  40900. don't. */
  40901. /* #undef HAVE_DECL_ACE_GETACL */
  40902. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  40903. don't. */
  40904. /* #undef HAVE_DECL_ACE_GETACLCNT */
  40905. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  40906. don't. */
  40907. /* #undef HAVE_DECL_ACE_SETACL */
  40908. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  40909. you don't. */
  40910. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  40911. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  40912. you don't. */
  40913. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  40914. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  40915. don't. */
  40916. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  40917. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  40918. don't. */
  40919. /* #undef HAVE_DECL_ACL_USER */
  40920. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  40921. don't. */
  40922. #define HAVE_DECL_INT32_MAX 1
  40923. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  40924. don't. */
  40925. #define HAVE_DECL_INT32_MIN 1
  40926. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  40927. don't. */
  40928. #define HAVE_DECL_INT64_MAX 1
  40929. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  40930. don't. */
  40931. #define HAVE_DECL_INT64_MIN 1
  40932. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  40933. don't. */
  40934. #define HAVE_DECL_INTMAX_MAX 1
  40935. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  40936. don't. */
  40937. #define HAVE_DECL_INTMAX_MIN 1
  40938. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  40939. */
  40940. /* #undef HAVE_DECL_SETACL */
  40941. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  40942. don't. */
  40943. #define HAVE_DECL_SIZE_MAX 1
  40944. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  40945. don't. */
  40946. #define HAVE_DECL_SSIZE_MAX 1
  40947. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  40948. don't. */
  40949. #define HAVE_DECL_STRERROR_R 1
  40950. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  40951. don't. */
  40952. #define HAVE_DECL_UINT32_MAX 1
  40953. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  40954. don't. */
  40955. #define HAVE_DECL_UINT64_MAX 1
  40956. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  40957. don't. */
  40958. #define HAVE_DECL_UINTMAX_MAX 1
  40959. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  40960. you don't. */
  40961. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  40962. /* Define to 1 if you have the <direct.h> header file. */
  40963. /* #undef HAVE_DIRECT_H */
  40964. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  40965. */
  40966. #define HAVE_DIRENT_H 1
  40967. /* Define to 1 if you have the `dirfd' function. */
  40968. #define HAVE_DIRFD 1
  40969. /* Define to 1 if you have the <dlfcn.h> header file. */
  40970. #define HAVE_DLFCN_H 1
  40971. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  40972. /* #undef HAVE_DOPRNT */
  40973. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  40974. /* #undef HAVE_D_MD_ORDER */
  40975. /* A possible errno value for invalid file format errors */
  40976. /* #undef HAVE_EFTYPE */
  40977. /* A possible errno value for invalid file format errors */
  40978. #define HAVE_EILSEQ 1
  40979. /* Define to 1 if you have the <errno.h> header file. */
  40980. #define HAVE_ERRNO_H 1
  40981. /* Define to 1 if you have the <expat.h> header file. */
  40982. /* #undef HAVE_EXPAT_H */
  40983. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  40984. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  40985. /* Define to 1 if you have the `extattr_get_file' function. */
  40986. /* #undef HAVE_EXTATTR_GET_FILE */
  40987. /* Define to 1 if you have the `extattr_list_file' function. */
  40988. /* #undef HAVE_EXTATTR_LIST_FILE */
  40989. /* Define to 1 if you have the `extattr_set_fd' function. */
  40990. /* #undef HAVE_EXTATTR_SET_FD */
  40991. /* Define to 1 if you have the `extattr_set_file' function. */
  40992. /* #undef HAVE_EXTATTR_SET_FILE */
  40993. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  40994. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  40995. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  40996. */
  40997. /* #undef HAVE_DECL_GETACL */
  40998. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  40999. don't. */
  41000. /* #undef HAVE_DECL_GETACLCNT */
  41001. /* Define to 1 if you have the `fchdir' function. */
  41002. #define HAVE_FCHDIR 1
  41003. /* Define to 1 if you have the `fchflags' function. */
  41004. /* #undef HAVE_FCHFLAGS */
  41005. /* Define to 1 if you have the `fchmod' function. */
  41006. #define HAVE_FCHMOD 1
  41007. /* Define to 1 if you have the `fchown' function. */
  41008. #define HAVE_FCHOWN 1
  41009. /* Define to 1 if you have the `fcntl' function. */
  41010. #define HAVE_FCNTL 1
  41011. /* Define to 1 if you have the <fcntl.h> header file. */
  41012. #define HAVE_FCNTL_H 1
  41013. /* Define to 1 if you have the `fdopendir' function. */
  41014. #define HAVE_FDOPENDIR 1
  41015. /* Define to 1 if you have the `fgetea' function. */
  41016. /* #undef HAVE_FGETEA */
  41017. /* Define to 1 if you have the `fgetxattr' function. */
  41018. /* #undef HAVE_FGETXATTR */
  41019. /* Define to 1 if you have the `flistea' function. */
  41020. /* #undef HAVE_FLISTEA */
  41021. /* Define to 1 if you have the `flistxattr' function. */
  41022. /* #undef HAVE_FLISTXATTR */
  41023. /* Define to 1 if you have the `fork' function. */
  41024. #define HAVE_FORK 1
  41025. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  41026. #define HAVE_FSEEKO 1
  41027. /* Define to 1 if you have the `fsetea' function. */
  41028. /* #undef HAVE_FSETEA */
  41029. /* Define to 1 if you have the `fsetxattr' function. */
  41030. #define HAVE_FSETXATTR 1
  41031. /* Define to 1 if you have the `fstat' function. */
  41032. #define HAVE_FSTAT 1
  41033. /* Define to 1 if you have the `fstatat' function. */
  41034. #define HAVE_FSTATAT 1
  41035. /* Define to 1 if you have the `fstatfs' function. */
  41036. #define HAVE_FSTATFS 1
  41037. /* Define to 1 if you have the `fstatvfs' function. */
  41038. #define HAVE_FSTATVFS 1
  41039. /* Define to 1 if you have the `ftruncate' function. */
  41040. #define HAVE_FTRUNCATE 1
  41041. /* Define to 1 if you have the `futimens' function. */
  41042. #define HAVE_FUTIMENS 1
  41043. /* Define to 1 if you have the `futimes' function. */
  41044. #define HAVE_FUTIMES 1
  41045. /* Define to 1 if you have the `futimesat' function. */
  41046. #define HAVE_FUTIMESAT 1
  41047. /* Define to 1 if you have the `getea' function. */
  41048. /* #undef HAVE_GETEA */
  41049. /* Define to 1 if you have the `geteuid' function. */
  41050. #define HAVE_GETEUID 1
  41051. /* Define to 1 if you have the `getgrgid_r' function. */
  41052. #define HAVE_GETGRGID_R 1
  41053. /* Define to 1 if you have the `getgrnam_r' function. */
  41054. #define HAVE_GETGRNAM_R 1
  41055. /* Define to 1 if you have the `getpid' function. */
  41056. #define HAVE_GETPID 1
  41057. /* Define to 1 if you have the `getpwnam_r' function. */
  41058. #define HAVE_GETPWNAM_R 1
  41059. /* Define to 1 if you have the `getpwuid_r' function. */
  41060. #define HAVE_GETPWUID_R 1
  41061. /* Define to 1 if you have the `getvfsbyname' function. */
  41062. /* #undef HAVE_GETVFSBYNAME */
  41063. /* Define to 1 if you have the `getxattr' function. */
  41064. /* #undef HAVE_GETXATTR */
  41065. /* Define to 1 if you have the `gmtime_r' function. */
  41066. #define HAVE_GMTIME_R 1
  41067. /* Define to 1 if you have the <grp.h> header file. */
  41068. #define HAVE_GRP_H 1
  41069. /* Define to 1 if you have the `iconv' function. */
  41070. /* #undef HAVE_ICONV */
  41071. /* Define to 1 if you have the <iconv.h> header file. */
  41072. /* #undef HAVE_ICONV_H */
  41073. /* Define to 1 if you have the <inttypes.h> header file. */
  41074. #define HAVE_INTTYPES_H 1
  41075. /* Define to 1 if you have the <io.h> header file. */
  41076. /* #undef HAVE_IO_H */
  41077. /* Define to 1 if you have the <langinfo.h> header file. */
  41078. #define HAVE_LANGINFO_H 1
  41079. /* Define to 1 if you have the `lchflags' function. */
  41080. /* #undef HAVE_LCHFLAGS */
  41081. /* Define to 1 if you have the `lchmod' function. */
  41082. /* #undef HAVE_LCHMOD */
  41083. /* Define to 1 if you have the `lchown' function. */
  41084. #define HAVE_LCHOWN 1
  41085. /* Define to 1 if you have the `lgetea' function. */
  41086. /* #undef HAVE_LGETEA */
  41087. /* Define to 1 if you have the `lgetxattr' function. */
  41088. /* #undef HAVE_LGETXATTR */
  41089. /* Define to 1 if you have the `acl' library (-lacl). */
  41090. /* #undef HAVE_LIBACL */
  41091. /* Define to 1 if you have the `attr' library (-lattr). */
  41092. /* #undef HAVE_LIBATTR */
  41093. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  41094. /* #undef HAVE_LIBBSDXML */
  41095. /* Define to 1 if you have the `bz2' library (-lbz2). */
  41096. #define HAVE_LIBBZ2 1
  41097. /* Define to 1 if you have the `charset' library (-lcharset). */
  41098. /* #undef HAVE_LIBCHARSET */
  41099. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  41100. #define HAVE_LIBCRYPTO 1
  41101. /* Define to 1 if you have the `expat' library (-lexpat). */
  41102. /* #undef HAVE_LIBEXPAT */
  41103. /* Define to 1 if you have the `gcc' library (-lgcc). */
  41104. /* #undef HAVE_LIBGCC */
  41105. /* Define to 1 if you have the `lz4' library (-llz4). */
  41106. /* #undef HAVE_LIBLZ4 */
  41107. /* Define to 1 if you have the `lzma' library (-llzma). */
  41108. #define HAVE_LIBLZMA 1
  41109. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  41110. /* #undef HAVE_LIBLZMADEC */
  41111. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  41112. /* #undef HAVE_LIBLZO2 */
  41113. /* Define to 1 if you have the `nettle' library (-lnettle). */
  41114. /* #undef HAVE_LIBNETTLE */
  41115. /* Define to 1 if you have the `pcre' library (-lpcre). */
  41116. /* #undef HAVE_LIBPCRE */
  41117. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  41118. /* #undef HAVE_LIBPCREPOSIX */
  41119. /* Define to 1 if you have the `xml2' library (-lxml2). */
  41120. /* #undef HAVE_LIBXML2 */
  41121. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  41122. /* #undef HAVE_LIBXML_XMLREADER_H */
  41123. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  41124. /* #undef HAVE_LIBXML_XMLWRITER_H */
  41125. /* Define to 1 if you have the `z' library (-lz). */
  41126. #define HAVE_LIBZ 1
  41127. /* Define to 1 if you have the <limits.h> header file. */
  41128. #define HAVE_LIMITS_H 1
  41129. /* Define to 1 if you have the `link' function. */
  41130. #define HAVE_LINK 1
  41131. /* Define to 1 if you have the <linux/types.h> header file. */
  41132. #define HAVE_LINUX_TYPES_H 1
  41133. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  41134. #define HAVE_LINUX_FIEMAP_H 1
  41135. /* Define to 1 if you have the <linux/fs.h> header file. */
  41136. #define HAVE_LINUX_FS_H 1
  41137. /* Define to 1 if you have the <linux/magic.h> header file. */
  41138. #define HAVE_LINUX_MAGIC_H 1
  41139. /* Define to 1 if you have the <linux/types.h> header file. */
  41140. #define HAVE_LINUX_TYPES_H 1
  41141. /* Define to 1 if you have the `listea' function. */
  41142. /* #undef HAVE_LISTEA */
  41143. /* Define to 1 if you have the `listxattr' function. */
  41144. /* #undef HAVE_LISTXATTR */
  41145. /* Define to 1 if you have the `llistea' function. */
  41146. /* #undef HAVE_LLISTEA */
  41147. /* Define to 1 if you have the `llistxattr' function. */
  41148. /* #undef HAVE_LLISTXATTR */
  41149. /* Define to 1 if you have the <localcharset.h> header file. */
  41150. /* #undef HAVE_LOCALCHARSET_H */
  41151. /* Define to 1 if you have the `locale_charset' function. */
  41152. /* #undef HAVE_LOCALE_CHARSET */
  41153. /* Define to 1 if you have the <locale.h> header file. */
  41154. #define HAVE_LOCALE_H 1
  41155. /* Define to 1 if you have the `localtime_r' function. */
  41156. #define HAVE_LOCALTIME_R 1
  41157. /* Define to 1 if the system has the type `long long int'. */
  41158. /* #undef HAVE_LONG_LONG_INT */
  41159. /* Define to 1 if you have the `lsetea' function. */
  41160. /* #undef HAVE_LSETEA */
  41161. /* Define to 1 if you have the `lsetxattr' function. */
  41162. /* #undef HAVE_LSETXATTR */
  41163. /* Define to 1 if you have the `lstat' function. */
  41164. #define HAVE_LSTAT 1
  41165. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  41166. zero-length file name argument. */
  41167. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  41168. /* Define to 1 if you have the `lutimes' function. */
  41169. #define HAVE_LUTIMES 1
  41170. /* Define to 1 if you have the <lz4hc.h> header file. */
  41171. /* #undef HAVE_LZ4HC_H */
  41172. /* Define to 1 if you have the <lz4.h> header file. */
  41173. /* #undef HAVE_LZ4_H */
  41174. /* Define to 1 if you have the <lzmadec.h> header file. */
  41175. /* #undef HAVE_LZMADEC_H */
  41176. /* Define to 1 if you have the <lzma.h> header file. */
  41177. #define HAVE_LZMA_H 1
  41178. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  41179. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  41180. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  41181. /* #undef HAVE_LZO_LZO1X_H */
  41182. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  41183. /* #undef HAVE_LZO_LZOCONF_H */
  41184. /* Define to 1 if you have the `mbrtowc' function. */
  41185. #define HAVE_MBRTOWC 1
  41186. /* Define to 1 if you have the <membership.h> header file. */
  41187. /* #undef HAVE_MEMBERSHIP_H */
  41188. /* Define to 1 if you have the `memmove' function. */
  41189. #define HAVE_MEMMOVE 1
  41190. /* Define to 1 if you have the <memory.h> header file. */
  41191. #define HAVE_MEMORY_H 1
  41192. /* Define to 1 if you have the `mkdir' function. */
  41193. #define HAVE_MKDIR 1
  41194. /* Define to 1 if you have the `mkfifo' function. */
  41195. #define HAVE_MKFIFO 1
  41196. /* Define to 1 if you have the `mknod' function. */
  41197. #define HAVE_MKNOD 1
  41198. /* Define to 1 if you have the `mkstemp' function. */
  41199. #define HAVE_MKSTEMP 1
  41200. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  41201. /* #undef HAVE_NDIR_H */
  41202. /* Define to 1 if you have the <nettle/aes.h> header file. */
  41203. /* #undef HAVE_NETTLE_AES_H */
  41204. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  41205. /* #undef HAVE_NETTLE_HMAC_H */
  41206. /* Define to 1 if you have the <nettle/md5.h> header file. */
  41207. /* #undef HAVE_NETTLE_MD5_H */
  41208. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  41209. /* #undef HAVE_NETTLE_PBKDF2_H */
  41210. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  41211. /* #undef HAVE_NETTLE_RIPEMD160_H */
  41212. /* Define to 1 if you have the <nettle/sha.h> header file. */
  41213. /* #undef HAVE_NETTLE_SHA_H */
  41214. /* Define to 1 if you have the `nl_langinfo' function. */
  41215. #define HAVE_NL_LANGINFO 1
  41216. /* Define to 1 if you have the `openat' function. */
  41217. #define HAVE_OPENAT 1
  41218. /* Define to 1 if you have the <paths.h> header file. */
  41219. #define HAVE_PATHS_H 1
  41220. /* Define to 1 if you have the <pcreposix.h> header file. */
  41221. /* #undef HAVE_PCREPOSIX_H */
  41222. /* Define to 1 if you have the `pipe' function. */
  41223. #define HAVE_PIPE 1
  41224. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  41225. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  41226. /* Define to 1 if you have the `poll' function. */
  41227. #define HAVE_POLL 1
  41228. /* Define to 1 if you have the <poll.h> header file. */
  41229. #define HAVE_POLL_H 1
  41230. /* Define to 1 if you have the `posix_spawnp' function. */
  41231. #define HAVE_POSIX_SPAWNP 1
  41232. /* Define to 1 if you have the <process.h> header file. */
  41233. /* #undef HAVE_PROCESS_H */
  41234. /* Define to 1 if you have the <pthread.h> header file. */
  41235. /* #undef HAVE_PTHREAD_H */
  41236. /* Define to 1 if you have the <pwd.h> header file. */
  41237. #define HAVE_PWD_H 1
  41238. /* Define to 1 if you have the `readdir_r' function. */
  41239. #define HAVE_READDIR_R 1
  41240. /* Define to 1 if you have the `readlink' function. */
  41241. #define HAVE_READLINK 1
  41242. /* Define to 1 if you have the `readlinkat' function. */
  41243. #define HAVE_READLINKAT 1
  41244. /* Define to 1 if you have the `readpassphrase' function. */
  41245. /* #undef HAVE_READPASSPHRASE */
  41246. /* Define to 1 if you have the <readpassphrase.h> header file. */
  41247. /* #undef HAVE_READPASSPHRASE_H */
  41248. /* Define to 1 if you have the <regex.h> header file. */
  41249. #define HAVE_REGEX_H 1
  41250. /* Define to 1 if you have the `select' function. */
  41251. #define HAVE_SELECT 1
  41252. /* Define to 1 if you have the `setenv' function. */
  41253. #define HAVE_SETENV 1
  41254. /* Define to 1 if you have the `setlocale' function. */
  41255. #define HAVE_SETLOCALE 1
  41256. /* Define to 1 if you have the `sigaction' function. */
  41257. #define HAVE_SIGACTION 1
  41258. /* Define to 1 if you have the <signal.h> header file. */
  41259. #define HAVE_SIGNAL_H 1
  41260. /* Define to 1 if you have the <spawn.h> header file. */
  41261. #define HAVE_SPAWN_H 1
  41262. /* Define to 1 if you have the `statfs' function. */
  41263. #define HAVE_STATFS 1
  41264. /* Define to 1 if you have the `statvfs' function. */
  41265. #define HAVE_STATVFS 1
  41266. /* Define to 1 if `stat' has the bug that it succeeds when given the
  41267. zero-length file name argument. */
  41268. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  41269. /* Define to 1 if you have the <stdarg.h> header file. */
  41270. #define HAVE_STDARG_H 1
  41271. /* Define to 1 if you have the <stdint.h> header file. */
  41272. #define HAVE_STDINT_H 1
  41273. /* Define to 1 if you have the <stdlib.h> header file. */
  41274. #define HAVE_STDLIB_H 1
  41275. /* Define to 1 if you have the `strchr' function. */
  41276. #define HAVE_STRCHR 1
  41277. /* Define to 1 if you have the `strdup' function. */
  41278. #define HAVE_STRDUP 1
  41279. /* Define to 1 if you have the `strerror' function. */
  41280. #define HAVE_STRERROR 1
  41281. /* Define to 1 if you have the `strerror_r' function. */
  41282. #define HAVE_STRERROR_R 1
  41283. /* Define to 1 if you have the `strftime' function. */
  41284. #define HAVE_STRFTIME 1
  41285. /* Define to 1 if you have the <strings.h> header file. */
  41286. #define HAVE_STRINGS_H 1
  41287. /* Define to 1 if you have the <string.h> header file. */
  41288. #define HAVE_STRING_H 1
  41289. /* Define to 1 if you have the `strrchr' function. */
  41290. #define HAVE_STRRCHR 1
  41291. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  41292. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  41293. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  41294. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  41295. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  41296. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  41297. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  41298. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  41299. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  41300. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  41301. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  41302. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  41303. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  41304. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  41305. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  41306. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  41307. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  41308. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  41309. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  41310. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  41311. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  41312. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  41313. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  41314. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  41315. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  41316. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  41317. /* Define to 1 if you have `struct vfsconf'. */
  41318. /* #undef HAVE_STRUCT_VFSCONF */
  41319. /* Define to 1 if you have `struct xvfsconf'. */
  41320. /* #undef HAVE_STRUCT_XVFSCONF */
  41321. /* Define to 1 if you have the `symlink' function. */
  41322. #define HAVE_SYMLINK 1
  41323. /* Define to 1 if you have the <sys/acl.h> header file. */
  41324. /* #undef HAVE_SYS_ACL_H */
  41325. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  41326. #define HAVE_SYS_CDEFS_H 1
  41327. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  41328. */
  41329. /* #undef HAVE_SYS_DIR_H */
  41330. /* Define to 1 if you have the <sys/ea.h> header file. */
  41331. /* #undef HAVE_SYS_EA_H */
  41332. /* Define to 1 if you have the <sys/extattr.h> header file. */
  41333. /* #undef HAVE_SYS_EXTATTR_H */
  41334. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  41335. #define HAVE_SYS_IOCTL_H 1
  41336. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  41337. /* #undef HAVE_SYS_MKDEV_H */
  41338. /* Define to 1 if you have the <sys/mount.h> header file. */
  41339. /* #undef HAVE_SYS_MOUNT_H */
  41340. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  41341. */
  41342. /* #undef HAVE_SYS_NDIR_H */
  41343. /* Define to 1 if you have the <sys/param.h> header file. */
  41344. #define HAVE_SYS_PARAM_H 1
  41345. /* Define to 1 if you have the <sys/poll.h> header file. */
  41346. #define HAVE_SYS_POLL_H 1
  41347. /* Define to 1 if you have the <sys/richacl.h> header file. */
  41348. /* #undef HAVE_SYS_RICHACL_H */
  41349. /* Define to 1 if you have the <sys/select.h> header file. */
  41350. #define HAVE_SYS_SELECT_H 1
  41351. /* Define to 1 if you have the <sys/statfs.h> header file. */
  41352. #define HAVE_SYS_STATFS_H 1
  41353. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  41354. #define HAVE_SYS_STATVFS_H 1
  41355. /* Define to 1 if you have the <sys/stat.h> header file. */
  41356. #define HAVE_SYS_STAT_H 1
  41357. /* Define to 1 if you have the <sys/time.h> header file. */
  41358. #define HAVE_SYS_TIME_H 1
  41359. /* Define to 1 if you have the <sys/types.h> header file. */
  41360. #define HAVE_SYS_TYPES_H 1
  41361. /* Define to 1 if you have the <sys/utime.h> header file. */
  41362. /* #undef HAVE_SYS_UTIME_H */
  41363. /* Define to 1 if you have the <sys/utsname.h> header file. */
  41364. #define HAVE_SYS_UTSNAME_H 1
  41365. /* Define to 1 if you have the <sys/vfs.h> header file. */
  41366. #define HAVE_SYS_VFS_H 1
  41367. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  41368. #define HAVE_SYS_WAIT_H 1
  41369. /* Define to 1 if you have the <sys/xattr.h> header file. */
  41370. #define HAVE_SYS_XATTR_H 1
  41371. /* Define to 1 if you have the `timegm' function. */
  41372. #define HAVE_TIMEGM 1
  41373. /* Define to 1 if you have the <time.h> header file. */
  41374. #define HAVE_TIME_H 1
  41375. /* Define to 1 if you have the `tzset' function. */
  41376. #define HAVE_TZSET 1
  41377. /* Define to 1 if you have the <unistd.h> header file. */
  41378. #define HAVE_UNISTD_H 1
  41379. /* Define to 1 if you have the `unsetenv' function. */
  41380. #define HAVE_UNSETENV 1
  41381. /* Define to 1 if the system has the type `unsigned long long'. */
  41382. /* #undef HAVE_UNSIGNED_LONG_LONG */
  41383. /* Define to 1 if the system has the type `unsigned long long int'. */
  41384. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  41385. /* Define to 1 if you have the `utime' function. */
  41386. #define HAVE_UTIME 1
  41387. /* Define to 1 if you have the `utimensat' function. */
  41388. #define HAVE_UTIMENSAT 1
  41389. /* Define to 1 if you have the `utimes' function. */
  41390. #define HAVE_UTIMES 1
  41391. /* Define to 1 if you have the <utime.h> header file. */
  41392. #define HAVE_UTIME_H 1
  41393. /* Define to 1 if you have the `vfork' function. */
  41394. #define HAVE_VFORK 1
  41395. /* Define to 1 if you have the `vprintf' function. */
  41396. #define HAVE_VPRINTF 1
  41397. /* Define to 1 if you have the <wchar.h> header file. */
  41398. #define HAVE_WCHAR_H 1
  41399. /* Define to 1 if the system has the type `wchar_t'. */
  41400. #define HAVE_WCHAR_T 1
  41401. /* Define to 1 if you have the `wcrtomb' function. */
  41402. #define HAVE_WCRTOMB 1
  41403. /* Define to 1 if you have the `wcscmp' function. */
  41404. #define HAVE_WCSCMP 1
  41405. /* Define to 1 if you have the `wcscpy' function. */
  41406. #define HAVE_WCSCPY 1
  41407. /* Define to 1 if you have the `wcslen' function. */
  41408. #define HAVE_WCSLEN 1
  41409. /* Define to 1 if you have the `wctomb' function. */
  41410. #define HAVE_WCTOMB 1
  41411. /* Define to 1 if you have the <wctype.h> header file. */
  41412. #define HAVE_WCTYPE_H 1
  41413. /* Define to 1 if you have the <wincrypt.h> header file. */
  41414. /* #undef HAVE_WINCRYPT_H */
  41415. /* Define to 1 if you have the <windows.h> header file. */
  41416. /* #undef HAVE_WINDOWS_H */
  41417. /* Define to 1 if you have the <winioctl.h> header file. */
  41418. /* #undef HAVE_WINIOCTL_H */
  41419. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  41420. /* #undef HAVE__CrtSetReportMode */
  41421. /* Define to 1 if you have the `wmemcmp' function. */
  41422. #define HAVE_WMEMCMP 1
  41423. /* Define to 1 if you have the `wmemcpy' function. */
  41424. #define HAVE_WMEMCPY 1
  41425. /* Define to 1 if you have the `wmemmove' function. */
  41426. #define HAVE_WMEMMOVE 1
  41427. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  41428. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  41429. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  41430. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  41431. /* Define to 1 if you have the <zlib.h> header file. */
  41432. #define HAVE_ZLIB_H 1
  41433. /* Define to 1 if you have the `_ctime64_s' function. */
  41434. /* #undef HAVE__CTIME64_S */
  41435. /* Define to 1 if you have the `_fseeki64' function. */
  41436. /* #undef HAVE__FSEEKI64 */
  41437. /* Define to 1 if you have the `_get_timezone' function. */
  41438. /* #undef HAVE__GET_TIMEZONE */
  41439. /* Define to 1 if you have the `_localtime64_s' function. */
  41440. /* #undef HAVE__LOCALTIME64_S */
  41441. /* Define to 1 if you have the `_mkgmtime64' function. */
  41442. /* #undef HAVE__MKGMTIME64 */
  41443. /* Define as const if the declaration of iconv() needs const. */
  41444. #define ICONV_CONST
  41445. /* Version number of libarchive as a single integer */
  41446. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  41447. /* Version number of libarchive */
  41448. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  41449. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  41450. slash. */
  41451. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  41452. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  41453. */
  41454. /* #undef MAJOR_IN_MKDEV */
  41455. /* Define to 1 if `major', `minor', and `makedev' are declared in
  41456. <sysmacros.h>. */
  41457. #define MAJOR_IN_SYSMACROS 1
  41458. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  41459. /* #undef NO_MINUS_C_MINUS_O */
  41460. /* The size of `wchar_t', as computed by sizeof. */
  41461. #define SIZEOF_WCHAR_T 4
  41462. /* Define to 1 if strerror_r returns char *. */
  41463. /* #undef STRERROR_R_CHAR_P */
  41464. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  41465. #define TIME_WITH_SYS_TIME 1
  41466. /*
  41467. * Some platform requires a macro to use extension functions.
  41468. */
  41469. #define SAFE_TO_DEFINE_EXTENSIONS 1
  41470. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  41471. /* Enable extensions on AIX 3, Interix. */
  41472. #ifndef _ALL_SOURCE
  41473. # define _ALL_SOURCE 1
  41474. #endif
  41475. /* Enable GNU extensions on systems that have them. */
  41476. #ifndef _GNU_SOURCE
  41477. # define _GNU_SOURCE 1
  41478. #endif
  41479. /* Enable threading extensions on Solaris. */
  41480. #ifndef _POSIX_PTHREAD_SEMANTICS
  41481. # define _POSIX_PTHREAD_SEMANTICS 1
  41482. #endif
  41483. /* Enable extensions on HP NonStop. */
  41484. #ifndef _TANDEM_SOURCE
  41485. # define _TANDEM_SOURCE 1
  41486. #endif
  41487. /* Enable general extensions on Solaris. */
  41488. #ifndef __EXTENSIONS__
  41489. # define __EXTENSIONS__ 1
  41490. #endif
  41491. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  41492. /* Version number of package */
  41493. #define VERSION "3.3.2"
  41494. /* Number of bits in a file offset, on hosts where this is settable. */
  41495. /* #undef _FILE_OFFSET_BITS */
  41496. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  41497. /* #undef _LARGEFILE_SOURCE */
  41498. /* Define for large files, on AIX-style hosts. */
  41499. /* #undef _LARGE_FILES */
  41500. /* Define to control Windows SDK version */
  41501. #ifndef NTDDI_VERSION
  41502. /* #undef NTDDI_VERSION */
  41503. #endif // NTDDI_VERSION
  41504. #ifndef _WIN32_WINNT
  41505. /* #undef _WIN32_WINNT */
  41506. #endif // _WIN32_WINNT
  41507. #ifndef WINVER
  41508. /* #undef WINVER */
  41509. #endif // WINVER
  41510. /* Define to empty if `const' does not conform to ANSI C. */
  41511. /* #undef const */
  41512. /* Define to `int' if <sys/types.h> doesn't define. */
  41513. /* #undef gid_t */
  41514. /* Define to `unsigned long' if <sys/types.h> does not define. */
  41515. /* #undef id_t */
  41516. /* Define to `int' if <sys/types.h> does not define. */
  41517. /* #undef mode_t */
  41518. /* Define to `long long' if <sys/types.h> does not define. */
  41519. /* #undef off_t */
  41520. /* Define to `int' if <sys/types.h> doesn't define. */
  41521. /* #undef pid_t */
  41522. /* Define to `unsigned int' if <sys/types.h> does not define. */
  41523. /* #undef size_t */
  41524. /* Define to `int' if <sys/types.h> does not define. */
  41525. /* #undef ssize_t */
  41526. /* Define to `int' if <sys/types.h> doesn't define. */
  41527. /* #undef uid_t */
  41528. /* Define to `int' if <sys/types.h> does not define. */
  41529. /* #undef intptr_t */
  41530. /* Define to `unsigned int' if <sys/types.h> does not define. */
  41531. /* #undef uintptr_t */
  41532. #define ARCHIVE_SHA384_COMPILE_TEST
  41533. #define ARCHIVE_CRYPTO_SHA384_LIBSYSTEM
  41534. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  41535. /*-
  41536. * Copyright (c) 2003-2007 Tim Kientzle
  41537. * Copyright (c) 2011 Andres Mejia
  41538. * Copyright (c) 2011 Michihiro NAKAJIMA
  41539. * All rights reserved.
  41540. *
  41541. * Redistribution and use in source and binary forms, with or without
  41542. * modification, are permitted provided that the following conditions
  41543. * are met:
  41544. * 1. Redistributions of source code must retain the above copyright
  41545. * notice, this list of conditions and the following disclaimer.
  41546. * 2. Redistributions in binary form must reproduce the above copyright
  41547. * notice, this list of conditions and the following disclaimer in the
  41548. * documentation and/or other materials provided with the distribution.
  41549. *
  41550. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  41551. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  41552. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  41553. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  41554. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  41555. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  41556. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  41557. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  41558. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  41559. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  41560. */
  41561. #include "archive_platform.h"
  41562. #include "archive.h"
  41563. #include "archive_digest_private.h"
  41564. /* In particular, force the configure probe to break if it tries
  41565. * to test a combination of OpenSSL and libmd. */
  41566. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  41567. #error Cannot use both OpenSSL and libmd.
  41568. #endif
  41569. /*
  41570. * Message digest functions for Windows platform.
  41571. */
  41572. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  41573. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  41574. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  41575. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  41576. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  41577. /*
  41578. * Initialize a Message digest.
  41579. */
  41580. static int
  41581. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  41582. {
  41583. ctx->valid = 0;
  41584. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  41585. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  41586. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  41587. return (ARCHIVE_FAILED);
  41588. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  41589. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  41590. return (ARCHIVE_FAILED);
  41591. }
  41592. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  41593. CryptReleaseContext(ctx->cryptProv, 0);
  41594. return (ARCHIVE_FAILED);
  41595. }
  41596. ctx->valid = 1;
  41597. return (ARCHIVE_OK);
  41598. }
  41599. /*
  41600. * Update a Message digest.
  41601. */
  41602. static int
  41603. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  41604. {
  41605. if (!ctx->valid)
  41606. return (ARCHIVE_FAILED);
  41607. CryptHashData(ctx->hash,
  41608. (unsigned char *)(uintptr_t)buf,
  41609. (DWORD)len, 0);
  41610. return (ARCHIVE_OK);
  41611. }
  41612. static int
  41613. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  41614. {
  41615. DWORD siglen = (DWORD)bufsize;
  41616. if (!ctx->valid)
  41617. return (ARCHIVE_FAILED);
  41618. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  41619. CryptDestroyHash(ctx->hash);
  41620. CryptReleaseContext(ctx->cryptProv, 0);
  41621. ctx->valid = 0;
  41622. return (ARCHIVE_OK);
  41623. }
  41624. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  41625. /* MD5 implementations */
  41626. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  41627. static int
  41628. __archive_libc_md5init(archive_md5_ctx *ctx)
  41629. {
  41630. MD5Init(ctx);
  41631. return (ARCHIVE_OK);
  41632. }
  41633. static int
  41634. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  41635. size_t insize)
  41636. {
  41637. MD5Update(ctx, indata, insize);
  41638. return (ARCHIVE_OK);
  41639. }
  41640. static int
  41641. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  41642. {
  41643. MD5Final(md, ctx);
  41644. return (ARCHIVE_OK);
  41645. }
  41646. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  41647. static int
  41648. __archive_libmd_md5init(archive_md5_ctx *ctx)
  41649. {
  41650. MD5Init(ctx);
  41651. return (ARCHIVE_OK);
  41652. }
  41653. static int
  41654. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  41655. size_t insize)
  41656. {
  41657. MD5Update(ctx, indata, insize);
  41658. return (ARCHIVE_OK);
  41659. }
  41660. static int
  41661. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  41662. {
  41663. MD5Final(md, ctx);
  41664. return (ARCHIVE_OK);
  41665. }
  41666. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  41667. static int
  41668. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  41669. {
  41670. CC_MD5_Init(ctx);
  41671. return (ARCHIVE_OK);
  41672. }
  41673. static int
  41674. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  41675. size_t insize)
  41676. {
  41677. CC_MD5_Update(ctx, indata, insize);
  41678. return (ARCHIVE_OK);
  41679. }
  41680. static int
  41681. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  41682. {
  41683. CC_MD5_Final(md, ctx);
  41684. return (ARCHIVE_OK);
  41685. }
  41686. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  41687. static int
  41688. __archive_nettle_md5init(archive_md5_ctx *ctx)
  41689. {
  41690. md5_init(ctx);
  41691. return (ARCHIVE_OK);
  41692. }
  41693. static int
  41694. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  41695. size_t insize)
  41696. {
  41697. md5_update(ctx, insize, indata);
  41698. return (ARCHIVE_OK);
  41699. }
  41700. static int
  41701. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  41702. {
  41703. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  41704. return (ARCHIVE_OK);
  41705. }
  41706. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  41707. static int
  41708. __archive_openssl_md5init(archive_md5_ctx *ctx)
  41709. {
  41710. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  41711. return (ARCHIVE_FAILED);
  41712. EVP_DigestInit(*ctx, EVP_md5());
  41713. return (ARCHIVE_OK);
  41714. }
  41715. static int
  41716. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  41717. size_t insize)
  41718. {
  41719. EVP_DigestUpdate(*ctx, indata, insize);
  41720. return (ARCHIVE_OK);
  41721. }
  41722. static int
  41723. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  41724. {
  41725. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  41726. * this is meant to cope with that. Real fix is probably to fix
  41727. * archive_write_set_format_xar.c
  41728. */
  41729. if (*ctx) {
  41730. EVP_DigestFinal(*ctx, md, NULL);
  41731. EVP_MD_CTX_free(*ctx);
  41732. *ctx = NULL;
  41733. }
  41734. return (ARCHIVE_OK);
  41735. }
  41736. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  41737. static int
  41738. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  41739. {
  41740. return (win_crypto_init(ctx, CALG_MD5));
  41741. }
  41742. static int
  41743. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  41744. size_t insize)
  41745. {
  41746. return (win_crypto_Update(ctx, indata, insize));
  41747. }
  41748. static int
  41749. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  41750. {
  41751. return (win_crypto_Final(md, 16, ctx));
  41752. }
  41753. #else
  41754. static int
  41755. __archive_stub_md5init(archive_md5_ctx *ctx)
  41756. {
  41757. (void)ctx; /* UNUSED */
  41758. return (ARCHIVE_FAILED);
  41759. }
  41760. static int
  41761. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  41762. size_t insize)
  41763. {
  41764. (void)ctx; /* UNUSED */
  41765. (void)indata; /* UNUSED */
  41766. (void)insize; /* UNUSED */
  41767. return (ARCHIVE_FAILED);
  41768. }
  41769. static int
  41770. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  41771. {
  41772. (void)ctx; /* UNUSED */
  41773. (void)md; /* UNUSED */
  41774. return (ARCHIVE_FAILED);
  41775. }
  41776. #endif
  41777. /* RIPEMD160 implementations */
  41778. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  41779. static int
  41780. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  41781. {
  41782. RMD160Init(ctx);
  41783. return (ARCHIVE_OK);
  41784. }
  41785. static int
  41786. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  41787. size_t insize)
  41788. {
  41789. RMD160Update(ctx, indata, insize);
  41790. return (ARCHIVE_OK);
  41791. }
  41792. static int
  41793. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  41794. {
  41795. RMD160Final(md, ctx);
  41796. return (ARCHIVE_OK);
  41797. }
  41798. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  41799. static int
  41800. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  41801. {
  41802. RIPEMD160_Init(ctx);
  41803. return (ARCHIVE_OK);
  41804. }
  41805. static int
  41806. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  41807. size_t insize)
  41808. {
  41809. RIPEMD160_Update(ctx, indata, insize);
  41810. return (ARCHIVE_OK);
  41811. }
  41812. static int
  41813. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  41814. {
  41815. RIPEMD160_Final(md, ctx);
  41816. return (ARCHIVE_OK);
  41817. }
  41818. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  41819. static int
  41820. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  41821. {
  41822. ripemd160_init(ctx);
  41823. return (ARCHIVE_OK);
  41824. }
  41825. static int
  41826. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  41827. size_t insize)
  41828. {
  41829. ripemd160_update(ctx, insize, indata);
  41830. return (ARCHIVE_OK);
  41831. }
  41832. static int
  41833. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  41834. {
  41835. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  41836. return (ARCHIVE_OK);
  41837. }
  41838. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  41839. static int
  41840. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  41841. {
  41842. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  41843. return (ARCHIVE_FAILED);
  41844. EVP_DigestInit(*ctx, EVP_ripemd160());
  41845. return (ARCHIVE_OK);
  41846. }
  41847. static int
  41848. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  41849. size_t insize)
  41850. {
  41851. EVP_DigestUpdate(*ctx, indata, insize);
  41852. return (ARCHIVE_OK);
  41853. }
  41854. static int
  41855. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  41856. {
  41857. if (*ctx) {
  41858. EVP_DigestFinal(*ctx, md, NULL);
  41859. EVP_MD_CTX_free(*ctx);
  41860. *ctx = NULL;
  41861. }
  41862. return (ARCHIVE_OK);
  41863. }
  41864. #else
  41865. static int
  41866. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  41867. {
  41868. (void)ctx; /* UNUSED */
  41869. return (ARCHIVE_FAILED);
  41870. }
  41871. static int
  41872. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  41873. size_t insize)
  41874. {
  41875. (void)ctx; /* UNUSED */
  41876. (void)indata; /* UNUSED */
  41877. (void)insize; /* UNUSED */
  41878. return (ARCHIVE_FAILED);
  41879. }
  41880. static int
  41881. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  41882. {
  41883. (void)ctx; /* UNUSED */
  41884. (void)md; /* UNUSED */
  41885. return (ARCHIVE_FAILED);
  41886. }
  41887. #endif
  41888. /* SHA1 implementations */
  41889. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  41890. static int
  41891. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  41892. {
  41893. SHA1Init(ctx);
  41894. return (ARCHIVE_OK);
  41895. }
  41896. static int
  41897. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  41898. size_t insize)
  41899. {
  41900. SHA1Update(ctx, indata, insize);
  41901. return (ARCHIVE_OK);
  41902. }
  41903. static int
  41904. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  41905. {
  41906. SHA1Final(md, ctx);
  41907. return (ARCHIVE_OK);
  41908. }
  41909. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  41910. static int
  41911. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  41912. {
  41913. SHA1_Init(ctx);
  41914. return (ARCHIVE_OK);
  41915. }
  41916. static int
  41917. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  41918. size_t insize)
  41919. {
  41920. SHA1_Update(ctx, indata, insize);
  41921. return (ARCHIVE_OK);
  41922. }
  41923. static int
  41924. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  41925. {
  41926. SHA1_Final(md, ctx);
  41927. return (ARCHIVE_OK);
  41928. }
  41929. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  41930. static int
  41931. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  41932. {
  41933. CC_SHA1_Init(ctx);
  41934. return (ARCHIVE_OK);
  41935. }
  41936. static int
  41937. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  41938. size_t insize)
  41939. {
  41940. CC_SHA1_Update(ctx, indata, insize);
  41941. return (ARCHIVE_OK);
  41942. }
  41943. static int
  41944. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  41945. {
  41946. CC_SHA1_Final(md, ctx);
  41947. return (ARCHIVE_OK);
  41948. }
  41949. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  41950. static int
  41951. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  41952. {
  41953. sha1_init(ctx);
  41954. return (ARCHIVE_OK);
  41955. }
  41956. static int
  41957. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  41958. size_t insize)
  41959. {
  41960. sha1_update(ctx, insize, indata);
  41961. return (ARCHIVE_OK);
  41962. }
  41963. static int
  41964. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  41965. {
  41966. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  41967. return (ARCHIVE_OK);
  41968. }
  41969. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  41970. static int
  41971. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  41972. {
  41973. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  41974. return (ARCHIVE_FAILED);
  41975. EVP_DigestInit(*ctx, EVP_sha1());
  41976. return (ARCHIVE_OK);
  41977. }
  41978. static int
  41979. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  41980. size_t insize)
  41981. {
  41982. EVP_DigestUpdate(*ctx, indata, insize);
  41983. return (ARCHIVE_OK);
  41984. }
  41985. static int
  41986. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  41987. {
  41988. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  41989. * this is meant to cope with that. Real fix is probably to fix
  41990. * archive_write_set_format_xar.c
  41991. */
  41992. if (*ctx) {
  41993. EVP_DigestFinal(*ctx, md, NULL);
  41994. EVP_MD_CTX_free(*ctx);
  41995. *ctx = NULL;
  41996. }
  41997. return (ARCHIVE_OK);
  41998. }
  41999. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  42000. static int
  42001. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  42002. {
  42003. return (win_crypto_init(ctx, CALG_SHA1));
  42004. }
  42005. static int
  42006. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  42007. size_t insize)
  42008. {
  42009. return (win_crypto_Update(ctx, indata, insize));
  42010. }
  42011. static int
  42012. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  42013. {
  42014. return (win_crypto_Final(md, 20, ctx));
  42015. }
  42016. #else
  42017. static int
  42018. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  42019. {
  42020. (void)ctx; /* UNUSED */
  42021. return (ARCHIVE_FAILED);
  42022. }
  42023. static int
  42024. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  42025. size_t insize)
  42026. {
  42027. (void)ctx; /* UNUSED */
  42028. (void)indata; /* UNUSED */
  42029. (void)insize; /* UNUSED */
  42030. return (ARCHIVE_FAILED);
  42031. }
  42032. static int
  42033. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  42034. {
  42035. (void)ctx; /* UNUSED */
  42036. (void)md; /* UNUSED */
  42037. return (ARCHIVE_FAILED);
  42038. }
  42039. #endif
  42040. /* SHA256 implementations */
  42041. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  42042. static int
  42043. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  42044. {
  42045. SHA256_Init(ctx);
  42046. return (ARCHIVE_OK);
  42047. }
  42048. static int
  42049. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  42050. size_t insize)
  42051. {
  42052. SHA256_Update(ctx, indata, insize);
  42053. return (ARCHIVE_OK);
  42054. }
  42055. static int
  42056. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  42057. {
  42058. SHA256_Final(md, ctx);
  42059. return (ARCHIVE_OK);
  42060. }
  42061. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  42062. static int
  42063. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  42064. {
  42065. SHA256Init(ctx);
  42066. return (ARCHIVE_OK);
  42067. }
  42068. static int
  42069. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  42070. size_t insize)
  42071. {
  42072. SHA256Update(ctx, indata, insize);
  42073. return (ARCHIVE_OK);
  42074. }
  42075. static int
  42076. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  42077. {
  42078. SHA256Final(md, ctx);
  42079. return (ARCHIVE_OK);
  42080. }
  42081. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  42082. static int
  42083. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  42084. {
  42085. SHA256Init(ctx);
  42086. return (ARCHIVE_OK);
  42087. }
  42088. static int
  42089. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  42090. size_t insize)
  42091. {
  42092. SHA256Update(ctx, indata, insize);
  42093. return (ARCHIVE_OK);
  42094. }
  42095. static int
  42096. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  42097. {
  42098. SHA256Final(md, ctx);
  42099. return (ARCHIVE_OK);
  42100. }
  42101. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  42102. static int
  42103. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  42104. {
  42105. SHA256_Init(ctx);
  42106. return (ARCHIVE_OK);
  42107. }
  42108. static int
  42109. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  42110. size_t insize)
  42111. {
  42112. SHA256_Update(ctx, indata, insize);
  42113. return (ARCHIVE_OK);
  42114. }
  42115. static int
  42116. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  42117. {
  42118. SHA256_Final(md, ctx);
  42119. return (ARCHIVE_OK);
  42120. }
  42121. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  42122. static int
  42123. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  42124. {
  42125. CC_SHA256_Init(ctx);
  42126. return (ARCHIVE_OK);
  42127. }
  42128. static int
  42129. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  42130. size_t insize)
  42131. {
  42132. CC_SHA256_Update(ctx, indata, insize);
  42133. return (ARCHIVE_OK);
  42134. }
  42135. static int
  42136. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  42137. {
  42138. CC_SHA256_Final(md, ctx);
  42139. return (ARCHIVE_OK);
  42140. }
  42141. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  42142. static int
  42143. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  42144. {
  42145. sha256_init(ctx);
  42146. return (ARCHIVE_OK);
  42147. }
  42148. static int
  42149. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  42150. size_t insize)
  42151. {
  42152. sha256_update(ctx, insize, indata);
  42153. return (ARCHIVE_OK);
  42154. }
  42155. static int
  42156. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  42157. {
  42158. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  42159. return (ARCHIVE_OK);
  42160. }
  42161. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  42162. static int
  42163. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  42164. {
  42165. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  42166. return (ARCHIVE_FAILED);
  42167. EVP_DigestInit(*ctx, EVP_sha256());
  42168. return (ARCHIVE_OK);
  42169. }
  42170. static int
  42171. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  42172. size_t insize)
  42173. {
  42174. EVP_DigestUpdate(*ctx, indata, insize);
  42175. return (ARCHIVE_OK);
  42176. }
  42177. static int
  42178. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  42179. {
  42180. if (*ctx) {
  42181. EVP_DigestFinal(*ctx, md, NULL);
  42182. EVP_MD_CTX_free(*ctx);
  42183. *ctx = NULL;
  42184. }
  42185. return (ARCHIVE_OK);
  42186. }
  42187. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  42188. static int
  42189. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  42190. {
  42191. return (win_crypto_init(ctx, CALG_SHA_256));
  42192. }
  42193. static int
  42194. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  42195. size_t insize)
  42196. {
  42197. return (win_crypto_Update(ctx, indata, insize));
  42198. }
  42199. static int
  42200. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  42201. {
  42202. return (win_crypto_Final(md, 32, ctx));
  42203. }
  42204. #else
  42205. static int
  42206. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  42207. {
  42208. (void)ctx; /* UNUSED */
  42209. return (ARCHIVE_FAILED);
  42210. }
  42211. static int
  42212. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  42213. size_t insize)
  42214. {
  42215. (void)ctx; /* UNUSED */
  42216. (void)indata; /* UNUSED */
  42217. (void)insize; /* UNUSED */
  42218. return (ARCHIVE_FAILED);
  42219. }
  42220. static int
  42221. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  42222. {
  42223. (void)ctx; /* UNUSED */
  42224. (void)md; /* UNUSED */
  42225. return (ARCHIVE_FAILED);
  42226. }
  42227. #endif
  42228. /* SHA384 implementations */
  42229. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  42230. static int
  42231. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  42232. {
  42233. SHA384_Init(ctx);
  42234. return (ARCHIVE_OK);
  42235. }
  42236. static int
  42237. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  42238. size_t insize)
  42239. {
  42240. SHA384_Update(ctx, indata, insize);
  42241. return (ARCHIVE_OK);
  42242. }
  42243. static int
  42244. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  42245. {
  42246. SHA384_Final(md, ctx);
  42247. return (ARCHIVE_OK);
  42248. }
  42249. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  42250. static int
  42251. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  42252. {
  42253. SHA384Init(ctx);
  42254. return (ARCHIVE_OK);
  42255. }
  42256. static int
  42257. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  42258. size_t insize)
  42259. {
  42260. SHA384Update(ctx, indata, insize);
  42261. return (ARCHIVE_OK);
  42262. }
  42263. static int
  42264. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  42265. {
  42266. SHA384Final(md, ctx);
  42267. return (ARCHIVE_OK);
  42268. }
  42269. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  42270. static int
  42271. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  42272. {
  42273. SHA384Init(ctx);
  42274. return (ARCHIVE_OK);
  42275. }
  42276. static int
  42277. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  42278. size_t insize)
  42279. {
  42280. SHA384Update(ctx, indata, insize);
  42281. return (ARCHIVE_OK);
  42282. }
  42283. static int
  42284. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  42285. {
  42286. SHA384Final(md, ctx);
  42287. return (ARCHIVE_OK);
  42288. }
  42289. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  42290. static int
  42291. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  42292. {
  42293. CC_SHA384_Init(ctx);
  42294. return (ARCHIVE_OK);
  42295. }
  42296. static int
  42297. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  42298. size_t insize)
  42299. {
  42300. CC_SHA384_Update(ctx, indata, insize);
  42301. return (ARCHIVE_OK);
  42302. }
  42303. static int
  42304. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  42305. {
  42306. CC_SHA384_Final(md, ctx);
  42307. return (ARCHIVE_OK);
  42308. }
  42309. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  42310. static int
  42311. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  42312. {
  42313. sha384_init(ctx);
  42314. return (ARCHIVE_OK);
  42315. }
  42316. static int
  42317. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  42318. size_t insize)
  42319. {
  42320. sha384_update(ctx, insize, indata);
  42321. return (ARCHIVE_OK);
  42322. }
  42323. static int
  42324. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  42325. {
  42326. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  42327. return (ARCHIVE_OK);
  42328. }
  42329. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  42330. static int
  42331. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  42332. {
  42333. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  42334. return (ARCHIVE_FAILED);
  42335. EVP_DigestInit(*ctx, EVP_sha384());
  42336. return (ARCHIVE_OK);
  42337. }
  42338. static int
  42339. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  42340. size_t insize)
  42341. {
  42342. EVP_DigestUpdate(*ctx, indata, insize);
  42343. return (ARCHIVE_OK);
  42344. }
  42345. static int
  42346. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  42347. {
  42348. if (*ctx) {
  42349. EVP_DigestFinal(*ctx, md, NULL);
  42350. EVP_MD_CTX_free(*ctx);
  42351. *ctx = NULL;
  42352. }
  42353. return (ARCHIVE_OK);
  42354. }
  42355. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  42356. static int
  42357. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  42358. {
  42359. return (win_crypto_init(ctx, CALG_SHA_384));
  42360. }
  42361. static int
  42362. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  42363. size_t insize)
  42364. {
  42365. return (win_crypto_Update(ctx, indata, insize));
  42366. }
  42367. static int
  42368. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  42369. {
  42370. return (win_crypto_Final(md, 48, ctx));
  42371. }
  42372. #else
  42373. static int
  42374. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  42375. {
  42376. (void)ctx; /* UNUSED */
  42377. return (ARCHIVE_FAILED);
  42378. }
  42379. static int
  42380. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  42381. size_t insize)
  42382. {
  42383. (void)ctx; /* UNUSED */
  42384. (void)indata; /* UNUSED */
  42385. (void)insize; /* UNUSED */
  42386. return (ARCHIVE_FAILED);
  42387. }
  42388. static int
  42389. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  42390. {
  42391. (void)ctx; /* UNUSED */
  42392. (void)md; /* UNUSED */
  42393. return (ARCHIVE_FAILED);
  42394. }
  42395. #endif
  42396. /* SHA512 implementations */
  42397. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  42398. static int
  42399. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  42400. {
  42401. SHA512_Init(ctx);
  42402. return (ARCHIVE_OK);
  42403. }
  42404. static int
  42405. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  42406. size_t insize)
  42407. {
  42408. SHA512_Update(ctx, indata, insize);
  42409. return (ARCHIVE_OK);
  42410. }
  42411. static int
  42412. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  42413. {
  42414. SHA512_Final(md, ctx);
  42415. return (ARCHIVE_OK);
  42416. }
  42417. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  42418. static int
  42419. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  42420. {
  42421. SHA512Init(ctx);
  42422. return (ARCHIVE_OK);
  42423. }
  42424. static int
  42425. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  42426. size_t insize)
  42427. {
  42428. SHA512Update(ctx, indata, insize);
  42429. return (ARCHIVE_OK);
  42430. }
  42431. static int
  42432. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  42433. {
  42434. SHA512Final(md, ctx);
  42435. return (ARCHIVE_OK);
  42436. }
  42437. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  42438. static int
  42439. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  42440. {
  42441. SHA512Init(ctx);
  42442. return (ARCHIVE_OK);
  42443. }
  42444. static int
  42445. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  42446. size_t insize)
  42447. {
  42448. SHA512Update(ctx, indata, insize);
  42449. return (ARCHIVE_OK);
  42450. }
  42451. static int
  42452. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  42453. {
  42454. SHA512Final(md, ctx);
  42455. return (ARCHIVE_OK);
  42456. }
  42457. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  42458. static int
  42459. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  42460. {
  42461. SHA512_Init(ctx);
  42462. return (ARCHIVE_OK);
  42463. }
  42464. static int
  42465. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  42466. size_t insize)
  42467. {
  42468. SHA512_Update(ctx, indata, insize);
  42469. return (ARCHIVE_OK);
  42470. }
  42471. static int
  42472. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  42473. {
  42474. SHA512_Final(md, ctx);
  42475. return (ARCHIVE_OK);
  42476. }
  42477. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  42478. static int
  42479. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  42480. {
  42481. CC_SHA512_Init(ctx);
  42482. return (ARCHIVE_OK);
  42483. }
  42484. static int
  42485. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  42486. size_t insize)
  42487. {
  42488. CC_SHA512_Update(ctx, indata, insize);
  42489. return (ARCHIVE_OK);
  42490. }
  42491. static int
  42492. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  42493. {
  42494. CC_SHA512_Final(md, ctx);
  42495. return (ARCHIVE_OK);
  42496. }
  42497. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  42498. static int
  42499. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  42500. {
  42501. sha512_init(ctx);
  42502. return (ARCHIVE_OK);
  42503. }
  42504. static int
  42505. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  42506. size_t insize)
  42507. {
  42508. sha512_update(ctx, insize, indata);
  42509. return (ARCHIVE_OK);
  42510. }
  42511. static int
  42512. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  42513. {
  42514. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  42515. return (ARCHIVE_OK);
  42516. }
  42517. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  42518. static int
  42519. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  42520. {
  42521. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  42522. return (ARCHIVE_FAILED);
  42523. EVP_DigestInit(*ctx, EVP_sha512());
  42524. return (ARCHIVE_OK);
  42525. }
  42526. static int
  42527. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  42528. size_t insize)
  42529. {
  42530. EVP_DigestUpdate(*ctx, indata, insize);
  42531. return (ARCHIVE_OK);
  42532. }
  42533. static int
  42534. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  42535. {
  42536. if (*ctx) {
  42537. EVP_DigestFinal(*ctx, md, NULL);
  42538. EVP_MD_CTX_free(*ctx);
  42539. *ctx = NULL;
  42540. }
  42541. return (ARCHIVE_OK);
  42542. }
  42543. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  42544. static int
  42545. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  42546. {
  42547. return (win_crypto_init(ctx, CALG_SHA_512));
  42548. }
  42549. static int
  42550. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  42551. size_t insize)
  42552. {
  42553. return (win_crypto_Update(ctx, indata, insize));
  42554. }
  42555. static int
  42556. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  42557. {
  42558. return (win_crypto_Final(md, 64, ctx));
  42559. }
  42560. #else
  42561. static int
  42562. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  42563. {
  42564. (void)ctx; /* UNUSED */
  42565. return (ARCHIVE_FAILED);
  42566. }
  42567. static int
  42568. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  42569. size_t insize)
  42570. {
  42571. (void)ctx; /* UNUSED */
  42572. (void)indata; /* UNUSED */
  42573. (void)insize; /* UNUSED */
  42574. return (ARCHIVE_FAILED);
  42575. }
  42576. static int
  42577. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  42578. {
  42579. (void)ctx; /* UNUSED */
  42580. (void)md; /* UNUSED */
  42581. return (ARCHIVE_FAILED);
  42582. }
  42583. #endif
  42584. /* NOTE: Message Digest functions are set based on availability and by the
  42585. * following order of preference.
  42586. * 1. libc
  42587. * 2. libc2
  42588. * 3. libc3
  42589. * 4. libSystem
  42590. * 5. Nettle
  42591. * 6. OpenSSL
  42592. * 7. libmd
  42593. * 8. Windows API
  42594. */
  42595. const struct archive_digest __archive_digest =
  42596. {
  42597. /* MD5 */
  42598. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  42599. &__archive_libc_md5init,
  42600. &__archive_libc_md5update,
  42601. &__archive_libc_md5final,
  42602. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  42603. &__archive_libmd_md5init,
  42604. &__archive_libmd_md5update,
  42605. &__archive_libmd_md5final,
  42606. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  42607. &__archive_libsystem_md5init,
  42608. &__archive_libsystem_md5update,
  42609. &__archive_libsystem_md5final,
  42610. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  42611. &__archive_nettle_md5init,
  42612. &__archive_nettle_md5update,
  42613. &__archive_nettle_md5final,
  42614. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  42615. &__archive_openssl_md5init,
  42616. &__archive_openssl_md5update,
  42617. &__archive_openssl_md5final,
  42618. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  42619. &__archive_windowsapi_md5init,
  42620. &__archive_windowsapi_md5update,
  42621. &__archive_windowsapi_md5final,
  42622. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  42623. &__archive_stub_md5init,
  42624. &__archive_stub_md5update,
  42625. &__archive_stub_md5final,
  42626. #endif
  42627. /* RIPEMD160 */
  42628. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  42629. &__archive_libc_ripemd160init,
  42630. &__archive_libc_ripemd160update,
  42631. &__archive_libc_ripemd160final,
  42632. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  42633. &__archive_libmd_ripemd160init,
  42634. &__archive_libmd_ripemd160update,
  42635. &__archive_libmd_ripemd160final,
  42636. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  42637. &__archive_nettle_ripemd160init,
  42638. &__archive_nettle_ripemd160update,
  42639. &__archive_nettle_ripemd160final,
  42640. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  42641. &__archive_openssl_ripemd160init,
  42642. &__archive_openssl_ripemd160update,
  42643. &__archive_openssl_ripemd160final,
  42644. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  42645. &__archive_stub_ripemd160init,
  42646. &__archive_stub_ripemd160update,
  42647. &__archive_stub_ripemd160final,
  42648. #endif
  42649. /* SHA1 */
  42650. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  42651. &__archive_libc_sha1init,
  42652. &__archive_libc_sha1update,
  42653. &__archive_libc_sha1final,
  42654. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  42655. &__archive_libmd_sha1init,
  42656. &__archive_libmd_sha1update,
  42657. &__archive_libmd_sha1final,
  42658. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  42659. &__archive_libsystem_sha1init,
  42660. &__archive_libsystem_sha1update,
  42661. &__archive_libsystem_sha1final,
  42662. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  42663. &__archive_nettle_sha1init,
  42664. &__archive_nettle_sha1update,
  42665. &__archive_nettle_sha1final,
  42666. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  42667. &__archive_openssl_sha1init,
  42668. &__archive_openssl_sha1update,
  42669. &__archive_openssl_sha1final,
  42670. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  42671. &__archive_windowsapi_sha1init,
  42672. &__archive_windowsapi_sha1update,
  42673. &__archive_windowsapi_sha1final,
  42674. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  42675. &__archive_stub_sha1init,
  42676. &__archive_stub_sha1update,
  42677. &__archive_stub_sha1final,
  42678. #endif
  42679. /* SHA256 */
  42680. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  42681. &__archive_libc_sha256init,
  42682. &__archive_libc_sha256update,
  42683. &__archive_libc_sha256final,
  42684. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  42685. &__archive_libc2_sha256init,
  42686. &__archive_libc2_sha256update,
  42687. &__archive_libc2_sha256final,
  42688. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  42689. &__archive_libc3_sha256init,
  42690. &__archive_libc3_sha256update,
  42691. &__archive_libc3_sha256final,
  42692. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  42693. &__archive_libmd_sha256init,
  42694. &__archive_libmd_sha256update,
  42695. &__archive_libmd_sha256final,
  42696. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  42697. &__archive_libsystem_sha256init,
  42698. &__archive_libsystem_sha256update,
  42699. &__archive_libsystem_sha256final,
  42700. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  42701. &__archive_nettle_sha256init,
  42702. &__archive_nettle_sha256update,
  42703. &__archive_nettle_sha256final,
  42704. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  42705. &__archive_openssl_sha256init,
  42706. &__archive_openssl_sha256update,
  42707. &__archive_openssl_sha256final,
  42708. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  42709. &__archive_windowsapi_sha256init,
  42710. &__archive_windowsapi_sha256update,
  42711. &__archive_windowsapi_sha256final,
  42712. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  42713. &__archive_stub_sha256init,
  42714. &__archive_stub_sha256update,
  42715. &__archive_stub_sha256final,
  42716. #endif
  42717. /* SHA384 */
  42718. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  42719. &__archive_libc_sha384init,
  42720. &__archive_libc_sha384update,
  42721. &__archive_libc_sha384final,
  42722. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  42723. &__archive_libc2_sha384init,
  42724. &__archive_libc2_sha384update,
  42725. &__archive_libc2_sha384final,
  42726. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  42727. &__archive_libc3_sha384init,
  42728. &__archive_libc3_sha384update,
  42729. &__archive_libc3_sha384final,
  42730. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  42731. &__archive_libsystem_sha384init,
  42732. &__archive_libsystem_sha384update,
  42733. &__archive_libsystem_sha384final,
  42734. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  42735. &__archive_nettle_sha384init,
  42736. &__archive_nettle_sha384update,
  42737. &__archive_nettle_sha384final,
  42738. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  42739. &__archive_openssl_sha384init,
  42740. &__archive_openssl_sha384update,
  42741. &__archive_openssl_sha384final,
  42742. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  42743. &__archive_windowsapi_sha384init,
  42744. &__archive_windowsapi_sha384update,
  42745. &__archive_windowsapi_sha384final,
  42746. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  42747. &__archive_stub_sha384init,
  42748. &__archive_stub_sha384update,
  42749. &__archive_stub_sha384final,
  42750. #endif
  42751. /* SHA512 */
  42752. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  42753. &__archive_libc_sha512init,
  42754. &__archive_libc_sha512update,
  42755. &__archive_libc_sha512final
  42756. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  42757. &__archive_libc2_sha512init,
  42758. &__archive_libc2_sha512update,
  42759. &__archive_libc2_sha512final
  42760. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  42761. &__archive_libc3_sha512init,
  42762. &__archive_libc3_sha512update,
  42763. &__archive_libc3_sha512final
  42764. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  42765. &__archive_libmd_sha512init,
  42766. &__archive_libmd_sha512update,
  42767. &__archive_libmd_sha512final
  42768. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  42769. &__archive_libsystem_sha512init,
  42770. &__archive_libsystem_sha512update,
  42771. &__archive_libsystem_sha512final
  42772. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  42773. &__archive_nettle_sha512init,
  42774. &__archive_nettle_sha512update,
  42775. &__archive_nettle_sha512final
  42776. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  42777. &__archive_openssl_sha512init,
  42778. &__archive_openssl_sha512update,
  42779. &__archive_openssl_sha512final
  42780. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  42781. &__archive_windowsapi_sha512init,
  42782. &__archive_windowsapi_sha512update,
  42783. &__archive_windowsapi_sha512final
  42784. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  42785. &__archive_stub_sha512init,
  42786. &__archive_stub_sha512update,
  42787. &__archive_stub_sha512final
  42788. #endif
  42789. };
  42790. int
  42791. main(int argc, char **argv)
  42792. {
  42793. archive_sha384_ctx ctx;
  42794. archive_sha384_init(&ctx);
  42795. archive_sha384_update(&ctx, *argv, argc);
  42796. archive_sha384_final(&ctx, NULL);
  42797. return 0;
  42798. }
  42799. Checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM failed with the following output:
  42800. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  42801. Run Build Command:"/usr/bin/make" "cmTC_25d2f/fast"
  42802. make -f CMakeFiles/cmTC_25d2f.dir/build.make CMakeFiles/cmTC_25d2f.dir/build
  42803. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  42804. Building C object CMakeFiles/cmTC_25d2f.dir/check_crypto_md.c.o
  42805. /usr/bin/gcc -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0 -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive -I/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp -w -o CMakeFiles/cmTC_25d2f.dir/check_crypto_md.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c
  42806. In file included from /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/check_crypto_md.c:1356:0:
  42807. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Utilities/cmlibarchive/libarchive/archive_digest_private.h:112:39: fatal error: CommonCrypto/CommonDigest.h: No such file or directory
  42808. compilation terminated.
  42809. CMakeFiles/cmTC_25d2f.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_25d2f.dir/check_crypto_md.c.o' failed
  42810. make[1]: *** [CMakeFiles/cmTC_25d2f.dir/check_crypto_md.c.o] Error 1
  42811. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  42812. Makefile:126: recipe for target 'cmTC_25d2f/fast' failed
  42813. make: *** [cmTC_25d2f/fast] Error 2
  42814. Source file was:
  42815. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  42816. #if defined(__osf__)
  42817. # define _OSF_SOURCE
  42818. #endif
  42819. /*
  42820. * Ensure we have C99-style int64_t, etc, all defined.
  42821. */
  42822. /* First, we need to know if the system has already defined them. */
  42823. #define HAVE_INT16_T
  42824. #define HAVE_INT32_T
  42825. #define HAVE_INT64_T
  42826. #define HAVE_INTMAX_T
  42827. #define HAVE_UINT8_T
  42828. #define HAVE_UINT16_T
  42829. #define HAVE_UINT32_T
  42830. #define HAVE_UINT64_T
  42831. #define HAVE_UINTMAX_T
  42832. /* We might have the types we want under other spellings. */
  42833. /* #undef HAVE___INT64 */
  42834. /* #undef HAVE_U_INT64_T */
  42835. /* #undef HAVE_UNSIGNED___INT64 */
  42836. /* The sizes of various standard integer types. */
  42837. #define SIZE_OF_SHORT 2
  42838. #define SIZE_OF_INT 4
  42839. #define SIZE_OF_LONG 8
  42840. #define SIZE_OF_LONG_LONG 8
  42841. #define SIZE_OF_UNSIGNED_SHORT 2
  42842. #define SIZE_OF_UNSIGNED 4
  42843. #define SIZE_OF_UNSIGNED_LONG 8
  42844. #define SIZE_OF_UNSIGNED_LONG_LONG 8
  42845. /*
  42846. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  42847. * that exists and is the right size.
  42848. */
  42849. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  42850. typedef __int64 int64_t;
  42851. #define HAVE_INT64_T
  42852. #endif
  42853. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  42854. typedef int int64_t;
  42855. #define HAVE_INT64_T
  42856. #endif
  42857. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  42858. typedef long int64_t;
  42859. #define HAVE_INT64_T
  42860. #endif
  42861. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  42862. typedef long long int64_t;
  42863. #define HAVE_INT64_T
  42864. #endif
  42865. #if !defined(HAVE_INT64_T)
  42866. #error No 64-bit integer type was found.
  42867. #endif
  42868. /*
  42869. * Similarly for int32_t
  42870. */
  42871. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  42872. typedef int int32_t;
  42873. #define HAVE_INT32_T
  42874. #endif
  42875. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  42876. typedef long int32_t;
  42877. #define HAVE_INT32_T
  42878. #endif
  42879. #if !defined(HAVE_INT32_T)
  42880. #error No 32-bit integer type was found.
  42881. #endif
  42882. /*
  42883. * Similarly for int16_t
  42884. */
  42885. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  42886. typedef int int16_t;
  42887. #define HAVE_INT16_T
  42888. #endif
  42889. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  42890. typedef short int16_t;
  42891. #define HAVE_INT16_T
  42892. #endif
  42893. #if !defined(HAVE_INT16_T)
  42894. #error No 16-bit integer type was found.
  42895. #endif
  42896. /*
  42897. * Similarly for uint64_t
  42898. */
  42899. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  42900. typedef unsigned __int64 uint64_t;
  42901. #define HAVE_UINT64_T
  42902. #endif
  42903. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  42904. typedef unsigned uint64_t;
  42905. #define HAVE_UINT64_T
  42906. #endif
  42907. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  42908. typedef unsigned long uint64_t;
  42909. #define HAVE_UINT64_T
  42910. #endif
  42911. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  42912. typedef unsigned long long uint64_t;
  42913. #define HAVE_UINT64_T
  42914. #endif
  42915. #if !defined(HAVE_UINT64_T)
  42916. #error No 64-bit unsigned integer type was found.
  42917. #endif
  42918. /*
  42919. * Similarly for uint32_t
  42920. */
  42921. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  42922. typedef unsigned uint32_t;
  42923. #define HAVE_UINT32_T
  42924. #endif
  42925. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  42926. typedef unsigned long uint32_t;
  42927. #define HAVE_UINT32_T
  42928. #endif
  42929. #if !defined(HAVE_UINT32_T)
  42930. #error No 32-bit unsigned integer type was found.
  42931. #endif
  42932. /*
  42933. * Similarly for uint16_t
  42934. */
  42935. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  42936. typedef unsigned uint16_t;
  42937. #define HAVE_UINT16_T
  42938. #endif
  42939. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  42940. typedef unsigned short uint16_t;
  42941. #define HAVE_UINT16_T
  42942. #endif
  42943. #if !defined(HAVE_UINT16_T)
  42944. #error No 16-bit unsigned integer type was found.
  42945. #endif
  42946. /*
  42947. * Similarly for uint8_t
  42948. */
  42949. #if !defined(HAVE_UINT8_T)
  42950. typedef unsigned char uint8_t;
  42951. #define HAVE_UINT8_T
  42952. #endif
  42953. #if !defined(HAVE_UINT16_T)
  42954. #error No 8-bit unsigned integer type was found.
  42955. #endif
  42956. /* Define intmax_t and uintmax_t if they are not already defined. */
  42957. #if !defined(HAVE_INTMAX_T)
  42958. typedef int64_t intmax_t;
  42959. #endif
  42960. #if !defined(HAVE_UINTMAX_T)
  42961. typedef uint64_t uintmax_t;
  42962. #endif
  42963. /* Define ZLIB_WINAPI if zlib was built on Visual Studio. */
  42964. /* #undef ZLIB_WINAPI */
  42965. /* Darwin ACL support */
  42966. /* #undef ARCHIVE_ACL_DARWIN */
  42967. /* FreeBSD ACL support */
  42968. /* #undef ARCHIVE_ACL_FREEBSD */
  42969. /* FreeBSD NFSv4 ACL support */
  42970. /* #undef ARCHIVE_ACL_FREEBSD_NFS4 */
  42971. /* Linux POSIX.1e ACL support via libacl */
  42972. /* #undef ARCHIVE_ACL_LIBACL */
  42973. /* Linux NFSv4 ACL support via librichacl */
  42974. /* #undef ARCHIVE_ACL_LIBRICHACL */
  42975. /* Solaris ACL support */
  42976. /* #undef ARCHIVE_ACL_SUNOS */
  42977. /* Solaris NFSv4 ACL support */
  42978. /* #undef ARCHIVE_ACL_SUNOS_NFS4 */
  42979. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBC supported. */
  42980. /* #undef ARCHIVE_CRYPTO_MD5_LIBC */
  42981. /* MD5 via ARCHIVE_CRYPTO_MD5_LIBSYSTEM supported. */
  42982. /* #undef ARCHIVE_CRYPTO_MD5_LIBSYSTEM */
  42983. /* MD5 via ARCHIVE_CRYPTO_MD5_NETTLE supported. */
  42984. /* #undef ARCHIVE_CRYPTO_MD5_NETTLE */
  42985. /* MD5 via ARCHIVE_CRYPTO_MD5_OPENSSL supported. */
  42986. /* #undef ARCHIVE_CRYPTO_MD5_OPENSSL */
  42987. /* MD5 via ARCHIVE_CRYPTO_MD5_WIN supported. */
  42988. /* #undef ARCHIVE_CRYPTO_MD5_WIN */
  42989. /* RMD160 via ARCHIVE_CRYPTO_RMD160_LIBC supported. */
  42990. /* #undef ARCHIVE_CRYPTO_RMD160_LIBC */
  42991. /* RMD160 via ARCHIVE_CRYPTO_RMD160_NETTLE supported. */
  42992. /* #undef ARCHIVE_CRYPTO_RMD160_NETTLE */
  42993. /* RMD160 via ARCHIVE_CRYPTO_RMD160_OPENSSL supported. */
  42994. /* #undef ARCHIVE_CRYPTO_RMD160_OPENSSL */
  42995. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBC supported. */
  42996. /* #undef ARCHIVE_CRYPTO_SHA1_LIBC */
  42997. /* SHA1 via ARCHIVE_CRYPTO_SHA1_LIBSYSTEM supported. */
  42998. /* #undef ARCHIVE_CRYPTO_SHA1_LIBSYSTEM */
  42999. /* SHA1 via ARCHIVE_CRYPTO_SHA1_NETTLE supported. */
  43000. /* #undef ARCHIVE_CRYPTO_SHA1_NETTLE */
  43001. /* SHA1 via ARCHIVE_CRYPTO_SHA1_OPENSSL supported. */
  43002. /* #undef ARCHIVE_CRYPTO_SHA1_OPENSSL */
  43003. /* SHA1 via ARCHIVE_CRYPTO_SHA1_WIN supported. */
  43004. /* #undef ARCHIVE_CRYPTO_SHA1_WIN */
  43005. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC supported. */
  43006. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC */
  43007. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC2 supported. */
  43008. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC2 */
  43009. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBC3 supported. */
  43010. /* #undef ARCHIVE_CRYPTO_SHA256_LIBC3 */
  43011. /* SHA256 via ARCHIVE_CRYPTO_SHA256_LIBSYSTEM supported. */
  43012. /* #undef ARCHIVE_CRYPTO_SHA256_LIBSYSTEM */
  43013. /* SHA256 via ARCHIVE_CRYPTO_SHA256_NETTLE supported. */
  43014. /* #undef ARCHIVE_CRYPTO_SHA256_NETTLE */
  43015. /* SHA256 via ARCHIVE_CRYPTO_SHA256_OPENSSL supported. */
  43016. /* #undef ARCHIVE_CRYPTO_SHA256_OPENSSL */
  43017. /* SHA256 via ARCHIVE_CRYPTO_SHA256_WIN supported. */
  43018. /* #undef ARCHIVE_CRYPTO_SHA256_WIN */
  43019. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC supported. */
  43020. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC */
  43021. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC2 supported. */
  43022. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC2 */
  43023. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBC3 supported. */
  43024. /* #undef ARCHIVE_CRYPTO_SHA384_LIBC3 */
  43025. /* SHA384 via ARCHIVE_CRYPTO_SHA384_LIBSYSTEM supported. */
  43026. /* #undef ARCHIVE_CRYPTO_SHA384_LIBSYSTEM */
  43027. /* SHA384 via ARCHIVE_CRYPTO_SHA384_NETTLE supported. */
  43028. /* #undef ARCHIVE_CRYPTO_SHA384_NETTLE */
  43029. /* SHA384 via ARCHIVE_CRYPTO_SHA384_OPENSSL supported. */
  43030. /* #undef ARCHIVE_CRYPTO_SHA384_OPENSSL */
  43031. /* SHA384 via ARCHIVE_CRYPTO_SHA384_WIN supported. */
  43032. /* #undef ARCHIVE_CRYPTO_SHA384_WIN */
  43033. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC supported. */
  43034. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC */
  43035. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC2 supported. */
  43036. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC2 */
  43037. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBC3 supported. */
  43038. /* #undef ARCHIVE_CRYPTO_SHA512_LIBC3 */
  43039. /* SHA512 via ARCHIVE_CRYPTO_SHA512_LIBSYSTEM supported. */
  43040. /* #undef ARCHIVE_CRYPTO_SHA512_LIBSYSTEM */
  43041. /* SHA512 via ARCHIVE_CRYPTO_SHA512_NETTLE supported. */
  43042. /* #undef ARCHIVE_CRYPTO_SHA512_NETTLE */
  43043. /* SHA512 via ARCHIVE_CRYPTO_SHA512_OPENSSL supported. */
  43044. /* #undef ARCHIVE_CRYPTO_SHA512_OPENSSL */
  43045. /* SHA512 via ARCHIVE_CRYPTO_SHA512_WIN supported. */
  43046. /* #undef ARCHIVE_CRYPTO_SHA512_WIN */
  43047. /* AIX xattr support */
  43048. /* #undef ARCHIVE_XATTR_AIX */
  43049. /* Darwin xattr support */
  43050. /* #undef ARCHIVE_XATTR_DARWIN */
  43051. /* FreeBSD xattr support */
  43052. /* #undef ARCHIVE_XATTR_FREEBSD */
  43053. /* Linux xattr support */
  43054. /* #undef ARCHIVE_XATTR_LINUX */
  43055. /* Version number of bsdcpio */
  43056. #define BSDCPIO_VERSION_STRING "3.3.2"
  43057. /* Version number of bsdtar */
  43058. #define BSDTAR_VERSION_STRING "3.3.2"
  43059. /* Version number of bsdcat */
  43060. #define BSDCAT_VERSION_STRING "3.3.2"
  43061. /* Define to 1 if you have the `acl_create_entry' function. */
  43062. /* #undef HAVE_ACL_CREATE_ENTRY */
  43063. /* Define to 1 if you have the `acl_get_fd_np' function. */
  43064. /* #undef HAVE_ACL_GET_FD_NP */
  43065. /* Define to 1 if you have the `acl_get_link' function. */
  43066. /* #undef HAVE_ACL_GET_LINK */
  43067. /* Define to 1 if you have the `acl_get_link_np' function. */
  43068. /* #undef HAVE_ACL_GET_LINK_NP */
  43069. /* Define to 1 if you have the `acl_get_perm' function. */
  43070. /* #undef HAVE_ACL_GET_PERM */
  43071. /* Define to 1 if you have the `acl_get_perm_np' function. */
  43072. /* #undef HAVE_ACL_GET_PERM_NP */
  43073. /* Define to 1 if you have the `acl_init' function. */
  43074. /* #undef HAVE_ACL_INIT */
  43075. /* Define to 1 if you have the <acl/libacl.h> header file. */
  43076. /* #undef HAVE_ACL_LIBACL_H */
  43077. /* Define to 1 if the system has the type `acl_permset_t'. */
  43078. /* #undef HAVE_ACL_PERMSET_T */
  43079. /* Define to 1 if you have the `acl_set_fd' function. */
  43080. /* #undef HAVE_ACL_SET_FD */
  43081. /* Define to 1 if you have the `acl_set_fd_np' function. */
  43082. /* #undef HAVE_ACL_SET_FD_NP */
  43083. /* Define to 1 if you have the `acl_set_file' function. */
  43084. /* #undef HAVE_ACL_SET_FILE */
  43085. /* Define to 1 if you have the `arc4random_buf' function. */
  43086. /* #undef HAVE_ARC4RANDOM_BUF */
  43087. /* Define to 1 if you have the <attr/xattr.h> header file. */
  43088. /* #undef HAVE_ATTR_XATTR_H */
  43089. /* Define to 1 if you have the <Bcrypt.h> header file. */
  43090. /* #undef HAVE_BCRYPT_H */
  43091. /* Define to 1 if you have the <bsdxml.h> header file. */
  43092. /* #undef HAVE_BSDXML_H */
  43093. /* Define to 1 if you have the <bzlib.h> header file. */
  43094. #define HAVE_BZLIB_H 1
  43095. /* Define to 1 if you have the `chflags' function. */
  43096. /* #undef HAVE_CHFLAGS */
  43097. /* Define to 1 if you have the `chown' function. */
  43098. #define HAVE_CHOWN 1
  43099. /* Define to 1 if you have the `chroot' function. */
  43100. #define HAVE_CHROOT 1
  43101. /* Define to 1 if you have the <copyfile.h> header file. */
  43102. /* #undef HAVE_COPYFILE_H */
  43103. /* Define to 1 if you have the `ctime_r' function. */
  43104. #define HAVE_CTIME_R 1
  43105. /* Define to 1 if you have the <ctype.h> header file. */
  43106. #define HAVE_CTYPE_H 1
  43107. /* Define to 1 if you have the `cygwin_conv_path' function. */
  43108. /* #undef HAVE_CYGWIN_CONV_PATH */
  43109. /* Define to 1 if you have the declaration of `ACE_GETACL', and to 0 if you
  43110. don't. */
  43111. /* #undef HAVE_DECL_ACE_GETACL */
  43112. /* Define to 1 if you have the declaration of `ACE_GETACLCNT', and to 0 if you
  43113. don't. */
  43114. /* #undef HAVE_DECL_ACE_GETACLCNT */
  43115. /* Define to 1 if you have the declaration of `ACE_SETACL', and to 0 if you
  43116. don't. */
  43117. /* #undef HAVE_DECL_ACE_SETACL */
  43118. /* Define to 1 if you have the declaration of `ACL_SYNCHRONIZE', and to 0 if
  43119. you don't. */
  43120. /* #undef HAVE_DECL_ACL_SYNCHRONIZE */
  43121. /* Define to 1 if you have the declaration of `ACL_TYPE_EXTENDED', and to 0 if
  43122. you don't. */
  43123. /* #undef HAVE_DECL_ACL_TYPE_EXTENDED */
  43124. /* Define to 1 if you have the declaration of `ACL_TYPE_NFS4', and to 0 if you
  43125. don't. */
  43126. /* #undef HAVE_DECL_ACL_TYPE_NFS4 */
  43127. /* Define to 1 if you have the declaration of `ACL_USER', and to 0 if you
  43128. don't. */
  43129. /* #undef HAVE_DECL_ACL_USER */
  43130. /* Define to 1 if you have the declaration of `INT32_MAX', and to 0 if you
  43131. don't. */
  43132. #define HAVE_DECL_INT32_MAX 1
  43133. /* Define to 1 if you have the declaration of `INT32_MIN', and to 0 if you
  43134. don't. */
  43135. #define HAVE_DECL_INT32_MIN 1
  43136. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  43137. don't. */
  43138. #define HAVE_DECL_INT64_MAX 1
  43139. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  43140. don't. */
  43141. #define HAVE_DECL_INT64_MIN 1
  43142. /* Define to 1 if you have the declaration of `INTMAX_MAX', and to 0 if you
  43143. don't. */
  43144. #define HAVE_DECL_INTMAX_MAX 1
  43145. /* Define to 1 if you have the declaration of `INTMAX_MIN', and to 0 if you
  43146. don't. */
  43147. #define HAVE_DECL_INTMAX_MIN 1
  43148. /* Define to 1 if you have the declaration of `SETACL', and to 0 if you don't.
  43149. */
  43150. /* #undef HAVE_DECL_SETACL */
  43151. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  43152. don't. */
  43153. #define HAVE_DECL_SIZE_MAX 1
  43154. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  43155. don't. */
  43156. #define HAVE_DECL_SSIZE_MAX 1
  43157. /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
  43158. don't. */
  43159. #define HAVE_DECL_STRERROR_R 1
  43160. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  43161. don't. */
  43162. #define HAVE_DECL_UINT32_MAX 1
  43163. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  43164. don't. */
  43165. #define HAVE_DECL_UINT64_MAX 1
  43166. /* Define to 1 if you have the declaration of `UINTMAX_MAX', and to 0 if you
  43167. don't. */
  43168. #define HAVE_DECL_UINTMAX_MAX 1
  43169. /* Define to 1 if you have the declaration of `XATTR_NOFOLLOW', and to 0 if
  43170. you don't. */
  43171. /* #undef HAVE_DECL_XATTR_NOFOLLOW */
  43172. /* Define to 1 if you have the <direct.h> header file. */
  43173. /* #undef HAVE_DIRECT_H */
  43174. /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
  43175. */
  43176. #define HAVE_DIRENT_H 1
  43177. /* Define to 1 if you have the `dirfd' function. */
  43178. #define HAVE_DIRFD 1
  43179. /* Define to 1 if you have the <dlfcn.h> header file. */
  43180. #define HAVE_DLFCN_H 1
  43181. /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  43182. /* #undef HAVE_DOPRNT */
  43183. /* Define to 1 if nl_langinfo supports D_MD_ORDER */
  43184. /* #undef HAVE_D_MD_ORDER */
  43185. /* A possible errno value for invalid file format errors */
  43186. /* #undef HAVE_EFTYPE */
  43187. /* A possible errno value for invalid file format errors */
  43188. #define HAVE_EILSEQ 1
  43189. /* Define to 1 if you have the <errno.h> header file. */
  43190. #define HAVE_ERRNO_H 1
  43191. /* Define to 1 if you have the <expat.h> header file. */
  43192. /* #undef HAVE_EXPAT_H */
  43193. /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
  43194. /* #undef HAVE_EXT2FS_EXT2_FS_H */
  43195. /* Define to 1 if you have the `extattr_get_file' function. */
  43196. /* #undef HAVE_EXTATTR_GET_FILE */
  43197. /* Define to 1 if you have the `extattr_list_file' function. */
  43198. /* #undef HAVE_EXTATTR_LIST_FILE */
  43199. /* Define to 1 if you have the `extattr_set_fd' function. */
  43200. /* #undef HAVE_EXTATTR_SET_FD */
  43201. /* Define to 1 if you have the `extattr_set_file' function. */
  43202. /* #undef HAVE_EXTATTR_SET_FILE */
  43203. /* Define to 1 if EXTATTR_NAMESPACE_USER is defined in sys/extattr.h. */
  43204. /* #undef HAVE_DECL_EXTATTR_NAMESPACE_USER */
  43205. /* Define to 1 if you have the declaration of `GETACL', and to 0 if you don't.
  43206. */
  43207. /* #undef HAVE_DECL_GETACL */
  43208. /* Define to 1 if you have the declaration of `GETACLCNT', and to 0 if you
  43209. don't. */
  43210. /* #undef HAVE_DECL_GETACLCNT */
  43211. /* Define to 1 if you have the `fchdir' function. */
  43212. #define HAVE_FCHDIR 1
  43213. /* Define to 1 if you have the `fchflags' function. */
  43214. /* #undef HAVE_FCHFLAGS */
  43215. /* Define to 1 if you have the `fchmod' function. */
  43216. #define HAVE_FCHMOD 1
  43217. /* Define to 1 if you have the `fchown' function. */
  43218. #define HAVE_FCHOWN 1
  43219. /* Define to 1 if you have the `fcntl' function. */
  43220. #define HAVE_FCNTL 1
  43221. /* Define to 1 if you have the <fcntl.h> header file. */
  43222. #define HAVE_FCNTL_H 1
  43223. /* Define to 1 if you have the `fdopendir' function. */
  43224. #define HAVE_FDOPENDIR 1
  43225. /* Define to 1 if you have the `fgetea' function. */
  43226. /* #undef HAVE_FGETEA */
  43227. /* Define to 1 if you have the `fgetxattr' function. */
  43228. /* #undef HAVE_FGETXATTR */
  43229. /* Define to 1 if you have the `flistea' function. */
  43230. /* #undef HAVE_FLISTEA */
  43231. /* Define to 1 if you have the `flistxattr' function. */
  43232. /* #undef HAVE_FLISTXATTR */
  43233. /* Define to 1 if you have the `fork' function. */
  43234. #define HAVE_FORK 1
  43235. /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
  43236. #define HAVE_FSEEKO 1
  43237. /* Define to 1 if you have the `fsetea' function. */
  43238. /* #undef HAVE_FSETEA */
  43239. /* Define to 1 if you have the `fsetxattr' function. */
  43240. #define HAVE_FSETXATTR 1
  43241. /* Define to 1 if you have the `fstat' function. */
  43242. #define HAVE_FSTAT 1
  43243. /* Define to 1 if you have the `fstatat' function. */
  43244. #define HAVE_FSTATAT 1
  43245. /* Define to 1 if you have the `fstatfs' function. */
  43246. #define HAVE_FSTATFS 1
  43247. /* Define to 1 if you have the `fstatvfs' function. */
  43248. #define HAVE_FSTATVFS 1
  43249. /* Define to 1 if you have the `ftruncate' function. */
  43250. #define HAVE_FTRUNCATE 1
  43251. /* Define to 1 if you have the `futimens' function. */
  43252. #define HAVE_FUTIMENS 1
  43253. /* Define to 1 if you have the `futimes' function. */
  43254. #define HAVE_FUTIMES 1
  43255. /* Define to 1 if you have the `futimesat' function. */
  43256. #define HAVE_FUTIMESAT 1
  43257. /* Define to 1 if you have the `getea' function. */
  43258. /* #undef HAVE_GETEA */
  43259. /* Define to 1 if you have the `geteuid' function. */
  43260. #define HAVE_GETEUID 1
  43261. /* Define to 1 if you have the `getgrgid_r' function. */
  43262. #define HAVE_GETGRGID_R 1
  43263. /* Define to 1 if you have the `getgrnam_r' function. */
  43264. #define HAVE_GETGRNAM_R 1
  43265. /* Define to 1 if you have the `getpid' function. */
  43266. #define HAVE_GETPID 1
  43267. /* Define to 1 if you have the `getpwnam_r' function. */
  43268. #define HAVE_GETPWNAM_R 1
  43269. /* Define to 1 if you have the `getpwuid_r' function. */
  43270. #define HAVE_GETPWUID_R 1
  43271. /* Define to 1 if you have the `getvfsbyname' function. */
  43272. /* #undef HAVE_GETVFSBYNAME */
  43273. /* Define to 1 if you have the `getxattr' function. */
  43274. /* #undef HAVE_GETXATTR */
  43275. /* Define to 1 if you have the `gmtime_r' function. */
  43276. #define HAVE_GMTIME_R 1
  43277. /* Define to 1 if you have the <grp.h> header file. */
  43278. #define HAVE_GRP_H 1
  43279. /* Define to 1 if you have the `iconv' function. */
  43280. /* #undef HAVE_ICONV */
  43281. /* Define to 1 if you have the <iconv.h> header file. */
  43282. /* #undef HAVE_ICONV_H */
  43283. /* Define to 1 if you have the <inttypes.h> header file. */
  43284. #define HAVE_INTTYPES_H 1
  43285. /* Define to 1 if you have the <io.h> header file. */
  43286. /* #undef HAVE_IO_H */
  43287. /* Define to 1 if you have the <langinfo.h> header file. */
  43288. #define HAVE_LANGINFO_H 1
  43289. /* Define to 1 if you have the `lchflags' function. */
  43290. /* #undef HAVE_LCHFLAGS */
  43291. /* Define to 1 if you have the `lchmod' function. */
  43292. /* #undef HAVE_LCHMOD */
  43293. /* Define to 1 if you have the `lchown' function. */
  43294. #define HAVE_LCHOWN 1
  43295. /* Define to 1 if you have the `lgetea' function. */
  43296. /* #undef HAVE_LGETEA */
  43297. /* Define to 1 if you have the `lgetxattr' function. */
  43298. /* #undef HAVE_LGETXATTR */
  43299. /* Define to 1 if you have the `acl' library (-lacl). */
  43300. /* #undef HAVE_LIBACL */
  43301. /* Define to 1 if you have the `attr' library (-lattr). */
  43302. /* #undef HAVE_LIBATTR */
  43303. /* Define to 1 if you have the `bsdxml' library (-lbsdxml). */
  43304. /* #undef HAVE_LIBBSDXML */
  43305. /* Define to 1 if you have the `bz2' library (-lbz2). */
  43306. #define HAVE_LIBBZ2 1
  43307. /* Define to 1 if you have the `charset' library (-lcharset). */
  43308. /* #undef HAVE_LIBCHARSET */
  43309. /* Define to 1 if you have the `crypto' library (-lcrypto). */
  43310. #define HAVE_LIBCRYPTO 1
  43311. /* Define to 1 if you have the `expat' library (-lexpat). */
  43312. /* #undef HAVE_LIBEXPAT */
  43313. /* Define to 1 if you have the `gcc' library (-lgcc). */
  43314. /* #undef HAVE_LIBGCC */
  43315. /* Define to 1 if you have the `lz4' library (-llz4). */
  43316. /* #undef HAVE_LIBLZ4 */
  43317. /* Define to 1 if you have the `lzma' library (-llzma). */
  43318. #define HAVE_LIBLZMA 1
  43319. /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
  43320. /* #undef HAVE_LIBLZMADEC */
  43321. /* Define to 1 if you have the `lzo2' library (-llzo2). */
  43322. /* #undef HAVE_LIBLZO2 */
  43323. /* Define to 1 if you have the `nettle' library (-lnettle). */
  43324. /* #undef HAVE_LIBNETTLE */
  43325. /* Define to 1 if you have the `pcre' library (-lpcre). */
  43326. /* #undef HAVE_LIBPCRE */
  43327. /* Define to 1 if you have the `pcreposix' library (-lpcreposix). */
  43328. /* #undef HAVE_LIBPCREPOSIX */
  43329. /* Define to 1 if you have the `xml2' library (-lxml2). */
  43330. /* #undef HAVE_LIBXML2 */
  43331. /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
  43332. /* #undef HAVE_LIBXML_XMLREADER_H */
  43333. /* Define to 1 if you have the <libxml/xmlwriter.h> header file. */
  43334. /* #undef HAVE_LIBXML_XMLWRITER_H */
  43335. /* Define to 1 if you have the `z' library (-lz). */
  43336. #define HAVE_LIBZ 1
  43337. /* Define to 1 if you have the <limits.h> header file. */
  43338. #define HAVE_LIMITS_H 1
  43339. /* Define to 1 if you have the `link' function. */
  43340. #define HAVE_LINK 1
  43341. /* Define to 1 if you have the <linux/types.h> header file. */
  43342. #define HAVE_LINUX_TYPES_H 1
  43343. /* Define to 1 if you have the <linux/fiemap.h> header file. */
  43344. #define HAVE_LINUX_FIEMAP_H 1
  43345. /* Define to 1 if you have the <linux/fs.h> header file. */
  43346. #define HAVE_LINUX_FS_H 1
  43347. /* Define to 1 if you have the <linux/magic.h> header file. */
  43348. #define HAVE_LINUX_MAGIC_H 1
  43349. /* Define to 1 if you have the <linux/types.h> header file. */
  43350. #define HAVE_LINUX_TYPES_H 1
  43351. /* Define to 1 if you have the `listea' function. */
  43352. /* #undef HAVE_LISTEA */
  43353. /* Define to 1 if you have the `listxattr' function. */
  43354. /* #undef HAVE_LISTXATTR */
  43355. /* Define to 1 if you have the `llistea' function. */
  43356. /* #undef HAVE_LLISTEA */
  43357. /* Define to 1 if you have the `llistxattr' function. */
  43358. /* #undef HAVE_LLISTXATTR */
  43359. /* Define to 1 if you have the <localcharset.h> header file. */
  43360. /* #undef HAVE_LOCALCHARSET_H */
  43361. /* Define to 1 if you have the `locale_charset' function. */
  43362. /* #undef HAVE_LOCALE_CHARSET */
  43363. /* Define to 1 if you have the <locale.h> header file. */
  43364. #define HAVE_LOCALE_H 1
  43365. /* Define to 1 if you have the `localtime_r' function. */
  43366. #define HAVE_LOCALTIME_R 1
  43367. /* Define to 1 if the system has the type `long long int'. */
  43368. /* #undef HAVE_LONG_LONG_INT */
  43369. /* Define to 1 if you have the `lsetea' function. */
  43370. /* #undef HAVE_LSETEA */
  43371. /* Define to 1 if you have the `lsetxattr' function. */
  43372. /* #undef HAVE_LSETXATTR */
  43373. /* Define to 1 if you have the `lstat' function. */
  43374. #define HAVE_LSTAT 1
  43375. /* Define to 1 if `lstat' has the bug that it succeeds when given the
  43376. zero-length file name argument. */
  43377. /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
  43378. /* Define to 1 if you have the `lutimes' function. */
  43379. #define HAVE_LUTIMES 1
  43380. /* Define to 1 if you have the <lz4hc.h> header file. */
  43381. /* #undef HAVE_LZ4HC_H */
  43382. /* Define to 1 if you have the <lz4.h> header file. */
  43383. /* #undef HAVE_LZ4_H */
  43384. /* Define to 1 if you have the <lzmadec.h> header file. */
  43385. /* #undef HAVE_LZMADEC_H */
  43386. /* Define to 1 if you have the <lzma.h> header file. */
  43387. #define HAVE_LZMA_H 1
  43388. /* Define to 1 if you have a working `lzma_stream_encoder_mt' function. */
  43389. /* #undef HAVE_LZMA_STREAM_ENCODER_MT */
  43390. /* Define to 1 if you have the <lzo/lzo1x.h> header file. */
  43391. /* #undef HAVE_LZO_LZO1X_H */
  43392. /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
  43393. /* #undef HAVE_LZO_LZOCONF_H */
  43394. /* Define to 1 if you have the `mbrtowc' function. */
  43395. #define HAVE_MBRTOWC 1
  43396. /* Define to 1 if you have the <membership.h> header file. */
  43397. /* #undef HAVE_MEMBERSHIP_H */
  43398. /* Define to 1 if you have the `memmove' function. */
  43399. #define HAVE_MEMMOVE 1
  43400. /* Define to 1 if you have the <memory.h> header file. */
  43401. #define HAVE_MEMORY_H 1
  43402. /* Define to 1 if you have the `mkdir' function. */
  43403. #define HAVE_MKDIR 1
  43404. /* Define to 1 if you have the `mkfifo' function. */
  43405. #define HAVE_MKFIFO 1
  43406. /* Define to 1 if you have the `mknod' function. */
  43407. #define HAVE_MKNOD 1
  43408. /* Define to 1 if you have the `mkstemp' function. */
  43409. #define HAVE_MKSTEMP 1
  43410. /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
  43411. /* #undef HAVE_NDIR_H */
  43412. /* Define to 1 if you have the <nettle/aes.h> header file. */
  43413. /* #undef HAVE_NETTLE_AES_H */
  43414. /* Define to 1 if you have the <nettle/hmac.h> header file. */
  43415. /* #undef HAVE_NETTLE_HMAC_H */
  43416. /* Define to 1 if you have the <nettle/md5.h> header file. */
  43417. /* #undef HAVE_NETTLE_MD5_H */
  43418. /* Define to 1 if you have the <nettle/pbkdf2.h> header file. */
  43419. /* #undef HAVE_NETTLE_PBKDF2_H */
  43420. /* Define to 1 if you have the <nettle/ripemd160.h> header file. */
  43421. /* #undef HAVE_NETTLE_RIPEMD160_H */
  43422. /* Define to 1 if you have the <nettle/sha.h> header file. */
  43423. /* #undef HAVE_NETTLE_SHA_H */
  43424. /* Define to 1 if you have the `nl_langinfo' function. */
  43425. #define HAVE_NL_LANGINFO 1
  43426. /* Define to 1 if you have the `openat' function. */
  43427. #define HAVE_OPENAT 1
  43428. /* Define to 1 if you have the <paths.h> header file. */
  43429. #define HAVE_PATHS_H 1
  43430. /* Define to 1 if you have the <pcreposix.h> header file. */
  43431. /* #undef HAVE_PCREPOSIX_H */
  43432. /* Define to 1 if you have the `pipe' function. */
  43433. #define HAVE_PIPE 1
  43434. /* Define to 1 if you have the `PKCS5_PBKDF2_HMAC_SHA1' function. */
  43435. /* #undef HAVE_PKCS5_PBKDF2_HMAC_SHA1 */
  43436. /* Define to 1 if you have the `poll' function. */
  43437. #define HAVE_POLL 1
  43438. /* Define to 1 if you have the <poll.h> header file. */
  43439. #define HAVE_POLL_H 1
  43440. /* Define to 1 if you have the `posix_spawnp' function. */
  43441. #define HAVE_POSIX_SPAWNP 1
  43442. /* Define to 1 if you have the <process.h> header file. */
  43443. /* #undef HAVE_PROCESS_H */
  43444. /* Define to 1 if you have the <pthread.h> header file. */
  43445. /* #undef HAVE_PTHREAD_H */
  43446. /* Define to 1 if you have the <pwd.h> header file. */
  43447. #define HAVE_PWD_H 1
  43448. /* Define to 1 if you have the `readdir_r' function. */
  43449. #define HAVE_READDIR_R 1
  43450. /* Define to 1 if you have the `readlink' function. */
  43451. #define HAVE_READLINK 1
  43452. /* Define to 1 if you have the `readlinkat' function. */
  43453. #define HAVE_READLINKAT 1
  43454. /* Define to 1 if you have the `readpassphrase' function. */
  43455. /* #undef HAVE_READPASSPHRASE */
  43456. /* Define to 1 if you have the <readpassphrase.h> header file. */
  43457. /* #undef HAVE_READPASSPHRASE_H */
  43458. /* Define to 1 if you have the <regex.h> header file. */
  43459. #define HAVE_REGEX_H 1
  43460. /* Define to 1 if you have the `select' function. */
  43461. #define HAVE_SELECT 1
  43462. /* Define to 1 if you have the `setenv' function. */
  43463. #define HAVE_SETENV 1
  43464. /* Define to 1 if you have the `setlocale' function. */
  43465. #define HAVE_SETLOCALE 1
  43466. /* Define to 1 if you have the `sigaction' function. */
  43467. #define HAVE_SIGACTION 1
  43468. /* Define to 1 if you have the <signal.h> header file. */
  43469. #define HAVE_SIGNAL_H 1
  43470. /* Define to 1 if you have the <spawn.h> header file. */
  43471. #define HAVE_SPAWN_H 1
  43472. /* Define to 1 if you have the `statfs' function. */
  43473. #define HAVE_STATFS 1
  43474. /* Define to 1 if you have the `statvfs' function. */
  43475. #define HAVE_STATVFS 1
  43476. /* Define to 1 if `stat' has the bug that it succeeds when given the
  43477. zero-length file name argument. */
  43478. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  43479. /* Define to 1 if you have the <stdarg.h> header file. */
  43480. #define HAVE_STDARG_H 1
  43481. /* Define to 1 if you have the <stdint.h> header file. */
  43482. #define HAVE_STDINT_H 1
  43483. /* Define to 1 if you have the <stdlib.h> header file. */
  43484. #define HAVE_STDLIB_H 1
  43485. /* Define to 1 if you have the `strchr' function. */
  43486. #define HAVE_STRCHR 1
  43487. /* Define to 1 if you have the `strdup' function. */
  43488. #define HAVE_STRDUP 1
  43489. /* Define to 1 if you have the `strerror' function. */
  43490. #define HAVE_STRERROR 1
  43491. /* Define to 1 if you have the `strerror_r' function. */
  43492. #define HAVE_STRERROR_R 1
  43493. /* Define to 1 if you have the `strftime' function. */
  43494. #define HAVE_STRFTIME 1
  43495. /* Define to 1 if you have the <strings.h> header file. */
  43496. #define HAVE_STRINGS_H 1
  43497. /* Define to 1 if you have the <string.h> header file. */
  43498. #define HAVE_STRING_H 1
  43499. /* Define to 1 if you have the `strrchr' function. */
  43500. #define HAVE_STRRCHR 1
  43501. /* Define to 1 if `f_namemax' is a member of `struct statfs'. */
  43502. /* #undef HAVE_STRUCT_STATFS_F_NAMEMAX */
  43503. /* Define to 1 if `f_iosize' is a member of `struct statvfs'. */
  43504. /* #undef HAVE_STRUCT_STATVFS_F_IOSIZE */
  43505. /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
  43506. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */
  43507. /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
  43508. /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */
  43509. /* Define to 1 if `st_blksize' is a member of `struct stat'. */
  43510. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  43511. /* Define to 1 if `st_flags' is a member of `struct stat'. */
  43512. /* #undef HAVE_STRUCT_STAT_ST_FLAGS */
  43513. /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
  43514. /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */
  43515. /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
  43516. /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */
  43517. /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
  43518. /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */
  43519. /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
  43520. #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
  43521. /* Define to 1 if `st_umtime' is a member of `struct stat'. */
  43522. /* #undef HAVE_STRUCT_STAT_ST_UMTIME */
  43523. /* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */
  43524. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  43525. /* Define to 1 if `__tm_gmtoff' is a member of `struct tm'. */
  43526. /* #undef HAVE_STRUCT_TM___TM_GMTOFF */
  43527. /* Define to 1 if you have `struct vfsconf'. */
  43528. /* #undef HAVE_STRUCT_VFSCONF */
  43529. /* Define to 1 if you have `struct xvfsconf'. */
  43530. /* #undef HAVE_STRUCT_XVFSCONF */
  43531. /* Define to 1 if you have the `symlink' function. */
  43532. #define HAVE_SYMLINK 1
  43533. /* Define to 1 if you have the <sys/acl.h> header file. */
  43534. /* #undef HAVE_SYS_ACL_H */
  43535. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  43536. #define HAVE_SYS_CDEFS_H 1
  43537. /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
  43538. */
  43539. /* #undef HAVE_SYS_DIR_H */
  43540. /* Define to 1 if you have the <sys/ea.h> header file. */
  43541. /* #undef HAVE_SYS_EA_H */
  43542. /* Define to 1 if you have the <sys/extattr.h> header file. */
  43543. /* #undef HAVE_SYS_EXTATTR_H */
  43544. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  43545. #define HAVE_SYS_IOCTL_H 1
  43546. /* Define to 1 if you have the <sys/mkdev.h> header file. */
  43547. /* #undef HAVE_SYS_MKDEV_H */
  43548. /* Define to 1 if you have the <sys/mount.h> header file. */
  43549. /* #undef HAVE_SYS_MOUNT_H */
  43550. /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
  43551. */
  43552. /* #undef HAVE_SYS_NDIR_H */
  43553. /* Define to 1 if you have the <sys/param.h> header file. */
  43554. #define HAVE_SYS_PARAM_H 1
  43555. /* Define to 1 if you have the <sys/poll.h> header file. */
  43556. #define HAVE_SYS_POLL_H 1
  43557. /* Define to 1 if you have the <sys/richacl.h> header file. */
  43558. /* #undef HAVE_SYS_RICHACL_H */
  43559. /* Define to 1 if you have the <sys/select.h> header file. */
  43560. #define HAVE_SYS_SELECT_H 1
  43561. /* Define to 1 if you have the <sys/statfs.h> header file. */
  43562. #define HAVE_SYS_STATFS_H 1
  43563. /* Define to 1 if you have the <sys/statvfs.h> header file. */
  43564. #define HAVE_SYS_STATVFS_H 1
  43565. /* Define to 1 if you have the <sys/stat.h> header file. */
  43566. #define HAVE_SYS_STAT_H 1
  43567. /* Define to 1 if you have the <sys/time.h> header file. */
  43568. #define HAVE_SYS_TIME_H 1
  43569. /* Define to 1 if you have the <sys/types.h> header file. */
  43570. #define HAVE_SYS_TYPES_H 1
  43571. /* Define to 1 if you have the <sys/utime.h> header file. */
  43572. /* #undef HAVE_SYS_UTIME_H */
  43573. /* Define to 1 if you have the <sys/utsname.h> header file. */
  43574. #define HAVE_SYS_UTSNAME_H 1
  43575. /* Define to 1 if you have the <sys/vfs.h> header file. */
  43576. #define HAVE_SYS_VFS_H 1
  43577. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  43578. #define HAVE_SYS_WAIT_H 1
  43579. /* Define to 1 if you have the <sys/xattr.h> header file. */
  43580. #define HAVE_SYS_XATTR_H 1
  43581. /* Define to 1 if you have the `timegm' function. */
  43582. #define HAVE_TIMEGM 1
  43583. /* Define to 1 if you have the <time.h> header file. */
  43584. #define HAVE_TIME_H 1
  43585. /* Define to 1 if you have the `tzset' function. */
  43586. #define HAVE_TZSET 1
  43587. /* Define to 1 if you have the <unistd.h> header file. */
  43588. #define HAVE_UNISTD_H 1
  43589. /* Define to 1 if you have the `unsetenv' function. */
  43590. #define HAVE_UNSETENV 1
  43591. /* Define to 1 if the system has the type `unsigned long long'. */
  43592. /* #undef HAVE_UNSIGNED_LONG_LONG */
  43593. /* Define to 1 if the system has the type `unsigned long long int'. */
  43594. /* #undef HAVE_UNSIGNED_LONG_LONG_INT */
  43595. /* Define to 1 if you have the `utime' function. */
  43596. #define HAVE_UTIME 1
  43597. /* Define to 1 if you have the `utimensat' function. */
  43598. #define HAVE_UTIMENSAT 1
  43599. /* Define to 1 if you have the `utimes' function. */
  43600. #define HAVE_UTIMES 1
  43601. /* Define to 1 if you have the <utime.h> header file. */
  43602. #define HAVE_UTIME_H 1
  43603. /* Define to 1 if you have the `vfork' function. */
  43604. #define HAVE_VFORK 1
  43605. /* Define to 1 if you have the `vprintf' function. */
  43606. #define HAVE_VPRINTF 1
  43607. /* Define to 1 if you have the <wchar.h> header file. */
  43608. #define HAVE_WCHAR_H 1
  43609. /* Define to 1 if the system has the type `wchar_t'. */
  43610. #define HAVE_WCHAR_T 1
  43611. /* Define to 1 if you have the `wcrtomb' function. */
  43612. #define HAVE_WCRTOMB 1
  43613. /* Define to 1 if you have the `wcscmp' function. */
  43614. #define HAVE_WCSCMP 1
  43615. /* Define to 1 if you have the `wcscpy' function. */
  43616. #define HAVE_WCSCPY 1
  43617. /* Define to 1 if you have the `wcslen' function. */
  43618. #define HAVE_WCSLEN 1
  43619. /* Define to 1 if you have the `wctomb' function. */
  43620. #define HAVE_WCTOMB 1
  43621. /* Define to 1 if you have the <wctype.h> header file. */
  43622. #define HAVE_WCTYPE_H 1
  43623. /* Define to 1 if you have the <wincrypt.h> header file. */
  43624. /* #undef HAVE_WINCRYPT_H */
  43625. /* Define to 1 if you have the <windows.h> header file. */
  43626. /* #undef HAVE_WINDOWS_H */
  43627. /* Define to 1 if you have the <winioctl.h> header file. */
  43628. /* #undef HAVE_WINIOCTL_H */
  43629. /* Define to 1 if you have _CrtSetReportMode in <crtdbg.h> */
  43630. /* #undef HAVE__CrtSetReportMode */
  43631. /* Define to 1 if you have the `wmemcmp' function. */
  43632. #define HAVE_WMEMCMP 1
  43633. /* Define to 1 if you have the `wmemcpy' function. */
  43634. #define HAVE_WMEMCPY 1
  43635. /* Define to 1 if you have the `wmemmove' function. */
  43636. #define HAVE_WMEMMOVE 1
  43637. /* Define to 1 if you have a working EXT2_IOC_GETFLAGS */
  43638. /* #undef HAVE_WORKING_EXT2_IOC_GETFLAGS */
  43639. /* Define to 1 if you have a working FS_IOC_GETFLAGS */
  43640. #define HAVE_WORKING_FS_IOC_GETFLAGS 1
  43641. /* Define to 1 if you have the <zlib.h> header file. */
  43642. #define HAVE_ZLIB_H 1
  43643. /* Define to 1 if you have the `_ctime64_s' function. */
  43644. /* #undef HAVE__CTIME64_S */
  43645. /* Define to 1 if you have the `_fseeki64' function. */
  43646. /* #undef HAVE__FSEEKI64 */
  43647. /* Define to 1 if you have the `_get_timezone' function. */
  43648. /* #undef HAVE__GET_TIMEZONE */
  43649. /* Define to 1 if you have the `_localtime64_s' function. */
  43650. /* #undef HAVE__LOCALTIME64_S */
  43651. /* Define to 1 if you have the `_mkgmtime64' function. */
  43652. /* #undef HAVE__MKGMTIME64 */
  43653. /* Define as const if the declaration of iconv() needs const. */
  43654. #define ICONV_CONST
  43655. /* Version number of libarchive as a single integer */
  43656. #define LIBARCHIVE_VERSION_NUMBER "3003002"
  43657. /* Version number of libarchive */
  43658. #define LIBARCHIVE_VERSION_STRING "3.3.2"
  43659. /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  43660. slash. */
  43661. /* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
  43662. /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
  43663. */
  43664. /* #undef MAJOR_IN_MKDEV */
  43665. /* Define to 1 if `major', `minor', and `makedev' are declared in
  43666. <sysmacros.h>. */
  43667. #define MAJOR_IN_SYSMACROS 1
  43668. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  43669. /* #undef NO_MINUS_C_MINUS_O */
  43670. /* The size of `wchar_t', as computed by sizeof. */
  43671. #define SIZEOF_WCHAR_T 4
  43672. /* Define to 1 if strerror_r returns char *. */
  43673. /* #undef STRERROR_R_CHAR_P */
  43674. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  43675. #define TIME_WITH_SYS_TIME 1
  43676. /*
  43677. * Some platform requires a macro to use extension functions.
  43678. */
  43679. #define SAFE_TO_DEFINE_EXTENSIONS 1
  43680. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  43681. /* Enable extensions on AIX 3, Interix. */
  43682. #ifndef _ALL_SOURCE
  43683. # define _ALL_SOURCE 1
  43684. #endif
  43685. /* Enable GNU extensions on systems that have them. */
  43686. #ifndef _GNU_SOURCE
  43687. # define _GNU_SOURCE 1
  43688. #endif
  43689. /* Enable threading extensions on Solaris. */
  43690. #ifndef _POSIX_PTHREAD_SEMANTICS
  43691. # define _POSIX_PTHREAD_SEMANTICS 1
  43692. #endif
  43693. /* Enable extensions on HP NonStop. */
  43694. #ifndef _TANDEM_SOURCE
  43695. # define _TANDEM_SOURCE 1
  43696. #endif
  43697. /* Enable general extensions on Solaris. */
  43698. #ifndef __EXTENSIONS__
  43699. # define __EXTENSIONS__ 1
  43700. #endif
  43701. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  43702. /* Version number of package */
  43703. #define VERSION "3.3.2"
  43704. /* Number of bits in a file offset, on hosts where this is settable. */
  43705. /* #undef _FILE_OFFSET_BITS */
  43706. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  43707. /* #undef _LARGEFILE_SOURCE */
  43708. /* Define for large files, on AIX-style hosts. */
  43709. /* #undef _LARGE_FILES */
  43710. /* Define to control Windows SDK version */
  43711. #ifndef NTDDI_VERSION
  43712. /* #undef NTDDI_VERSION */
  43713. #endif // NTDDI_VERSION
  43714. #ifndef _WIN32_WINNT
  43715. /* #undef _WIN32_WINNT */
  43716. #endif // _WIN32_WINNT
  43717. #ifndef WINVER
  43718. /* #undef WINVER */
  43719. #endif // WINVER
  43720. /* Define to empty if `const' does not conform to ANSI C. */
  43721. /* #undef const */
  43722. /* Define to `int' if <sys/types.h> doesn't define. */
  43723. /* #undef gid_t */
  43724. /* Define to `unsigned long' if <sys/types.h> does not define. */
  43725. /* #undef id_t */
  43726. /* Define to `int' if <sys/types.h> does not define. */
  43727. /* #undef mode_t */
  43728. /* Define to `long long' if <sys/types.h> does not define. */
  43729. /* #undef off_t */
  43730. /* Define to `int' if <sys/types.h> doesn't define. */
  43731. /* #undef pid_t */
  43732. /* Define to `unsigned int' if <sys/types.h> does not define. */
  43733. /* #undef size_t */
  43734. /* Define to `int' if <sys/types.h> does not define. */
  43735. /* #undef ssize_t */
  43736. /* Define to `int' if <sys/types.h> doesn't define. */
  43737. /* #undef uid_t */
  43738. /* Define to `int' if <sys/types.h> does not define. */
  43739. /* #undef intptr_t */
  43740. /* Define to `unsigned int' if <sys/types.h> does not define. */
  43741. /* #undef uintptr_t */
  43742. #define ARCHIVE_SHA512_COMPILE_TEST
  43743. #define ARCHIVE_CRYPTO_SHA512_LIBSYSTEM
  43744. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  43745. /*-
  43746. * Copyright (c) 2003-2007 Tim Kientzle
  43747. * Copyright (c) 2011 Andres Mejia
  43748. * Copyright (c) 2011 Michihiro NAKAJIMA
  43749. * All rights reserved.
  43750. *
  43751. * Redistribution and use in source and binary forms, with or without
  43752. * modification, are permitted provided that the following conditions
  43753. * are met:
  43754. * 1. Redistributions of source code must retain the above copyright
  43755. * notice, this list of conditions and the following disclaimer.
  43756. * 2. Redistributions in binary form must reproduce the above copyright
  43757. * notice, this list of conditions and the following disclaimer in the
  43758. * documentation and/or other materials provided with the distribution.
  43759. *
  43760. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
  43761. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  43762. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  43763. * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
  43764. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  43765. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  43766. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  43767. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  43768. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  43769. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  43770. */
  43771. #include "archive_platform.h"
  43772. #include "archive.h"
  43773. #include "archive_digest_private.h"
  43774. /* In particular, force the configure probe to break if it tries
  43775. * to test a combination of OpenSSL and libmd. */
  43776. #if defined(ARCHIVE_CRYPTO_OPENSSL) && defined(ARCHIVE_CRYPTO_LIBMD)
  43777. #error Cannot use both OpenSSL and libmd.
  43778. #endif
  43779. /*
  43780. * Message digest functions for Windows platform.
  43781. */
  43782. #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
  43783. defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
  43784. defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
  43785. defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
  43786. defined(ARCHIVE_CRYPTO_SHA512_WIN)
  43787. /*
  43788. * Initialize a Message digest.
  43789. */
  43790. static int
  43791. win_crypto_init(Digest_CTX *ctx, ALG_ID algId)
  43792. {
  43793. ctx->valid = 0;
  43794. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  43795. PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
  43796. if (GetLastError() != (DWORD)NTE_BAD_KEYSET)
  43797. return (ARCHIVE_FAILED);
  43798. if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL,
  43799. PROV_RSA_FULL, CRYPT_NEWKEYSET))
  43800. return (ARCHIVE_FAILED);
  43801. }
  43802. if (!CryptCreateHash(ctx->cryptProv, algId, 0, 0, &ctx->hash)) {
  43803. CryptReleaseContext(ctx->cryptProv, 0);
  43804. return (ARCHIVE_FAILED);
  43805. }
  43806. ctx->valid = 1;
  43807. return (ARCHIVE_OK);
  43808. }
  43809. /*
  43810. * Update a Message digest.
  43811. */
  43812. static int
  43813. win_crypto_Update(Digest_CTX *ctx, const unsigned char *buf, size_t len)
  43814. {
  43815. if (!ctx->valid)
  43816. return (ARCHIVE_FAILED);
  43817. CryptHashData(ctx->hash,
  43818. (unsigned char *)(uintptr_t)buf,
  43819. (DWORD)len, 0);
  43820. return (ARCHIVE_OK);
  43821. }
  43822. static int
  43823. win_crypto_Final(unsigned char *buf, size_t bufsize, Digest_CTX *ctx)
  43824. {
  43825. DWORD siglen = (DWORD)bufsize;
  43826. if (!ctx->valid)
  43827. return (ARCHIVE_FAILED);
  43828. CryptGetHashParam(ctx->hash, HP_HASHVAL, buf, &siglen, 0);
  43829. CryptDestroyHash(ctx->hash);
  43830. CryptReleaseContext(ctx->cryptProv, 0);
  43831. ctx->valid = 0;
  43832. return (ARCHIVE_OK);
  43833. }
  43834. #endif /* defined(ARCHIVE_CRYPTO_*_WIN) */
  43835. /* MD5 implementations */
  43836. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  43837. static int
  43838. __archive_libc_md5init(archive_md5_ctx *ctx)
  43839. {
  43840. MD5Init(ctx);
  43841. return (ARCHIVE_OK);
  43842. }
  43843. static int
  43844. __archive_libc_md5update(archive_md5_ctx *ctx, const void *indata,
  43845. size_t insize)
  43846. {
  43847. MD5Update(ctx, indata, insize);
  43848. return (ARCHIVE_OK);
  43849. }
  43850. static int
  43851. __archive_libc_md5final(archive_md5_ctx *ctx, void *md)
  43852. {
  43853. MD5Final(md, ctx);
  43854. return (ARCHIVE_OK);
  43855. }
  43856. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  43857. static int
  43858. __archive_libmd_md5init(archive_md5_ctx *ctx)
  43859. {
  43860. MD5Init(ctx);
  43861. return (ARCHIVE_OK);
  43862. }
  43863. static int
  43864. __archive_libmd_md5update(archive_md5_ctx *ctx, const void *indata,
  43865. size_t insize)
  43866. {
  43867. MD5Update(ctx, indata, insize);
  43868. return (ARCHIVE_OK);
  43869. }
  43870. static int
  43871. __archive_libmd_md5final(archive_md5_ctx *ctx, void *md)
  43872. {
  43873. MD5Final(md, ctx);
  43874. return (ARCHIVE_OK);
  43875. }
  43876. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  43877. static int
  43878. __archive_libsystem_md5init(archive_md5_ctx *ctx)
  43879. {
  43880. CC_MD5_Init(ctx);
  43881. return (ARCHIVE_OK);
  43882. }
  43883. static int
  43884. __archive_libsystem_md5update(archive_md5_ctx *ctx, const void *indata,
  43885. size_t insize)
  43886. {
  43887. CC_MD5_Update(ctx, indata, insize);
  43888. return (ARCHIVE_OK);
  43889. }
  43890. static int
  43891. __archive_libsystem_md5final(archive_md5_ctx *ctx, void *md)
  43892. {
  43893. CC_MD5_Final(md, ctx);
  43894. return (ARCHIVE_OK);
  43895. }
  43896. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  43897. static int
  43898. __archive_nettle_md5init(archive_md5_ctx *ctx)
  43899. {
  43900. md5_init(ctx);
  43901. return (ARCHIVE_OK);
  43902. }
  43903. static int
  43904. __archive_nettle_md5update(archive_md5_ctx *ctx, const void *indata,
  43905. size_t insize)
  43906. {
  43907. md5_update(ctx, insize, indata);
  43908. return (ARCHIVE_OK);
  43909. }
  43910. static int
  43911. __archive_nettle_md5final(archive_md5_ctx *ctx, void *md)
  43912. {
  43913. md5_digest(ctx, MD5_DIGEST_SIZE, md);
  43914. return (ARCHIVE_OK);
  43915. }
  43916. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  43917. static int
  43918. __archive_openssl_md5init(archive_md5_ctx *ctx)
  43919. {
  43920. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  43921. return (ARCHIVE_FAILED);
  43922. EVP_DigestInit(*ctx, EVP_md5());
  43923. return (ARCHIVE_OK);
  43924. }
  43925. static int
  43926. __archive_openssl_md5update(archive_md5_ctx *ctx, const void *indata,
  43927. size_t insize)
  43928. {
  43929. EVP_DigestUpdate(*ctx, indata, insize);
  43930. return (ARCHIVE_OK);
  43931. }
  43932. static int
  43933. __archive_openssl_md5final(archive_md5_ctx *ctx, void *md)
  43934. {
  43935. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  43936. * this is meant to cope with that. Real fix is probably to fix
  43937. * archive_write_set_format_xar.c
  43938. */
  43939. if (*ctx) {
  43940. EVP_DigestFinal(*ctx, md, NULL);
  43941. EVP_MD_CTX_free(*ctx);
  43942. *ctx = NULL;
  43943. }
  43944. return (ARCHIVE_OK);
  43945. }
  43946. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  43947. static int
  43948. __archive_windowsapi_md5init(archive_md5_ctx *ctx)
  43949. {
  43950. return (win_crypto_init(ctx, CALG_MD5));
  43951. }
  43952. static int
  43953. __archive_windowsapi_md5update(archive_md5_ctx *ctx, const void *indata,
  43954. size_t insize)
  43955. {
  43956. return (win_crypto_Update(ctx, indata, insize));
  43957. }
  43958. static int
  43959. __archive_windowsapi_md5final(archive_md5_ctx *ctx, void *md)
  43960. {
  43961. return (win_crypto_Final(md, 16, ctx));
  43962. }
  43963. #else
  43964. static int
  43965. __archive_stub_md5init(archive_md5_ctx *ctx)
  43966. {
  43967. (void)ctx; /* UNUSED */
  43968. return (ARCHIVE_FAILED);
  43969. }
  43970. static int
  43971. __archive_stub_md5update(archive_md5_ctx *ctx, const void *indata,
  43972. size_t insize)
  43973. {
  43974. (void)ctx; /* UNUSED */
  43975. (void)indata; /* UNUSED */
  43976. (void)insize; /* UNUSED */
  43977. return (ARCHIVE_FAILED);
  43978. }
  43979. static int
  43980. __archive_stub_md5final(archive_md5_ctx *ctx, void *md)
  43981. {
  43982. (void)ctx; /* UNUSED */
  43983. (void)md; /* UNUSED */
  43984. return (ARCHIVE_FAILED);
  43985. }
  43986. #endif
  43987. /* RIPEMD160 implementations */
  43988. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  43989. static int
  43990. __archive_libc_ripemd160init(archive_rmd160_ctx *ctx)
  43991. {
  43992. RMD160Init(ctx);
  43993. return (ARCHIVE_OK);
  43994. }
  43995. static int
  43996. __archive_libc_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  43997. size_t insize)
  43998. {
  43999. RMD160Update(ctx, indata, insize);
  44000. return (ARCHIVE_OK);
  44001. }
  44002. static int
  44003. __archive_libc_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  44004. {
  44005. RMD160Final(md, ctx);
  44006. return (ARCHIVE_OK);
  44007. }
  44008. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  44009. static int
  44010. __archive_libmd_ripemd160init(archive_rmd160_ctx *ctx)
  44011. {
  44012. RIPEMD160_Init(ctx);
  44013. return (ARCHIVE_OK);
  44014. }
  44015. static int
  44016. __archive_libmd_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  44017. size_t insize)
  44018. {
  44019. RIPEMD160_Update(ctx, indata, insize);
  44020. return (ARCHIVE_OK);
  44021. }
  44022. static int
  44023. __archive_libmd_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  44024. {
  44025. RIPEMD160_Final(md, ctx);
  44026. return (ARCHIVE_OK);
  44027. }
  44028. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  44029. static int
  44030. __archive_nettle_ripemd160init(archive_rmd160_ctx *ctx)
  44031. {
  44032. ripemd160_init(ctx);
  44033. return (ARCHIVE_OK);
  44034. }
  44035. static int
  44036. __archive_nettle_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  44037. size_t insize)
  44038. {
  44039. ripemd160_update(ctx, insize, indata);
  44040. return (ARCHIVE_OK);
  44041. }
  44042. static int
  44043. __archive_nettle_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  44044. {
  44045. ripemd160_digest(ctx, RIPEMD160_DIGEST_SIZE, md);
  44046. return (ARCHIVE_OK);
  44047. }
  44048. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  44049. static int
  44050. __archive_openssl_ripemd160init(archive_rmd160_ctx *ctx)
  44051. {
  44052. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  44053. return (ARCHIVE_FAILED);
  44054. EVP_DigestInit(*ctx, EVP_ripemd160());
  44055. return (ARCHIVE_OK);
  44056. }
  44057. static int
  44058. __archive_openssl_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  44059. size_t insize)
  44060. {
  44061. EVP_DigestUpdate(*ctx, indata, insize);
  44062. return (ARCHIVE_OK);
  44063. }
  44064. static int
  44065. __archive_openssl_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  44066. {
  44067. if (*ctx) {
  44068. EVP_DigestFinal(*ctx, md, NULL);
  44069. EVP_MD_CTX_free(*ctx);
  44070. *ctx = NULL;
  44071. }
  44072. return (ARCHIVE_OK);
  44073. }
  44074. #else
  44075. static int
  44076. __archive_stub_ripemd160init(archive_rmd160_ctx *ctx)
  44077. {
  44078. (void)ctx; /* UNUSED */
  44079. return (ARCHIVE_FAILED);
  44080. }
  44081. static int
  44082. __archive_stub_ripemd160update(archive_rmd160_ctx *ctx, const void *indata,
  44083. size_t insize)
  44084. {
  44085. (void)ctx; /* UNUSED */
  44086. (void)indata; /* UNUSED */
  44087. (void)insize; /* UNUSED */
  44088. return (ARCHIVE_FAILED);
  44089. }
  44090. static int
  44091. __archive_stub_ripemd160final(archive_rmd160_ctx *ctx, void *md)
  44092. {
  44093. (void)ctx; /* UNUSED */
  44094. (void)md; /* UNUSED */
  44095. return (ARCHIVE_FAILED);
  44096. }
  44097. #endif
  44098. /* SHA1 implementations */
  44099. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  44100. static int
  44101. __archive_libc_sha1init(archive_sha1_ctx *ctx)
  44102. {
  44103. SHA1Init(ctx);
  44104. return (ARCHIVE_OK);
  44105. }
  44106. static int
  44107. __archive_libc_sha1update(archive_sha1_ctx *ctx, const void *indata,
  44108. size_t insize)
  44109. {
  44110. SHA1Update(ctx, indata, insize);
  44111. return (ARCHIVE_OK);
  44112. }
  44113. static int
  44114. __archive_libc_sha1final(archive_sha1_ctx *ctx, void *md)
  44115. {
  44116. SHA1Final(md, ctx);
  44117. return (ARCHIVE_OK);
  44118. }
  44119. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  44120. static int
  44121. __archive_libmd_sha1init(archive_sha1_ctx *ctx)
  44122. {
  44123. SHA1_Init(ctx);
  44124. return (ARCHIVE_OK);
  44125. }
  44126. static int
  44127. __archive_libmd_sha1update(archive_sha1_ctx *ctx, const void *indata,
  44128. size_t insize)
  44129. {
  44130. SHA1_Update(ctx, indata, insize);
  44131. return (ARCHIVE_OK);
  44132. }
  44133. static int
  44134. __archive_libmd_sha1final(archive_sha1_ctx *ctx, void *md)
  44135. {
  44136. SHA1_Final(md, ctx);
  44137. return (ARCHIVE_OK);
  44138. }
  44139. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  44140. static int
  44141. __archive_libsystem_sha1init(archive_sha1_ctx *ctx)
  44142. {
  44143. CC_SHA1_Init(ctx);
  44144. return (ARCHIVE_OK);
  44145. }
  44146. static int
  44147. __archive_libsystem_sha1update(archive_sha1_ctx *ctx, const void *indata,
  44148. size_t insize)
  44149. {
  44150. CC_SHA1_Update(ctx, indata, insize);
  44151. return (ARCHIVE_OK);
  44152. }
  44153. static int
  44154. __archive_libsystem_sha1final(archive_sha1_ctx *ctx, void *md)
  44155. {
  44156. CC_SHA1_Final(md, ctx);
  44157. return (ARCHIVE_OK);
  44158. }
  44159. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  44160. static int
  44161. __archive_nettle_sha1init(archive_sha1_ctx *ctx)
  44162. {
  44163. sha1_init(ctx);
  44164. return (ARCHIVE_OK);
  44165. }
  44166. static int
  44167. __archive_nettle_sha1update(archive_sha1_ctx *ctx, const void *indata,
  44168. size_t insize)
  44169. {
  44170. sha1_update(ctx, insize, indata);
  44171. return (ARCHIVE_OK);
  44172. }
  44173. static int
  44174. __archive_nettle_sha1final(archive_sha1_ctx *ctx, void *md)
  44175. {
  44176. sha1_digest(ctx, SHA1_DIGEST_SIZE, md);
  44177. return (ARCHIVE_OK);
  44178. }
  44179. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  44180. static int
  44181. __archive_openssl_sha1init(archive_sha1_ctx *ctx)
  44182. {
  44183. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  44184. return (ARCHIVE_FAILED);
  44185. EVP_DigestInit(*ctx, EVP_sha1());
  44186. return (ARCHIVE_OK);
  44187. }
  44188. static int
  44189. __archive_openssl_sha1update(archive_sha1_ctx *ctx, const void *indata,
  44190. size_t insize)
  44191. {
  44192. EVP_DigestUpdate(*ctx, indata, insize);
  44193. return (ARCHIVE_OK);
  44194. }
  44195. static int
  44196. __archive_openssl_sha1final(archive_sha1_ctx *ctx, void *md)
  44197. {
  44198. /* HACK: archive_write_set_format_xar.c is finalizing empty contexts, so
  44199. * this is meant to cope with that. Real fix is probably to fix
  44200. * archive_write_set_format_xar.c
  44201. */
  44202. if (*ctx) {
  44203. EVP_DigestFinal(*ctx, md, NULL);
  44204. EVP_MD_CTX_free(*ctx);
  44205. *ctx = NULL;
  44206. }
  44207. return (ARCHIVE_OK);
  44208. }
  44209. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  44210. static int
  44211. __archive_windowsapi_sha1init(archive_sha1_ctx *ctx)
  44212. {
  44213. return (win_crypto_init(ctx, CALG_SHA1));
  44214. }
  44215. static int
  44216. __archive_windowsapi_sha1update(archive_sha1_ctx *ctx, const void *indata,
  44217. size_t insize)
  44218. {
  44219. return (win_crypto_Update(ctx, indata, insize));
  44220. }
  44221. static int
  44222. __archive_windowsapi_sha1final(archive_sha1_ctx *ctx, void *md)
  44223. {
  44224. return (win_crypto_Final(md, 20, ctx));
  44225. }
  44226. #else
  44227. static int
  44228. __archive_stub_sha1init(archive_sha1_ctx *ctx)
  44229. {
  44230. (void)ctx; /* UNUSED */
  44231. return (ARCHIVE_FAILED);
  44232. }
  44233. static int
  44234. __archive_stub_sha1update(archive_sha1_ctx *ctx, const void *indata,
  44235. size_t insize)
  44236. {
  44237. (void)ctx; /* UNUSED */
  44238. (void)indata; /* UNUSED */
  44239. (void)insize; /* UNUSED */
  44240. return (ARCHIVE_FAILED);
  44241. }
  44242. static int
  44243. __archive_stub_sha1final(archive_sha1_ctx *ctx, void *md)
  44244. {
  44245. (void)ctx; /* UNUSED */
  44246. (void)md; /* UNUSED */
  44247. return (ARCHIVE_FAILED);
  44248. }
  44249. #endif
  44250. /* SHA256 implementations */
  44251. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  44252. static int
  44253. __archive_libc_sha256init(archive_sha256_ctx *ctx)
  44254. {
  44255. SHA256_Init(ctx);
  44256. return (ARCHIVE_OK);
  44257. }
  44258. static int
  44259. __archive_libc_sha256update(archive_sha256_ctx *ctx, const void *indata,
  44260. size_t insize)
  44261. {
  44262. SHA256_Update(ctx, indata, insize);
  44263. return (ARCHIVE_OK);
  44264. }
  44265. static int
  44266. __archive_libc_sha256final(archive_sha256_ctx *ctx, void *md)
  44267. {
  44268. SHA256_Final(md, ctx);
  44269. return (ARCHIVE_OK);
  44270. }
  44271. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  44272. static int
  44273. __archive_libc2_sha256init(archive_sha256_ctx *ctx)
  44274. {
  44275. SHA256Init(ctx);
  44276. return (ARCHIVE_OK);
  44277. }
  44278. static int
  44279. __archive_libc2_sha256update(archive_sha256_ctx *ctx, const void *indata,
  44280. size_t insize)
  44281. {
  44282. SHA256Update(ctx, indata, insize);
  44283. return (ARCHIVE_OK);
  44284. }
  44285. static int
  44286. __archive_libc2_sha256final(archive_sha256_ctx *ctx, void *md)
  44287. {
  44288. SHA256Final(md, ctx);
  44289. return (ARCHIVE_OK);
  44290. }
  44291. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  44292. static int
  44293. __archive_libc3_sha256init(archive_sha256_ctx *ctx)
  44294. {
  44295. SHA256Init(ctx);
  44296. return (ARCHIVE_OK);
  44297. }
  44298. static int
  44299. __archive_libc3_sha256update(archive_sha256_ctx *ctx, const void *indata,
  44300. size_t insize)
  44301. {
  44302. SHA256Update(ctx, indata, insize);
  44303. return (ARCHIVE_OK);
  44304. }
  44305. static int
  44306. __archive_libc3_sha256final(archive_sha256_ctx *ctx, void *md)
  44307. {
  44308. SHA256Final(md, ctx);
  44309. return (ARCHIVE_OK);
  44310. }
  44311. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  44312. static int
  44313. __archive_libmd_sha256init(archive_sha256_ctx *ctx)
  44314. {
  44315. SHA256_Init(ctx);
  44316. return (ARCHIVE_OK);
  44317. }
  44318. static int
  44319. __archive_libmd_sha256update(archive_sha256_ctx *ctx, const void *indata,
  44320. size_t insize)
  44321. {
  44322. SHA256_Update(ctx, indata, insize);
  44323. return (ARCHIVE_OK);
  44324. }
  44325. static int
  44326. __archive_libmd_sha256final(archive_sha256_ctx *ctx, void *md)
  44327. {
  44328. SHA256_Final(md, ctx);
  44329. return (ARCHIVE_OK);
  44330. }
  44331. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  44332. static int
  44333. __archive_libsystem_sha256init(archive_sha256_ctx *ctx)
  44334. {
  44335. CC_SHA256_Init(ctx);
  44336. return (ARCHIVE_OK);
  44337. }
  44338. static int
  44339. __archive_libsystem_sha256update(archive_sha256_ctx *ctx, const void *indata,
  44340. size_t insize)
  44341. {
  44342. CC_SHA256_Update(ctx, indata, insize);
  44343. return (ARCHIVE_OK);
  44344. }
  44345. static int
  44346. __archive_libsystem_sha256final(archive_sha256_ctx *ctx, void *md)
  44347. {
  44348. CC_SHA256_Final(md, ctx);
  44349. return (ARCHIVE_OK);
  44350. }
  44351. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  44352. static int
  44353. __archive_nettle_sha256init(archive_sha256_ctx *ctx)
  44354. {
  44355. sha256_init(ctx);
  44356. return (ARCHIVE_OK);
  44357. }
  44358. static int
  44359. __archive_nettle_sha256update(archive_sha256_ctx *ctx, const void *indata,
  44360. size_t insize)
  44361. {
  44362. sha256_update(ctx, insize, indata);
  44363. return (ARCHIVE_OK);
  44364. }
  44365. static int
  44366. __archive_nettle_sha256final(archive_sha256_ctx *ctx, void *md)
  44367. {
  44368. sha256_digest(ctx, SHA256_DIGEST_SIZE, md);
  44369. return (ARCHIVE_OK);
  44370. }
  44371. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  44372. static int
  44373. __archive_openssl_sha256init(archive_sha256_ctx *ctx)
  44374. {
  44375. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  44376. return (ARCHIVE_FAILED);
  44377. EVP_DigestInit(*ctx, EVP_sha256());
  44378. return (ARCHIVE_OK);
  44379. }
  44380. static int
  44381. __archive_openssl_sha256update(archive_sha256_ctx *ctx, const void *indata,
  44382. size_t insize)
  44383. {
  44384. EVP_DigestUpdate(*ctx, indata, insize);
  44385. return (ARCHIVE_OK);
  44386. }
  44387. static int
  44388. __archive_openssl_sha256final(archive_sha256_ctx *ctx, void *md)
  44389. {
  44390. if (*ctx) {
  44391. EVP_DigestFinal(*ctx, md, NULL);
  44392. EVP_MD_CTX_free(*ctx);
  44393. *ctx = NULL;
  44394. }
  44395. return (ARCHIVE_OK);
  44396. }
  44397. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  44398. static int
  44399. __archive_windowsapi_sha256init(archive_sha256_ctx *ctx)
  44400. {
  44401. return (win_crypto_init(ctx, CALG_SHA_256));
  44402. }
  44403. static int
  44404. __archive_windowsapi_sha256update(archive_sha256_ctx *ctx, const void *indata,
  44405. size_t insize)
  44406. {
  44407. return (win_crypto_Update(ctx, indata, insize));
  44408. }
  44409. static int
  44410. __archive_windowsapi_sha256final(archive_sha256_ctx *ctx, void *md)
  44411. {
  44412. return (win_crypto_Final(md, 32, ctx));
  44413. }
  44414. #else
  44415. static int
  44416. __archive_stub_sha256init(archive_sha256_ctx *ctx)
  44417. {
  44418. (void)ctx; /* UNUSED */
  44419. return (ARCHIVE_FAILED);
  44420. }
  44421. static int
  44422. __archive_stub_sha256update(archive_sha256_ctx *ctx, const void *indata,
  44423. size_t insize)
  44424. {
  44425. (void)ctx; /* UNUSED */
  44426. (void)indata; /* UNUSED */
  44427. (void)insize; /* UNUSED */
  44428. return (ARCHIVE_FAILED);
  44429. }
  44430. static int
  44431. __archive_stub_sha256final(archive_sha256_ctx *ctx, void *md)
  44432. {
  44433. (void)ctx; /* UNUSED */
  44434. (void)md; /* UNUSED */
  44435. return (ARCHIVE_FAILED);
  44436. }
  44437. #endif
  44438. /* SHA384 implementations */
  44439. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  44440. static int
  44441. __archive_libc_sha384init(archive_sha384_ctx *ctx)
  44442. {
  44443. SHA384_Init(ctx);
  44444. return (ARCHIVE_OK);
  44445. }
  44446. static int
  44447. __archive_libc_sha384update(archive_sha384_ctx *ctx, const void *indata,
  44448. size_t insize)
  44449. {
  44450. SHA384_Update(ctx, indata, insize);
  44451. return (ARCHIVE_OK);
  44452. }
  44453. static int
  44454. __archive_libc_sha384final(archive_sha384_ctx *ctx, void *md)
  44455. {
  44456. SHA384_Final(md, ctx);
  44457. return (ARCHIVE_OK);
  44458. }
  44459. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  44460. static int
  44461. __archive_libc2_sha384init(archive_sha384_ctx *ctx)
  44462. {
  44463. SHA384Init(ctx);
  44464. return (ARCHIVE_OK);
  44465. }
  44466. static int
  44467. __archive_libc2_sha384update(archive_sha384_ctx *ctx, const void *indata,
  44468. size_t insize)
  44469. {
  44470. SHA384Update(ctx, indata, insize);
  44471. return (ARCHIVE_OK);
  44472. }
  44473. static int
  44474. __archive_libc2_sha384final(archive_sha384_ctx *ctx, void *md)
  44475. {
  44476. SHA384Final(md, ctx);
  44477. return (ARCHIVE_OK);
  44478. }
  44479. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  44480. static int
  44481. __archive_libc3_sha384init(archive_sha384_ctx *ctx)
  44482. {
  44483. SHA384Init(ctx);
  44484. return (ARCHIVE_OK);
  44485. }
  44486. static int
  44487. __archive_libc3_sha384update(archive_sha384_ctx *ctx, const void *indata,
  44488. size_t insize)
  44489. {
  44490. SHA384Update(ctx, indata, insize);
  44491. return (ARCHIVE_OK);
  44492. }
  44493. static int
  44494. __archive_libc3_sha384final(archive_sha384_ctx *ctx, void *md)
  44495. {
  44496. SHA384Final(md, ctx);
  44497. return (ARCHIVE_OK);
  44498. }
  44499. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  44500. static int
  44501. __archive_libsystem_sha384init(archive_sha384_ctx *ctx)
  44502. {
  44503. CC_SHA384_Init(ctx);
  44504. return (ARCHIVE_OK);
  44505. }
  44506. static int
  44507. __archive_libsystem_sha384update(archive_sha384_ctx *ctx, const void *indata,
  44508. size_t insize)
  44509. {
  44510. CC_SHA384_Update(ctx, indata, insize);
  44511. return (ARCHIVE_OK);
  44512. }
  44513. static int
  44514. __archive_libsystem_sha384final(archive_sha384_ctx *ctx, void *md)
  44515. {
  44516. CC_SHA384_Final(md, ctx);
  44517. return (ARCHIVE_OK);
  44518. }
  44519. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  44520. static int
  44521. __archive_nettle_sha384init(archive_sha384_ctx *ctx)
  44522. {
  44523. sha384_init(ctx);
  44524. return (ARCHIVE_OK);
  44525. }
  44526. static int
  44527. __archive_nettle_sha384update(archive_sha384_ctx *ctx, const void *indata,
  44528. size_t insize)
  44529. {
  44530. sha384_update(ctx, insize, indata);
  44531. return (ARCHIVE_OK);
  44532. }
  44533. static int
  44534. __archive_nettle_sha384final(archive_sha384_ctx *ctx, void *md)
  44535. {
  44536. sha384_digest(ctx, SHA384_DIGEST_SIZE, md);
  44537. return (ARCHIVE_OK);
  44538. }
  44539. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  44540. static int
  44541. __archive_openssl_sha384init(archive_sha384_ctx *ctx)
  44542. {
  44543. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  44544. return (ARCHIVE_FAILED);
  44545. EVP_DigestInit(*ctx, EVP_sha384());
  44546. return (ARCHIVE_OK);
  44547. }
  44548. static int
  44549. __archive_openssl_sha384update(archive_sha384_ctx *ctx, const void *indata,
  44550. size_t insize)
  44551. {
  44552. EVP_DigestUpdate(*ctx, indata, insize);
  44553. return (ARCHIVE_OK);
  44554. }
  44555. static int
  44556. __archive_openssl_sha384final(archive_sha384_ctx *ctx, void *md)
  44557. {
  44558. if (*ctx) {
  44559. EVP_DigestFinal(*ctx, md, NULL);
  44560. EVP_MD_CTX_free(*ctx);
  44561. *ctx = NULL;
  44562. }
  44563. return (ARCHIVE_OK);
  44564. }
  44565. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  44566. static int
  44567. __archive_windowsapi_sha384init(archive_sha384_ctx *ctx)
  44568. {
  44569. return (win_crypto_init(ctx, CALG_SHA_384));
  44570. }
  44571. static int
  44572. __archive_windowsapi_sha384update(archive_sha384_ctx *ctx, const void *indata,
  44573. size_t insize)
  44574. {
  44575. return (win_crypto_Update(ctx, indata, insize));
  44576. }
  44577. static int
  44578. __archive_windowsapi_sha384final(archive_sha384_ctx *ctx, void *md)
  44579. {
  44580. return (win_crypto_Final(md, 48, ctx));
  44581. }
  44582. #else
  44583. static int
  44584. __archive_stub_sha384init(archive_sha384_ctx *ctx)
  44585. {
  44586. (void)ctx; /* UNUSED */
  44587. return (ARCHIVE_FAILED);
  44588. }
  44589. static int
  44590. __archive_stub_sha384update(archive_sha384_ctx *ctx, const void *indata,
  44591. size_t insize)
  44592. {
  44593. (void)ctx; /* UNUSED */
  44594. (void)indata; /* UNUSED */
  44595. (void)insize; /* UNUSED */
  44596. return (ARCHIVE_FAILED);
  44597. }
  44598. static int
  44599. __archive_stub_sha384final(archive_sha384_ctx *ctx, void *md)
  44600. {
  44601. (void)ctx; /* UNUSED */
  44602. (void)md; /* UNUSED */
  44603. return (ARCHIVE_FAILED);
  44604. }
  44605. #endif
  44606. /* SHA512 implementations */
  44607. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  44608. static int
  44609. __archive_libc_sha512init(archive_sha512_ctx *ctx)
  44610. {
  44611. SHA512_Init(ctx);
  44612. return (ARCHIVE_OK);
  44613. }
  44614. static int
  44615. __archive_libc_sha512update(archive_sha512_ctx *ctx, const void *indata,
  44616. size_t insize)
  44617. {
  44618. SHA512_Update(ctx, indata, insize);
  44619. return (ARCHIVE_OK);
  44620. }
  44621. static int
  44622. __archive_libc_sha512final(archive_sha512_ctx *ctx, void *md)
  44623. {
  44624. SHA512_Final(md, ctx);
  44625. return (ARCHIVE_OK);
  44626. }
  44627. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  44628. static int
  44629. __archive_libc2_sha512init(archive_sha512_ctx *ctx)
  44630. {
  44631. SHA512Init(ctx);
  44632. return (ARCHIVE_OK);
  44633. }
  44634. static int
  44635. __archive_libc2_sha512update(archive_sha512_ctx *ctx, const void *indata,
  44636. size_t insize)
  44637. {
  44638. SHA512Update(ctx, indata, insize);
  44639. return (ARCHIVE_OK);
  44640. }
  44641. static int
  44642. __archive_libc2_sha512final(archive_sha512_ctx *ctx, void *md)
  44643. {
  44644. SHA512Final(md, ctx);
  44645. return (ARCHIVE_OK);
  44646. }
  44647. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  44648. static int
  44649. __archive_libc3_sha512init(archive_sha512_ctx *ctx)
  44650. {
  44651. SHA512Init(ctx);
  44652. return (ARCHIVE_OK);
  44653. }
  44654. static int
  44655. __archive_libc3_sha512update(archive_sha512_ctx *ctx, const void *indata,
  44656. size_t insize)
  44657. {
  44658. SHA512Update(ctx, indata, insize);
  44659. return (ARCHIVE_OK);
  44660. }
  44661. static int
  44662. __archive_libc3_sha512final(archive_sha512_ctx *ctx, void *md)
  44663. {
  44664. SHA512Final(md, ctx);
  44665. return (ARCHIVE_OK);
  44666. }
  44667. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  44668. static int
  44669. __archive_libmd_sha512init(archive_sha512_ctx *ctx)
  44670. {
  44671. SHA512_Init(ctx);
  44672. return (ARCHIVE_OK);
  44673. }
  44674. static int
  44675. __archive_libmd_sha512update(archive_sha512_ctx *ctx, const void *indata,
  44676. size_t insize)
  44677. {
  44678. SHA512_Update(ctx, indata, insize);
  44679. return (ARCHIVE_OK);
  44680. }
  44681. static int
  44682. __archive_libmd_sha512final(archive_sha512_ctx *ctx, void *md)
  44683. {
  44684. SHA512_Final(md, ctx);
  44685. return (ARCHIVE_OK);
  44686. }
  44687. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  44688. static int
  44689. __archive_libsystem_sha512init(archive_sha512_ctx *ctx)
  44690. {
  44691. CC_SHA512_Init(ctx);
  44692. return (ARCHIVE_OK);
  44693. }
  44694. static int
  44695. __archive_libsystem_sha512update(archive_sha512_ctx *ctx, const void *indata,
  44696. size_t insize)
  44697. {
  44698. CC_SHA512_Update(ctx, indata, insize);
  44699. return (ARCHIVE_OK);
  44700. }
  44701. static int
  44702. __archive_libsystem_sha512final(archive_sha512_ctx *ctx, void *md)
  44703. {
  44704. CC_SHA512_Final(md, ctx);
  44705. return (ARCHIVE_OK);
  44706. }
  44707. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  44708. static int
  44709. __archive_nettle_sha512init(archive_sha512_ctx *ctx)
  44710. {
  44711. sha512_init(ctx);
  44712. return (ARCHIVE_OK);
  44713. }
  44714. static int
  44715. __archive_nettle_sha512update(archive_sha512_ctx *ctx, const void *indata,
  44716. size_t insize)
  44717. {
  44718. sha512_update(ctx, insize, indata);
  44719. return (ARCHIVE_OK);
  44720. }
  44721. static int
  44722. __archive_nettle_sha512final(archive_sha512_ctx *ctx, void *md)
  44723. {
  44724. sha512_digest(ctx, SHA512_DIGEST_SIZE, md);
  44725. return (ARCHIVE_OK);
  44726. }
  44727. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  44728. static int
  44729. __archive_openssl_sha512init(archive_sha512_ctx *ctx)
  44730. {
  44731. if ((*ctx = EVP_MD_CTX_new()) == NULL)
  44732. return (ARCHIVE_FAILED);
  44733. EVP_DigestInit(*ctx, EVP_sha512());
  44734. return (ARCHIVE_OK);
  44735. }
  44736. static int
  44737. __archive_openssl_sha512update(archive_sha512_ctx *ctx, const void *indata,
  44738. size_t insize)
  44739. {
  44740. EVP_DigestUpdate(*ctx, indata, insize);
  44741. return (ARCHIVE_OK);
  44742. }
  44743. static int
  44744. __archive_openssl_sha512final(archive_sha512_ctx *ctx, void *md)
  44745. {
  44746. if (*ctx) {
  44747. EVP_DigestFinal(*ctx, md, NULL);
  44748. EVP_MD_CTX_free(*ctx);
  44749. *ctx = NULL;
  44750. }
  44751. return (ARCHIVE_OK);
  44752. }
  44753. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  44754. static int
  44755. __archive_windowsapi_sha512init(archive_sha512_ctx *ctx)
  44756. {
  44757. return (win_crypto_init(ctx, CALG_SHA_512));
  44758. }
  44759. static int
  44760. __archive_windowsapi_sha512update(archive_sha512_ctx *ctx, const void *indata,
  44761. size_t insize)
  44762. {
  44763. return (win_crypto_Update(ctx, indata, insize));
  44764. }
  44765. static int
  44766. __archive_windowsapi_sha512final(archive_sha512_ctx *ctx, void *md)
  44767. {
  44768. return (win_crypto_Final(md, 64, ctx));
  44769. }
  44770. #else
  44771. static int
  44772. __archive_stub_sha512init(archive_sha512_ctx *ctx)
  44773. {
  44774. (void)ctx; /* UNUSED */
  44775. return (ARCHIVE_FAILED);
  44776. }
  44777. static int
  44778. __archive_stub_sha512update(archive_sha512_ctx *ctx, const void *indata,
  44779. size_t insize)
  44780. {
  44781. (void)ctx; /* UNUSED */
  44782. (void)indata; /* UNUSED */
  44783. (void)insize; /* UNUSED */
  44784. return (ARCHIVE_FAILED);
  44785. }
  44786. static int
  44787. __archive_stub_sha512final(archive_sha512_ctx *ctx, void *md)
  44788. {
  44789. (void)ctx; /* UNUSED */
  44790. (void)md; /* UNUSED */
  44791. return (ARCHIVE_FAILED);
  44792. }
  44793. #endif
  44794. /* NOTE: Message Digest functions are set based on availability and by the
  44795. * following order of preference.
  44796. * 1. libc
  44797. * 2. libc2
  44798. * 3. libc3
  44799. * 4. libSystem
  44800. * 5. Nettle
  44801. * 6. OpenSSL
  44802. * 7. libmd
  44803. * 8. Windows API
  44804. */
  44805. const struct archive_digest __archive_digest =
  44806. {
  44807. /* MD5 */
  44808. #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
  44809. &__archive_libc_md5init,
  44810. &__archive_libc_md5update,
  44811. &__archive_libc_md5final,
  44812. #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
  44813. &__archive_libmd_md5init,
  44814. &__archive_libmd_md5update,
  44815. &__archive_libmd_md5final,
  44816. #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
  44817. &__archive_libsystem_md5init,
  44818. &__archive_libsystem_md5update,
  44819. &__archive_libsystem_md5final,
  44820. #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
  44821. &__archive_nettle_md5init,
  44822. &__archive_nettle_md5update,
  44823. &__archive_nettle_md5final,
  44824. #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
  44825. &__archive_openssl_md5init,
  44826. &__archive_openssl_md5update,
  44827. &__archive_openssl_md5final,
  44828. #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
  44829. &__archive_windowsapi_md5init,
  44830. &__archive_windowsapi_md5update,
  44831. &__archive_windowsapi_md5final,
  44832. #elif !defined(ARCHIVE_MD5_COMPILE_TEST)
  44833. &__archive_stub_md5init,
  44834. &__archive_stub_md5update,
  44835. &__archive_stub_md5final,
  44836. #endif
  44837. /* RIPEMD160 */
  44838. #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
  44839. &__archive_libc_ripemd160init,
  44840. &__archive_libc_ripemd160update,
  44841. &__archive_libc_ripemd160final,
  44842. #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
  44843. &__archive_libmd_ripemd160init,
  44844. &__archive_libmd_ripemd160update,
  44845. &__archive_libmd_ripemd160final,
  44846. #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
  44847. &__archive_nettle_ripemd160init,
  44848. &__archive_nettle_ripemd160update,
  44849. &__archive_nettle_ripemd160final,
  44850. #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
  44851. &__archive_openssl_ripemd160init,
  44852. &__archive_openssl_ripemd160update,
  44853. &__archive_openssl_ripemd160final,
  44854. #elif !defined(ARCHIVE_RMD160_COMPILE_TEST)
  44855. &__archive_stub_ripemd160init,
  44856. &__archive_stub_ripemd160update,
  44857. &__archive_stub_ripemd160final,
  44858. #endif
  44859. /* SHA1 */
  44860. #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
  44861. &__archive_libc_sha1init,
  44862. &__archive_libc_sha1update,
  44863. &__archive_libc_sha1final,
  44864. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
  44865. &__archive_libmd_sha1init,
  44866. &__archive_libmd_sha1update,
  44867. &__archive_libmd_sha1final,
  44868. #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
  44869. &__archive_libsystem_sha1init,
  44870. &__archive_libsystem_sha1update,
  44871. &__archive_libsystem_sha1final,
  44872. #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
  44873. &__archive_nettle_sha1init,
  44874. &__archive_nettle_sha1update,
  44875. &__archive_nettle_sha1final,
  44876. #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
  44877. &__archive_openssl_sha1init,
  44878. &__archive_openssl_sha1update,
  44879. &__archive_openssl_sha1final,
  44880. #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
  44881. &__archive_windowsapi_sha1init,
  44882. &__archive_windowsapi_sha1update,
  44883. &__archive_windowsapi_sha1final,
  44884. #elif !defined(ARCHIVE_SHA1_COMPILE_TEST)
  44885. &__archive_stub_sha1init,
  44886. &__archive_stub_sha1update,
  44887. &__archive_stub_sha1final,
  44888. #endif
  44889. /* SHA256 */
  44890. #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
  44891. &__archive_libc_sha256init,
  44892. &__archive_libc_sha256update,
  44893. &__archive_libc_sha256final,
  44894. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
  44895. &__archive_libc2_sha256init,
  44896. &__archive_libc2_sha256update,
  44897. &__archive_libc2_sha256final,
  44898. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
  44899. &__archive_libc3_sha256init,
  44900. &__archive_libc3_sha256update,
  44901. &__archive_libc3_sha256final,
  44902. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
  44903. &__archive_libmd_sha256init,
  44904. &__archive_libmd_sha256update,
  44905. &__archive_libmd_sha256final,
  44906. #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
  44907. &__archive_libsystem_sha256init,
  44908. &__archive_libsystem_sha256update,
  44909. &__archive_libsystem_sha256final,
  44910. #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
  44911. &__archive_nettle_sha256init,
  44912. &__archive_nettle_sha256update,
  44913. &__archive_nettle_sha256final,
  44914. #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
  44915. &__archive_openssl_sha256init,
  44916. &__archive_openssl_sha256update,
  44917. &__archive_openssl_sha256final,
  44918. #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
  44919. &__archive_windowsapi_sha256init,
  44920. &__archive_windowsapi_sha256update,
  44921. &__archive_windowsapi_sha256final,
  44922. #elif !defined(ARCHIVE_SHA256_COMPILE_TEST)
  44923. &__archive_stub_sha256init,
  44924. &__archive_stub_sha256update,
  44925. &__archive_stub_sha256final,
  44926. #endif
  44927. /* SHA384 */
  44928. #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
  44929. &__archive_libc_sha384init,
  44930. &__archive_libc_sha384update,
  44931. &__archive_libc_sha384final,
  44932. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
  44933. &__archive_libc2_sha384init,
  44934. &__archive_libc2_sha384update,
  44935. &__archive_libc2_sha384final,
  44936. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
  44937. &__archive_libc3_sha384init,
  44938. &__archive_libc3_sha384update,
  44939. &__archive_libc3_sha384final,
  44940. #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
  44941. &__archive_libsystem_sha384init,
  44942. &__archive_libsystem_sha384update,
  44943. &__archive_libsystem_sha384final,
  44944. #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
  44945. &__archive_nettle_sha384init,
  44946. &__archive_nettle_sha384update,
  44947. &__archive_nettle_sha384final,
  44948. #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
  44949. &__archive_openssl_sha384init,
  44950. &__archive_openssl_sha384update,
  44951. &__archive_openssl_sha384final,
  44952. #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
  44953. &__archive_windowsapi_sha384init,
  44954. &__archive_windowsapi_sha384update,
  44955. &__archive_windowsapi_sha384final,
  44956. #elif !defined(ARCHIVE_SHA384_COMPILE_TEST)
  44957. &__archive_stub_sha384init,
  44958. &__archive_stub_sha384update,
  44959. &__archive_stub_sha384final,
  44960. #endif
  44961. /* SHA512 */
  44962. #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
  44963. &__archive_libc_sha512init,
  44964. &__archive_libc_sha512update,
  44965. &__archive_libc_sha512final
  44966. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
  44967. &__archive_libc2_sha512init,
  44968. &__archive_libc2_sha512update,
  44969. &__archive_libc2_sha512final
  44970. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
  44971. &__archive_libc3_sha512init,
  44972. &__archive_libc3_sha512update,
  44973. &__archive_libc3_sha512final
  44974. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
  44975. &__archive_libmd_sha512init,
  44976. &__archive_libmd_sha512update,
  44977. &__archive_libmd_sha512final
  44978. #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
  44979. &__archive_libsystem_sha512init,
  44980. &__archive_libsystem_sha512update,
  44981. &__archive_libsystem_sha512final
  44982. #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
  44983. &__archive_nettle_sha512init,
  44984. &__archive_nettle_sha512update,
  44985. &__archive_nettle_sha512final
  44986. #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
  44987. &__archive_openssl_sha512init,
  44988. &__archive_openssl_sha512update,
  44989. &__archive_openssl_sha512final
  44990. #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
  44991. &__archive_windowsapi_sha512init,
  44992. &__archive_windowsapi_sha512update,
  44993. &__archive_windowsapi_sha512final
  44994. #elif !defined(ARCHIVE_SHA512_COMPILE_TEST)
  44995. &__archive_stub_sha512init,
  44996. &__archive_stub_sha512update,
  44997. &__archive_stub_sha512final
  44998. #endif
  44999. };
  45000. int
  45001. main(int argc, char **argv)
  45002. {
  45003. archive_sha512_ctx ctx;
  45004. archive_sha512_init(&ctx);
  45005. archive_sha512_update(&ctx, *argv, argc);
  45006. archive_sha512_final(&ctx, NULL);
  45007. return 0;
  45008. }
  45009. Determining if the function wsyncup exists in the /usr/lib/x86_64-linux-gnu/libcurses.so passed with the following output:
  45010. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  45011. Run Build Command:"/usr/bin/make" "cmTC_1c5e3/fast"
  45012. make -f CMakeFiles/cmTC_1c5e3.dir/build.make CMakeFiles/cmTC_1c5e3.dir/build
  45013. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  45014. Building C object CMakeFiles/cmTC_1c5e3.dir/CheckFunctionExists.c.o
  45015. /usr/bin/gcc -DCHECK_FUNCTION_EXISTS=wsyncup -o CMakeFiles/cmTC_1c5e3.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  45016. Linking C executable cmTC_1c5e3
  45017. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_1c5e3.dir/link.txt --verbose=1
  45018. /usr/bin/gcc -DCHECK_FUNCTION_EXISTS=wsyncup -rdynamic CMakeFiles/cmTC_1c5e3.dir/CheckFunctionExists.c.o -o cmTC_1c5e3 -lcurses
  45019. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  45020. Determining if the function cbreak exists in the /usr/lib/x86_64-linux-gnu/libncurses.so passed with the following output:
  45021. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  45022. Run Build Command:"/usr/bin/make" "cmTC_edf63/fast"
  45023. make -f CMakeFiles/cmTC_edf63.dir/build.make CMakeFiles/cmTC_edf63.dir/build
  45024. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  45025. Building C object CMakeFiles/cmTC_edf63.dir/CheckFunctionExists.c.o
  45026. /usr/bin/gcc -DCHECK_FUNCTION_EXISTS=cbreak -o CMakeFiles/cmTC_edf63.dir/CheckFunctionExists.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Modules/CheckFunctionExists.c
  45027. Linking C executable cmTC_edf63
  45028. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_edf63.dir/link.txt --verbose=1
  45029. /usr/bin/gcc -DCHECK_FUNCTION_EXISTS=cbreak -rdynamic CMakeFiles/cmTC_edf63.dir/CheckFunctionExists.c.o -o cmTC_edf63 -lncurses
  45030. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  45031. Determining if the include file elf.h exists passed with the following output:
  45032. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  45033. Run Build Command:"/usr/bin/make" "cmTC_e2cfa/fast"
  45034. make -f CMakeFiles/cmTC_e2cfa.dir/build.make CMakeFiles/cmTC_e2cfa.dir/build
  45035. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  45036. Building C object CMakeFiles/cmTC_e2cfa.dir/CheckIncludeFile.c.o
  45037. /usr/bin/gcc -o CMakeFiles/cmTC_e2cfa.dir/CheckIncludeFile.c.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/CheckIncludeFile.c
  45038. Linking C executable cmTC_e2cfa
  45039. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_e2cfa.dir/link.txt --verbose=1
  45040. /usr/bin/gcc -rdynamic CMakeFiles/cmTC_e2cfa.dir/CheckIncludeFile.c.o -o cmTC_e2cfa
  45041. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  45042. Performing C++ SOURCE FILE Test run_pic_test succeeded with the following output:
  45043. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  45044. Run Build Command:"/usr/bin/make" "cmTC_210bd/fast"
  45045. make -f CMakeFiles/cmTC_210bd.dir/build.make CMakeFiles/cmTC_210bd.dir/build
  45046. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  45047. Building CXX object CMakeFiles/cmTC_210bd.dir/src.cxx.o
  45048. /usr/bin/g++ -Drun_pic_test -fPIE -o CMakeFiles/cmTC_210bd.dir/src.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.cxx
  45049. Linking CXX executable cmTC_210bd
  45050. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_210bd.dir/link.txt --verbose=1
  45051. /usr/bin/g++ -Drun_pic_test -rdynamic CMakeFiles/cmTC_210bd.dir/src.cxx.o -o cmTC_210bd
  45052. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  45053. Source file was:
  45054. int main() { return 0; }
  45055. Performing C++ SOURCE FILE Test run_inlines_hidden_test succeeded with the following output:
  45056. Change Dir: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp
  45057. Run Build Command:"/usr/bin/make" "cmTC_3d7d3/fast"
  45058. make -f CMakeFiles/cmTC_3d7d3.dir/build.make CMakeFiles/cmTC_3d7d3.dir/build
  45059. make[1]: Entering directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  45060. Building CXX object CMakeFiles/cmTC_3d7d3.dir/src.cxx.o
  45061. /usr/bin/g++ -Drun_inlines_hidden_test -fvisibility-inlines-hidden -o CMakeFiles/cmTC_3d7d3.dir/src.cxx.o -c /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp/src.cxx
  45062. Linking CXX executable cmTC_3d7d3
  45063. /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/Bootstrap.cmk/cmake -E cmake_link_script CMakeFiles/cmTC_3d7d3.dir/link.txt --verbose=1
  45064. /usr/bin/g++ -Drun_inlines_hidden_test -rdynamic CMakeFiles/cmTC_3d7d3.dir/src.cxx.o -o cmTC_3d7d3
  45065. make[1]: Leaving directory '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Tool/cmake-3.11.0/CMakeFiles/CMakeTmp'
  45066. Source file was:
  45067. int main() { return 0; }