changes.txt 733 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949
  1. OpenSSL CHANGES
  2. ===============
  3. This is a high-level summary of the most important changes.
  4. For a full list of changes, see the [git commit log][log] and
  5. pick the appropriate release branch.
  6. [log]: https://github.com/openssl/openssl/commits/
  7. OpenSSL Releases
  8. ----------------
  9. - [OpenSSL 3.1](#openssl-31)
  10. - [OpenSSL 3.0](#openssl-30)
  11. - [OpenSSL 1.1.1](#openssl-111)
  12. - [OpenSSL 1.1.0](#openssl-110)
  13. - [OpenSSL 1.0.2](#openssl-102)
  14. - [OpenSSL 1.0.1](#openssl-101)
  15. - [OpenSSL 1.0.0](#openssl-100)
  16. - [OpenSSL 0.9.x](#openssl-09x)
  17. OpenSSL 3.1
  18. -----------
  19. ### Changes between 3.1.0 and 3.1.1 [30 May 2023]
  20. * Mitigate for the time it takes for `OBJ_obj2txt` to translate gigantic
  21. OBJECT IDENTIFIER sub-identifiers to canonical numeric text form.
  22. OBJ_obj2txt() would translate any size OBJECT IDENTIFIER to canonical
  23. numeric text form. For gigantic sub-identifiers, this would take a very
  24. long time, the time complexity being O(n^2) where n is the size of that
  25. sub-identifier. ([CVE-2023-2650])
  26. To mitigitate this, `OBJ_obj2txt()` will only translate an OBJECT
  27. IDENTIFIER to canonical numeric text form if the size of that OBJECT
  28. IDENTIFIER is 586 bytes or less, and fail otherwise.
  29. The basis for this restriction is RFC 2578 (STD 58), section 3.5. OBJECT
  30. IDENTIFIER values, which stipulates that OBJECT IDENTIFIERS may have at
  31. most 128 sub-identifiers, and that the maximum value that each sub-
  32. identifier may have is 2^32-1 (4294967295 decimal).
  33. For each byte of every sub-identifier, only the 7 lower bits are part of
  34. the value, so the maximum amount of bytes that an OBJECT IDENTIFIER with
  35. these restrictions may occupy is 32 * 128 / 7, which is approximately 586
  36. bytes.
  37. Ref: https://datatracker.ietf.org/doc/html/rfc2578#section-3.5
  38. *Richard Levitte*
  39. * Multiple algorithm implementation fixes for ARM BE platforms.
  40. *Liu-ErMeng*
  41. * Added a -pedantic option to fipsinstall that adjusts the various
  42. settings to ensure strict FIPS compliance rather than backwards
  43. compatibility.
  44. *Paul Dale*
  45. * Fixed buffer overread in AES-XTS decryption on ARM 64 bit platforms which
  46. happens if the buffer size is 4 mod 5 in 16 byte AES blocks. This can
  47. trigger a crash of an application using AES-XTS decryption if the memory
  48. just after the buffer being decrypted is not mapped.
  49. Thanks to Anton Romanov (Amazon) for discovering the issue.
  50. ([CVE-2023-1255])
  51. *Nevine Ebeid*
  52. * Reworked the Fix for the Timing Oracle in RSA Decryption ([CVE-2022-4304]).
  53. The previous fix for this timing side channel turned out to cause
  54. a severe 2-3x performance regression in the typical use case
  55. compared to 3.0.7. The new fix uses existing constant time
  56. code paths, and restores the previous performance level while
  57. fully eliminating all existing timing side channels.
  58. The fix was developed by Bernd Edlinger with testing support
  59. by Hubert Kario.
  60. *Bernd Edlinger*
  61. * Add FIPS provider configuration option to disallow the use of
  62. truncated digests with Hash and HMAC DRBGs (q.v. FIPS 140-3 IG D.R.).
  63. The option '-no_drbg_truncated_digests' can optionally be
  64. supplied to 'openssl fipsinstall'.
  65. *Paul Dale*
  66. * Corrected documentation of X509_VERIFY_PARAM_add0_policy() to mention
  67. that it does not enable policy checking. Thanks to David Benjamin for
  68. discovering this issue.
  69. ([CVE-2023-0466])
  70. *Tomáš Mráz*
  71. * Fixed an issue where invalid certificate policies in leaf certificates are
  72. silently ignored by OpenSSL and other certificate policy checks are skipped
  73. for that certificate. A malicious CA could use this to deliberately assert
  74. invalid certificate policies in order to circumvent policy checking on the
  75. certificate altogether.
  76. ([CVE-2023-0465])
  77. *Matt Caswell*
  78. * Limited the number of nodes created in a policy tree to mitigate
  79. against CVE-2023-0464. The default limit is set to 1000 nodes, which
  80. should be sufficient for most installations. If required, the limit
  81. can be adjusted by setting the OPENSSL_POLICY_TREE_NODES_MAX build
  82. time define to a desired maximum number of nodes or zero to allow
  83. unlimited growth.
  84. ([CVE-2023-0464])
  85. *Paul Dale*
  86. ### Changes between 3.0 and 3.1.0 [14 Mar 2023]
  87. * Add FIPS provider configuration option to enforce the
  88. Extended Master Secret (EMS) check during the TLS1_PRF KDF.
  89. The option '-ems-check' can optionally be supplied to
  90. 'openssl fipsinstall'.
  91. *Shane Lontis*
  92. * The FIPS provider includes a few non-approved algorithms for
  93. backward compatibility purposes and the "fips=yes" property query
  94. must be used for all algorithm fetches to ensure FIPS compliance.
  95. The algorithms that are included but not approved are Triple DES ECB,
  96. Triple DES CBC and EdDSA.
  97. *Paul Dale*
  98. * Added support for KMAC in KBKDF.
  99. *Shane Lontis*
  100. * RNDR and RNDRRS support in provider functions to provide
  101. random number generation for Arm CPUs (aarch64).
  102. *Orr Toledano*
  103. * s_client and s_server apps now explicitly say when the TLS version
  104. does not include the renegotiation mechanism. This avoids confusion
  105. between that scenario versus when the TLS version includes secure
  106. renegotiation but the peer lacks support for it.
  107. *Felipe Gasper*
  108. * AES-GCM enabled with AVX512 vAES and vPCLMULQDQ.
  109. *Tomasz Kantecki, Andrey Matyukov*
  110. * The various OBJ_* functions have been made thread safe.
  111. *Paul Dale*
  112. * Parallel dual-prime 1536/2048-bit modular exponentiation for
  113. AVX512_IFMA capable processors.
  114. *Sergey Kirillov, Andrey Matyukov (Intel Corp)*
  115. * The functions `OPENSSL_LH_stats`, `OPENSSL_LH_node_stats`,
  116. `OPENSSL_LH_node_usage_stats`, `OPENSSL_LH_stats_bio`,
  117. `OPENSSL_LH_node_stats_bio` and `OPENSSL_LH_node_usage_stats_bio` are now
  118. marked deprecated from OpenSSL 3.1 onwards and can be disabled by defining
  119. `OPENSSL_NO_DEPRECATED_3_1`.
  120. The macro `DEFINE_LHASH_OF` is now deprecated in favour of the macro
  121. `DEFINE_LHASH_OF_EX`, which omits the corresponding type-specific function
  122. definitions for these functions regardless of whether
  123. `OPENSSL_NO_DEPRECATED_3_1` is defined.
  124. Users of `DEFINE_LHASH_OF` may start receiving deprecation warnings for these
  125. functions regardless of whether they are using them. It is recommended that
  126. users transition to the new macro, `DEFINE_LHASH_OF_EX`.
  127. *Hugo Landau*
  128. * When generating safe-prime DH parameters set the recommended private key
  129. length equivalent to minimum key lengths as in RFC 7919.
  130. *Tomáš Mráz*
  131. * Change the default salt length for PKCS#1 RSASSA-PSS signatures to the
  132. maximum size that is smaller or equal to the digest length to comply with
  133. FIPS 186-4 section 5. This is implemented by a new option
  134. `OSSL_PKEY_RSA_PSS_SALT_LEN_AUTO_DIGEST_MAX` ("auto-digestmax") for the
  135. `rsa_pss_saltlen` parameter, which is now the default. Signature
  136. verification is not affected by this change and continues to work as before.
  137. *Clemens Lang*
  138. OpenSSL 3.0
  139. -----------
  140. For OpenSSL 3.0 a [Migration guide][] has been added, so the CHANGES entries
  141. listed here are only a brief description.
  142. The migration guide contains more detailed information related to new features,
  143. breaking changes, and mappings for the large list of deprecated functions.
  144. [Migration guide]: https://github.com/openssl/openssl/tree/master/doc/man7/migration_guide.pod
  145. ### Changes between 3.0.7 and 3.0.8 [7 Feb 2023]
  146. * Fixed NULL dereference during PKCS7 data verification.
  147. A NULL pointer can be dereferenced when signatures are being
  148. verified on PKCS7 signed or signedAndEnveloped data. In case the hash
  149. algorithm used for the signature is known to the OpenSSL library but
  150. the implementation of the hash algorithm is not available the digest
  151. initialization will fail. There is a missing check for the return
  152. value from the initialization function which later leads to invalid
  153. usage of the digest API most likely leading to a crash.
  154. ([CVE-2023-0401])
  155. PKCS7 data is processed by the SMIME library calls and also by the
  156. time stamp (TS) library calls. The TLS implementation in OpenSSL does
  157. not call these functions however third party applications would be
  158. affected if they call these functions to verify signatures on untrusted
  159. data.
  160. *Tomáš Mráz*
  161. * Fixed X.400 address type confusion in X.509 GeneralName.
  162. There is a type confusion vulnerability relating to X.400 address processing
  163. inside an X.509 GeneralName. X.400 addresses were parsed as an ASN1_STRING
  164. but the public structure definition for GENERAL_NAME incorrectly specified
  165. the type of the x400Address field as ASN1_TYPE. This field is subsequently
  166. interpreted by the OpenSSL function GENERAL_NAME_cmp as an ASN1_TYPE rather
  167. than an ASN1_STRING.
  168. When CRL checking is enabled (i.e. the application sets the
  169. X509_V_FLAG_CRL_CHECK flag), this vulnerability may allow an attacker to
  170. pass arbitrary pointers to a memcmp call, enabling them to read memory
  171. contents or enact a denial of service.
  172. ([CVE-2023-0286])
  173. *Hugo Landau*
  174. * Fixed NULL dereference validating DSA public key.
  175. An invalid pointer dereference on read can be triggered when an
  176. application tries to check a malformed DSA public key by the
  177. EVP_PKEY_public_check() function. This will most likely lead
  178. to an application crash. This function can be called on public
  179. keys supplied from untrusted sources which could allow an attacker
  180. to cause a denial of service attack.
  181. The TLS implementation in OpenSSL does not call this function
  182. but applications might call the function if there are additional
  183. security requirements imposed by standards such as FIPS 140-3.
  184. ([CVE-2023-0217])
  185. *Shane Lontis, Tomáš Mráz*
  186. * Fixed Invalid pointer dereference in d2i_PKCS7 functions.
  187. An invalid pointer dereference on read can be triggered when an
  188. application tries to load malformed PKCS7 data with the
  189. d2i_PKCS7(), d2i_PKCS7_bio() or d2i_PKCS7_fp() functions.
  190. The result of the dereference is an application crash which could
  191. lead to a denial of service attack. The TLS implementation in OpenSSL
  192. does not call this function however third party applications might
  193. call these functions on untrusted data.
  194. ([CVE-2023-0216])
  195. *Tomáš Mráz*
  196. * Fixed Use-after-free following BIO_new_NDEF.
  197. The public API function BIO_new_NDEF is a helper function used for
  198. streaming ASN.1 data via a BIO. It is primarily used internally to OpenSSL
  199. to support the SMIME, CMS and PKCS7 streaming capabilities, but may also
  200. be called directly by end user applications.
  201. The function receives a BIO from the caller, prepends a new BIO_f_asn1
  202. filter BIO onto the front of it to form a BIO chain, and then returns
  203. the new head of the BIO chain to the caller. Under certain conditions,
  204. for example if a CMS recipient public key is invalid, the new filter BIO
  205. is freed and the function returns a NULL result indicating a failure.
  206. However, in this case, the BIO chain is not properly cleaned up and the
  207. BIO passed by the caller still retains internal pointers to the previously
  208. freed filter BIO. If the caller then goes on to call BIO_pop() on the BIO
  209. then a use-after-free will occur. This will most likely result in a crash.
  210. ([CVE-2023-0215])
  211. *Viktor Dukhovni, Matt Caswell*
  212. * Fixed Double free after calling PEM_read_bio_ex.
  213. The function PEM_read_bio_ex() reads a PEM file from a BIO and parses and
  214. decodes the "name" (e.g. "CERTIFICATE"), any header data and the payload
  215. data. If the function succeeds then the "name_out", "header" and "data"
  216. arguments are populated with pointers to buffers containing the relevant
  217. decoded data. The caller is responsible for freeing those buffers. It is
  218. possible to construct a PEM file that results in 0 bytes of payload data.
  219. In this case PEM_read_bio_ex() will return a failure code but will populate
  220. the header argument with a pointer to a buffer that has already been freed.
  221. If the caller also frees this buffer then a double free will occur. This
  222. will most likely lead to a crash.
  223. The functions PEM_read_bio() and PEM_read() are simple wrappers around
  224. PEM_read_bio_ex() and therefore these functions are also directly affected.
  225. These functions are also called indirectly by a number of other OpenSSL
  226. functions including PEM_X509_INFO_read_bio_ex() and
  227. SSL_CTX_use_serverinfo_file() which are also vulnerable. Some OpenSSL
  228. internal uses of these functions are not vulnerable because the caller does
  229. not free the header argument if PEM_read_bio_ex() returns a failure code.
  230. ([CVE-2022-4450])
  231. *Kurt Roeckx, Matt Caswell*
  232. * Fixed Timing Oracle in RSA Decryption.
  233. A timing based side channel exists in the OpenSSL RSA Decryption
  234. implementation which could be sufficient to recover a plaintext across
  235. a network in a Bleichenbacher style attack. To achieve a successful
  236. decryption an attacker would have to be able to send a very large number
  237. of trial messages for decryption. The vulnerability affects all RSA padding
  238. modes: PKCS#1 v1.5, RSA-OEAP and RSASVE.
  239. ([CVE-2022-4304])
  240. *Dmitry Belyavsky, Hubert Kario*
  241. * Fixed X.509 Name Constraints Read Buffer Overflow.
  242. A read buffer overrun can be triggered in X.509 certificate verification,
  243. specifically in name constraint checking. The read buffer overrun might
  244. result in a crash which could lead to a denial of service attack.
  245. In a TLS client, this can be triggered by connecting to a malicious
  246. server. In a TLS server, this can be triggered if the server requests
  247. client authentication and a malicious client connects.
  248. ([CVE-2022-4203])
  249. *Viktor Dukhovni*
  250. * Fixed X.509 Policy Constraints Double Locking security issue.
  251. If an X.509 certificate contains a malformed policy constraint and
  252. policy processing is enabled, then a write lock will be taken twice
  253. recursively. On some operating systems (most widely: Windows) this
  254. results in a denial of service when the affected process hangs. Policy
  255. processing being enabled on a publicly facing server is not considered
  256. to be a common setup.
  257. ([CVE-2022-3996])
  258. *Paul Dale*
  259. * Our provider implementations of `OSSL_FUNC_KEYMGMT_EXPORT` and
  260. `OSSL_FUNC_KEYMGMT_GET_PARAMS` for EC and SM2 keys now honor
  261. `OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT` as set (and
  262. default to `POINT_CONVERSION_UNCOMPRESSED`) when exporting
  263. `OSSL_PKEY_PARAM_PUB_KEY`, instead of unconditionally using
  264. `POINT_CONVERSION_COMPRESSED` as in previous 3.x releases.
  265. For symmetry, our implementation of `EVP_PKEY_ASN1_METHOD->export_to`
  266. for legacy EC and SM2 keys is also changed similarly to honor the
  267. equivalent conversion format flag as specified in the underlying
  268. `EC_KEY` object being exported to a provider, when this function is
  269. called through `EVP_PKEY_export()`.
  270. *Nicola Tuveri*
  271. * Fixed a type confusion vulnerability relating to X.400 address processing
  272. inside an X.509 GeneralName. X.400 addresses were parsed as an `ASN1_STRING`
  273. but subsequently interpreted by `GENERAL_NAME_cmp` as an `ASN1_TYPE`. This
  274. vulnerability may allow an attacker who can provide a certificate chain and
  275. CRL (neither of which need have a valid signature) to pass arbitrary pointers
  276. to a `memcmp` call, creating a possible read primitive, subject to some
  277. constraints. Refer to the advisory for more information. Thanks to David
  278. Benjamin for discovering this issue. ([CVE-2023-0286])
  279. This issue has been fixed by changing the public header file definition of
  280. `GENERAL_NAME` so that `x400Address` reflects the implementation. It was not
  281. possible for any existing application to successfully use the existing
  282. definition; however, if any application references the `x400Address` field
  283. (e.g. in dead code), note that the type of this field has changed. There is
  284. no ABI change.
  285. *Hugo Landau*
  286. ### Changes between 3.0.6 and 3.0.7 [1 Nov 2022]
  287. * Fixed two buffer overflows in punycode decoding functions.
  288. A buffer overrun can be triggered in X.509 certificate verification,
  289. specifically in name constraint checking. Note that this occurs after
  290. certificate chain signature verification and requires either a CA to
  291. have signed the malicious certificate or for the application to continue
  292. certificate verification despite failure to construct a path to a trusted
  293. issuer.
  294. In a TLS client, this can be triggered by connecting to a malicious
  295. server. In a TLS server, this can be triggered if the server requests
  296. client authentication and a malicious client connects.
  297. An attacker can craft a malicious email address to overflow
  298. an arbitrary number of bytes containing the `.` character (decimal 46)
  299. on the stack. This buffer overflow could result in a crash (causing a
  300. denial of service).
  301. ([CVE-2022-3786])
  302. An attacker can craft a malicious email address to overflow four
  303. attacker-controlled bytes on the stack. This buffer overflow could
  304. result in a crash (causing a denial of service) or potentially remote code
  305. execution depending on stack layout for any given platform/compiler.
  306. ([CVE-2022-3602])
  307. *Paul Dale*
  308. * Removed all references to invalid OSSL_PKEY_PARAM_RSA names for CRT
  309. parameters in OpenSSL code.
  310. Applications should not use the names OSSL_PKEY_PARAM_RSA_FACTOR,
  311. OSSL_PKEY_PARAM_RSA_EXPONENT and OSSL_PKEY_PARAM_RSA_COEFFICIENT.
  312. Use the numbered names such as OSSL_PKEY_PARAM_RSA_FACTOR1 instead.
  313. Using these invalid names may cause algorithms to use slower methods
  314. that ignore the CRT parameters.
  315. *Shane Lontis*
  316. * Fixed a regression introduced in 3.0.6 version raising errors on some stack
  317. operations.
  318. *Tomáš Mráz*
  319. * Fixed a regression introduced in 3.0.6 version not refreshing the certificate
  320. data to be signed before signing the certificate.
  321. *Gibeom Gwon*
  322. * Added RIPEMD160 to the default provider.
  323. *Paul Dale*
  324. * Ensured that the key share group sent or accepted for the key exchange
  325. is allowed for the protocol version.
  326. *Matt Caswell*
  327. ### Changes between 3.0.5 and 3.0.6 [11 Oct 2022]
  328. * OpenSSL supports creating a custom cipher via the legacy
  329. EVP_CIPHER_meth_new() function and associated function calls. This function
  330. was deprecated in OpenSSL 3.0 and application authors are instead encouraged
  331. to use the new provider mechanism in order to implement custom ciphers.
  332. OpenSSL versions 3.0.0 to 3.0.5 incorrectly handle legacy custom ciphers
  333. passed to the EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() and
  334. EVP_CipherInit_ex2() functions (as well as other similarly named encryption
  335. and decryption initialisation functions). Instead of using the custom cipher
  336. directly it incorrectly tries to fetch an equivalent cipher from the
  337. available providers. An equivalent cipher is found based on the NID passed to
  338. EVP_CIPHER_meth_new(). This NID is supposed to represent the unique NID for a
  339. given cipher. However it is possible for an application to incorrectly pass
  340. NID_undef as this value in the call to EVP_CIPHER_meth_new(). When NID_undef
  341. is used in this way the OpenSSL encryption/decryption initialisation function
  342. will match the NULL cipher as being equivalent and will fetch this from the
  343. available providers. This will succeed if the default provider has been
  344. loaded (or if a third party provider has been loaded that offers this
  345. cipher). Using the NULL cipher means that the plaintext is emitted as the
  346. ciphertext.
  347. Applications are only affected by this issue if they call
  348. EVP_CIPHER_meth_new() using NID_undef and subsequently use it in a call to an
  349. encryption/decryption initialisation function. Applications that only use
  350. SSL/TLS are not impacted by this issue.
  351. ([CVE-2022-3358])
  352. *Matt Caswell*
  353. * Fix LLVM vs Apple LLVM version numbering confusion that caused build failures
  354. on MacOS 10.11
  355. *Richard Levitte*
  356. * Fixed the linux-mips64 Configure target which was missing the
  357. SIXTY_FOUR_BIT bn_ops flag. This was causing heap corruption on that
  358. platform.
  359. *Adam Joseph*
  360. * Fix handling of a ticket key callback that returns 0 in TLSv1.3 to not send a
  361. ticket
  362. *Matt Caswell*
  363. * Correctly handle a retransmitted ClientHello in DTLS
  364. *Matt Caswell*
  365. * Fixed detection of ktls support in cross-compile environment on Linux
  366. *Tomas Mraz*
  367. * Fixed some regressions and test failures when running the 3.0.0 FIPS provider
  368. against 3.0.x
  369. *Paul Dale*
  370. * Fixed SSL_pending() and SSL_has_pending() with DTLS which were failing to
  371. report correct results in some cases
  372. *Matt Caswell*
  373. * Fix UWP builds by defining VirtualLock
  374. *Charles Milette*
  375. * For known safe primes use the minimum key length according to RFC 7919.
  376. Longer private key sizes unnecessarily raise the cycles needed to compute the
  377. shared secret without any increase of the real security. This fixes a
  378. regression from 1.1.1 where these shorter keys were generated for the known
  379. safe primes.
  380. *Tomas Mraz*
  381. * Added the loongarch64 target
  382. *Shi Pujin*
  383. * Fixed EC ASM flag passing. Flags for ASM implementations of EC curves were
  384. only passed to the FIPS provider and not to the default or legacy provider.
  385. *Juergen Christ*
  386. * Fixed reported performance degradation on aarch64. Restored the
  387. implementation prior to commit 2621751 ("aes/asm/aesv8-armx.pl: avoid
  388. 32-bit lane assignment in CTR mode") for 64bit targets only, since it is
  389. reportedly 2-17% slower and the silicon errata only affects 32bit targets.
  390. The new algorithm is still used for 32 bit targets.
  391. *Bernd Edlinger*
  392. * Added a missing header for memcmp that caused compilation failure on some
  393. platforms
  394. *Gregor Jasny*
  395. ### Changes between 3.0.4 and 3.0.5 [5 Jul 2022]
  396. * The OpenSSL 3.0.4 release introduced a serious bug in the RSA
  397. implementation for X86_64 CPUs supporting the AVX512IFMA instructions.
  398. This issue makes the RSA implementation with 2048 bit private keys
  399. incorrect on such machines and memory corruption will happen during
  400. the computation. As a consequence of the memory corruption an attacker
  401. may be able to trigger a remote code execution on the machine performing
  402. the computation.
  403. SSL/TLS servers or other servers using 2048 bit RSA private keys running
  404. on machines supporting AVX512IFMA instructions of the X86_64 architecture
  405. are affected by this issue.
  406. ([CVE-2022-2274])
  407. *Xi Ruoyao*
  408. * AES OCB mode for 32-bit x86 platforms using the AES-NI assembly optimised
  409. implementation would not encrypt the entirety of the data under some
  410. circumstances. This could reveal sixteen bytes of data that was
  411. preexisting in the memory that wasn't written. In the special case of
  412. "in place" encryption, sixteen bytes of the plaintext would be revealed.
  413. Since OpenSSL does not support OCB based cipher suites for TLS and DTLS,
  414. they are both unaffected.
  415. ([CVE-2022-2097])
  416. *Alex Chernyakhovsky, David Benjamin, Alejandro Sedeño*
  417. ### Changes between 3.0.3 and 3.0.4 [21 Jun 2022]
  418. * In addition to the c_rehash shell command injection identified in
  419. CVE-2022-1292, further bugs where the c_rehash script does not
  420. properly sanitise shell metacharacters to prevent command injection have been
  421. fixed.
  422. When the CVE-2022-1292 was fixed it was not discovered that there
  423. are other places in the script where the file names of certificates
  424. being hashed were possibly passed to a command executed through the shell.
  425. This script is distributed by some operating systems in a manner where
  426. it is automatically executed. On such operating systems, an attacker
  427. could execute arbitrary commands with the privileges of the script.
  428. Use of the c_rehash script is considered obsolete and should be replaced
  429. by the OpenSSL rehash command line tool.
  430. (CVE-2022-2068)
  431. *Daniel Fiala, Tomáš Mráz*
  432. * Case insensitive string comparison no longer uses locales. It has instead
  433. been directly implemented.
  434. *Paul Dale*
  435. ### Changes between 3.0.2 and 3.0.3 [3 May 2022]
  436. * Case insensitive string comparison is reimplemented via new locale-agnostic
  437. comparison functions OPENSSL_str[n]casecmp always using the POSIX locale for
  438. comparison. The previous implementation had problems when the Turkish locale
  439. was used.
  440. *Dmitry Belyavskiy*
  441. * Fixed a bug in the c_rehash script which was not properly sanitising shell
  442. metacharacters to prevent command injection. This script is distributed by
  443. some operating systems in a manner where it is automatically executed. On
  444. such operating systems, an attacker could execute arbitrary commands with the
  445. privileges of the script.
  446. Use of the c_rehash script is considered obsolete and should be replaced
  447. by the OpenSSL rehash command line tool.
  448. (CVE-2022-1292)
  449. *Tomáš Mráz*
  450. * Fixed a bug in the function `OCSP_basic_verify` that verifies the signer
  451. certificate on an OCSP response. The bug caused the function in the case
  452. where the (non-default) flag OCSP_NOCHECKS is used to return a postivie
  453. response (meaning a successful verification) even in the case where the
  454. response signing certificate fails to verify.
  455. It is anticipated that most users of `OCSP_basic_verify` will not use the
  456. OCSP_NOCHECKS flag. In this case the `OCSP_basic_verify` function will return
  457. a negative value (indicating a fatal error) in the case of a certificate
  458. verification failure. The normal expected return value in this case would be
  459. 0.
  460. This issue also impacts the command line OpenSSL "ocsp" application. When
  461. verifying an ocsp response with the "-no_cert_checks" option the command line
  462. application will report that the verification is successful even though it
  463. has in fact failed. In this case the incorrect successful response will also
  464. be accompanied by error messages showing the failure and contradicting the
  465. apparently successful result.
  466. ([CVE-2022-1343])
  467. *Matt Caswell*
  468. * Fixed a bug where the RC4-MD5 ciphersuite incorrectly used the
  469. AAD data as the MAC key. This made the MAC key trivially predictable.
  470. An attacker could exploit this issue by performing a man-in-the-middle attack
  471. to modify data being sent from one endpoint to an OpenSSL 3.0 recipient such
  472. that the modified data would still pass the MAC integrity check.
  473. Note that data sent from an OpenSSL 3.0 endpoint to a non-OpenSSL 3.0
  474. endpoint will always be rejected by the recipient and the connection will
  475. fail at that point. Many application protocols require data to be sent from
  476. the client to the server first. Therefore, in such a case, only an OpenSSL
  477. 3.0 server would be impacted when talking to a non-OpenSSL 3.0 client.
  478. If both endpoints are OpenSSL 3.0 then the attacker could modify data being
  479. sent in both directions. In this case both clients and servers could be
  480. affected, regardless of the application protocol.
  481. Note that in the absence of an attacker this bug means that an OpenSSL 3.0
  482. endpoint communicating with a non-OpenSSL 3.0 endpoint will fail to complete
  483. the handshake when using this ciphersuite.
  484. The confidentiality of data is not impacted by this issue, i.e. an attacker
  485. cannot decrypt data that has been encrypted using this ciphersuite - they can
  486. only modify it.
  487. In order for this attack to work both endpoints must legitimately negotiate
  488. the RC4-MD5 ciphersuite. This ciphersuite is not compiled by default in
  489. OpenSSL 3.0, and is not available within the default provider or the default
  490. ciphersuite list. This ciphersuite will never be used if TLSv1.3 has been
  491. negotiated. In order for an OpenSSL 3.0 endpoint to use this ciphersuite the
  492. following must have occurred:
  493. 1) OpenSSL must have been compiled with the (non-default) compile time option
  494. enable-weak-ssl-ciphers
  495. 2) OpenSSL must have had the legacy provider explicitly loaded (either
  496. through application code or via configuration)
  497. 3) The ciphersuite must have been explicitly added to the ciphersuite list
  498. 4) The libssl security level must have been set to 0 (default is 1)
  499. 5) A version of SSL/TLS below TLSv1.3 must have been negotiated
  500. 6) Both endpoints must negotiate the RC4-MD5 ciphersuite in preference to any
  501. others that both endpoints have in common
  502. (CVE-2022-1434)
  503. *Matt Caswell*
  504. * Fix a bug in the OPENSSL_LH_flush() function that breaks reuse of the memory
  505. occupied by the removed hash table entries.
  506. This function is used when decoding certificates or keys. If a long lived
  507. process periodically decodes certificates or keys its memory usage will
  508. expand without bounds and the process might be terminated by the operating
  509. system causing a denial of service. Also traversing the empty hash table
  510. entries will take increasingly more time.
  511. Typically such long lived processes might be TLS clients or TLS servers
  512. configured to accept client certificate authentication.
  513. (CVE-2022-1473)
  514. *Hugo Landau, Aliaksei Levin*
  515. * The functions `OPENSSL_LH_stats` and `OPENSSL_LH_stats_bio` now only report
  516. the `num_items`, `num_nodes` and `num_alloc_nodes` statistics. All other
  517. statistics are no longer supported. For compatibility, these statistics are
  518. still listed in the output but are now always reported as zero.
  519. *Hugo Landau*
  520. ### Changes between 3.0.1 and 3.0.2 [15 Mar 2022]
  521. * Fixed a bug in the BN_mod_sqrt() function that can cause it to loop forever
  522. for non-prime moduli.
  523. Internally this function is used when parsing certificates that contain
  524. elliptic curve public keys in compressed form or explicit elliptic curve
  525. parameters with a base point encoded in compressed form.
  526. It is possible to trigger the infinite loop by crafting a certificate that
  527. has invalid explicit curve parameters.
  528. Since certificate parsing happens prior to verification of the certificate
  529. signature, any process that parses an externally supplied certificate may thus
  530. be subject to a denial of service attack. The infinite loop can also be
  531. reached when parsing crafted private keys as they can contain explicit
  532. elliptic curve parameters.
  533. Thus vulnerable situations include:
  534. - TLS clients consuming server certificates
  535. - TLS servers consuming client certificates
  536. - Hosting providers taking certificates or private keys from customers
  537. - Certificate authorities parsing certification requests from subscribers
  538. - Anything else which parses ASN.1 elliptic curve parameters
  539. Also any other applications that use the BN_mod_sqrt() where the attacker
  540. can control the parameter values are vulnerable to this DoS issue.
  541. ([CVE-2022-0778])
  542. *Tomáš Mráz*
  543. * Add ciphersuites based on DHE_PSK (RFC 4279) and ECDHE_PSK (RFC 5489)
  544. to the list of ciphersuites providing Perfect Forward Secrecy as
  545. required by SECLEVEL >= 3.
  546. *Dmitry Belyavskiy, Nicola Tuveri*
  547. * Made the AES constant time code for no-asm configurations
  548. optional due to the resulting 95% performance degradation.
  549. The AES constant time code can be enabled, for no assembly
  550. builds, with: ./config no-asm -DOPENSSL_AES_CONST_TIME
  551. *Paul Dale*
  552. * Fixed PEM_write_bio_PKCS8PrivateKey() to make it possible to use empty
  553. passphrase strings.
  554. *Darshan Sen*
  555. * The negative return value handling of the certificate verification callback
  556. was reverted. The replacement is to set the verification retry state with
  557. the SSL_set_retry_verify() function.
  558. *Tomáš Mráz*
  559. ### Changes between 3.0.0 and 3.0.1 [14 Dec 2021]
  560. * Fixed invalid handling of X509_verify_cert() internal errors in libssl
  561. Internally libssl in OpenSSL calls X509_verify_cert() on the client side to
  562. verify a certificate supplied by a server. That function may return a
  563. negative return value to indicate an internal error (for example out of
  564. memory). Such a negative return value is mishandled by OpenSSL and will cause
  565. an IO function (such as SSL_connect() or SSL_do_handshake()) to not indicate
  566. success and a subsequent call to SSL_get_error() to return the value
  567. SSL_ERROR_WANT_RETRY_VERIFY. This return value is only supposed to be
  568. returned by OpenSSL if the application has previously called
  569. SSL_CTX_set_cert_verify_callback(). Since most applications do not do this
  570. the SSL_ERROR_WANT_RETRY_VERIFY return value from SSL_get_error() will be
  571. totally unexpected and applications may not behave correctly as a result. The
  572. exact behaviour will depend on the application but it could result in
  573. crashes, infinite loops or other similar incorrect responses.
  574. This issue is made more serious in combination with a separate bug in OpenSSL
  575. 3.0 that will cause X509_verify_cert() to indicate an internal error when
  576. processing a certificate chain. This will occur where a certificate does not
  577. include the Subject Alternative Name extension but where a Certificate
  578. Authority has enforced name constraints. This issue can occur even with valid
  579. chains.
  580. ([CVE-2021-4044])
  581. *Matt Caswell*
  582. * Corrected a few file name and file reference bugs in the build,
  583. installation and setup scripts, which lead to installation verification
  584. failures. Slightly enhanced the installation verification script.
  585. *Richard Levitte*
  586. * Fixed EVP_PKEY_eq() to make it possible to use it with strictly private
  587. keys.
  588. *Richard Levitte*
  589. * Fixed PVK encoder to properly query for the passphrase.
  590. *Tomáš Mráz*
  591. * Multiple fixes in the OSSL_HTTP API functions.
  592. *David von Oheimb*
  593. * Allow sign extension in OSSL_PARAM_allocate_from_text() for the
  594. OSSL_PARAM_INTEGER data type and return error on negative numbers
  595. used with the OSSL_PARAM_UNSIGNED_INTEGER data type. Make
  596. OSSL_PARAM_BLD_push_BN{,_pad}() return an error on negative numbers.
  597. *Richard Levitte*
  598. * Allow copying uninitialized digest contexts with EVP_MD_CTX_copy_ex.
  599. *Tomáš Mráz*
  600. * Fixed detection of ARMv7 and ARM64 CPU features on FreeBSD.
  601. *Allan Jude*
  602. * Multiple threading fixes.
  603. *Matt Caswell*
  604. * Added NULL digest implementation to keep compatibility with 1.1.1 version.
  605. *Tomáš Mráz*
  606. * Allow fetching an operation from the provider that owns an unexportable key
  607. as a fallback if that is still allowed by the property query.
  608. *Richard Levitte*
  609. ### Changes between 1.1.1 and 3.0.0 [7 sep 2021]
  610. * TLS_MAX_VERSION, DTLS_MAX_VERSION and DTLS_MIN_VERSION constants are now
  611. deprecated.
  612. *Matt Caswell*
  613. * The `OPENSSL_s390xcap` environment variable can be used to set bits in the
  614. S390X capability vector to zero. This simplifies testing of different code
  615. paths on S390X architecture.
  616. *Patrick Steuer*
  617. * Encrypting more than 2^64 TLS records with AES-GCM is disallowed
  618. as per FIPS 140-2 IG A.5 "Key/IV Pair Uniqueness Requirements from
  619. SP 800-38D". The communication will fail at this point.
  620. *Paul Dale*
  621. * The EC_GROUP_clear_free() function is deprecated as there is nothing
  622. confidential in EC_GROUP data.
  623. *Nicola Tuveri*
  624. * The byte order mark (BOM) character is ignored if encountered at the
  625. beginning of a PEM-formatted file.
  626. *Dmitry Belyavskiy*
  627. * Added CMS support for the Russian GOST algorithms.
  628. *Dmitry Belyavskiy*
  629. * Due to move of the implementation of cryptographic operations
  630. to the providers, validation of various operation parameters can
  631. be postponed until the actual operation is executed where previously
  632. it happened immediately when an operation parameter was set.
  633. For example when setting an unsupported curve with
  634. EVP_PKEY_CTX_set_ec_paramgen_curve_nid() this function call will not
  635. fail but later keygen operations with the EVP_PKEY_CTX will fail.
  636. *OpenSSL team members and many third party contributors*
  637. * The EVP_get_cipherbyname() function will return NULL for algorithms such as
  638. "AES-128-SIV", "AES-128-CBC-CTS" and "CAMELLIA-128-CBC-CTS" which were
  639. previously only accessible via low-level interfaces. Use EVP_CIPHER_fetch()
  640. instead to retrieve these algorithms from a provider.
  641. *Shane Lontis*
  642. * On build targets where the multilib postfix is set in the build
  643. configuration the libdir directory was changing based on whether
  644. the lib directory with the multilib postfix exists on the system
  645. or not. This unpredictable behavior was removed and eventual
  646. multilib postfix is now always added to the default libdir. Use
  647. `--libdir=lib` to override the libdir if adding the postfix is
  648. undesirable.
  649. *Jan Lána*
  650. * The triple DES key wrap functionality now conforms to RFC 3217 but is
  651. no longer interoperable with OpenSSL 1.1.1.
  652. *Paul Dale*
  653. * The ERR_GET_FUNC() function was removed. With the loss of meaningful
  654. function codes, this function can only cause problems for calling
  655. applications.
  656. *Paul Dale*
  657. * Add a configurable flag to output date formats as ISO 8601. Does not
  658. change the default date format.
  659. *William Edmisten*
  660. * Version of MSVC earlier than 1300 could get link warnings, which could
  661. be suppressed if the undocumented -DI_CAN_LIVE_WITH_LNK4049 was set.
  662. Support for this flag has been removed.
  663. *Rich Salz*
  664. * Rework and make DEBUG macros consistent. Remove unused -DCONF_DEBUG,
  665. -DBN_CTX_DEBUG, and REF_PRINT. Add a new tracing category and use it for
  666. printing reference counts. Rename -DDEBUG_UNUSED to -DUNUSED_RESULT_DEBUG
  667. Fix BN_DEBUG_RAND so it compiles and, when set, force DEBUG_RAND to be set
  668. also. Rename engine_debug_ref to be ENGINE_REF_PRINT also for consistency.
  669. *Rich Salz*
  670. * The signatures of the functions to get and set options on SSL and
  671. SSL_CTX objects changed from "unsigned long" to "uint64_t" type.
  672. Some source code changes may be required.
  673. *Rich Salz*
  674. * The public definitions of conf_method_st and conf_st have been
  675. deprecated. They will be made opaque in a future release.
  676. *Rich Salz and Tomáš Mráz*
  677. * Client-initiated renegotiation is disabled by default. To allow it, use
  678. the -client_renegotiation option, the SSL_OP_ALLOW_CLIENT_RENEGOTIATION
  679. flag, or the "ClientRenegotiation" config parameter as appropriate.
  680. *Rich Salz*
  681. * Add "abspath" and "includedir" pragma's to config files, to prevent,
  682. or modify relative pathname inclusion.
  683. *Rich Salz*
  684. * OpenSSL includes a cryptographic module that is intended to be FIPS 140-2
  685. validated. Please consult the README-FIPS and
  686. README-PROVIDERS files, as well as the migration guide.
  687. *OpenSSL team members and many third party contributors*
  688. * For the key types DH and DHX the allowed settable parameters are now different.
  689. *Shane Lontis*
  690. * The openssl commands that read keys, certificates, and CRLs now
  691. automatically detect the PEM or DER format of the input files.
  692. *David von Oheimb, Richard Levitte, and Tomáš Mráz*
  693. * Added enhanced PKCS#12 APIs which accept a library context.
  694. *Jon Spillett*
  695. * The default manual page suffix ($MANSUFFIX) has been changed to "ossl"
  696. *Matt Caswell*
  697. * Added support for Kernel TLS (KTLS).
  698. *Boris Pismenny, John Baldwin and Andrew Gallatin*
  699. * Support for RFC 5746 secure renegotiation is now required by default for
  700. SSL or TLS connections to succeed.
  701. *Benjamin Kaduk*
  702. * The signature of the `copy` functional parameter of the
  703. EVP_PKEY_meth_set_copy() function has changed so its `src` argument is
  704. now `const EVP_PKEY_CTX *` instead of `EVP_PKEY_CTX *`. Similarly
  705. the signature of the `pub_decode` functional parameter of the
  706. EVP_PKEY_asn1_set_public() function has changed so its `pub` argument is
  707. now `const X509_PUBKEY *` instead of `X509_PUBKEY *`.
  708. *David von Oheimb*
  709. * The error return values from some control calls (ctrl) have changed.
  710. *Paul Dale*
  711. * A public key check is now performed during EVP_PKEY_derive_set_peer().
  712. *Shane Lontis*
  713. * Many functions in the EVP_ namespace that are getters of values from
  714. implementations or contexts were renamed to include get or get0 in their
  715. names. Old names are provided as macro aliases for compatibility and
  716. are not deprecated.
  717. *Tomáš Mráz*
  718. * The EVP_PKEY_CTRL_PKCS7_ENCRYPT, EVP_PKEY_CTRL_PKCS7_DECRYPT,
  719. EVP_PKEY_CTRL_PKCS7_SIGN, EVP_PKEY_CTRL_CMS_ENCRYPT,
  720. EVP_PKEY_CTRL_CMS_DECRYPT, and EVP_PKEY_CTRL_CMS_SIGN control operations
  721. are deprecated.
  722. *Tomáš Mráz*
  723. * The EVP_PKEY_public_check() and EVP_PKEY_param_check() functions now work for
  724. more key types.
  725. * The output from the command line applications may have minor
  726. changes.
  727. *Paul Dale*
  728. * The output from numerous "printing" may have minor changes.
  729. *David von Oheimb*
  730. * Windows thread synchronization uses read/write primitives (SRWLock) when
  731. supported by the OS, otherwise CriticalSection continues to be used.
  732. *Vincent Drake*
  733. * Add filter BIO BIO_f_readbuffer() that allows BIO_tell() and BIO_seek() to
  734. work on read only BIO source/sinks that do not support these functions.
  735. This allows piping or redirection of a file BIO using stdin to be buffered
  736. into memory. This is used internally in OSSL_DECODER_from_bio().
  737. *Shane Lontis*
  738. * OSSL_STORE_INFO_get_type() may now return an additional value. In 1.1.1
  739. this function would return one of the values OSSL_STORE_INFO_NAME,
  740. OSSL_STORE_INFO_PKEY, OSSL_STORE_INFO_PARAMS, OSSL_STORE_INFO_CERT or
  741. OSSL_STORE_INFO_CRL. Decoded public keys would previously have been reported
  742. as type OSSL_STORE_INFO_PKEY in 1.1.1. In 3.0 decoded public keys are now
  743. reported as having the new type OSSL_STORE_INFO_PUBKEY. Applications
  744. using this function should be amended to handle the changed return value.
  745. *Richard Levitte*
  746. * Improved adherence to Enhanced Security Services (ESS, RFC 2634 and RFC 5035)
  747. for the TSP and CMS Advanced Electronic Signatures (CAdES) implementations.
  748. As required by RFC 5035 check both ESSCertID and ESSCertIDv2 if both present.
  749. Correct the semantics of checking the validation chain in case ESSCertID{,v2}
  750. contains more than one certificate identifier: This means that all
  751. certificates referenced there MUST be part of the validation chain.
  752. *David von Oheimb*
  753. * The implementation of older EVP ciphers related to CAST, IDEA, SEED, RC2, RC4,
  754. RC5, DESX and DES have been moved to the legacy provider.
  755. *Matt Caswell*
  756. * The implementation of the EVP digests MD2, MD4, MDC2, WHIRLPOOL and
  757. RIPEMD-160 have been moved to the legacy provider.
  758. *Matt Caswell*
  759. * The deprecated function EVP_PKEY_get0() now returns NULL being called for a
  760. provided key.
  761. *Dmitry Belyavskiy*
  762. * The deprecated functions EVP_PKEY_get0_RSA(),
  763. EVP_PKEY_get0_DSA(), EVP_PKEY_get0_EC_KEY(), EVP_PKEY_get0_DH(),
  764. EVP_PKEY_get0_hmac(), EVP_PKEY_get0_poly1305() and EVP_PKEY_get0_siphash() as
  765. well as the similarly named "get1" functions behave differently in
  766. OpenSSL 3.0.
  767. *Matt Caswell*
  768. * A number of functions handling low-level keys or engines were deprecated
  769. including EVP_PKEY_set1_engine(), EVP_PKEY_get0_engine(), EVP_PKEY_assign(),
  770. EVP_PKEY_get0(), EVP_PKEY_get0_hmac(), EVP_PKEY_get0_poly1305() and
  771. EVP_PKEY_get0_siphash().
  772. *Matt Caswell*
  773. * PKCS#5 PBKDF1 key derivation has been moved from PKCS5_PBE_keyivgen() into
  774. the legacy crypto provider as an EVP_KDF. Applications requiring this KDF
  775. will need to load the legacy crypto provider. This includes these PBE
  776. algorithms which use this KDF:
  777. - NID_pbeWithMD2AndDES_CBC
  778. - NID_pbeWithMD5AndDES_CBC
  779. - NID_pbeWithSHA1AndRC2_CBC
  780. - NID_pbeWithMD2AndRC2_CBC
  781. - NID_pbeWithMD5AndRC2_CBC
  782. - NID_pbeWithSHA1AndDES_CBC
  783. *Jon Spillett*
  784. * Deprecated obsolete BIO_set_callback(), BIO_get_callback(), and
  785. BIO_debug_callback() functions.
  786. *Tomáš Mráz*
  787. * Deprecated obsolete EVP_PKEY_CTX_get0_dh_kdf_ukm() and
  788. EVP_PKEY_CTX_get0_ecdh_kdf_ukm() functions.
  789. *Tomáš Mráz*
  790. * The RAND_METHOD APIs have been deprecated.
  791. *Paul Dale*
  792. * The SRP APIs have been deprecated.
  793. *Matt Caswell*
  794. * Add a compile time option to prevent the caching of provider fetched
  795. algorithms. This is enabled by including the no-cached-fetch option
  796. at configuration time.
  797. *Paul Dale*
  798. * pkcs12 now uses defaults of PBKDF2, AES and SHA-256, with a MAC iteration
  799. count of PKCS12_DEFAULT_ITER.
  800. *Tomáš Mráz and Sahana Prasad*
  801. * The openssl speed command does not use low-level API calls anymore.
  802. *Tomáš Mráz*
  803. * Parallel dual-prime 1024-bit modular exponentiation for AVX512_IFMA
  804. capable processors.
  805. *Ilya Albrekht, Sergey Kirillov, Andrey Matyukov (Intel Corp)*
  806. * Combining the Configure options no-ec and no-dh no longer disables TLSv1.3.
  807. *Matt Caswell*
  808. * Implemented support for fully "pluggable" TLSv1.3 groups. This means that
  809. providers may supply their own group implementations (using either the "key
  810. exchange" or the "key encapsulation" methods) which will automatically be
  811. detected and used by libssl.
  812. *Matt Caswell, Nicola Tuveri*
  813. * The undocumented function X509_certificate_type() has been deprecated;
  814. *Rich Salz*
  815. * Deprecated the obsolete BN_pseudo_rand() and BN_pseudo_rand_range().
  816. *Tomáš Mráz*
  817. * Removed RSA padding mode for SSLv23 (which was only used for
  818. SSLv2). This includes the functions RSA_padding_check_SSLv23() and
  819. RSA_padding_add_SSLv23() and the `-ssl` option in the deprecated
  820. `rsautl` command.
  821. *Rich Salz*
  822. * Deprecated the obsolete X9.31 RSA key generation related functions.
  823. * While a callback function set via `SSL_CTX_set_cert_verify_callback()`
  824. is not allowed to return a value > 1, this is no more taken as failure.
  825. *Viktor Dukhovni and David von Oheimb*
  826. * Deprecated the obsolete X9.31 RSA key generation related functions
  827. BN_X931_generate_Xpq(), BN_X931_derive_prime_ex(), and
  828. BN_X931_generate_prime_ex().
  829. *Tomáš Mráz*
  830. * The default key generation method for the regular 2-prime RSA keys was
  831. changed to the FIPS 186-4 B.3.6 method.
  832. *Shane Lontis*
  833. * Deprecated the BN_is_prime_ex() and BN_is_prime_fasttest_ex() functions.
  834. *Kurt Roeckx*
  835. * Deprecated EVP_MD_CTX_set_update_fn() and EVP_MD_CTX_update_fn().
  836. *Rich Salz*
  837. * Deprecated the type OCSP_REQ_CTX and the functions OCSP_REQ_CTX_*() and
  838. replaced with OSSL_HTTP_REQ_CTX and the functions OSSL_HTTP_REQ_CTX_*().
  839. *Rich Salz, Richard Levitte, and David von Oheimb*
  840. * Deprecated `X509_http_nbio()` and `X509_CRL_http_nbio()`.
  841. *David von Oheimb*
  842. * Deprecated `OCSP_parse_url()`.
  843. *David von Oheimb*
  844. * Validation of SM2 keys has been separated from the validation of regular EC
  845. keys.
  846. *Nicola Tuveri*
  847. * Behavior of the `pkey` app is changed, when using the `-check` or `-pubcheck`
  848. switches: a validation failure triggers an early exit, returning a failure
  849. exit status to the parent process.
  850. *Nicola Tuveri*
  851. * Changed behavior of SSL_CTX_set_ciphersuites() and SSL_set_ciphersuites()
  852. to ignore unknown ciphers.
  853. *Otto Hollmann*
  854. * The `-cipher-commands` and `-digest-commands` options
  855. of the command line utility `list` have been deprecated.
  856. Instead use the `-cipher-algorithms` and `-digest-algorithms` options.
  857. *Dmitry Belyavskiy*
  858. * Added convenience functions for generating asymmetric key pairs:
  859. The 'quick' one-shot (yet somewhat limited) function L<EVP_PKEY_Q_keygen(3)>
  860. and macros for the most common cases: <EVP_RSA_gen(3)> and L<EVP_EC_gen(3)>.
  861. *David von Oheimb*
  862. * All of the low-level EC_KEY functions have been deprecated.
  863. *Shane Lontis, Paul Dale, Richard Levitte, and Tomáš Mráz*
  864. * Deprecated all the libcrypto and libssl error string loading
  865. functions.
  866. *Richard Levitte*
  867. * The functions SSL_CTX_set_tmp_dh_callback and SSL_set_tmp_dh_callback, as
  868. well as the macros SSL_CTX_set_tmp_dh() and SSL_set_tmp_dh() have been
  869. deprecated.
  870. *Matt Caswell*
  871. * The `-crypt` option to the `passwd` command line tool has been removed.
  872. *Paul Dale*
  873. * The -C option to the `x509`, `dhparam`, `dsaparam`, and `ecparam` commands
  874. were removed.
  875. *Rich Salz*
  876. * Add support for AES Key Wrap inverse ciphers to the EVP layer.
  877. *Shane Lontis*
  878. * Deprecated EVP_PKEY_set1_tls_encodedpoint() and
  879. EVP_PKEY_get1_tls_encodedpoint().
  880. *Matt Caswell*
  881. * The security callback, which can be customised by application code, supports
  882. the security operation SSL_SECOP_TMP_DH. One location of the "other" parameter
  883. was incorrectly passing a DH object. It now passed an EVP_PKEY in all cases.
  884. *Matt Caswell*
  885. * Add PKCS7_get_octet_string() and PKCS7_type_is_other() to the public
  886. interface. Their functionality remains unchanged.
  887. *Jordan Montgomery*
  888. * Added new option for 'openssl list', '-providers', which will display the
  889. list of loaded providers, their names, version and status. It optionally
  890. displays their gettable parameters.
  891. *Paul Dale*
  892. * Removed EVP_PKEY_set_alias_type().
  893. *Richard Levitte*
  894. * Deprecated `EVP_PKEY_CTX_set_rsa_keygen_pubexp()` and introduced
  895. `EVP_PKEY_CTX_set1_rsa_keygen_pubexp()`, which is now preferred.
  896. *Jeremy Walch*
  897. * Changed all "STACK" functions to be macros instead of inline functions. Macro
  898. parameters are still checked for type safety at compile time via helper
  899. inline functions.
  900. *Matt Caswell*
  901. * Remove the RAND_DRBG API
  902. *Paul Dale and Matthias St. Pierre*
  903. * Allow `SSL_set1_host()` and `SSL_add1_host()` to take IP literal addresses
  904. as well as actual hostnames.
  905. *David Woodhouse*
  906. * The 'MinProtocol' and 'MaxProtocol' configuration commands now silently
  907. ignore TLS protocol version bounds when configuring DTLS-based contexts, and
  908. conversely, silently ignore DTLS protocol version bounds when configuring
  909. TLS-based contexts. The commands can be repeated to set bounds of both
  910. types. The same applies with the corresponding "min_protocol" and
  911. "max_protocol" command-line switches, in case some application uses both TLS
  912. and DTLS.
  913. SSL_CTX instances that are created for a fixed protocol version (e.g.
  914. `TLSv1_server_method()`) also silently ignore version bounds. Previously
  915. attempts to apply bounds to these protocol versions would result in an
  916. error. Now only the "version-flexible" SSL_CTX instances are subject to
  917. limits in configuration files in command-line options.
  918. *Viktor Dukhovni*
  919. * Deprecated the `ENGINE` API. Engines should be replaced with providers
  920. going forward.
  921. *Paul Dale*
  922. * Reworked the recorded ERR codes to make better space for system errors.
  923. To distinguish them, the macro `ERR_SYSTEM_ERROR()` indicates if the
  924. given code is a system error (true) or an OpenSSL error (false).
  925. *Richard Levitte*
  926. * Reworked the test perl framework to better allow parallel testing.
  927. *Nicola Tuveri and David von Oheimb*
  928. * Added ciphertext stealing algorithms AES-128-CBC-CTS, AES-192-CBC-CTS and
  929. AES-256-CBC-CTS to the providers. CS1, CS2 and CS3 variants are supported.
  930. *Shane Lontis*
  931. * 'Configure' has been changed to figure out the configuration target if
  932. none is given on the command line. Consequently, the 'config' script is
  933. now only a mere wrapper. All documentation is changed to only mention
  934. 'Configure'.
  935. *Rich Salz and Richard Levitte*
  936. * Added a library context `OSSL_LIB_CTX` that applications as well as
  937. other libraries can use to form a separate context within which
  938. libcrypto operations are performed.
  939. *Richard Levitte*
  940. * Added various `_ex` functions to the OpenSSL API that support using
  941. a non-default `OSSL_LIB_CTX`.
  942. *OpenSSL team*
  943. * Handshake now fails if Extended Master Secret extension is dropped
  944. on renegotiation.
  945. *Tomáš Mráz*
  946. * Dropped interactive mode from the `openssl` program.
  947. *Richard Levitte*
  948. * Deprecated `EVP_PKEY_cmp()` and `EVP_PKEY_cmp_parameters()`.
  949. *David von Oheimb and Shane Lontis*
  950. * Deprecated `EC_METHOD_get_field_type()`.
  951. *Billy Bob Brumley*
  952. * Deprecated EC_GFp_simple_method(), EC_GFp_mont_method(),
  953. EC_GF2m_simple_method(), EC_GFp_nist_method(), EC_GFp_nistp224_method()
  954. EC_GFp_nistp256_method(), and EC_GFp_nistp521_method().
  955. *Billy Bob Brumley*
  956. * Deprecated EC_GROUP_new(), EC_GROUP_method_of(), and EC_POINT_method_of().
  957. *Billy Bob Brumley*
  958. * Add CAdES-BES signature verification support, mostly derived
  959. from ESSCertIDv2 TS (RFC 5816) contribution by Marek Klein.
  960. *Filipe Raimundo da Silva*
  961. * Add CAdES-BES signature scheme and attributes support (RFC 5126) to CMS API.
  962. *Antonio Iacono*
  963. * Added the AuthEnvelopedData content type structure (RFC 5083) with AES-GCM
  964. parameter (RFC 5084) for the Cryptographic Message Syntax (CMS).
  965. *Jakub Zelenka*
  966. * Deprecated EC_POINT_make_affine() and EC_POINTs_make_affine().
  967. *Billy Bob Brumley*
  968. * Deprecated EC_GROUP_precompute_mult(), EC_GROUP_have_precompute_mult(), and
  969. EC_KEY_precompute_mult().
  970. *Billy Bob Brumley*
  971. * Deprecated EC_POINTs_mul().
  972. *Billy Bob Brumley*
  973. * Removed FIPS_mode() and FIPS_mode_set().
  974. *Shane Lontis*
  975. * The SSL option SSL_OP_IGNORE_UNEXPECTED_EOF is introduced.
  976. *Dmitry Belyavskiy*
  977. * Deprecated EC_POINT_set_Jprojective_coordinates_GFp() and
  978. EC_POINT_get_Jprojective_coordinates_GFp().
  979. *Billy Bob Brumley*
  980. * Added OSSL_PARAM_BLD to the public interface. This allows OSSL_PARAM
  981. arrays to be more easily constructed via a series of utility functions.
  982. Create a parameter builder using OSSL_PARAM_BLD_new(), add parameters using
  983. the various push functions and finally convert to a passable OSSL_PARAM
  984. array using OSSL_PARAM_BLD_to_param().
  985. *Paul Dale*
  986. * The security strength of SHA1 and MD5 based signatures in TLS has been
  987. reduced.
  988. *Kurt Roeckx*
  989. * Added EVP_PKEY_set_type_by_keymgmt(), to initialise an EVP_PKEY to
  990. contain a provider side internal key.
  991. *Richard Levitte*
  992. * ASN1_verify(), ASN1_digest() and ASN1_sign() have been deprecated.
  993. *Richard Levitte*
  994. * Project text documents not yet having a proper file name extension
  995. (`HACKING`, `LICENSE`, `NOTES*`, `README*`, `VERSION`) have been renamed to
  996. `*.md` as far as reasonable, else `*.txt`, for better use with file managers.
  997. *David von Oheimb*
  998. * The main project documents (README, NEWS, CHANGES, INSTALL, SUPPORT)
  999. have been converted to Markdown with the goal to produce documents
  1000. which not only look pretty when viewed online in the browser, but
  1001. remain well readable inside a plain text editor.
  1002. To achieve this goal, a 'minimalistic' Markdown style has been applied
  1003. which avoids formatting elements that interfere too much with the
  1004. reading flow in the text file. For example, it
  1005. * avoids [ATX headings][] and uses [setext headings][] instead
  1006. (which works for `<h1>` and `<h2>` headings only).
  1007. * avoids [inline links][] and uses [reference links][] instead.
  1008. * avoids [fenced code blocks][] and uses [indented code blocks][] instead.
  1009. [ATX headings]: https://github.github.com/gfm/#atx-headings
  1010. [setext headings]: https://github.github.com/gfm/#setext-headings
  1011. [inline links]: https://github.github.com/gfm/#inline-link
  1012. [reference links]: https://github.github.com/gfm/#reference-link
  1013. [fenced code blocks]: https://github.github.com/gfm/#fenced-code-blocks
  1014. [indented code blocks]: https://github.github.com/gfm/#indented-code-blocks
  1015. *Matthias St. Pierre*
  1016. * The test suite is changed to preserve results of each test recipe.
  1017. A new directory test-runs/ with subdirectories named like the
  1018. test recipes are created in the build tree for this purpose.
  1019. *Richard Levitte*
  1020. * Added an implementation of CMP and CRMF (RFC 4210, RFC 4211 RFC 6712).
  1021. This adds `crypto/cmp/`, `crpyto/crmf/`, `apps/cmp.c`, and `test/cmp_*`.
  1022. See L<openssl-cmp(1)> and L<OSSL_CMP_exec_IR_ses(3)> as starting points.
  1023. *David von Oheimb, Martin Peylo*
  1024. * Generalized the HTTP client code from `crypto/ocsp/` into `crpyto/http/`.
  1025. It supports arbitrary request and response content types, GET redirection,
  1026. TLS, connections via HTTP(S) proxies, connections and exchange via
  1027. user-defined BIOs (allowing implicit connections), persistent connections,
  1028. and timeout checks. See L<OSSL_HTTP_transfer(3)> etc. for details.
  1029. The legacy OCSP-focused (and only partly documented) API
  1030. is retained for backward compatibility, while most of it is deprecated.
  1031. *David von Oheimb*
  1032. * Added `util/check-format.pl`, a tool for checking adherence to the
  1033. OpenSSL coding style <https://www.openssl.org/policies/codingstyle.html>.
  1034. The checks performed are incomplete and yield some false positives.
  1035. Still the tool should be useful for detecting most typical glitches.
  1036. *David von Oheimb*
  1037. * `BIO_do_connect()` and `BIO_do_handshake()` have been extended:
  1038. If domain name resolution yields multiple IP addresses all of them are tried
  1039. after `connect()` failures.
  1040. *David von Oheimb*
  1041. * All of the low-level RSA functions have been deprecated.
  1042. *Paul Dale*
  1043. * X509 certificates signed using SHA1 are no longer allowed at security
  1044. level 1 and above.
  1045. *Kurt Roeckx*
  1046. * The command line utilities dhparam, dsa, gendsa and dsaparam have been
  1047. modified to use PKEY APIs. These commands are now in maintenance mode
  1048. and no new features will be added to them.
  1049. *Paul Dale*
  1050. * The command line utility rsautl has been deprecated.
  1051. *Paul Dale*
  1052. * The command line utilities genrsa and rsa have been modified to use PKEY
  1053. APIs. They now write PKCS#8 keys by default. These commands are now in
  1054. maintenance mode and no new features will be added to them.
  1055. *Paul Dale*
  1056. * All of the low-level DH functions have been deprecated.
  1057. *Paul Dale and Matt Caswell*
  1058. * All of the low-level DSA functions have been deprecated.
  1059. *Paul Dale*
  1060. * Reworked the treatment of EC EVP_PKEYs with the SM2 curve to
  1061. automatically become EVP_PKEY_SM2 rather than EVP_PKEY_EC.
  1062. *Richard Levitte*
  1063. * Deprecated low-level ECDH and ECDSA functions.
  1064. *Paul Dale*
  1065. * Deprecated EVP_PKEY_decrypt_old() and EVP_PKEY_encrypt_old().
  1066. *Richard Levitte*
  1067. * Enhanced the documentation of EVP_PKEY_get_size(), EVP_PKEY_get_bits()
  1068. and EVP_PKEY_get_security_bits(). Especially EVP_PKEY_get_size() needed
  1069. a new formulation to include all the things it can be used for,
  1070. as well as words of caution.
  1071. *Richard Levitte*
  1072. * The SSL_CTX_set_tlsext_ticket_key_cb(3) function has been deprecated.
  1073. *Paul Dale*
  1074. * All of the low-level HMAC functions have been deprecated.
  1075. *Paul Dale and David von Oheimb*
  1076. * Over two thousand fixes were made to the documentation, including:
  1077. - Common options (such as -rand/-writerand, TLS version control, etc)
  1078. were refactored and point to newly-enhanced descriptions in openssl.pod.
  1079. - Added style conformance for all options (with help from Richard Levitte),
  1080. documented all reported missing options, added a CI build to check
  1081. that all options are documented and that no unimplemented options
  1082. are documented.
  1083. - Documented some internals, such as all use of environment variables.
  1084. - Addressed all internal broken L<> references.
  1085. *Rich Salz*
  1086. * All of the low-level CMAC functions have been deprecated.
  1087. *Paul Dale*
  1088. * The low-level MD2, MD4, MD5, MDC2, RIPEMD160 and Whirlpool digest
  1089. functions have been deprecated.
  1090. *Paul Dale and David von Oheimb*
  1091. * Corrected the documentation of the return values from the `EVP_DigestSign*`
  1092. set of functions. The documentation mentioned negative values for some
  1093. errors, but this was never the case, so the mention of negative values
  1094. was removed.
  1095. Code that followed the documentation and thereby check with something
  1096. like `EVP_DigestSignInit(...) <= 0` will continue to work undisturbed.
  1097. *Richard Levitte*
  1098. * All of the low-level cipher functions have been deprecated.
  1099. *Matt Caswell and Paul Dale*
  1100. * Removed include/openssl/opensslconf.h.in and replaced it with
  1101. include/openssl/configuration.h.in, which differs in not including
  1102. <openssl/macros.h>. A short header include/openssl/opensslconf.h
  1103. was added to include both.
  1104. This allows internal hacks where one might need to modify the set
  1105. of configured macros, for example this if deprecated symbols are
  1106. still supposed to be available internally:
  1107. #include <openssl/configuration.h>
  1108. #undef OPENSSL_NO_DEPRECATED
  1109. #define OPENSSL_SUPPRESS_DEPRECATED
  1110. #include <openssl/macros.h>
  1111. This should not be used by applications that use the exported
  1112. symbols, as that will lead to linking errors.
  1113. *Richard Levitte*
  1114. * Fixed an overflow bug in the x64_64 Montgomery squaring procedure
  1115. used in exponentiation with 512-bit moduli. No EC algorithms are
  1116. affected. Analysis suggests that attacks against 2-prime RSA1024,
  1117. 3-prime RSA1536, and DSA1024 as a result of this defect would be very
  1118. difficult to perform and are not believed likely. Attacks against DH512
  1119. are considered just feasible. However, for an attack the target would
  1120. have to re-use the DH512 private key, which is not recommended anyway.
  1121. Also applications directly using the low-level API BN_mod_exp may be
  1122. affected if they use BN_FLG_CONSTTIME.
  1123. ([CVE-2019-1551])
  1124. *Andy Polyakov*
  1125. * Most memory-debug features have been deprecated, and the functionality
  1126. replaced with no-ops.
  1127. *Rich Salz*
  1128. * Added documentation for the STACK API.
  1129. *Rich Salz*
  1130. * Introduced a new method type and API, OSSL_ENCODER, to represent
  1131. generic encoders. These do the same sort of job that PEM writers
  1132. and d2i functions do, but with support for methods supplied by
  1133. providers, and the possibility for providers to support other
  1134. formats as well.
  1135. *Richard Levitte*
  1136. * Introduced a new method type and API, OSSL_DECODER, to represent
  1137. generic decoders. These do the same sort of job that PEM readers
  1138. and i2d functions do, but with support for methods supplied by
  1139. providers, and the possibility for providers to support other
  1140. formats as well.
  1141. *Richard Levitte*
  1142. * Added a .pragma directive to the syntax of configuration files, to
  1143. allow varying behavior in a supported and predictable manner.
  1144. Currently added pragma:
  1145. .pragma dollarid:on
  1146. This allows dollar signs to be a keyword character unless it's
  1147. followed by a opening brace or parenthesis. This is useful for
  1148. platforms where dollar signs are commonly used in names, such as
  1149. volume names and system directory names on VMS.
  1150. *Richard Levitte*
  1151. * Added functionality to create an EVP_PKEY from user data.
  1152. *Richard Levitte*
  1153. * Change the interpretation of the '--api' configuration option to
  1154. mean that this is a desired API compatibility level with no
  1155. further meaning. The previous interpretation, that this would
  1156. also mean to remove all deprecated symbols up to and including
  1157. the given version, no requires that 'no-deprecated' is also used
  1158. in the configuration.
  1159. When building applications, the desired API compatibility level
  1160. can be set with the OPENSSL_API_COMPAT macro like before. For
  1161. API compatibility version below 3.0, the old style numerical
  1162. value is valid as before, such as -DOPENSSL_API_COMPAT=0x10100000L.
  1163. For version 3.0 and on, the value is expected to be the decimal
  1164. value calculated from the major and minor version like this:
  1165. MAJOR * 10000 + MINOR * 100
  1166. Examples:
  1167. -DOPENSSL_API_COMPAT=30000 For 3.0
  1168. -DOPENSSL_API_COMPAT=30200 For 3.2
  1169. To hide declarations that are deprecated up to and including the
  1170. given API compatibility level, -DOPENSSL_NO_DEPRECATED must be
  1171. given when building the application as well.
  1172. *Richard Levitte*
  1173. * Added the X509_LOOKUP_METHOD called X509_LOOKUP_store, to allow
  1174. access to certificate and CRL stores via URIs and OSSL_STORE
  1175. loaders.
  1176. This adds the following functions:
  1177. - X509_LOOKUP_store()
  1178. - X509_STORE_load_file()
  1179. - X509_STORE_load_path()
  1180. - X509_STORE_load_store()
  1181. - SSL_add_store_cert_subjects_to_stack()
  1182. - SSL_CTX_set_default_verify_store()
  1183. - SSL_CTX_load_verify_file()
  1184. - SSL_CTX_load_verify_dir()
  1185. - SSL_CTX_load_verify_store()
  1186. *Richard Levitte*
  1187. * Added a new method to gather entropy on VMS, based on SYS$GET_ENTROPY.
  1188. The presence of this system service is determined at run-time.
  1189. *Richard Levitte*
  1190. * Added functionality to create an EVP_PKEY context based on data
  1191. for methods from providers. This takes an algorithm name and a
  1192. property query string and simply stores them, with the intent
  1193. that any operation that uses this context will use those strings
  1194. to fetch the needed methods implicitly, thereby making the port
  1195. of application written for pre-3.0 OpenSSL easier.
  1196. *Richard Levitte*
  1197. * The undocumented function NCONF_WIN32() has been deprecated; for
  1198. conversion details see the HISTORY section of doc/man5/config.pod
  1199. *Rich Salz*
  1200. * Introduced the new functions EVP_DigestSignInit_ex() and
  1201. EVP_DigestVerifyInit_ex(). The macros EVP_DigestSignUpdate() and
  1202. EVP_DigestVerifyUpdate() have been converted to functions. See the man
  1203. pages for further details.
  1204. *Matt Caswell*
  1205. * Over two thousand fixes were made to the documentation, including:
  1206. adding missing command flags, better style conformance, documentation
  1207. of internals, etc.
  1208. *Rich Salz, Richard Levitte*
  1209. * s390x assembly pack: add hardware-support for P-256, P-384, P-521,
  1210. X25519, X448, Ed25519 and Ed448.
  1211. *Patrick Steuer*
  1212. * Print all values for a PKCS#12 attribute with 'openssl pkcs12', not just
  1213. the first value.
  1214. *Jon Spillett*
  1215. * Deprecated the public definition of `ERR_STATE` as well as the function
  1216. `ERR_get_state()`. This is done in preparation of making `ERR_STATE` an
  1217. opaque type.
  1218. *Richard Levitte*
  1219. * Added ERR functionality to give callers access to the stored function
  1220. names that have replaced the older function code based functions.
  1221. New functions are ERR_peek_error_func(), ERR_peek_last_error_func(),
  1222. ERR_peek_error_data(), ERR_peek_last_error_data(), ERR_get_error_all(),
  1223. ERR_peek_error_all() and ERR_peek_last_error_all().
  1224. Deprecate ERR functions ERR_get_error_line(), ERR_get_error_line_data(),
  1225. ERR_peek_error_line_data(), ERR_peek_last_error_line_data() and
  1226. ERR_func_error_string().
  1227. *Richard Levitte*
  1228. * Extended testing to be verbose for failing tests only. The make variables
  1229. VERBOSE_FAILURE or VF can be used to enable this:
  1230. $ make VF=1 test # Unix
  1231. $ mms /macro=(VF=1) test ! OpenVMS
  1232. $ nmake VF=1 test # Windows
  1233. *Richard Levitte*
  1234. * Added the `-copy_extensions` option to the `x509` command for use with
  1235. `-req` and `-x509toreq`. When given with the `copy` or `copyall` argument,
  1236. all extensions in the request are copied to the certificate or vice versa.
  1237. *David von Oheimb*, *Kirill Stefanenkov <kirill_stefanenkov@rambler.ru>*
  1238. * Added the `-copy_extensions` option to the `req` command for use with
  1239. `-x509`. When given with the `copy` or `copyall` argument,
  1240. all extensions in the certification request are copied to the certificate.
  1241. *David von Oheimb*
  1242. * The `x509`, `req`, and `ca` commands now make sure that X.509v3 certificates
  1243. they generate are by default RFC 5280 compliant in the following sense:
  1244. There is a subjectKeyIdentifier extension with a hash value of the public key
  1245. and for not self-signed certs there is an authorityKeyIdentifier extension
  1246. with a keyIdentifier field or issuer information identifying the signing key.
  1247. This is done unless some configuration overrides the new default behavior,
  1248. such as `subjectKeyIdentifier = none` and `authorityKeyIdentifier = none`.
  1249. *David von Oheimb*
  1250. * Added several checks to `X509_verify_cert()` according to requirements in
  1251. RFC 5280 in case `X509_V_FLAG_X509_STRICT` is set
  1252. (which may be done by using the CLI option `-x509_strict`):
  1253. * The basicConstraints of CA certificates must be marked critical.
  1254. * CA certificates must explicitly include the keyUsage extension.
  1255. * If a pathlenConstraint is given the key usage keyCertSign must be allowed.
  1256. * The issuer name of any certificate must not be empty.
  1257. * The subject name of CA certs, certs with keyUsage crlSign,
  1258. and certs without subjectAlternativeName must not be empty.
  1259. * If a subjectAlternativeName extension is given it must not be empty.
  1260. * The signatureAlgorithm field and the cert signature must be consistent.
  1261. * Any given authorityKeyIdentifier and any given subjectKeyIdentifier
  1262. must not be marked critical.
  1263. * The authorityKeyIdentifier must be given for X.509v3 certs
  1264. unless they are self-signed.
  1265. * The subjectKeyIdentifier must be given for all X.509v3 CA certs.
  1266. *David von Oheimb*
  1267. * Certificate verification using `X509_verify_cert()` meanwhile rejects EC keys
  1268. with explicit curve parameters (specifiedCurve) as required by RFC 5480.
  1269. *Tomáš Mráz*
  1270. * For built-in EC curves, ensure an EC_GROUP built from the curve name is
  1271. used even when parsing explicit parameters, when loading a encoded key
  1272. or calling `EC_GROUP_new_from_ecpkparameters()`/
  1273. `EC_GROUP_new_from_ecparameters()`.
  1274. This prevents bypass of security hardening and performance gains,
  1275. especially for curves with specialized EC_METHODs.
  1276. By default, if a key encoded with explicit parameters is loaded and later
  1277. encoded, the output is still encoded with explicit parameters, even if
  1278. internally a "named" EC_GROUP is used for computation.
  1279. *Nicola Tuveri*
  1280. * Compute ECC cofactors if not provided during EC_GROUP construction. Before
  1281. this change, EC_GROUP_set_generator would accept order and/or cofactor as
  1282. NULL. After this change, only the cofactor parameter can be NULL. It also
  1283. does some minimal sanity checks on the passed order.
  1284. ([CVE-2019-1547])
  1285. *Billy Bob Brumley*
  1286. * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
  1287. An attack is simple, if the first CMS_recipientInfo is valid but the
  1288. second CMS_recipientInfo is chosen ciphertext. If the second
  1289. recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
  1290. encryption key will be replaced by garbage, and the message cannot be
  1291. decoded, but if the RSA decryption fails, the correct encryption key is
  1292. used and the recipient will not notice the attack.
  1293. As a work around for this potential attack the length of the decrypted
  1294. key must be equal to the cipher default key length, in case the
  1295. certificate is not given and all recipientInfo are tried out.
  1296. The old behaviour can be re-enabled in the CMS code by setting the
  1297. CMS_DEBUG_DECRYPT flag.
  1298. *Bernd Edlinger*
  1299. * Early start up entropy quality from the DEVRANDOM seed source has been
  1300. improved for older Linux systems. The RAND subsystem will wait for
  1301. /dev/random to be producing output before seeding from /dev/urandom.
  1302. The seeded state is stored for future library initialisations using
  1303. a system global shared memory segment. The shared memory identifier
  1304. can be configured by defining OPENSSL_RAND_SEED_DEVRANDOM_SHM_ID to
  1305. the desired value. The default identifier is 114.
  1306. *Paul Dale*
  1307. * Revised BN_generate_prime_ex to not avoid factors 2..17863 in p-1
  1308. when primes for RSA keys are computed.
  1309. Since we previously always generated primes == 2 (mod 3) for RSA keys,
  1310. the 2-prime and 3-prime RSA modules were easy to distinguish, since
  1311. `N = p*q = 1 (mod 3)`, but `N = p*q*r = 2 (mod 3)`. Therefore, fingerprinting
  1312. 2-prime vs. 3-prime RSA keys was possible by computing N mod 3.
  1313. This avoids possible fingerprinting of newly generated RSA modules.
  1314. *Bernd Edlinger*
  1315. * Correct the extended master secret constant on EBCDIC systems. Without this
  1316. fix TLS connections between an EBCDIC system and a non-EBCDIC system that
  1317. negotiate EMS will fail. Unfortunately this also means that TLS connections
  1318. between EBCDIC systems with this fix, and EBCDIC systems without this
  1319. fix will fail if they negotiate EMS.
  1320. *Matt Caswell*
  1321. * Changed the library initialisation so that the config file is now loaded
  1322. by default. This was already the case for libssl. It now occurs for both
  1323. libcrypto and libssl. Use the OPENSSL_INIT_NO_LOAD_CONFIG option to
  1324. `OPENSSL_init_crypto()` to suppress automatic loading of a config file.
  1325. *Matt Caswell*
  1326. * Introduced new error raising macros, `ERR_raise()` and `ERR_raise_data()`,
  1327. where the former acts as a replacement for `ERR_put_error()`, and the
  1328. latter replaces the combination `ERR_put_error()` + `ERR_add_error_data()`.
  1329. `ERR_raise_data()` adds more flexibility by taking a format string and
  1330. an arbitrary number of arguments following it, to be processed with
  1331. `BIO_snprintf()`.
  1332. *Richard Levitte*
  1333. * Introduced a new function, `OSSL_PROVIDER_available()`, which can be used
  1334. to check if a named provider is loaded and available. When called, it
  1335. will also activate all fallback providers if such are still present.
  1336. *Richard Levitte*
  1337. * Enforce a minimum DH modulus size of 512 bits.
  1338. *Bernd Edlinger*
  1339. * Changed DH parameters to generate the order q subgroup instead of 2q.
  1340. Previously generated DH parameters are still accepted by DH_check
  1341. but DH_generate_key works around that by clearing bit 0 of the
  1342. private key for those. This avoids leaking bit 0 of the private key.
  1343. *Bernd Edlinger*
  1344. * Significantly reduce secure memory usage by the randomness pools.
  1345. *Paul Dale*
  1346. * `{CRYPTO,OPENSSL}_mem_debug_{push,pop}` are now no-ops and have been
  1347. deprecated.
  1348. *Rich Salz*
  1349. * A new type, EVP_KEYEXCH, has been introduced to represent key exchange
  1350. algorithms. An implementation of a key exchange algorithm can be obtained
  1351. by using the function EVP_KEYEXCH_fetch(). An EVP_KEYEXCH algorithm can be
  1352. used in a call to EVP_PKEY_derive_init_ex() which works in a similar way to
  1353. the older EVP_PKEY_derive_init() function. See the man pages for the new
  1354. functions for further details.
  1355. *Matt Caswell*
  1356. * The EVP_PKEY_CTX_set_dh_pad() macro has now been converted to a function.
  1357. *Matt Caswell*
  1358. * Removed the function names from error messages and deprecated the
  1359. xxx_F_xxx define's.
  1360. *Richard Levitte*
  1361. * Removed NextStep support and the macro OPENSSL_UNISTD
  1362. *Rich Salz*
  1363. * Removed DES_check_key. Also removed OPENSSL_IMPLEMENT_GLOBAL,
  1364. OPENSSL_GLOBAL_REF, OPENSSL_DECLARE_GLOBAL.
  1365. Also removed "export var as function" capability; we do not export
  1366. variables, only functions.
  1367. *Rich Salz*
  1368. * RC5_32_set_key has been changed to return an int type, with 0 indicating
  1369. an error and 1 indicating success. In previous versions of OpenSSL this
  1370. was a void type. If a key was set longer than the maximum possible this
  1371. would crash.
  1372. *Matt Caswell*
  1373. * Support SM2 signing and verification schemes with X509 certificate.
  1374. *Paul Yang*
  1375. * Use SHA256 as the default digest for TS query in the `ts` app.
  1376. *Tomáš Mráz*
  1377. * Change PBKDF2 to conform to SP800-132 instead of the older PKCS5 RFC2898.
  1378. *Shane Lontis*
  1379. * Default cipher lists/suites are now available via a function, the
  1380. #defines are deprecated.
  1381. *Todd Short*
  1382. * Add target VC-WIN32-UWP, VC-WIN64A-UWP, VC-WIN32-ARM-UWP and
  1383. VC-WIN64-ARM-UWP in Windows OneCore target for making building libraries
  1384. for Windows Store apps easier. Also, the "no-uplink" option has been added.
  1385. *Kenji Mouri*
  1386. * Join the directories crypto/x509 and crypto/x509v3
  1387. *Richard Levitte*
  1388. * Added command 'openssl kdf' that uses the EVP_KDF API.
  1389. *Shane Lontis*
  1390. * Added command 'openssl mac' that uses the EVP_MAC API.
  1391. *Shane Lontis*
  1392. * Added OPENSSL_info() to get diverse built-in OpenSSL data, such
  1393. as default directories. Also added the command 'openssl info'
  1394. for scripting purposes.
  1395. *Richard Levitte*
  1396. * The functions AES_ige_encrypt() and AES_bi_ige_encrypt() have been
  1397. deprecated.
  1398. *Matt Caswell*
  1399. * Add prediction resistance to the DRBG reseeding process.
  1400. *Paul Dale*
  1401. * Limit the number of blocks in a data unit for AES-XTS to 2^20 as
  1402. mandated by IEEE Std 1619-2018.
  1403. *Paul Dale*
  1404. * Added newline escaping functionality to a filename when using openssl dgst.
  1405. This output format is to replicate the output format found in the `*sum`
  1406. checksum programs. This aims to preserve backward compatibility.
  1407. *Matt Eaton, Richard Levitte, and Paul Dale*
  1408. * Removed the heartbeat message in DTLS feature, as it has very
  1409. little usage and doesn't seem to fulfill a valuable purpose.
  1410. The configuration option is now deprecated.
  1411. *Richard Levitte*
  1412. * Changed the output of 'openssl {digestname} < file' to display the
  1413. digest name in its output.
  1414. *Richard Levitte*
  1415. * Added a new generic trace API which provides support for enabling
  1416. instrumentation through trace output.
  1417. *Richard Levitte & Matthias St. Pierre*
  1418. * Added build tests for C++. These are generated files that only do one
  1419. thing, to include one public OpenSSL head file each. This tests that
  1420. the public header files can be usefully included in a C++ application.
  1421. This test isn't enabled by default. It can be enabled with the option
  1422. 'enable-buildtest-c++'.
  1423. *Richard Levitte*
  1424. * Added KB KDF (EVP_KDF_KB) to EVP_KDF.
  1425. *Robbie Harwood*
  1426. * Added SSH KDF (EVP_KDF_SSHKDF) and KRB5 KDF (EVP_KDF_KRB5KDF) to EVP_KDF.
  1427. *Simo Sorce*
  1428. * Added Single Step KDF (EVP_KDF_SS), X963 KDF, and X942 KDF to EVP_KDF.
  1429. *Shane Lontis*
  1430. * Added KMAC to EVP_MAC.
  1431. *Shane Lontis*
  1432. * Added property based algorithm implementation selection framework to
  1433. the core.
  1434. *Paul Dale*
  1435. * Added SCA hardening for modular field inversion in EC_GROUP through
  1436. a new dedicated field_inv() pointer in EC_METHOD.
  1437. This also addresses a leakage affecting conversions from projective
  1438. to affine coordinates.
  1439. *Billy Bob Brumley, Nicola Tuveri*
  1440. * Added EVP_KDF, an EVP layer KDF API, to simplify adding KDF and PRF
  1441. implementations. This includes an EVP_PKEY to EVP_KDF bridge for
  1442. those algorithms that were already supported through the EVP_PKEY API
  1443. (scrypt, TLS1 PRF and HKDF). The low-level KDF functions for PBKDF2
  1444. and scrypt are now wrappers that call EVP_KDF.
  1445. *David Makepeace*
  1446. * Build devcrypto engine as a dynamic engine.
  1447. *Eneas U de Queiroz*
  1448. * Add keyed BLAKE2 to EVP_MAC.
  1449. *Antoine Salon*
  1450. * Fix a bug in the computation of the endpoint-pair shared secret used
  1451. by DTLS over SCTP. This breaks interoperability with older versions
  1452. of OpenSSL like OpenSSL 1.1.0 and OpenSSL 1.0.2. There is a runtime
  1453. switch SSL_MODE_DTLS_SCTP_LABEL_LENGTH_BUG (off by default) enabling
  1454. interoperability with such broken implementations. However, enabling
  1455. this switch breaks interoperability with correct implementations.
  1456. * Fix a use after free bug in d2i_X509_PUBKEY when overwriting a
  1457. re-used X509_PUBKEY object if the second PUBKEY is malformed.
  1458. *Bernd Edlinger*
  1459. * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0().
  1460. *Richard Levitte*
  1461. * Changed the license to the Apache License v2.0.
  1462. *Richard Levitte*
  1463. * Switch to a new version scheme using three numbers MAJOR.MINOR.PATCH.
  1464. - Major releases (indicated by incrementing the MAJOR release number)
  1465. may introduce incompatible API/ABI changes.
  1466. - Minor releases (indicated by incrementing the MINOR release number)
  1467. may introduce new features but retain API/ABI compatibility.
  1468. - Patch releases (indicated by incrementing the PATCH number)
  1469. are intended for bug fixes and other improvements of existing
  1470. features only (like improving performance or adding documentation)
  1471. and retain API/ABI compatibility.
  1472. *Richard Levitte*
  1473. * Add support for RFC5297 SIV mode (siv128), including AES-SIV.
  1474. *Todd Short*
  1475. * Remove the 'dist' target and add a tarball building script. The
  1476. 'dist' target has fallen out of use, and it shouldn't be
  1477. necessary to configure just to create a source distribution.
  1478. *Richard Levitte*
  1479. * Recreate the OS390-Unix config target. It no longer relies on a
  1480. special script like it did for OpenSSL pre-1.1.0.
  1481. *Richard Levitte*
  1482. * Instead of having the source directories listed in Configure, add
  1483. a 'build.info' keyword SUBDIRS to indicate what sub-directories to
  1484. look into.
  1485. *Richard Levitte*
  1486. * Add GMAC to EVP_MAC.
  1487. *Paul Dale*
  1488. * Ported the HMAC, CMAC and SipHash EVP_PKEY_METHODs to EVP_MAC.
  1489. *Richard Levitte*
  1490. * Added EVP_MAC, an EVP layer MAC API, to simplify adding MAC
  1491. implementations. This includes a generic EVP_PKEY to EVP_MAC bridge,
  1492. to facilitate the continued use of MACs through raw private keys in
  1493. functionality such as `EVP_DigestSign*` and `EVP_DigestVerify*`.
  1494. *Richard Levitte*
  1495. * Deprecate ECDH_KDF_X9_62().
  1496. *Antoine Salon*
  1497. * Added EVP_PKEY_ECDH_KDF_X9_63 and ecdh_KDF_X9_63() as replacements for
  1498. the EVP_PKEY_ECDH_KDF_X9_62 KDF type and ECDH_KDF_X9_62(). The old names
  1499. are retained for backwards compatibility.
  1500. *Antoine Salon*
  1501. * AES-XTS mode now enforces that its two keys are different to mitigate
  1502. the attacked described in "Efficient Instantiations of Tweakable
  1503. Blockciphers and Refinements to Modes OCB and PMAC" by Phillip Rogaway.
  1504. Details of this attack can be obtained from:
  1505. <http://web.cs.ucdavis.edu/%7Erogaway/papers/offsets.pdf>
  1506. *Paul Dale*
  1507. * Rename the object files, i.e. give them other names than in previous
  1508. versions. Their names now include the name of the final product, as
  1509. well as its type mnemonic (bin, lib, shlib).
  1510. *Richard Levitte*
  1511. * Added new option for 'openssl list', '-objects', which will display the
  1512. list of built in objects, i.e. OIDs with names.
  1513. *Richard Levitte*
  1514. * Added the options `-crl_lastupdate` and `-crl_nextupdate` to `openssl ca`,
  1515. allowing the `lastUpdate` and `nextUpdate` fields in the generated CRL to
  1516. be set explicitly.
  1517. *Chris Novakovic*
  1518. * Added support for Linux Kernel TLS data-path. The Linux Kernel data-path
  1519. improves application performance by removing data copies and providing
  1520. applications with zero-copy system calls such as sendfile and splice.
  1521. *Boris Pismenny*
  1522. * The SSL option SSL_OP_CLEANSE_PLAINTEXT is introduced.
  1523. *Martin Elshuber*
  1524. * `PKCS12_parse` now maintains the order of the parsed certificates
  1525. when outputting them via `*ca` (rather than reversing it).
  1526. *David von Oheimb*
  1527. * Deprecated pthread fork support methods.
  1528. *Randall S. Becker*
  1529. * Added support for FFDHE key exchange in TLS 1.3.
  1530. *Raja Ashok*
  1531. * Added a new concept for OpenSSL plugability: providers. This
  1532. functionality is designed to replace the ENGINE API and ENGINE
  1533. implementations, and to be much more dynamic, allowing provider
  1534. authors to introduce new algorithms among other things, as long as
  1535. there's an API that supports the algorithm type.
  1536. With this concept comes a new core API for interaction between
  1537. libcrypto and provider implementations. Public libcrypto functions
  1538. that want to use providers do so through this core API.
  1539. The main documentation for this core API is found in
  1540. doc/man7/provider.pod, doc/man7/provider-base.pod, and they in turn
  1541. refer to other manuals describing the API specific for supported
  1542. algorithm types (also called operations).
  1543. *The OpenSSL team*
  1544. OpenSSL 1.1.1
  1545. -------------
  1546. ### Changes between 1.1.1l and 1.1.1m [xx XXX xxxx]
  1547. * Avoid loading of a dynamic engine twice.
  1548. *Bernd Edlinger*
  1549. * Prioritise DANE TLSA issuer certs over peer certs
  1550. *Viktor Dukhovni*
  1551. * Fixed random API for MacOS prior to 10.12
  1552. These MacOS versions don't support the CommonCrypto APIs
  1553. *Lenny Primak*
  1554. ### Changes between 1.1.1k and 1.1.1l [24 Aug 2021]
  1555. * Fixed an SM2 Decryption Buffer Overflow.
  1556. In order to decrypt SM2 encrypted data an application is expected to
  1557. call the API function EVP_PKEY_decrypt(). Typically an application will
  1558. call this function twice. The first time, on entry, the "out" parameter
  1559. can be NULL and, on exit, the "outlen" parameter is populated with the
  1560. buffer size required to hold the decrypted plaintext. The application
  1561. can then allocate a sufficiently sized buffer and call EVP_PKEY_decrypt()
  1562. again, but this time passing a non-NULL value for the "out" parameter.
  1563. A bug in the implementation of the SM2 decryption code means that the
  1564. calculation of the buffer size required to hold the plaintext returned
  1565. by the first call to EVP_PKEY_decrypt() can be smaller than the actual
  1566. size required by the second call. This can lead to a buffer overflow
  1567. when EVP_PKEY_decrypt() is called by the application a second time with
  1568. a buffer that is too small.
  1569. A malicious attacker who is able present SM2 content for decryption to
  1570. an application could cause attacker chosen data to overflow the buffer
  1571. by up to a maximum of 62 bytes altering the contents of other data held
  1572. after the buffer, possibly changing application behaviour or causing
  1573. the application to crash. The location of the buffer is application
  1574. dependent but is typically heap allocated.
  1575. ([CVE-2021-3711])
  1576. *Matt Caswell*
  1577. * Fixed various read buffer overruns processing ASN.1 strings
  1578. ASN.1 strings are represented internally within OpenSSL as an ASN1_STRING
  1579. structure which contains a buffer holding the string data and a field
  1580. holding the buffer length. This contrasts with normal C strings which
  1581. are represented as a buffer for the string data which is terminated
  1582. with a NUL (0) byte.
  1583. Although not a strict requirement, ASN.1 strings that are parsed using
  1584. OpenSSL's own "d2i" functions (and other similar parsing functions) as
  1585. well as any string whose value has been set with the ASN1_STRING_set()
  1586. function will additionally NUL terminate the byte array in the
  1587. ASN1_STRING structure.
  1588. However, it is possible for applications to directly construct valid
  1589. ASN1_STRING structures which do not NUL terminate the byte array by
  1590. directly setting the "data" and "length" fields in the ASN1_STRING
  1591. array. This can also happen by using the ASN1_STRING_set0() function.
  1592. Numerous OpenSSL functions that print ASN.1 data have been found to
  1593. assume that the ASN1_STRING byte array will be NUL terminated, even
  1594. though this is not guaranteed for strings that have been directly
  1595. constructed. Where an application requests an ASN.1 structure to be
  1596. printed, and where that ASN.1 structure contains ASN1_STRINGs that have
  1597. been directly constructed by the application without NUL terminating
  1598. the "data" field, then a read buffer overrun can occur.
  1599. The same thing can also occur during name constraints processing
  1600. of certificates (for example if a certificate has been directly
  1601. constructed by the application instead of loading it via the OpenSSL
  1602. parsing functions, and the certificate contains non NUL terminated
  1603. ASN1_STRING structures). It can also occur in the X509_get1_email(),
  1604. X509_REQ_get1_email() and X509_get1_ocsp() functions.
  1605. If a malicious actor can cause an application to directly construct an
  1606. ASN1_STRING and then process it through one of the affected OpenSSL
  1607. functions then this issue could be hit. This might result in a crash
  1608. (causing a Denial of Service attack). It could also result in the
  1609. disclosure of private memory contents (such as private keys, or
  1610. sensitive plaintext).
  1611. ([CVE-2021-3712])
  1612. *Matt Caswell*
  1613. ### Changes between 1.1.1j and 1.1.1k [25 Mar 2021]
  1614. * Fixed a problem with verifying a certificate chain when using the
  1615. X509_V_FLAG_X509_STRICT flag. This flag enables additional security checks of
  1616. the certificates present in a certificate chain. It is not set by default.
  1617. Starting from OpenSSL version 1.1.1h a check to disallow certificates in
  1618. the chain that have explicitly encoded elliptic curve parameters was added
  1619. as an additional strict check.
  1620. An error in the implementation of this check meant that the result of a
  1621. previous check to confirm that certificates in the chain are valid CA
  1622. certificates was overwritten. This effectively bypasses the check
  1623. that non-CA certificates must not be able to issue other certificates.
  1624. If a "purpose" has been configured then there is a subsequent opportunity
  1625. for checks that the certificate is a valid CA. All of the named "purpose"
  1626. values implemented in libcrypto perform this check. Therefore, where
  1627. a purpose is set the certificate chain will still be rejected even when the
  1628. strict flag has been used. A purpose is set by default in libssl client and
  1629. server certificate verification routines, but it can be overridden or
  1630. removed by an application.
  1631. In order to be affected, an application must explicitly set the
  1632. X509_V_FLAG_X509_STRICT verification flag and either not set a purpose
  1633. for the certificate verification or, in the case of TLS client or server
  1634. applications, override the default purpose.
  1635. ([CVE-2021-3450])
  1636. *Tomáš Mráz*
  1637. * Fixed an issue where an OpenSSL TLS server may crash if sent a maliciously
  1638. crafted renegotiation ClientHello message from a client. If a TLSv1.2
  1639. renegotiation ClientHello omits the signature_algorithms extension (where it
  1640. was present in the initial ClientHello), but includes a
  1641. signature_algorithms_cert extension then a NULL pointer dereference will
  1642. result, leading to a crash and a denial of service attack.
  1643. A server is only vulnerable if it has TLSv1.2 and renegotiation enabled
  1644. (which is the default configuration). OpenSSL TLS clients are not impacted by
  1645. this issue.
  1646. ([CVE-2021-3449])
  1647. *Peter Kästle and Samuel Sapalski*
  1648. ### Changes between 1.1.1i and 1.1.1j [16 Feb 2021]
  1649. * Fixed the X509_issuer_and_serial_hash() function. It attempts to
  1650. create a unique hash value based on the issuer and serial number data
  1651. contained within an X509 certificate. However, it was failing to correctly
  1652. handle any errors that may occur while parsing the issuer field (which might
  1653. occur if the issuer field is maliciously constructed). This may subsequently
  1654. result in a NULL pointer deref and a crash leading to a potential denial of
  1655. service attack.
  1656. ([CVE-2021-23841])
  1657. *Matt Caswell*
  1658. * Fixed the RSA_padding_check_SSLv23() function and the RSA_SSLV23_PADDING
  1659. padding mode to correctly check for rollback attacks. This is considered a
  1660. bug in OpenSSL 1.1.1 because it does not support SSLv2. In 1.0.2 this is
  1661. CVE-2021-23839.
  1662. *Matt Caswell*
  1663. Fixed the EVP_CipherUpdate, EVP_EncryptUpdate and EVP_DecryptUpdate
  1664. functions. Previously they could overflow the output length argument in some
  1665. cases where the input length is close to the maximum permissible length for
  1666. an integer on the platform. In such cases the return value from the function
  1667. call would be 1 (indicating success), but the output length value would be
  1668. negative. This could cause applications to behave incorrectly or crash.
  1669. ([CVE-2021-23840])
  1670. *Matt Caswell*
  1671. * Fixed SRP_Calc_client_key so that it runs in constant time. The previous
  1672. implementation called BN_mod_exp without setting BN_FLG_CONSTTIME. This
  1673. could be exploited in a side channel attack to recover the password. Since
  1674. the attack is local host only this is outside of the current OpenSSL
  1675. threat model and therefore no CVE is assigned.
  1676. Thanks to Mohammed Sabt and Daniel De Almeida Braga for reporting this
  1677. issue.
  1678. *Matt Caswell*
  1679. ### Changes between 1.1.1h and 1.1.1i [8 Dec 2020]
  1680. * Fixed NULL pointer deref in the GENERAL_NAME_cmp function
  1681. This function could crash if both GENERAL_NAMEs contain an EDIPARTYNAME.
  1682. If an attacker can control both items being compared then this could lead
  1683. to a possible denial of service attack. OpenSSL itself uses the
  1684. GENERAL_NAME_cmp function for two purposes:
  1685. 1) Comparing CRL distribution point names between an available CRL and a
  1686. CRL distribution point embedded in an X509 certificate
  1687. 2) When verifying that a timestamp response token signer matches the
  1688. timestamp authority name (exposed via the API functions
  1689. TS_RESP_verify_response and TS_RESP_verify_token)
  1690. ([CVE-2020-1971])
  1691. *Matt Caswell*
  1692. ### Changes between 1.1.1g and 1.1.1h [22 Sep 2020]
  1693. * Certificates with explicit curve parameters are now disallowed in
  1694. verification chains if the X509_V_FLAG_X509_STRICT flag is used.
  1695. *Tomáš Mráz*
  1696. * The 'MinProtocol' and 'MaxProtocol' configuration commands now silently
  1697. ignore TLS protocol version bounds when configuring DTLS-based contexts, and
  1698. conversely, silently ignore DTLS protocol version bounds when configuring
  1699. TLS-based contexts. The commands can be repeated to set bounds of both
  1700. types. The same applies with the corresponding "min_protocol" and
  1701. "max_protocol" command-line switches, in case some application uses both TLS
  1702. and DTLS.
  1703. SSL_CTX instances that are created for a fixed protocol version (e.g.
  1704. TLSv1_server_method()) also silently ignore version bounds. Previously
  1705. attempts to apply bounds to these protocol versions would result in an
  1706. error. Now only the "version-flexible" SSL_CTX instances are subject to
  1707. limits in configuration files in command-line options.
  1708. *Viktor Dukhovni*
  1709. * Handshake now fails if Extended Master Secret extension is dropped
  1710. on renegotiation.
  1711. *Tomáš Mráz*
  1712. * The Oracle Developer Studio compiler will start reporting deprecated APIs
  1713. ### Changes between 1.1.1f and 1.1.1g [21 Apr 2020]
  1714. * Fixed segmentation fault in SSL_check_chain()
  1715. Server or client applications that call the SSL_check_chain() function
  1716. during or after a TLS 1.3 handshake may crash due to a NULL pointer
  1717. dereference as a result of incorrect handling of the
  1718. "signature_algorithms_cert" TLS extension. The crash occurs if an invalid
  1719. or unrecognised signature algorithm is received from the peer. This could
  1720. be exploited by a malicious peer in a Denial of Service attack.
  1721. ([CVE-2020-1967])
  1722. *Benjamin Kaduk*
  1723. * Added AES consttime code for no-asm configurations
  1724. an optional constant time support for AES was added
  1725. when building openssl for no-asm.
  1726. Enable with: ./config no-asm -DOPENSSL_AES_CONST_TIME
  1727. Disable with: ./config no-asm -DOPENSSL_NO_AES_CONST_TIME
  1728. At this time this feature is by default disabled.
  1729. It will be enabled by default in 3.0.
  1730. *Bernd Edlinger*
  1731. ### Changes between 1.1.1e and 1.1.1f [31 Mar 2020]
  1732. * Revert the change of EOF detection while reading in libssl to avoid
  1733. regressions in applications depending on the current way of reporting
  1734. the EOF. As the existing method is not fully accurate the change to
  1735. reporting the EOF via SSL_ERROR_SSL is kept on the current development
  1736. branch and will be present in the 3.0 release.
  1737. *Tomáš Mráz*
  1738. * Revised BN_generate_prime_ex to not avoid factors 3..17863 in p-1
  1739. when primes for RSA keys are computed.
  1740. Since we previously always generated primes == 2 (mod 3) for RSA keys,
  1741. the 2-prime and 3-prime RSA modules were easy to distinguish, since
  1742. N = p*q = 1 (mod 3), but N = p*q*r = 2 (mod 3). Therefore, fingerprinting
  1743. 2-prime vs. 3-prime RSA keys was possible by computing N mod 3.
  1744. This avoids possible fingerprinting of newly generated RSA modules.
  1745. *Bernd Edlinger*
  1746. ### Changes between 1.1.1d and 1.1.1e [17 Mar 2020]
  1747. * Properly detect EOF while reading in libssl. Previously if we hit an EOF
  1748. while reading in libssl then we would report an error back to the
  1749. application (SSL_ERROR_SYSCALL) but errno would be 0. We now add
  1750. an error to the stack (which means we instead return SSL_ERROR_SSL) and
  1751. therefore give a hint as to what went wrong.
  1752. *Matt Caswell*
  1753. * Check that ed25519 and ed448 are allowed by the security level. Previously
  1754. signature algorithms not using an MD were not being checked that they were
  1755. allowed by the security level.
  1756. *Kurt Roeckx*
  1757. * Fixed SSL_get_servername() behaviour. The behaviour of SSL_get_servername()
  1758. was not quite right. The behaviour was not consistent between resumption
  1759. and normal handshakes, and also not quite consistent with historical
  1760. behaviour. The behaviour in various scenarios has been clarified and
  1761. it has been updated to make it match historical behaviour as closely as
  1762. possible.
  1763. *Matt Caswell*
  1764. * *[VMS only]* The header files that the VMS compilers include automatically,
  1765. `__DECC_INCLUDE_PROLOGUE.H` and `__DECC_INCLUDE_EPILOGUE.H`, use pragmas
  1766. that the C++ compiler doesn't understand. This is a shortcoming in the
  1767. compiler, but can be worked around with `__cplusplus` guards.
  1768. C++ applications that use OpenSSL libraries must be compiled using the
  1769. qualifier `/NAMES=(AS_IS,SHORTENED)` to be able to use all the OpenSSL
  1770. functions. Otherwise, only functions with symbols of less than 31
  1771. characters can be used, as the linker will not be able to successfully
  1772. resolve symbols with longer names.
  1773. *Richard Levitte*
  1774. * Added a new method to gather entropy on VMS, based on SYS$GET_ENTROPY.
  1775. The presence of this system service is determined at run-time.
  1776. *Richard Levitte*
  1777. * Print all values for a PKCS#12 attribute with 'openssl pkcs12', not just
  1778. the first value.
  1779. *Jon Spillett*
  1780. ### Changes between 1.1.1c and 1.1.1d [10 Sep 2019]
  1781. * Fixed a fork protection issue. OpenSSL 1.1.1 introduced a rewritten random
  1782. number generator (RNG). This was intended to include protection in the
  1783. event of a fork() system call in order to ensure that the parent and child
  1784. processes did not share the same RNG state. However, this protection was not
  1785. being used in the default case.
  1786. A partial mitigation for this issue is that the output from a high
  1787. precision timer is mixed into the RNG state so the likelihood of a parent
  1788. and child process sharing state is significantly reduced.
  1789. If an application already calls OPENSSL_init_crypto() explicitly using
  1790. OPENSSL_INIT_ATFORK then this problem does not occur at all.
  1791. ([CVE-2019-1549])
  1792. *Matthias St. Pierre*
  1793. * For built-in EC curves, ensure an EC_GROUP built from the curve name is
  1794. used even when parsing explicit parameters, when loading a encoded key
  1795. or calling `EC_GROUP_new_from_ecpkparameters()`/
  1796. `EC_GROUP_new_from_ecparameters()`.
  1797. This prevents bypass of security hardening and performance gains,
  1798. especially for curves with specialized EC_METHODs.
  1799. By default, if a key encoded with explicit parameters is loaded and later
  1800. encoded, the output is still encoded with explicit parameters, even if
  1801. internally a "named" EC_GROUP is used for computation.
  1802. *Nicola Tuveri*
  1803. * Compute ECC cofactors if not provided during EC_GROUP construction. Before
  1804. this change, EC_GROUP_set_generator would accept order and/or cofactor as
  1805. NULL. After this change, only the cofactor parameter can be NULL. It also
  1806. does some minimal sanity checks on the passed order.
  1807. ([CVE-2019-1547])
  1808. *Billy Bob Brumley*
  1809. * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
  1810. An attack is simple, if the first CMS_recipientInfo is valid but the
  1811. second CMS_recipientInfo is chosen ciphertext. If the second
  1812. recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
  1813. encryption key will be replaced by garbage, and the message cannot be
  1814. decoded, but if the RSA decryption fails, the correct encryption key is
  1815. used and the recipient will not notice the attack.
  1816. As a work around for this potential attack the length of the decrypted
  1817. key must be equal to the cipher default key length, in case the
  1818. certificate is not given and all recipientInfo are tried out.
  1819. The old behaviour can be re-enabled in the CMS code by setting the
  1820. CMS_DEBUG_DECRYPT flag.
  1821. ([CVE-2019-1563])
  1822. *Bernd Edlinger*
  1823. * Early start up entropy quality from the DEVRANDOM seed source has been
  1824. improved for older Linux systems. The RAND subsystem will wait for
  1825. /dev/random to be producing output before seeding from /dev/urandom.
  1826. The seeded state is stored for future library initialisations using
  1827. a system global shared memory segment. The shared memory identifier
  1828. can be configured by defining OPENSSL_RAND_SEED_DEVRANDOM_SHM_ID to
  1829. the desired value. The default identifier is 114.
  1830. *Paul Dale*
  1831. * Correct the extended master secret constant on EBCDIC systems. Without this
  1832. fix TLS connections between an EBCDIC system and a non-EBCDIC system that
  1833. negotiate EMS will fail. Unfortunately this also means that TLS connections
  1834. between EBCDIC systems with this fix, and EBCDIC systems without this
  1835. fix will fail if they negotiate EMS.
  1836. *Matt Caswell*
  1837. * Use Windows installation paths in the mingw builds
  1838. Mingw isn't a POSIX environment per se, which means that Windows
  1839. paths should be used for installation.
  1840. ([CVE-2019-1552])
  1841. *Richard Levitte*
  1842. * Changed DH_check to accept parameters with order q and 2q subgroups.
  1843. With order 2q subgroups the bit 0 of the private key is not secret
  1844. but DH_generate_key works around that by clearing bit 0 of the
  1845. private key for those. This avoids leaking bit 0 of the private key.
  1846. *Bernd Edlinger*
  1847. * Significantly reduce secure memory usage by the randomness pools.
  1848. *Paul Dale*
  1849. * Revert the DEVRANDOM_WAIT feature for Linux systems
  1850. The DEVRANDOM_WAIT feature added a select() call to wait for the
  1851. /dev/random device to become readable before reading from the
  1852. /dev/urandom device.
  1853. It turned out that this change had negative side effects on
  1854. performance which were not acceptable. After some discussion it
  1855. was decided to revert this feature and leave it up to the OS
  1856. resp. the platform maintainer to ensure a proper initialization
  1857. during early boot time.
  1858. *Matthias St. Pierre*
  1859. ### Changes between 1.1.1b and 1.1.1c [28 May 2019]
  1860. * Add build tests for C++. These are generated files that only do one
  1861. thing, to include one public OpenSSL head file each. This tests that
  1862. the public header files can be usefully included in a C++ application.
  1863. This test isn't enabled by default. It can be enabled with the option
  1864. 'enable-buildtest-c++'.
  1865. *Richard Levitte*
  1866. * Enable SHA3 pre-hashing for ECDSA and DSA.
  1867. *Patrick Steuer*
  1868. * Change the default RSA, DSA and DH size to 2048 bit instead of 1024.
  1869. This changes the size when using the `genpkey` command when no size is given.
  1870. It fixes an omission in earlier changes that changed all RSA, DSA and DH
  1871. generation commands to use 2048 bits by default.
  1872. *Kurt Roeckx*
  1873. * Reorganize the manual pages to consistently have RETURN VALUES,
  1874. EXAMPLES, SEE ALSO and HISTORY come in that order, and adjust
  1875. util/fix-doc-nits accordingly.
  1876. *Paul Yang, Joshua Lock*
  1877. * Add the missing accessor EVP_PKEY_get0_engine()
  1878. *Matt Caswell*
  1879. * Have commands like `s_client` and `s_server` output the signature scheme
  1880. along with other cipher suite parameters when debugging.
  1881. *Lorinczy Zsigmond*
  1882. * Make OPENSSL_config() error agnostic again.
  1883. *Richard Levitte*
  1884. * Do the error handling in RSA decryption constant time.
  1885. *Bernd Edlinger*
  1886. * Prevent over long nonces in ChaCha20-Poly1305.
  1887. ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input
  1888. for every encryption operation. RFC 7539 specifies that the nonce value
  1889. (IV) should be 96 bits (12 bytes). OpenSSL allows a variable nonce length
  1890. and front pads the nonce with 0 bytes if it is less than 12
  1891. bytes. However it also incorrectly allows a nonce to be set of up to 16
  1892. bytes. In this case only the last 12 bytes are significant and any
  1893. additional leading bytes are ignored.
  1894. It is a requirement of using this cipher that nonce values are
  1895. unique. Messages encrypted using a reused nonce value are susceptible to
  1896. serious confidentiality and integrity attacks. If an application changes
  1897. the default nonce length to be longer than 12 bytes and then makes a
  1898. change to the leading bytes of the nonce expecting the new value to be a
  1899. new unique nonce then such an application could inadvertently encrypt
  1900. messages with a reused nonce.
  1901. Additionally the ignored bytes in a long nonce are not covered by the
  1902. integrity guarantee of this cipher. Any application that relies on the
  1903. integrity of these ignored leading bytes of a long nonce may be further
  1904. affected. Any OpenSSL internal use of this cipher, including in SSL/TLS,
  1905. is safe because no such use sets such a long nonce value. However user
  1906. applications that use this cipher directly and set a non-default nonce
  1907. length to be longer than 12 bytes may be vulnerable.
  1908. This issue was reported to OpenSSL on 16th of March 2019 by Joran Dirk
  1909. Greef of Ronomon.
  1910. ([CVE-2019-1543])
  1911. *Matt Caswell*
  1912. * Add DEVRANDOM_WAIT feature for Linux systems
  1913. On older Linux systems where the getrandom() system call is not available,
  1914. OpenSSL normally uses the /dev/urandom device for seeding its CSPRNG.
  1915. Contrary to getrandom(), the /dev/urandom device will not block during
  1916. early boot when the kernel CSPRNG has not been seeded yet.
  1917. To mitigate this known weakness, use select() to wait for /dev/random to
  1918. become readable before reading from /dev/urandom.
  1919. * Ensure that SM2 only uses SM3 as digest algorithm
  1920. *Paul Yang*
  1921. ### Changes between 1.1.1a and 1.1.1b [26 Feb 2019]
  1922. * Change the info callback signals for the start and end of a post-handshake
  1923. message exchange in TLSv1.3. In 1.1.1/1.1.1a we used SSL_CB_HANDSHAKE_START
  1924. and SSL_CB_HANDSHAKE_DONE. Experience has shown that many applications get
  1925. confused by this and assume that a TLSv1.2 renegotiation has started. This
  1926. can break KeyUpdate handling. Instead we no longer signal the start and end
  1927. of a post handshake message exchange (although the messages themselves are
  1928. still signalled). This could break some applications that were expecting
  1929. the old signals. However without this KeyUpdate is not usable for many
  1930. applications.
  1931. *Matt Caswell*
  1932. ### Changes between 1.1.1 and 1.1.1a [20 Nov 2018]
  1933. * Timing vulnerability in DSA signature generation
  1934. The OpenSSL DSA signature algorithm has been shown to be vulnerable to a
  1935. timing side channel attack. An attacker could use variations in the signing
  1936. algorithm to recover the private key.
  1937. This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser.
  1938. ([CVE-2018-0734])
  1939. *Paul Dale*
  1940. * Timing vulnerability in ECDSA signature generation
  1941. The OpenSSL ECDSA signature algorithm has been shown to be vulnerable to a
  1942. timing side channel attack. An attacker could use variations in the signing
  1943. algorithm to recover the private key.
  1944. This issue was reported to OpenSSL on 25th October 2018 by Samuel Weiser.
  1945. ([CVE-2018-0735])
  1946. *Paul Dale*
  1947. * Fixed the issue that RAND_add()/RAND_seed() silently discards random input
  1948. if its length exceeds 4096 bytes. The limit has been raised to a buffer size
  1949. of two gigabytes and the error handling improved.
  1950. This issue was reported to OpenSSL by Dr. Falko Strenzke. It has been
  1951. categorized as a normal bug, not a security issue, because the DRBG reseeds
  1952. automatically and is fully functional even without additional randomness
  1953. provided by the application.
  1954. ### Changes between 1.1.0i and 1.1.1 [11 Sep 2018]
  1955. * Add a new ClientHello callback. Provides a callback interface that gives
  1956. the application the ability to adjust the nascent SSL object at the
  1957. earliest stage of ClientHello processing, immediately after extensions have
  1958. been collected but before they have been processed. In particular, this
  1959. callback can adjust the supported TLS versions in response to the contents
  1960. of the ClientHello
  1961. *Benjamin Kaduk*
  1962. * Add SM2 base algorithm support.
  1963. *Jack Lloyd*
  1964. * s390x assembly pack: add (improved) hardware-support for the following
  1965. cryptographic primitives: sha3, shake, aes-gcm, aes-ccm, aes-ctr, aes-ofb,
  1966. aes-cfb/cfb8, aes-ecb.
  1967. *Patrick Steuer*
  1968. * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str
  1969. parameter is no longer accepted, as it leads to a corrupt table. NULL
  1970. pem_str is reserved for alias entries only.
  1971. *Richard Levitte*
  1972. * Use the new ec_scalar_mul_ladder scaffold to implement a specialized ladder
  1973. step for prime curves. The new implementation is based on formulae from
  1974. differential addition-and-doubling in homogeneous projective coordinates
  1975. from Izu-Takagi "A fast parallel elliptic curve multiplication resistant
  1976. against side channel attacks" and Brier-Joye "Weierstrass Elliptic Curves
  1977. and Side-Channel Attacks" Eq. (8) for y-coordinate recovery, modified
  1978. to work in projective coordinates.
  1979. *Billy Bob Brumley, Nicola Tuveri*
  1980. * Change generating and checking of primes so that the error rate of not
  1981. being prime depends on the intended use based on the size of the input.
  1982. For larger primes this will result in more rounds of Miller-Rabin.
  1983. The maximal error rate for primes with more than 1080 bits is lowered
  1984. to 2^-128.
  1985. *Kurt Roeckx, Annie Yousar*
  1986. * Increase the number of Miller-Rabin rounds for DSA key generating to 64.
  1987. *Kurt Roeckx*
  1988. * The 'tsget' script is renamed to 'tsget.pl', to avoid confusion when
  1989. moving between systems, and to avoid confusion when a Windows build is
  1990. done with mingw vs with MSVC. For POSIX installs, there's still a
  1991. symlink or copy named 'tsget' to avoid that confusion as well.
  1992. *Richard Levitte*
  1993. * Revert blinding in ECDSA sign and instead make problematic addition
  1994. length-invariant. Switch even to fixed-length Montgomery multiplication.
  1995. *Andy Polyakov*
  1996. * Use the new ec_scalar_mul_ladder scaffold to implement a specialized ladder
  1997. step for binary curves. The new implementation is based on formulae from
  1998. differential addition-and-doubling in mixed Lopez-Dahab projective
  1999. coordinates, modified to independently blind the operands.
  2000. *Billy Bob Brumley, Sohaib ul Hassan, Nicola Tuveri*
  2001. * Add a scaffold to optionally enhance the Montgomery ladder implementation
  2002. for `ec_scalar_mul_ladder` (formerly `ec_mul_consttime`) allowing
  2003. EC_METHODs to implement their own specialized "ladder step", to take
  2004. advantage of more favorable coordinate systems or more efficient
  2005. differential addition-and-doubling algorithms.
  2006. *Billy Bob Brumley, Sohaib ul Hassan, Nicola Tuveri*
  2007. * Modified the random device based seed sources to keep the relevant
  2008. file descriptors open rather than reopening them on each access.
  2009. This allows such sources to operate in a chroot() jail without
  2010. the associated device nodes being available. This behaviour can be
  2011. controlled using RAND_keep_random_devices_open().
  2012. *Paul Dale*
  2013. * Numerous side-channel attack mitigations have been applied. This may have
  2014. performance impacts for some algorithms for the benefit of improved
  2015. security. Specific changes are noted in this change log by their respective
  2016. authors.
  2017. *Matt Caswell*
  2018. * AIX shared library support overhaul. Switch to AIX "natural" way of
  2019. handling shared libraries, which means collecting shared objects of
  2020. different versions and bitnesses in one common archive. This allows to
  2021. mitigate conflict between 1.0 and 1.1 side-by-side installations. It
  2022. doesn't affect the way 3rd party applications are linked, only how
  2023. multi-version installation is managed.
  2024. *Andy Polyakov*
  2025. * Make ec_group_do_inverse_ord() more robust and available to other
  2026. EC cryptosystems, so that irrespective of BN_FLG_CONSTTIME, SCA
  2027. mitigations are applied to the fallback BN_mod_inverse().
  2028. When using this function rather than BN_mod_inverse() directly, new
  2029. EC cryptosystem implementations are then safer-by-default.
  2030. *Billy Bob Brumley*
  2031. * Add coordinate blinding for EC_POINT and implement projective
  2032. coordinate blinding for generic prime curves as a countermeasure to
  2033. chosen point SCA attacks.
  2034. *Sohaib ul Hassan, Nicola Tuveri, Billy Bob Brumley*
  2035. * Add blinding to ECDSA and DSA signatures to protect against side channel
  2036. attacks discovered by Keegan Ryan (NCC Group).
  2037. *Matt Caswell*
  2038. * Enforce checking in the `pkeyutl` command to ensure that the input
  2039. length does not exceed the maximum supported digest length when performing
  2040. a sign, verify or verifyrecover operation.
  2041. *Matt Caswell*
  2042. * SSL_MODE_AUTO_RETRY is enabled by default. Applications that use blocking
  2043. I/O in combination with something like select() or poll() will hang. This
  2044. can be turned off again using SSL_CTX_clear_mode().
  2045. Many applications do not properly handle non-application data records, and
  2046. TLS 1.3 sends more of such records. Setting SSL_MODE_AUTO_RETRY works
  2047. around the problems in those applications, but can also break some.
  2048. It's recommended to read the manpages about SSL_read(), SSL_write(),
  2049. SSL_get_error(), SSL_shutdown(), SSL_CTX_set_mode() and
  2050. SSL_CTX_set_read_ahead() again.
  2051. *Kurt Roeckx*
  2052. * When unlocking a pass phrase protected PEM file or PKCS#8 container, we
  2053. now allow empty (zero character) pass phrases.
  2054. *Richard Levitte*
  2055. * Apply blinding to binary field modular inversion and remove patent
  2056. pending (OPENSSL_SUN_GF2M_DIV) BN_GF2m_mod_div implementation.
  2057. *Billy Bob Brumley*
  2058. * Deprecate ec2_mult.c and unify scalar multiplication code paths for
  2059. binary and prime elliptic curves.
  2060. *Billy Bob Brumley*
  2061. * Remove ECDSA nonce padding: EC_POINT_mul is now responsible for
  2062. constant time fixed point multiplication.
  2063. *Billy Bob Brumley*
  2064. * Revise elliptic curve scalar multiplication with timing attack
  2065. defenses: ec_wNAF_mul redirects to a constant time implementation
  2066. when computing fixed point and variable point multiplication (which
  2067. in OpenSSL are mostly used with secret scalars in keygen, sign,
  2068. ECDH derive operations).
  2069. *Billy Bob Brumley, Nicola Tuveri, Cesar Pereida García,
  2070. Sohaib ul Hassan*
  2071. * Updated CONTRIBUTING
  2072. *Rich Salz*
  2073. * Updated DRBG / RAND to request nonce and additional low entropy
  2074. randomness from the system.
  2075. *Matthias St. Pierre*
  2076. * Updated 'openssl rehash' to use OpenSSL consistent default.
  2077. *Richard Levitte*
  2078. * Moved the load of the ssl_conf module to libcrypto, which helps
  2079. loading engines that libssl uses before libssl is initialised.
  2080. *Matt Caswell*
  2081. * Added EVP_PKEY_sign() and EVP_PKEY_verify() for EdDSA
  2082. *Matt Caswell*
  2083. * Fixed X509_NAME_ENTRY_set to get multi-valued RDNs right in all cases.
  2084. *Ingo Schwarze, Rich Salz*
  2085. * Added output of accepting IP address and port for 'openssl s_server'
  2086. *Richard Levitte*
  2087. * Added a new API for TLSv1.3 ciphersuites:
  2088. SSL_CTX_set_ciphersuites()
  2089. SSL_set_ciphersuites()
  2090. *Matt Caswell*
  2091. * Memory allocation failures consistently add an error to the error
  2092. stack.
  2093. *Rich Salz*
  2094. * Don't use OPENSSL_ENGINES and OPENSSL_CONF environment values
  2095. in libcrypto when run as setuid/setgid.
  2096. *Bernd Edlinger*
  2097. * Load any config file by default when libssl is used.
  2098. *Matt Caswell*
  2099. * Added new public header file <openssl/rand_drbg.h> and documentation
  2100. for the RAND_DRBG API. See manual page RAND_DRBG(7) for an overview.
  2101. *Matthias St. Pierre*
  2102. * QNX support removed (cannot find contributors to get their approval
  2103. for the license change).
  2104. *Rich Salz*
  2105. * TLSv1.3 replay protection for early data has been implemented. See the
  2106. SSL_read_early_data() man page for further details.
  2107. *Matt Caswell*
  2108. * Separated TLSv1.3 ciphersuite configuration out from TLSv1.2 ciphersuite
  2109. configuration. TLSv1.3 ciphersuites are not compatible with TLSv1.2 and
  2110. below. Similarly TLSv1.2 ciphersuites are not compatible with TLSv1.3.
  2111. In order to avoid issues where legacy TLSv1.2 ciphersuite configuration
  2112. would otherwise inadvertently disable all TLSv1.3 ciphersuites the
  2113. configuration has been separated out. See the ciphers man page or the
  2114. SSL_CTX_set_ciphersuites() man page for more information.
  2115. *Matt Caswell*
  2116. * On POSIX (BSD, Linux, ...) systems the ocsp(1) command running
  2117. in responder mode now supports the new "-multi" option, which
  2118. spawns the specified number of child processes to handle OCSP
  2119. requests. The "-timeout" option now also limits the OCSP
  2120. responder's patience to wait to receive the full client request
  2121. on a newly accepted connection. Child processes are respawned
  2122. as needed, and the CA index file is automatically reloaded
  2123. when changed. This makes it possible to run the "ocsp" responder
  2124. as a long-running service, making the OpenSSL CA somewhat more
  2125. feature-complete. In this mode, most diagnostic messages logged
  2126. after entering the event loop are logged via syslog(3) rather than
  2127. written to stderr.
  2128. *Viktor Dukhovni*
  2129. * Added support for X448 and Ed448. Heavily based on original work by
  2130. Mike Hamburg.
  2131. *Matt Caswell*
  2132. * Extend OSSL_STORE with capabilities to search and to narrow the set of
  2133. objects loaded. This adds the functions OSSL_STORE_expect() and
  2134. OSSL_STORE_find() as well as needed tools to construct searches and
  2135. get the search data out of them.
  2136. *Richard Levitte*
  2137. * Support for TLSv1.3 added. Note that users upgrading from an earlier
  2138. version of OpenSSL should review their configuration settings to ensure
  2139. that they are still appropriate for TLSv1.3. For further information see:
  2140. <https://wiki.openssl.org/index.php/TLS1.3>
  2141. *Matt Caswell*
  2142. * Grand redesign of the OpenSSL random generator
  2143. The default RAND method now utilizes an AES-CTR DRBG according to
  2144. NIST standard SP 800-90Ar1. The new random generator is essentially
  2145. a port of the default random generator from the OpenSSL FIPS 2.0
  2146. object module. It is a hybrid deterministic random bit generator
  2147. using an AES-CTR bit stream and which seeds and reseeds itself
  2148. automatically using trusted system entropy sources.
  2149. Some of its new features are:
  2150. - Support for multiple DRBG instances with seed chaining.
  2151. - The default RAND method makes use of a DRBG.
  2152. - There is a public and private DRBG instance.
  2153. - The DRBG instances are fork-safe.
  2154. - Keep all global DRBG instances on the secure heap if it is enabled.
  2155. - The public and private DRBG instance are per thread for lock free
  2156. operation
  2157. *Paul Dale, Benjamin Kaduk, Kurt Roeckx, Rich Salz, Matthias St. Pierre*
  2158. * Changed Configure so it only says what it does and doesn't dump
  2159. so much data. Instead, ./configdata.pm should be used as a script
  2160. to display all sorts of configuration data.
  2161. *Richard Levitte*
  2162. * Added processing of "make variables" to Configure.
  2163. *Richard Levitte*
  2164. * Added SHA512/224 and SHA512/256 algorithm support.
  2165. *Paul Dale*
  2166. * The last traces of Netware support, first removed in 1.1.0, have
  2167. now been removed.
  2168. *Rich Salz*
  2169. * Get rid of Makefile.shared, and in the process, make the processing
  2170. of certain files (rc.obj, or the .def/.map/.opt files produced from
  2171. the ordinal files) more visible and hopefully easier to trace and
  2172. debug (or make silent).
  2173. *Richard Levitte*
  2174. * Make it possible to have environment variable assignments as
  2175. arguments to config / Configure.
  2176. *Richard Levitte*
  2177. * Add multi-prime RSA (RFC 8017) support.
  2178. *Paul Yang*
  2179. * Add SM3 implemented according to GB/T 32905-2016
  2180. *Jack Lloyd <jack.lloyd@ribose.com>,*
  2181. *Ronald Tse <ronald.tse@ribose.com>,*
  2182. *Erick Borsboom <erick.borsboom@ribose.com>*
  2183. * Add 'Maximum Fragment Length' TLS extension negotiation and support
  2184. as documented in RFC6066.
  2185. Based on a patch from Tomasz Moń
  2186. *Filipe Raimundo da Silva*
  2187. * Add SM4 implemented according to GB/T 32907-2016.
  2188. *Jack Lloyd <jack.lloyd@ribose.com>,*
  2189. *Ronald Tse <ronald.tse@ribose.com>,*
  2190. *Erick Borsboom <erick.borsboom@ribose.com>*
  2191. * Reimplement -newreq-nodes and ERR_error_string_n; the
  2192. original author does not agree with the license change.
  2193. *Rich Salz*
  2194. * Add ARIA AEAD TLS support.
  2195. *Jon Spillett*
  2196. * Some macro definitions to support VS6 have been removed. Visual
  2197. Studio 6 has not worked since 1.1.0
  2198. *Rich Salz*
  2199. * Add ERR_clear_last_mark(), to allow callers to clear the last mark
  2200. without clearing the errors.
  2201. *Richard Levitte*
  2202. * Add "atfork" functions. If building on a system that without
  2203. pthreads, see doc/man3/OPENSSL_fork_prepare.pod for application
  2204. requirements. The RAND facility now uses/requires this.
  2205. *Rich Salz*
  2206. * Add SHA3.
  2207. *Andy Polyakov*
  2208. * The UI API becomes a permanent and integral part of libcrypto, i.e.
  2209. not possible to disable entirely. However, it's still possible to
  2210. disable the console reading UI method, UI_OpenSSL() (use UI_null()
  2211. as a fallback).
  2212. To disable, configure with 'no-ui-console'. 'no-ui' is still
  2213. possible to use as an alias. Check at compile time with the
  2214. macro OPENSSL_NO_UI_CONSOLE. The macro OPENSSL_NO_UI is still
  2215. possible to check and is an alias for OPENSSL_NO_UI_CONSOLE.
  2216. *Richard Levitte*
  2217. * Add a STORE module, which implements a uniform and URI based reader of
  2218. stores that can contain keys, certificates, CRLs and numerous other
  2219. objects. The main API is loosely based on a few stdio functions,
  2220. and includes OSSL_STORE_open, OSSL_STORE_load, OSSL_STORE_eof,
  2221. OSSL_STORE_error and OSSL_STORE_close.
  2222. The implementation uses backends called "loaders" to implement arbitrary
  2223. URI schemes. There is one built in "loader" for the 'file' scheme.
  2224. *Richard Levitte*
  2225. * Add devcrypto engine. This has been implemented against cryptodev-linux,
  2226. then adjusted to work on FreeBSD 8.4 as well.
  2227. Enable by configuring with 'enable-devcryptoeng'. This is done by default
  2228. on BSD implementations, as cryptodev.h is assumed to exist on all of them.
  2229. *Richard Levitte*
  2230. * Module names can prefixed with OSSL_ or OPENSSL_. This affects
  2231. util/mkerr.pl, which is adapted to allow those prefixes, leading to
  2232. error code calls like this:
  2233. OSSL_FOOerr(OSSL_FOO_F_SOMETHING, OSSL_FOO_R_WHATEVER);
  2234. With this change, we claim the namespaces OSSL and OPENSSL in a manner
  2235. that can be encoded in C. For the foreseeable future, this will only
  2236. affect new modules.
  2237. *Richard Levitte and Tim Hudson*
  2238. * Removed BSD cryptodev engine.
  2239. *Rich Salz*
  2240. * Add a build target 'build_all_generated', to build all generated files
  2241. and only that. This can be used to prepare everything that requires
  2242. things like perl for a system that lacks perl and then move everything
  2243. to that system and do the rest of the build there.
  2244. *Richard Levitte*
  2245. * In the UI interface, make it possible to duplicate the user data. This
  2246. can be used by engines that need to retain the data for a longer time
  2247. than just the call where this user data is passed.
  2248. *Richard Levitte*
  2249. * Ignore the '-named_curve auto' value for compatibility of applications
  2250. with OpenSSL 1.0.2.
  2251. *Tomáš Mráz <tmraz@fedoraproject.org>*
  2252. * Fragmented SSL/TLS alerts are no longer accepted. An alert message is 2
  2253. bytes long. In theory it is permissible in SSLv3 - TLSv1.2 to fragment such
  2254. alerts across multiple records (some of which could be empty). In practice
  2255. it make no sense to send an empty alert record, or to fragment one. TLSv1.3
  2256. prohibits this altogether and other libraries (BoringSSL, NSS) do not
  2257. support this at all. Supporting it adds significant complexity to the
  2258. record layer, and its removal is unlikely to cause interoperability
  2259. issues.
  2260. *Matt Caswell*
  2261. * Add the ASN.1 types INT32, UINT32, INT64, UINT64 and variants prefixed
  2262. with Z. These are meant to replace LONG and ZLONG and to be size safe.
  2263. The use of LONG and ZLONG is discouraged and scheduled for deprecation
  2264. in OpenSSL 1.2.0.
  2265. *Richard Levitte*
  2266. * Add the 'z' and 'j' modifiers to BIO_printf() et al formatting string,
  2267. 'z' is to be used for [s]size_t, and 'j' - with [u]int64_t.
  2268. *Richard Levitte, Andy Polyakov*
  2269. * Add EC_KEY_get0_engine(), which does for EC_KEY what RSA_get0_engine()
  2270. does for RSA, etc.
  2271. *Richard Levitte*
  2272. * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target
  2273. platform rather than 'mingw'.
  2274. *Richard Levitte*
  2275. * The functions X509_STORE_add_cert and X509_STORE_add_crl return
  2276. success if they are asked to add an object which already exists
  2277. in the store. This change cascades to other functions which load
  2278. certificates and CRLs.
  2279. *Paul Dale*
  2280. * x86_64 assembly pack: annotate code with DWARF CFI directives to
  2281. facilitate stack unwinding even from assembly subroutines.
  2282. *Andy Polyakov*
  2283. * Remove VAX C specific definitions of OPENSSL_EXPORT, OPENSSL_EXTERN.
  2284. Also remove OPENSSL_GLOBAL entirely, as it became a no-op.
  2285. *Richard Levitte*
  2286. * Remove the VMS-specific reimplementation of gmtime from crypto/o_times.c.
  2287. VMS C's RTL has a fully up to date gmtime() and gmtime_r() since V7.1,
  2288. which is the minimum version we support.
  2289. *Richard Levitte*
  2290. * Certificate time validation (X509_cmp_time) enforces stricter
  2291. compliance with RFC 5280. Fractional seconds and timezone offsets
  2292. are no longer allowed.
  2293. *Emilia Käsper*
  2294. * Add support for ARIA
  2295. *Paul Dale*
  2296. * s_client will now send the Server Name Indication (SNI) extension by
  2297. default unless the new "-noservername" option is used. The server name is
  2298. based on the host provided to the "-connect" option unless overridden by
  2299. using "-servername".
  2300. *Matt Caswell*
  2301. * Add support for SipHash
  2302. *Todd Short*
  2303. * OpenSSL now fails if it receives an unrecognised record type in TLS1.0
  2304. or TLS1.1. Previously this only happened in SSLv3 and TLS1.2. This is to
  2305. prevent issues where no progress is being made and the peer continually
  2306. sends unrecognised record types, using up resources processing them.
  2307. *Matt Caswell*
  2308. * 'openssl passwd' can now produce SHA256 and SHA512 based output,
  2309. using the algorithm defined in
  2310. <https://www.akkadia.org/drepper/SHA-crypt.txt>
  2311. *Richard Levitte*
  2312. * Heartbeat support has been removed; the ABI is changed for now.
  2313. *Richard Levitte, Rich Salz*
  2314. * Support for SSL_OP_NO_ENCRYPT_THEN_MAC in SSL_CONF_cmd.
  2315. *Emilia Käsper*
  2316. * The RSA "null" method, which was partially supported to avoid patent
  2317. issues, has been replaced to always returns NULL.
  2318. *Rich Salz*
  2319. OpenSSL 1.1.0
  2320. -------------
  2321. ### Changes between 1.1.0k and 1.1.0l [10 Sep 2019]
  2322. * For built-in EC curves, ensure an EC_GROUP built from the curve name is
  2323. used even when parsing explicit parameters, when loading a encoded key
  2324. or calling `EC_GROUP_new_from_ecpkparameters()`/
  2325. `EC_GROUP_new_from_ecparameters()`.
  2326. This prevents bypass of security hardening and performance gains,
  2327. especially for curves with specialized EC_METHODs.
  2328. By default, if a key encoded with explicit parameters is loaded and later
  2329. encoded, the output is still encoded with explicit parameters, even if
  2330. internally a "named" EC_GROUP is used for computation.
  2331. *Nicola Tuveri*
  2332. * Compute ECC cofactors if not provided during EC_GROUP construction. Before
  2333. this change, EC_GROUP_set_generator would accept order and/or cofactor as
  2334. NULL. After this change, only the cofactor parameter can be NULL. It also
  2335. does some minimal sanity checks on the passed order.
  2336. ([CVE-2019-1547])
  2337. *Billy Bob Brumley*
  2338. * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
  2339. An attack is simple, if the first CMS_recipientInfo is valid but the
  2340. second CMS_recipientInfo is chosen ciphertext. If the second
  2341. recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
  2342. encryption key will be replaced by garbage, and the message cannot be
  2343. decoded, but if the RSA decryption fails, the correct encryption key is
  2344. used and the recipient will not notice the attack.
  2345. As a work around for this potential attack the length of the decrypted
  2346. key must be equal to the cipher default key length, in case the
  2347. certificate is not given and all recipientInfo are tried out.
  2348. The old behaviour can be re-enabled in the CMS code by setting the
  2349. CMS_DEBUG_DECRYPT flag.
  2350. ([CVE-2019-1563])
  2351. *Bernd Edlinger*
  2352. * Use Windows installation paths in the mingw builds
  2353. Mingw isn't a POSIX environment per se, which means that Windows
  2354. paths should be used for installation.
  2355. ([CVE-2019-1552])
  2356. *Richard Levitte*
  2357. ### Changes between 1.1.0j and 1.1.0k [28 May 2019]
  2358. * Change the default RSA, DSA and DH size to 2048 bit instead of 1024.
  2359. This changes the size when using the `genpkey` command when no size is given.
  2360. It fixes an omission in earlier changes that changed all RSA, DSA and DH
  2361. generation commands to use 2048 bits by default.
  2362. *Kurt Roeckx*
  2363. * Prevent over long nonces in ChaCha20-Poly1305.
  2364. ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input
  2365. for every encryption operation. RFC 7539 specifies that the nonce value
  2366. (IV) should be 96 bits (12 bytes). OpenSSL allows a variable nonce length
  2367. and front pads the nonce with 0 bytes if it is less than 12
  2368. bytes. However it also incorrectly allows a nonce to be set of up to 16
  2369. bytes. In this case only the last 12 bytes are significant and any
  2370. additional leading bytes are ignored.
  2371. It is a requirement of using this cipher that nonce values are
  2372. unique. Messages encrypted using a reused nonce value are susceptible to
  2373. serious confidentiality and integrity attacks. If an application changes
  2374. the default nonce length to be longer than 12 bytes and then makes a
  2375. change to the leading bytes of the nonce expecting the new value to be a
  2376. new unique nonce then such an application could inadvertently encrypt
  2377. messages with a reused nonce.
  2378. Additionally the ignored bytes in a long nonce are not covered by the
  2379. integrity guarantee of this cipher. Any application that relies on the
  2380. integrity of these ignored leading bytes of a long nonce may be further
  2381. affected. Any OpenSSL internal use of this cipher, including in SSL/TLS,
  2382. is safe because no such use sets such a long nonce value. However user
  2383. applications that use this cipher directly and set a non-default nonce
  2384. length to be longer than 12 bytes may be vulnerable.
  2385. This issue was reported to OpenSSL on 16th of March 2019 by Joran Dirk
  2386. Greef of Ronomon.
  2387. ([CVE-2019-1543])
  2388. *Matt Caswell*
  2389. * Added SCA hardening for modular field inversion in EC_GROUP through
  2390. a new dedicated field_inv() pointer in EC_METHOD.
  2391. This also addresses a leakage affecting conversions from projective
  2392. to affine coordinates.
  2393. *Billy Bob Brumley, Nicola Tuveri*
  2394. * Fix a use after free bug in d2i_X509_PUBKEY when overwriting a
  2395. re-used X509_PUBKEY object if the second PUBKEY is malformed.
  2396. *Bernd Edlinger*
  2397. * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0().
  2398. *Richard Levitte*
  2399. * Remove the 'dist' target and add a tarball building script. The
  2400. 'dist' target has fallen out of use, and it shouldn't be
  2401. necessary to configure just to create a source distribution.
  2402. *Richard Levitte*
  2403. ### Changes between 1.1.0i and 1.1.0j [20 Nov 2018]
  2404. * Timing vulnerability in DSA signature generation
  2405. The OpenSSL DSA signature algorithm has been shown to be vulnerable to a
  2406. timing side channel attack. An attacker could use variations in the signing
  2407. algorithm to recover the private key.
  2408. This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser.
  2409. ([CVE-2018-0734])
  2410. *Paul Dale*
  2411. * Timing vulnerability in ECDSA signature generation
  2412. The OpenSSL ECDSA signature algorithm has been shown to be vulnerable to a
  2413. timing side channel attack. An attacker could use variations in the signing
  2414. algorithm to recover the private key.
  2415. This issue was reported to OpenSSL on 25th October 2018 by Samuel Weiser.
  2416. ([CVE-2018-0735])
  2417. *Paul Dale*
  2418. * Add coordinate blinding for EC_POINT and implement projective
  2419. coordinate blinding for generic prime curves as a countermeasure to
  2420. chosen point SCA attacks.
  2421. *Sohaib ul Hassan, Nicola Tuveri, Billy Bob Brumley*
  2422. ### Changes between 1.1.0h and 1.1.0i [14 Aug 2018]
  2423. * Client DoS due to large DH parameter
  2424. During key agreement in a TLS handshake using a DH(E) based ciphersuite a
  2425. malicious server can send a very large prime value to the client. This will
  2426. cause the client to spend an unreasonably long period of time generating a
  2427. key for this prime resulting in a hang until the client has finished. This
  2428. could be exploited in a Denial Of Service attack.
  2429. This issue was reported to OpenSSL on 5th June 2018 by Guido Vranken
  2430. ([CVE-2018-0732])
  2431. *Guido Vranken*
  2432. * Cache timing vulnerability in RSA Key Generation
  2433. The OpenSSL RSA Key generation algorithm has been shown to be vulnerable to
  2434. a cache timing side channel attack. An attacker with sufficient access to
  2435. mount cache timing attacks during the RSA key generation process could
  2436. recover the private key.
  2437. This issue was reported to OpenSSL on 4th April 2018 by Alejandro Cabrera
  2438. Aldaya, Billy Brumley, Cesar Pereida Garcia and Luis Manuel Alvarez Tapia.
  2439. ([CVE-2018-0737])
  2440. *Billy Brumley*
  2441. * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str
  2442. parameter is no longer accepted, as it leads to a corrupt table. NULL
  2443. pem_str is reserved for alias entries only.
  2444. *Richard Levitte*
  2445. * Revert blinding in ECDSA sign and instead make problematic addition
  2446. length-invariant. Switch even to fixed-length Montgomery multiplication.
  2447. *Andy Polyakov*
  2448. * Change generating and checking of primes so that the error rate of not
  2449. being prime depends on the intended use based on the size of the input.
  2450. For larger primes this will result in more rounds of Miller-Rabin.
  2451. The maximal error rate for primes with more than 1080 bits is lowered
  2452. to 2^-128.
  2453. *Kurt Roeckx, Annie Yousar*
  2454. * Increase the number of Miller-Rabin rounds for DSA key generating to 64.
  2455. *Kurt Roeckx*
  2456. * Add blinding to ECDSA and DSA signatures to protect against side channel
  2457. attacks discovered by Keegan Ryan (NCC Group).
  2458. *Matt Caswell*
  2459. * When unlocking a pass phrase protected PEM file or PKCS#8 container, we
  2460. now allow empty (zero character) pass phrases.
  2461. *Richard Levitte*
  2462. * Certificate time validation (X509_cmp_time) enforces stricter
  2463. compliance with RFC 5280. Fractional seconds and timezone offsets
  2464. are no longer allowed.
  2465. *Emilia Käsper*
  2466. * Fixed a text canonicalisation bug in CMS
  2467. Where a CMS detached signature is used with text content the text goes
  2468. through a canonicalisation process first prior to signing or verifying a
  2469. signature. This process strips trailing space at the end of lines, converts
  2470. line terminators to CRLF and removes additional trailing line terminators
  2471. at the end of a file. A bug in the canonicalisation process meant that
  2472. some characters, such as form-feed, were incorrectly treated as whitespace
  2473. and removed. This is contrary to the specification (RFC5485). This fix
  2474. could mean that detached text data signed with an earlier version of
  2475. OpenSSL 1.1.0 may fail to verify using the fixed version, or text data
  2476. signed with a fixed OpenSSL may fail to verify with an earlier version of
  2477. OpenSSL 1.1.0. A workaround is to only verify the canonicalised text data
  2478. and use the "-binary" flag (for the "cms" command line application) or set
  2479. the SMIME_BINARY/PKCS7_BINARY/CMS_BINARY flags (if using CMS_verify()).
  2480. *Matt Caswell*
  2481. ### Changes between 1.1.0g and 1.1.0h [27 Mar 2018]
  2482. * Constructed ASN.1 types with a recursive definition could exceed the stack
  2483. Constructed ASN.1 types with a recursive definition (such as can be found
  2484. in PKCS7) could eventually exceed the stack given malicious input with
  2485. excessive recursion. This could result in a Denial Of Service attack. There
  2486. are no such structures used within SSL/TLS that come from untrusted sources
  2487. so this is considered safe.
  2488. This issue was reported to OpenSSL on 4th January 2018 by the OSS-fuzz
  2489. project.
  2490. ([CVE-2018-0739])
  2491. *Matt Caswell*
  2492. * Incorrect CRYPTO_memcmp on HP-UX PA-RISC
  2493. Because of an implementation bug the PA-RISC CRYPTO_memcmp function is
  2494. effectively reduced to only comparing the least significant bit of each
  2495. byte. This allows an attacker to forge messages that would be considered as
  2496. authenticated in an amount of tries lower than that guaranteed by the
  2497. security claims of the scheme. The module can only be compiled by the
  2498. HP-UX assembler, so that only HP-UX PA-RISC targets are affected.
  2499. This issue was reported to OpenSSL on 2nd March 2018 by Peter Waltenberg
  2500. (IBM).
  2501. ([CVE-2018-0733])
  2502. *Andy Polyakov*
  2503. * Add a build target 'build_all_generated', to build all generated files
  2504. and only that. This can be used to prepare everything that requires
  2505. things like perl for a system that lacks perl and then move everything
  2506. to that system and do the rest of the build there.
  2507. *Richard Levitte*
  2508. * Backport SSL_OP_NO_RENGOTIATION
  2509. OpenSSL 1.0.2 and below had the ability to disable renegotiation using the
  2510. (undocumented) SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS flag. Due to the opacity
  2511. changes this is no longer possible in 1.1.0. Therefore, the new
  2512. SSL_OP_NO_RENEGOTIATION option from 1.1.1-dev has been backported to
  2513. 1.1.0 to provide equivalent functionality.
  2514. Note that if an application built against 1.1.0h headers (or above) is run
  2515. using an older version of 1.1.0 (prior to 1.1.0h) then the option will be
  2516. accepted but nothing will happen, i.e. renegotiation will not be prevented.
  2517. *Matt Caswell*
  2518. * Removed the OS390-Unix config target. It relied on a script that doesn't
  2519. exist.
  2520. *Rich Salz*
  2521. * rsaz_1024_mul_avx2 overflow bug on x86_64
  2522. There is an overflow bug in the AVX2 Montgomery multiplication procedure
  2523. used in exponentiation with 1024-bit moduli. No EC algorithms are affected.
  2524. Analysis suggests that attacks against RSA and DSA as a result of this
  2525. defect would be very difficult to perform and are not believed likely.
  2526. Attacks against DH1024 are considered just feasible, because most of the
  2527. work necessary to deduce information about a private key may be performed
  2528. offline. The amount of resources required for such an attack would be
  2529. significant. However, for an attack on TLS to be meaningful, the server
  2530. would have to share the DH1024 private key among multiple clients, which is
  2531. no longer an option since CVE-2016-0701.
  2532. This only affects processors that support the AVX2 but not ADX extensions
  2533. like Intel Haswell (4th generation).
  2534. This issue was reported to OpenSSL by David Benjamin (Google). The issue
  2535. was originally found via the OSS-Fuzz project.
  2536. ([CVE-2017-3738])
  2537. *Andy Polyakov*
  2538. ### Changes between 1.1.0f and 1.1.0g [2 Nov 2017]
  2539. * bn_sqrx8x_internal carry bug on x86_64
  2540. There is a carry propagating bug in the x86_64 Montgomery squaring
  2541. procedure. No EC algorithms are affected. Analysis suggests that attacks
  2542. against RSA and DSA as a result of this defect would be very difficult to
  2543. perform and are not believed likely. Attacks against DH are considered just
  2544. feasible (although very difficult) because most of the work necessary to
  2545. deduce information about a private key may be performed offline. The amount
  2546. of resources required for such an attack would be very significant and
  2547. likely only accessible to a limited number of attackers. An attacker would
  2548. additionally need online access to an unpatched system using the target
  2549. private key in a scenario with persistent DH parameters and a private
  2550. key that is shared between multiple clients.
  2551. This only affects processors that support the BMI1, BMI2 and ADX extensions
  2552. like Intel Broadwell (5th generation) and later or AMD Ryzen.
  2553. This issue was reported to OpenSSL by the OSS-Fuzz project.
  2554. ([CVE-2017-3736])
  2555. *Andy Polyakov*
  2556. * Malformed X.509 IPAddressFamily could cause OOB read
  2557. If an X.509 certificate has a malformed IPAddressFamily extension,
  2558. OpenSSL could do a one-byte buffer overread. The most likely result
  2559. would be an erroneous display of the certificate in text format.
  2560. This issue was reported to OpenSSL by the OSS-Fuzz project.
  2561. ([CVE-2017-3735])
  2562. *Rich Salz*
  2563. ### Changes between 1.1.0e and 1.1.0f [25 May 2017]
  2564. * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target
  2565. platform rather than 'mingw'.
  2566. *Richard Levitte*
  2567. * Remove the VMS-specific reimplementation of gmtime from crypto/o_times.c.
  2568. VMS C's RTL has a fully up to date gmtime() and gmtime_r() since V7.1,
  2569. which is the minimum version we support.
  2570. *Richard Levitte*
  2571. ### Changes between 1.1.0d and 1.1.0e [16 Feb 2017]
  2572. * Encrypt-Then-Mac renegotiation crash
  2573. During a renegotiation handshake if the Encrypt-Then-Mac extension is
  2574. negotiated where it was not in the original handshake (or vice-versa) then
  2575. this can cause OpenSSL to crash (dependent on ciphersuite). Both clients
  2576. and servers are affected.
  2577. This issue was reported to OpenSSL by Joe Orton (Red Hat).
  2578. ([CVE-2017-3733])
  2579. *Matt Caswell*
  2580. ### Changes between 1.1.0c and 1.1.0d [26 Jan 2017]
  2581. * Truncated packet could crash via OOB read
  2582. If one side of an SSL/TLS path is running on a 32-bit host and a specific
  2583. cipher is being used, then a truncated packet can cause that host to
  2584. perform an out-of-bounds read, usually resulting in a crash.
  2585. This issue was reported to OpenSSL by Robert Święcki of Google.
  2586. ([CVE-2017-3731])
  2587. *Andy Polyakov*
  2588. * Bad (EC)DHE parameters cause a client crash
  2589. If a malicious server supplies bad parameters for a DHE or ECDHE key
  2590. exchange then this can result in the client attempting to dereference a
  2591. NULL pointer leading to a client crash. This could be exploited in a Denial
  2592. of Service attack.
  2593. This issue was reported to OpenSSL by Guido Vranken.
  2594. ([CVE-2017-3730])
  2595. *Matt Caswell*
  2596. * BN_mod_exp may produce incorrect results on x86_64
  2597. There is a carry propagating bug in the x86_64 Montgomery squaring
  2598. procedure. No EC algorithms are affected. Analysis suggests that attacks
  2599. against RSA and DSA as a result of this defect would be very difficult to
  2600. perform and are not believed likely. Attacks against DH are considered just
  2601. feasible (although very difficult) because most of the work necessary to
  2602. deduce information about a private key may be performed offline. The amount
  2603. of resources required for such an attack would be very significant and
  2604. likely only accessible to a limited number of attackers. An attacker would
  2605. additionally need online access to an unpatched system using the target
  2606. private key in a scenario with persistent DH parameters and a private
  2607. key that is shared between multiple clients. For example this can occur by
  2608. default in OpenSSL DHE based SSL/TLS ciphersuites. Note: This issue is very
  2609. similar to CVE-2015-3193 but must be treated as a separate problem.
  2610. This issue was reported to OpenSSL by the OSS-Fuzz project.
  2611. ([CVE-2017-3732])
  2612. *Andy Polyakov*
  2613. ### Changes between 1.1.0b and 1.1.0c [10 Nov 2016]
  2614. * ChaCha20/Poly1305 heap-buffer-overflow
  2615. TLS connections using `*-CHACHA20-POLY1305` ciphersuites are susceptible to
  2616. a DoS attack by corrupting larger payloads. This can result in an OpenSSL
  2617. crash. This issue is not considered to be exploitable beyond a DoS.
  2618. This issue was reported to OpenSSL by Robert Święcki (Google Security Team)
  2619. ([CVE-2016-7054])
  2620. *Richard Levitte*
  2621. * CMS Null dereference
  2622. Applications parsing invalid CMS structures can crash with a NULL pointer
  2623. dereference. This is caused by a bug in the handling of the ASN.1 CHOICE
  2624. type in OpenSSL 1.1.0 which can result in a NULL value being passed to the
  2625. structure callback if an attempt is made to free certain invalid encodings.
  2626. Only CHOICE structures using a callback which do not handle NULL value are
  2627. affected.
  2628. This issue was reported to OpenSSL by Tyler Nighswander of ForAllSecure.
  2629. ([CVE-2016-7053])
  2630. *Stephen Henson*
  2631. * Montgomery multiplication may produce incorrect results
  2632. There is a carry propagating bug in the Broadwell-specific Montgomery
  2633. multiplication procedure that handles input lengths divisible by, but
  2634. longer than 256 bits. Analysis suggests that attacks against RSA, DSA
  2635. and DH private keys are impossible. This is because the subroutine in
  2636. question is not used in operations with the private key itself and an input
  2637. of the attacker's direct choice. Otherwise the bug can manifest itself as
  2638. transient authentication and key negotiation failures or reproducible
  2639. erroneous outcome of public-key operations with specially crafted input.
  2640. Among EC algorithms only Brainpool P-512 curves are affected and one
  2641. presumably can attack ECDH key negotiation. Impact was not analyzed in
  2642. detail, because pre-requisites for attack are considered unlikely. Namely
  2643. multiple clients have to choose the curve in question and the server has to
  2644. share the private key among them, neither of which is default behaviour.
  2645. Even then only clients that chose the curve will be affected.
  2646. This issue was publicly reported as transient failures and was not
  2647. initially recognized as a security issue. Thanks to Richard Morgan for
  2648. providing reproducible case.
  2649. ([CVE-2016-7055])
  2650. *Andy Polyakov*
  2651. * Removed automatic addition of RPATH in shared libraries and executables,
  2652. as this was a remainder from OpenSSL 1.0.x and isn't needed any more.
  2653. *Richard Levitte*
  2654. ### Changes between 1.1.0a and 1.1.0b [26 Sep 2016]
  2655. * Fix Use After Free for large message sizes
  2656. The patch applied to address CVE-2016-6307 resulted in an issue where if a
  2657. message larger than approx 16k is received then the underlying buffer to
  2658. store the incoming message is reallocated and moved. Unfortunately a
  2659. dangling pointer to the old location is left which results in an attempt to
  2660. write to the previously freed location. This is likely to result in a
  2661. crash, however it could potentially lead to execution of arbitrary code.
  2662. This issue only affects OpenSSL 1.1.0a.
  2663. This issue was reported to OpenSSL by Robert Święcki.
  2664. ([CVE-2016-6309])
  2665. *Matt Caswell*
  2666. ### Changes between 1.1.0 and 1.1.0a [22 Sep 2016]
  2667. * OCSP Status Request extension unbounded memory growth
  2668. A malicious client can send an excessively large OCSP Status Request
  2669. extension. If that client continually requests renegotiation, sending a
  2670. large OCSP Status Request extension each time, then there will be unbounded
  2671. memory growth on the server. This will eventually lead to a Denial Of
  2672. Service attack through memory exhaustion. Servers with a default
  2673. configuration are vulnerable even if they do not support OCSP. Builds using
  2674. the "no-ocsp" build time option are not affected.
  2675. This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
  2676. ([CVE-2016-6304])
  2677. *Matt Caswell*
  2678. * SSL_peek() hang on empty record
  2679. OpenSSL 1.1.0 SSL/TLS will hang during a call to SSL_peek() if the peer
  2680. sends an empty record. This could be exploited by a malicious peer in a
  2681. Denial Of Service attack.
  2682. This issue was reported to OpenSSL by Alex Gaynor.
  2683. ([CVE-2016-6305])
  2684. *Matt Caswell*
  2685. * Excessive allocation of memory in tls_get_message_header() and
  2686. dtls1_preprocess_fragment()
  2687. A (D)TLS message includes 3 bytes for its length in the header for the
  2688. message. This would allow for messages up to 16Mb in length. Messages of
  2689. this length are excessive and OpenSSL includes a check to ensure that a
  2690. peer is sending reasonably sized messages in order to avoid too much memory
  2691. being consumed to service a connection. A flaw in the logic of version
  2692. 1.1.0 means that memory for the message is allocated too early, prior to
  2693. the excessive message length check. Due to way memory is allocated in
  2694. OpenSSL this could mean an attacker could force up to 21Mb to be allocated
  2695. to service a connection. This could lead to a Denial of Service through
  2696. memory exhaustion. However, the excessive message length check still takes
  2697. place, and this would cause the connection to immediately fail. Assuming
  2698. that the application calls SSL_free() on the failed connection in a timely
  2699. manner then the 21Mb of allocated memory will then be immediately freed
  2700. again. Therefore, the excessive memory allocation will be transitory in
  2701. nature. This then means that there is only a security impact if:
  2702. 1) The application does not call SSL_free() in a timely manner in the event
  2703. that the connection fails
  2704. or
  2705. 2) The application is working in a constrained environment where there is
  2706. very little free memory
  2707. or
  2708. 3) The attacker initiates multiple connection attempts such that there are
  2709. multiple connections in a state where memory has been allocated for the
  2710. connection; SSL_free() has not yet been called; and there is insufficient
  2711. memory to service the multiple requests.
  2712. Except in the instance of (1) above any Denial Of Service is likely to be
  2713. transitory because as soon as the connection fails the memory is
  2714. subsequently freed again in the SSL_free() call. However there is an
  2715. increased risk during this period of application crashes due to the lack of
  2716. memory - which would then mean a more serious Denial of Service.
  2717. This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
  2718. (CVE-2016-6307 and CVE-2016-6308)
  2719. *Matt Caswell*
  2720. * solaris-x86-cc, i.e. 32-bit configuration with vendor compiler,
  2721. had to be removed. Primary reason is that vendor assembler can't
  2722. assemble our modules with -KPIC flag. As result it, assembly
  2723. support, was not even available as option. But its lack means
  2724. lack of side-channel resistant code, which is incompatible with
  2725. security by todays standards. Fortunately gcc is readily available
  2726. prepackaged option, which we firmly point at...
  2727. *Andy Polyakov*
  2728. ### Changes between 1.0.2h and 1.1.0 [25 Aug 2016]
  2729. * Windows command-line tool supports UTF-8 opt-in option for arguments
  2730. and console input. Setting OPENSSL_WIN32_UTF8 environment variable
  2731. (to any value) allows Windows user to access PKCS#12 file generated
  2732. with Windows CryptoAPI and protected with non-ASCII password, as well
  2733. as files generated under UTF-8 locale on Linux also protected with
  2734. non-ASCII password.
  2735. *Andy Polyakov*
  2736. * To mitigate the SWEET32 attack ([CVE-2016-2183]), 3DES cipher suites
  2737. have been disabled by default and removed from DEFAULT, just like RC4.
  2738. See the RC4 item below to re-enable both.
  2739. *Rich Salz*
  2740. * The method for finding the storage location for the Windows RAND seed file
  2741. has changed. First we check %RANDFILE%. If that is not set then we check
  2742. the directories %HOME%, %USERPROFILE% and %SYSTEMROOT% in that order. If
  2743. all else fails we fall back to C:\.
  2744. *Matt Caswell*
  2745. * The EVP_EncryptUpdate() function has had its return type changed from void
  2746. to int. A return of 0 indicates and error while a return of 1 indicates
  2747. success.
  2748. *Matt Caswell*
  2749. * The flags RSA_FLAG_NO_CONSTTIME, DSA_FLAG_NO_EXP_CONSTTIME and
  2750. DH_FLAG_NO_EXP_CONSTTIME which previously provided the ability to switch
  2751. off the constant time implementation for RSA, DSA and DH have been made
  2752. no-ops and deprecated.
  2753. *Matt Caswell*
  2754. * Windows RAND implementation was simplified to only get entropy by
  2755. calling CryptGenRandom(). Various other RAND-related tickets
  2756. were also closed.
  2757. *Joseph Wylie Yandle, Rich Salz*
  2758. * The stack and lhash API's were renamed to start with `OPENSSL_SK_`
  2759. and `OPENSSL_LH_`, respectively. The old names are available
  2760. with API compatibility. They new names are now completely documented.
  2761. *Rich Salz*
  2762. * Unify TYPE_up_ref(obj) methods signature.
  2763. SSL_CTX_up_ref(), SSL_up_ref(), X509_up_ref(), EVP_PKEY_up_ref(),
  2764. X509_CRL_up_ref(), X509_OBJECT_up_ref_count() methods are now returning an
  2765. int (instead of void) like all others TYPE_up_ref() methods.
  2766. So now these methods also check the return value of CRYPTO_atomic_add(),
  2767. and the validity of object reference counter.
  2768. *fdasilvayy@gmail.com*
  2769. * With Windows Visual Studio builds, the .pdb files are installed
  2770. alongside the installed libraries and executables. For a static
  2771. library installation, ossl_static.pdb is the associate compiler
  2772. generated .pdb file to be used when linking programs.
  2773. *Richard Levitte*
  2774. * Remove openssl.spec. Packaging files belong with the packagers.
  2775. *Richard Levitte*
  2776. * Automatic Darwin/OSX configuration has had a refresh, it will now
  2777. recognise x86_64 architectures automatically. You can still decide
  2778. to build for a different bitness with the environment variable
  2779. KERNEL_BITS (can be 32 or 64), for example:
  2780. KERNEL_BITS=32 ./config
  2781. *Richard Levitte*
  2782. * Change default algorithms in pkcs8 utility to use PKCS#5 v2.0,
  2783. 256 bit AES and HMAC with SHA256.
  2784. *Steve Henson*
  2785. * Remove support for MIPS o32 ABI on IRIX (and IRIX only).
  2786. *Andy Polyakov*
  2787. * Triple-DES ciphers have been moved from HIGH to MEDIUM.
  2788. *Rich Salz*
  2789. * To enable users to have their own config files and build file templates,
  2790. Configure looks in the directory indicated by the environment variable
  2791. OPENSSL_LOCAL_CONFIG_DIR as well as the in-source Configurations/
  2792. directory. On VMS, OPENSSL_LOCAL_CONFIG_DIR is expected to be a logical
  2793. name and is used as is.
  2794. *Richard Levitte*
  2795. * The following datatypes were made opaque: X509_OBJECT, X509_STORE_CTX,
  2796. X509_STORE, X509_LOOKUP, and X509_LOOKUP_METHOD. The unused type
  2797. X509_CERT_FILE_CTX was removed.
  2798. *Rich Salz*
  2799. * "shared" builds are now the default. To create only static libraries use
  2800. the "no-shared" Configure option.
  2801. *Matt Caswell*
  2802. * Remove the no-aes, no-hmac, no-rsa, no-sha and no-md5 Configure options.
  2803. All of these option have not worked for some while and are fundamental
  2804. algorithms.
  2805. *Matt Caswell*
  2806. * Make various cleanup routines no-ops and mark them as deprecated. Most
  2807. global cleanup functions are no longer required because they are handled
  2808. via auto-deinit (see OPENSSL_init_crypto and OPENSSL_init_ssl man pages).
  2809. Explicitly de-initing can cause problems (e.g. where a library that uses
  2810. OpenSSL de-inits, but an application is still using it). The affected
  2811. functions are CONF_modules_free(), ENGINE_cleanup(), OBJ_cleanup(),
  2812. EVP_cleanup(), BIO_sock_cleanup(), CRYPTO_cleanup_all_ex_data(),
  2813. RAND_cleanup(), SSL_COMP_free_compression_methods(), ERR_free_strings() and
  2814. COMP_zlib_cleanup().
  2815. *Matt Caswell*
  2816. * --strict-warnings no longer enables runtime debugging options
  2817. such as REF_DEBUG. Instead, debug options are automatically
  2818. enabled with '--debug' builds.
  2819. *Andy Polyakov, Emilia Käsper*
  2820. * Made DH and DH_METHOD opaque. The structures for managing DH objects
  2821. have been moved out of the public header files. New functions for managing
  2822. these have been added.
  2823. *Matt Caswell*
  2824. * Made RSA and RSA_METHOD opaque. The structures for managing RSA
  2825. objects have been moved out of the public header files. New
  2826. functions for managing these have been added.
  2827. *Richard Levitte*
  2828. * Made DSA and DSA_METHOD opaque. The structures for managing DSA objects
  2829. have been moved out of the public header files. New functions for managing
  2830. these have been added.
  2831. *Matt Caswell*
  2832. * Made BIO and BIO_METHOD opaque. The structures for managing BIOs have been
  2833. moved out of the public header files. New functions for managing these
  2834. have been added.
  2835. *Matt Caswell*
  2836. * Removed no-rijndael as a config option. Rijndael is an old name for AES.
  2837. *Matt Caswell*
  2838. * Removed the mk1mf build scripts.
  2839. *Richard Levitte*
  2840. * Headers are now wrapped, if necessary, with OPENSSL_NO_xxx, so
  2841. it is always safe to #include a header now.
  2842. *Rich Salz*
  2843. * Removed the aged BC-32 config and all its supporting scripts
  2844. *Richard Levitte*
  2845. * Removed support for Ultrix, Netware, and OS/2.
  2846. *Rich Salz*
  2847. * Add support for HKDF.
  2848. *Alessandro Ghedini*
  2849. * Add support for blake2b and blake2s
  2850. *Bill Cox*
  2851. * Added support for "pipelining". Ciphers that have the
  2852. EVP_CIPH_FLAG_PIPELINE flag set have a capability to process multiple
  2853. encryptions/decryptions simultaneously. There are currently no built-in
  2854. ciphers with this property but the expectation is that engines will be able
  2855. to offer it to significantly improve throughput. Support has been extended
  2856. into libssl so that multiple records for a single connection can be
  2857. processed in one go (for >=TLS 1.1).
  2858. *Matt Caswell*
  2859. * Added the AFALG engine. This is an async capable engine which is able to
  2860. offload work to the Linux kernel. In this initial version it only supports
  2861. AES128-CBC. The kernel must be version 4.1.0 or greater.
  2862. *Catriona Lucey*
  2863. * OpenSSL now uses a new threading API. It is no longer necessary to
  2864. set locking callbacks to use OpenSSL in a multi-threaded environment. There
  2865. are two supported threading models: pthreads and windows threads. It is
  2866. also possible to configure OpenSSL at compile time for "no-threads". The
  2867. old threading API should no longer be used. The functions have been
  2868. replaced with "no-op" compatibility macros.
  2869. *Alessandro Ghedini, Matt Caswell*
  2870. * Modify behavior of ALPN to invoke callback after SNI/servername
  2871. callback, such that updates to the SSL_CTX affect ALPN.
  2872. *Todd Short*
  2873. * Add SSL_CIPHER queries for authentication and key-exchange.
  2874. *Todd Short*
  2875. * Changes to the DEFAULT cipherlist:
  2876. - Prefer (EC)DHE handshakes over plain RSA.
  2877. - Prefer AEAD ciphers over legacy ciphers.
  2878. - Prefer ECDSA over RSA when both certificates are available.
  2879. - Prefer TLSv1.2 ciphers/PRF.
  2880. - Remove DSS, SEED, IDEA, CAMELLIA, and AES-CCM from the
  2881. default cipherlist.
  2882. *Emilia Käsper*
  2883. * Change the ECC default curve list to be this, in order: x25519,
  2884. secp256r1, secp521r1, secp384r1.
  2885. *Rich Salz*
  2886. * RC4 based libssl ciphersuites are now classed as "weak" ciphers and are
  2887. disabled by default. They can be re-enabled using the
  2888. enable-weak-ssl-ciphers option to Configure.
  2889. *Matt Caswell*
  2890. * If the server has ALPN configured, but supports no protocols that the
  2891. client advertises, send a fatal "no_application_protocol" alert.
  2892. This behaviour is SHALL in RFC 7301, though it isn't universally
  2893. implemented by other servers.
  2894. *Emilia Käsper*
  2895. * Add X25519 support.
  2896. Add ASN.1 and EVP_PKEY methods for X25519. This includes support
  2897. for public and private key encoding using the format documented in
  2898. draft-ietf-curdle-pkix-02. The corresponding EVP_PKEY method supports
  2899. key generation and key derivation.
  2900. TLS support complies with draft-ietf-tls-rfc4492bis-08 and uses
  2901. X25519(29).
  2902. *Steve Henson*
  2903. * Deprecate SRP_VBASE_get_by_user.
  2904. SRP_VBASE_get_by_user had inconsistent memory management behaviour.
  2905. In order to fix an unavoidable memory leak ([CVE-2016-0798]),
  2906. SRP_VBASE_get_by_user was changed to ignore the "fake user" SRP
  2907. seed, even if the seed is configured.
  2908. Users should use SRP_VBASE_get1_by_user instead. Note that in
  2909. SRP_VBASE_get1_by_user, caller must free the returned value. Note
  2910. also that even though configuring the SRP seed attempts to hide
  2911. invalid usernames by continuing the handshake with fake
  2912. credentials, this behaviour is not constant time and no strong
  2913. guarantees are made that the handshake is indistinguishable from
  2914. that of a valid user.
  2915. *Emilia Käsper*
  2916. * Configuration change; it's now possible to build dynamic engines
  2917. without having to build shared libraries and vice versa. This
  2918. only applies to the engines in `engines/`, those in `crypto/engine/`
  2919. will always be built into libcrypto (i.e. "static").
  2920. Building dynamic engines is enabled by default; to disable, use
  2921. the configuration option "disable-dynamic-engine".
  2922. The only requirements for building dynamic engines are the
  2923. presence of the DSO module and building with position independent
  2924. code, so they will also automatically be disabled if configuring
  2925. with "disable-dso" or "disable-pic".
  2926. The macros OPENSSL_NO_STATIC_ENGINE and OPENSSL_NO_DYNAMIC_ENGINE
  2927. are also taken away from openssl/opensslconf.h, as they are
  2928. irrelevant.
  2929. *Richard Levitte*
  2930. * Configuration change; if there is a known flag to compile
  2931. position independent code, it will always be applied on the
  2932. libcrypto and libssl object files, and never on the application
  2933. object files. This means other libraries that use routines from
  2934. libcrypto / libssl can be made into shared libraries regardless
  2935. of how OpenSSL was configured.
  2936. If this isn't desirable, the configuration options "disable-pic"
  2937. or "no-pic" can be used to disable the use of PIC. This will
  2938. also disable building shared libraries and dynamic engines.
  2939. *Richard Levitte*
  2940. * Removed JPAKE code. It was experimental and has no wide use.
  2941. *Rich Salz*
  2942. * The INSTALL_PREFIX Makefile variable has been renamed to
  2943. DESTDIR. That makes for less confusion on what this variable
  2944. is for. Also, the configuration option --install_prefix is
  2945. removed.
  2946. *Richard Levitte*
  2947. * Heartbeat for TLS has been removed and is disabled by default
  2948. for DTLS; configure with enable-heartbeats. Code that uses the
  2949. old #define's might need to be updated.
  2950. *Emilia Käsper, Rich Salz*
  2951. * Rename REF_CHECK to REF_DEBUG.
  2952. *Rich Salz*
  2953. * New "unified" build system
  2954. The "unified" build system is aimed to be a common system for all
  2955. platforms we support. With it comes new support for VMS.
  2956. This system builds supports building in a different directory tree
  2957. than the source tree. It produces one Makefile (for unix family
  2958. or lookalikes), or one descrip.mms (for VMS).
  2959. The source of information to make the Makefile / descrip.mms is
  2960. small files called 'build.info', holding the necessary
  2961. information for each directory with source to compile, and a
  2962. template in Configurations, like unix-Makefile.tmpl or
  2963. descrip.mms.tmpl.
  2964. With this change, the library names were also renamed on Windows
  2965. and on VMS. They now have names that are closer to the standard
  2966. on Unix, and include the major version number, and in certain
  2967. cases, the architecture they are built for. See "Notes on shared
  2968. libraries" in INSTALL.
  2969. We rely heavily on the perl module Text::Template.
  2970. *Richard Levitte*
  2971. * Added support for auto-initialisation and de-initialisation of the library.
  2972. OpenSSL no longer requires explicit init or deinit routines to be called,
  2973. except in certain circumstances. See the OPENSSL_init_crypto() and
  2974. OPENSSL_init_ssl() man pages for further information.
  2975. *Matt Caswell*
  2976. * The arguments to the DTLSv1_listen function have changed. Specifically the
  2977. "peer" argument is now expected to be a BIO_ADDR object.
  2978. * Rewrite of BIO networking library. The BIO library lacked consistent
  2979. support of IPv6, and adding it required some more extensive
  2980. modifications. This introduces the BIO_ADDR and BIO_ADDRINFO types,
  2981. which hold all types of addresses and chains of address information.
  2982. It also introduces a new API, with functions like BIO_socket,
  2983. BIO_connect, BIO_listen, BIO_lookup and a rewrite of BIO_accept.
  2984. The source/sink BIOs BIO_s_connect, BIO_s_accept and BIO_s_datagram
  2985. have been adapted accordingly.
  2986. *Richard Levitte*
  2987. * RSA_padding_check_PKCS1_type_1 now accepts inputs with and without
  2988. the leading 0-byte.
  2989. *Emilia Käsper*
  2990. * CRIME protection: disable compression by default, even if OpenSSL is
  2991. compiled with zlib enabled. Applications can still enable compression
  2992. by calling SSL_CTX_clear_options(ctx, SSL_OP_NO_COMPRESSION), or by
  2993. using the SSL_CONF library to configure compression.
  2994. *Emilia Käsper*
  2995. * The signature of the session callback configured with
  2996. SSL_CTX_sess_set_get_cb was changed. The read-only input buffer
  2997. was explicitly marked as `const unsigned char*` instead of
  2998. `unsigned char*`.
  2999. *Emilia Käsper*
  3000. * Always DPURIFY. Remove the use of uninitialized memory in the
  3001. RNG, and other conditional uses of DPURIFY. This makes -DPURIFY a no-op.
  3002. *Emilia Käsper*
  3003. * Removed many obsolete configuration items, including
  3004. DES_PTR, DES_RISC1, DES_RISC2, DES_INT
  3005. MD2_CHAR, MD2_INT, MD2_LONG
  3006. BF_PTR, BF_PTR2
  3007. IDEA_SHORT, IDEA_LONG
  3008. RC2_SHORT, RC2_LONG, RC4_LONG, RC4_CHUNK, RC4_INDEX
  3009. *Rich Salz, with advice from Andy Polyakov*
  3010. * Many BN internals have been moved to an internal header file.
  3011. *Rich Salz with help from Andy Polyakov*
  3012. * Configuration and writing out the results from it has changed.
  3013. Files such as Makefile include/openssl/opensslconf.h and are now
  3014. produced through general templates, such as Makefile.in and
  3015. crypto/opensslconf.h.in and some help from the perl module
  3016. Text::Template.
  3017. Also, the center of configuration information is no longer
  3018. Makefile. Instead, Configure produces a perl module in
  3019. configdata.pm which holds most of the config data (in the hash
  3020. table %config), the target data that comes from the target
  3021. configuration in one of the `Configurations/*.conf` files (in
  3022. %target).
  3023. *Richard Levitte*
  3024. * To clarify their intended purposes, the Configure options
  3025. --prefix and --openssldir change their semantics, and become more
  3026. straightforward and less interdependent.
  3027. --prefix shall be used exclusively to give the location INSTALLTOP
  3028. where programs, scripts, libraries, include files and manuals are
  3029. going to be installed. The default is now /usr/local.
  3030. --openssldir shall be used exclusively to give the default
  3031. location OPENSSLDIR where certificates, private keys, CRLs are
  3032. managed. This is also where the default openssl.cnf gets
  3033. installed.
  3034. If the directory given with this option is a relative path, the
  3035. values of both the --prefix value and the --openssldir value will
  3036. be combined to become OPENSSLDIR.
  3037. The default for --openssldir is INSTALLTOP/ssl.
  3038. Anyone who uses --openssldir to specify where OpenSSL is to be
  3039. installed MUST change to use --prefix instead.
  3040. *Richard Levitte*
  3041. * The GOST engine was out of date and therefore it has been removed. An up
  3042. to date GOST engine is now being maintained in an external repository.
  3043. See: <https://wiki.openssl.org/index.php/Binaries>. Libssl still retains
  3044. support for GOST ciphersuites (these are only activated if a GOST engine
  3045. is present).
  3046. *Matt Caswell*
  3047. * EGD is no longer supported by default; use enable-egd when
  3048. configuring.
  3049. *Ben Kaduk and Rich Salz*
  3050. * The distribution now has Makefile.in files, which are used to
  3051. create Makefile's when Configure is run. *Configure must be run
  3052. before trying to build now.*
  3053. *Rich Salz*
  3054. * The return value for SSL_CIPHER_description() for error conditions
  3055. has changed.
  3056. *Rich Salz*
  3057. * Support for RFC6698/RFC7671 DANE TLSA peer authentication.
  3058. Obtaining and performing DNSSEC validation of TLSA records is
  3059. the application's responsibility. The application provides
  3060. the TLSA records of its choice to OpenSSL, and these are then
  3061. used to authenticate the peer.
  3062. The TLSA records need not even come from DNS. They can, for
  3063. example, be used to implement local end-entity certificate or
  3064. trust-anchor "pinning", where the "pin" data takes the form
  3065. of TLSA records, which can augment or replace verification
  3066. based on the usual WebPKI public certification authorities.
  3067. *Viktor Dukhovni*
  3068. * Revert default OPENSSL_NO_DEPRECATED setting. Instead OpenSSL
  3069. continues to support deprecated interfaces in default builds.
  3070. However, applications are strongly advised to compile their
  3071. source files with -DOPENSSL_API_COMPAT=0x10100000L, which hides
  3072. the declarations of all interfaces deprecated in 0.9.8, 1.0.0
  3073. or the 1.1.0 releases.
  3074. In environments in which all applications have been ported to
  3075. not use any deprecated interfaces OpenSSL's Configure script
  3076. should be used with the --api=1.1.0 option to entirely remove
  3077. support for the deprecated features from the library and
  3078. unconditionally disable them in the installed headers.
  3079. Essentially the same effect can be achieved with the "no-deprecated"
  3080. argument to Configure, except that this will always restrict
  3081. the build to just the latest API, rather than a fixed API
  3082. version.
  3083. As applications are ported to future revisions of the API,
  3084. they should update their compile-time OPENSSL_API_COMPAT define
  3085. accordingly, but in most cases should be able to continue to
  3086. compile with later releases.
  3087. The OPENSSL_API_COMPAT versions for 1.0.0, and 0.9.8 are
  3088. 0x10000000L and 0x00908000L, respectively. However those
  3089. versions did not support the OPENSSL_API_COMPAT feature, and
  3090. so applications are not typically tested for explicit support
  3091. of just the undeprecated features of either release.
  3092. *Viktor Dukhovni*
  3093. * Add support for setting the minimum and maximum supported protocol.
  3094. It can bet set via the SSL_set_min_proto_version() and
  3095. SSL_set_max_proto_version(), or via the SSL_CONF's MinProtocol and
  3096. MaxProtocol. It's recommended to use the new APIs to disable
  3097. protocols instead of disabling individual protocols using
  3098. SSL_set_options() or SSL_CONF's Protocol. This change also
  3099. removes support for disabling TLS 1.2 in the OpenSSL TLS
  3100. client at compile time by defining OPENSSL_NO_TLS1_2_CLIENT.
  3101. *Kurt Roeckx*
  3102. * Support for ChaCha20 and Poly1305 added to libcrypto and libssl.
  3103. *Andy Polyakov*
  3104. * New EC_KEY_METHOD, this replaces the older ECDSA_METHOD and ECDH_METHOD
  3105. and integrates ECDSA and ECDH functionality into EC. Implementations can
  3106. now redirect key generation and no longer need to convert to or from
  3107. ECDSA_SIG format.
  3108. Note: the ecdsa.h and ecdh.h headers are now no longer needed and just
  3109. include the ec.h header file instead.
  3110. *Steve Henson*
  3111. * Remove support for all 40 and 56 bit ciphers. This includes all the export
  3112. ciphers who are no longer supported and drops support the ephemeral RSA key
  3113. exchange. The LOW ciphers currently doesn't have any ciphers in it.
  3114. *Kurt Roeckx*
  3115. * Made EVP_MD_CTX, EVP_MD, EVP_CIPHER_CTX, EVP_CIPHER and HMAC_CTX
  3116. opaque. For HMAC_CTX, the following constructors and destructors
  3117. were added:
  3118. HMAC_CTX *HMAC_CTX_new(void);
  3119. void HMAC_CTX_free(HMAC_CTX *ctx);
  3120. For EVP_MD and EVP_CIPHER, complete APIs to create, fill and
  3121. destroy such methods has been added. See EVP_MD_meth_new(3) and
  3122. EVP_CIPHER_meth_new(3) for documentation.
  3123. Additional changes:
  3124. 1) `EVP_MD_CTX_cleanup()`, `EVP_CIPHER_CTX_cleanup()` and
  3125. `HMAC_CTX_cleanup()` were removed. `HMAC_CTX_reset()` and
  3126. `EVP_MD_CTX_reset()` should be called instead to reinitialise
  3127. an already created structure.
  3128. 2) For consistency with the majority of our object creators and
  3129. destructors, `EVP_MD_CTX_(create|destroy)` were renamed to
  3130. `EVP_MD_CTX_(new|free)`. The old names are retained as macros
  3131. for deprecated builds.
  3132. *Richard Levitte*
  3133. * Added ASYNC support. Libcrypto now includes the async sub-library to enable
  3134. cryptographic operations to be performed asynchronously as long as an
  3135. asynchronous capable engine is used. See the ASYNC_start_job() man page for
  3136. further details. Libssl has also had this capability integrated with the
  3137. introduction of the new mode SSL_MODE_ASYNC and associated error
  3138. SSL_ERROR_WANT_ASYNC. See the SSL_CTX_set_mode() and SSL_get_error() man
  3139. pages. This work was developed in partnership with Intel Corp.
  3140. *Matt Caswell*
  3141. * SSL_{CTX_}set_ecdh_auto() has been removed and ECDH is support is
  3142. always enabled now. If you want to disable the support you should
  3143. exclude it using the list of supported ciphers. This also means that the
  3144. "-no_ecdhe" option has been removed from s_server.
  3145. *Kurt Roeckx*
  3146. * SSL_{CTX}_set_tmp_ecdh() which can set 1 EC curve now internally calls
  3147. SSL_{CTX_}set1_curves() which can set a list.
  3148. *Kurt Roeckx*
  3149. * Remove support for SSL_{CTX_}set_tmp_ecdh_callback(). You should set the
  3150. curve you want to support using SSL_{CTX_}set1_curves().
  3151. *Kurt Roeckx*
  3152. * State machine rewrite. The state machine code has been significantly
  3153. refactored in order to remove much duplication of code and solve issues
  3154. with the old code (see [ssl/statem/README.md](ssl/statem/README.md) for
  3155. further details). This change does have some associated API changes.
  3156. Notably the SSL_state() function has been removed and replaced by
  3157. SSL_get_state which now returns an "OSSL_HANDSHAKE_STATE" instead of an int.
  3158. SSL_set_state() has been removed altogether. The previous handshake states
  3159. defined in ssl.h and ssl3.h have also been removed.
  3160. *Matt Caswell*
  3161. * All instances of the string "ssleay" in the public API were replaced
  3162. with OpenSSL (case-matching; e.g., OPENSSL_VERSION for #define's)
  3163. Some error codes related to internal RSA_eay API's were renamed.
  3164. *Rich Salz*
  3165. * The demo files in crypto/threads were moved to demo/threads.
  3166. *Rich Salz*
  3167. * Removed obsolete engines: 4758cca, aep, atalla, cswift, nuron, gmp,
  3168. sureware and ubsec.
  3169. *Matt Caswell, Rich Salz*
  3170. * New ASN.1 embed macro.
  3171. New ASN.1 macro ASN1_EMBED. This is the same as ASN1_SIMPLE except the
  3172. structure is not allocated: it is part of the parent. That is instead of
  3173. FOO *x;
  3174. it must be:
  3175. FOO x;
  3176. This reduces memory fragmentation and make it impossible to accidentally
  3177. set a mandatory field to NULL.
  3178. This currently only works for some fields specifically a SEQUENCE, CHOICE,
  3179. or ASN1_STRING type which is part of a parent SEQUENCE. Since it is
  3180. equivalent to ASN1_SIMPLE it cannot be tagged, OPTIONAL, SET OF or
  3181. SEQUENCE OF.
  3182. *Steve Henson*
  3183. * Remove EVP_CHECK_DES_KEY, a compile-time option that never compiled.
  3184. *Emilia Käsper*
  3185. * Removed DES and RC4 ciphersuites from DEFAULT. Also removed RC2 although
  3186. in 1.0.2 EXPORT was already removed and the only RC2 ciphersuite is also
  3187. an EXPORT one. COMPLEMENTOFDEFAULT has been updated accordingly to add
  3188. DES and RC4 ciphersuites.
  3189. *Matt Caswell*
  3190. * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs.
  3191. This changes the decoding behaviour for some invalid messages,
  3192. though the change is mostly in the more lenient direction, and
  3193. legacy behaviour is preserved as much as possible.
  3194. *Emilia Käsper*
  3195. * Fix no-stdio build.
  3196. *David Woodhouse <David.Woodhouse@intel.com> and also*
  3197. *Ivan Nestlerode <ivan.nestlerode@sonos.com>*
  3198. * New testing framework
  3199. The testing framework has been largely rewritten and is now using
  3200. perl and the perl modules Test::Harness and an extended variant of
  3201. Test::More called OpenSSL::Test to do its work. All test scripts in
  3202. test/ have been rewritten into test recipes, and all direct calls to
  3203. executables in test/Makefile have become individual recipes using the
  3204. simplified testing OpenSSL::Test::Simple.
  3205. For documentation on our testing modules, do:
  3206. perldoc test/testlib/OpenSSL/Test/Simple.pm
  3207. perldoc test/testlib/OpenSSL/Test.pm
  3208. *Richard Levitte*
  3209. * Revamped memory debug; only -DCRYPTO_MDEBUG and -DCRYPTO_MDEBUG_ABORT
  3210. are used; the latter aborts on memory leaks (usually checked on exit).
  3211. Some undocumented "set malloc, etc., hooks" functions were removed
  3212. and others were changed. All are now documented.
  3213. *Rich Salz*
  3214. * In DSA_generate_parameters_ex, if the provided seed is too short,
  3215. return an error
  3216. *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>*
  3217. * Rewrite PSK to support ECDHE_PSK, DHE_PSK and RSA_PSK. Add ciphersuites
  3218. from RFC4279, RFC4785, RFC5487, RFC5489.
  3219. Thanks to Christian J. Dietrich and Giuseppe D'Angelo for the
  3220. original RSA_PSK patch.
  3221. *Steve Henson*
  3222. * Dropped support for the SSL3_FLAGS_DELAY_CLIENT_FINISHED flag. This SSLeay
  3223. era flag was never set throughout the codebase (only read). Also removed
  3224. SSL3_FLAGS_POP_BUFFER which was only used if
  3225. SSL3_FLAGS_DELAY_CLIENT_FINISHED was also set.
  3226. *Matt Caswell*
  3227. * Changed the default name options in the "ca", "crl", "req" and "x509"
  3228. to be "oneline" instead of "compat".
  3229. *Richard Levitte*
  3230. * Remove SSL_OP_TLS_BLOCK_PADDING_BUG. This is SSLeay legacy, we're
  3231. not aware of clients that still exhibit this bug, and the workaround
  3232. hasn't been working properly for a while.
  3233. *Emilia Käsper*
  3234. * The return type of BIO_number_read() and BIO_number_written() as well as
  3235. the corresponding num_read and num_write members in the BIO structure has
  3236. changed from unsigned long to uint64_t. On platforms where an unsigned
  3237. long is 32 bits (e.g. Windows) these counters could overflow if >4Gb is
  3238. transferred.
  3239. *Matt Caswell*
  3240. * Given the pervasive nature of TLS extensions it is inadvisable to run
  3241. OpenSSL without support for them. It also means that maintaining
  3242. the OPENSSL_NO_TLSEXT option within the code is very invasive (and probably
  3243. not well tested). Therefore, the OPENSSL_NO_TLSEXT option has been removed.
  3244. *Matt Caswell*
  3245. * Removed support for the two export grade static DH ciphersuites
  3246. EXP-DH-RSA-DES-CBC-SHA and EXP-DH-DSS-DES-CBC-SHA. These two ciphersuites
  3247. were newly added (along with a number of other static DH ciphersuites) to
  3248. 1.0.2. However the two export ones have *never* worked since they were
  3249. introduced. It seems strange in any case to be adding new export
  3250. ciphersuites, and given "logjam" it also does not seem correct to fix them.
  3251. *Matt Caswell*
  3252. * Version negotiation has been rewritten. In particular SSLv23_method(),
  3253. SSLv23_client_method() and SSLv23_server_method() have been deprecated,
  3254. and turned into macros which simply call the new preferred function names
  3255. TLS_method(), TLS_client_method() and TLS_server_method(). All new code
  3256. should use the new names instead. Also as part of this change the ssl23.h
  3257. header file has been removed.
  3258. *Matt Caswell*
  3259. * Support for Kerberos ciphersuites in TLS (RFC2712) has been removed. This
  3260. code and the associated standard is no longer considered fit-for-purpose.
  3261. *Matt Caswell*
  3262. * RT2547 was closed. When generating a private key, try to make the
  3263. output file readable only by the owner. This behavior change might
  3264. be noticeable when interacting with other software.
  3265. * Documented all exdata functions. Added CRYPTO_free_ex_index.
  3266. Added a test.
  3267. *Rich Salz*
  3268. * Added HTTP GET support to the ocsp command.
  3269. *Rich Salz*
  3270. * Changed default digest for the dgst and enc commands from MD5 to
  3271. sha256
  3272. *Rich Salz*
  3273. * RAND_pseudo_bytes has been deprecated. Users should use RAND_bytes instead.
  3274. *Matt Caswell*
  3275. * Added support for TLS extended master secret from
  3276. draft-ietf-tls-session-hash-03.txt. Thanks for Alfredo Pironti for an
  3277. initial patch which was a great help during development.
  3278. *Steve Henson*
  3279. * All libssl internal structures have been removed from the public header
  3280. files, and the OPENSSL_NO_SSL_INTERN option has been removed (since it is
  3281. now redundant). Users should not attempt to access internal structures
  3282. directly. Instead they should use the provided API functions.
  3283. *Matt Caswell*
  3284. * config has been changed so that by default OPENSSL_NO_DEPRECATED is used.
  3285. Access to deprecated functions can be re-enabled by running config with
  3286. "enable-deprecated". In addition applications wishing to use deprecated
  3287. functions must define OPENSSL_USE_DEPRECATED. Note that this new behaviour
  3288. will, by default, disable some transitive includes that previously existed
  3289. in the header files (e.g. ec.h will no longer, by default, include bn.h)
  3290. *Matt Caswell*
  3291. * Added support for OCB mode. OpenSSL has been granted a patent license
  3292. compatible with the OpenSSL license for use of OCB. Details are available
  3293. at <https://www.openssl.org/source/OCB-patent-grant-OpenSSL.pdf>. Support
  3294. for OCB can be removed by calling config with no-ocb.
  3295. *Matt Caswell*
  3296. * SSLv2 support has been removed. It still supports receiving an SSLv2
  3297. compatible client hello.
  3298. *Kurt Roeckx*
  3299. * Increased the minimal RSA keysize from 256 to 512 bits [Rich Salz],
  3300. done while fixing the error code for the key-too-small case.
  3301. *Annie Yousar <a.yousar@informatik.hu-berlin.de>*
  3302. * CA.sh has been removed; use CA.pl instead.
  3303. *Rich Salz*
  3304. * Removed old DES API.
  3305. *Rich Salz*
  3306. * Remove various unsupported platforms:
  3307. Sony NEWS4
  3308. BEOS and BEOS_R5
  3309. NeXT
  3310. SUNOS
  3311. MPE/iX
  3312. Sinix/ReliantUNIX RM400
  3313. DGUX
  3314. NCR
  3315. Tandem
  3316. Cray
  3317. 16-bit platforms such as WIN16
  3318. *Rich Salz*
  3319. * Clean up OPENSSL_NO_xxx #define's
  3320. - Use setbuf() and remove OPENSSL_NO_SETVBUF_IONBF
  3321. - Rename OPENSSL_SYSNAME_xxx to OPENSSL_SYS_xxx
  3322. - OPENSSL_NO_EC{DH,DSA} merged into OPENSSL_NO_EC
  3323. - OPENSSL_NO_RIPEMD160, OPENSSL_NO_RIPEMD merged into OPENSSL_NO_RMD160
  3324. - OPENSSL_NO_FP_API merged into OPENSSL_NO_STDIO
  3325. - Remove OPENSSL_NO_BIO OPENSSL_NO_BUFFER OPENSSL_NO_CHAIN_VERIFY
  3326. OPENSSL_NO_EVP OPENSSL_NO_FIPS_ERR OPENSSL_NO_HASH_COMP
  3327. OPENSSL_NO_LHASH OPENSSL_NO_OBJECT OPENSSL_NO_SPEED OPENSSL_NO_STACK
  3328. OPENSSL_NO_X509 OPENSSL_NO_X509_VERIFY
  3329. - Remove MS_STATIC; it's a relic from platforms <32 bits.
  3330. *Rich Salz*
  3331. * Cleaned up dead code
  3332. Remove all but one '#ifdef undef' which is to be looked at.
  3333. *Rich Salz*
  3334. * Clean up calling of xxx_free routines.
  3335. Just like free(), fix most of the xxx_free routines to accept
  3336. NULL. Remove the non-null checks from callers. Save much code.
  3337. *Rich Salz*
  3338. * Add secure heap for storage of private keys (when possible).
  3339. Add BIO_s_secmem(), CBIGNUM, etc.
  3340. Contributed by Akamai Technologies under our Corporate CLA.
  3341. *Rich Salz*
  3342. * Experimental support for a new, fast, unbiased prime candidate generator,
  3343. bn_probable_prime_dh_coprime(). Not currently used by any prime generator.
  3344. *Felix Laurie von Massenbach <felix@erbridge.co.uk>*
  3345. * New output format NSS in the sess_id command line tool. This allows
  3346. exporting the session id and the master key in NSS keylog format.
  3347. *Martin Kaiser <martin@kaiser.cx>*
  3348. * Harmonize version and its documentation. -f flag is used to display
  3349. compilation flags.
  3350. *mancha <mancha1@zoho.com>*
  3351. * Fix eckey_priv_encode so it immediately returns an error upon a failure
  3352. in i2d_ECPrivateKey. Thanks to Ted Unangst for feedback on this issue.
  3353. *mancha <mancha1@zoho.com>*
  3354. * Fix some double frees. These are not thought to be exploitable.
  3355. *mancha <mancha1@zoho.com>*
  3356. * A missing bounds check in the handling of the TLS heartbeat extension
  3357. can be used to reveal up to 64k of memory to a connected client or
  3358. server.
  3359. Thanks for Neel Mehta of Google Security for discovering this bug and to
  3360. Adam Langley <agl@chromium.org> and Bodo Moeller <bmoeller@acm.org> for
  3361. preparing the fix ([CVE-2014-0160])
  3362. *Adam Langley, Bodo Moeller*
  3363. * Fix for the attack described in the paper "Recovering OpenSSL
  3364. ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack"
  3365. by Yuval Yarom and Naomi Benger. Details can be obtained from:
  3366. <http://eprint.iacr.org/2014/140>
  3367. Thanks to Yuval Yarom and Naomi Benger for discovering this
  3368. flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076])
  3369. *Yuval Yarom and Naomi Benger*
  3370. * Use algorithm specific chains in SSL_CTX_use_certificate_chain_file():
  3371. this fixes a limitation in previous versions of OpenSSL.
  3372. *Steve Henson*
  3373. * Experimental encrypt-then-mac support.
  3374. Experimental support for encrypt then mac from
  3375. draft-gutmann-tls-encrypt-then-mac-02.txt
  3376. To enable it set the appropriate extension number (0x42 for the test
  3377. server) using e.g. -DTLSEXT_TYPE_encrypt_then_mac=0x42
  3378. For non-compliant peers (i.e. just about everything) this should have no
  3379. effect.
  3380. WARNING: EXPERIMENTAL, SUBJECT TO CHANGE.
  3381. *Steve Henson*
  3382. * Add EVP support for key wrapping algorithms, to avoid problems with
  3383. existing code the flag EVP_CIPHER_CTX_WRAP_ALLOW has to be set in
  3384. the EVP_CIPHER_CTX or an error is returned. Add AES and DES3 wrap
  3385. algorithms and include tests cases.
  3386. *Steve Henson*
  3387. * Extend CMS code to support RSA-PSS signatures and RSA-OAEP for
  3388. enveloped data.
  3389. *Steve Henson*
  3390. * Extended RSA OAEP support via EVP_PKEY API. Options to specify digest,
  3391. MGF1 digest and OAEP label.
  3392. *Steve Henson*
  3393. * Make openssl verify return errors.
  3394. *Chris Palmer <palmer@google.com> and Ben Laurie*
  3395. * New function ASN1_TIME_diff to calculate the difference between two
  3396. ASN1_TIME structures or one structure and the current time.
  3397. *Steve Henson*
  3398. * Update fips_test_suite to support multiple command line options. New
  3399. test to induce all self test errors in sequence and check expected
  3400. failures.
  3401. *Steve Henson*
  3402. * Add FIPS_{rsa,dsa,ecdsa}_{sign,verify} functions which digest and
  3403. sign or verify all in one operation.
  3404. *Steve Henson*
  3405. * Add fips_algvs: a multicall fips utility incorporating all the algorithm
  3406. test programs and fips_test_suite. Includes functionality to parse
  3407. the minimal script output of fipsalgest.pl directly.
  3408. *Steve Henson*
  3409. * Add authorisation parameter to FIPS_module_mode_set().
  3410. *Steve Henson*
  3411. * Add FIPS selftest for ECDH algorithm using P-224 and B-233 curves.
  3412. *Steve Henson*
  3413. * Use separate DRBG fields for internal and external flags. New function
  3414. FIPS_drbg_health_check() to perform on demand health checking. Add
  3415. generation tests to fips_test_suite with reduced health check interval to
  3416. demonstrate periodic health checking. Add "nodh" option to
  3417. fips_test_suite to skip very slow DH test.
  3418. *Steve Henson*
  3419. * New function FIPS_get_cipherbynid() to lookup FIPS supported ciphers
  3420. based on NID.
  3421. *Steve Henson*
  3422. * More extensive health check for DRBG checking many more failure modes.
  3423. New function FIPS_selftest_drbg_all() to handle every possible DRBG
  3424. combination: call this in fips_test_suite.
  3425. *Steve Henson*
  3426. * Add support for canonical generation of DSA parameter 'g'. See
  3427. FIPS 186-3 A.2.3.
  3428. * Add support for HMAC DRBG from SP800-90. Update DRBG algorithm test and
  3429. POST to handle HMAC cases.
  3430. *Steve Henson*
  3431. * Add functions FIPS_module_version() and FIPS_module_version_text()
  3432. to return numerical and string versions of the FIPS module number.
  3433. *Steve Henson*
  3434. * Rename FIPS_mode_set and FIPS_mode to FIPS_module_mode_set and
  3435. FIPS_module_mode. FIPS_mode and FIPS_mode_set will be implemented
  3436. outside the validated module in the FIPS capable OpenSSL.
  3437. *Steve Henson*
  3438. * Minor change to DRBG entropy callback semantics. In some cases
  3439. there is no multiple of the block length between min_len and
  3440. max_len. Allow the callback to return more than max_len bytes
  3441. of entropy but discard any extra: it is the callback's responsibility
  3442. to ensure that the extra data discarded does not impact the
  3443. requested amount of entropy.
  3444. *Steve Henson*
  3445. * Add PRNG security strength checks to RSA, DSA and ECDSA using
  3446. information in FIPS186-3, SP800-57 and SP800-131A.
  3447. *Steve Henson*
  3448. * CCM support via EVP. Interface is very similar to GCM case except we
  3449. must supply all data in one chunk (i.e. no update, final) and the
  3450. message length must be supplied if AAD is used. Add algorithm test
  3451. support.
  3452. *Steve Henson*
  3453. * Initial version of POST overhaul. Add POST callback to allow the status
  3454. of POST to be monitored and/or failures induced. Modify fips_test_suite
  3455. to use callback. Always run all selftests even if one fails.
  3456. *Steve Henson*
  3457. * XTS support including algorithm test driver in the fips_gcmtest program.
  3458. Note: this does increase the maximum key length from 32 to 64 bytes but
  3459. there should be no binary compatibility issues as existing applications
  3460. will never use XTS mode.
  3461. *Steve Henson*
  3462. * Extensive reorganisation of FIPS PRNG behaviour. Remove all dependencies
  3463. to OpenSSL RAND code and replace with a tiny FIPS RAND API which also
  3464. performs algorithm blocking for unapproved PRNG types. Also do not
  3465. set PRNG type in FIPS_mode_set(): leave this to the application.
  3466. Add default OpenSSL DRBG handling: sets up FIPS PRNG and seeds with
  3467. the standard OpenSSL PRNG: set additional data to a date time vector.
  3468. *Steve Henson*
  3469. * Rename old X9.31 PRNG functions of the form `FIPS_rand*` to `FIPS_x931*`.
  3470. This shouldn't present any incompatibility problems because applications
  3471. shouldn't be using these directly and any that are will need to rethink
  3472. anyway as the X9.31 PRNG is now deprecated by FIPS 140-2
  3473. *Steve Henson*
  3474. * Extensive self tests and health checking required by SP800-90 DRBG.
  3475. Remove strength parameter from FIPS_drbg_instantiate and always
  3476. instantiate at maximum supported strength.
  3477. *Steve Henson*
  3478. * Add ECDH code to fips module and fips_ecdhvs for primitives only testing.
  3479. *Steve Henson*
  3480. * New algorithm test program fips_dhvs to handle DH primitives only testing.
  3481. *Steve Henson*
  3482. * New function DH_compute_key_padded() to compute a DH key and pad with
  3483. leading zeroes if needed: this complies with SP800-56A et al.
  3484. *Steve Henson*
  3485. * Initial implementation of SP800-90 DRBGs for Hash and CTR. Not used by
  3486. anything, incomplete, subject to change and largely untested at present.
  3487. *Steve Henson*
  3488. * Modify fipscanisteronly build option to only build the necessary object
  3489. files by filtering FIPS_EX_OBJ through a perl script in crypto/Makefile.
  3490. *Steve Henson*
  3491. * Add experimental option FIPSSYMS to give all symbols in
  3492. fipscanister.o and FIPS or fips prefix. This will avoid
  3493. conflicts with future versions of OpenSSL. Add perl script
  3494. util/fipsas.pl to preprocess assembly language source files
  3495. and rename any affected symbols.
  3496. *Steve Henson*
  3497. * Add selftest checks and algorithm block of non-fips algorithms in
  3498. FIPS mode. Remove DES2 from selftests.
  3499. *Steve Henson*
  3500. * Add ECDSA code to fips module. Add tiny fips_ecdsa_check to just
  3501. return internal method without any ENGINE dependencies. Add new
  3502. tiny fips sign and verify functions.
  3503. *Steve Henson*
  3504. * New build option no-ec2m to disable characteristic 2 code.
  3505. *Steve Henson*
  3506. * New build option "fipscanisteronly". This only builds fipscanister.o
  3507. and (currently) associated fips utilities. Uses the file Makefile.fips
  3508. instead of Makefile.org as the prototype.
  3509. *Steve Henson*
  3510. * Add some FIPS mode restrictions to GCM. Add internal IV generator.
  3511. Update fips_gcmtest to use IV generator.
  3512. *Steve Henson*
  3513. * Initial, experimental EVP support for AES-GCM. AAD can be input by
  3514. setting output buffer to NULL. The `*Final` function must be
  3515. called although it will not retrieve any additional data. The tag
  3516. can be set or retrieved with a ctrl. The IV length is by default 12
  3517. bytes (96 bits) but can be set to an alternative value. If the IV
  3518. length exceeds the maximum IV length (currently 16 bytes) it cannot be
  3519. set before the key.
  3520. *Steve Henson*
  3521. * New flag in ciphers: EVP_CIPH_FLAG_CUSTOM_CIPHER. This means the
  3522. underlying do_cipher function handles all cipher semantics itself
  3523. including padding and finalisation. This is useful if (for example)
  3524. an ENGINE cipher handles block padding itself. The behaviour of
  3525. do_cipher is subtly changed if this flag is set: the return value
  3526. is the number of characters written to the output buffer (zero is
  3527. no longer an error code) or a negative error code. Also if the
  3528. input buffer is NULL and length 0 finalisation should be performed.
  3529. *Steve Henson*
  3530. * If a candidate issuer certificate is already part of the constructed
  3531. path ignore it: new debug notification X509_V_ERR_PATH_LOOP for this case.
  3532. *Steve Henson*
  3533. * Improve forward-security support: add functions
  3534. void SSL_CTX_set_not_resumable_session_callback(
  3535. SSL_CTX *ctx, int (*cb)(SSL *ssl, int is_forward_secure))
  3536. void SSL_set_not_resumable_session_callback(
  3537. SSL *ssl, int (*cb)(SSL *ssl, int is_forward_secure))
  3538. for use by SSL/TLS servers; the callback function will be called whenever a
  3539. new session is created, and gets to decide whether the session may be
  3540. cached to make it resumable (return 0) or not (return 1). (As by the
  3541. SSL/TLS protocol specifications, the session_id sent by the server will be
  3542. empty to indicate that the session is not resumable; also, the server will
  3543. not generate RFC 4507 (RFC 5077) session tickets.)
  3544. A simple reasonable callback implementation is to return is_forward_secure.
  3545. This parameter will be set to 1 or 0 depending on the ciphersuite selected
  3546. by the SSL/TLS server library, indicating whether it can provide forward
  3547. security.
  3548. *Emilia Käsper <emilia.kasper@esat.kuleuven.be> (Google)*
  3549. * New -verify_name option in command line utilities to set verification
  3550. parameters by name.
  3551. *Steve Henson*
  3552. * Initial CMAC implementation. WARNING: EXPERIMENTAL, API MAY CHANGE.
  3553. Add CMAC pkey methods.
  3554. *Steve Henson*
  3555. * Experimental renegotiation in s_server -www mode. If the client
  3556. browses /reneg connection is renegotiated. If /renegcert it is
  3557. renegotiated requesting a certificate.
  3558. *Steve Henson*
  3559. * Add an "external" session cache for debugging purposes to s_server. This
  3560. should help trace issues which normally are only apparent in deployed
  3561. multi-process servers.
  3562. *Steve Henson*
  3563. * Extensive audit of libcrypto with DEBUG_UNUSED. Fix many cases where
  3564. return value is ignored. NB. The functions RAND_add(), RAND_seed(),
  3565. BIO_set_cipher() and some obscure PEM functions were changed so they
  3566. can now return an error. The RAND changes required a change to the
  3567. RAND_METHOD structure.
  3568. *Steve Henson*
  3569. * New macro `__owur` for "OpenSSL Warn Unused Result". This makes use of
  3570. a gcc attribute to warn if the result of a function is ignored. This
  3571. is enable if DEBUG_UNUSED is set. Add to several functions in evp.h
  3572. whose return value is often ignored.
  3573. *Steve Henson*
  3574. * New -noct, -requestct, -requirect and -ctlogfile options for s_client.
  3575. These allow SCTs (signed certificate timestamps) to be requested and
  3576. validated when establishing a connection.
  3577. *Rob Percival <robpercival@google.com>*
  3578. OpenSSL 1.0.2
  3579. -------------
  3580. ### Changes between 1.0.2s and 1.0.2t [10 Sep 2019]
  3581. * For built-in EC curves, ensure an EC_GROUP built from the curve name is
  3582. used even when parsing explicit parameters, when loading a encoded key
  3583. or calling `EC_GROUP_new_from_ecpkparameters()`/
  3584. `EC_GROUP_new_from_ecparameters()`.
  3585. This prevents bypass of security hardening and performance gains,
  3586. especially for curves with specialized EC_METHODs.
  3587. By default, if a key encoded with explicit parameters is loaded and later
  3588. encoded, the output is still encoded with explicit parameters, even if
  3589. internally a "named" EC_GROUP is used for computation.
  3590. *Nicola Tuveri*
  3591. * Compute ECC cofactors if not provided during EC_GROUP construction. Before
  3592. this change, EC_GROUP_set_generator would accept order and/or cofactor as
  3593. NULL. After this change, only the cofactor parameter can be NULL. It also
  3594. does some minimal sanity checks on the passed order.
  3595. ([CVE-2019-1547])
  3596. *Billy Bob Brumley*
  3597. * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
  3598. An attack is simple, if the first CMS_recipientInfo is valid but the
  3599. second CMS_recipientInfo is chosen ciphertext. If the second
  3600. recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
  3601. encryption key will be replaced by garbage, and the message cannot be
  3602. decoded, but if the RSA decryption fails, the correct encryption key is
  3603. used and the recipient will not notice the attack.
  3604. As a work around for this potential attack the length of the decrypted
  3605. key must be equal to the cipher default key length, in case the
  3606. certificate is not given and all recipientInfo are tried out.
  3607. The old behaviour can be re-enabled in the CMS code by setting the
  3608. CMS_DEBUG_DECRYPT flag.
  3609. ([CVE-2019-1563])
  3610. *Bernd Edlinger*
  3611. * Document issue with installation paths in diverse Windows builds
  3612. '/usr/local/ssl' is an unsafe prefix for location to install OpenSSL
  3613. binaries and run-time config file.
  3614. ([CVE-2019-1552])
  3615. *Richard Levitte*
  3616. ### Changes between 1.0.2r and 1.0.2s [28 May 2019]
  3617. * Change the default RSA, DSA and DH size to 2048 bit instead of 1024.
  3618. This changes the size when using the `genpkey` command when no size is given.
  3619. It fixes an omission in earlier changes that changed all RSA, DSA and DH
  3620. generation commands to use 2048 bits by default.
  3621. *Kurt Roeckx*
  3622. * Add FIPS support for Android Arm 64-bit
  3623. Support for Android Arm 64-bit was added to the OpenSSL FIPS Object
  3624. Module in Version 2.0.10. For some reason, the corresponding target
  3625. 'android64-aarch64' was missing OpenSSL 1.0.2, whence it could not be
  3626. built with FIPS support on Android Arm 64-bit. This omission has been
  3627. fixed.
  3628. *Matthias St. Pierre*
  3629. ### Changes between 1.0.2q and 1.0.2r [26 Feb 2019]
  3630. * 0-byte record padding oracle
  3631. If an application encounters a fatal protocol error and then calls
  3632. SSL_shutdown() twice (once to send a close_notify, and once to receive one)
  3633. then OpenSSL can respond differently to the calling application if a 0 byte
  3634. record is received with invalid padding compared to if a 0 byte record is
  3635. received with an invalid MAC. If the application then behaves differently
  3636. based on that in a way that is detectable to the remote peer, then this
  3637. amounts to a padding oracle that could be used to decrypt data.
  3638. In order for this to be exploitable "non-stitched" ciphersuites must be in
  3639. use. Stitched ciphersuites are optimised implementations of certain
  3640. commonly used ciphersuites. Also the application must call SSL_shutdown()
  3641. twice even if a protocol error has occurred (applications should not do
  3642. this but some do anyway).
  3643. This issue was discovered by Juraj Somorovsky, Robert Merget and Nimrod
  3644. Aviram, with additional investigation by Steven Collison and Andrew
  3645. Hourselt. It was reported to OpenSSL on 10th December 2018.
  3646. ([CVE-2019-1559])
  3647. *Matt Caswell*
  3648. * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0().
  3649. *Richard Levitte*
  3650. ### Changes between 1.0.2p and 1.0.2q [20 Nov 2018]
  3651. * Microarchitecture timing vulnerability in ECC scalar multiplication
  3652. OpenSSL ECC scalar multiplication, used in e.g. ECDSA and ECDH, has been
  3653. shown to be vulnerable to a microarchitecture timing side channel attack.
  3654. An attacker with sufficient access to mount local timing attacks during
  3655. ECDSA signature generation could recover the private key.
  3656. This issue was reported to OpenSSL on 26th October 2018 by Alejandro
  3657. Cabrera Aldaya, Billy Brumley, Sohaib ul Hassan, Cesar Pereida Garcia and
  3658. Nicola Tuveri.
  3659. ([CVE-2018-5407])
  3660. *Billy Brumley*
  3661. * Timing vulnerability in DSA signature generation
  3662. The OpenSSL DSA signature algorithm has been shown to be vulnerable to a
  3663. timing side channel attack. An attacker could use variations in the signing
  3664. algorithm to recover the private key.
  3665. This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser.
  3666. ([CVE-2018-0734])
  3667. *Paul Dale*
  3668. * Resolve a compatibility issue in EC_GROUP handling with the FIPS Object
  3669. Module, accidentally introduced while backporting security fixes from the
  3670. development branch and hindering the use of ECC in FIPS mode.
  3671. *Nicola Tuveri*
  3672. ### Changes between 1.0.2o and 1.0.2p [14 Aug 2018]
  3673. * Client DoS due to large DH parameter
  3674. During key agreement in a TLS handshake using a DH(E) based ciphersuite a
  3675. malicious server can send a very large prime value to the client. This will
  3676. cause the client to spend an unreasonably long period of time generating a
  3677. key for this prime resulting in a hang until the client has finished. This
  3678. could be exploited in a Denial Of Service attack.
  3679. This issue was reported to OpenSSL on 5th June 2018 by Guido Vranken
  3680. ([CVE-2018-0732])
  3681. *Guido Vranken*
  3682. * Cache timing vulnerability in RSA Key Generation
  3683. The OpenSSL RSA Key generation algorithm has been shown to be vulnerable to
  3684. a cache timing side channel attack. An attacker with sufficient access to
  3685. mount cache timing attacks during the RSA key generation process could
  3686. recover the private key.
  3687. This issue was reported to OpenSSL on 4th April 2018 by Alejandro Cabrera
  3688. Aldaya, Billy Brumley, Cesar Pereida Garcia and Luis Manuel Alvarez Tapia.
  3689. ([CVE-2018-0737])
  3690. *Billy Brumley*
  3691. * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str
  3692. parameter is no longer accepted, as it leads to a corrupt table. NULL
  3693. pem_str is reserved for alias entries only.
  3694. *Richard Levitte*
  3695. * Revert blinding in ECDSA sign and instead make problematic addition
  3696. length-invariant. Switch even to fixed-length Montgomery multiplication.
  3697. *Andy Polyakov*
  3698. * Change generating and checking of primes so that the error rate of not
  3699. being prime depends on the intended use based on the size of the input.
  3700. For larger primes this will result in more rounds of Miller-Rabin.
  3701. The maximal error rate for primes with more than 1080 bits is lowered
  3702. to 2^-128.
  3703. *Kurt Roeckx, Annie Yousar*
  3704. * Increase the number of Miller-Rabin rounds for DSA key generating to 64.
  3705. *Kurt Roeckx*
  3706. * Add blinding to ECDSA and DSA signatures to protect against side channel
  3707. attacks discovered by Keegan Ryan (NCC Group).
  3708. *Matt Caswell*
  3709. * When unlocking a pass phrase protected PEM file or PKCS#8 container, we
  3710. now allow empty (zero character) pass phrases.
  3711. *Richard Levitte*
  3712. * Certificate time validation (X509_cmp_time) enforces stricter
  3713. compliance with RFC 5280. Fractional seconds and timezone offsets
  3714. are no longer allowed.
  3715. *Emilia Käsper*
  3716. ### Changes between 1.0.2n and 1.0.2o [27 Mar 2018]
  3717. * Constructed ASN.1 types with a recursive definition could exceed the stack
  3718. Constructed ASN.1 types with a recursive definition (such as can be found
  3719. in PKCS7) could eventually exceed the stack given malicious input with
  3720. excessive recursion. This could result in a Denial Of Service attack. There
  3721. are no such structures used within SSL/TLS that come from untrusted sources
  3722. so this is considered safe.
  3723. This issue was reported to OpenSSL on 4th January 2018 by the OSS-fuzz
  3724. project.
  3725. ([CVE-2018-0739])
  3726. *Matt Caswell*
  3727. ### Changes between 1.0.2m and 1.0.2n [7 Dec 2017]
  3728. * Read/write after SSL object in error state
  3729. OpenSSL 1.0.2 (starting from version 1.0.2b) introduced an "error state"
  3730. mechanism. The intent was that if a fatal error occurred during a handshake
  3731. then OpenSSL would move into the error state and would immediately fail if
  3732. you attempted to continue the handshake. This works as designed for the
  3733. explicit handshake functions (SSL_do_handshake(), SSL_accept() and
  3734. SSL_connect()), however due to a bug it does not work correctly if
  3735. SSL_read() or SSL_write() is called directly. In that scenario, if the
  3736. handshake fails then a fatal error will be returned in the initial function
  3737. call. If SSL_read()/SSL_write() is subsequently called by the application
  3738. for the same SSL object then it will succeed and the data is passed without
  3739. being decrypted/encrypted directly from the SSL/TLS record layer.
  3740. In order to exploit this issue an application bug would have to be present
  3741. that resulted in a call to SSL_read()/SSL_write() being issued after having
  3742. already received a fatal error.
  3743. This issue was reported to OpenSSL by David Benjamin (Google).
  3744. ([CVE-2017-3737])
  3745. *Matt Caswell*
  3746. * rsaz_1024_mul_avx2 overflow bug on x86_64
  3747. There is an overflow bug in the AVX2 Montgomery multiplication procedure
  3748. used in exponentiation with 1024-bit moduli. No EC algorithms are affected.
  3749. Analysis suggests that attacks against RSA and DSA as a result of this
  3750. defect would be very difficult to perform and are not believed likely.
  3751. Attacks against DH1024 are considered just feasible, because most of the
  3752. work necessary to deduce information about a private key may be performed
  3753. offline. The amount of resources required for such an attack would be
  3754. significant. However, for an attack on TLS to be meaningful, the server
  3755. would have to share the DH1024 private key among multiple clients, which is
  3756. no longer an option since CVE-2016-0701.
  3757. This only affects processors that support the AVX2 but not ADX extensions
  3758. like Intel Haswell (4th generation).
  3759. This issue was reported to OpenSSL by David Benjamin (Google). The issue
  3760. was originally found via the OSS-Fuzz project.
  3761. ([CVE-2017-3738])
  3762. *Andy Polyakov*
  3763. ### Changes between 1.0.2l and 1.0.2m [2 Nov 2017]
  3764. * bn_sqrx8x_internal carry bug on x86_64
  3765. There is a carry propagating bug in the x86_64 Montgomery squaring
  3766. procedure. No EC algorithms are affected. Analysis suggests that attacks
  3767. against RSA and DSA as a result of this defect would be very difficult to
  3768. perform and are not believed likely. Attacks against DH are considered just
  3769. feasible (although very difficult) because most of the work necessary to
  3770. deduce information about a private key may be performed offline. The amount
  3771. of resources required for such an attack would be very significant and
  3772. likely only accessible to a limited number of attackers. An attacker would
  3773. additionally need online access to an unpatched system using the target
  3774. private key in a scenario with persistent DH parameters and a private
  3775. key that is shared between multiple clients.
  3776. This only affects processors that support the BMI1, BMI2 and ADX extensions
  3777. like Intel Broadwell (5th generation) and later or AMD Ryzen.
  3778. This issue was reported to OpenSSL by the OSS-Fuzz project.
  3779. ([CVE-2017-3736])
  3780. *Andy Polyakov*
  3781. * Malformed X.509 IPAddressFamily could cause OOB read
  3782. If an X.509 certificate has a malformed IPAddressFamily extension,
  3783. OpenSSL could do a one-byte buffer overread. The most likely result
  3784. would be an erroneous display of the certificate in text format.
  3785. This issue was reported to OpenSSL by the OSS-Fuzz project.
  3786. *Rich Salz*
  3787. ### Changes between 1.0.2k and 1.0.2l [25 May 2017]
  3788. * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target
  3789. platform rather than 'mingw'.
  3790. *Richard Levitte*
  3791. ### Changes between 1.0.2j and 1.0.2k [26 Jan 2017]
  3792. * Truncated packet could crash via OOB read
  3793. If one side of an SSL/TLS path is running on a 32-bit host and a specific
  3794. cipher is being used, then a truncated packet can cause that host to
  3795. perform an out-of-bounds read, usually resulting in a crash.
  3796. This issue was reported to OpenSSL by Robert Święcki of Google.
  3797. ([CVE-2017-3731])
  3798. *Andy Polyakov*
  3799. * BN_mod_exp may produce incorrect results on x86_64
  3800. There is a carry propagating bug in the x86_64 Montgomery squaring
  3801. procedure. No EC algorithms are affected. Analysis suggests that attacks
  3802. against RSA and DSA as a result of this defect would be very difficult to
  3803. perform and are not believed likely. Attacks against DH are considered just
  3804. feasible (although very difficult) because most of the work necessary to
  3805. deduce information about a private key may be performed offline. The amount
  3806. of resources required for such an attack would be very significant and
  3807. likely only accessible to a limited number of attackers. An attacker would
  3808. additionally need online access to an unpatched system using the target
  3809. private key in a scenario with persistent DH parameters and a private
  3810. key that is shared between multiple clients. For example this can occur by
  3811. default in OpenSSL DHE based SSL/TLS ciphersuites. Note: This issue is very
  3812. similar to CVE-2015-3193 but must be treated as a separate problem.
  3813. This issue was reported to OpenSSL by the OSS-Fuzz project.
  3814. ([CVE-2017-3732])
  3815. *Andy Polyakov*
  3816. * Montgomery multiplication may produce incorrect results
  3817. There is a carry propagating bug in the Broadwell-specific Montgomery
  3818. multiplication procedure that handles input lengths divisible by, but
  3819. longer than 256 bits. Analysis suggests that attacks against RSA, DSA
  3820. and DH private keys are impossible. This is because the subroutine in
  3821. question is not used in operations with the private key itself and an input
  3822. of the attacker's direct choice. Otherwise the bug can manifest itself as
  3823. transient authentication and key negotiation failures or reproducible
  3824. erroneous outcome of public-key operations with specially crafted input.
  3825. Among EC algorithms only Brainpool P-512 curves are affected and one
  3826. presumably can attack ECDH key negotiation. Impact was not analyzed in
  3827. detail, because pre-requisites for attack are considered unlikely. Namely
  3828. multiple clients have to choose the curve in question and the server has to
  3829. share the private key among them, neither of which is default behaviour.
  3830. Even then only clients that chose the curve will be affected.
  3831. This issue was publicly reported as transient failures and was not
  3832. initially recognized as a security issue. Thanks to Richard Morgan for
  3833. providing reproducible case.
  3834. ([CVE-2016-7055])
  3835. *Andy Polyakov*
  3836. * OpenSSL now fails if it receives an unrecognised record type in TLS1.0
  3837. or TLS1.1. Previously this only happened in SSLv3 and TLS1.2. This is to
  3838. prevent issues where no progress is being made and the peer continually
  3839. sends unrecognised record types, using up resources processing them.
  3840. *Matt Caswell*
  3841. ### Changes between 1.0.2i and 1.0.2j [26 Sep 2016]
  3842. * Missing CRL sanity check
  3843. A bug fix which included a CRL sanity check was added to OpenSSL 1.1.0
  3844. but was omitted from OpenSSL 1.0.2i. As a result any attempt to use
  3845. CRLs in OpenSSL 1.0.2i will crash with a null pointer exception.
  3846. This issue only affects the OpenSSL 1.0.2i
  3847. ([CVE-2016-7052])
  3848. *Matt Caswell*
  3849. ### Changes between 1.0.2h and 1.0.2i [22 Sep 2016]
  3850. * OCSP Status Request extension unbounded memory growth
  3851. A malicious client can send an excessively large OCSP Status Request
  3852. extension. If that client continually requests renegotiation, sending a
  3853. large OCSP Status Request extension each time, then there will be unbounded
  3854. memory growth on the server. This will eventually lead to a Denial Of
  3855. Service attack through memory exhaustion. Servers with a default
  3856. configuration are vulnerable even if they do not support OCSP. Builds using
  3857. the "no-ocsp" build time option are not affected.
  3858. This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
  3859. ([CVE-2016-6304])
  3860. *Matt Caswell*
  3861. * In order to mitigate the SWEET32 attack, the DES ciphers were moved from
  3862. HIGH to MEDIUM.
  3863. This issue was reported to OpenSSL Karthikeyan Bhargavan and Gaetan
  3864. Leurent (INRIA)
  3865. ([CVE-2016-2183])
  3866. *Rich Salz*
  3867. * OOB write in MDC2_Update()
  3868. An overflow can occur in MDC2_Update() either if called directly or
  3869. through the EVP_DigestUpdate() function using MDC2. If an attacker
  3870. is able to supply very large amounts of input data after a previous
  3871. call to EVP_EncryptUpdate() with a partial block then a length check
  3872. can overflow resulting in a heap corruption.
  3873. The amount of data needed is comparable to SIZE_MAX which is impractical
  3874. on most platforms.
  3875. This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
  3876. ([CVE-2016-6303])
  3877. *Stephen Henson*
  3878. * Malformed SHA512 ticket DoS
  3879. If a server uses SHA512 for TLS session ticket HMAC it is vulnerable to a
  3880. DoS attack where a malformed ticket will result in an OOB read which will
  3881. ultimately crash.
  3882. The use of SHA512 in TLS session tickets is comparatively rare as it requires
  3883. a custom server callback and ticket lookup mechanism.
  3884. This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
  3885. ([CVE-2016-6302])
  3886. *Stephen Henson*
  3887. * OOB write in BN_bn2dec()
  3888. The function BN_bn2dec() does not check the return value of BN_div_word().
  3889. This can cause an OOB write if an application uses this function with an
  3890. overly large BIGNUM. This could be a problem if an overly large certificate
  3891. or CRL is printed out from an untrusted source. TLS is not affected because
  3892. record limits will reject an oversized certificate before it is parsed.
  3893. This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
  3894. ([CVE-2016-2182])
  3895. *Stephen Henson*
  3896. * OOB read in TS_OBJ_print_bio()
  3897. The function TS_OBJ_print_bio() misuses OBJ_obj2txt(): the return value is
  3898. the total length the OID text representation would use and not the amount
  3899. of data written. This will result in OOB reads when large OIDs are
  3900. presented.
  3901. This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
  3902. ([CVE-2016-2180])
  3903. *Stephen Henson*
  3904. * Pointer arithmetic undefined behaviour
  3905. Avoid some undefined pointer arithmetic
  3906. A common idiom in the codebase is to check limits in the following manner:
  3907. "p + len > limit"
  3908. Where "p" points to some malloc'd data of SIZE bytes and
  3909. limit == p + SIZE
  3910. "len" here could be from some externally supplied data (e.g. from a TLS
  3911. message).
  3912. The rules of C pointer arithmetic are such that "p + len" is only well
  3913. defined where len <= SIZE. Therefore the above idiom is actually
  3914. undefined behaviour.
  3915. For example this could cause problems if some malloc implementation
  3916. provides an address for "p" such that "p + len" actually overflows for
  3917. values of len that are too big and therefore p + len < limit.
  3918. This issue was reported to OpenSSL by Guido Vranken
  3919. ([CVE-2016-2177])
  3920. *Matt Caswell*
  3921. * Constant time flag not preserved in DSA signing
  3922. Operations in the DSA signing algorithm should run in constant time in
  3923. order to avoid side channel attacks. A flaw in the OpenSSL DSA
  3924. implementation means that a non-constant time codepath is followed for
  3925. certain operations. This has been demonstrated through a cache-timing
  3926. attack to be sufficient for an attacker to recover the private DSA key.
  3927. This issue was reported by César Pereida (Aalto University), Billy Brumley
  3928. (Tampere University of Technology), and Yuval Yarom (The University of
  3929. Adelaide and NICTA).
  3930. ([CVE-2016-2178])
  3931. *César Pereida*
  3932. * DTLS buffered message DoS
  3933. In a DTLS connection where handshake messages are delivered out-of-order
  3934. those messages that OpenSSL is not yet ready to process will be buffered
  3935. for later use. Under certain circumstances, a flaw in the logic means that
  3936. those messages do not get removed from the buffer even though the handshake
  3937. has been completed. An attacker could force up to approx. 15 messages to
  3938. remain in the buffer when they are no longer required. These messages will
  3939. be cleared when the DTLS connection is closed. The default maximum size for
  3940. a message is 100k. Therefore, the attacker could force an additional 1500k
  3941. to be consumed per connection. By opening many simultaneous connections an
  3942. attacker could cause a DoS attack through memory exhaustion.
  3943. This issue was reported to OpenSSL by Quan Luo.
  3944. ([CVE-2016-2179])
  3945. *Matt Caswell*
  3946. * DTLS replay protection DoS
  3947. A flaw in the DTLS replay attack protection mechanism means that records
  3948. that arrive for future epochs update the replay protection "window" before
  3949. the MAC for the record has been validated. This could be exploited by an
  3950. attacker by sending a record for the next epoch (which does not have to
  3951. decrypt or have a valid MAC), with a very large sequence number. This means
  3952. that all subsequent legitimate packets are dropped causing a denial of
  3953. service for a specific DTLS connection.
  3954. This issue was reported to OpenSSL by the OCAP audit team.
  3955. ([CVE-2016-2181])
  3956. *Matt Caswell*
  3957. * Certificate message OOB reads
  3958. In OpenSSL 1.0.2 and earlier some missing message length checks can result
  3959. in OOB reads of up to 2 bytes beyond an allocated buffer. There is a
  3960. theoretical DoS risk but this has not been observed in practice on common
  3961. platforms.
  3962. The messages affected are client certificate, client certificate request
  3963. and server certificate. As a result the attack can only be performed
  3964. against a client or a server which enables client authentication.
  3965. This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
  3966. ([CVE-2016-6306])
  3967. *Stephen Henson*
  3968. ### Changes between 1.0.2g and 1.0.2h [3 May 2016]
  3969. * Prevent padding oracle in AES-NI CBC MAC check
  3970. A MITM attacker can use a padding oracle attack to decrypt traffic
  3971. when the connection uses an AES CBC cipher and the server support
  3972. AES-NI.
  3973. This issue was introduced as part of the fix for Lucky 13 padding
  3974. attack ([CVE-2013-0169]). The padding check was rewritten to be in
  3975. constant time by making sure that always the same bytes are read and
  3976. compared against either the MAC or padding bytes. But it no longer
  3977. checked that there was enough data to have both the MAC and padding
  3978. bytes.
  3979. This issue was reported by Juraj Somorovsky using TLS-Attacker.
  3980. *Kurt Roeckx*
  3981. * Fix EVP_EncodeUpdate overflow
  3982. An overflow can occur in the EVP_EncodeUpdate() function which is used for
  3983. Base64 encoding of binary data. If an attacker is able to supply very large
  3984. amounts of input data then a length check can overflow resulting in a heap
  3985. corruption.
  3986. Internally to OpenSSL the EVP_EncodeUpdate() function is primarily used by
  3987. the `PEM_write_bio*` family of functions. These are mainly used within the
  3988. OpenSSL command line applications, so any application which processes data
  3989. from an untrusted source and outputs it as a PEM file should be considered
  3990. vulnerable to this issue. User applications that call these APIs directly
  3991. with large amounts of untrusted data may also be vulnerable.
  3992. This issue was reported by Guido Vranken.
  3993. ([CVE-2016-2105])
  3994. *Matt Caswell*
  3995. * Fix EVP_EncryptUpdate overflow
  3996. An overflow can occur in the EVP_EncryptUpdate() function. If an attacker
  3997. is able to supply very large amounts of input data after a previous call to
  3998. EVP_EncryptUpdate() with a partial block then a length check can overflow
  3999. resulting in a heap corruption. Following an analysis of all OpenSSL
  4000. internal usage of the EVP_EncryptUpdate() function all usage is one of two
  4001. forms. The first form is where the EVP_EncryptUpdate() call is known to be
  4002. the first called function after an EVP_EncryptInit(), and therefore that
  4003. specific call must be safe. The second form is where the length passed to
  4004. EVP_EncryptUpdate() can be seen from the code to be some small value and
  4005. therefore there is no possibility of an overflow. Since all instances are
  4006. one of these two forms, it is believed that there can be no overflows in
  4007. internal code due to this problem. It should be noted that
  4008. EVP_DecryptUpdate() can call EVP_EncryptUpdate() in certain code paths.
  4009. Also EVP_CipherUpdate() is a synonym for EVP_EncryptUpdate(). All instances
  4010. of these calls have also been analysed too and it is believed there are no
  4011. instances in internal usage where an overflow could occur.
  4012. This issue was reported by Guido Vranken.
  4013. ([CVE-2016-2106])
  4014. *Matt Caswell*
  4015. * Prevent ASN.1 BIO excessive memory allocation
  4016. When ASN.1 data is read from a BIO using functions such as d2i_CMS_bio()
  4017. a short invalid encoding can cause allocation of large amounts of memory
  4018. potentially consuming excessive resources or exhausting memory.
  4019. Any application parsing untrusted data through d2i BIO functions is
  4020. affected. The memory based functions such as d2i_X509() are *not* affected.
  4021. Since the memory based functions are used by the TLS library, TLS
  4022. applications are not affected.
  4023. This issue was reported by Brian Carpenter.
  4024. ([CVE-2016-2109])
  4025. *Stephen Henson*
  4026. * EBCDIC overread
  4027. ASN1 Strings that are over 1024 bytes can cause an overread in applications
  4028. using the X509_NAME_oneline() function on EBCDIC systems. This could result
  4029. in arbitrary stack data being returned in the buffer.
  4030. This issue was reported by Guido Vranken.
  4031. ([CVE-2016-2176])
  4032. *Matt Caswell*
  4033. * Modify behavior of ALPN to invoke callback after SNI/servername
  4034. callback, such that updates to the SSL_CTX affect ALPN.
  4035. *Todd Short*
  4036. * Remove LOW from the DEFAULT cipher list. This removes singles DES from the
  4037. default.
  4038. *Kurt Roeckx*
  4039. * Only remove the SSLv2 methods with the no-ssl2-method option. When the
  4040. methods are enabled and ssl2 is disabled the methods return NULL.
  4041. *Kurt Roeckx*
  4042. ### Changes between 1.0.2f and 1.0.2g [1 Mar 2016]
  4043. * Disable weak ciphers in SSLv3 and up in default builds of OpenSSL.
  4044. Builds that are not configured with "enable-weak-ssl-ciphers" will not
  4045. provide any "EXPORT" or "LOW" strength ciphers.
  4046. *Viktor Dukhovni*
  4047. * Disable SSLv2 default build, default negotiation and weak ciphers. SSLv2
  4048. is by default disabled at build-time. Builds that are not configured with
  4049. "enable-ssl2" will not support SSLv2. Even if "enable-ssl2" is used,
  4050. users who want to negotiate SSLv2 via the version-flexible SSLv23_method()
  4051. will need to explicitly call either of:
  4052. SSL_CTX_clear_options(ctx, SSL_OP_NO_SSLv2);
  4053. or
  4054. SSL_clear_options(ssl, SSL_OP_NO_SSLv2);
  4055. as appropriate. Even if either of those is used, or the application
  4056. explicitly uses the version-specific SSLv2_method() or its client and
  4057. server variants, SSLv2 ciphers vulnerable to exhaustive search key
  4058. recovery have been removed. Specifically, the SSLv2 40-bit EXPORT
  4059. ciphers, and SSLv2 56-bit DES are no longer available.
  4060. ([CVE-2016-0800])
  4061. *Viktor Dukhovni*
  4062. * Fix a double-free in DSA code
  4063. A double free bug was discovered when OpenSSL parses malformed DSA private
  4064. keys and could lead to a DoS attack or memory corruption for applications
  4065. that receive DSA private keys from untrusted sources. This scenario is
  4066. considered rare.
  4067. This issue was reported to OpenSSL by Adam Langley(Google/BoringSSL) using
  4068. libFuzzer.
  4069. ([CVE-2016-0705])
  4070. *Stephen Henson*
  4071. * Disable SRP fake user seed to address a server memory leak.
  4072. Add a new method SRP_VBASE_get1_by_user that handles the seed properly.
  4073. SRP_VBASE_get_by_user had inconsistent memory management behaviour.
  4074. In order to fix an unavoidable memory leak, SRP_VBASE_get_by_user
  4075. was changed to ignore the "fake user" SRP seed, even if the seed
  4076. is configured.
  4077. Users should use SRP_VBASE_get1_by_user instead. Note that in
  4078. SRP_VBASE_get1_by_user, caller must free the returned value. Note
  4079. also that even though configuring the SRP seed attempts to hide
  4080. invalid usernames by continuing the handshake with fake
  4081. credentials, this behaviour is not constant time and no strong
  4082. guarantees are made that the handshake is indistinguishable from
  4083. that of a valid user.
  4084. ([CVE-2016-0798])
  4085. *Emilia Käsper*
  4086. * Fix BN_hex2bn/BN_dec2bn NULL pointer deref/heap corruption
  4087. In the BN_hex2bn function the number of hex digits is calculated using an
  4088. int value `i`. Later `bn_expand` is called with a value of `i * 4`. For
  4089. large values of `i` this can result in `bn_expand` not allocating any
  4090. memory because `i * 4` is negative. This can leave the internal BIGNUM data
  4091. field as NULL leading to a subsequent NULL ptr deref. For very large values
  4092. of `i`, the calculation `i * 4` could be a positive value smaller than `i`.
  4093. In this case memory is allocated to the internal BIGNUM data field, but it
  4094. is insufficiently sized leading to heap corruption. A similar issue exists
  4095. in BN_dec2bn. This could have security consequences if BN_hex2bn/BN_dec2bn
  4096. is ever called by user applications with very large untrusted hex/dec data.
  4097. This is anticipated to be a rare occurrence.
  4098. All OpenSSL internal usage of these functions use data that is not expected
  4099. to be untrusted, e.g. config file data or application command line
  4100. arguments. If user developed applications generate config file data based
  4101. on untrusted data then it is possible that this could also lead to security
  4102. consequences. This is also anticipated to be rare.
  4103. This issue was reported to OpenSSL by Guido Vranken.
  4104. ([CVE-2016-0797])
  4105. *Matt Caswell*
  4106. * Fix memory issues in `BIO_*printf` functions
  4107. The internal `fmtstr` function used in processing a "%s" format string in
  4108. the `BIO_*printf` functions could overflow while calculating the length of a
  4109. string and cause an OOB read when printing very long strings.
  4110. Additionally the internal `doapr_outch` function can attempt to write to an
  4111. OOB memory location (at an offset from the NULL pointer) in the event of a
  4112. memory allocation failure. In 1.0.2 and below this could be caused where
  4113. the size of a buffer to be allocated is greater than INT_MAX. E.g. this
  4114. could be in processing a very long "%s" format string. Memory leaks can
  4115. also occur.
  4116. The first issue may mask the second issue dependent on compiler behaviour.
  4117. These problems could enable attacks where large amounts of untrusted data
  4118. is passed to the `BIO_*printf` functions. If applications use these functions
  4119. in this way then they could be vulnerable. OpenSSL itself uses these
  4120. functions when printing out human-readable dumps of ASN.1 data. Therefore
  4121. applications that print this data could be vulnerable if the data is from
  4122. untrusted sources. OpenSSL command line applications could also be
  4123. vulnerable where they print out ASN.1 data, or if untrusted data is passed
  4124. as command line arguments.
  4125. Libssl is not considered directly vulnerable. Additionally certificates etc
  4126. received via remote connections via libssl are also unlikely to be able to
  4127. trigger these issues because of message size limits enforced within libssl.
  4128. This issue was reported to OpenSSL Guido Vranken.
  4129. ([CVE-2016-0799])
  4130. *Matt Caswell*
  4131. * Side channel attack on modular exponentiation
  4132. A side-channel attack was found which makes use of cache-bank conflicts on
  4133. the Intel Sandy-Bridge microarchitecture which could lead to the recovery
  4134. of RSA keys. The ability to exploit this issue is limited as it relies on
  4135. an attacker who has control of code in a thread running on the same
  4136. hyper-threaded core as the victim thread which is performing decryptions.
  4137. This issue was reported to OpenSSL by Yuval Yarom, The University of
  4138. Adelaide and NICTA, Daniel Genkin, Technion and Tel Aviv University, and
  4139. Nadia Heninger, University of Pennsylvania with more information at
  4140. <http://cachebleed.info>.
  4141. ([CVE-2016-0702])
  4142. *Andy Polyakov*
  4143. * Change the `req` command to generate a 2048-bit RSA/DSA key by default,
  4144. if no keysize is specified with default_bits. This fixes an
  4145. omission in an earlier change that changed all RSA/DSA key generation
  4146. commands to use 2048 bits by default.
  4147. *Emilia Käsper*
  4148. ### Changes between 1.0.2e and 1.0.2f [28 Jan 2016]
  4149. * DH small subgroups
  4150. Historically OpenSSL only ever generated DH parameters based on "safe"
  4151. primes. More recently (in version 1.0.2) support was provided for
  4152. generating X9.42 style parameter files such as those required for RFC 5114
  4153. support. The primes used in such files may not be "safe". Where an
  4154. application is using DH configured with parameters based on primes that are
  4155. not "safe" then an attacker could use this fact to find a peer's private
  4156. DH exponent. This attack requires that the attacker complete multiple
  4157. handshakes in which the peer uses the same private DH exponent. For example
  4158. this could be used to discover a TLS server's private DH exponent if it's
  4159. reusing the private DH exponent or it's using a static DH ciphersuite.
  4160. OpenSSL provides the option SSL_OP_SINGLE_DH_USE for ephemeral DH (DHE) in
  4161. TLS. It is not on by default. If the option is not set then the server
  4162. reuses the same private DH exponent for the life of the server process and
  4163. would be vulnerable to this attack. It is believed that many popular
  4164. applications do set this option and would therefore not be at risk.
  4165. The fix for this issue adds an additional check where a "q" parameter is
  4166. available (as is the case in X9.42 based parameters). This detects the
  4167. only known attack, and is the only possible defense for static DH
  4168. ciphersuites. This could have some performance impact.
  4169. Additionally the SSL_OP_SINGLE_DH_USE option has been switched on by
  4170. default and cannot be disabled. This could have some performance impact.
  4171. This issue was reported to OpenSSL by Antonio Sanso (Adobe).
  4172. ([CVE-2016-0701])
  4173. *Matt Caswell*
  4174. * SSLv2 doesn't block disabled ciphers
  4175. A malicious client can negotiate SSLv2 ciphers that have been disabled on
  4176. the server and complete SSLv2 handshakes even if all SSLv2 ciphers have
  4177. been disabled, provided that the SSLv2 protocol was not also disabled via
  4178. SSL_OP_NO_SSLv2.
  4179. This issue was reported to OpenSSL on 26th December 2015 by Nimrod Aviram
  4180. and Sebastian Schinzel.
  4181. ([CVE-2015-3197])
  4182. *Viktor Dukhovni*
  4183. ### Changes between 1.0.2d and 1.0.2e [3 Dec 2015]
  4184. * BN_mod_exp may produce incorrect results on x86_64
  4185. There is a carry propagating bug in the x86_64 Montgomery squaring
  4186. procedure. No EC algorithms are affected. Analysis suggests that attacks
  4187. against RSA and DSA as a result of this defect would be very difficult to
  4188. perform and are not believed likely. Attacks against DH are considered just
  4189. feasible (although very difficult) because most of the work necessary to
  4190. deduce information about a private key may be performed offline. The amount
  4191. of resources required for such an attack would be very significant and
  4192. likely only accessible to a limited number of attackers. An attacker would
  4193. additionally need online access to an unpatched system using the target
  4194. private key in a scenario with persistent DH parameters and a private
  4195. key that is shared between multiple clients. For example this can occur by
  4196. default in OpenSSL DHE based SSL/TLS ciphersuites.
  4197. This issue was reported to OpenSSL by Hanno Böck.
  4198. ([CVE-2015-3193])
  4199. *Andy Polyakov*
  4200. * Certificate verify crash with missing PSS parameter
  4201. The signature verification routines will crash with a NULL pointer
  4202. dereference if presented with an ASN.1 signature using the RSA PSS
  4203. algorithm and absent mask generation function parameter. Since these
  4204. routines are used to verify certificate signature algorithms this can be
  4205. used to crash any certificate verification operation and exploited in a
  4206. DoS attack. Any application which performs certificate verification is
  4207. vulnerable including OpenSSL clients and servers which enable client
  4208. authentication.
  4209. This issue was reported to OpenSSL by Loïc Jonas Etienne (Qnective AG).
  4210. ([CVE-2015-3194])
  4211. *Stephen Henson*
  4212. * X509_ATTRIBUTE memory leak
  4213. When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak
  4214. memory. This structure is used by the PKCS#7 and CMS routines so any
  4215. application which reads PKCS#7 or CMS data from untrusted sources is
  4216. affected. SSL/TLS is not affected.
  4217. This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using
  4218. libFuzzer.
  4219. ([CVE-2015-3195])
  4220. *Stephen Henson*
  4221. * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs.
  4222. This changes the decoding behaviour for some invalid messages,
  4223. though the change is mostly in the more lenient direction, and
  4224. legacy behaviour is preserved as much as possible.
  4225. *Emilia Käsper*
  4226. * In DSA_generate_parameters_ex, if the provided seed is too short,
  4227. return an error
  4228. *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>*
  4229. ### Changes between 1.0.2c and 1.0.2d [9 Jul 2015]
  4230. * Alternate chains certificate forgery
  4231. During certificate verification, OpenSSL will attempt to find an
  4232. alternative certificate chain if the first attempt to build such a chain
  4233. fails. An error in the implementation of this logic can mean that an
  4234. attacker could cause certain checks on untrusted certificates to be
  4235. bypassed, such as the CA flag, enabling them to use a valid leaf
  4236. certificate to act as a CA and "issue" an invalid certificate.
  4237. This issue was reported to OpenSSL by Adam Langley/David Benjamin
  4238. (Google/BoringSSL).
  4239. *Matt Caswell*
  4240. ### Changes between 1.0.2b and 1.0.2c [12 Jun 2015]
  4241. * Fix HMAC ABI incompatibility. The previous version introduced an ABI
  4242. incompatibility in the handling of HMAC. The previous ABI has now been
  4243. restored.
  4244. *Matt Caswell*
  4245. ### Changes between 1.0.2a and 1.0.2b [11 Jun 2015]
  4246. * Malformed ECParameters causes infinite loop
  4247. When processing an ECParameters structure OpenSSL enters an infinite loop
  4248. if the curve specified is over a specially malformed binary polynomial
  4249. field.
  4250. This can be used to perform denial of service against any
  4251. system which processes public keys, certificate requests or
  4252. certificates. This includes TLS clients and TLS servers with
  4253. client authentication enabled.
  4254. This issue was reported to OpenSSL by Joseph Barr-Pixton.
  4255. ([CVE-2015-1788])
  4256. *Andy Polyakov*
  4257. * Exploitable out-of-bounds read in X509_cmp_time
  4258. X509_cmp_time does not properly check the length of the ASN1_TIME
  4259. string and can read a few bytes out of bounds. In addition,
  4260. X509_cmp_time accepts an arbitrary number of fractional seconds in the
  4261. time string.
  4262. An attacker can use this to craft malformed certificates and CRLs of
  4263. various sizes and potentially cause a segmentation fault, resulting in
  4264. a DoS on applications that verify certificates or CRLs. TLS clients
  4265. that verify CRLs are affected. TLS clients and servers with client
  4266. authentication enabled may be affected if they use custom verification
  4267. callbacks.
  4268. This issue was reported to OpenSSL by Robert Swiecki (Google), and
  4269. independently by Hanno Böck.
  4270. ([CVE-2015-1789])
  4271. *Emilia Käsper*
  4272. * PKCS7 crash with missing EnvelopedContent
  4273. The PKCS#7 parsing code does not handle missing inner EncryptedContent
  4274. correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs
  4275. with missing content and trigger a NULL pointer dereference on parsing.
  4276. Applications that decrypt PKCS#7 data or otherwise parse PKCS#7
  4277. structures from untrusted sources are affected. OpenSSL clients and
  4278. servers are not affected.
  4279. This issue was reported to OpenSSL by Michal Zalewski (Google).
  4280. ([CVE-2015-1790])
  4281. *Emilia Käsper*
  4282. * CMS verify infinite loop with unknown hash function
  4283. When verifying a signedData message the CMS code can enter an infinite loop
  4284. if presented with an unknown hash function OID. This can be used to perform
  4285. denial of service against any system which verifies signedData messages using
  4286. the CMS code.
  4287. This issue was reported to OpenSSL by Johannes Bauer.
  4288. ([CVE-2015-1792])
  4289. *Stephen Henson*
  4290. * Race condition handling NewSessionTicket
  4291. If a NewSessionTicket is received by a multi-threaded client when attempting to
  4292. reuse a previous ticket then a race condition can occur potentially leading to
  4293. a double free of the ticket data.
  4294. ([CVE-2015-1791])
  4295. *Matt Caswell*
  4296. * Only support 256-bit or stronger elliptic curves with the
  4297. 'ecdh_auto' setting (server) or by default (client). Of supported
  4298. curves, prefer P-256 (both).
  4299. *Emilia Kasper*
  4300. ### Changes between 1.0.2 and 1.0.2a [19 Mar 2015]
  4301. * ClientHello sigalgs DoS fix
  4302. If a client connects to an OpenSSL 1.0.2 server and renegotiates with an
  4303. invalid signature algorithms extension a NULL pointer dereference will
  4304. occur. This can be exploited in a DoS attack against the server.
  4305. This issue was was reported to OpenSSL by David Ramos of Stanford
  4306. University.
  4307. ([CVE-2015-0291])
  4308. *Stephen Henson and Matt Caswell*
  4309. * Multiblock corrupted pointer fix
  4310. OpenSSL 1.0.2 introduced the "multiblock" performance improvement. This
  4311. feature only applies on 64 bit x86 architecture platforms that support AES
  4312. NI instructions. A defect in the implementation of "multiblock" can cause
  4313. OpenSSL's internal write buffer to become incorrectly set to NULL when
  4314. using non-blocking IO. Typically, when the user application is using a
  4315. socket BIO for writing, this will only result in a failed connection.
  4316. However if some other BIO is used then it is likely that a segmentation
  4317. fault will be triggered, thus enabling a potential DoS attack.
  4318. This issue was reported to OpenSSL by Daniel Danner and Rainer Mueller.
  4319. ([CVE-2015-0290])
  4320. *Matt Caswell*
  4321. * Segmentation fault in DTLSv1_listen fix
  4322. The DTLSv1_listen function is intended to be stateless and processes the
  4323. initial ClientHello from many peers. It is common for user code to loop
  4324. over the call to DTLSv1_listen until a valid ClientHello is received with
  4325. an associated cookie. A defect in the implementation of DTLSv1_listen means
  4326. that state is preserved in the SSL object from one invocation to the next
  4327. that can lead to a segmentation fault. Errors processing the initial
  4328. ClientHello can trigger this scenario. An example of such an error could be
  4329. that a DTLS1.0 only client is attempting to connect to a DTLS1.2 only
  4330. server.
  4331. This issue was reported to OpenSSL by Per Allansson.
  4332. ([CVE-2015-0207])
  4333. *Matt Caswell*
  4334. * Segmentation fault in ASN1_TYPE_cmp fix
  4335. The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is
  4336. made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check
  4337. certificate signature algorithm consistency this can be used to crash any
  4338. certificate verification operation and exploited in a DoS attack. Any
  4339. application which performs certificate verification is vulnerable including
  4340. OpenSSL clients and servers which enable client authentication.
  4341. ([CVE-2015-0286])
  4342. *Stephen Henson*
  4343. * Segmentation fault for invalid PSS parameters fix
  4344. The signature verification routines will crash with a NULL pointer
  4345. dereference if presented with an ASN.1 signature using the RSA PSS
  4346. algorithm and invalid parameters. Since these routines are used to verify
  4347. certificate signature algorithms this can be used to crash any
  4348. certificate verification operation and exploited in a DoS attack. Any
  4349. application which performs certificate verification is vulnerable including
  4350. OpenSSL clients and servers which enable client authentication.
  4351. This issue was was reported to OpenSSL by Brian Carpenter.
  4352. ([CVE-2015-0208])
  4353. *Stephen Henson*
  4354. * ASN.1 structure reuse memory corruption fix
  4355. Reusing a structure in ASN.1 parsing may allow an attacker to cause
  4356. memory corruption via an invalid write. Such reuse is and has been
  4357. strongly discouraged and is believed to be rare.
  4358. Applications that parse structures containing CHOICE or ANY DEFINED BY
  4359. components may be affected. Certificate parsing (d2i_X509 and related
  4360. functions) are however not affected. OpenSSL clients and servers are
  4361. not affected.
  4362. ([CVE-2015-0287])
  4363. *Stephen Henson*
  4364. * PKCS7 NULL pointer dereferences fix
  4365. The PKCS#7 parsing code does not handle missing outer ContentInfo
  4366. correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with
  4367. missing content and trigger a NULL pointer dereference on parsing.
  4368. Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or
  4369. otherwise parse PKCS#7 structures from untrusted sources are
  4370. affected. OpenSSL clients and servers are not affected.
  4371. This issue was reported to OpenSSL by Michal Zalewski (Google).
  4372. ([CVE-2015-0289])
  4373. *Emilia Käsper*
  4374. * DoS via reachable assert in SSLv2 servers fix
  4375. A malicious client can trigger an OPENSSL_assert (i.e., an abort) in
  4376. servers that both support SSLv2 and enable export cipher suites by sending
  4377. a specially crafted SSLv2 CLIENT-MASTER-KEY message.
  4378. This issue was discovered by Sean Burford (Google) and Emilia Käsper
  4379. (OpenSSL development team).
  4380. ([CVE-2015-0293])
  4381. *Emilia Käsper*
  4382. * Empty CKE with client auth and DHE fix
  4383. If client auth is used then a server can seg fault in the event of a DHE
  4384. ciphersuite being selected and a zero length ClientKeyExchange message
  4385. being sent by the client. This could be exploited in a DoS attack.
  4386. ([CVE-2015-1787])
  4387. *Matt Caswell*
  4388. * Handshake with unseeded PRNG fix
  4389. Under certain conditions an OpenSSL 1.0.2 client can complete a handshake
  4390. with an unseeded PRNG. The conditions are:
  4391. - The client is on a platform where the PRNG has not been seeded
  4392. automatically, and the user has not seeded manually
  4393. - A protocol specific client method version has been used (i.e. not
  4394. SSL_client_methodv23)
  4395. - A ciphersuite is used that does not require additional random data from
  4396. the PRNG beyond the initial ClientHello client random (e.g. PSK-RC4-SHA).
  4397. If the handshake succeeds then the client random that has been used will
  4398. have been generated from a PRNG with insufficient entropy and therefore the
  4399. output may be predictable.
  4400. For example using the following command with an unseeded openssl will
  4401. succeed on an unpatched platform:
  4402. openssl s_client -psk 1a2b3c4d -tls1_2 -cipher PSK-RC4-SHA
  4403. ([CVE-2015-0285])
  4404. *Matt Caswell*
  4405. * Use After Free following d2i_ECPrivatekey error fix
  4406. A malformed EC private key file consumed via the d2i_ECPrivateKey function
  4407. could cause a use after free condition. This, in turn, could cause a double
  4408. free in several private key parsing functions (such as d2i_PrivateKey
  4409. or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption
  4410. for applications that receive EC private keys from untrusted
  4411. sources. This scenario is considered rare.
  4412. This issue was discovered by the BoringSSL project and fixed in their
  4413. commit 517073cd4b.
  4414. ([CVE-2015-0209])
  4415. *Matt Caswell*
  4416. * X509_to_X509_REQ NULL pointer deref fix
  4417. The function X509_to_X509_REQ will crash with a NULL pointer dereference if
  4418. the certificate key is invalid. This function is rarely used in practice.
  4419. This issue was discovered by Brian Carpenter.
  4420. ([CVE-2015-0288])
  4421. *Stephen Henson*
  4422. * Removed the export ciphers from the DEFAULT ciphers
  4423. *Kurt Roeckx*
  4424. ### Changes between 1.0.1l and 1.0.2 [22 Jan 2015]
  4425. * Facilitate "universal" ARM builds targeting range of ARM ISAs, e.g.
  4426. ARMv5 through ARMv8, as opposite to "locking" it to single one.
  4427. So far those who have to target multiple platforms would compromise
  4428. and argue that binary targeting say ARMv5 would still execute on
  4429. ARMv8. "Universal" build resolves this compromise by providing
  4430. near-optimal performance even on newer platforms.
  4431. *Andy Polyakov*
  4432. * Accelerated NIST P-256 elliptic curve implementation for x86_64
  4433. (other platforms pending).
  4434. *Shay Gueron & Vlad Krasnov (Intel Corp), Andy Polyakov*
  4435. * Add support for the SignedCertificateTimestampList certificate and
  4436. OCSP response extensions from RFC6962.
  4437. *Rob Stradling*
  4438. * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.)
  4439. for corner cases. (Certain input points at infinity could lead to
  4440. bogus results, with non-infinity inputs mapped to infinity too.)
  4441. *Bodo Moeller*
  4442. * Initial support for PowerISA 2.0.7, first implemented in POWER8.
  4443. This covers AES, SHA256/512 and GHASH. "Initial" means that most
  4444. common cases are optimized and there still is room for further
  4445. improvements. Vector Permutation AES for Altivec is also added.
  4446. *Andy Polyakov*
  4447. * Add support for little-endian ppc64 Linux target.
  4448. *Marcelo Cerri (IBM)*
  4449. * Initial support for AMRv8 ISA crypto extensions. This covers AES,
  4450. SHA1, SHA256 and GHASH. "Initial" means that most common cases
  4451. are optimized and there still is room for further improvements.
  4452. Both 32- and 64-bit modes are supported.
  4453. *Andy Polyakov, Ard Biesheuvel (Linaro)*
  4454. * Improved ARMv7 NEON support.
  4455. *Andy Polyakov*
  4456. * Support for SPARC Architecture 2011 crypto extensions, first
  4457. implemented in SPARC T4. This covers AES, DES, Camellia, SHA1,
  4458. SHA256/512, MD5, GHASH and modular exponentiation.
  4459. *Andy Polyakov, David Miller*
  4460. * Accelerated modular exponentiation for Intel processors, a.k.a.
  4461. RSAZ.
  4462. *Shay Gueron & Vlad Krasnov (Intel Corp)*
  4463. * Support for new and upcoming Intel processors, including AVX2,
  4464. BMI and SHA ISA extensions. This includes additional "stitched"
  4465. implementations, AESNI-SHA256 and GCM, and multi-buffer support
  4466. for TLS encrypt.
  4467. This work was sponsored by Intel Corp.
  4468. *Andy Polyakov*
  4469. * Support for DTLS 1.2. This adds two sets of DTLS methods: DTLS_*_method()
  4470. supports both DTLS 1.2 and 1.0 and should use whatever version the peer
  4471. supports and DTLSv1_2_*_method() which supports DTLS 1.2 only.
  4472. *Steve Henson*
  4473. * Use algorithm specific chains in SSL_CTX_use_certificate_chain_file():
  4474. this fixes a limitation in previous versions of OpenSSL.
  4475. *Steve Henson*
  4476. * Extended RSA OAEP support via EVP_PKEY API. Options to specify digest,
  4477. MGF1 digest and OAEP label.
  4478. *Steve Henson*
  4479. * Add EVP support for key wrapping algorithms, to avoid problems with
  4480. existing code the flag EVP_CIPHER_CTX_WRAP_ALLOW has to be set in
  4481. the EVP_CIPHER_CTX or an error is returned. Add AES and DES3 wrap
  4482. algorithms and include tests cases.
  4483. *Steve Henson*
  4484. * Add functions to allocate and set the fields of an ECDSA_METHOD
  4485. structure.
  4486. *Douglas E. Engert, Steve Henson*
  4487. * New functions OPENSSL_gmtime_diff and ASN1_TIME_diff to find the
  4488. difference in days and seconds between two tm or ASN1_TIME structures.
  4489. *Steve Henson*
  4490. * Add -rev test option to s_server to just reverse order of characters
  4491. received by client and send back to server. Also prints an abbreviated
  4492. summary of the connection parameters.
  4493. *Steve Henson*
  4494. * New option -brief for s_client and s_server to print out a brief summary
  4495. of connection parameters.
  4496. *Steve Henson*
  4497. * Add callbacks for arbitrary TLS extensions.
  4498. *Trevor Perrin <trevp@trevp.net> and Ben Laurie*
  4499. * New option -crl_download in several openssl utilities to download CRLs
  4500. from CRLDP extension in certificates.
  4501. *Steve Henson*
  4502. * New options -CRL and -CRLform for s_client and s_server for CRLs.
  4503. *Steve Henson*
  4504. * New function X509_CRL_diff to generate a delta CRL from the difference
  4505. of two full CRLs. Add support to "crl" utility.
  4506. *Steve Henson*
  4507. * New functions to set lookup_crls function and to retrieve
  4508. X509_STORE from X509_STORE_CTX.
  4509. *Steve Henson*
  4510. * Print out deprecated issuer and subject unique ID fields in
  4511. certificates.
  4512. *Steve Henson*
  4513. * Extend OCSP I/O functions so they can be used for simple general purpose
  4514. HTTP as well as OCSP. New wrapper function which can be used to download
  4515. CRLs using the OCSP API.
  4516. *Steve Henson*
  4517. * Delegate command line handling in s_client/s_server to SSL_CONF APIs.
  4518. *Steve Henson*
  4519. * `SSL_CONF*` functions. These provide a common framework for application
  4520. configuration using configuration files or command lines.
  4521. *Steve Henson*
  4522. * SSL/TLS tracing code. This parses out SSL/TLS records using the
  4523. message callback and prints the results. Needs compile time option
  4524. "enable-ssl-trace". New options to s_client and s_server to enable
  4525. tracing.
  4526. *Steve Henson*
  4527. * New ctrl and macro to retrieve supported points extensions.
  4528. Print out extension in s_server and s_client.
  4529. *Steve Henson*
  4530. * New functions to retrieve certificate signature and signature
  4531. OID NID.
  4532. *Steve Henson*
  4533. * Add functions to retrieve and manipulate the raw cipherlist sent by a
  4534. client to OpenSSL.
  4535. *Steve Henson*
  4536. * New Suite B modes for TLS code. These use and enforce the requirements
  4537. of RFC6460: restrict ciphersuites, only permit Suite B algorithms and
  4538. only use Suite B curves. The Suite B modes can be set by using the
  4539. strings "SUITEB128", "SUITEB192" or "SUITEB128ONLY" for the cipherstring.
  4540. *Steve Henson*
  4541. * New chain verification flags for Suite B levels of security. Check
  4542. algorithms are acceptable when flags are set in X509_verify_cert.
  4543. *Steve Henson*
  4544. * Make tls1_check_chain return a set of flags indicating checks passed
  4545. by a certificate chain. Add additional tests to handle client
  4546. certificates: checks for matching certificate type and issuer name
  4547. comparison.
  4548. *Steve Henson*
  4549. * If an attempt is made to use a signature algorithm not in the peer
  4550. preference list abort the handshake. If client has no suitable
  4551. signature algorithms in response to a certificate request do not
  4552. use the certificate.
  4553. *Steve Henson*
  4554. * If server EC tmp key is not in client preference list abort handshake.
  4555. *Steve Henson*
  4556. * Add support for certificate stores in CERT structure. This makes it
  4557. possible to have different stores per SSL structure or one store in
  4558. the parent SSL_CTX. Include distinct stores for certificate chain
  4559. verification and chain building. New ctrl SSL_CTRL_BUILD_CERT_CHAIN
  4560. to build and store a certificate chain in CERT structure: returning
  4561. an error if the chain cannot be built: this will allow applications
  4562. to test if a chain is correctly configured.
  4563. Note: if the CERT based stores are not set then the parent SSL_CTX
  4564. store is used to retain compatibility with existing behaviour.
  4565. *Steve Henson*
  4566. * New function ssl_set_client_disabled to set a ciphersuite disabled
  4567. mask based on the current session, check mask when sending client
  4568. hello and checking the requested ciphersuite.
  4569. *Steve Henson*
  4570. * New ctrls to retrieve and set certificate types in a certificate
  4571. request message. Print out received values in s_client. If certificate
  4572. types is not set with custom values set sensible values based on
  4573. supported signature algorithms.
  4574. *Steve Henson*
  4575. * Support for distinct client and server supported signature algorithms.
  4576. *Steve Henson*
  4577. * Add certificate callback. If set this is called whenever a certificate
  4578. is required by client or server. An application can decide which
  4579. certificate chain to present based on arbitrary criteria: for example
  4580. supported signature algorithms. Add very simple example to s_server.
  4581. This fixes many of the problems and restrictions of the existing client
  4582. certificate callback: for example you can now clear an existing
  4583. certificate and specify the whole chain.
  4584. *Steve Henson*
  4585. * Add new "valid_flags" field to CERT_PKEY structure which determines what
  4586. the certificate can be used for (if anything). Set valid_flags field
  4587. in new tls1_check_chain function. Simplify ssl_set_cert_masks which used
  4588. to have similar checks in it.
  4589. Add new "cert_flags" field to CERT structure and include a "strict mode".
  4590. This enforces some TLS certificate requirements (such as only permitting
  4591. certificate signature algorithms contained in the supported algorithms
  4592. extension) which some implementations ignore: this option should be used
  4593. with caution as it could cause interoperability issues.
  4594. *Steve Henson*
  4595. * Update and tidy signature algorithm extension processing. Work out
  4596. shared signature algorithms based on preferences and peer algorithms
  4597. and print them out in s_client and s_server. Abort handshake if no
  4598. shared signature algorithms.
  4599. *Steve Henson*
  4600. * Add new functions to allow customised supported signature algorithms
  4601. for SSL and SSL_CTX structures. Add options to s_client and s_server
  4602. to support them.
  4603. *Steve Henson*
  4604. * New function SSL_certs_clear() to delete all references to certificates
  4605. from an SSL structure. Before this once a certificate had been added
  4606. it couldn't be removed.
  4607. *Steve Henson*
  4608. * Integrate hostname, email address and IP address checking with certificate
  4609. verification. New verify options supporting checking in openssl utility.
  4610. *Steve Henson*
  4611. * Fixes and wildcard matching support to hostname and email checking
  4612. functions. Add manual page.
  4613. *Florian Weimer (Red Hat Product Security Team)*
  4614. * New functions to check a hostname email or IP address against a
  4615. certificate. Add options x509 utility to print results of checks against
  4616. a certificate.
  4617. *Steve Henson*
  4618. * Fix OCSP checking.
  4619. *Rob Stradling <rob.stradling@comodo.com> and Ben Laurie*
  4620. * Initial experimental support for explicitly trusted non-root CAs.
  4621. OpenSSL still tries to build a complete chain to a root but if an
  4622. intermediate CA has a trust setting included that is used. The first
  4623. setting is used: whether to trust (e.g., -addtrust option to the x509
  4624. utility) or reject.
  4625. *Steve Henson*
  4626. * Add -trusted_first option which attempts to find certificates in the
  4627. trusted store even if an untrusted chain is also supplied.
  4628. *Steve Henson*
  4629. * MIPS assembly pack updates: support for MIPS32r2 and SmartMIPS ASE,
  4630. platform support for Linux and Android.
  4631. *Andy Polyakov*
  4632. * Support for linux-x32, ILP32 environment in x86_64 framework.
  4633. *Andy Polyakov*
  4634. * Experimental multi-implementation support for FIPS capable OpenSSL.
  4635. When in FIPS mode the approved implementations are used as normal,
  4636. when not in FIPS mode the internal unapproved versions are used instead.
  4637. This means that the FIPS capable OpenSSL isn't forced to use the
  4638. (often lower performance) FIPS implementations outside FIPS mode.
  4639. *Steve Henson*
  4640. * Transparently support X9.42 DH parameters when calling
  4641. PEM_read_bio_DHparameters. This means existing applications can handle
  4642. the new parameter format automatically.
  4643. *Steve Henson*
  4644. * Initial experimental support for X9.42 DH parameter format: mainly
  4645. to support use of 'q' parameter for RFC5114 parameters.
  4646. *Steve Henson*
  4647. * Add DH parameters from RFC5114 including test data to dhtest.
  4648. *Steve Henson*
  4649. * Support for automatic EC temporary key parameter selection. If enabled
  4650. the most preferred EC parameters are automatically used instead of
  4651. hardcoded fixed parameters. Now a server just has to call:
  4652. SSL_CTX_set_ecdh_auto(ctx, 1) and the server will automatically
  4653. support ECDH and use the most appropriate parameters.
  4654. *Steve Henson*
  4655. * Enhance and tidy EC curve and point format TLS extension code. Use
  4656. static structures instead of allocation if default values are used.
  4657. New ctrls to set curves we wish to support and to retrieve shared curves.
  4658. Print out shared curves in s_server. New options to s_server and s_client
  4659. to set list of supported curves.
  4660. *Steve Henson*
  4661. * New ctrls to retrieve supported signature algorithms and
  4662. supported curve values as an array of NIDs. Extend openssl utility
  4663. to print out received values.
  4664. *Steve Henson*
  4665. * Add new APIs EC_curve_nist2nid and EC_curve_nid2nist which convert
  4666. between NIDs and the more common NIST names such as "P-256". Enhance
  4667. ecparam utility and ECC method to recognise the NIST names for curves.
  4668. *Steve Henson*
  4669. * Enhance SSL/TLS certificate chain handling to support different
  4670. chains for each certificate instead of one chain in the parent SSL_CTX.
  4671. *Steve Henson*
  4672. * Support for fixed DH ciphersuite client authentication: where both
  4673. server and client use DH certificates with common parameters.
  4674. *Steve Henson*
  4675. * Support for fixed DH ciphersuites: those requiring DH server
  4676. certificates.
  4677. *Steve Henson*
  4678. * New function i2d_re_X509_tbs for re-encoding the TBS portion of
  4679. the certificate.
  4680. Note: Related 1.0.2-beta specific macros X509_get_cert_info,
  4681. X509_CINF_set_modified, X509_CINF_get_issuer, X509_CINF_get_extensions and
  4682. X509_CINF_get_signature were reverted post internal team review.
  4683. OpenSSL 1.0.1
  4684. -------------
  4685. ### Changes between 1.0.1t and 1.0.1u [22 Sep 2016]
  4686. * OCSP Status Request extension unbounded memory growth
  4687. A malicious client can send an excessively large OCSP Status Request
  4688. extension. If that client continually requests renegotiation, sending a
  4689. large OCSP Status Request extension each time, then there will be unbounded
  4690. memory growth on the server. This will eventually lead to a Denial Of
  4691. Service attack through memory exhaustion. Servers with a default
  4692. configuration are vulnerable even if they do not support OCSP. Builds using
  4693. the "no-ocsp" build time option are not affected.
  4694. This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
  4695. ([CVE-2016-6304])
  4696. *Matt Caswell*
  4697. * In order to mitigate the SWEET32 attack, the DES ciphers were moved from
  4698. HIGH to MEDIUM.
  4699. This issue was reported to OpenSSL Karthikeyan Bhargavan and Gaetan
  4700. Leurent (INRIA)
  4701. ([CVE-2016-2183])
  4702. *Rich Salz*
  4703. * OOB write in MDC2_Update()
  4704. An overflow can occur in MDC2_Update() either if called directly or
  4705. through the EVP_DigestUpdate() function using MDC2. If an attacker
  4706. is able to supply very large amounts of input data after a previous
  4707. call to EVP_EncryptUpdate() with a partial block then a length check
  4708. can overflow resulting in a heap corruption.
  4709. The amount of data needed is comparable to SIZE_MAX which is impractical
  4710. on most platforms.
  4711. This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
  4712. ([CVE-2016-6303])
  4713. *Stephen Henson*
  4714. * Malformed SHA512 ticket DoS
  4715. If a server uses SHA512 for TLS session ticket HMAC it is vulnerable to a
  4716. DoS attack where a malformed ticket will result in an OOB read which will
  4717. ultimately crash.
  4718. The use of SHA512 in TLS session tickets is comparatively rare as it requires
  4719. a custom server callback and ticket lookup mechanism.
  4720. This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
  4721. ([CVE-2016-6302])
  4722. *Stephen Henson*
  4723. * OOB write in BN_bn2dec()
  4724. The function BN_bn2dec() does not check the return value of BN_div_word().
  4725. This can cause an OOB write if an application uses this function with an
  4726. overly large BIGNUM. This could be a problem if an overly large certificate
  4727. or CRL is printed out from an untrusted source. TLS is not affected because
  4728. record limits will reject an oversized certificate before it is parsed.
  4729. This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
  4730. ([CVE-2016-2182])
  4731. *Stephen Henson*
  4732. * OOB read in TS_OBJ_print_bio()
  4733. The function TS_OBJ_print_bio() misuses OBJ_obj2txt(): the return value is
  4734. the total length the OID text representation would use and not the amount
  4735. of data written. This will result in OOB reads when large OIDs are
  4736. presented.
  4737. This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
  4738. ([CVE-2016-2180])
  4739. *Stephen Henson*
  4740. * Pointer arithmetic undefined behaviour
  4741. Avoid some undefined pointer arithmetic
  4742. A common idiom in the codebase is to check limits in the following manner:
  4743. "p + len > limit"
  4744. Where "p" points to some malloc'd data of SIZE bytes and
  4745. limit == p + SIZE
  4746. "len" here could be from some externally supplied data (e.g. from a TLS
  4747. message).
  4748. The rules of C pointer arithmetic are such that "p + len" is only well
  4749. defined where len <= SIZE. Therefore, the above idiom is actually
  4750. undefined behaviour.
  4751. For example this could cause problems if some malloc implementation
  4752. provides an address for "p" such that "p + len" actually overflows for
  4753. values of len that are too big and therefore p + len < limit.
  4754. This issue was reported to OpenSSL by Guido Vranken
  4755. ([CVE-2016-2177])
  4756. *Matt Caswell*
  4757. * Constant time flag not preserved in DSA signing
  4758. Operations in the DSA signing algorithm should run in constant time in
  4759. order to avoid side channel attacks. A flaw in the OpenSSL DSA
  4760. implementation means that a non-constant time codepath is followed for
  4761. certain operations. This has been demonstrated through a cache-timing
  4762. attack to be sufficient for an attacker to recover the private DSA key.
  4763. This issue was reported by César Pereida (Aalto University), Billy Brumley
  4764. (Tampere University of Technology), and Yuval Yarom (The University of
  4765. Adelaide and NICTA).
  4766. ([CVE-2016-2178])
  4767. *César Pereida*
  4768. * DTLS buffered message DoS
  4769. In a DTLS connection where handshake messages are delivered out-of-order
  4770. those messages that OpenSSL is not yet ready to process will be buffered
  4771. for later use. Under certain circumstances, a flaw in the logic means that
  4772. those messages do not get removed from the buffer even though the handshake
  4773. has been completed. An attacker could force up to approx. 15 messages to
  4774. remain in the buffer when they are no longer required. These messages will
  4775. be cleared when the DTLS connection is closed. The default maximum size for
  4776. a message is 100k. Therefore, the attacker could force an additional 1500k
  4777. to be consumed per connection. By opening many simultaneous connections an
  4778. attacker could cause a DoS attack through memory exhaustion.
  4779. This issue was reported to OpenSSL by Quan Luo.
  4780. ([CVE-2016-2179])
  4781. *Matt Caswell*
  4782. * DTLS replay protection DoS
  4783. A flaw in the DTLS replay attack protection mechanism means that records
  4784. that arrive for future epochs update the replay protection "window" before
  4785. the MAC for the record has been validated. This could be exploited by an
  4786. attacker by sending a record for the next epoch (which does not have to
  4787. decrypt or have a valid MAC), with a very large sequence number. This means
  4788. that all subsequent legitimate packets are dropped causing a denial of
  4789. service for a specific DTLS connection.
  4790. This issue was reported to OpenSSL by the OCAP audit team.
  4791. ([CVE-2016-2181])
  4792. *Matt Caswell*
  4793. * Certificate message OOB reads
  4794. In OpenSSL 1.0.2 and earlier some missing message length checks can result
  4795. in OOB reads of up to 2 bytes beyond an allocated buffer. There is a
  4796. theoretical DoS risk but this has not been observed in practice on common
  4797. platforms.
  4798. The messages affected are client certificate, client certificate request
  4799. and server certificate. As a result the attack can only be performed
  4800. against a client or a server which enables client authentication.
  4801. This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
  4802. ([CVE-2016-6306])
  4803. *Stephen Henson*
  4804. ### Changes between 1.0.1s and 1.0.1t [3 May 2016]
  4805. * Prevent padding oracle in AES-NI CBC MAC check
  4806. A MITM attacker can use a padding oracle attack to decrypt traffic
  4807. when the connection uses an AES CBC cipher and the server support
  4808. AES-NI.
  4809. This issue was introduced as part of the fix for Lucky 13 padding
  4810. attack ([CVE-2013-0169]). The padding check was rewritten to be in
  4811. constant time by making sure that always the same bytes are read and
  4812. compared against either the MAC or padding bytes. But it no longer
  4813. checked that there was enough data to have both the MAC and padding
  4814. bytes.
  4815. This issue was reported by Juraj Somorovsky using TLS-Attacker.
  4816. ([CVE-2016-2107])
  4817. *Kurt Roeckx*
  4818. * Fix EVP_EncodeUpdate overflow
  4819. An overflow can occur in the EVP_EncodeUpdate() function which is used for
  4820. Base64 encoding of binary data. If an attacker is able to supply very large
  4821. amounts of input data then a length check can overflow resulting in a heap
  4822. corruption.
  4823. Internally to OpenSSL the EVP_EncodeUpdate() function is primarily used by
  4824. the `PEM_write_bio*` family of functions. These are mainly used within the
  4825. OpenSSL command line applications, so any application which processes data
  4826. from an untrusted source and outputs it as a PEM file should be considered
  4827. vulnerable to this issue. User applications that call these APIs directly
  4828. with large amounts of untrusted data may also be vulnerable.
  4829. This issue was reported by Guido Vranken.
  4830. ([CVE-2016-2105])
  4831. *Matt Caswell*
  4832. * Fix EVP_EncryptUpdate overflow
  4833. An overflow can occur in the EVP_EncryptUpdate() function. If an attacker
  4834. is able to supply very large amounts of input data after a previous call to
  4835. EVP_EncryptUpdate() with a partial block then a length check can overflow
  4836. resulting in a heap corruption. Following an analysis of all OpenSSL
  4837. internal usage of the EVP_EncryptUpdate() function all usage is one of two
  4838. forms. The first form is where the EVP_EncryptUpdate() call is known to be
  4839. the first called function after an EVP_EncryptInit(), and therefore that
  4840. specific call must be safe. The second form is where the length passed to
  4841. EVP_EncryptUpdate() can be seen from the code to be some small value and
  4842. therefore there is no possibility of an overflow. Since all instances are
  4843. one of these two forms, it is believed that there can be no overflows in
  4844. internal code due to this problem. It should be noted that
  4845. EVP_DecryptUpdate() can call EVP_EncryptUpdate() in certain code paths.
  4846. Also EVP_CipherUpdate() is a synonym for EVP_EncryptUpdate(). All instances
  4847. of these calls have also been analysed too and it is believed there are no
  4848. instances in internal usage where an overflow could occur.
  4849. This issue was reported by Guido Vranken.
  4850. ([CVE-2016-2106])
  4851. *Matt Caswell*
  4852. * Prevent ASN.1 BIO excessive memory allocation
  4853. When ASN.1 data is read from a BIO using functions such as d2i_CMS_bio()
  4854. a short invalid encoding can casuse allocation of large amounts of memory
  4855. potentially consuming excessive resources or exhausting memory.
  4856. Any application parsing untrusted data through d2i BIO functions is
  4857. affected. The memory based functions such as d2i_X509() are *not* affected.
  4858. Since the memory based functions are used by the TLS library, TLS
  4859. applications are not affected.
  4860. This issue was reported by Brian Carpenter.
  4861. ([CVE-2016-2109])
  4862. *Stephen Henson*
  4863. * EBCDIC overread
  4864. ASN1 Strings that are over 1024 bytes can cause an overread in applications
  4865. using the X509_NAME_oneline() function on EBCDIC systems. This could result
  4866. in arbitrary stack data being returned in the buffer.
  4867. This issue was reported by Guido Vranken.
  4868. ([CVE-2016-2176])
  4869. *Matt Caswell*
  4870. * Modify behavior of ALPN to invoke callback after SNI/servername
  4871. callback, such that updates to the SSL_CTX affect ALPN.
  4872. *Todd Short*
  4873. * Remove LOW from the DEFAULT cipher list. This removes singles DES from the
  4874. default.
  4875. *Kurt Roeckx*
  4876. * Only remove the SSLv2 methods with the no-ssl2-method option. When the
  4877. methods are enabled and ssl2 is disabled the methods return NULL.
  4878. *Kurt Roeckx*
  4879. ### Changes between 1.0.1r and 1.0.1s [1 Mar 2016]
  4880. * Disable weak ciphers in SSLv3 and up in default builds of OpenSSL.
  4881. Builds that are not configured with "enable-weak-ssl-ciphers" will not
  4882. provide any "EXPORT" or "LOW" strength ciphers.
  4883. *Viktor Dukhovni*
  4884. * Disable SSLv2 default build, default negotiation and weak ciphers. SSLv2
  4885. is by default disabled at build-time. Builds that are not configured with
  4886. "enable-ssl2" will not support SSLv2. Even if "enable-ssl2" is used,
  4887. users who want to negotiate SSLv2 via the version-flexible SSLv23_method()
  4888. will need to explicitly call either of:
  4889. SSL_CTX_clear_options(ctx, SSL_OP_NO_SSLv2);
  4890. or
  4891. SSL_clear_options(ssl, SSL_OP_NO_SSLv2);
  4892. as appropriate. Even if either of those is used, or the application
  4893. explicitly uses the version-specific SSLv2_method() or its client and
  4894. server variants, SSLv2 ciphers vulnerable to exhaustive search key
  4895. recovery have been removed. Specifically, the SSLv2 40-bit EXPORT
  4896. ciphers, and SSLv2 56-bit DES are no longer available.
  4897. ([CVE-2016-0800])
  4898. *Viktor Dukhovni*
  4899. * Fix a double-free in DSA code
  4900. A double free bug was discovered when OpenSSL parses malformed DSA private
  4901. keys and could lead to a DoS attack or memory corruption for applications
  4902. that receive DSA private keys from untrusted sources. This scenario is
  4903. considered rare.
  4904. This issue was reported to OpenSSL by Adam Langley(Google/BoringSSL) using
  4905. libFuzzer.
  4906. ([CVE-2016-0705])
  4907. *Stephen Henson*
  4908. * Disable SRP fake user seed to address a server memory leak.
  4909. Add a new method SRP_VBASE_get1_by_user that handles the seed properly.
  4910. SRP_VBASE_get_by_user had inconsistent memory management behaviour.
  4911. In order to fix an unavoidable memory leak, SRP_VBASE_get_by_user
  4912. was changed to ignore the "fake user" SRP seed, even if the seed
  4913. is configured.
  4914. Users should use SRP_VBASE_get1_by_user instead. Note that in
  4915. SRP_VBASE_get1_by_user, caller must free the returned value. Note
  4916. also that even though configuring the SRP seed attempts to hide
  4917. invalid usernames by continuing the handshake with fake
  4918. credentials, this behaviour is not constant time and no strong
  4919. guarantees are made that the handshake is indistinguishable from
  4920. that of a valid user.
  4921. ([CVE-2016-0798])
  4922. *Emilia Käsper*
  4923. * Fix BN_hex2bn/BN_dec2bn NULL pointer deref/heap corruption
  4924. In the BN_hex2bn function the number of hex digits is calculated using an
  4925. int value `i`. Later `bn_expand` is called with a value of `i * 4`. For
  4926. large values of `i` this can result in `bn_expand` not allocating any
  4927. memory because `i * 4` is negative. This can leave the internal BIGNUM data
  4928. field as NULL leading to a subsequent NULL ptr deref. For very large values
  4929. of `i`, the calculation `i * 4` could be a positive value smaller than `i`.
  4930. In this case memory is allocated to the internal BIGNUM data field, but it
  4931. is insufficiently sized leading to heap corruption. A similar issue exists
  4932. in BN_dec2bn. This could have security consequences if BN_hex2bn/BN_dec2bn
  4933. is ever called by user applications with very large untrusted hex/dec data.
  4934. This is anticipated to be a rare occurrence.
  4935. All OpenSSL internal usage of these functions use data that is not expected
  4936. to be untrusted, e.g. config file data or application command line
  4937. arguments. If user developed applications generate config file data based
  4938. on untrusted data then it is possible that this could also lead to security
  4939. consequences. This is also anticipated to be rare.
  4940. This issue was reported to OpenSSL by Guido Vranken.
  4941. ([CVE-2016-0797])
  4942. *Matt Caswell*
  4943. * Fix memory issues in `BIO_*printf` functions
  4944. The internal `fmtstr` function used in processing a "%s" format string in
  4945. the `BIO_*printf` functions could overflow while calculating the length of a
  4946. string and cause an OOB read when printing very long strings.
  4947. Additionally the internal `doapr_outch` function can attempt to write to an
  4948. OOB memory location (at an offset from the NULL pointer) in the event of a
  4949. memory allocation failure. In 1.0.2 and below this could be caused where
  4950. the size of a buffer to be allocated is greater than INT_MAX. E.g. this
  4951. could be in processing a very long "%s" format string. Memory leaks can
  4952. also occur.
  4953. The first issue may mask the second issue dependent on compiler behaviour.
  4954. These problems could enable attacks where large amounts of untrusted data
  4955. is passed to the `BIO_*printf` functions. If applications use these functions
  4956. in this way then they could be vulnerable. OpenSSL itself uses these
  4957. functions when printing out human-readable dumps of ASN.1 data. Therefore
  4958. applications that print this data could be vulnerable if the data is from
  4959. untrusted sources. OpenSSL command line applications could also be
  4960. vulnerable where they print out ASN.1 data, or if untrusted data is passed
  4961. as command line arguments.
  4962. Libssl is not considered directly vulnerable. Additionally certificates etc
  4963. received via remote connections via libssl are also unlikely to be able to
  4964. trigger these issues because of message size limits enforced within libssl.
  4965. This issue was reported to OpenSSL Guido Vranken.
  4966. ([CVE-2016-0799])
  4967. *Matt Caswell*
  4968. * Side channel attack on modular exponentiation
  4969. A side-channel attack was found which makes use of cache-bank conflicts on
  4970. the Intel Sandy-Bridge microarchitecture which could lead to the recovery
  4971. of RSA keys. The ability to exploit this issue is limited as it relies on
  4972. an attacker who has control of code in a thread running on the same
  4973. hyper-threaded core as the victim thread which is performing decryptions.
  4974. This issue was reported to OpenSSL by Yuval Yarom, The University of
  4975. Adelaide and NICTA, Daniel Genkin, Technion and Tel Aviv University, and
  4976. Nadia Heninger, University of Pennsylvania with more information at
  4977. <http://cachebleed.info>.
  4978. ([CVE-2016-0702])
  4979. *Andy Polyakov*
  4980. * Change the req command to generate a 2048-bit RSA/DSA key by default,
  4981. if no keysize is specified with default_bits. This fixes an
  4982. omission in an earlier change that changed all RSA/DSA key generation
  4983. commands to use 2048 bits by default.
  4984. *Emilia Käsper*
  4985. ### Changes between 1.0.1q and 1.0.1r [28 Jan 2016]
  4986. * Protection for DH small subgroup attacks
  4987. As a precautionary measure the SSL_OP_SINGLE_DH_USE option has been
  4988. switched on by default and cannot be disabled. This could have some
  4989. performance impact.
  4990. *Matt Caswell*
  4991. * SSLv2 doesn't block disabled ciphers
  4992. A malicious client can negotiate SSLv2 ciphers that have been disabled on
  4993. the server and complete SSLv2 handshakes even if all SSLv2 ciphers have
  4994. been disabled, provided that the SSLv2 protocol was not also disabled via
  4995. SSL_OP_NO_SSLv2.
  4996. This issue was reported to OpenSSL on 26th December 2015 by Nimrod Aviram
  4997. and Sebastian Schinzel.
  4998. ([CVE-2015-3197])
  4999. *Viktor Dukhovni*
  5000. * Reject DH handshakes with parameters shorter than 1024 bits.
  5001. *Kurt Roeckx*
  5002. ### Changes between 1.0.1p and 1.0.1q [3 Dec 2015]
  5003. * Certificate verify crash with missing PSS parameter
  5004. The signature verification routines will crash with a NULL pointer
  5005. dereference if presented with an ASN.1 signature using the RSA PSS
  5006. algorithm and absent mask generation function parameter. Since these
  5007. routines are used to verify certificate signature algorithms this can be
  5008. used to crash any certificate verification operation and exploited in a
  5009. DoS attack. Any application which performs certificate verification is
  5010. vulnerable including OpenSSL clients and servers which enable client
  5011. authentication.
  5012. This issue was reported to OpenSSL by Loïc Jonas Etienne (Qnective AG).
  5013. ([CVE-2015-3194])
  5014. *Stephen Henson*
  5015. * X509_ATTRIBUTE memory leak
  5016. When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak
  5017. memory. This structure is used by the PKCS#7 and CMS routines so any
  5018. application which reads PKCS#7 or CMS data from untrusted sources is
  5019. affected. SSL/TLS is not affected.
  5020. This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using
  5021. libFuzzer.
  5022. ([CVE-2015-3195])
  5023. *Stephen Henson*
  5024. * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs.
  5025. This changes the decoding behaviour for some invalid messages,
  5026. though the change is mostly in the more lenient direction, and
  5027. legacy behaviour is preserved as much as possible.
  5028. *Emilia Käsper*
  5029. * In DSA_generate_parameters_ex, if the provided seed is too short,
  5030. use a random seed, as already documented.
  5031. *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>*
  5032. ### Changes between 1.0.1o and 1.0.1p [9 Jul 2015]
  5033. * Alternate chains certificate forgery
  5034. During certificate verfification, OpenSSL will attempt to find an
  5035. alternative certificate chain if the first attempt to build such a chain
  5036. fails. An error in the implementation of this logic can mean that an
  5037. attacker could cause certain checks on untrusted certificates to be
  5038. bypassed, such as the CA flag, enabling them to use a valid leaf
  5039. certificate to act as a CA and "issue" an invalid certificate.
  5040. This issue was reported to OpenSSL by Adam Langley/David Benjamin
  5041. (Google/BoringSSL).
  5042. ([CVE-2015-1793])
  5043. *Matt Caswell*
  5044. * Race condition handling PSK identify hint
  5045. If PSK identity hints are received by a multi-threaded client then
  5046. the values are wrongly updated in the parent SSL_CTX structure. This can
  5047. result in a race condition potentially leading to a double free of the
  5048. identify hint data.
  5049. ([CVE-2015-3196])
  5050. *Stephen Henson*
  5051. ### Changes between 1.0.1n and 1.0.1o [12 Jun 2015]
  5052. * Fix HMAC ABI incompatibility. The previous version introduced an ABI
  5053. incompatibility in the handling of HMAC. The previous ABI has now been
  5054. restored.
  5055. ### Changes between 1.0.1m and 1.0.1n [11 Jun 2015]
  5056. * Malformed ECParameters causes infinite loop
  5057. When processing an ECParameters structure OpenSSL enters an infinite loop
  5058. if the curve specified is over a specially malformed binary polynomial
  5059. field.
  5060. This can be used to perform denial of service against any
  5061. system which processes public keys, certificate requests or
  5062. certificates. This includes TLS clients and TLS servers with
  5063. client authentication enabled.
  5064. This issue was reported to OpenSSL by Joseph Barr-Pixton.
  5065. ([CVE-2015-1788])
  5066. *Andy Polyakov*
  5067. * Exploitable out-of-bounds read in X509_cmp_time
  5068. X509_cmp_time does not properly check the length of the ASN1_TIME
  5069. string and can read a few bytes out of bounds. In addition,
  5070. X509_cmp_time accepts an arbitrary number of fractional seconds in the
  5071. time string.
  5072. An attacker can use this to craft malformed certificates and CRLs of
  5073. various sizes and potentially cause a segmentation fault, resulting in
  5074. a DoS on applications that verify certificates or CRLs. TLS clients
  5075. that verify CRLs are affected. TLS clients and servers with client
  5076. authentication enabled may be affected if they use custom verification
  5077. callbacks.
  5078. This issue was reported to OpenSSL by Robert Swiecki (Google), and
  5079. independently by Hanno Böck.
  5080. ([CVE-2015-1789])
  5081. *Emilia Käsper*
  5082. * PKCS7 crash with missing EnvelopedContent
  5083. The PKCS#7 parsing code does not handle missing inner EncryptedContent
  5084. correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs
  5085. with missing content and trigger a NULL pointer dereference on parsing.
  5086. Applications that decrypt PKCS#7 data or otherwise parse PKCS#7
  5087. structures from untrusted sources are affected. OpenSSL clients and
  5088. servers are not affected.
  5089. This issue was reported to OpenSSL by Michal Zalewski (Google).
  5090. ([CVE-2015-1790])
  5091. *Emilia Käsper*
  5092. * CMS verify infinite loop with unknown hash function
  5093. When verifying a signedData message the CMS code can enter an infinite loop
  5094. if presented with an unknown hash function OID. This can be used to perform
  5095. denial of service against any system which verifies signedData messages using
  5096. the CMS code.
  5097. This issue was reported to OpenSSL by Johannes Bauer.
  5098. ([CVE-2015-1792])
  5099. *Stephen Henson*
  5100. * Race condition handling NewSessionTicket
  5101. If a NewSessionTicket is received by a multi-threaded client when attempting to
  5102. reuse a previous ticket then a race condition can occur potentially leading to
  5103. a double free of the ticket data.
  5104. ([CVE-2015-1791])
  5105. *Matt Caswell*
  5106. * Reject DH handshakes with parameters shorter than 768 bits.
  5107. *Kurt Roeckx and Emilia Kasper*
  5108. * dhparam: generate 2048-bit parameters by default.
  5109. *Kurt Roeckx and Emilia Kasper*
  5110. ### Changes between 1.0.1l and 1.0.1m [19 Mar 2015]
  5111. * Segmentation fault in ASN1_TYPE_cmp fix
  5112. The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is
  5113. made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check
  5114. certificate signature algorithm consistency this can be used to crash any
  5115. certificate verification operation and exploited in a DoS attack. Any
  5116. application which performs certificate verification is vulnerable including
  5117. OpenSSL clients and servers which enable client authentication.
  5118. ([CVE-2015-0286])
  5119. *Stephen Henson*
  5120. * ASN.1 structure reuse memory corruption fix
  5121. Reusing a structure in ASN.1 parsing may allow an attacker to cause
  5122. memory corruption via an invalid write. Such reuse is and has been
  5123. strongly discouraged and is believed to be rare.
  5124. Applications that parse structures containing CHOICE or ANY DEFINED BY
  5125. components may be affected. Certificate parsing (d2i_X509 and related
  5126. functions) are however not affected. OpenSSL clients and servers are
  5127. not affected.
  5128. ([CVE-2015-0287])
  5129. *Stephen Henson*
  5130. * PKCS7 NULL pointer dereferences fix
  5131. The PKCS#7 parsing code does not handle missing outer ContentInfo
  5132. correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with
  5133. missing content and trigger a NULL pointer dereference on parsing.
  5134. Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or
  5135. otherwise parse PKCS#7 structures from untrusted sources are
  5136. affected. OpenSSL clients and servers are not affected.
  5137. This issue was reported to OpenSSL by Michal Zalewski (Google).
  5138. ([CVE-2015-0289])
  5139. *Emilia Käsper*
  5140. * DoS via reachable assert in SSLv2 servers fix
  5141. A malicious client can trigger an OPENSSL_assert (i.e., an abort) in
  5142. servers that both support SSLv2 and enable export cipher suites by sending
  5143. a specially crafted SSLv2 CLIENT-MASTER-KEY message.
  5144. This issue was discovered by Sean Burford (Google) and Emilia Käsper
  5145. (OpenSSL development team).
  5146. ([CVE-2015-0293])
  5147. *Emilia Käsper*
  5148. * Use After Free following d2i_ECPrivatekey error fix
  5149. A malformed EC private key file consumed via the d2i_ECPrivateKey function
  5150. could cause a use after free condition. This, in turn, could cause a double
  5151. free in several private key parsing functions (such as d2i_PrivateKey
  5152. or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption
  5153. for applications that receive EC private keys from untrusted
  5154. sources. This scenario is considered rare.
  5155. This issue was discovered by the BoringSSL project and fixed in their
  5156. commit 517073cd4b.
  5157. ([CVE-2015-0209])
  5158. *Matt Caswell*
  5159. * X509_to_X509_REQ NULL pointer deref fix
  5160. The function X509_to_X509_REQ will crash with a NULL pointer dereference if
  5161. the certificate key is invalid. This function is rarely used in practice.
  5162. This issue was discovered by Brian Carpenter.
  5163. ([CVE-2015-0288])
  5164. *Stephen Henson*
  5165. * Removed the export ciphers from the DEFAULT ciphers
  5166. *Kurt Roeckx*
  5167. ### Changes between 1.0.1k and 1.0.1l [15 Jan 2015]
  5168. * Build fixes for the Windows and OpenVMS platforms
  5169. *Matt Caswell and Richard Levitte*
  5170. ### Changes between 1.0.1j and 1.0.1k [8 Jan 2015]
  5171. * Fix DTLS segmentation fault in dtls1_get_record. A carefully crafted DTLS
  5172. message can cause a segmentation fault in OpenSSL due to a NULL pointer
  5173. dereference. This could lead to a Denial Of Service attack. Thanks to
  5174. Markus Stenberg of Cisco Systems, Inc. for reporting this issue.
  5175. ([CVE-2014-3571])
  5176. *Steve Henson*
  5177. * Fix DTLS memory leak in dtls1_buffer_record. A memory leak can occur in the
  5178. dtls1_buffer_record function under certain conditions. In particular this
  5179. could occur if an attacker sent repeated DTLS records with the same
  5180. sequence number but for the next epoch. The memory leak could be exploited
  5181. by an attacker in a Denial of Service attack through memory exhaustion.
  5182. Thanks to Chris Mueller for reporting this issue.
  5183. ([CVE-2015-0206])
  5184. *Matt Caswell*
  5185. * Fix issue where no-ssl3 configuration sets method to NULL. When openssl is
  5186. built with the no-ssl3 option and a SSL v3 ClientHello is received the ssl
  5187. method would be set to NULL which could later result in a NULL pointer
  5188. dereference. Thanks to Frank Schmirler for reporting this issue.
  5189. ([CVE-2014-3569])
  5190. *Kurt Roeckx*
  5191. * Abort handshake if server key exchange message is omitted for ephemeral
  5192. ECDH ciphersuites.
  5193. Thanks to Karthikeyan Bhargavan of the PROSECCO team at INRIA for
  5194. reporting this issue.
  5195. ([CVE-2014-3572])
  5196. *Steve Henson*
  5197. * Remove non-export ephemeral RSA code on client and server. This code
  5198. violated the TLS standard by allowing the use of temporary RSA keys in
  5199. non-export ciphersuites and could be used by a server to effectively
  5200. downgrade the RSA key length used to a value smaller than the server
  5201. certificate. Thanks for Karthikeyan Bhargavan of the PROSECCO team at
  5202. INRIA or reporting this issue.
  5203. ([CVE-2015-0204])
  5204. *Steve Henson*
  5205. * Fixed issue where DH client certificates are accepted without verification.
  5206. An OpenSSL server will accept a DH certificate for client authentication
  5207. without the certificate verify message. This effectively allows a client to
  5208. authenticate without the use of a private key. This only affects servers
  5209. which trust a client certificate authority which issues certificates
  5210. containing DH keys: these are extremely rare and hardly ever encountered.
  5211. Thanks for Karthikeyan Bhargavan of the PROSECCO team at INRIA or reporting
  5212. this issue.
  5213. ([CVE-2015-0205])
  5214. *Steve Henson*
  5215. * Ensure that the session ID context of an SSL is updated when its
  5216. SSL_CTX is updated via SSL_set_SSL_CTX.
  5217. The session ID context is typically set from the parent SSL_CTX,
  5218. and can vary with the CTX.
  5219. *Adam Langley*
  5220. * Fix various certificate fingerprint issues.
  5221. By using non-DER or invalid encodings outside the signed portion of a
  5222. certificate the fingerprint can be changed without breaking the signature.
  5223. Although no details of the signed portion of the certificate can be changed
  5224. this can cause problems with some applications: e.g. those using the
  5225. certificate fingerprint for blacklists.
  5226. 1. Reject signatures with non zero unused bits.
  5227. If the BIT STRING containing the signature has non zero unused bits reject
  5228. the signature. All current signature algorithms require zero unused bits.
  5229. 2. Check certificate algorithm consistency.
  5230. Check the AlgorithmIdentifier inside TBS matches the one in the
  5231. certificate signature. NB: this will result in signature failure
  5232. errors for some broken certificates.
  5233. Thanks to Konrad Kraszewski from Google for reporting this issue.
  5234. 3. Check DSA/ECDSA signatures use DER.
  5235. Re-encode DSA/ECDSA signatures and compare with the original received
  5236. signature. Return an error if there is a mismatch.
  5237. This will reject various cases including garbage after signature
  5238. (thanks to Antti Karjalainen and Tuomo Untinen from the Codenomicon CROSS
  5239. program for discovering this case) and use of BER or invalid ASN.1 INTEGERs
  5240. (negative or with leading zeroes).
  5241. Further analysis was conducted and fixes were developed by Stephen Henson
  5242. of the OpenSSL core team.
  5243. ([CVE-2014-8275])
  5244. *Steve Henson*
  5245. * Correct Bignum squaring. Bignum squaring (BN_sqr) may produce incorrect
  5246. results on some platforms, including x86_64. This bug occurs at random
  5247. with a very low probability, and is not known to be exploitable in any
  5248. way, though its exact impact is difficult to determine. Thanks to Pieter
  5249. Wuille (Blockstream) who reported this issue and also suggested an initial
  5250. fix. Further analysis was conducted by the OpenSSL development team and
  5251. Adam Langley of Google. The final fix was developed by Andy Polyakov of
  5252. the OpenSSL core team.
  5253. ([CVE-2014-3570])
  5254. *Andy Polyakov*
  5255. * Do not resume sessions on the server if the negotiated protocol
  5256. version does not match the session's version. Resuming with a different
  5257. version, while not strictly forbidden by the RFC, is of questionable
  5258. sanity and breaks all known clients.
  5259. *David Benjamin, Emilia Käsper*
  5260. * Tighten handling of the ChangeCipherSpec (CCS) message: reject
  5261. early CCS messages during renegotiation. (Note that because
  5262. renegotiation is encrypted, this early CCS was not exploitable.)
  5263. *Emilia Käsper*
  5264. * Tighten client-side session ticket handling during renegotiation:
  5265. ensure that the client only accepts a session ticket if the server sends
  5266. the extension anew in the ServerHello. Previously, a TLS client would
  5267. reuse the old extension state and thus accept a session ticket if one was
  5268. announced in the initial ServerHello.
  5269. Similarly, ensure that the client requires a session ticket if one
  5270. was advertised in the ServerHello. Previously, a TLS client would
  5271. ignore a missing NewSessionTicket message.
  5272. *Emilia Käsper*
  5273. ### Changes between 1.0.1i and 1.0.1j [15 Oct 2014]
  5274. * SRTP Memory Leak.
  5275. A flaw in the DTLS SRTP extension parsing code allows an attacker, who
  5276. sends a carefully crafted handshake message, to cause OpenSSL to fail
  5277. to free up to 64k of memory causing a memory leak. This could be
  5278. exploited in a Denial Of Service attack. This issue affects OpenSSL
  5279. 1.0.1 server implementations for both SSL/TLS and DTLS regardless of
  5280. whether SRTP is used or configured. Implementations of OpenSSL that
  5281. have been compiled with OPENSSL_NO_SRTP defined are not affected.
  5282. The fix was developed by the OpenSSL team.
  5283. ([CVE-2014-3513])
  5284. *OpenSSL team*
  5285. * Session Ticket Memory Leak.
  5286. When an OpenSSL SSL/TLS/DTLS server receives a session ticket the
  5287. integrity of that ticket is first verified. In the event of a session
  5288. ticket integrity check failing, OpenSSL will fail to free memory
  5289. causing a memory leak. By sending a large number of invalid session
  5290. tickets an attacker could exploit this issue in a Denial Of Service
  5291. attack.
  5292. ([CVE-2014-3567])
  5293. *Steve Henson*
  5294. * Build option no-ssl3 is incomplete.
  5295. When OpenSSL is configured with "no-ssl3" as a build option, servers
  5296. could accept and complete an SSL 3.0 handshake, and clients could be
  5297. configured to send them.
  5298. ([CVE-2014-3568])
  5299. *Akamai and the OpenSSL team*
  5300. * Add support for TLS_FALLBACK_SCSV.
  5301. Client applications doing fallback retries should call
  5302. SSL_set_mode(s, SSL_MODE_SEND_FALLBACK_SCSV).
  5303. ([CVE-2014-3566])
  5304. *Adam Langley, Bodo Moeller*
  5305. * Add additional DigestInfo checks.
  5306. Re-encode DigestInto in DER and check against the original when
  5307. verifying RSA signature: this will reject any improperly encoded
  5308. DigestInfo structures.
  5309. Note: this is a precautionary measure and no attacks are currently known.
  5310. *Steve Henson*
  5311. ### Changes between 1.0.1h and 1.0.1i [6 Aug 2014]
  5312. * Fix SRP buffer overrun vulnerability. Invalid parameters passed to the
  5313. SRP code can be overrun an internal buffer. Add sanity check that
  5314. g, A, B < N to SRP code.
  5315. Thanks to Sean Devlin and Watson Ladd of Cryptography Services, NCC
  5316. Group for discovering this issue.
  5317. ([CVE-2014-3512])
  5318. *Steve Henson*
  5319. * A flaw in the OpenSSL SSL/TLS server code causes the server to negotiate
  5320. TLS 1.0 instead of higher protocol versions when the ClientHello message
  5321. is badly fragmented. This allows a man-in-the-middle attacker to force a
  5322. downgrade to TLS 1.0 even if both the server and the client support a
  5323. higher protocol version, by modifying the client's TLS records.
  5324. Thanks to David Benjamin and Adam Langley (Google) for discovering and
  5325. researching this issue.
  5326. ([CVE-2014-3511])
  5327. *David Benjamin*
  5328. * OpenSSL DTLS clients enabling anonymous (EC)DH ciphersuites are subject
  5329. to a denial of service attack. A malicious server can crash the client
  5330. with a null pointer dereference (read) by specifying an anonymous (EC)DH
  5331. ciphersuite and sending carefully crafted handshake messages.
  5332. Thanks to Felix Gröbert (Google) for discovering and researching this
  5333. issue.
  5334. ([CVE-2014-3510])
  5335. *Emilia Käsper*
  5336. * By sending carefully crafted DTLS packets an attacker could cause openssl
  5337. to leak memory. This can be exploited through a Denial of Service attack.
  5338. Thanks to Adam Langley for discovering and researching this issue.
  5339. ([CVE-2014-3507])
  5340. *Adam Langley*
  5341. * An attacker can force openssl to consume large amounts of memory whilst
  5342. processing DTLS handshake messages. This can be exploited through a
  5343. Denial of Service attack.
  5344. Thanks to Adam Langley for discovering and researching this issue.
  5345. ([CVE-2014-3506])
  5346. *Adam Langley*
  5347. * An attacker can force an error condition which causes openssl to crash
  5348. whilst processing DTLS packets due to memory being freed twice. This
  5349. can be exploited through a Denial of Service attack.
  5350. Thanks to Adam Langley and Wan-Teh Chang for discovering and researching
  5351. this issue.
  5352. ([CVE-2014-3505])
  5353. *Adam Langley*
  5354. * If a multithreaded client connects to a malicious server using a resumed
  5355. session and the server sends an ec point format extension it could write
  5356. up to 255 bytes to freed memory.
  5357. Thanks to Gabor Tyukasz (LogMeIn Inc) for discovering and researching this
  5358. issue.
  5359. ([CVE-2014-3509])
  5360. *Gabor Tyukasz*
  5361. * A malicious server can crash an OpenSSL client with a null pointer
  5362. dereference (read) by specifying an SRP ciphersuite even though it was not
  5363. properly negotiated with the client. This can be exploited through a
  5364. Denial of Service attack.
  5365. Thanks to Joonas Kuorilehto and Riku Hietamäki (Codenomicon) for
  5366. discovering and researching this issue.
  5367. ([CVE-2014-5139])
  5368. *Steve Henson*
  5369. * A flaw in OBJ_obj2txt may cause pretty printing functions such as
  5370. X509_name_oneline, X509_name_print_ex et al. to leak some information
  5371. from the stack. Applications may be affected if they echo pretty printing
  5372. output to the attacker.
  5373. Thanks to Ivan Fratric (Google) for discovering this issue.
  5374. ([CVE-2014-3508])
  5375. *Emilia Käsper, and Steve Henson*
  5376. * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.)
  5377. for corner cases. (Certain input points at infinity could lead to
  5378. bogus results, with non-infinity inputs mapped to infinity too.)
  5379. *Bodo Moeller*
  5380. ### Changes between 1.0.1g and 1.0.1h [5 Jun 2014]
  5381. * Fix for SSL/TLS MITM flaw. An attacker using a carefully crafted
  5382. handshake can force the use of weak keying material in OpenSSL
  5383. SSL/TLS clients and servers.
  5384. Thanks to KIKUCHI Masashi (Lepidum Co. Ltd.) for discovering and
  5385. researching this issue. ([CVE-2014-0224])
  5386. *KIKUCHI Masashi, Steve Henson*
  5387. * Fix DTLS recursion flaw. By sending an invalid DTLS handshake to an
  5388. OpenSSL DTLS client the code can be made to recurse eventually crashing
  5389. in a DoS attack.
  5390. Thanks to Imre Rad (Search-Lab Ltd.) for discovering this issue.
  5391. ([CVE-2014-0221])
  5392. *Imre Rad, Steve Henson*
  5393. * Fix DTLS invalid fragment vulnerability. A buffer overrun attack can
  5394. be triggered by sending invalid DTLS fragments to an OpenSSL DTLS
  5395. client or server. This is potentially exploitable to run arbitrary
  5396. code on a vulnerable client or server.
  5397. Thanks to Jüri Aedla for reporting this issue. ([CVE-2014-0195])
  5398. *Jüri Aedla, Steve Henson*
  5399. * Fix bug in TLS code where clients enable anonymous ECDH ciphersuites
  5400. are subject to a denial of service attack.
  5401. Thanks to Felix Gröbert and Ivan Fratric at Google for discovering
  5402. this issue. ([CVE-2014-3470])
  5403. *Felix Gröbert, Ivan Fratric, Steve Henson*
  5404. * Harmonize version and its documentation. -f flag is used to display
  5405. compilation flags.
  5406. *mancha <mancha1@zoho.com>*
  5407. * Fix eckey_priv_encode so it immediately returns an error upon a failure
  5408. in i2d_ECPrivateKey.
  5409. *mancha <mancha1@zoho.com>*
  5410. * Fix some double frees. These are not thought to be exploitable.
  5411. *mancha <mancha1@zoho.com>*
  5412. ### Changes between 1.0.1f and 1.0.1g [7 Apr 2014]
  5413. * A missing bounds check in the handling of the TLS heartbeat extension
  5414. can be used to reveal up to 64k of memory to a connected client or
  5415. server.
  5416. Thanks for Neel Mehta of Google Security for discovering this bug and to
  5417. Adam Langley <agl@chromium.org> and Bodo Moeller <bmoeller@acm.org> for
  5418. preparing the fix ([CVE-2014-0160])
  5419. *Adam Langley, Bodo Moeller*
  5420. * Fix for the attack described in the paper "Recovering OpenSSL
  5421. ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack"
  5422. by Yuval Yarom and Naomi Benger. Details can be obtained from:
  5423. <http://eprint.iacr.org/2014/140>
  5424. Thanks to Yuval Yarom and Naomi Benger for discovering this
  5425. flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076])
  5426. *Yuval Yarom and Naomi Benger*
  5427. * TLS pad extension: draft-agl-tls-padding-03
  5428. Workaround for the "TLS hang bug" (see FAQ and PR#2771): if the
  5429. TLS client Hello record length value would otherwise be > 255 and
  5430. less that 512 pad with a dummy extension containing zeroes so it
  5431. is at least 512 bytes long.
  5432. *Adam Langley, Steve Henson*
  5433. ### Changes between 1.0.1e and 1.0.1f [6 Jan 2014]
  5434. * Fix for TLS record tampering bug. A carefully crafted invalid
  5435. handshake could crash OpenSSL with a NULL pointer exception.
  5436. Thanks to Anton Johansson for reporting this issues.
  5437. ([CVE-2013-4353])
  5438. * Keep original DTLS digest and encryption contexts in retransmission
  5439. structures so we can use the previous session parameters if they need
  5440. to be resent. ([CVE-2013-6450])
  5441. *Steve Henson*
  5442. * Add option SSL_OP_SAFARI_ECDHE_ECDSA_BUG (part of SSL_OP_ALL) which
  5443. avoids preferring ECDHE-ECDSA ciphers when the client appears to be
  5444. Safari on OS X. Safari on OS X 10.8..10.8.3 advertises support for
  5445. several ECDHE-ECDSA ciphers, but fails to negotiate them. The bug
  5446. is fixed in OS X 10.8.4, but Apple have ruled out both hot fixing
  5447. 10.8..10.8.3 and forcing users to upgrade to 10.8.4 or newer.
  5448. *Rob Stradling, Adam Langley*
  5449. ### Changes between 1.0.1d and 1.0.1e [11 Feb 2013]
  5450. * Correct fix for CVE-2013-0169. The original didn't work on AES-NI
  5451. supporting platforms or when small records were transferred.
  5452. *Andy Polyakov, Steve Henson*
  5453. ### Changes between 1.0.1c and 1.0.1d [5 Feb 2013]
  5454. * Make the decoding of SSLv3, TLS and DTLS CBC records constant time.
  5455. This addresses the flaw in CBC record processing discovered by
  5456. Nadhem Alfardan and Kenny Paterson. Details of this attack can be found
  5457. at: <http://www.isg.rhul.ac.uk/tls/>
  5458. Thanks go to Nadhem Alfardan and Kenny Paterson of the Information
  5459. Security Group at Royal Holloway, University of London
  5460. (www.isg.rhul.ac.uk) for discovering this flaw and Adam Langley and
  5461. Emilia Käsper for the initial patch.
  5462. ([CVE-2013-0169])
  5463. *Emilia Käsper, Adam Langley, Ben Laurie, Andy Polyakov, Steve Henson*
  5464. * Fix flaw in AESNI handling of TLS 1.2 and 1.1 records for CBC mode
  5465. ciphersuites which can be exploited in a denial of service attack.
  5466. Thanks go to and to Adam Langley <agl@chromium.org> for discovering
  5467. and detecting this bug and to Wolfgang Ettlinger
  5468. <wolfgang.ettlinger@gmail.com> for independently discovering this issue.
  5469. ([CVE-2012-2686])
  5470. *Adam Langley*
  5471. * Return an error when checking OCSP signatures when key is NULL.
  5472. This fixes a DoS attack. ([CVE-2013-0166])
  5473. *Steve Henson*
  5474. * Make openssl verify return errors.
  5475. *Chris Palmer <palmer@google.com> and Ben Laurie*
  5476. * Call OCSP Stapling callback after ciphersuite has been chosen, so
  5477. the right response is stapled. Also change SSL_get_certificate()
  5478. so it returns the certificate actually sent.
  5479. See <http://rt.openssl.org/Ticket/Display.html?id=2836>.
  5480. *Rob Stradling <rob.stradling@comodo.com>*
  5481. * Fix possible deadlock when decoding public keys.
  5482. *Steve Henson*
  5483. * Don't use TLS 1.0 record version number in initial client hello
  5484. if renegotiating.
  5485. *Steve Henson*
  5486. ### Changes between 1.0.1b and 1.0.1c [10 May 2012]
  5487. * Sanity check record length before skipping explicit IV in TLS
  5488. 1.2, 1.1 and DTLS to fix DoS attack.
  5489. Thanks to Codenomicon for discovering this issue using Fuzz-o-Matic
  5490. fuzzing as a service testing platform.
  5491. ([CVE-2012-2333])
  5492. *Steve Henson*
  5493. * Initialise tkeylen properly when encrypting CMS messages.
  5494. Thanks to Solar Designer of Openwall for reporting this issue.
  5495. *Steve Henson*
  5496. * In FIPS mode don't try to use composite ciphers as they are not
  5497. approved.
  5498. *Steve Henson*
  5499. ### Changes between 1.0.1a and 1.0.1b [26 Apr 2012]
  5500. * OpenSSL 1.0.0 sets SSL_OP_ALL to 0x80000FFFL and OpenSSL 1.0.1 and
  5501. 1.0.1a set SSL_OP_NO_TLSv1_1 to 0x00000400L which would unfortunately
  5502. mean any application compiled against OpenSSL 1.0.0 headers setting
  5503. SSL_OP_ALL would also set SSL_OP_NO_TLSv1_1, unintentionally disabling
  5504. TLS 1.1 also. Fix this by changing the value of SSL_OP_NO_TLSv1_1 to
  5505. 0x10000000L Any application which was previously compiled against
  5506. OpenSSL 1.0.1 or 1.0.1a headers and which cares about SSL_OP_NO_TLSv1_1
  5507. will need to be recompiled as a result. Letting be results in
  5508. inability to disable specifically TLS 1.1 and in client context,
  5509. in unlike event, limit maximum offered version to TLS 1.0 [see below].
  5510. *Steve Henson*
  5511. * In order to ensure interoperability SSL_OP_NO_protocolX does not
  5512. disable just protocol X, but all protocols above X *if* there are
  5513. protocols *below* X still enabled. In more practical terms it means
  5514. that if application wants to disable TLS1.0 in favor of TLS1.1 and
  5515. above, it's not sufficient to pass `SSL_OP_NO_TLSv1`, one has to pass
  5516. `SSL_OP_NO_TLSv1|SSL_OP_NO_SSLv3|SSL_OP_NO_SSLv2`. This applies to
  5517. client side.
  5518. *Andy Polyakov*
  5519. ### Changes between 1.0.1 and 1.0.1a [19 Apr 2012]
  5520. * Check for potentially exploitable overflows in asn1_d2i_read_bio
  5521. BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer
  5522. in CRYPTO_realloc_clean.
  5523. Thanks to Tavis Ormandy, Google Security Team, for discovering this
  5524. issue and to Adam Langley <agl@chromium.org> for fixing it.
  5525. ([CVE-2012-2110])
  5526. *Adam Langley (Google), Tavis Ormandy, Google Security Team*
  5527. * Don't allow TLS 1.2 SHA-256 ciphersuites in TLS 1.0, 1.1 connections.
  5528. *Adam Langley*
  5529. * Workarounds for some broken servers that "hang" if a client hello
  5530. record length exceeds 255 bytes.
  5531. 1. Do not use record version number > TLS 1.0 in initial client
  5532. hello: some (but not all) hanging servers will now work.
  5533. 2. If we set OPENSSL_MAX_TLS1_2_CIPHER_LENGTH this will truncate
  5534. the number of ciphers sent in the client hello. This should be
  5535. set to an even number, such as 50, for example by passing:
  5536. -DOPENSSL_MAX_TLS1_2_CIPHER_LENGTH=50 to config or Configure.
  5537. Most broken servers should now work.
  5538. 3. If all else fails setting OPENSSL_NO_TLS1_2_CLIENT will disable
  5539. TLS 1.2 client support entirely.
  5540. *Steve Henson*
  5541. * Fix SEGV in Vector Permutation AES module observed in OpenSSH.
  5542. *Andy Polyakov*
  5543. ### Changes between 1.0.0h and 1.0.1 [14 Mar 2012]
  5544. * Add compatibility with old MDC2 signatures which use an ASN1 OCTET
  5545. STRING form instead of a DigestInfo.
  5546. *Steve Henson*
  5547. * The format used for MDC2 RSA signatures is inconsistent between EVP
  5548. and the RSA_sign/RSA_verify functions. This was made more apparent when
  5549. OpenSSL used RSA_sign/RSA_verify for some RSA signatures in particular
  5550. those which went through EVP_PKEY_METHOD in 1.0.0 and later. Detect
  5551. the correct format in RSA_verify so both forms transparently work.
  5552. *Steve Henson*
  5553. * Some servers which support TLS 1.0 can choke if we initially indicate
  5554. support for TLS 1.2 and later renegotiate using TLS 1.0 in the RSA
  5555. encrypted premaster secret. As a workaround use the maximum permitted
  5556. client version in client hello, this should keep such servers happy
  5557. and still work with previous versions of OpenSSL.
  5558. *Steve Henson*
  5559. * Add support for TLS/DTLS heartbeats.
  5560. *Robin Seggelmann <seggelmann@fh-muenster.de>*
  5561. * Add support for SCTP.
  5562. *Robin Seggelmann <seggelmann@fh-muenster.de>*
  5563. * Improved PRNG seeding for VOS.
  5564. *Paul Green <Paul.Green@stratus.com>*
  5565. * Extensive assembler packs updates, most notably:
  5566. - x86[_64]: AES-NI, PCLMULQDQ, RDRAND support;
  5567. - x86[_64]: SSSE3 support (SHA1, vector-permutation AES);
  5568. - x86_64: bit-sliced AES implementation;
  5569. - ARM: NEON support, contemporary platforms optimizations;
  5570. - s390x: z196 support;
  5571. - `*`: GHASH and GF(2^m) multiplication implementations;
  5572. *Andy Polyakov*
  5573. * Make TLS-SRP code conformant with RFC 5054 API cleanup
  5574. (removal of unnecessary code)
  5575. *Peter Sylvester <peter.sylvester@edelweb.fr>*
  5576. * Add TLS key material exporter from RFC 5705.
  5577. *Eric Rescorla*
  5578. * Add DTLS-SRTP negotiation from RFC 5764.
  5579. *Eric Rescorla*
  5580. * Add Next Protocol Negotiation,
  5581. <http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-00>. Can be
  5582. disabled with a no-npn flag to config or Configure. Code donated
  5583. by Google.
  5584. *Adam Langley <agl@google.com> and Ben Laurie*
  5585. * Add optional 64-bit optimized implementations of elliptic curves NIST-P224,
  5586. NIST-P256, NIST-P521, with constant-time single point multiplication on
  5587. typical inputs. Compiler support for the nonstandard type `__uint128_t` is
  5588. required to use this (present in gcc 4.4 and later, for 64-bit builds).
  5589. Code made available under Apache License version 2.0.
  5590. Specify "enable-ec_nistp_64_gcc_128" on the Configure (or config) command
  5591. line to include this in your build of OpenSSL, and run "make depend" (or
  5592. "make update"). This enables the following EC_METHODs:
  5593. EC_GFp_nistp224_method()
  5594. EC_GFp_nistp256_method()
  5595. EC_GFp_nistp521_method()
  5596. EC_GROUP_new_by_curve_name() will automatically use these (while
  5597. EC_GROUP_new_curve_GFp() currently prefers the more flexible
  5598. implementations).
  5599. *Emilia Käsper, Adam Langley, Bodo Moeller (Google)*
  5600. * Use type ossl_ssize_t instead of ssize_t which isn't available on
  5601. all platforms. Move ssize_t definition from e_os.h to the public
  5602. header file e_os2.h as it now appears in public header file cms.h
  5603. *Steve Henson*
  5604. * New -sigopt option to the ca, req and x509 utilities. Additional
  5605. signature parameters can be passed using this option and in
  5606. particular PSS.
  5607. *Steve Henson*
  5608. * Add RSA PSS signing function. This will generate and set the
  5609. appropriate AlgorithmIdentifiers for PSS based on those in the
  5610. corresponding EVP_MD_CTX structure. No application support yet.
  5611. *Steve Henson*
  5612. * Support for companion algorithm specific ASN1 signing routines.
  5613. New function ASN1_item_sign_ctx() signs a pre-initialised
  5614. EVP_MD_CTX structure and sets AlgorithmIdentifiers based on
  5615. the appropriate parameters.
  5616. *Steve Henson*
  5617. * Add new algorithm specific ASN1 verification initialisation function
  5618. to EVP_PKEY_ASN1_METHOD: this is not in EVP_PKEY_METHOD since the ASN1
  5619. handling will be the same no matter what EVP_PKEY_METHOD is used.
  5620. Add a PSS handler to support verification of PSS signatures: checked
  5621. against a number of sample certificates.
  5622. *Steve Henson*
  5623. * Add signature printing for PSS. Add PSS OIDs.
  5624. *Steve Henson, Martin Kaiser <lists@kaiser.cx>*
  5625. * Add algorithm specific signature printing. An individual ASN1 method
  5626. can now print out signatures instead of the standard hex dump.
  5627. More complex signatures (e.g. PSS) can print out more meaningful
  5628. information. Include DSA version that prints out the signature
  5629. parameters r, s.
  5630. *Steve Henson*
  5631. * Password based recipient info support for CMS library: implementing
  5632. RFC3211.
  5633. *Steve Henson*
  5634. * Split password based encryption into PBES2 and PBKDF2 functions. This
  5635. neatly separates the code into cipher and PBE sections and is required
  5636. for some algorithms that split PBES2 into separate pieces (such as
  5637. password based CMS).
  5638. *Steve Henson*
  5639. * Session-handling fixes:
  5640. - Fix handling of connections that are resuming with a session ID,
  5641. but also support Session Tickets.
  5642. - Fix a bug that suppressed issuing of a new ticket if the client
  5643. presented a ticket with an expired session.
  5644. - Try to set the ticket lifetime hint to something reasonable.
  5645. - Make tickets shorter by excluding irrelevant information.
  5646. - On the client side, don't ignore renewed tickets.
  5647. *Adam Langley, Bodo Moeller (Google)*
  5648. * Fix PSK session representation.
  5649. *Bodo Moeller*
  5650. * Add RC4-MD5 and AESNI-SHA1 "stitched" implementations.
  5651. This work was sponsored by Intel.
  5652. *Andy Polyakov*
  5653. * Add GCM support to TLS library. Some custom code is needed to split
  5654. the IV between the fixed (from PRF) and explicit (from TLS record)
  5655. portions. This adds all GCM ciphersuites supported by RFC5288 and
  5656. RFC5289. Generalise some `AES*` cipherstrings to include GCM and
  5657. add a special AESGCM string for GCM only.
  5658. *Steve Henson*
  5659. * Expand range of ctrls for AES GCM. Permit setting invocation
  5660. field on decrypt and retrieval of invocation field only on encrypt.
  5661. *Steve Henson*
  5662. * Add HMAC ECC ciphersuites from RFC5289. Include SHA384 PRF support.
  5663. As required by RFC5289 these ciphersuites cannot be used if for
  5664. versions of TLS earlier than 1.2.
  5665. *Steve Henson*
  5666. * For FIPS capable OpenSSL interpret a NULL default public key method
  5667. as unset and return the appropriate default but do *not* set the default.
  5668. This means we can return the appropriate method in applications that
  5669. switch between FIPS and non-FIPS modes.
  5670. *Steve Henson*
  5671. * Redirect HMAC and CMAC operations to FIPS module in FIPS mode. If an
  5672. ENGINE is used then we cannot handle that in the FIPS module so we
  5673. keep original code iff non-FIPS operations are allowed.
  5674. *Steve Henson*
  5675. * Add -attime option to openssl utilities.
  5676. *Peter Eckersley <pde@eff.org>, Ben Laurie and Steve Henson*
  5677. * Redirect DSA and DH operations to FIPS module in FIPS mode.
  5678. *Steve Henson*
  5679. * Redirect ECDSA and ECDH operations to FIPS module in FIPS mode. Also use
  5680. FIPS EC methods unconditionally for now.
  5681. *Steve Henson*
  5682. * New build option no-ec2m to disable characteristic 2 code.
  5683. *Steve Henson*
  5684. * Backport libcrypto audit of return value checking from 1.1.0-dev; not
  5685. all cases can be covered as some introduce binary incompatibilities.
  5686. *Steve Henson*
  5687. * Redirect RSA operations to FIPS module including keygen,
  5688. encrypt, decrypt, sign and verify. Block use of non FIPS RSA methods.
  5689. *Steve Henson*
  5690. * Add similar low-level API blocking to ciphers.
  5691. *Steve Henson*
  5692. * low-level digest APIs are not approved in FIPS mode: any attempt
  5693. to use these will cause a fatal error. Applications that *really* want
  5694. to use them can use the `private_*` version instead.
  5695. *Steve Henson*
  5696. * Redirect cipher operations to FIPS module for FIPS builds.
  5697. *Steve Henson*
  5698. * Redirect digest operations to FIPS module for FIPS builds.
  5699. *Steve Henson*
  5700. * Update build system to add "fips" flag which will link in fipscanister.o
  5701. for static and shared library builds embedding a signature if needed.
  5702. *Steve Henson*
  5703. * Output TLS supported curves in preference order instead of numerical
  5704. order. This is currently hardcoded for the highest order curves first.
  5705. This should be configurable so applications can judge speed vs strength.
  5706. *Steve Henson*
  5707. * Add TLS v1.2 server support for client authentication.
  5708. *Steve Henson*
  5709. * Add support for FIPS mode in ssl library: disable SSLv3, non-FIPS ciphers
  5710. and enable MD5.
  5711. *Steve Henson*
  5712. * Functions FIPS_mode_set() and FIPS_mode() which call the underlying
  5713. FIPS modules versions.
  5714. *Steve Henson*
  5715. * Add TLS v1.2 client side support for client authentication. Keep cache
  5716. of handshake records longer as we don't know the hash algorithm to use
  5717. until after the certificate request message is received.
  5718. *Steve Henson*
  5719. * Initial TLS v1.2 client support. Add a default signature algorithms
  5720. extension including all the algorithms we support. Parse new signature
  5721. format in client key exchange. Relax some ECC signing restrictions for
  5722. TLS v1.2 as indicated in RFC5246.
  5723. *Steve Henson*
  5724. * Add server support for TLS v1.2 signature algorithms extension. Switch
  5725. to new signature format when needed using client digest preference.
  5726. All server ciphersuites should now work correctly in TLS v1.2. No client
  5727. support yet and no support for client certificates.
  5728. *Steve Henson*
  5729. * Initial TLS v1.2 support. Add new SHA256 digest to ssl code, switch
  5730. to SHA256 for PRF when using TLS v1.2 and later. Add new SHA256 based
  5731. ciphersuites. At present only RSA key exchange ciphersuites work with
  5732. TLS v1.2. Add new option for TLS v1.2 replacing the old and obsolete
  5733. SSL_OP_PKCS1_CHECK flags with SSL_OP_NO_TLSv1_2. New TLSv1.2 methods
  5734. and version checking.
  5735. *Steve Henson*
  5736. * New option OPENSSL_NO_SSL_INTERN. If an application can be compiled
  5737. with this defined it will not be affected by any changes to ssl internal
  5738. structures. Add several utility functions to allow openssl application
  5739. to work with OPENSSL_NO_SSL_INTERN defined.
  5740. *Steve Henson*
  5741. * A long standing patch to add support for SRP from EdelWeb (Peter
  5742. Sylvester and Christophe Renou) was integrated.
  5743. *Christophe Renou <christophe.renou@edelweb.fr>, Peter Sylvester
  5744. <peter.sylvester@edelweb.fr>, Tom Wu <tjw@cs.stanford.edu>, and
  5745. Ben Laurie*
  5746. * Add functions to copy EVP_PKEY_METHOD and retrieve flags and id.
  5747. *Steve Henson*
  5748. * Permit abbreviated handshakes when renegotiating using the function
  5749. SSL_renegotiate_abbreviated().
  5750. *Robin Seggelmann <seggelmann@fh-muenster.de>*
  5751. * Add call to ENGINE_register_all_complete() to
  5752. ENGINE_load_builtin_engines(), so some implementations get used
  5753. automatically instead of needing explicit application support.
  5754. *Steve Henson*
  5755. * Add support for TLS key exporter as described in RFC5705.
  5756. *Robin Seggelmann <seggelmann@fh-muenster.de>, Steve Henson*
  5757. * Initial TLSv1.1 support. Since TLSv1.1 is very similar to TLS v1.0 only
  5758. a few changes are required:
  5759. Add SSL_OP_NO_TLSv1_1 flag.
  5760. Add TLSv1_1 methods.
  5761. Update version checking logic to handle version 1.1.
  5762. Add explicit IV handling (ported from DTLS code).
  5763. Add command line options to s_client/s_server.
  5764. *Steve Henson*
  5765. OpenSSL 1.0.0
  5766. -------------
  5767. ### Changes between 1.0.0s and 1.0.0t [3 Dec 2015]
  5768. * X509_ATTRIBUTE memory leak
  5769. When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak
  5770. memory. This structure is used by the PKCS#7 and CMS routines so any
  5771. application which reads PKCS#7 or CMS data from untrusted sources is
  5772. affected. SSL/TLS is not affected.
  5773. This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using
  5774. libFuzzer.
  5775. ([CVE-2015-3195])
  5776. *Stephen Henson*
  5777. * Race condition handling PSK identify hint
  5778. If PSK identity hints are received by a multi-threaded client then
  5779. the values are wrongly updated in the parent SSL_CTX structure. This can
  5780. result in a race condition potentially leading to a double free of the
  5781. identify hint data.
  5782. ([CVE-2015-3196])
  5783. *Stephen Henson*
  5784. ### Changes between 1.0.0r and 1.0.0s [11 Jun 2015]
  5785. * Malformed ECParameters causes infinite loop
  5786. When processing an ECParameters structure OpenSSL enters an infinite loop
  5787. if the curve specified is over a specially malformed binary polynomial
  5788. field.
  5789. This can be used to perform denial of service against any
  5790. system which processes public keys, certificate requests or
  5791. certificates. This includes TLS clients and TLS servers with
  5792. client authentication enabled.
  5793. This issue was reported to OpenSSL by Joseph Barr-Pixton.
  5794. ([CVE-2015-1788])
  5795. *Andy Polyakov*
  5796. * Exploitable out-of-bounds read in X509_cmp_time
  5797. X509_cmp_time does not properly check the length of the ASN1_TIME
  5798. string and can read a few bytes out of bounds. In addition,
  5799. X509_cmp_time accepts an arbitrary number of fractional seconds in the
  5800. time string.
  5801. An attacker can use this to craft malformed certificates and CRLs of
  5802. various sizes and potentially cause a segmentation fault, resulting in
  5803. a DoS on applications that verify certificates or CRLs. TLS clients
  5804. that verify CRLs are affected. TLS clients and servers with client
  5805. authentication enabled may be affected if they use custom verification
  5806. callbacks.
  5807. This issue was reported to OpenSSL by Robert Swiecki (Google), and
  5808. independently by Hanno Böck.
  5809. ([CVE-2015-1789])
  5810. *Emilia Käsper*
  5811. * PKCS7 crash with missing EnvelopedContent
  5812. The PKCS#7 parsing code does not handle missing inner EncryptedContent
  5813. correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs
  5814. with missing content and trigger a NULL pointer dereference on parsing.
  5815. Applications that decrypt PKCS#7 data or otherwise parse PKCS#7
  5816. structures from untrusted sources are affected. OpenSSL clients and
  5817. servers are not affected.
  5818. This issue was reported to OpenSSL by Michal Zalewski (Google).
  5819. ([CVE-2015-1790])
  5820. *Emilia Käsper*
  5821. * CMS verify infinite loop with unknown hash function
  5822. When verifying a signedData message the CMS code can enter an infinite loop
  5823. if presented with an unknown hash function OID. This can be used to perform
  5824. denial of service against any system which verifies signedData messages using
  5825. the CMS code.
  5826. This issue was reported to OpenSSL by Johannes Bauer.
  5827. ([CVE-2015-1792])
  5828. *Stephen Henson*
  5829. * Race condition handling NewSessionTicket
  5830. If a NewSessionTicket is received by a multi-threaded client when attempting to
  5831. reuse a previous ticket then a race condition can occur potentially leading to
  5832. a double free of the ticket data.
  5833. ([CVE-2015-1791])
  5834. *Matt Caswell*
  5835. ### Changes between 1.0.0q and 1.0.0r [19 Mar 2015]
  5836. * Segmentation fault in ASN1_TYPE_cmp fix
  5837. The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is
  5838. made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check
  5839. certificate signature algorithm consistency this can be used to crash any
  5840. certificate verification operation and exploited in a DoS attack. Any
  5841. application which performs certificate verification is vulnerable including
  5842. OpenSSL clients and servers which enable client authentication.
  5843. ([CVE-2015-0286])
  5844. *Stephen Henson*
  5845. * ASN.1 structure reuse memory corruption fix
  5846. Reusing a structure in ASN.1 parsing may allow an attacker to cause
  5847. memory corruption via an invalid write. Such reuse is and has been
  5848. strongly discouraged and is believed to be rare.
  5849. Applications that parse structures containing CHOICE or ANY DEFINED BY
  5850. components may be affected. Certificate parsing (d2i_X509 and related
  5851. functions) are however not affected. OpenSSL clients and servers are
  5852. not affected.
  5853. ([CVE-2015-0287])
  5854. *Stephen Henson*
  5855. * PKCS7 NULL pointer dereferences fix
  5856. The PKCS#7 parsing code does not handle missing outer ContentInfo
  5857. correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with
  5858. missing content and trigger a NULL pointer dereference on parsing.
  5859. Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or
  5860. otherwise parse PKCS#7 structures from untrusted sources are
  5861. affected. OpenSSL clients and servers are not affected.
  5862. This issue was reported to OpenSSL by Michal Zalewski (Google).
  5863. ([CVE-2015-0289])
  5864. *Emilia Käsper*
  5865. * DoS via reachable assert in SSLv2 servers fix
  5866. A malicious client can trigger an OPENSSL_assert (i.e., an abort) in
  5867. servers that both support SSLv2 and enable export cipher suites by sending
  5868. a specially crafted SSLv2 CLIENT-MASTER-KEY message.
  5869. This issue was discovered by Sean Burford (Google) and Emilia Käsper
  5870. (OpenSSL development team).
  5871. ([CVE-2015-0293])
  5872. *Emilia Käsper*
  5873. * Use After Free following d2i_ECPrivatekey error fix
  5874. A malformed EC private key file consumed via the d2i_ECPrivateKey function
  5875. could cause a use after free condition. This, in turn, could cause a double
  5876. free in several private key parsing functions (such as d2i_PrivateKey
  5877. or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption
  5878. for applications that receive EC private keys from untrusted
  5879. sources. This scenario is considered rare.
  5880. This issue was discovered by the BoringSSL project and fixed in their
  5881. commit 517073cd4b.
  5882. ([CVE-2015-0209])
  5883. *Matt Caswell*
  5884. * X509_to_X509_REQ NULL pointer deref fix
  5885. The function X509_to_X509_REQ will crash with a NULL pointer dereference if
  5886. the certificate key is invalid. This function is rarely used in practice.
  5887. This issue was discovered by Brian Carpenter.
  5888. ([CVE-2015-0288])
  5889. *Stephen Henson*
  5890. * Removed the export ciphers from the DEFAULT ciphers
  5891. *Kurt Roeckx*
  5892. ### Changes between 1.0.0p and 1.0.0q [15 Jan 2015]
  5893. * Build fixes for the Windows and OpenVMS platforms
  5894. *Matt Caswell and Richard Levitte*
  5895. ### Changes between 1.0.0o and 1.0.0p [8 Jan 2015]
  5896. * Fix DTLS segmentation fault in dtls1_get_record. A carefully crafted DTLS
  5897. message can cause a segmentation fault in OpenSSL due to a NULL pointer
  5898. dereference. This could lead to a Denial Of Service attack. Thanks to
  5899. Markus Stenberg of Cisco Systems, Inc. for reporting this issue.
  5900. ([CVE-2014-3571])
  5901. *Steve Henson*
  5902. * Fix DTLS memory leak in dtls1_buffer_record. A memory leak can occur in the
  5903. dtls1_buffer_record function under certain conditions. In particular this
  5904. could occur if an attacker sent repeated DTLS records with the same
  5905. sequence number but for the next epoch. The memory leak could be exploited
  5906. by an attacker in a Denial of Service attack through memory exhaustion.
  5907. Thanks to Chris Mueller for reporting this issue.
  5908. ([CVE-2015-0206])
  5909. *Matt Caswell*
  5910. * Fix issue where no-ssl3 configuration sets method to NULL. When openssl is
  5911. built with the no-ssl3 option and a SSL v3 ClientHello is received the ssl
  5912. method would be set to NULL which could later result in a NULL pointer
  5913. dereference. Thanks to Frank Schmirler for reporting this issue.
  5914. ([CVE-2014-3569])
  5915. *Kurt Roeckx*
  5916. * Abort handshake if server key exchange message is omitted for ephemeral
  5917. ECDH ciphersuites.
  5918. Thanks to Karthikeyan Bhargavan of the PROSECCO team at INRIA for
  5919. reporting this issue.
  5920. ([CVE-2014-3572])
  5921. *Steve Henson*
  5922. * Remove non-export ephemeral RSA code on client and server. This code
  5923. violated the TLS standard by allowing the use of temporary RSA keys in
  5924. non-export ciphersuites and could be used by a server to effectively
  5925. downgrade the RSA key length used to a value smaller than the server
  5926. certificate. Thanks for Karthikeyan Bhargavan of the PROSECCO team at
  5927. INRIA or reporting this issue.
  5928. ([CVE-2015-0204])
  5929. *Steve Henson*
  5930. * Fixed issue where DH client certificates are accepted without verification.
  5931. An OpenSSL server will accept a DH certificate for client authentication
  5932. without the certificate verify message. This effectively allows a client to
  5933. authenticate without the use of a private key. This only affects servers
  5934. which trust a client certificate authority which issues certificates
  5935. containing DH keys: these are extremely rare and hardly ever encountered.
  5936. Thanks for Karthikeyan Bhargavan of the PROSECCO team at INRIA or reporting
  5937. this issue.
  5938. ([CVE-2015-0205])
  5939. *Steve Henson*
  5940. * Correct Bignum squaring. Bignum squaring (BN_sqr) may produce incorrect
  5941. results on some platforms, including x86_64. This bug occurs at random
  5942. with a very low probability, and is not known to be exploitable in any
  5943. way, though its exact impact is difficult to determine. Thanks to Pieter
  5944. Wuille (Blockstream) who reported this issue and also suggested an initial
  5945. fix. Further analysis was conducted by the OpenSSL development team and
  5946. Adam Langley of Google. The final fix was developed by Andy Polyakov of
  5947. the OpenSSL core team.
  5948. ([CVE-2014-3570])
  5949. *Andy Polyakov*
  5950. * Fix various certificate fingerprint issues.
  5951. By using non-DER or invalid encodings outside the signed portion of a
  5952. certificate the fingerprint can be changed without breaking the signature.
  5953. Although no details of the signed portion of the certificate can be changed
  5954. this can cause problems with some applications: e.g. those using the
  5955. certificate fingerprint for blacklists.
  5956. 1. Reject signatures with non zero unused bits.
  5957. If the BIT STRING containing the signature has non zero unused bits reject
  5958. the signature. All current signature algorithms require zero unused bits.
  5959. 2. Check certificate algorithm consistency.
  5960. Check the AlgorithmIdentifier inside TBS matches the one in the
  5961. certificate signature. NB: this will result in signature failure
  5962. errors for some broken certificates.
  5963. Thanks to Konrad Kraszewski from Google for reporting this issue.
  5964. 3. Check DSA/ECDSA signatures use DER.
  5965. Reencode DSA/ECDSA signatures and compare with the original received
  5966. signature. Return an error if there is a mismatch.
  5967. This will reject various cases including garbage after signature
  5968. (thanks to Antti Karjalainen and Tuomo Untinen from the Codenomicon CROSS
  5969. program for discovering this case) and use of BER or invalid ASN.1 INTEGERs
  5970. (negative or with leading zeroes).
  5971. Further analysis was conducted and fixes were developed by Stephen Henson
  5972. of the OpenSSL core team.
  5973. ([CVE-2014-8275])
  5974. *Steve Henson*
  5975. ### Changes between 1.0.0n and 1.0.0o [15 Oct 2014]
  5976. * Session Ticket Memory Leak.
  5977. When an OpenSSL SSL/TLS/DTLS server receives a session ticket the
  5978. integrity of that ticket is first verified. In the event of a session
  5979. ticket integrity check failing, OpenSSL will fail to free memory
  5980. causing a memory leak. By sending a large number of invalid session
  5981. tickets an attacker could exploit this issue in a Denial Of Service
  5982. attack.
  5983. ([CVE-2014-3567])
  5984. *Steve Henson*
  5985. * Build option no-ssl3 is incomplete.
  5986. When OpenSSL is configured with "no-ssl3" as a build option, servers
  5987. could accept and complete an SSL 3.0 handshake, and clients could be
  5988. configured to send them.
  5989. ([CVE-2014-3568])
  5990. *Akamai and the OpenSSL team*
  5991. * Add support for TLS_FALLBACK_SCSV.
  5992. Client applications doing fallback retries should call
  5993. SSL_set_mode(s, SSL_MODE_SEND_FALLBACK_SCSV).
  5994. ([CVE-2014-3566])
  5995. *Adam Langley, Bodo Moeller*
  5996. * Add additional DigestInfo checks.
  5997. Reencode DigestInto in DER and check against the original when
  5998. verifying RSA signature: this will reject any improperly encoded
  5999. DigestInfo structures.
  6000. Note: this is a precautionary measure and no attacks are currently known.
  6001. *Steve Henson*
  6002. ### Changes between 1.0.0m and 1.0.0n [6 Aug 2014]
  6003. * OpenSSL DTLS clients enabling anonymous (EC)DH ciphersuites are subject
  6004. to a denial of service attack. A malicious server can crash the client
  6005. with a null pointer dereference (read) by specifying an anonymous (EC)DH
  6006. ciphersuite and sending carefully crafted handshake messages.
  6007. Thanks to Felix Gröbert (Google) for discovering and researching this
  6008. issue.
  6009. ([CVE-2014-3510])
  6010. *Emilia Käsper*
  6011. * By sending carefully crafted DTLS packets an attacker could cause openssl
  6012. to leak memory. This can be exploited through a Denial of Service attack.
  6013. Thanks to Adam Langley for discovering and researching this issue.
  6014. ([CVE-2014-3507])
  6015. *Adam Langley*
  6016. * An attacker can force openssl to consume large amounts of memory whilst
  6017. processing DTLS handshake messages. This can be exploited through a
  6018. Denial of Service attack.
  6019. Thanks to Adam Langley for discovering and researching this issue.
  6020. ([CVE-2014-3506])
  6021. *Adam Langley*
  6022. * An attacker can force an error condition which causes openssl to crash
  6023. whilst processing DTLS packets due to memory being freed twice. This
  6024. can be exploited through a Denial of Service attack.
  6025. Thanks to Adam Langley and Wan-Teh Chang for discovering and researching
  6026. this issue.
  6027. ([CVE-2014-3505])
  6028. *Adam Langley*
  6029. * If a multithreaded client connects to a malicious server using a resumed
  6030. session and the server sends an ec point format extension it could write
  6031. up to 255 bytes to freed memory.
  6032. Thanks to Gabor Tyukasz (LogMeIn Inc) for discovering and researching this
  6033. issue.
  6034. ([CVE-2014-3509])
  6035. *Gabor Tyukasz*
  6036. * A flaw in OBJ_obj2txt may cause pretty printing functions such as
  6037. X509_name_oneline, X509_name_print_ex et al. to leak some information
  6038. from the stack. Applications may be affected if they echo pretty printing
  6039. output to the attacker.
  6040. Thanks to Ivan Fratric (Google) for discovering this issue.
  6041. ([CVE-2014-3508])
  6042. *Emilia Käsper, and Steve Henson*
  6043. * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.)
  6044. for corner cases. (Certain input points at infinity could lead to
  6045. bogus results, with non-infinity inputs mapped to infinity too.)
  6046. *Bodo Moeller*
  6047. ### Changes between 1.0.0l and 1.0.0m [5 Jun 2014]
  6048. * Fix for SSL/TLS MITM flaw. An attacker using a carefully crafted
  6049. handshake can force the use of weak keying material in OpenSSL
  6050. SSL/TLS clients and servers.
  6051. Thanks to KIKUCHI Masashi (Lepidum Co. Ltd.) for discovering and
  6052. researching this issue. ([CVE-2014-0224])
  6053. *KIKUCHI Masashi, Steve Henson*
  6054. * Fix DTLS recursion flaw. By sending an invalid DTLS handshake to an
  6055. OpenSSL DTLS client the code can be made to recurse eventually crashing
  6056. in a DoS attack.
  6057. Thanks to Imre Rad (Search-Lab Ltd.) for discovering this issue.
  6058. ([CVE-2014-0221])
  6059. *Imre Rad, Steve Henson*
  6060. * Fix DTLS invalid fragment vulnerability. A buffer overrun attack can
  6061. be triggered by sending invalid DTLS fragments to an OpenSSL DTLS
  6062. client or server. This is potentially exploitable to run arbitrary
  6063. code on a vulnerable client or server.
  6064. Thanks to Jüri Aedla for reporting this issue. ([CVE-2014-0195])
  6065. *Jüri Aedla, Steve Henson*
  6066. * Fix bug in TLS code where clients enable anonymous ECDH ciphersuites
  6067. are subject to a denial of service attack.
  6068. Thanks to Felix Gröbert and Ivan Fratric at Google for discovering
  6069. this issue. ([CVE-2014-3470])
  6070. *Felix Gröbert, Ivan Fratric, Steve Henson*
  6071. * Harmonize version and its documentation. -f flag is used to display
  6072. compilation flags.
  6073. *mancha <mancha1@zoho.com>*
  6074. * Fix eckey_priv_encode so it immediately returns an error upon a failure
  6075. in i2d_ECPrivateKey.
  6076. *mancha <mancha1@zoho.com>*
  6077. * Fix some double frees. These are not thought to be exploitable.
  6078. *mancha <mancha1@zoho.com>*
  6079. * Fix for the attack described in the paper "Recovering OpenSSL
  6080. ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack"
  6081. by Yuval Yarom and Naomi Benger. Details can be obtained from:
  6082. <http://eprint.iacr.org/2014/140>
  6083. Thanks to Yuval Yarom and Naomi Benger for discovering this
  6084. flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076])
  6085. *Yuval Yarom and Naomi Benger*
  6086. ### Changes between 1.0.0k and 1.0.0l [6 Jan 2014]
  6087. * Keep original DTLS digest and encryption contexts in retransmission
  6088. structures so we can use the previous session parameters if they need
  6089. to be resent. ([CVE-2013-6450])
  6090. *Steve Henson*
  6091. * Add option SSL_OP_SAFARI_ECDHE_ECDSA_BUG (part of SSL_OP_ALL) which
  6092. avoids preferring ECDHE-ECDSA ciphers when the client appears to be
  6093. Safari on OS X. Safari on OS X 10.8..10.8.3 advertises support for
  6094. several ECDHE-ECDSA ciphers, but fails to negotiate them. The bug
  6095. is fixed in OS X 10.8.4, but Apple have ruled out both hot fixing
  6096. 10.8..10.8.3 and forcing users to upgrade to 10.8.4 or newer.
  6097. *Rob Stradling, Adam Langley*
  6098. ### Changes between 1.0.0j and 1.0.0k [5 Feb 2013]
  6099. * Make the decoding of SSLv3, TLS and DTLS CBC records constant time.
  6100. This addresses the flaw in CBC record processing discovered by
  6101. Nadhem Alfardan and Kenny Paterson. Details of this attack can be found
  6102. at: <http://www.isg.rhul.ac.uk/tls/>
  6103. Thanks go to Nadhem Alfardan and Kenny Paterson of the Information
  6104. Security Group at Royal Holloway, University of London
  6105. (www.isg.rhul.ac.uk) for discovering this flaw and Adam Langley and
  6106. Emilia Käsper for the initial patch.
  6107. ([CVE-2013-0169])
  6108. *Emilia Käsper, Adam Langley, Ben Laurie, Andy Polyakov, Steve Henson*
  6109. * Return an error when checking OCSP signatures when key is NULL.
  6110. This fixes a DoS attack. ([CVE-2013-0166])
  6111. *Steve Henson*
  6112. * Call OCSP Stapling callback after ciphersuite has been chosen, so
  6113. the right response is stapled. Also change SSL_get_certificate()
  6114. so it returns the certificate actually sent.
  6115. See <http://rt.openssl.org/Ticket/Display.html?id=2836>.
  6116. (This is a backport)
  6117. *Rob Stradling <rob.stradling@comodo.com>*
  6118. * Fix possible deadlock when decoding public keys.
  6119. *Steve Henson*
  6120. ### Changes between 1.0.0i and 1.0.0j [10 May 2012]
  6121. [NB: OpenSSL 1.0.0i and later 1.0.0 patch levels were released after
  6122. OpenSSL 1.0.1.]
  6123. * Sanity check record length before skipping explicit IV in DTLS
  6124. to fix DoS attack.
  6125. Thanks to Codenomicon for discovering this issue using Fuzz-o-Matic
  6126. fuzzing as a service testing platform.
  6127. ([CVE-2012-2333])
  6128. *Steve Henson*
  6129. * Initialise tkeylen properly when encrypting CMS messages.
  6130. Thanks to Solar Designer of Openwall for reporting this issue.
  6131. *Steve Henson*
  6132. ### Changes between 1.0.0h and 1.0.0i [19 Apr 2012]
  6133. * Check for potentially exploitable overflows in asn1_d2i_read_bio
  6134. BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer
  6135. in CRYPTO_realloc_clean.
  6136. Thanks to Tavis Ormandy, Google Security Team, for discovering this
  6137. issue and to Adam Langley <agl@chromium.org> for fixing it.
  6138. ([CVE-2012-2110])
  6139. *Adam Langley (Google), Tavis Ormandy, Google Security Team*
  6140. ### Changes between 1.0.0g and 1.0.0h [12 Mar 2012]
  6141. * Fix MMA (Bleichenbacher's attack on PKCS #1 v1.5 RSA padding) weakness
  6142. in CMS and PKCS7 code. When RSA decryption fails use a random key for
  6143. content decryption and always return the same error. Note: this attack
  6144. needs on average 2^20 messages so it only affects automated senders. The
  6145. old behaviour can be re-enabled in the CMS code by setting the
  6146. CMS_DEBUG_DECRYPT flag: this is useful for debugging and testing where
  6147. an MMA defence is not necessary.
  6148. Thanks to Ivan Nestlerode <inestlerode@us.ibm.com> for discovering
  6149. this issue. ([CVE-2012-0884])
  6150. *Steve Henson*
  6151. * Fix CVE-2011-4619: make sure we really are receiving a
  6152. client hello before rejecting multiple SGC restarts. Thanks to
  6153. Ivan Nestlerode <inestlerode@us.ibm.com> for discovering this bug.
  6154. *Steve Henson*
  6155. ### Changes between 1.0.0f and 1.0.0g [18 Jan 2012]
  6156. * Fix for DTLS DoS issue introduced by fix for CVE-2011-4109.
  6157. Thanks to Antonio Martin, Enterprise Secure Access Research and
  6158. Development, Cisco Systems, Inc. for discovering this bug and
  6159. preparing a fix. ([CVE-2012-0050])
  6160. *Antonio Martin*
  6161. ### Changes between 1.0.0e and 1.0.0f [4 Jan 2012]
  6162. * Nadhem Alfardan and Kenny Paterson have discovered an extension
  6163. of the Vaudenay padding oracle attack on CBC mode encryption
  6164. which enables an efficient plaintext recovery attack against
  6165. the OpenSSL implementation of DTLS. Their attack exploits timing
  6166. differences arising during decryption processing. A research
  6167. paper describing this attack can be found at:
  6168. <http://www.isg.rhul.ac.uk/~kp/dtls.pdf>
  6169. Thanks go to Nadhem Alfardan and Kenny Paterson of the Information
  6170. Security Group at Royal Holloway, University of London
  6171. (www.isg.rhul.ac.uk) for discovering this flaw and to Robin Seggelmann
  6172. <seggelmann@fh-muenster.de> and Michael Tuexen <tuexen@fh-muenster.de>
  6173. for preparing the fix. ([CVE-2011-4108])
  6174. *Robin Seggelmann, Michael Tuexen*
  6175. * Clear bytes used for block padding of SSL 3.0 records.
  6176. ([CVE-2011-4576])
  6177. *Adam Langley (Google)*
  6178. * Only allow one SGC handshake restart for SSL/TLS. Thanks to George
  6179. Kadianakis <desnacked@gmail.com> for discovering this issue and
  6180. Adam Langley for preparing the fix. ([CVE-2011-4619])
  6181. *Adam Langley (Google)*
  6182. * Check parameters are not NULL in GOST ENGINE. ([CVE-2012-0027])
  6183. *Andrey Kulikov <amdeich@gmail.com>*
  6184. * Prevent malformed RFC3779 data triggering an assertion failure.
  6185. Thanks to Andrew Chi, BBN Technologies, for discovering the flaw
  6186. and Rob Austein <sra@hactrn.net> for fixing it. ([CVE-2011-4577])
  6187. *Rob Austein <sra@hactrn.net>*
  6188. * Improved PRNG seeding for VOS.
  6189. *Paul Green <Paul.Green@stratus.com>*
  6190. * Fix ssl_ciph.c set-up race.
  6191. *Adam Langley (Google)*
  6192. * Fix spurious failures in ecdsatest.c.
  6193. *Emilia Käsper (Google)*
  6194. * Fix the BIO_f_buffer() implementation (which was mixing different
  6195. interpretations of the `..._len` fields).
  6196. *Adam Langley (Google)*
  6197. * Fix handling of BN_BLINDING: now BN_BLINDING_invert_ex (rather than
  6198. BN_BLINDING_invert_ex) calls BN_BLINDING_update, ensuring that concurrent
  6199. threads won't reuse the same blinding coefficients.
  6200. This also avoids the need to obtain the CRYPTO_LOCK_RSA_BLINDING
  6201. lock to call BN_BLINDING_invert_ex, and avoids one use of
  6202. BN_BLINDING_update for each BN_BLINDING structure (previously,
  6203. the last update always remained unused).
  6204. *Emilia Käsper (Google)*
  6205. * In ssl3_clear, preserve s3->init_extra along with s3->rbuf.
  6206. *Bob Buckholz (Google)*
  6207. ### Changes between 1.0.0d and 1.0.0e [6 Sep 2011]
  6208. * Fix bug where CRLs with nextUpdate in the past are sometimes accepted
  6209. by initialising X509_STORE_CTX properly. ([CVE-2011-3207])
  6210. *Kaspar Brand <ossl@velox.ch>*
  6211. * Fix SSL memory handling for (EC)DH ciphersuites, in particular
  6212. for multi-threaded use of ECDH. ([CVE-2011-3210])
  6213. *Adam Langley (Google)*
  6214. * Fix x509_name_ex_d2i memory leak on bad inputs.
  6215. *Bodo Moeller*
  6216. * Remove hard coded ecdsaWithSHA1 signature tests in ssl code and check
  6217. signature public key algorithm by using OID xref utilities instead.
  6218. Before this you could only use some ECC ciphersuites with SHA1 only.
  6219. *Steve Henson*
  6220. * Add protection against ECDSA timing attacks as mentioned in the paper
  6221. by Billy Bob Brumley and Nicola Tuveri, see:
  6222. <http://eprint.iacr.org/2011/232.pdf>
  6223. *Billy Bob Brumley and Nicola Tuveri*
  6224. ### Changes between 1.0.0c and 1.0.0d [8 Feb 2011]
  6225. * Fix parsing of OCSP stapling ClientHello extension. CVE-2011-0014
  6226. *Neel Mehta, Adam Langley, Bodo Moeller (Google)*
  6227. * Fix bug in string printing code: if *any* escaping is enabled we must
  6228. escape the escape character (backslash) or the resulting string is
  6229. ambiguous.
  6230. *Steve Henson*
  6231. ### Changes between 1.0.0b and 1.0.0c [2 Dec 2010]
  6232. * Disable code workaround for ancient and obsolete Netscape browsers
  6233. and servers: an attacker can use it in a ciphersuite downgrade attack.
  6234. Thanks to Martin Rex for discovering this bug. CVE-2010-4180
  6235. *Steve Henson*
  6236. * Fixed J-PAKE implementation error, originally discovered by
  6237. Sebastien Martini, further info and confirmation from Stefan
  6238. Arentz and Feng Hao. Note that this fix is a security fix. CVE-2010-4252
  6239. *Ben Laurie*
  6240. ### Changes between 1.0.0a and 1.0.0b [16 Nov 2010]
  6241. * Fix extension code to avoid race conditions which can result in a buffer
  6242. overrun vulnerability: resumed sessions must not be modified as they can
  6243. be shared by multiple threads. CVE-2010-3864
  6244. *Steve Henson*
  6245. * Fix WIN32 build system to correctly link an ENGINE directory into
  6246. a DLL.
  6247. *Steve Henson*
  6248. ### Changes between 1.0.0 and 1.0.0a [01 Jun 2010]
  6249. * Check return value of int_rsa_verify in pkey_rsa_verifyrecover
  6250. ([CVE-2010-1633])
  6251. *Steve Henson, Peter-Michael Hager <hager@dortmund.net>*
  6252. ### Changes between 0.9.8n and 1.0.0 [29 Mar 2010]
  6253. * Add "missing" function EVP_CIPHER_CTX_copy(). This copies a cipher
  6254. context. The operation can be customised via the ctrl mechanism in
  6255. case ENGINEs want to include additional functionality.
  6256. *Steve Henson*
  6257. * Tolerate yet another broken PKCS#8 key format: private key value negative.
  6258. *Steve Henson*
  6259. * Add new -subject_hash_old and -issuer_hash_old options to x509 utility to
  6260. output hashes compatible with older versions of OpenSSL.
  6261. *Willy Weisz <weisz@vcpc.univie.ac.at>*
  6262. * Fix compression algorithm handling: if resuming a session use the
  6263. compression algorithm of the resumed session instead of determining
  6264. it from client hello again. Don't allow server to change algorithm.
  6265. *Steve Henson*
  6266. * Add load_crls() function to commands tidying load_certs() too. Add option
  6267. to verify utility to allow additional CRLs to be included.
  6268. *Steve Henson*
  6269. * Update OCSP request code to permit adding custom headers to the request:
  6270. some responders need this.
  6271. *Steve Henson*
  6272. * The function EVP_PKEY_sign() returns <=0 on error: check return code
  6273. correctly.
  6274. *Julia Lawall <julia@diku.dk>*
  6275. * Update verify callback code in `apps/s_cb.c` and `apps/verify.c`, it
  6276. needlessly dereferenced structures, used obsolete functions and
  6277. didn't handle all updated verify codes correctly.
  6278. *Steve Henson*
  6279. * Disable MD2 in the default configuration.
  6280. *Steve Henson*
  6281. * In BIO_pop() and BIO_push() use the ctrl argument (which was NULL) to
  6282. indicate the initial BIO being pushed or popped. This makes it possible
  6283. to determine whether the BIO is the one explicitly called or as a result
  6284. of the ctrl being passed down the chain. Fix BIO_pop() and SSL BIOs so
  6285. it handles reference counts correctly and doesn't zero out the I/O bio
  6286. when it is not being explicitly popped. WARNING: applications which
  6287. included workarounds for the old buggy behaviour will need to be modified
  6288. or they could free up already freed BIOs.
  6289. *Steve Henson*
  6290. * Extend the uni2asc/asc2uni => OPENSSL_uni2asc/OPENSSL_asc2uni
  6291. renaming to all platforms (within the 0.9.8 branch, this was
  6292. done conditionally on Netware platforms to avoid a name clash).
  6293. *Guenter <lists@gknw.net>*
  6294. * Add ECDHE and PSK support to DTLS.
  6295. *Michael Tuexen <tuexen@fh-muenster.de>*
  6296. * Add CHECKED_STACK_OF macro to safestack.h, otherwise safestack can't
  6297. be used on C++.
  6298. *Steve Henson*
  6299. * Add "missing" function EVP_MD_flags() (without this the only way to
  6300. retrieve a digest flags is by accessing the structure directly. Update
  6301. `EVP_MD_do_all*()` and `EVP_CIPHER_do_all*()` to include the name a digest
  6302. or cipher is registered as in the "from" argument. Print out all
  6303. registered digests in the dgst usage message instead of manually
  6304. attempting to work them out.
  6305. *Steve Henson*
  6306. * If no SSLv2 ciphers are used don't use an SSLv2 compatible client hello:
  6307. this allows the use of compression and extensions. Change default cipher
  6308. string to remove SSLv2 ciphersuites. This effectively avoids ancient SSLv2
  6309. by default unless an application cipher string requests it.
  6310. *Steve Henson*
  6311. * Alter match criteria in PKCS12_parse(). It used to try to use local
  6312. key ids to find matching certificates and keys but some PKCS#12 files
  6313. don't follow the (somewhat unwritten) rules and this strategy fails.
  6314. Now just gather all certificates together and the first private key
  6315. then look for the first certificate that matches the key.
  6316. *Steve Henson*
  6317. * Support use of registered digest and cipher names for dgst and cipher
  6318. commands instead of having to add each one as a special case. So now
  6319. you can do:
  6320. openssl sha256 foo
  6321. as well as:
  6322. openssl dgst -sha256 foo
  6323. and this works for ENGINE based algorithms too.
  6324. *Steve Henson*
  6325. * Update Gost ENGINE to support parameter files.
  6326. *Victor B. Wagner <vitus@cryptocom.ru>*
  6327. * Support GeneralizedTime in ca utility.
  6328. *Oliver Martin <oliver@volatilevoid.net>, Steve Henson*
  6329. * Enhance the hash format used for certificate directory links. The new
  6330. form uses the canonical encoding (meaning equivalent names will work
  6331. even if they aren't identical) and uses SHA1 instead of MD5. This form
  6332. is incompatible with the older format and as a result c_rehash should
  6333. be used to rebuild symbolic links.
  6334. *Steve Henson*
  6335. * Make PKCS#8 the default write format for private keys, replacing the
  6336. traditional format. This form is standardised, more secure and doesn't
  6337. include an implicit MD5 dependency.
  6338. *Steve Henson*
  6339. * Add a $gcc_devteam_warn option to Configure. The idea is that any code
  6340. committed to OpenSSL should pass this lot as a minimum.
  6341. *Steve Henson*
  6342. * Add session ticket override functionality for use by EAP-FAST.
  6343. *Jouni Malinen <j@w1.fi>*
  6344. * Modify HMAC functions to return a value. Since these can be implemented
  6345. in an ENGINE errors can occur.
  6346. *Steve Henson*
  6347. * Type-checked OBJ_bsearch_ex.
  6348. *Ben Laurie*
  6349. * Type-checked OBJ_bsearch. Also some constification necessitated
  6350. by type-checking. Still to come: TXT_DB, bsearch(?),
  6351. OBJ_bsearch_ex, qsort, CRYPTO_EX_DATA, ASN1_VALUE, ASN1_STRING,
  6352. CONF_VALUE.
  6353. *Ben Laurie*
  6354. * New function OPENSSL_gmtime_adj() to add a specific number of days and
  6355. seconds to a tm structure directly, instead of going through OS
  6356. specific date routines. This avoids any issues with OS routines such
  6357. as the year 2038 bug. New `*_adj()` functions for ASN1 time structures
  6358. and X509_time_adj_ex() to cover the extended range. The existing
  6359. X509_time_adj() is still usable and will no longer have any date issues.
  6360. *Steve Henson*
  6361. * Delta CRL support. New use deltas option which will attempt to locate
  6362. and search any appropriate delta CRLs available.
  6363. This work was sponsored by Google.
  6364. *Steve Henson*
  6365. * Support for CRLs partitioned by reason code. Reorganise CRL processing
  6366. code and add additional score elements. Validate alternate CRL paths
  6367. as part of the CRL checking and indicate a new error "CRL path validation
  6368. error" in this case. Applications wanting additional details can use
  6369. the verify callback and check the new "parent" field. If this is not
  6370. NULL CRL path validation is taking place. Existing applications won't
  6371. see this because it requires extended CRL support which is off by
  6372. default.
  6373. This work was sponsored by Google.
  6374. *Steve Henson*
  6375. * Support for freshest CRL extension.
  6376. This work was sponsored by Google.
  6377. *Steve Henson*
  6378. * Initial indirect CRL support. Currently only supported in the CRLs
  6379. passed directly and not via lookup. Process certificate issuer
  6380. CRL entry extension and lookup CRL entries by bother issuer name
  6381. and serial number. Check and process CRL issuer entry in IDP extension.
  6382. This work was sponsored by Google.
  6383. *Steve Henson*
  6384. * Add support for distinct certificate and CRL paths. The CRL issuer
  6385. certificate is validated separately in this case. Only enabled if
  6386. an extended CRL support flag is set: this flag will enable additional
  6387. CRL functionality in future.
  6388. This work was sponsored by Google.
  6389. *Steve Henson*
  6390. * Add support for policy mappings extension.
  6391. This work was sponsored by Google.
  6392. *Steve Henson*
  6393. * Fixes to pathlength constraint, self issued certificate handling,
  6394. policy processing to align with RFC3280 and PKITS tests.
  6395. This work was sponsored by Google.
  6396. *Steve Henson*
  6397. * Support for name constraints certificate extension. DN, email, DNS
  6398. and URI types are currently supported.
  6399. This work was sponsored by Google.
  6400. *Steve Henson*
  6401. * To cater for systems that provide a pointer-based thread ID rather
  6402. than numeric, deprecate the current numeric thread ID mechanism and
  6403. replace it with a structure and associated callback type. This
  6404. mechanism allows a numeric "hash" to be extracted from a thread ID in
  6405. either case, and on platforms where pointers are larger than 'long',
  6406. mixing is done to help ensure the numeric 'hash' is usable even if it
  6407. can't be guaranteed unique. The default mechanism is to use "&errno"
  6408. as a pointer-based thread ID to distinguish between threads.
  6409. Applications that want to provide their own thread IDs should now use
  6410. CRYPTO_THREADID_set_callback() to register a callback that will call
  6411. either CRYPTO_THREADID_set_numeric() or CRYPTO_THREADID_set_pointer().
  6412. Note that ERR_remove_state() is now deprecated, because it is tied
  6413. to the assumption that thread IDs are numeric. ERR_remove_state(0)
  6414. to free the current thread's error state should be replaced by
  6415. ERR_remove_thread_state(NULL).
  6416. (This new approach replaces the functions CRYPTO_set_idptr_callback(),
  6417. CRYPTO_get_idptr_callback(), and CRYPTO_thread_idptr() that existed in
  6418. OpenSSL 0.9.9-dev between June 2006 and August 2008. Also, if an
  6419. application was previously providing a numeric thread callback that
  6420. was inappropriate for distinguishing threads, then uniqueness might
  6421. have been obtained with &errno that happened immediately in the
  6422. intermediate development versions of OpenSSL; this is no longer the
  6423. case, the numeric thread callback will now override the automatic use
  6424. of &errno.)
  6425. *Geoff Thorpe, with help from Bodo Moeller*
  6426. * Initial support for different CRL issuing certificates. This covers a
  6427. simple case where the self issued certificates in the chain exist and
  6428. the real CRL issuer is higher in the existing chain.
  6429. This work was sponsored by Google.
  6430. *Steve Henson*
  6431. * Removed effectively defunct crypto/store from the build.
  6432. *Ben Laurie*
  6433. * Revamp of STACK to provide stronger type-checking. Still to come:
  6434. TXT_DB, bsearch(?), OBJ_bsearch, qsort, CRYPTO_EX_DATA, ASN1_VALUE,
  6435. ASN1_STRING, CONF_VALUE.
  6436. *Ben Laurie*
  6437. * Add a new SSL_MODE_RELEASE_BUFFERS mode flag to release unused buffer
  6438. RAM on SSL connections. This option can save about 34k per idle SSL.
  6439. *Nick Mathewson*
  6440. * Revamp of LHASH to provide stronger type-checking. Still to come:
  6441. STACK, TXT_DB, bsearch, qsort.
  6442. *Ben Laurie*
  6443. * Initial support for Cryptographic Message Syntax (aka CMS) based
  6444. on RFC3850, RFC3851 and RFC3852. New cms directory and cms utility,
  6445. support for data, signedData, compressedData, digestedData and
  6446. encryptedData, envelopedData types included. Scripts to check against
  6447. RFC4134 examples draft and interop and consistency checks of many
  6448. content types and variants.
  6449. *Steve Henson*
  6450. * Add options to enc utility to support use of zlib compression BIO.
  6451. *Steve Henson*
  6452. * Extend mk1mf to support importing of options and assembly language
  6453. files from Configure script, currently only included in VC-WIN32.
  6454. The assembly language rules can now optionally generate the source
  6455. files from the associated perl scripts.
  6456. *Steve Henson*
  6457. * Implement remaining functionality needed to support GOST ciphersuites.
  6458. Interop testing has been performed using CryptoPro implementations.
  6459. *Victor B. Wagner <vitus@cryptocom.ru>*
  6460. * s390x assembler pack.
  6461. *Andy Polyakov*
  6462. * ARMv4 assembler pack. ARMv4 refers to v4 and later ISA, not CPU
  6463. "family."
  6464. *Andy Polyakov*
  6465. * Implement Opaque PRF Input TLS extension as specified in
  6466. draft-rescorla-tls-opaque-prf-input-00.txt. Since this is not an
  6467. official specification yet and no extension type assignment by
  6468. IANA exists, this extension (for now) will have to be explicitly
  6469. enabled when building OpenSSL by providing the extension number
  6470. to use. For example, specify an option
  6471. -DTLSEXT_TYPE_opaque_prf_input=0x9527
  6472. to the "config" or "Configure" script to enable the extension,
  6473. assuming extension number 0x9527 (which is a completely arbitrary
  6474. and unofficial assignment based on the MD5 hash of the Internet
  6475. Draft). Note that by doing so, you potentially lose
  6476. interoperability with other TLS implementations since these might
  6477. be using the same extension number for other purposes.
  6478. SSL_set_tlsext_opaque_prf_input(ssl, src, len) is used to set the
  6479. opaque PRF input value to use in the handshake. This will create
  6480. an internal copy of the length-'len' string at 'src', and will
  6481. return non-zero for success.
  6482. To get more control and flexibility, provide a callback function
  6483. by using
  6484. SSL_CTX_set_tlsext_opaque_prf_input_callback(ctx, cb)
  6485. SSL_CTX_set_tlsext_opaque_prf_input_callback_arg(ctx, arg)
  6486. where
  6487. int (*cb)(SSL *, void *peerinput, size_t len, void *arg);
  6488. void *arg;
  6489. Callback function 'cb' will be called in handshakes, and is
  6490. expected to use SSL_set_tlsext_opaque_prf_input() as appropriate.
  6491. Argument 'arg' is for application purposes (the value as given to
  6492. SSL_CTX_set_tlsext_opaque_prf_input_callback_arg() will directly
  6493. be provided to the callback function). The callback function
  6494. has to return non-zero to report success: usually 1 to use opaque
  6495. PRF input just if possible, or 2 to enforce use of the opaque PRF
  6496. input. In the latter case, the library will abort the handshake
  6497. if opaque PRF input is not successfully negotiated.
  6498. Arguments 'peerinput' and 'len' given to the callback function
  6499. will always be NULL and 0 in the case of a client. A server will
  6500. see the client's opaque PRF input through these variables if
  6501. available (NULL and 0 otherwise). Note that if the server
  6502. provides an opaque PRF input, the length must be the same as the
  6503. length of the client's opaque PRF input.
  6504. Note that the callback function will only be called when creating
  6505. a new session (session resumption can resume whatever was
  6506. previously negotiated), and will not be called in SSL 2.0
  6507. handshakes; thus, SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2) or
  6508. SSL_set_options(ssl, SSL_OP_NO_SSLv2) is especially recommended
  6509. for applications that need to enforce opaque PRF input.
  6510. *Bodo Moeller*
  6511. * Update ssl code to support digests other than SHA1+MD5 for handshake
  6512. MAC.
  6513. *Victor B. Wagner <vitus@cryptocom.ru>*
  6514. * Add RFC4507 support to OpenSSL. This includes the corrections in
  6515. RFC4507bis. The encrypted ticket format is an encrypted encoded
  6516. SSL_SESSION structure, that way new session features are automatically
  6517. supported.
  6518. If a client application caches session in an SSL_SESSION structure
  6519. support is transparent because tickets are now stored in the encoded
  6520. SSL_SESSION.
  6521. The SSL_CTX structure automatically generates keys for ticket
  6522. protection in servers so again support should be possible
  6523. with no application modification.
  6524. If a client or server wishes to disable RFC4507 support then the option
  6525. SSL_OP_NO_TICKET can be set.
  6526. Add a TLS extension debugging callback to allow the contents of any client
  6527. or server extensions to be examined.
  6528. This work was sponsored by Google.
  6529. *Steve Henson*
  6530. * Final changes to avoid use of pointer pointer casts in OpenSSL.
  6531. OpenSSL should now compile cleanly on gcc 4.2
  6532. *Peter Hartley <pdh@utter.chaos.org.uk>, Steve Henson*
  6533. * Update SSL library to use new EVP_PKEY MAC API. Include generic MAC
  6534. support including streaming MAC support: this is required for GOST
  6535. ciphersuite support.
  6536. *Victor B. Wagner <vitus@cryptocom.ru>, Steve Henson*
  6537. * Add option -stream to use PKCS#7 streaming in smime utility. New
  6538. function i2d_PKCS7_bio_stream() and PEM_write_PKCS7_bio_stream()
  6539. to output in BER and PEM format.
  6540. *Steve Henson*
  6541. * Experimental support for use of HMAC via EVP_PKEY interface. This
  6542. allows HMAC to be handled via the `EVP_DigestSign*()` interface. The
  6543. EVP_PKEY "key" in this case is the HMAC key, potentially allowing
  6544. ENGINE support for HMAC keys which are unextractable. New -mac and
  6545. -macopt options to dgst utility.
  6546. *Steve Henson*
  6547. * New option -sigopt to dgst utility. Update dgst to use
  6548. `EVP_Digest{Sign,Verify}*`. These two changes make it possible to use
  6549. alternative signing parameters such as X9.31 or PSS in the dgst
  6550. utility.
  6551. *Steve Henson*
  6552. * Change ssl_cipher_apply_rule(), the internal function that does
  6553. the work each time a ciphersuite string requests enabling
  6554. ("foo+bar"), moving ("+foo+bar"), disabling ("-foo+bar", or
  6555. removing ("!foo+bar") a class of ciphersuites: Now it maintains
  6556. the order of disabled ciphersuites such that those ciphersuites
  6557. that most recently went from enabled to disabled not only stay
  6558. in order with respect to each other, but also have higher priority
  6559. than other disabled ciphersuites the next time ciphersuites are
  6560. enabled again.
  6561. This means that you can now say, e.g., "PSK:-PSK:HIGH" to enable
  6562. the same ciphersuites as with "HIGH" alone, but in a specific
  6563. order where the PSK ciphersuites come first (since they are the
  6564. most recently disabled ciphersuites when "HIGH" is parsed).
  6565. Also, change ssl_create_cipher_list() (using this new
  6566. functionality) such that between otherwise identical
  6567. ciphersuites, ephemeral ECDH is preferred over ephemeral DH in
  6568. the default order.
  6569. *Bodo Moeller*
  6570. * Change ssl_create_cipher_list() so that it automatically
  6571. arranges the ciphersuites in reasonable order before starting
  6572. to process the rule string. Thus, the definition for "DEFAULT"
  6573. (SSL_DEFAULT_CIPHER_LIST) now is just "ALL:!aNULL:!eNULL", but
  6574. remains equivalent to `"AES:ALL:!aNULL:!eNULL:+aECDH:+kRSA:+RC4:@STRENGTH"`.
  6575. This makes it much easier to arrive at a reasonable default order
  6576. in applications for which anonymous ciphers are OK (meaning
  6577. that you can't actually use DEFAULT).
  6578. *Bodo Moeller; suggested by Victor Duchovni*
  6579. * Split the SSL/TLS algorithm mask (as used for ciphersuite string
  6580. processing) into multiple integers instead of setting
  6581. "SSL_MKEY_MASK" bits, "SSL_AUTH_MASK" bits, "SSL_ENC_MASK",
  6582. "SSL_MAC_MASK", and "SSL_SSL_MASK" bits all in a single integer.
  6583. (These masks as well as the individual bit definitions are hidden
  6584. away into the non-exported interface ssl/ssl_locl.h, so this
  6585. change to the definition of the SSL_CIPHER structure shouldn't
  6586. affect applications.) This give us more bits for each of these
  6587. categories, so there is no longer a need to coagulate AES128 and
  6588. AES256 into a single algorithm bit, and to coagulate Camellia128
  6589. and Camellia256 into a single algorithm bit, which has led to all
  6590. kinds of kludges.
  6591. Thus, among other things, the kludge introduced in 0.9.7m and
  6592. 0.9.8e for masking out AES256 independently of AES128 or masking
  6593. out Camellia256 independently of AES256 is not needed here in 0.9.9.
  6594. With the change, we also introduce new ciphersuite aliases that
  6595. so far were missing: "AES128", "AES256", "CAMELLIA128", and
  6596. "CAMELLIA256".
  6597. *Bodo Moeller*
  6598. * Add support for dsa-with-SHA224 and dsa-with-SHA256.
  6599. Use the leftmost N bytes of the signature input if the input is
  6600. larger than the prime q (with N being the size in bytes of q).
  6601. *Nils Larsch*
  6602. * Very *very* experimental PKCS#7 streaming encoder support. Nothing uses
  6603. it yet and it is largely untested.
  6604. *Steve Henson*
  6605. * Add support for the ecdsa-with-SHA224/256/384/512 signature types.
  6606. *Nils Larsch*
  6607. * Initial incomplete changes to avoid need for function casts in OpenSSL
  6608. some compilers (gcc 4.2 and later) reject their use. Safestack is
  6609. reimplemented. Update ASN1 to avoid use of legacy functions.
  6610. *Steve Henson*
  6611. * Win32/64 targets are linked with Winsock2.
  6612. *Andy Polyakov*
  6613. * Add an X509_CRL_METHOD structure to allow CRL processing to be redirected
  6614. to external functions. This can be used to increase CRL handling
  6615. efficiency especially when CRLs are very large by (for example) storing
  6616. the CRL revoked certificates in a database.
  6617. *Steve Henson*
  6618. * Overhaul of by_dir code. Add support for dynamic loading of CRLs so
  6619. new CRLs added to a directory can be used. New command line option
  6620. -verify_return_error to s_client and s_server. This causes real errors
  6621. to be returned by the verify callback instead of carrying on no matter
  6622. what. This reflects the way a "real world" verify callback would behave.
  6623. *Steve Henson*
  6624. * GOST engine, supporting several GOST algorithms and public key formats.
  6625. Kindly donated by Cryptocom.
  6626. *Cryptocom*
  6627. * Partial support for Issuing Distribution Point CRL extension. CRLs
  6628. partitioned by DP are handled but no indirect CRL or reason partitioning
  6629. (yet). Complete overhaul of CRL handling: now the most suitable CRL is
  6630. selected via a scoring technique which handles IDP and AKID in CRLs.
  6631. *Steve Henson*
  6632. * New X509_STORE_CTX callbacks lookup_crls() and lookup_certs() which
  6633. will ultimately be used for all verify operations: this will remove the
  6634. X509_STORE dependency on certificate verification and allow alternative
  6635. lookup methods. X509_STORE based implementations of these two callbacks.
  6636. *Steve Henson*
  6637. * Allow multiple CRLs to exist in an X509_STORE with matching issuer names.
  6638. Modify get_crl() to find a valid (unexpired) CRL if possible.
  6639. *Steve Henson*
  6640. * New function X509_CRL_match() to check if two CRLs are identical. Normally
  6641. this would be called X509_CRL_cmp() but that name is already used by
  6642. a function that just compares CRL issuer names. Cache several CRL
  6643. extensions in X509_CRL structure and cache CRLDP in X509.
  6644. *Steve Henson*
  6645. * Store a "canonical" representation of X509_NAME structure (ASN1 Name)
  6646. this maps equivalent X509_NAME structures into a consistent structure.
  6647. Name comparison can then be performed rapidly using memcmp().
  6648. *Steve Henson*
  6649. * Non-blocking OCSP request processing. Add -timeout option to ocsp
  6650. utility.
  6651. *Steve Henson*
  6652. * Allow digests to supply their own micalg string for S/MIME type using
  6653. the ctrl EVP_MD_CTRL_MICALG.
  6654. *Steve Henson*
  6655. * During PKCS7 signing pass the PKCS7 SignerInfo structure to the
  6656. EVP_PKEY_METHOD before and after signing via the EVP_PKEY_CTRL_PKCS7_SIGN
  6657. ctrl. It can then customise the structure before and/or after signing
  6658. if necessary.
  6659. *Steve Henson*
  6660. * New function OBJ_add_sigid() to allow application defined signature OIDs
  6661. to be added to OpenSSLs internal tables. New function OBJ_sigid_free()
  6662. to free up any added signature OIDs.
  6663. *Steve Henson*
  6664. * New functions EVP_CIPHER_do_all(), EVP_CIPHER_do_all_sorted(),
  6665. EVP_MD_do_all() and EVP_MD_do_all_sorted() to enumerate internal
  6666. digest and cipher tables. New options added to openssl utility:
  6667. list-message-digest-algorithms and list-cipher-algorithms.
  6668. *Steve Henson*
  6669. * Change the array representation of binary polynomials: the list
  6670. of degrees of non-zero coefficients is now terminated with -1.
  6671. Previously it was terminated with 0, which was also part of the
  6672. value; thus, the array representation was not applicable to
  6673. polynomials where t^0 has coefficient zero. This change makes
  6674. the array representation useful in a more general context.
  6675. *Douglas Stebila*
  6676. * Various modifications and fixes to SSL/TLS cipher string
  6677. handling. For ECC, the code now distinguishes between fixed ECDH
  6678. with RSA certificates on the one hand and with ECDSA certificates
  6679. on the other hand, since these are separate ciphersuites. The
  6680. unused code for Fortezza ciphersuites has been removed.
  6681. For consistency with EDH, ephemeral ECDH is now called "EECDH"
  6682. (not "ECDHE"). For consistency with the code for DH
  6683. certificates, use of ECDH certificates is now considered ECDH
  6684. authentication, not RSA or ECDSA authentication (the latter is
  6685. merely the CA's signing algorithm and not actively used in the
  6686. protocol).
  6687. The temporary ciphersuite alias "ECCdraft" is no longer
  6688. available, and ECC ciphersuites are no longer excluded from "ALL"
  6689. and "DEFAULT". The following aliases now exist for RFC 4492
  6690. ciphersuites, most of these by analogy with the DH case:
  6691. kECDHr - ECDH cert, signed with RSA
  6692. kECDHe - ECDH cert, signed with ECDSA
  6693. kECDH - ECDH cert (signed with either RSA or ECDSA)
  6694. kEECDH - ephemeral ECDH
  6695. ECDH - ECDH cert or ephemeral ECDH
  6696. aECDH - ECDH cert
  6697. aECDSA - ECDSA cert
  6698. ECDSA - ECDSA cert
  6699. AECDH - anonymous ECDH
  6700. EECDH - non-anonymous ephemeral ECDH (equivalent to "kEECDH:-AECDH")
  6701. *Bodo Moeller*
  6702. * Add additional S/MIME capabilities for AES and GOST ciphers if supported.
  6703. Use correct micalg parameters depending on digest(s) in signed message.
  6704. *Steve Henson*
  6705. * Add engine support for EVP_PKEY_ASN1_METHOD. Add functions to process
  6706. an ENGINE asn1 method. Support ENGINE lookups in the ASN1 code.
  6707. *Steve Henson*
  6708. * Initial engine support for EVP_PKEY_METHOD. New functions to permit
  6709. an engine to register a method. Add ENGINE lookups for methods and
  6710. functional reference processing.
  6711. *Steve Henson*
  6712. * New functions `EVP_Digest{Sign,Verify)*`. These are enhanced versions of
  6713. `EVP_{Sign,Verify}*` which allow an application to customise the signature
  6714. process.
  6715. *Steve Henson*
  6716. * New -resign option to smime utility. This adds one or more signers
  6717. to an existing PKCS#7 signedData structure. Also -md option to use an
  6718. alternative message digest algorithm for signing.
  6719. *Steve Henson*
  6720. * Tidy up PKCS#7 routines and add new functions to make it easier to
  6721. create PKCS7 structures containing multiple signers. Update smime
  6722. application to support multiple signers.
  6723. *Steve Henson*
  6724. * New -macalg option to pkcs12 utility to allow setting of an alternative
  6725. digest MAC.
  6726. *Steve Henson*
  6727. * Initial support for PKCS#5 v2.0 PRFs other than default SHA1 HMAC.
  6728. Reorganize PBE internals to lookup from a static table using NIDs,
  6729. add support for HMAC PBE OID translation. Add a EVP_CIPHER ctrl:
  6730. EVP_CTRL_PBE_PRF_NID this allows a cipher to specify an alternative
  6731. PRF which will be automatically used with PBES2.
  6732. *Steve Henson*
  6733. * Replace the algorithm specific calls to generate keys in "req" with the
  6734. new API.
  6735. *Steve Henson*
  6736. * Update PKCS#7 enveloped data routines to use new API. This is now
  6737. supported by any public key method supporting the encrypt operation. A
  6738. ctrl is added to allow the public key algorithm to examine or modify
  6739. the PKCS#7 RecipientInfo structure if it needs to: for RSA this is
  6740. a no op.
  6741. *Steve Henson*
  6742. * Add a ctrl to asn1 method to allow a public key algorithm to express
  6743. a default digest type to use. In most cases this will be SHA1 but some
  6744. algorithms (such as GOST) need to specify an alternative digest. The
  6745. return value indicates how strong the preference is 1 means optional and
  6746. 2 is mandatory (that is it is the only supported type). Modify
  6747. ASN1_item_sign() to accept a NULL digest argument to indicate it should
  6748. use the default md. Update openssl utilities to use the default digest
  6749. type for signing if it is not explicitly indicated.
  6750. *Steve Henson*
  6751. * Use OID cross reference table in ASN1_sign() and ASN1_verify(). New
  6752. EVP_MD flag EVP_MD_FLAG_PKEY_METHOD_SIGNATURE. This uses the relevant
  6753. signing method from the key type. This effectively removes the link
  6754. between digests and public key types.
  6755. *Steve Henson*
  6756. * Add an OID cross reference table and utility functions. Its purpose is to
  6757. translate between signature OIDs such as SHA1WithrsaEncryption and SHA1,
  6758. rsaEncryption. This will allow some of the algorithm specific hackery
  6759. needed to use the correct OID to be removed.
  6760. *Steve Henson*
  6761. * Remove algorithm specific dependencies when setting PKCS7_SIGNER_INFO
  6762. structures for PKCS7_sign(). They are now set up by the relevant public
  6763. key ASN1 method.
  6764. *Steve Henson*
  6765. * Add provisional EC pkey method with support for ECDSA and ECDH.
  6766. *Steve Henson*
  6767. * Add support for key derivation (agreement) in the API, DH method and
  6768. pkeyutl.
  6769. *Steve Henson*
  6770. * Add DSA pkey method and DH pkey methods, extend DH ASN1 method to support
  6771. public and private key formats. As a side effect these add additional
  6772. command line functionality not previously available: DSA signatures can be
  6773. generated and verified using pkeyutl and DH key support and generation in
  6774. pkey, genpkey.
  6775. *Steve Henson*
  6776. * BeOS support.
  6777. *Oliver Tappe <zooey@hirschkaefer.de>*
  6778. * New make target "install_html_docs" installs HTML renditions of the
  6779. manual pages.
  6780. *Oliver Tappe <zooey@hirschkaefer.de>*
  6781. * New utility "genpkey" this is analogous to "genrsa" etc except it can
  6782. generate keys for any algorithm. Extend and update EVP_PKEY_METHOD to
  6783. support key and parameter generation and add initial key generation
  6784. functionality for RSA.
  6785. *Steve Henson*
  6786. * Add functions for main EVP_PKEY_method operations. The undocumented
  6787. functions `EVP_PKEY_{encrypt,decrypt}` have been renamed to
  6788. `EVP_PKEY_{encrypt,decrypt}_old`.
  6789. *Steve Henson*
  6790. * Initial definitions for EVP_PKEY_METHOD. This will be a high level public
  6791. key API, doesn't do much yet.
  6792. *Steve Henson*
  6793. * New function EVP_PKEY_asn1_get0_info() to retrieve information about
  6794. public key algorithms. New option to openssl utility:
  6795. "list-public-key-algorithms" to print out info.
  6796. *Steve Henson*
  6797. * Implement the Supported Elliptic Curves Extension for
  6798. ECC ciphersuites from draft-ietf-tls-ecc-12.txt.
  6799. *Douglas Stebila*
  6800. * Don't free up OIDs in OBJ_cleanup() if they are in use by EVP_MD or
  6801. EVP_CIPHER structures to avoid later problems in EVP_cleanup().
  6802. *Steve Henson*
  6803. * New utilities pkey and pkeyparam. These are similar to algorithm specific
  6804. utilities such as rsa, dsa, dsaparam etc except they process any key
  6805. type.
  6806. *Steve Henson*
  6807. * Transfer public key printing routines to EVP_PKEY_ASN1_METHOD. New
  6808. functions EVP_PKEY_print_public(), EVP_PKEY_print_private(),
  6809. EVP_PKEY_print_param() to print public key data from an EVP_PKEY
  6810. structure.
  6811. *Steve Henson*
  6812. * Initial support for pluggable public key ASN1.
  6813. De-spaghettify the public key ASN1 handling. Move public and private
  6814. key ASN1 handling to a new EVP_PKEY_ASN1_METHOD structure. Relocate
  6815. algorithm specific handling to a single module within the relevant
  6816. algorithm directory. Add functions to allow (near) opaque processing
  6817. of public and private key structures.
  6818. *Steve Henson*
  6819. * Implement the Supported Point Formats Extension for
  6820. ECC ciphersuites from draft-ietf-tls-ecc-12.txt.
  6821. *Douglas Stebila*
  6822. * Add initial support for RFC 4279 PSK TLS ciphersuites. Add members
  6823. for the psk identity [hint] and the psk callback functions to the
  6824. SSL_SESSION, SSL and SSL_CTX structure.
  6825. New ciphersuites:
  6826. PSK-RC4-SHA, PSK-3DES-EDE-CBC-SHA, PSK-AES128-CBC-SHA,
  6827. PSK-AES256-CBC-SHA
  6828. New functions:
  6829. SSL_CTX_use_psk_identity_hint
  6830. SSL_get_psk_identity_hint
  6831. SSL_get_psk_identity
  6832. SSL_use_psk_identity_hint
  6833. *Mika Kousa and Pasi Eronen of Nokia Corporation*
  6834. * Add RFC 3161 compliant time stamp request creation, response generation
  6835. and response verification functionality.
  6836. *Zoltán Glózik <zglozik@opentsa.org>, The OpenTSA Project*
  6837. * Add initial support for TLS extensions, specifically for the server_name
  6838. extension so far. The SSL_SESSION, SSL_CTX, and SSL data structures now
  6839. have new members for a hostname. The SSL data structure has an
  6840. additional member `SSL_CTX *initial_ctx` so that new sessions can be
  6841. stored in that context to allow for session resumption, even after the
  6842. SSL has been switched to a new SSL_CTX in reaction to a client's
  6843. server_name extension.
  6844. New functions (subject to change):
  6845. SSL_get_servername()
  6846. SSL_get_servername_type()
  6847. SSL_set_SSL_CTX()
  6848. New CTRL codes and macros (subject to change):
  6849. SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
  6850. - SSL_CTX_set_tlsext_servername_callback()
  6851. SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG
  6852. - SSL_CTX_set_tlsext_servername_arg()
  6853. SSL_CTRL_SET_TLSEXT_HOSTNAME - SSL_set_tlsext_host_name()
  6854. openssl s_client has a new '-servername ...' option.
  6855. openssl s_server has new options '-servername_host ...', '-cert2 ...',
  6856. '-key2 ...', '-servername_fatal' (subject to change). This allows
  6857. testing the HostName extension for a specific single hostname ('-cert'
  6858. and '-key' remain fallbacks for handshakes without HostName
  6859. negotiation). If the unrecognized_name alert has to be sent, this by
  6860. default is a warning; it becomes fatal with the '-servername_fatal'
  6861. option.
  6862. *Peter Sylvester, Remy Allais, Christophe Renou*
  6863. * Whirlpool hash implementation is added.
  6864. *Andy Polyakov*
  6865. * BIGNUM code on 64-bit SPARCv9 targets is switched from bn(64,64) to
  6866. bn(64,32). Because of instruction set limitations it doesn't have
  6867. any negative impact on performance. This was done mostly in order
  6868. to make it possible to share assembler modules, such as bn_mul_mont
  6869. implementations, between 32- and 64-bit builds without hassle.
  6870. *Andy Polyakov*
  6871. * Move code previously exiled into file crypto/ec/ec2_smpt.c
  6872. to ec2_smpl.c, and no longer require the OPENSSL_EC_BIN_PT_COMP
  6873. macro.
  6874. *Bodo Moeller*
  6875. * New candidate for BIGNUM assembler implementation, bn_mul_mont,
  6876. dedicated Montgomery multiplication procedure, is introduced.
  6877. BN_MONT_CTX is modified to allow bn_mul_mont to reach for higher
  6878. "64-bit" performance on certain 32-bit targets.
  6879. *Andy Polyakov*
  6880. * New option SSL_OP_NO_COMP to disable use of compression selectively
  6881. in SSL structures. New SSL ctrl to set maximum send fragment size.
  6882. Save memory by setting the I/O buffer sizes dynamically instead of
  6883. using the maximum available value.
  6884. *Steve Henson*
  6885. * New option -V for 'openssl ciphers'. This prints the ciphersuite code
  6886. in addition to the text details.
  6887. *Bodo Moeller*
  6888. * Very, very preliminary EXPERIMENTAL support for printing of general
  6889. ASN1 structures. This currently produces rather ugly output and doesn't
  6890. handle several customised structures at all.
  6891. *Steve Henson*
  6892. * Integrated support for PVK file format and some related formats such
  6893. as MS PUBLICKEYBLOB and PRIVATEKEYBLOB. Command line switches to support
  6894. these in the 'rsa' and 'dsa' utilities.
  6895. *Steve Henson*
  6896. * Support for PKCS#1 RSAPublicKey format on rsa utility command line.
  6897. *Steve Henson*
  6898. * Remove the ancient ASN1_METHOD code. This was only ever used in one
  6899. place for the (very old) "NETSCAPE" format certificates which are now
  6900. handled using new ASN1 code equivalents.
  6901. *Steve Henson*
  6902. * Let the TLSv1_method() etc. functions return a 'const' SSL_METHOD
  6903. pointer and make the SSL_METHOD parameter in SSL_CTX_new,
  6904. SSL_CTX_set_ssl_version and SSL_set_ssl_method 'const'.
  6905. *Nils Larsch*
  6906. * Modify CRL distribution points extension code to print out previously
  6907. unsupported fields. Enhance extension setting code to allow setting of
  6908. all fields.
  6909. *Steve Henson*
  6910. * Add print and set support for Issuing Distribution Point CRL extension.
  6911. *Steve Henson*
  6912. * Change 'Configure' script to enable Camellia by default.
  6913. *NTT*
  6914. OpenSSL 0.9.x
  6915. -------------
  6916. ### Changes between 0.9.8m and 0.9.8n [24 Mar 2010]
  6917. * When rejecting SSL/TLS records due to an incorrect version number, never
  6918. update s->server with a new major version number. As of
  6919. - OpenSSL 0.9.8m if 'short' is a 16-bit type,
  6920. - OpenSSL 0.9.8f if 'short' is longer than 16 bits,
  6921. the previous behavior could result in a read attempt at NULL when
  6922. receiving specific incorrect SSL/TLS records once record payload
  6923. protection is active. ([CVE-2010-0740])
  6924. *Bodo Moeller, Adam Langley <agl@chromium.org>*
  6925. * Fix for CVE-2010-0433 where some kerberos enabled versions of OpenSSL
  6926. could be crashed if the relevant tables were not present (e.g. chrooted).
  6927. *Tomas Hoger <thoger@redhat.com>*
  6928. ### Changes between 0.9.8l and 0.9.8m [25 Feb 2010]
  6929. * Always check bn_wexpand() return values for failure. ([CVE-2009-3245])
  6930. *Martin Olsson, Neel Mehta*
  6931. * Fix X509_STORE locking: Every 'objs' access requires a lock (to
  6932. accommodate for stack sorting, always a write lock!).
  6933. *Bodo Moeller*
  6934. * On some versions of WIN32 Heap32Next is very slow. This can cause
  6935. excessive delays in the RAND_poll(): over a minute. As a workaround
  6936. include a time check in the inner Heap32Next loop too.
  6937. *Steve Henson*
  6938. * The code that handled flushing of data in SSL/TLS originally used the
  6939. BIO_CTRL_INFO ctrl to see if any data was pending first. This caused
  6940. the problem outlined in PR#1949. The fix suggested there however can
  6941. trigger problems with buggy BIO_CTRL_WPENDING (e.g. some versions
  6942. of Apache). So instead simplify the code to flush unconditionally.
  6943. This should be fine since flushing with no data to flush is a no op.
  6944. *Steve Henson*
  6945. * Handle TLS versions 2.0 and later properly and correctly use the
  6946. highest version of TLS/SSL supported. Although TLS >= 2.0 is some way
  6947. off ancient servers have a habit of sticking around for a while...
  6948. *Steve Henson*
  6949. * Modify compression code so it frees up structures without using the
  6950. ex_data callbacks. This works around a problem where some applications
  6951. call CRYPTO_cleanup_all_ex_data() before application exit (e.g. when
  6952. restarting) then use compression (e.g. SSL with compression) later.
  6953. This results in significant per-connection memory leaks and
  6954. has caused some security issues including CVE-2008-1678 and
  6955. CVE-2009-4355.
  6956. *Steve Henson*
  6957. * Constify crypto/cast (i.e., <openssl/cast.h>): a CAST_KEY doesn't
  6958. change when encrypting or decrypting.
  6959. *Bodo Moeller*
  6960. * Add option SSL_OP_LEGACY_SERVER_CONNECT which will allow clients to
  6961. connect and renegotiate with servers which do not support RI.
  6962. Until RI is more widely deployed this option is enabled by default.
  6963. *Steve Henson*
  6964. * Add "missing" ssl ctrls to clear options and mode.
  6965. *Steve Henson*
  6966. * If client attempts to renegotiate and doesn't support RI respond with
  6967. a no_renegotiation alert as required by RFC5746. Some renegotiating
  6968. TLS clients will continue a connection gracefully when they receive
  6969. the alert. Unfortunately OpenSSL mishandled this alert and would hang
  6970. waiting for a server hello which it will never receive. Now we treat a
  6971. received no_renegotiation alert as a fatal error. This is because
  6972. applications requesting a renegotiation might well expect it to succeed
  6973. and would have no code in place to handle the server denying it so the
  6974. only safe thing to do is to terminate the connection.
  6975. *Steve Henson*
  6976. * Add ctrl macro SSL_get_secure_renegotiation_support() which returns 1 if
  6977. peer supports secure renegotiation and 0 otherwise. Print out peer
  6978. renegotiation support in s_client/s_server.
  6979. *Steve Henson*
  6980. * Replace the highly broken and deprecated SPKAC certification method with
  6981. the updated NID creation version. This should correctly handle UTF8.
  6982. *Steve Henson*
  6983. * Implement RFC5746. Re-enable renegotiation but require the extension
  6984. as needed. Unfortunately, SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION
  6985. turns out to be a bad idea. It has been replaced by
  6986. SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION which can be set with
  6987. SSL_CTX_set_options(). This is really not recommended unless you
  6988. know what you are doing.
  6989. *Eric Rescorla <ekr@networkresonance.com>, Ben Laurie, Steve Henson*
  6990. * Fixes to stateless session resumption handling. Use initial_ctx when
  6991. issuing and attempting to decrypt tickets in case it has changed during
  6992. servername handling. Use a non-zero length session ID when attempting
  6993. stateless session resumption: this makes it possible to determine if
  6994. a resumption has occurred immediately after receiving server hello
  6995. (several places in OpenSSL subtly assume this) instead of later in
  6996. the handshake.
  6997. *Steve Henson*
  6998. * The functions ENGINE_ctrl(), OPENSSL_isservice(),
  6999. CMS_get1_RecipientRequest() and RAND_bytes() can return <=0 on error
  7000. fixes for a few places where the return code is not checked
  7001. correctly.
  7002. *Julia Lawall <julia@diku.dk>*
  7003. * Add --strict-warnings option to Configure script to include devteam
  7004. warnings in other configurations.
  7005. *Steve Henson*
  7006. * Add support for --libdir option and LIBDIR variable in makefiles. This
  7007. makes it possible to install openssl libraries in locations which
  7008. have names other than "lib", for example "/usr/lib64" which some
  7009. systems need.
  7010. *Steve Henson, based on patch from Jeremy Utley*
  7011. * Don't allow the use of leading 0x80 in OIDs. This is a violation of
  7012. X690 8.9.12 and can produce some misleading textual output of OIDs.
  7013. *Steve Henson, reported by Dan Kaminsky*
  7014. * Delete MD2 from algorithm tables. This follows the recommendation in
  7015. several standards that it is not used in new applications due to
  7016. several cryptographic weaknesses. For binary compatibility reasons
  7017. the MD2 API is still compiled in by default.
  7018. *Steve Henson*
  7019. * Add compression id to {d2i,i2d}_SSL_SESSION so it is correctly saved
  7020. and restored.
  7021. *Steve Henson*
  7022. * Rename uni2asc and asc2uni functions to OPENSSL_uni2asc and
  7023. OPENSSL_asc2uni conditionally on Netware platforms to avoid a name
  7024. clash.
  7025. *Guenter <lists@gknw.net>*
  7026. * Fix the server certificate chain building code to use X509_verify_cert(),
  7027. it used to have an ad-hoc builder which was unable to cope with anything
  7028. other than a simple chain.
  7029. *David Woodhouse <dwmw2@infradead.org>, Steve Henson*
  7030. * Don't check self signed certificate signatures in X509_verify_cert()
  7031. by default (a flag can override this): it just wastes time without
  7032. adding any security. As a useful side effect self signed root CAs
  7033. with non-FIPS digests are now usable in FIPS mode.
  7034. *Steve Henson*
  7035. * In dtls1_process_out_of_seq_message() the check if the current message
  7036. is already buffered was missing. For every new message was memory
  7037. allocated, allowing an attacker to perform an denial of service attack
  7038. with sending out of seq handshake messages until there is no memory
  7039. left. Additionally every future message was buffered, even if the
  7040. sequence number made no sense and would be part of another handshake.
  7041. So only messages with sequence numbers less than 10 in advance will be
  7042. buffered. ([CVE-2009-1378])
  7043. *Robin Seggelmann, discovered by Daniel Mentz*
  7044. * Records are buffered if they arrive with a future epoch to be
  7045. processed after finishing the corresponding handshake. There is
  7046. currently no limitation to this buffer allowing an attacker to perform
  7047. a DOS attack with sending records with future epochs until there is no
  7048. memory left. This patch adds the pqueue_size() function to determine
  7049. the size of a buffer and limits the record buffer to 100 entries.
  7050. ([CVE-2009-1377])
  7051. *Robin Seggelmann, discovered by Daniel Mentz*
  7052. * Keep a copy of frag->msg_header.frag_len so it can be used after the
  7053. parent structure is freed. ([CVE-2009-1379])
  7054. *Daniel Mentz*
  7055. * Handle non-blocking I/O properly in SSL_shutdown() call.
  7056. *Darryl Miles <darryl-mailinglists@netbauds.net>*
  7057. * Add `2.5.4.*` OIDs
  7058. *Ilya O. <vrghost@gmail.com>*
  7059. ### Changes between 0.9.8k and 0.9.8l [5 Nov 2009]
  7060. * Disable renegotiation completely - this fixes a severe security
  7061. problem ([CVE-2009-3555]) at the cost of breaking all
  7062. renegotiation. Renegotiation can be re-enabled by setting
  7063. SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION in s3->flags at
  7064. run-time. This is really not recommended unless you know what
  7065. you're doing.
  7066. *Ben Laurie*
  7067. ### Changes between 0.9.8j and 0.9.8k [25 Mar 2009]
  7068. * Don't set val to NULL when freeing up structures, it is freed up by
  7069. underlying code. If `sizeof(void *) > sizeof(long)` this can result in
  7070. zeroing past the valid field. ([CVE-2009-0789])
  7071. *Paolo Ganci <Paolo.Ganci@AdNovum.CH>*
  7072. * Fix bug where return value of CMS_SignerInfo_verify_content() was not
  7073. checked correctly. This would allow some invalid signed attributes to
  7074. appear to verify correctly. ([CVE-2009-0591])
  7075. *Ivan Nestlerode <inestlerode@us.ibm.com>*
  7076. * Reject UniversalString and BMPString types with invalid lengths. This
  7077. prevents a crash in ASN1_STRING_print_ex() which assumes the strings have
  7078. a legal length. ([CVE-2009-0590])
  7079. *Steve Henson*
  7080. * Set S/MIME signing as the default purpose rather than setting it
  7081. unconditionally. This allows applications to override it at the store
  7082. level.
  7083. *Steve Henson*
  7084. * Permit restricted recursion of ASN1 strings. This is needed in practice
  7085. to handle some structures.
  7086. *Steve Henson*
  7087. * Improve efficiency of mem_gets: don't search whole buffer each time
  7088. for a '\n'
  7089. *Jeremy Shapiro <jnshapir@us.ibm.com>*
  7090. * New -hex option for openssl rand.
  7091. *Matthieu Herrb*
  7092. * Print out UTF8String and NumericString when parsing ASN1.
  7093. *Steve Henson*
  7094. * Support NumericString type for name components.
  7095. *Steve Henson*
  7096. * Allow CC in the environment to override the automatically chosen
  7097. compiler. Note that nothing is done to ensure flags work with the
  7098. chosen compiler.
  7099. *Ben Laurie*
  7100. ### Changes between 0.9.8i and 0.9.8j [07 Jan 2009]
  7101. * Properly check EVP_VerifyFinal() and similar return values
  7102. ([CVE-2008-5077]).
  7103. *Ben Laurie, Bodo Moeller, Google Security Team*
  7104. * Enable TLS extensions by default.
  7105. *Ben Laurie*
  7106. * Allow the CHIL engine to be loaded, whether the application is
  7107. multithreaded or not. (This does not release the developer from the
  7108. obligation to set up the dynamic locking callbacks.)
  7109. *Sander Temme <sander@temme.net>*
  7110. * Use correct exit code if there is an error in dgst command.
  7111. *Steve Henson; problem pointed out by Roland Dirlewanger*
  7112. * Tweak Configure so that you need to say "experimental-jpake" to enable
  7113. JPAKE, and need to use -DOPENSSL_EXPERIMENTAL_JPAKE in applications.
  7114. *Bodo Moeller*
  7115. * Add experimental JPAKE support, including demo authentication in
  7116. s_client and s_server.
  7117. *Ben Laurie*
  7118. * Set the comparison function in v3_addr_canonize().
  7119. *Rob Austein <sra@hactrn.net>*
  7120. * Add support for XMPP STARTTLS in s_client.
  7121. *Philip Paeps <philip@freebsd.org>*
  7122. * Change the server-side SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG behavior
  7123. to ensure that even with this option, only ciphersuites in the
  7124. server's preference list will be accepted. (Note that the option
  7125. applies only when resuming a session, so the earlier behavior was
  7126. just about the algorithm choice for symmetric cryptography.)
  7127. *Bodo Moeller*
  7128. ### Changes between 0.9.8h and 0.9.8i [15 Sep 2008]
  7129. * Fix NULL pointer dereference if a DTLS server received
  7130. ChangeCipherSpec as first record ([CVE-2009-1386]).
  7131. *PR #1679*
  7132. * Fix a state transition in s3_srvr.c and d1_srvr.c
  7133. (was using SSL3_ST_CW_CLNT_HELLO_B, should be `..._ST_SW_SRVR_...`).
  7134. *Nagendra Modadugu*
  7135. * The fix in 0.9.8c that supposedly got rid of unsafe
  7136. double-checked locking was incomplete for RSA blinding,
  7137. addressing just one layer of what turns out to have been
  7138. doubly unsafe triple-checked locking.
  7139. So now fix this for real by retiring the MONT_HELPER macro
  7140. in crypto/rsa/rsa_eay.c.
  7141. *Bodo Moeller; problem pointed out by Marius Schilder*
  7142. * Various precautionary measures:
  7143. - Avoid size_t integer overflow in HASH_UPDATE (md32_common.h).
  7144. - Avoid a buffer overflow in d2i_SSL_SESSION() (ssl_asn1.c).
  7145. (NB: This would require knowledge of the secret session ticket key
  7146. to exploit, in which case you'd be SOL either way.)
  7147. - Change bn_nist.c so that it will properly handle input BIGNUMs
  7148. outside the expected range.
  7149. - Enforce the 'num' check in BN_div() (bn_div.c) for non-BN_DEBUG
  7150. builds.
  7151. *Neel Mehta, Bodo Moeller*
  7152. * Allow engines to be "soft loaded" - i.e. optionally don't die if
  7153. the load fails. Useful for distros.
  7154. *Ben Laurie and the FreeBSD team*
  7155. * Add support for Local Machine Keyset attribute in PKCS#12 files.
  7156. *Steve Henson*
  7157. * Fix BN_GF2m_mod_arr() top-bit cleanup code.
  7158. *Huang Ying*
  7159. * Expand ENGINE to support engine supplied SSL client certificate functions.
  7160. This work was sponsored by Logica.
  7161. *Steve Henson*
  7162. * Add CryptoAPI ENGINE to support use of RSA and DSA keys held in Windows
  7163. keystores. Support for SSL/TLS client authentication too.
  7164. Not compiled unless enable-capieng specified to Configure.
  7165. This work was sponsored by Logica.
  7166. *Steve Henson*
  7167. * Fix bug in X509_ATTRIBUTE creation: don't set attribute using
  7168. ASN1_TYPE_set1 if MBSTRING flag set. This bug would crash certain
  7169. attribute creation routines such as certificate requests and PKCS#12
  7170. files.
  7171. *Steve Henson*
  7172. ### Changes between 0.9.8g and 0.9.8h [28 May 2008]
  7173. * Fix flaw if 'Server Key exchange message' is omitted from a TLS
  7174. handshake which could lead to a client crash as found using the
  7175. Codenomicon TLS test suite ([CVE-2008-1672])
  7176. *Steve Henson, Mark Cox*
  7177. * Fix double free in TLS server name extensions which could lead to
  7178. a remote crash found by Codenomicon TLS test suite ([CVE-2008-0891])
  7179. *Joe Orton*
  7180. * Clear error queue in SSL_CTX_use_certificate_chain_file()
  7181. Clear the error queue to ensure that error entries left from
  7182. older function calls do not interfere with the correct operation.
  7183. *Lutz Jaenicke, Erik de Castro Lopo*
  7184. * Remove root CA certificates of commercial CAs:
  7185. The OpenSSL project does not recommend any specific CA and does not
  7186. have any policy with respect to including or excluding any CA.
  7187. Therefore, it does not make any sense to ship an arbitrary selection
  7188. of root CA certificates with the OpenSSL software.
  7189. *Lutz Jaenicke*
  7190. * RSA OAEP patches to fix two separate invalid memory reads.
  7191. The first one involves inputs when 'lzero' is greater than
  7192. 'SHA_DIGEST_LENGTH' (it would read about SHA_DIGEST_LENGTH bytes
  7193. before the beginning of from). The second one involves inputs where
  7194. the 'db' section contains nothing but zeroes (there is a one-byte
  7195. invalid read after the end of 'db').
  7196. *Ivan Nestlerode <inestlerode@us.ibm.com>*
  7197. * Partial backport from 0.9.9-dev:
  7198. Introduce bn_mul_mont (dedicated Montgomery multiplication
  7199. procedure) as a candidate for BIGNUM assembler implementation.
  7200. While 0.9.9-dev uses assembler for various architectures, only
  7201. x86_64 is available by default here in the 0.9.8 branch, and
  7202. 32-bit x86 is available through a compile-time setting.
  7203. To try the 32-bit x86 assembler implementation, use Configure
  7204. option "enable-montasm" (which exists only for this backport).
  7205. As "enable-montasm" for 32-bit x86 disclaims code stability
  7206. anyway, in this constellation we activate additional code
  7207. backported from 0.9.9-dev for further performance improvements,
  7208. namely BN_from_montgomery_word. (To enable this otherwise,
  7209. e.g. x86_64, try `-DMONT_FROM_WORD___NON_DEFAULT_0_9_8_BUILD`.)
  7210. *Andy Polyakov (backport partially by Bodo Moeller)*
  7211. * Add TLS session ticket callback. This allows an application to set
  7212. TLS ticket cipher and HMAC keys rather than relying on hardcoded fixed
  7213. values. This is useful for key rollover for example where several key
  7214. sets may exist with different names.
  7215. *Steve Henson*
  7216. * Reverse ENGINE-internal logic for caching default ENGINE handles.
  7217. This was broken until now in 0.9.8 releases, such that the only way
  7218. a registered ENGINE could be used (assuming it initialises
  7219. successfully on the host) was to explicitly set it as the default
  7220. for the relevant algorithms. This is in contradiction with 0.9.7
  7221. behaviour and the documentation. With this fix, when an ENGINE is
  7222. registered into a given algorithm's table of implementations, the
  7223. 'uptodate' flag is reset so that auto-discovery will be used next
  7224. time a new context for that algorithm attempts to select an
  7225. implementation.
  7226. *Ian Lister (tweaked by Geoff Thorpe)*
  7227. * Backport of CMS code to OpenSSL 0.9.8. This differs from the 0.9.9
  7228. implementation in the following ways:
  7229. Lack of EVP_PKEY_ASN1_METHOD means algorithm parameters have to be
  7230. hard coded.
  7231. Lack of BER streaming support means one pass streaming processing is
  7232. only supported if data is detached: setting the streaming flag is
  7233. ignored for embedded content.
  7234. CMS support is disabled by default and must be explicitly enabled
  7235. with the enable-cms configuration option.
  7236. *Steve Henson*
  7237. * Update the GMP engine glue to do direct copies between BIGNUM and
  7238. mpz_t when openssl and GMP use the same limb size. Otherwise the
  7239. existing "conversion via a text string export" trick is still used.
  7240. *Paul Sheer <paulsheer@gmail.com>*
  7241. * Zlib compression BIO. This is a filter BIO which compressed and
  7242. uncompresses any data passed through it.
  7243. *Steve Henson*
  7244. * Add AES_wrap_key() and AES_unwrap_key() functions to implement
  7245. RFC3394 compatible AES key wrapping.
  7246. *Steve Henson*
  7247. * Add utility functions to handle ASN1 structures. ASN1_STRING_set0():
  7248. sets string data without copying. X509_ALGOR_set0() and
  7249. X509_ALGOR_get0(): set and retrieve X509_ALGOR (AlgorithmIdentifier)
  7250. data. Attribute function X509at_get0_data_by_OBJ(): retrieves data
  7251. from an X509_ATTRIBUTE structure optionally checking it occurs only
  7252. once. ASN1_TYPE_set1(): set and ASN1_TYPE structure copying supplied
  7253. data.
  7254. *Steve Henson*
  7255. * Fix BN flag handling in RSA_eay_mod_exp() and BN_MONT_CTX_set()
  7256. to get the expected BN_FLG_CONSTTIME behavior.
  7257. *Bodo Moeller (Google)*
  7258. * Netware support:
  7259. - fixed wrong usage of ioctlsocket() when build for LIBC BSD sockets
  7260. - fixed do_tests.pl to run the test suite with CLIB builds too (CLIB_OPT)
  7261. - added some more tests to do_tests.pl
  7262. - fixed RunningProcess usage so that it works with newer LIBC NDKs too
  7263. - removed usage of BN_LLONG for CLIB builds to avoid runtime dependency
  7264. - added new Configure targets netware-clib-bsdsock, netware-clib-gcc,
  7265. netware-clib-bsdsock-gcc, netware-libc-bsdsock-gcc
  7266. - various changes to netware.pl to enable gcc-cross builds on Win32
  7267. platform
  7268. - changed crypto/bio/b_sock.c to work with macro functions (CLIB BSD)
  7269. - various changes to fix missing prototype warnings
  7270. - fixed x86nasm.pl to create correct asm files for NASM COFF output
  7271. - added AES, WHIRLPOOL and CPUID assembler code to build files
  7272. - added missing AES assembler make rules to mk1mf.pl
  7273. - fixed order of includes in `apps/ocsp.c` so that `e_os.h` settings apply
  7274. *Guenter Knauf <eflash@gmx.net>*
  7275. * Implement certificate status request TLS extension defined in RFC3546.
  7276. A client can set the appropriate parameters and receive the encoded
  7277. OCSP response via a callback. A server can query the supplied parameters
  7278. and set the encoded OCSP response in the callback. Add simplified examples
  7279. to s_client and s_server.
  7280. *Steve Henson*
  7281. ### Changes between 0.9.8f and 0.9.8g [19 Oct 2007]
  7282. * Fix various bugs:
  7283. + Binary incompatibility of ssl_ctx_st structure
  7284. + DTLS interoperation with non-compliant servers
  7285. + Don't call get_session_cb() without proposed session
  7286. + Fix ia64 assembler code
  7287. *Andy Polyakov, Steve Henson*
  7288. ### Changes between 0.9.8e and 0.9.8f [11 Oct 2007]
  7289. * DTLS Handshake overhaul. There were longstanding issues with
  7290. OpenSSL DTLS implementation, which were making it impossible for
  7291. RFC 4347 compliant client to communicate with OpenSSL server.
  7292. Unfortunately just fixing these incompatibilities would "cut off"
  7293. pre-0.9.8f clients. To allow for hassle free upgrade post-0.9.8e
  7294. server keeps tolerating non RFC compliant syntax. The opposite is
  7295. not true, 0.9.8f client can not communicate with earlier server.
  7296. This update even addresses CVE-2007-4995.
  7297. *Andy Polyakov*
  7298. * Changes to avoid need for function casts in OpenSSL: some compilers
  7299. (gcc 4.2 and later) reject their use.
  7300. *Kurt Roeckx <kurt@roeckx.be>, Peter Hartley <pdh@utter.chaos.org.uk>,
  7301. Steve Henson*
  7302. * Add RFC4507 support to OpenSSL. This includes the corrections in
  7303. RFC4507bis. The encrypted ticket format is an encrypted encoded
  7304. SSL_SESSION structure, that way new session features are automatically
  7305. supported.
  7306. If a client application caches session in an SSL_SESSION structure
  7307. support is transparent because tickets are now stored in the encoded
  7308. SSL_SESSION.
  7309. The SSL_CTX structure automatically generates keys for ticket
  7310. protection in servers so again support should be possible
  7311. with no application modification.
  7312. If a client or server wishes to disable RFC4507 support then the option
  7313. SSL_OP_NO_TICKET can be set.
  7314. Add a TLS extension debugging callback to allow the contents of any client
  7315. or server extensions to be examined.
  7316. This work was sponsored by Google.
  7317. *Steve Henson*
  7318. * Add initial support for TLS extensions, specifically for the server_name
  7319. extension so far. The SSL_SESSION, SSL_CTX, and SSL data structures now
  7320. have new members for a hostname. The SSL data structure has an
  7321. additional member `SSL_CTX *initial_ctx` so that new sessions can be
  7322. stored in that context to allow for session resumption, even after the
  7323. SSL has been switched to a new SSL_CTX in reaction to a client's
  7324. server_name extension.
  7325. New functions (subject to change):
  7326. SSL_get_servername()
  7327. SSL_get_servername_type()
  7328. SSL_set_SSL_CTX()
  7329. New CTRL codes and macros (subject to change):
  7330. SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
  7331. - SSL_CTX_set_tlsext_servername_callback()
  7332. SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG
  7333. - SSL_CTX_set_tlsext_servername_arg()
  7334. SSL_CTRL_SET_TLSEXT_HOSTNAME - SSL_set_tlsext_host_name()
  7335. openssl s_client has a new '-servername ...' option.
  7336. openssl s_server has new options '-servername_host ...', '-cert2 ...',
  7337. '-key2 ...', '-servername_fatal' (subject to change). This allows
  7338. testing the HostName extension for a specific single hostname ('-cert'
  7339. and '-key' remain fallbacks for handshakes without HostName
  7340. negotiation). If the unrecognized_name alert has to be sent, this by
  7341. default is a warning; it becomes fatal with the '-servername_fatal'
  7342. option.
  7343. *Peter Sylvester, Remy Allais, Christophe Renou, Steve Henson*
  7344. * Add AES and SSE2 assembly language support to VC++ build.
  7345. *Steve Henson*
  7346. * Mitigate attack on final subtraction in Montgomery reduction.
  7347. *Andy Polyakov*
  7348. * Fix crypto/ec/ec_mult.c to work properly with scalars of value 0
  7349. (which previously caused an internal error).
  7350. *Bodo Moeller*
  7351. * Squeeze another 10% out of IGE mode when in != out.
  7352. *Ben Laurie*
  7353. * AES IGE mode speedup.
  7354. *Dean Gaudet (Google)*
  7355. * Add the Korean symmetric 128-bit cipher SEED (see
  7356. <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>) and
  7357. add SEED ciphersuites from RFC 4162:
  7358. TLS_RSA_WITH_SEED_CBC_SHA = "SEED-SHA"
  7359. TLS_DHE_DSS_WITH_SEED_CBC_SHA = "DHE-DSS-SEED-SHA"
  7360. TLS_DHE_RSA_WITH_SEED_CBC_SHA = "DHE-RSA-SEED-SHA"
  7361. TLS_DH_anon_WITH_SEED_CBC_SHA = "ADH-SEED-SHA"
  7362. To minimize changes between patchlevels in the OpenSSL 0.9.8
  7363. series, SEED remains excluded from compilation unless OpenSSL
  7364. is configured with 'enable-seed'.
  7365. *KISA, Bodo Moeller*
  7366. * Mitigate branch prediction attacks, which can be practical if a
  7367. single processor is shared, allowing a spy process to extract
  7368. information. For detailed background information, see
  7369. <http://eprint.iacr.org/2007/039> (O. Aciicmez, S. Gueron,
  7370. J.-P. Seifert, "New Branch Prediction Vulnerabilities in OpenSSL
  7371. and Necessary Software Countermeasures"). The core of the change
  7372. are new versions BN_div_no_branch() and
  7373. BN_mod_inverse_no_branch() of BN_div() and BN_mod_inverse(),
  7374. respectively, which are slower, but avoid the security-relevant
  7375. conditional branches. These are automatically called by BN_div()
  7376. and BN_mod_inverse() if the flag BN_FLG_CONSTTIME is set for one
  7377. of the input BIGNUMs. Also, BN_is_bit_set() has been changed to
  7378. remove a conditional branch.
  7379. BN_FLG_CONSTTIME is the new name for the previous
  7380. BN_FLG_EXP_CONSTTIME flag, since it now affects more than just
  7381. modular exponentiation. (Since OpenSSL 0.9.7h, setting this flag
  7382. in the exponent causes BN_mod_exp_mont() to use the alternative
  7383. implementation in BN_mod_exp_mont_consttime().) The old name
  7384. remains as a deprecated alias.
  7385. Similarly, RSA_FLAG_NO_EXP_CONSTTIME is replaced by a more general
  7386. RSA_FLAG_NO_CONSTTIME flag since the RSA implementation now uses
  7387. constant-time implementations for more than just exponentiation.
  7388. Here too the old name is kept as a deprecated alias.
  7389. BN_BLINDING_new() will now use BN_dup() for the modulus so that
  7390. the BN_BLINDING structure gets an independent copy of the
  7391. modulus. This means that the previous `BIGNUM *m` argument to
  7392. BN_BLINDING_new() and to BN_BLINDING_create_param() now
  7393. essentially becomes `const BIGNUM *m`, although we can't actually
  7394. change this in the header file before 0.9.9. It allows
  7395. RSA_setup_blinding() to use BN_with_flags() on the modulus to
  7396. enable BN_FLG_CONSTTIME.
  7397. *Matthew D Wood (Intel Corp)*
  7398. * In the SSL/TLS server implementation, be strict about session ID
  7399. context matching (which matters if an application uses a single
  7400. external cache for different purposes). Previously,
  7401. out-of-context reuse was forbidden only if SSL_VERIFY_PEER was
  7402. set. This did ensure strict client verification, but meant that,
  7403. with applications using a single external cache for quite
  7404. different requirements, clients could circumvent ciphersuite
  7405. restrictions for a given session ID context by starting a session
  7406. in a different context.
  7407. *Bodo Moeller*
  7408. * Include "!eNULL" in SSL_DEFAULT_CIPHER_LIST to make sure that
  7409. a ciphersuite string such as "DEFAULT:RSA" cannot enable
  7410. authentication-only ciphersuites.
  7411. *Bodo Moeller*
  7412. * Update the SSL_get_shared_ciphers() fix CVE-2006-3738 which was
  7413. not complete and could lead to a possible single byte overflow
  7414. ([CVE-2007-5135]) [Ben Laurie]
  7415. ### Changes between 0.9.8d and 0.9.8e [23 Feb 2007]
  7416. * Since AES128 and AES256 (and similarly Camellia128 and
  7417. Camellia256) share a single mask bit in the logic of
  7418. ssl/ssl_ciph.c, the code for masking out disabled ciphers needs a
  7419. kludge to work properly if AES128 is available and AES256 isn't
  7420. (or if Camellia128 is available and Camellia256 isn't).
  7421. *Victor Duchovni*
  7422. * Fix the BIT STRING encoding generated by crypto/ec/ec_asn1.c
  7423. (within i2d_ECPrivateKey, i2d_ECPKParameters, i2d_ECParameters):
  7424. When a point or a seed is encoded in a BIT STRING, we need to
  7425. prevent the removal of trailing zero bits to get the proper DER
  7426. encoding. (By default, crypto/asn1/a_bitstr.c assumes the case
  7427. of a NamedBitList, for which trailing 0 bits need to be removed.)
  7428. *Bodo Moeller*
  7429. * Have SSL/TLS server implementation tolerate "mismatched" record
  7430. protocol version while receiving ClientHello even if the
  7431. ClientHello is fragmented. (The server can't insist on the
  7432. particular protocol version it has chosen before the ServerHello
  7433. message has informed the client about his choice.)
  7434. *Bodo Moeller*
  7435. * Add RFC 3779 support.
  7436. *Rob Austein for ARIN, Ben Laurie*
  7437. * Load error codes if they are not already present instead of using a
  7438. static variable. This allows them to be cleanly unloaded and reloaded.
  7439. Improve header file function name parsing.
  7440. *Steve Henson*
  7441. * extend SMTP and IMAP protocol emulation in s_client to use EHLO
  7442. or CAPABILITY handshake as required by RFCs.
  7443. *Goetz Babin-Ebell*
  7444. ### Changes between 0.9.8c and 0.9.8d [28 Sep 2006]
  7445. * Introduce limits to prevent malicious keys being able to
  7446. cause a denial of service. ([CVE-2006-2940])
  7447. *Steve Henson, Bodo Moeller*
  7448. * Fix ASN.1 parsing of certain invalid structures that can result
  7449. in a denial of service. ([CVE-2006-2937]) [Steve Henson]
  7450. * Fix buffer overflow in SSL_get_shared_ciphers() function.
  7451. ([CVE-2006-3738]) [Tavis Ormandy and Will Drewry, Google Security Team]
  7452. * Fix SSL client code which could crash if connecting to a
  7453. malicious SSLv2 server. ([CVE-2006-4343])
  7454. *Tavis Ormandy and Will Drewry, Google Security Team*
  7455. * Since 0.9.8b, ciphersuite strings naming explicit ciphersuites
  7456. match only those. Before that, "AES256-SHA" would be interpreted
  7457. as a pattern and match "AES128-SHA" too (since AES128-SHA got
  7458. the same strength classification in 0.9.7h) as we currently only
  7459. have a single AES bit in the ciphersuite description bitmap.
  7460. That change, however, also applied to ciphersuite strings such as
  7461. "RC4-MD5" that intentionally matched multiple ciphersuites --
  7462. namely, SSL 2.0 ciphersuites in addition to the more common ones
  7463. from SSL 3.0/TLS 1.0.
  7464. So we change the selection algorithm again: Naming an explicit
  7465. ciphersuite selects this one ciphersuite, and any other similar
  7466. ciphersuite (same bitmap) from *other* protocol versions.
  7467. Thus, "RC4-MD5" again will properly select both the SSL 2.0
  7468. ciphersuite and the SSL 3.0/TLS 1.0 ciphersuite.
  7469. Since SSL 2.0 does not have any ciphersuites for which the
  7470. 128/256 bit distinction would be relevant, this works for now.
  7471. The proper fix will be to use different bits for AES128 and
  7472. AES256, which would have avoided the problems from the beginning;
  7473. however, bits are scarce, so we can only do this in a new release
  7474. (not just a patchlevel) when we can change the SSL_CIPHER
  7475. definition to split the single 'unsigned long mask' bitmap into
  7476. multiple values to extend the available space.
  7477. *Bodo Moeller*
  7478. ### Changes between 0.9.8b and 0.9.8c [05 Sep 2006]
  7479. * Avoid PKCS #1 v1.5 signature attack discovered by Daniel Bleichenbacher
  7480. ([CVE-2006-4339]) [Ben Laurie and Google Security Team]
  7481. * Add AES IGE and biIGE modes.
  7482. *Ben Laurie*
  7483. * Change the Unix randomness entropy gathering to use poll() when
  7484. possible instead of select(), since the latter has some
  7485. undesirable limitations.
  7486. *Darryl Miles via Richard Levitte and Bodo Moeller*
  7487. * Disable "ECCdraft" ciphersuites more thoroughly. Now special
  7488. treatment in ssl/ssl_ciph.s makes sure that these ciphersuites
  7489. cannot be implicitly activated as part of, e.g., the "AES" alias.
  7490. However, please upgrade to OpenSSL 0.9.9[-dev] for
  7491. non-experimental use of the ECC ciphersuites to get TLS extension
  7492. support, which is required for curve and point format negotiation
  7493. to avoid potential handshake problems.
  7494. *Bodo Moeller*
  7495. * Disable rogue ciphersuites:
  7496. - SSLv2 0x08 0x00 0x80 ("RC4-64-MD5")
  7497. - SSLv3/TLSv1 0x00 0x61 ("EXP1024-RC2-CBC-MD5")
  7498. - SSLv3/TLSv1 0x00 0x60 ("EXP1024-RC4-MD5")
  7499. The latter two were purportedly from
  7500. draft-ietf-tls-56-bit-ciphersuites-0[01].txt, but do not really
  7501. appear there.
  7502. Also deactivate the remaining ciphersuites from
  7503. draft-ietf-tls-56-bit-ciphersuites-01.txt. These are just as
  7504. unofficial, and the ID has long expired.
  7505. *Bodo Moeller*
  7506. * Fix RSA blinding Heisenbug (problems sometimes occurred on
  7507. dual-core machines) and other potential thread-safety issues.
  7508. *Bodo Moeller*
  7509. * Add the symmetric cipher Camellia (128-bit, 192-bit, 256-bit key
  7510. versions), which is now available for royalty-free use
  7511. (see <http://info.isl.ntt.co.jp/crypt/eng/info/chiteki.html>).
  7512. Also, add Camellia TLS ciphersuites from RFC 4132.
  7513. To minimize changes between patchlevels in the OpenSSL 0.9.8
  7514. series, Camellia remains excluded from compilation unless OpenSSL
  7515. is configured with 'enable-camellia'.
  7516. *NTT*
  7517. * Disable the padding bug check when compression is in use. The padding
  7518. bug check assumes the first packet is of even length, this is not
  7519. necessarily true if compression is enabled and can result in false
  7520. positives causing handshake failure. The actual bug test is ancient
  7521. code so it is hoped that implementations will either have fixed it by
  7522. now or any which still have the bug do not support compression.
  7523. *Steve Henson*
  7524. ### Changes between 0.9.8a and 0.9.8b [04 May 2006]
  7525. * When applying a cipher rule check to see if string match is an explicit
  7526. cipher suite and only match that one cipher suite if it is.
  7527. *Steve Henson*
  7528. * Link in manifests for VC++ if needed.
  7529. *Austin Ziegler <halostatue@gmail.com>*
  7530. * Update support for ECC-based TLS ciphersuites according to
  7531. draft-ietf-tls-ecc-12.txt with proposed changes (but without
  7532. TLS extensions, which are supported starting with the 0.9.9
  7533. branch, not in the OpenSSL 0.9.8 branch).
  7534. *Douglas Stebila*
  7535. * New functions EVP_CIPHER_CTX_new() and EVP_CIPHER_CTX_free() to support
  7536. opaque EVP_CIPHER_CTX handling.
  7537. *Steve Henson*
  7538. * Fixes and enhancements to zlib compression code. We now only use
  7539. "zlib1.dll" and use the default `__cdecl` calling convention on Win32
  7540. to conform with the standards mentioned here:
  7541. <http://www.zlib.net/DLL_FAQ.txt>
  7542. Static zlib linking now works on Windows and the new --with-zlib-include
  7543. --with-zlib-lib options to Configure can be used to supply the location
  7544. of the headers and library. Gracefully handle case where zlib library
  7545. can't be loaded.
  7546. *Steve Henson*
  7547. * Several fixes and enhancements to the OID generation code. The old code
  7548. sometimes allowed invalid OIDs (1.X for X >= 40 for example), couldn't
  7549. handle numbers larger than ULONG_MAX, truncated printing and had a
  7550. non standard OBJ_obj2txt() behaviour.
  7551. *Steve Henson*
  7552. * Add support for building of engines under engine/ as shared libraries
  7553. under VC++ build system.
  7554. *Steve Henson*
  7555. * Corrected the numerous bugs in the Win32 path splitter in DSO.
  7556. Hopefully, we will not see any false combination of paths any more.
  7557. *Richard Levitte*
  7558. ### Changes between 0.9.8 and 0.9.8a [11 Oct 2005]
  7559. * Remove the functionality of SSL_OP_MSIE_SSLV2_RSA_PADDING
  7560. (part of SSL_OP_ALL). This option used to disable the
  7561. countermeasure against man-in-the-middle protocol-version
  7562. rollback in the SSL 2.0 server implementation, which is a bad
  7563. idea. ([CVE-2005-2969])
  7564. *Bodo Moeller; problem pointed out by Yutaka Oiwa (Research Center
  7565. for Information Security, National Institute of Advanced Industrial
  7566. Science and Technology [AIST], Japan)*
  7567. * Add two function to clear and return the verify parameter flags.
  7568. *Steve Henson*
  7569. * Keep cipherlists sorted in the source instead of sorting them at
  7570. runtime, thus removing the need for a lock.
  7571. *Nils Larsch*
  7572. * Avoid some small subgroup attacks in Diffie-Hellman.
  7573. *Nick Mathewson and Ben Laurie*
  7574. * Add functions for well-known primes.
  7575. *Nick Mathewson*
  7576. * Extended Windows CE support.
  7577. *Satoshi Nakamura and Andy Polyakov*
  7578. * Initialize SSL_METHOD structures at compile time instead of during
  7579. runtime, thus removing the need for a lock.
  7580. *Steve Henson*
  7581. * Make PKCS7_decrypt() work even if no certificate is supplied by
  7582. attempting to decrypt each encrypted key in turn. Add support to
  7583. smime utility.
  7584. *Steve Henson*
  7585. ### Changes between 0.9.7h and 0.9.8 [05 Jul 2005]
  7586. [NB: OpenSSL 0.9.7i and later 0.9.7 patch levels were released after
  7587. OpenSSL 0.9.8.]
  7588. * Add libcrypto.pc and libssl.pc for those who feel they need them.
  7589. *Richard Levitte*
  7590. * Change CA.sh and CA.pl so they don't bundle the CSR and the private
  7591. key into the same file any more.
  7592. *Richard Levitte*
  7593. * Add initial support for Win64, both IA64 and AMD64/x64 flavors.
  7594. *Andy Polyakov*
  7595. * Add -utf8 command line and config file option to 'ca'.
  7596. *Stefan <stf@udoma.org*
  7597. * Removed the macro des_crypt(), as it seems to conflict with some
  7598. libraries. Use DES_crypt().
  7599. *Richard Levitte*
  7600. * Correct naming of the 'chil' and '4758cca' ENGINEs. This
  7601. involves renaming the source and generated shared-libs for
  7602. both. The engines will accept the corrected or legacy ids
  7603. ('ncipher' and '4758_cca' respectively) when binding. NB,
  7604. this only applies when building 'shared'.
  7605. *Corinna Vinschen <vinschen@redhat.com> and Geoff Thorpe*
  7606. * Add attribute functions to EVP_PKEY structure. Modify
  7607. PKCS12_create() to recognize a CSP name attribute and
  7608. use it. Make -CSP option work again in pkcs12 utility.
  7609. *Steve Henson*
  7610. * Add new functionality to the bn blinding code:
  7611. - automatic re-creation of the BN_BLINDING parameters after
  7612. a fixed number of uses (currently 32)
  7613. - add new function for parameter creation
  7614. - introduce flags to control the update behaviour of the
  7615. BN_BLINDING parameters
  7616. - hide BN_BLINDING structure
  7617. Add a second BN_BLINDING slot to the RSA structure to improve
  7618. performance when a single RSA object is shared among several
  7619. threads.
  7620. *Nils Larsch*
  7621. * Add support for DTLS.
  7622. *Nagendra Modadugu <nagendra@cs.stanford.edu> and Ben Laurie*
  7623. * Add support for DER encoded private keys (SSL_FILETYPE_ASN1)
  7624. to SSL_CTX_use_PrivateKey_file() and SSL_use_PrivateKey_file()
  7625. *Walter Goulet*
  7626. * Remove buggy and incomplete DH cert support from
  7627. ssl/ssl_rsa.c and ssl/s3_both.c
  7628. *Nils Larsch*
  7629. * Use SHA-1 instead of MD5 as the default digest algorithm for
  7630. the `apps/openssl` commands.
  7631. *Nils Larsch*
  7632. * Compile clean with "-Wall -Wmissing-prototypes
  7633. -Wstrict-prototypes -Wmissing-declarations -Werror". Currently
  7634. DEBUG_SAFESTACK must also be set.
  7635. *Ben Laurie*
  7636. * Change ./Configure so that certain algorithms can be disabled by default.
  7637. The new counterpiece to "no-xxx" is "enable-xxx".
  7638. The patented RC5 and MDC2 algorithms will now be disabled unless
  7639. "enable-rc5" and "enable-mdc2", respectively, are specified.
  7640. (IDEA remains enabled despite being patented. This is because IDEA
  7641. is frequently required for interoperability, and there is no license
  7642. fee for non-commercial use. As before, "no-idea" can be used to
  7643. avoid this algorithm.)
  7644. *Bodo Moeller*
  7645. * Add processing of proxy certificates (see RFC 3820). This work was
  7646. sponsored by KTH (The Royal Institute of Technology in Stockholm) and
  7647. EGEE (Enabling Grids for E-science in Europe).
  7648. *Richard Levitte*
  7649. * RC4 performance overhaul on modern architectures/implementations, such
  7650. as Intel P4, IA-64 and AMD64.
  7651. *Andy Polyakov*
  7652. * New utility extract-section.pl. This can be used specify an alternative
  7653. section number in a pod file instead of having to treat each file as
  7654. a separate case in Makefile. This can be done by adding two lines to the
  7655. pod file:
  7656. =for comment openssl_section:XXX
  7657. The blank line is mandatory.
  7658. *Steve Henson*
  7659. * New arguments -certform, -keyform and -pass for s_client and s_server
  7660. to allow alternative format key and certificate files and passphrase
  7661. sources.
  7662. *Steve Henson*
  7663. * New structure X509_VERIFY_PARAM which combines current verify parameters,
  7664. update associated structures and add various utility functions.
  7665. Add new policy related verify parameters, include policy checking in
  7666. standard verify code. Enhance 'smime' application with extra parameters
  7667. to support policy checking and print out.
  7668. *Steve Henson*
  7669. * Add a new engine to support VIA PadLock ACE extensions in the VIA C3
  7670. Nehemiah processors. These extensions support AES encryption in hardware
  7671. as well as RNG (though RNG support is currently disabled).
  7672. *Michal Ludvig <michal@logix.cz>, with help from Andy Polyakov*
  7673. * Deprecate `BN_[get|set]_params()` functions (they were ignored internally).
  7674. *Geoff Thorpe*
  7675. * New FIPS 180-2 algorithms, SHA-224/-256/-384/-512 are implemented.
  7676. *Andy Polyakov and a number of other people*
  7677. * Improved PowerPC platform support. Most notably BIGNUM assembler
  7678. implementation contributed by IBM.
  7679. *Suresh Chari, Peter Waltenberg, Andy Polyakov*
  7680. * The new 'RSA_generate_key_ex' function now takes a BIGNUM for the public
  7681. exponent rather than 'unsigned long'. There is a corresponding change to
  7682. the new 'rsa_keygen' element of the RSA_METHOD structure.
  7683. *Jelte Jansen, Geoff Thorpe*
  7684. * Functionality for creating the initial serial number file is now
  7685. moved from CA.pl to the 'ca' utility with a new option -create_serial.
  7686. (Before OpenSSL 0.9.7e, CA.pl used to initialize the serial
  7687. number file to 1, which is bound to cause problems. To avoid
  7688. the problems while respecting compatibility between different 0.9.7
  7689. patchlevels, 0.9.7e employed 'openssl x509 -next_serial' in
  7690. CA.pl for serial number initialization. With the new release 0.9.8,
  7691. we can fix the problem directly in the 'ca' utility.)
  7692. *Steve Henson*
  7693. * Reduced header interdependencies by declaring more opaque objects in
  7694. ossl_typ.h. As a consequence, including some headers (eg. engine.h) will
  7695. give fewer recursive includes, which could break lazy source code - so
  7696. this change is covered by the OPENSSL_NO_DEPRECATED symbol. As always,
  7697. developers should define this symbol when building and using openssl to
  7698. ensure they track the recommended behaviour, interfaces, [etc], but
  7699. backwards-compatible behaviour prevails when this isn't defined.
  7700. *Geoff Thorpe*
  7701. * New function X509_POLICY_NODE_print() which prints out policy nodes.
  7702. *Steve Henson*
  7703. * Add new EVP function EVP_CIPHER_CTX_rand_key and associated functionality.
  7704. This will generate a random key of the appropriate length based on the
  7705. cipher context. The EVP_CIPHER can provide its own random key generation
  7706. routine to support keys of a specific form. This is used in the des and
  7707. 3des routines to generate a key of the correct parity. Update S/MIME
  7708. code to use new functions and hence generate correct parity DES keys.
  7709. Add EVP_CHECK_DES_KEY #define to return an error if the key is not
  7710. valid (weak or incorrect parity).
  7711. *Steve Henson*
  7712. * Add a local set of CRLs that can be used by X509_verify_cert() as well
  7713. as looking them up. This is useful when the verified structure may contain
  7714. CRLs, for example PKCS#7 signedData. Modify PKCS7_verify() to use any CRLs
  7715. present unless the new PKCS7_NO_CRL flag is asserted.
  7716. *Steve Henson*
  7717. * Extend ASN1 oid configuration module. It now additionally accepts the
  7718. syntax:
  7719. shortName = some long name, 1.2.3.4
  7720. *Steve Henson*
  7721. * Reimplemented the BN_CTX implementation. There is now no more static
  7722. limitation on the number of variables it can handle nor the depth of the
  7723. "stack" handling for BN_CTX_start()/BN_CTX_end() pairs. The stack
  7724. information can now expand as required, and rather than having a single
  7725. static array of bignums, BN_CTX now uses a linked-list of such arrays
  7726. allowing it to expand on demand whilst maintaining the usefulness of
  7727. BN_CTX's "bundling".
  7728. *Geoff Thorpe*
  7729. * Add a missing BN_CTX parameter to the 'rsa_mod_exp' callback in RSA_METHOD
  7730. to allow all RSA operations to function using a single BN_CTX.
  7731. *Geoff Thorpe*
  7732. * Preliminary support for certificate policy evaluation and checking. This
  7733. is initially intended to pass the tests outlined in "Conformance Testing
  7734. of Relying Party Client Certificate Path Processing Logic" v1.07.
  7735. *Steve Henson*
  7736. * bn_dup_expand() has been deprecated, it was introduced in 0.9.7 and
  7737. remained unused and not that useful. A variety of other little bignum
  7738. tweaks and fixes have also been made continuing on from the audit (see
  7739. below).
  7740. *Geoff Thorpe*
  7741. * Constify all or almost all d2i, c2i, s2i and r2i functions, along with
  7742. associated ASN1, EVP and SSL functions and old ASN1 macros.
  7743. *Richard Levitte*
  7744. * BN_zero() only needs to set 'top' and 'neg' to zero for correct results,
  7745. and this should never fail. So the return value from the use of
  7746. BN_set_word() (which can fail due to needless expansion) is now deprecated;
  7747. if OPENSSL_NO_DEPRECATED is defined, BN_zero() is a void macro.
  7748. *Geoff Thorpe*
  7749. * BN_CTX_get() should return zero-valued bignums, providing the same
  7750. initialised value as BN_new().
  7751. *Geoff Thorpe, suggested by Ulf Möller*
  7752. * Support for inhibitAnyPolicy certificate extension.
  7753. *Steve Henson*
  7754. * An audit of the BIGNUM code is underway, for which debugging code is
  7755. enabled when BN_DEBUG is defined. This makes stricter enforcements on what
  7756. is considered valid when processing BIGNUMs, and causes execution to
  7757. assert() when a problem is discovered. If BN_DEBUG_RAND is defined,
  7758. further steps are taken to deliberately pollute unused data in BIGNUM
  7759. structures to try and expose faulty code further on. For now, openssl will
  7760. (in its default mode of operation) continue to tolerate the inconsistent
  7761. forms that it has tolerated in the past, but authors and packagers should
  7762. consider trying openssl and their own applications when compiled with
  7763. these debugging symbols defined. It will help highlight potential bugs in
  7764. their own code, and will improve the test coverage for OpenSSL itself. At
  7765. some point, these tighter rules will become openssl's default to improve
  7766. maintainability, though the assert()s and other overheads will remain only
  7767. in debugging configurations. See bn.h for more details.
  7768. *Geoff Thorpe, Nils Larsch, Ulf Möller*
  7769. * BN_CTX_init() has been deprecated, as BN_CTX is an opaque structure
  7770. that can only be obtained through BN_CTX_new() (which implicitly
  7771. initialises it). The presence of this function only made it possible
  7772. to overwrite an existing structure (and cause memory leaks).
  7773. *Geoff Thorpe*
  7774. * Because of the callback-based approach for implementing LHASH as a
  7775. template type, lh_insert() adds opaque objects to hash-tables and
  7776. lh_doall() or lh_doall_arg() are typically used with a destructor callback
  7777. to clean up those corresponding objects before destroying the hash table
  7778. (and losing the object pointers). So some over-zealous constifications in
  7779. LHASH have been relaxed so that lh_insert() does not take (nor store) the
  7780. objects as "const" and the `lh_doall[_arg]` callback wrappers are not
  7781. prototyped to have "const" restrictions on the object pointers they are
  7782. given (and so aren't required to cast them away any more).
  7783. *Geoff Thorpe*
  7784. * The tmdiff.h API was so ugly and minimal that our own timing utility
  7785. (speed) prefers to use its own implementation. The two implementations
  7786. haven't been consolidated as yet (volunteers?) but the tmdiff API has had
  7787. its object type properly exposed (MS_TM) instead of casting to/from
  7788. `char *`. This may still change yet if someone realises MS_TM and
  7789. `ms_time_***`
  7790. aren't necessarily the greatest nomenclatures - but this is what was used
  7791. internally to the implementation so I've used that for now.
  7792. *Geoff Thorpe*
  7793. * Ensure that deprecated functions do not get compiled when
  7794. OPENSSL_NO_DEPRECATED is defined. Some "openssl" subcommands and a few of
  7795. the self-tests were still using deprecated key-generation functions so
  7796. these have been updated also.
  7797. *Geoff Thorpe*
  7798. * Reorganise PKCS#7 code to separate the digest location functionality
  7799. into PKCS7_find_digest(), digest addition into PKCS7_bio_add_digest().
  7800. New function PKCS7_set_digest() to set the digest type for PKCS#7
  7801. digestedData type. Add additional code to correctly generate the
  7802. digestedData type and add support for this type in PKCS7 initialization
  7803. functions.
  7804. *Steve Henson*
  7805. * New function PKCS7_set0_type_other() this initializes a PKCS7
  7806. structure of type "other".
  7807. *Steve Henson*
  7808. * Fix prime generation loop in crypto/bn/bn_prime.pl by making
  7809. sure the loop does correctly stop and breaking ("division by zero")
  7810. modulus operations are not performed. The (pre-generated) prime
  7811. table crypto/bn/bn_prime.h was already correct, but it could not be
  7812. re-generated on some platforms because of the "division by zero"
  7813. situation in the script.
  7814. *Ralf S. Engelschall*
  7815. * Update support for ECC-based TLS ciphersuites according to
  7816. draft-ietf-tls-ecc-03.txt: the KDF1 key derivation function with
  7817. SHA-1 now is only used for "small" curves (where the
  7818. representation of a field element takes up to 24 bytes); for
  7819. larger curves, the field element resulting from ECDH is directly
  7820. used as premaster secret.
  7821. *Douglas Stebila (Sun Microsystems Laboratories)*
  7822. * Add code for kP+lQ timings to crypto/ec/ectest.c, and add SEC2
  7823. curve secp160r1 to the tests.
  7824. *Douglas Stebila (Sun Microsystems Laboratories)*
  7825. * Add the possibility to load symbols globally with DSO.
  7826. *Götz Babin-Ebell <babin-ebell@trustcenter.de> via Richard Levitte*
  7827. * Add the functions ERR_set_mark() and ERR_pop_to_mark() for better
  7828. control of the error stack.
  7829. *Richard Levitte*
  7830. * Add support for STORE in ENGINE.
  7831. *Richard Levitte*
  7832. * Add the STORE type. The intention is to provide a common interface
  7833. to certificate and key stores, be they simple file-based stores, or
  7834. HSM-type store, or LDAP stores, or...
  7835. NOTE: The code is currently UNTESTED and isn't really used anywhere.
  7836. *Richard Levitte*
  7837. * Add a generic structure called OPENSSL_ITEM. This can be used to
  7838. pass a list of arguments to any function as well as provide a way
  7839. for a function to pass data back to the caller.
  7840. *Richard Levitte*
  7841. * Add the functions BUF_strndup() and BUF_memdup(). BUF_strndup()
  7842. works like BUF_strdup() but can be used to duplicate a portion of
  7843. a string. The copy gets NUL-terminated. BUF_memdup() duplicates
  7844. a memory area.
  7845. *Richard Levitte*
  7846. * Add the function sk_find_ex() which works like sk_find(), but will
  7847. return an index to an element even if an exact match couldn't be
  7848. found. The index is guaranteed to point at the element where the
  7849. searched-for key would be inserted to preserve sorting order.
  7850. *Richard Levitte*
  7851. * Add the function OBJ_bsearch_ex() which works like OBJ_bsearch() but
  7852. takes an extra flags argument for optional functionality. Currently,
  7853. the following flags are defined:
  7854. OBJ_BSEARCH_VALUE_ON_NOMATCH
  7855. This one gets OBJ_bsearch_ex() to return a pointer to the first
  7856. element where the comparing function returns a negative or zero
  7857. number.
  7858. OBJ_BSEARCH_FIRST_VALUE_ON_MATCH
  7859. This one gets OBJ_bsearch_ex() to return a pointer to the first
  7860. element where the comparing function returns zero. This is useful
  7861. if there are more than one element where the comparing function
  7862. returns zero.
  7863. *Richard Levitte*
  7864. * Make it possible to create self-signed certificates with 'openssl ca'
  7865. in such a way that the self-signed certificate becomes part of the
  7866. CA database and uses the same mechanisms for serial number generation
  7867. as all other certificate signing. The new flag '-selfsign' enables
  7868. this functionality. Adapt CA.sh and CA.pl.in.
  7869. *Richard Levitte*
  7870. * Add functionality to check the public key of a certificate request
  7871. against a given private. This is useful to check that a certificate
  7872. request can be signed by that key (self-signing).
  7873. *Richard Levitte*
  7874. * Make it possible to have multiple active certificates with the same
  7875. subject in the CA index file. This is done only if the keyword
  7876. 'unique_subject' is set to 'no' in the main CA section (default
  7877. if 'CA_default') of the configuration file. The value is saved
  7878. with the database itself in a separate index attribute file,
  7879. named like the index file with '.attr' appended to the name.
  7880. *Richard Levitte*
  7881. * Generate multi-valued AVAs using '+' notation in config files for
  7882. req and dirName.
  7883. *Steve Henson*
  7884. * Support for nameConstraints certificate extension.
  7885. *Steve Henson*
  7886. * Support for policyConstraints certificate extension.
  7887. *Steve Henson*
  7888. * Support for policyMappings certificate extension.
  7889. *Steve Henson*
  7890. * Make sure the default DSA_METHOD implementation only uses its
  7891. dsa_mod_exp() and/or bn_mod_exp() handlers if they are non-NULL,
  7892. and change its own handlers to be NULL so as to remove unnecessary
  7893. indirection. This lets alternative implementations fallback to the
  7894. default implementation more easily.
  7895. *Geoff Thorpe*
  7896. * Support for directoryName in GeneralName related extensions
  7897. in config files.
  7898. *Steve Henson*
  7899. * Make it possible to link applications using Makefile.shared.
  7900. Make that possible even when linking against static libraries!
  7901. *Richard Levitte*
  7902. * Support for single pass processing for S/MIME signing. This now
  7903. means that S/MIME signing can be done from a pipe, in addition
  7904. cleartext signing (multipart/signed type) is effectively streaming
  7905. and the signed data does not need to be all held in memory.
  7906. This is done with a new flag PKCS7_STREAM. When this flag is set
  7907. PKCS7_sign() only initializes the PKCS7 structure and the actual signing
  7908. is done after the data is output (and digests calculated) in
  7909. SMIME_write_PKCS7().
  7910. *Steve Henson*
  7911. * Add full support for -rpath/-R, both in shared libraries and
  7912. applications, at least on the platforms where it's known how
  7913. to do it.
  7914. *Richard Levitte*
  7915. * In crypto/ec/ec_mult.c, implement fast point multiplication with
  7916. precomputation, based on wNAF splitting: EC_GROUP_precompute_mult()
  7917. will now compute a table of multiples of the generator that
  7918. makes subsequent invocations of EC_POINTs_mul() or EC_POINT_mul()
  7919. faster (notably in the case of a single point multiplication,
  7920. scalar * generator).
  7921. *Nils Larsch, Bodo Moeller*
  7922. * IPv6 support for certificate extensions. The various extensions
  7923. which use the IP:a.b.c.d can now take IPv6 addresses using the
  7924. formats of RFC1884 2.2 . IPv6 addresses are now also displayed
  7925. correctly.
  7926. *Steve Henson*
  7927. * Added an ENGINE that implements RSA by performing private key
  7928. exponentiations with the GMP library. The conversions to and from
  7929. GMP's mpz_t format aren't optimised nor are any montgomery forms
  7930. cached, and on x86 it appears OpenSSL's own performance has caught up.
  7931. However there are likely to be other architectures where GMP could
  7932. provide a boost. This ENGINE is not built in by default, but it can be
  7933. specified at Configure time and should be accompanied by the necessary
  7934. linker additions, eg;
  7935. ./config -DOPENSSL_USE_GMP -lgmp
  7936. *Geoff Thorpe*
  7937. * "openssl engine" will not display ENGINE/DSO load failure errors when
  7938. testing availability of engines with "-t" - the old behaviour is
  7939. produced by increasing the feature's verbosity with "-tt".
  7940. *Geoff Thorpe*
  7941. * ECDSA routines: under certain error conditions uninitialized BN objects
  7942. could be freed. Solution: make sure initialization is performed early
  7943. enough. (Reported and fix supplied by Nils Larsch <nla@trustcenter.de>
  7944. via PR#459)
  7945. *Lutz Jaenicke*
  7946. * Key-generation can now be implemented in RSA_METHOD, DSA_METHOD
  7947. and DH_METHOD (eg. by ENGINE implementations) to override the normal
  7948. software implementations. For DSA and DH, parameter generation can
  7949. also be overridden by providing the appropriate method callbacks.
  7950. *Geoff Thorpe*
  7951. * Change the "progress" mechanism used in key-generation and
  7952. primality testing to functions that take a new BN_GENCB pointer in
  7953. place of callback/argument pairs. The new API functions have `_ex`
  7954. postfixes and the older functions are reimplemented as wrappers for
  7955. the new ones. The OPENSSL_NO_DEPRECATED symbol can be used to hide
  7956. declarations of the old functions to help (graceful) attempts to
  7957. migrate to the new functions. Also, the new key-generation API
  7958. functions operate on a caller-supplied key-structure and return
  7959. success/failure rather than returning a key or NULL - this is to
  7960. help make "keygen" another member function of RSA_METHOD etc.
  7961. Example for using the new callback interface:
  7962. int (*my_callback)(int a, int b, BN_GENCB *cb) = ...;
  7963. void *my_arg = ...;
  7964. BN_GENCB my_cb;
  7965. BN_GENCB_set(&my_cb, my_callback, my_arg);
  7966. return BN_is_prime_ex(some_bignum, BN_prime_checks, NULL, &cb);
  7967. /* For the meaning of a, b in calls to my_callback(), see the
  7968. * documentation of the function that calls the callback.
  7969. * cb will point to my_cb; my_arg can be retrieved as cb->arg.
  7970. * my_callback should return 1 if it wants BN_is_prime_ex()
  7971. * to continue, or 0 to stop.
  7972. */
  7973. *Geoff Thorpe*
  7974. * Change the ZLIB compression method to be stateful, and make it
  7975. available to TLS with the number defined in
  7976. draft-ietf-tls-compression-04.txt.
  7977. *Richard Levitte*
  7978. * Add the ASN.1 structures and functions for CertificatePair, which
  7979. is defined as follows (according to X.509_4thEditionDraftV6.pdf):
  7980. CertificatePair ::= SEQUENCE {
  7981. forward [0] Certificate OPTIONAL,
  7982. reverse [1] Certificate OPTIONAL,
  7983. -- at least one of the pair shall be present -- }
  7984. Also implement the PEM functions to read and write certificate
  7985. pairs, and defined the PEM tag as "CERTIFICATE PAIR".
  7986. This needed to be defined, mostly for the sake of the LDAP
  7987. attribute crossCertificatePair, but may prove useful elsewhere as
  7988. well.
  7989. *Richard Levitte*
  7990. * Make it possible to inhibit symlinking of shared libraries in
  7991. Makefile.shared, for Cygwin's sake.
  7992. *Richard Levitte*
  7993. * Extend the BIGNUM API by creating a function
  7994. void BN_set_negative(BIGNUM *a, int neg);
  7995. and a macro that behave like
  7996. int BN_is_negative(const BIGNUM *a);
  7997. to avoid the need to access 'a->neg' directly in applications.
  7998. *Nils Larsch*
  7999. * Implement fast modular reduction for pseudo-Mersenne primes
  8000. used in NIST curves (crypto/bn/bn_nist.c, crypto/ec/ecp_nist.c).
  8001. EC_GROUP_new_curve_GFp() will now automatically use this
  8002. if applicable.
  8003. *Nils Larsch <nla@trustcenter.de>*
  8004. * Add new lock type (CRYPTO_LOCK_BN).
  8005. *Bodo Moeller*
  8006. * Change the ENGINE framework to automatically load engines
  8007. dynamically from specific directories unless they could be
  8008. found to already be built in or loaded. Move all the
  8009. current engines except for the cryptodev one to a new
  8010. directory engines/.
  8011. The engines in engines/ are built as shared libraries if
  8012. the "shared" options was given to ./Configure or ./config.
  8013. Otherwise, they are inserted in libcrypto.a.
  8014. /usr/local/ssl/engines is the default directory for dynamic
  8015. engines, but that can be overridden at configure time through
  8016. the usual use of --prefix and/or --openssldir, and at run
  8017. time with the environment variable OPENSSL_ENGINES.
  8018. *Geoff Thorpe and Richard Levitte*
  8019. * Add Makefile.shared, a helper makefile to build shared
  8020. libraries. Adapt Makefile.org.
  8021. *Richard Levitte*
  8022. * Add version info to Win32 DLLs.
  8023. *Peter 'Luna' Runestig" <peter@runestig.com>*
  8024. * Add new 'medium level' PKCS#12 API. Certificates and keys
  8025. can be added using this API to created arbitrary PKCS#12
  8026. files while avoiding the low-level API.
  8027. New options to PKCS12_create(), key or cert can be NULL and
  8028. will then be omitted from the output file. The encryption
  8029. algorithm NIDs can be set to -1 for no encryption, the mac
  8030. iteration count can be set to 0 to omit the mac.
  8031. Enhance pkcs12 utility by making the -nokeys and -nocerts
  8032. options work when creating a PKCS#12 file. New option -nomac
  8033. to omit the mac, NONE can be set for an encryption algorithm.
  8034. New code is modified to use the enhanced PKCS12_create()
  8035. instead of the low-level API.
  8036. *Steve Henson*
  8037. * Extend ASN1 encoder to support indefinite length constructed
  8038. encoding. This can output sequences tags and octet strings in
  8039. this form. Modify pk7_asn1.c to support indefinite length
  8040. encoding. This is experimental and needs additional code to
  8041. be useful, such as an ASN1 bio and some enhanced streaming
  8042. PKCS#7 code.
  8043. Extend template encode functionality so that tagging is passed
  8044. down to the template encoder.
  8045. *Steve Henson*
  8046. * Let 'openssl req' fail if an argument to '-newkey' is not
  8047. recognized instead of using RSA as a default.
  8048. *Bodo Moeller*
  8049. * Add support for ECC-based ciphersuites from draft-ietf-tls-ecc-01.txt.
  8050. As these are not official, they are not included in "ALL";
  8051. the "ECCdraft" ciphersuite group alias can be used to select them.
  8052. *Vipul Gupta and Sumit Gupta (Sun Microsystems Laboratories)*
  8053. * Add ECDH engine support.
  8054. *Nils Gura and Douglas Stebila (Sun Microsystems Laboratories)*
  8055. * Add ECDH in new directory crypto/ecdh/.
  8056. *Douglas Stebila (Sun Microsystems Laboratories)*
  8057. * Let BN_rand_range() abort with an error after 100 iterations
  8058. without success (which indicates a broken PRNG).
  8059. *Bodo Moeller*
  8060. * Change BN_mod_sqrt() so that it verifies that the input value
  8061. is really the square of the return value. (Previously,
  8062. BN_mod_sqrt would show GIGO behaviour.)
  8063. *Bodo Moeller*
  8064. * Add named elliptic curves over binary fields from X9.62, SECG,
  8065. and WAP/WTLS; add OIDs that were still missing.
  8066. *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
  8067. * Extend the EC library for elliptic curves over binary fields
  8068. (new files ec2_smpl.c, ec2_smpt.c, ec2_mult.c in crypto/ec/).
  8069. New EC_METHOD:
  8070. EC_GF2m_simple_method
  8071. New API functions:
  8072. EC_GROUP_new_curve_GF2m
  8073. EC_GROUP_set_curve_GF2m
  8074. EC_GROUP_get_curve_GF2m
  8075. EC_POINT_set_affine_coordinates_GF2m
  8076. EC_POINT_get_affine_coordinates_GF2m
  8077. EC_POINT_set_compressed_coordinates_GF2m
  8078. Point compression for binary fields is disabled by default for
  8079. patent reasons (compile with OPENSSL_EC_BIN_PT_COMP defined to
  8080. enable it).
  8081. As binary polynomials are represented as BIGNUMs, various members
  8082. of the EC_GROUP and EC_POINT data structures can be shared
  8083. between the implementations for prime fields and binary fields;
  8084. the above `..._GF2m functions` (except for EX_GROUP_new_curve_GF2m)
  8085. are essentially identical to their `..._GFp` counterparts.
  8086. (For simplicity, the `..._GFp` prefix has been dropped from
  8087. various internal method names.)
  8088. An internal 'field_div' method (similar to 'field_mul' and
  8089. 'field_sqr') has been added; this is used only for binary fields.
  8090. *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
  8091. * Optionally dispatch EC_POINT_mul(), EC_POINT_precompute_mult()
  8092. through methods ('mul', 'precompute_mult').
  8093. The generic implementations (now internally called 'ec_wNAF_mul'
  8094. and 'ec_wNAF_precomputed_mult') remain the default if these
  8095. methods are undefined.
  8096. *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
  8097. * New function EC_GROUP_get_degree, which is defined through
  8098. EC_METHOD. For curves over prime fields, this returns the bit
  8099. length of the modulus.
  8100. *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
  8101. * New functions EC_GROUP_dup, EC_POINT_dup.
  8102. (These simply call ..._new and ..._copy).
  8103. *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
  8104. * Add binary polynomial arithmetic software in crypto/bn/bn_gf2m.c.
  8105. Polynomials are represented as BIGNUMs (where the sign bit is not
  8106. used) in the following functions [macros]:
  8107. BN_GF2m_add
  8108. BN_GF2m_sub [= BN_GF2m_add]
  8109. BN_GF2m_mod [wrapper for BN_GF2m_mod_arr]
  8110. BN_GF2m_mod_mul [wrapper for BN_GF2m_mod_mul_arr]
  8111. BN_GF2m_mod_sqr [wrapper for BN_GF2m_mod_sqr_arr]
  8112. BN_GF2m_mod_inv
  8113. BN_GF2m_mod_exp [wrapper for BN_GF2m_mod_exp_arr]
  8114. BN_GF2m_mod_sqrt [wrapper for BN_GF2m_mod_sqrt_arr]
  8115. BN_GF2m_mod_solve_quad [wrapper for BN_GF2m_mod_solve_quad_arr]
  8116. BN_GF2m_cmp [= BN_ucmp]
  8117. (Note that only the 'mod' functions are actually for fields GF(2^m).
  8118. BN_GF2m_add() is misnomer, but this is for the sake of consistency.)
  8119. For some functions, an the irreducible polynomial defining a
  8120. field can be given as an 'unsigned int[]' with strictly
  8121. decreasing elements giving the indices of those bits that are set;
  8122. i.e., p[] represents the polynomial
  8123. f(t) = t^p[0] + t^p[1] + ... + t^p[k]
  8124. where
  8125. p[0] > p[1] > ... > p[k] = 0.
  8126. This applies to the following functions:
  8127. BN_GF2m_mod_arr
  8128. BN_GF2m_mod_mul_arr
  8129. BN_GF2m_mod_sqr_arr
  8130. BN_GF2m_mod_inv_arr [wrapper for BN_GF2m_mod_inv]
  8131. BN_GF2m_mod_div_arr [wrapper for BN_GF2m_mod_div]
  8132. BN_GF2m_mod_exp_arr
  8133. BN_GF2m_mod_sqrt_arr
  8134. BN_GF2m_mod_solve_quad_arr
  8135. BN_GF2m_poly2arr
  8136. BN_GF2m_arr2poly
  8137. Conversion can be performed by the following functions:
  8138. BN_GF2m_poly2arr
  8139. BN_GF2m_arr2poly
  8140. bntest.c has additional tests for binary polynomial arithmetic.
  8141. Two implementations for BN_GF2m_mod_div() are available.
  8142. The default algorithm simply uses BN_GF2m_mod_inv() and
  8143. BN_GF2m_mod_mul(). The alternative algorithm is compiled in only
  8144. if OPENSSL_SUN_GF2M_DIV is defined (patent pending; read the
  8145. copyright notice in crypto/bn/bn_gf2m.c before enabling it).
  8146. *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
  8147. * Add new error code 'ERR_R_DISABLED' that can be used when some
  8148. functionality is disabled at compile-time.
  8149. *Douglas Stebila <douglas.stebila@sun.com>*
  8150. * Change default behaviour of 'openssl asn1parse' so that more
  8151. information is visible when viewing, e.g., a certificate:
  8152. Modify asn1_parse2 (crypto/asn1/asn1_par.c) so that in non-'dump'
  8153. mode the content of non-printable OCTET STRINGs is output in a
  8154. style similar to INTEGERs, but with '[HEX DUMP]' prepended to
  8155. avoid the appearance of a printable string.
  8156. *Nils Larsch <nla@trustcenter.de>*
  8157. * Add 'asn1_flag' and 'asn1_form' member to EC_GROUP with access
  8158. functions
  8159. EC_GROUP_set_asn1_flag()
  8160. EC_GROUP_get_asn1_flag()
  8161. EC_GROUP_set_point_conversion_form()
  8162. EC_GROUP_get_point_conversion_form()
  8163. These control ASN1 encoding details:
  8164. - Curves (i.e., groups) are encoded explicitly unless asn1_flag
  8165. has been set to OPENSSL_EC_NAMED_CURVE.
  8166. - Points are encoded in uncompressed form by default; options for
  8167. asn1_for are as for point2oct, namely
  8168. POINT_CONVERSION_COMPRESSED
  8169. POINT_CONVERSION_UNCOMPRESSED
  8170. POINT_CONVERSION_HYBRID
  8171. Also add 'seed' and 'seed_len' members to EC_GROUP with access
  8172. functions
  8173. EC_GROUP_set_seed()
  8174. EC_GROUP_get0_seed()
  8175. EC_GROUP_get_seed_len()
  8176. This is used only for ASN1 purposes (so far).
  8177. *Nils Larsch <nla@trustcenter.de>*
  8178. * Add 'field_type' member to EC_METHOD, which holds the NID
  8179. of the appropriate field type OID. The new function
  8180. EC_METHOD_get_field_type() returns this value.
  8181. *Nils Larsch <nla@trustcenter.de>*
  8182. * Add functions
  8183. EC_POINT_point2bn()
  8184. EC_POINT_bn2point()
  8185. EC_POINT_point2hex()
  8186. EC_POINT_hex2point()
  8187. providing useful interfaces to EC_POINT_point2oct() and
  8188. EC_POINT_oct2point().
  8189. *Nils Larsch <nla@trustcenter.de>*
  8190. * Change internals of the EC library so that the functions
  8191. EC_GROUP_set_generator()
  8192. EC_GROUP_get_generator()
  8193. EC_GROUP_get_order()
  8194. EC_GROUP_get_cofactor()
  8195. are implemented directly in crypto/ec/ec_lib.c and not dispatched
  8196. to methods, which would lead to unnecessary code duplication when
  8197. adding different types of curves.
  8198. *Nils Larsch <nla@trustcenter.de> with input by Bodo Moeller*
  8199. * Implement compute_wNAF (crypto/ec/ec_mult.c) without BIGNUM
  8200. arithmetic, and such that modified wNAFs are generated
  8201. (which avoid length expansion in many cases).
  8202. *Bodo Moeller*
  8203. * Add a function EC_GROUP_check_discriminant() (defined via
  8204. EC_METHOD) that verifies that the curve discriminant is non-zero.
  8205. Add a function EC_GROUP_check() that makes some sanity tests
  8206. on a EC_GROUP, its generator and order. This includes
  8207. EC_GROUP_check_discriminant().
  8208. *Nils Larsch <nla@trustcenter.de>*
  8209. * Add ECDSA in new directory crypto/ecdsa/.
  8210. Add applications 'openssl ecparam' and 'openssl ecdsa'
  8211. (these are based on 'openssl dsaparam' and 'openssl dsa').
  8212. ECDSA support is also included in various other files across the
  8213. library. Most notably,
  8214. - 'openssl req' now has a '-newkey ecdsa:file' option;
  8215. - EVP_PKCS82PKEY (crypto/evp/evp_pkey.c) now can handle ECDSA;
  8216. - X509_PUBKEY_get (crypto/asn1/x_pubkey.c) and
  8217. d2i_PublicKey (crypto/asn1/d2i_pu.c) have been modified to make
  8218. them suitable for ECDSA where domain parameters must be
  8219. extracted before the specific public key;
  8220. - ECDSA engine support has been added.
  8221. *Nils Larsch <nla@trustcenter.de>*
  8222. * Include some named elliptic curves, and add OIDs from X9.62,
  8223. SECG, and WAP/WTLS. Each curve can be obtained from the new
  8224. function
  8225. EC_GROUP_new_by_curve_name(),
  8226. and the list of available named curves can be obtained with
  8227. EC_get_builtin_curves().
  8228. Also add a 'curve_name' member to EC_GROUP objects, which can be
  8229. accessed via
  8230. EC_GROUP_set_curve_name()
  8231. EC_GROUP_get_curve_name()
  8232. *Nils Larsch <larsch@trustcenter.de, Bodo Moeller*
  8233. * Remove a few calls to bn_wexpand() in BN_sqr() (the one in there
  8234. was actually never needed) and in BN_mul(). The removal in BN_mul()
  8235. required a small change in bn_mul_part_recursive() and the addition
  8236. of the functions bn_cmp_part_words(), bn_sub_part_words() and
  8237. bn_add_part_words(), which do the same thing as bn_cmp_words(),
  8238. bn_sub_words() and bn_add_words() except they take arrays with
  8239. differing sizes.
  8240. *Richard Levitte*
  8241. ### Changes between 0.9.7l and 0.9.7m [23 Feb 2007]
  8242. * Cleanse PEM buffers before freeing them since they may contain
  8243. sensitive data.
  8244. *Benjamin Bennett <ben@psc.edu>*
  8245. * Include "!eNULL" in SSL_DEFAULT_CIPHER_LIST to make sure that
  8246. a ciphersuite string such as "DEFAULT:RSA" cannot enable
  8247. authentication-only ciphersuites.
  8248. *Bodo Moeller*
  8249. * Since AES128 and AES256 share a single mask bit in the logic of
  8250. ssl/ssl_ciph.c, the code for masking out disabled ciphers needs a
  8251. kludge to work properly if AES128 is available and AES256 isn't.
  8252. *Victor Duchovni*
  8253. * Expand security boundary to match 1.1.1 module.
  8254. *Steve Henson*
  8255. * Remove redundant features: hash file source, editing of test vectors
  8256. modify fipsld to use external fips_premain.c signature.
  8257. *Steve Henson*
  8258. * New perl script mkfipsscr.pl to create shell scripts or batch files to
  8259. run algorithm test programs.
  8260. *Steve Henson*
  8261. * Make algorithm test programs more tolerant of whitespace.
  8262. *Steve Henson*
  8263. * Have SSL/TLS server implementation tolerate "mismatched" record
  8264. protocol version while receiving ClientHello even if the
  8265. ClientHello is fragmented. (The server can't insist on the
  8266. particular protocol version it has chosen before the ServerHello
  8267. message has informed the client about his choice.)
  8268. *Bodo Moeller*
  8269. * Load error codes if they are not already present instead of using a
  8270. static variable. This allows them to be cleanly unloaded and reloaded.
  8271. *Steve Henson*
  8272. ### Changes between 0.9.7k and 0.9.7l [28 Sep 2006]
  8273. * Introduce limits to prevent malicious keys being able to
  8274. cause a denial of service. ([CVE-2006-2940])
  8275. *Steve Henson, Bodo Moeller*
  8276. * Fix ASN.1 parsing of certain invalid structures that can result
  8277. in a denial of service. ([CVE-2006-2937]) [Steve Henson]
  8278. * Fix buffer overflow in SSL_get_shared_ciphers() function.
  8279. ([CVE-2006-3738]) [Tavis Ormandy and Will Drewry, Google Security Team]
  8280. * Fix SSL client code which could crash if connecting to a
  8281. malicious SSLv2 server. ([CVE-2006-4343])
  8282. *Tavis Ormandy and Will Drewry, Google Security Team*
  8283. * Change ciphersuite string processing so that an explicit
  8284. ciphersuite selects this one ciphersuite (so that "AES256-SHA"
  8285. will no longer include "AES128-SHA"), and any other similar
  8286. ciphersuite (same bitmap) from *other* protocol versions (so that
  8287. "RC4-MD5" will still include both the SSL 2.0 ciphersuite and the
  8288. SSL 3.0/TLS 1.0 ciphersuite). This is a backport combining
  8289. changes from 0.9.8b and 0.9.8d.
  8290. *Bodo Moeller*
  8291. ### Changes between 0.9.7j and 0.9.7k [05 Sep 2006]
  8292. * Avoid PKCS #1 v1.5 signature attack discovered by Daniel Bleichenbacher
  8293. ([CVE-2006-4339]) [Ben Laurie and Google Security Team]
  8294. * Change the Unix randomness entropy gathering to use poll() when
  8295. possible instead of select(), since the latter has some
  8296. undesirable limitations.
  8297. *Darryl Miles via Richard Levitte and Bodo Moeller*
  8298. * Disable rogue ciphersuites:
  8299. - SSLv2 0x08 0x00 0x80 ("RC4-64-MD5")
  8300. - SSLv3/TLSv1 0x00 0x61 ("EXP1024-RC2-CBC-MD5")
  8301. - SSLv3/TLSv1 0x00 0x60 ("EXP1024-RC4-MD5")
  8302. The latter two were purportedly from
  8303. draft-ietf-tls-56-bit-ciphersuites-0[01].txt, but do not really
  8304. appear there.
  8305. Also deactivate the remaining ciphersuites from
  8306. draft-ietf-tls-56-bit-ciphersuites-01.txt. These are just as
  8307. unofficial, and the ID has long expired.
  8308. *Bodo Moeller*
  8309. * Fix RSA blinding Heisenbug (problems sometimes occurred on
  8310. dual-core machines) and other potential thread-safety issues.
  8311. *Bodo Moeller*
  8312. ### Changes between 0.9.7i and 0.9.7j [04 May 2006]
  8313. * Adapt fipsld and the build system to link against the validated FIPS
  8314. module in FIPS mode.
  8315. *Steve Henson*
  8316. * Fixes for VC++ 2005 build under Windows.
  8317. *Steve Henson*
  8318. * Add new Windows build target VC-32-GMAKE for VC++. This uses GNU make
  8319. from a Windows bash shell such as MSYS. It is autodetected from the
  8320. "config" script when run from a VC++ environment. Modify standard VC++
  8321. build to use fipscanister.o from the GNU make build.
  8322. *Steve Henson*
  8323. ### Changes between 0.9.7h and 0.9.7i [14 Oct 2005]
  8324. * Wrapped the definition of EVP_MAX_MD_SIZE in a #ifdef OPENSSL_FIPS.
  8325. The value now differs depending on if you build for FIPS or not.
  8326. BEWARE! A program linked with a shared FIPSed libcrypto can't be
  8327. safely run with a non-FIPSed libcrypto, as it may crash because of
  8328. the difference induced by this change.
  8329. *Andy Polyakov*
  8330. ### Changes between 0.9.7g and 0.9.7h [11 Oct 2005]
  8331. * Remove the functionality of SSL_OP_MSIE_SSLV2_RSA_PADDING
  8332. (part of SSL_OP_ALL). This option used to disable the
  8333. countermeasure against man-in-the-middle protocol-version
  8334. rollback in the SSL 2.0 server implementation, which is a bad
  8335. idea. ([CVE-2005-2969])
  8336. *Bodo Moeller; problem pointed out by Yutaka Oiwa (Research Center
  8337. for Information Security, National Institute of Advanced Industrial
  8338. Science and Technology [AIST, Japan)]*
  8339. * Minimal support for X9.31 signatures and PSS padding modes. This is
  8340. mainly for FIPS compliance and not fully integrated at this stage.
  8341. *Steve Henson*
  8342. * For DSA signing, unless DSA_FLAG_NO_EXP_CONSTTIME is set, perform
  8343. the exponentiation using a fixed-length exponent. (Otherwise,
  8344. the information leaked through timing could expose the secret key
  8345. after many signatures; cf. Bleichenbacher's attack on DSA with
  8346. biased k.)
  8347. *Bodo Moeller*
  8348. * Make a new fixed-window mod_exp implementation the default for
  8349. RSA, DSA, and DH private-key operations so that the sequence of
  8350. squares and multiplies and the memory access pattern are
  8351. independent of the particular secret key. This will mitigate
  8352. cache-timing and potential related attacks.
  8353. BN_mod_exp_mont_consttime() is the new exponentiation implementation,
  8354. and this is automatically used by BN_mod_exp_mont() if the new flag
  8355. BN_FLG_EXP_CONSTTIME is set for the exponent. RSA, DSA, and DH
  8356. will use this BN flag for private exponents unless the flag
  8357. RSA_FLAG_NO_EXP_CONSTTIME, DSA_FLAG_NO_EXP_CONSTTIME, or
  8358. DH_FLAG_NO_EXP_CONSTTIME, respectively, is set.
  8359. *Matthew D Wood (Intel Corp), with some changes by Bodo Moeller*
  8360. * Change the client implementation for SSLv23_method() and
  8361. SSLv23_client_method() so that is uses the SSL 3.0/TLS 1.0
  8362. Client Hello message format if the SSL_OP_NO_SSLv2 option is set.
  8363. (Previously, the SSL 2.0 backwards compatible Client Hello
  8364. message format would be used even with SSL_OP_NO_SSLv2.)
  8365. *Bodo Moeller*
  8366. * Add support for smime-type MIME parameter in S/MIME messages which some
  8367. clients need.
  8368. *Steve Henson*
  8369. * New function BN_MONT_CTX_set_locked() to set montgomery parameters in
  8370. a threadsafe manner. Modify rsa code to use new function and add calls
  8371. to dsa and dh code (which had race conditions before).
  8372. *Steve Henson*
  8373. * Include the fixed error library code in the C error file definitions
  8374. instead of fixing them up at runtime. This keeps the error code
  8375. structures constant.
  8376. *Steve Henson*
  8377. ### Changes between 0.9.7f and 0.9.7g [11 Apr 2005]
  8378. [NB: OpenSSL 0.9.7h and later 0.9.7 patch levels were released after
  8379. OpenSSL 0.9.8.]
  8380. * Fixes for newer kerberos headers. NB: the casts are needed because
  8381. the 'length' field is signed on one version and unsigned on another
  8382. with no (?) obvious way to tell the difference, without these VC++
  8383. complains. Also the "definition" of FAR (blank) is no longer included
  8384. nor is the error ENOMEM. KRB5_PRIVATE has to be set to 1 to pick up
  8385. some needed definitions.
  8386. *Steve Henson*
  8387. * Undo Cygwin change.
  8388. *Ulf Möller*
  8389. * Added support for proxy certificates according to RFC 3820.
  8390. Because they may be a security thread to unaware applications,
  8391. they must be explicitly allowed in run-time. See
  8392. docs/HOWTO/proxy_certificates.txt for further information.
  8393. *Richard Levitte*
  8394. ### Changes between 0.9.7e and 0.9.7f [22 Mar 2005]
  8395. * Use (SSL_RANDOM_VALUE - 4) bytes of pseudo random data when generating
  8396. server and client random values. Previously
  8397. (SSL_RANDOM_VALUE - sizeof(time_t)) would be used which would result in
  8398. less random data when sizeof(time_t) > 4 (some 64 bit platforms).
  8399. This change has negligible security impact because:
  8400. 1. Server and client random values still have 24 bytes of pseudo random
  8401. data.
  8402. 2. Server and client random values are sent in the clear in the initial
  8403. handshake.
  8404. 3. The master secret is derived using the premaster secret (48 bytes in
  8405. size for static RSA ciphersuites) as well as client server and random
  8406. values.
  8407. The OpenSSL team would like to thank the UK NISCC for bringing this issue
  8408. to our attention.
  8409. *Stephen Henson, reported by UK NISCC*
  8410. * Use Windows randomness collection on Cygwin.
  8411. *Ulf Möller*
  8412. * Fix hang in EGD/PRNGD query when communication socket is closed
  8413. prematurely by EGD/PRNGD.
  8414. *Darren Tucker <dtucker@zip.com.au> via Lutz Jänicke, resolves #1014*
  8415. * Prompt for pass phrases when appropriate for PKCS12 input format.
  8416. *Steve Henson*
  8417. * Back-port of selected performance improvements from development
  8418. branch, as well as improved support for PowerPC platforms.
  8419. *Andy Polyakov*
  8420. * Add lots of checks for memory allocation failure, error codes to indicate
  8421. failure and freeing up memory if a failure occurs.
  8422. *Nauticus Networks SSL Team <openssl@nauticusnet.com>, Steve Henson*
  8423. * Add new -passin argument to dgst.
  8424. *Steve Henson*
  8425. * Perform some character comparisons of different types in X509_NAME_cmp:
  8426. this is needed for some certificates that re-encode DNs into UTF8Strings
  8427. (in violation of RFC3280) and can't or won't issue name rollover
  8428. certificates.
  8429. *Steve Henson*
  8430. * Make an explicit check during certificate validation to see that
  8431. the CA setting in each certificate on the chain is correct. As a
  8432. side effect always do the following basic checks on extensions,
  8433. not just when there's an associated purpose to the check:
  8434. - if there is an unhandled critical extension (unless the user
  8435. has chosen to ignore this fault)
  8436. - if the path length has been exceeded (if one is set at all)
  8437. - that certain extensions fit the associated purpose (if one has
  8438. been given)
  8439. *Richard Levitte*
  8440. ### Changes between 0.9.7d and 0.9.7e [25 Oct 2004]
  8441. * Avoid a race condition when CRLs are checked in a multi threaded
  8442. environment. This would happen due to the reordering of the revoked
  8443. entries during signature checking and serial number lookup. Now the
  8444. encoding is cached and the serial number sort performed under a lock.
  8445. Add new STACK function sk_is_sorted().
  8446. *Steve Henson*
  8447. * Add Delta CRL to the extension code.
  8448. *Steve Henson*
  8449. * Various fixes to s3_pkt.c so alerts are sent properly.
  8450. *David Holmes <d.holmes@f5.com>*
  8451. * Reduce the chances of duplicate issuer name and serial numbers (in
  8452. violation of RFC3280) using the OpenSSL certificate creation utilities.
  8453. This is done by creating a random 64 bit value for the initial serial
  8454. number when a serial number file is created or when a self signed
  8455. certificate is created using 'openssl req -x509'. The initial serial
  8456. number file is created using 'openssl x509 -next_serial' in CA.pl
  8457. rather than being initialized to 1.
  8458. *Steve Henson*
  8459. ### Changes between 0.9.7c and 0.9.7d [17 Mar 2004]
  8460. * Fix null-pointer assignment in do_change_cipher_spec() revealed
  8461. by using the Codenomicon TLS Test Tool ([CVE-2004-0079])
  8462. *Joe Orton, Steve Henson*
  8463. * Fix flaw in SSL/TLS handshaking when using Kerberos ciphersuites
  8464. ([CVE-2004-0112])
  8465. *Joe Orton, Steve Henson*
  8466. * Make it possible to have multiple active certificates with the same
  8467. subject in the CA index file. This is done only if the keyword
  8468. 'unique_subject' is set to 'no' in the main CA section (default
  8469. if 'CA_default') of the configuration file. The value is saved
  8470. with the database itself in a separate index attribute file,
  8471. named like the index file with '.attr' appended to the name.
  8472. *Richard Levitte*
  8473. * X509 verify fixes. Disable broken certificate workarounds when
  8474. X509_V_FLAGS_X509_STRICT is set. Check CRL issuer has cRLSign set if
  8475. keyUsage extension present. Don't accept CRLs with unhandled critical
  8476. extensions: since verify currently doesn't process CRL extensions this
  8477. rejects a CRL with *any* critical extensions. Add new verify error codes
  8478. for these cases.
  8479. *Steve Henson*
  8480. * When creating an OCSP nonce use an OCTET STRING inside the extnValue.
  8481. A clarification of RFC2560 will require the use of OCTET STRINGs and
  8482. some implementations cannot handle the current raw format. Since OpenSSL
  8483. copies and compares OCSP nonces as opaque blobs without any attempt at
  8484. parsing them this should not create any compatibility issues.
  8485. *Steve Henson*
  8486. * New md flag EVP_MD_CTX_FLAG_REUSE this allows md_data to be reused when
  8487. calling EVP_MD_CTX_copy_ex() to avoid calling OPENSSL_malloc(). Without
  8488. this HMAC (and other) operations are several times slower than OpenSSL
  8489. < 0.9.7.
  8490. *Steve Henson*
  8491. * Print out GeneralizedTime and UTCTime in ASN1_STRING_print_ex().
  8492. *Peter Sylvester <Peter.Sylvester@EdelWeb.fr>*
  8493. * Use the correct content when signing type "other".
  8494. *Steve Henson*
  8495. ### Changes between 0.9.7b and 0.9.7c [30 Sep 2003]
  8496. * Fix various bugs revealed by running the NISCC test suite:
  8497. Stop out of bounds reads in the ASN1 code when presented with
  8498. invalid tags (CVE-2003-0543 and CVE-2003-0544).
  8499. Free up ASN1_TYPE correctly if ANY type is invalid ([CVE-2003-0545]).
  8500. If verify callback ignores invalid public key errors don't try to check
  8501. certificate signature with the NULL public key.
  8502. *Steve Henson*
  8503. * New -ignore_err option in ocsp application to stop the server
  8504. exiting on the first error in a request.
  8505. *Steve Henson*
  8506. * In ssl3_accept() (ssl/s3_srvr.c) only accept a client certificate
  8507. if the server requested one: as stated in TLS 1.0 and SSL 3.0
  8508. specifications.
  8509. *Steve Henson*
  8510. * In ssl3_get_client_hello() (ssl/s3_srvr.c), tolerate additional
  8511. extra data after the compression methods not only for TLS 1.0
  8512. but also for SSL 3.0 (as required by the specification).
  8513. *Bodo Moeller; problem pointed out by Matthias Loepfe*
  8514. * Change X509_certificate_type() to mark the key as exported/exportable
  8515. when it's 512 *bits* long, not 512 bytes.
  8516. *Richard Levitte*
  8517. * Change AES_cbc_encrypt() so it outputs exact multiple of
  8518. blocks during encryption.
  8519. *Richard Levitte*
  8520. * Various fixes to base64 BIO and non blocking I/O. On write
  8521. flushes were not handled properly if the BIO retried. On read
  8522. data was not being buffered properly and had various logic bugs.
  8523. This also affects blocking I/O when the data being decoded is a
  8524. certain size.
  8525. *Steve Henson*
  8526. * Various S/MIME bugfixes and compatibility changes:
  8527. output correct application/pkcs7 MIME type if
  8528. PKCS7_NOOLDMIMETYPE is set. Tolerate some broken signatures.
  8529. Output CR+LF for EOL if PKCS7_CRLFEOL is set (this makes opening
  8530. of files as .eml work). Correctly handle very long lines in MIME
  8531. parser.
  8532. *Steve Henson*
  8533. ### Changes between 0.9.7a and 0.9.7b [10 Apr 2003]
  8534. * Countermeasure against the Klima-Pokorny-Rosa extension of
  8535. Bleichbacher's attack on PKCS #1 v1.5 padding: treat
  8536. a protocol version number mismatch like a decryption error
  8537. in ssl3_get_client_key_exchange (ssl/s3_srvr.c).
  8538. *Bodo Moeller*
  8539. * Turn on RSA blinding by default in the default implementation
  8540. to avoid a timing attack. Applications that don't want it can call
  8541. RSA_blinding_off() or use the new flag RSA_FLAG_NO_BLINDING.
  8542. They would be ill-advised to do so in most cases.
  8543. *Ben Laurie, Steve Henson, Geoff Thorpe, Bodo Moeller*
  8544. * Change RSA blinding code so that it works when the PRNG is not
  8545. seeded (in this case, the secret RSA exponent is abused as
  8546. an unpredictable seed -- if it is not unpredictable, there
  8547. is no point in blinding anyway). Make RSA blinding thread-safe
  8548. by remembering the creator's thread ID in rsa->blinding and
  8549. having all other threads use local one-time blinding factors
  8550. (this requires more computation than sharing rsa->blinding, but
  8551. avoids excessive locking; and if an RSA object is not shared
  8552. between threads, blinding will still be very fast).
  8553. *Bodo Moeller*
  8554. * Fixed a typo bug that would cause ENGINE_set_default() to set an
  8555. ENGINE as defaults for all supported algorithms irrespective of
  8556. the 'flags' parameter. 'flags' is now honoured, so applications
  8557. should make sure they are passing it correctly.
  8558. *Geoff Thorpe*
  8559. * Target "mingw" now allows native Windows code to be generated in
  8560. the Cygwin environment as well as with the MinGW compiler.
  8561. *Ulf Moeller*
  8562. ### Changes between 0.9.7 and 0.9.7a [19 Feb 2003]
  8563. * In ssl3_get_record (ssl/s3_pkt.c), minimize information leaked
  8564. via timing by performing a MAC computation even if incorrect
  8565. block cipher padding has been found. This is a countermeasure
  8566. against active attacks where the attacker has to distinguish
  8567. between bad padding and a MAC verification error. ([CVE-2003-0078])
  8568. *Bodo Moeller; problem pointed out by Brice Canvel (EPFL),
  8569. Alain Hiltgen (UBS), Serge Vaudenay (EPFL), and
  8570. Martin Vuagnoux (EPFL, Ilion)*
  8571. * Make the no-err option work as intended. The intention with no-err
  8572. is not to have the whole error stack handling routines removed from
  8573. libcrypto, it's only intended to remove all the function name and
  8574. reason texts, thereby removing some of the footprint that may not
  8575. be interesting if those errors aren't displayed anyway.
  8576. NOTE: it's still possible for any application or module to have its
  8577. own set of error texts inserted. The routines are there, just not
  8578. used by default when no-err is given.
  8579. *Richard Levitte*
  8580. * Add support for FreeBSD on IA64.
  8581. *dirk.meyer@dinoex.sub.org via Richard Levitte, resolves #454*
  8582. * Adjust DES_cbc_cksum() so it returns the same value as the MIT
  8583. Kerberos function mit_des_cbc_cksum(). Before this change,
  8584. the value returned by DES_cbc_cksum() was like the one from
  8585. mit_des_cbc_cksum(), except the bytes were swapped.
  8586. *Kevin Greaney <Kevin.Greaney@hp.com> and Richard Levitte*
  8587. * Allow an application to disable the automatic SSL chain building.
  8588. Before this a rather primitive chain build was always performed in
  8589. ssl3_output_cert_chain(): an application had no way to send the
  8590. correct chain if the automatic operation produced an incorrect result.
  8591. Now the chain builder is disabled if either:
  8592. 1. Extra certificates are added via SSL_CTX_add_extra_chain_cert().
  8593. 2. The mode flag SSL_MODE_NO_AUTO_CHAIN is set.
  8594. The reasoning behind this is that an application would not want the
  8595. auto chain building to take place if extra chain certificates are
  8596. present and it might also want a means of sending no additional
  8597. certificates (for example the chain has two certificates and the
  8598. root is omitted).
  8599. *Steve Henson*
  8600. * Add the possibility to build without the ENGINE framework.
  8601. *Steven Reddie <smr@essemer.com.au> via Richard Levitte*
  8602. * Under Win32 gmtime() can return NULL: check return value in
  8603. OPENSSL_gmtime(). Add error code for case where gmtime() fails.
  8604. *Steve Henson*
  8605. * DSA routines: under certain error conditions uninitialized BN objects
  8606. could be freed. Solution: make sure initialization is performed early
  8607. enough. (Reported and fix supplied by Ivan D Nestlerode <nestler@MIT.EDU>,
  8608. Nils Larsch <nla@trustcenter.de> via PR#459)
  8609. *Lutz Jaenicke*
  8610. * Another fix for SSLv2 session ID handling: the session ID was incorrectly
  8611. checked on reconnect on the client side, therefore session resumption
  8612. could still fail with a "ssl session id is different" error. This
  8613. behaviour is masked when SSL_OP_ALL is used due to
  8614. SSL_OP_MICROSOFT_SESS_ID_BUG being set.
  8615. Behaviour observed by Crispin Flowerday <crispin@flowerday.cx> as
  8616. followup to PR #377.
  8617. *Lutz Jaenicke*
  8618. * IA-32 assembler support enhancements: unified ELF targets, support
  8619. for SCO/Caldera platforms, fix for Cygwin shared build.
  8620. *Andy Polyakov*
  8621. * Add support for FreeBSD on sparc64. As a consequence, support for
  8622. FreeBSD on non-x86 processors is separate from x86 processors on
  8623. the config script, much like the NetBSD support.
  8624. *Richard Levitte & Kris Kennaway <kris@obsecurity.org>*
  8625. ### Changes between 0.9.6h and 0.9.7 [31 Dec 2002]
  8626. [NB: OpenSSL 0.9.6i and later 0.9.6 patch levels were released after
  8627. OpenSSL 0.9.7.]
  8628. * Fix session ID handling in SSLv2 client code: the SERVER FINISHED
  8629. code (06) was taken as the first octet of the session ID and the last
  8630. octet was ignored consequently. As a result SSLv2 client side session
  8631. caching could not have worked due to the session ID mismatch between
  8632. client and server.
  8633. Behaviour observed by Crispin Flowerday <crispin@flowerday.cx> as
  8634. PR #377.
  8635. *Lutz Jaenicke*
  8636. * Change the declaration of needed Kerberos libraries to use EX_LIBS
  8637. instead of the special (and badly supported) LIBKRB5. LIBKRB5 is
  8638. removed entirely.
  8639. *Richard Levitte*
  8640. * The hw_ncipher.c engine requires dynamic locks. Unfortunately, it
  8641. seems that in spite of existing for more than a year, many application
  8642. author have done nothing to provide the necessary callbacks, which
  8643. means that this particular engine will not work properly anywhere.
  8644. This is a very unfortunate situation which forces us, in the name
  8645. of usability, to give the hw_ncipher.c a static lock, which is part
  8646. of libcrypto.
  8647. NOTE: This is for the 0.9.7 series ONLY. This hack will never
  8648. appear in 0.9.8 or later. We EXPECT application authors to have
  8649. dealt properly with this when 0.9.8 is released (unless we actually
  8650. make such changes in the libcrypto locking code that changes will
  8651. have to be made anyway).
  8652. *Richard Levitte*
  8653. * In asn1_d2i_read_bio() repeatedly call BIO_read() until all content
  8654. octets have been read, EOF or an error occurs. Without this change
  8655. some truncated ASN1 structures will not produce an error.
  8656. *Steve Henson*
  8657. * Disable Heimdal support, since it hasn't been fully implemented.
  8658. Still give the possibility to force the use of Heimdal, but with
  8659. warnings and a request that patches get sent to openssl-dev.
  8660. *Richard Levitte*
  8661. * Add the VC-CE target, introduce the WINCE sysname, and add
  8662. INSTALL.WCE and appropriate conditionals to make it build.
  8663. *Steven Reddie <smr@essemer.com.au> via Richard Levitte*
  8664. * Change the DLL names for Cygwin to cygcrypto-x.y.z.dll and
  8665. cygssl-x.y.z.dll, where x, y and z are the major, minor and
  8666. edit numbers of the version.
  8667. *Corinna Vinschen <vinschen@redhat.com> and Richard Levitte*
  8668. * Introduce safe string copy and catenation functions
  8669. (BUF_strlcpy() and BUF_strlcat()).
  8670. *Ben Laurie (CHATS) and Richard Levitte*
  8671. * Avoid using fixed-size buffers for one-line DNs.
  8672. *Ben Laurie (CHATS)*
  8673. * Add BUF_MEM_grow_clean() to avoid information leakage when
  8674. resizing buffers containing secrets, and use where appropriate.
  8675. *Ben Laurie (CHATS)*
  8676. * Avoid using fixed size buffers for configuration file location.
  8677. *Ben Laurie (CHATS)*
  8678. * Avoid filename truncation for various CA files.
  8679. *Ben Laurie (CHATS)*
  8680. * Use sizeof in preference to magic numbers.
  8681. *Ben Laurie (CHATS)*
  8682. * Avoid filename truncation in cert requests.
  8683. *Ben Laurie (CHATS)*
  8684. * Add assertions to check for (supposedly impossible) buffer
  8685. overflows.
  8686. *Ben Laurie (CHATS)*
  8687. * Don't cache truncated DNS entries in the local cache (this could
  8688. potentially lead to a spoofing attack).
  8689. *Ben Laurie (CHATS)*
  8690. * Fix various buffers to be large enough for hex/decimal
  8691. representations in a platform independent manner.
  8692. *Ben Laurie (CHATS)*
  8693. * Add CRYPTO_realloc_clean() to avoid information leakage when
  8694. resizing buffers containing secrets, and use where appropriate.
  8695. *Ben Laurie (CHATS)*
  8696. * Add BIO_indent() to avoid much slightly worrying code to do
  8697. indents.
  8698. *Ben Laurie (CHATS)*
  8699. * Convert sprintf()/BIO_puts() to BIO_printf().
  8700. *Ben Laurie (CHATS)*
  8701. * buffer_gets() could terminate with the buffer only half
  8702. full. Fixed.
  8703. *Ben Laurie (CHATS)*
  8704. * Add assertions to prevent user-supplied crypto functions from
  8705. overflowing internal buffers by having large block sizes, etc.
  8706. *Ben Laurie (CHATS)*
  8707. * New OPENSSL_assert() macro (similar to assert(), but enabled
  8708. unconditionally).
  8709. *Ben Laurie (CHATS)*
  8710. * Eliminate unused copy of key in RC4.
  8711. *Ben Laurie (CHATS)*
  8712. * Eliminate unused and incorrectly sized buffers for IV in pem.h.
  8713. *Ben Laurie (CHATS)*
  8714. * Fix off-by-one error in EGD path.
  8715. *Ben Laurie (CHATS)*
  8716. * If RANDFILE path is too long, ignore instead of truncating.
  8717. *Ben Laurie (CHATS)*
  8718. * Eliminate unused and incorrectly sized X.509 structure
  8719. CBCParameter.
  8720. *Ben Laurie (CHATS)*
  8721. * Eliminate unused and dangerous function knumber().
  8722. *Ben Laurie (CHATS)*
  8723. * Eliminate unused and dangerous structure, KSSL_ERR.
  8724. *Ben Laurie (CHATS)*
  8725. * Protect against overlong session ID context length in an encoded
  8726. session object. Since these are local, this does not appear to be
  8727. exploitable.
  8728. *Ben Laurie (CHATS)*
  8729. * Change from security patch (see 0.9.6e below) that did not affect
  8730. the 0.9.6 release series:
  8731. Remote buffer overflow in SSL3 protocol - an attacker could
  8732. supply an oversized master key in Kerberos-enabled versions.
  8733. ([CVE-2002-0657])
  8734. *Ben Laurie (CHATS)*
  8735. * Change the SSL kerb5 codes to match RFC 2712.
  8736. *Richard Levitte*
  8737. * Make -nameopt work fully for req and add -reqopt switch.
  8738. *Michael Bell <michael.bell@rz.hu-berlin.de>, Steve Henson*
  8739. * The "block size" for block ciphers in CFB and OFB mode should be 1.
  8740. *Steve Henson, reported by Yngve Nysaeter Pettersen <yngve@opera.com>*
  8741. * Make sure tests can be performed even if the corresponding algorithms
  8742. have been removed entirely. This was also the last step to make
  8743. OpenSSL compilable with DJGPP under all reasonable conditions.
  8744. *Richard Levitte, Doug Kaufman <dkaufman@rahul.net>*
  8745. * Add cipher selection rules COMPLEMENTOFALL and COMPLEMENTOFDEFAULT
  8746. to allow version independent disabling of normally unselected ciphers,
  8747. which may be activated as a side-effect of selecting a single cipher.
  8748. (E.g., cipher list string "RSA" enables ciphersuites that are left
  8749. out of "ALL" because they do not provide symmetric encryption.
  8750. "RSA:!COMPLEMEMENTOFALL" avoids these unsafe ciphersuites.)
  8751. *Lutz Jaenicke, Bodo Moeller*
  8752. * Add appropriate support for separate platform-dependent build
  8753. directories. The recommended way to make a platform-dependent
  8754. build directory is the following (tested on Linux), maybe with
  8755. some local tweaks:
  8756. # Place yourself outside of the OpenSSL source tree. In
  8757. # this example, the environment variable OPENSSL_SOURCE
  8758. # is assumed to contain the absolute OpenSSL source directory.
  8759. mkdir -p objtree/"`uname -s`-`uname -r`-`uname -m`"
  8760. cd objtree/"`uname -s`-`uname -r`-`uname -m`"
  8761. (cd $OPENSSL_SOURCE; find . -type f) | while read F; do
  8762. mkdir -p `dirname $F`
  8763. ln -s $OPENSSL_SOURCE/$F $F
  8764. done
  8765. To be absolutely sure not to disturb the source tree, a "make clean"
  8766. is a good thing. If it isn't successful, don't worry about it,
  8767. it probably means the source directory is very clean.
  8768. *Richard Levitte*
  8769. * Make sure any ENGINE control commands make local copies of string
  8770. pointers passed to them whenever necessary. Otherwise it is possible
  8771. the caller may have overwritten (or deallocated) the original string
  8772. data when a later ENGINE operation tries to use the stored values.
  8773. *Götz Babin-Ebell <babinebell@trustcenter.de>*
  8774. * Improve diagnostics in file reading and command-line digests.
  8775. *Ben Laurie aided and abetted by Solar Designer <solar@openwall.com>*
  8776. * Add AES modes CFB and OFB to the object database. Correct an
  8777. error in AES-CFB decryption.
  8778. *Richard Levitte*
  8779. * Remove most calls to EVP_CIPHER_CTX_cleanup() in evp_enc.c, this
  8780. allows existing EVP_CIPHER_CTX structures to be reused after
  8781. calling `EVP_*Final()`. This behaviour is used by encryption
  8782. BIOs and some applications. This has the side effect that
  8783. applications must explicitly clean up cipher contexts with
  8784. EVP_CIPHER_CTX_cleanup() or they will leak memory.
  8785. *Steve Henson*
  8786. * Check the values of dna and dnb in bn_mul_recursive before calling
  8787. bn_mul_comba (a non zero value means the a or b arrays do not contain
  8788. n2 elements) and fallback to bn_mul_normal if either is not zero.
  8789. *Steve Henson*
  8790. * Fix escaping of non-ASCII characters when using the -subj option
  8791. of the "openssl req" command line tool. (Robert Joop <joop@fokus.gmd.de>)
  8792. *Lutz Jaenicke*
  8793. * Make object definitions compliant to LDAP (RFC2256): SN is the short
  8794. form for "surname", serialNumber has no short form.
  8795. Use "mail" as the short name for "rfc822Mailbox" according to RFC2798;
  8796. therefore remove "mail" short name for "internet 7".
  8797. The OID for unique identifiers in X509 certificates is
  8798. x500UniqueIdentifier, not uniqueIdentifier.
  8799. Some more OID additions. (Michael Bell <michael.bell@rz.hu-berlin.de>)
  8800. *Lutz Jaenicke*
  8801. * Add an "init" command to the ENGINE config module and auto initialize
  8802. ENGINEs. Without any "init" command the ENGINE will be initialized
  8803. after all ctrl commands have been executed on it. If init=1 the
  8804. ENGINE is initialized at that point (ctrls before that point are run
  8805. on the uninitialized ENGINE and after on the initialized one). If
  8806. init=0 then the ENGINE will not be initialized at all.
  8807. *Steve Henson*
  8808. * Fix the 'app_verify_callback' interface so that the user-defined
  8809. argument is actually passed to the callback: In the
  8810. SSL_CTX_set_cert_verify_callback() prototype, the callback
  8811. declaration has been changed from
  8812. int (*cb)()
  8813. into
  8814. int (*cb)(X509_STORE_CTX *,void *);
  8815. in ssl_verify_cert_chain (ssl/ssl_cert.c), the call
  8816. i=s->ctx->app_verify_callback(&ctx)
  8817. has been changed into
  8818. i=s->ctx->app_verify_callback(&ctx, s->ctx->app_verify_arg).
  8819. To update applications using SSL_CTX_set_cert_verify_callback(),
  8820. a dummy argument can be added to their callback functions.
  8821. *D. K. Smetters <smetters@parc.xerox.com>*
  8822. * Added the '4758cca' ENGINE to support IBM 4758 cards.
  8823. *Maurice Gittens <maurice@gittens.nl>, touchups by Geoff Thorpe*
  8824. * Add and OPENSSL_LOAD_CONF define which will cause
  8825. OpenSSL_add_all_algorithms() to load the openssl.cnf config file.
  8826. This allows older applications to transparently support certain
  8827. OpenSSL features: such as crypto acceleration and dynamic ENGINE loading.
  8828. Two new functions OPENSSL_add_all_algorithms_noconf() which will never
  8829. load the config file and OPENSSL_add_all_algorithms_conf() which will
  8830. always load it have also been added.
  8831. *Steve Henson*
  8832. * Add the OFB, CFB and CTR (all with 128 bit feedback) to AES.
  8833. Adjust NIDs and EVP layer.
  8834. *Stephen Sprunk <stephen@sprunk.org> and Richard Levitte*
  8835. * Config modules support in openssl utility.
  8836. Most commands now load modules from the config file,
  8837. though in a few (such as version) this isn't done
  8838. because it couldn't be used for anything.
  8839. In the case of ca and req the config file used is
  8840. the same as the utility itself: that is the -config
  8841. command line option can be used to specify an
  8842. alternative file.
  8843. *Steve Henson*
  8844. * Move default behaviour from OPENSSL_config(). If appname is NULL
  8845. use "openssl_conf" if filename is NULL use default openssl config file.
  8846. *Steve Henson*
  8847. * Add an argument to OPENSSL_config() to allow the use of an alternative
  8848. config section name. Add a new flag to tolerate a missing config file
  8849. and move code to CONF_modules_load_file().
  8850. *Steve Henson*
  8851. * Support for crypto accelerator cards from Accelerated Encryption
  8852. Processing, www.aep.ie. (Use engine 'aep')
  8853. The support was copied from 0.9.6c [engine] and adapted/corrected
  8854. to work with the new engine framework.
  8855. *AEP Inc. and Richard Levitte*
  8856. * Support for SureWare crypto accelerator cards from Baltimore
  8857. Technologies. (Use engine 'sureware')
  8858. The support was copied from 0.9.6c [engine] and adapted
  8859. to work with the new engine framework.
  8860. *Richard Levitte*
  8861. * Have the CHIL engine fork-safe (as defined by nCipher) and actually
  8862. make the newer ENGINE framework commands for the CHIL engine work.
  8863. *Toomas Kiisk <vix@cyber.ee> and Richard Levitte*
  8864. * Make it possible to produce shared libraries on ReliantUNIX.
  8865. *Robert Dahlem <Robert.Dahlem@ffm2.siemens.de> via Richard Levitte*
  8866. * Add the configuration target debug-linux-ppro.
  8867. Make 'openssl rsa' use the general key loading routines
  8868. implemented in `apps.c`, and make those routines able to
  8869. handle the key format FORMAT_NETSCAPE and the variant
  8870. FORMAT_IISSGC.
  8871. *Toomas Kiisk <vix@cyber.ee> via Richard Levitte*
  8872. * Fix a crashbug and a logic bug in hwcrhk_load_pubkey().
  8873. *Toomas Kiisk <vix@cyber.ee> via Richard Levitte*
  8874. * Add -keyform to rsautl, and document -engine.
  8875. *Richard Levitte, inspired by Toomas Kiisk <vix@cyber.ee>*
  8876. * Change BIO_new_file (crypto/bio/bss_file.c) to use new
  8877. BIO_R_NO_SUCH_FILE error code rather than the generic
  8878. ERR_R_SYS_LIB error code if fopen() fails with ENOENT.
  8879. *Ben Laurie*
  8880. * Add new functions
  8881. ERR_peek_last_error
  8882. ERR_peek_last_error_line
  8883. ERR_peek_last_error_line_data.
  8884. These are similar to
  8885. ERR_peek_error
  8886. ERR_peek_error_line
  8887. ERR_peek_error_line_data,
  8888. but report on the latest error recorded rather than the first one
  8889. still in the error queue.
  8890. *Ben Laurie, Bodo Moeller*
  8891. * default_algorithms option in ENGINE config module. This allows things
  8892. like:
  8893. default_algorithms = ALL
  8894. default_algorithms = RSA, DSA, RAND, CIPHERS, DIGESTS
  8895. *Steve Henson*
  8896. * Preliminary ENGINE config module.
  8897. *Steve Henson*
  8898. * New experimental application configuration code.
  8899. *Steve Henson*
  8900. * Change the AES code to follow the same name structure as all other
  8901. symmetric ciphers, and behave the same way. Move everything to
  8902. the directory crypto/aes, thereby obsoleting crypto/rijndael.
  8903. *Stephen Sprunk <stephen@sprunk.org> and Richard Levitte*
  8904. * SECURITY: remove unsafe setjmp/signal interaction from ui_openssl.c.
  8905. *Ben Laurie and Theo de Raadt*
  8906. * Add option to output public keys in req command.
  8907. *Massimiliano Pala madwolf@openca.org*
  8908. * Use wNAFs in EC_POINTs_mul() for improved efficiency
  8909. (up to about 10% better than before for P-192 and P-224).
  8910. *Bodo Moeller*
  8911. * New functions/macros
  8912. SSL_CTX_set_msg_callback(ctx, cb)
  8913. SSL_CTX_set_msg_callback_arg(ctx, arg)
  8914. SSL_set_msg_callback(ssl, cb)
  8915. SSL_set_msg_callback_arg(ssl, arg)
  8916. to request calling a callback function
  8917. void cb(int write_p, int version, int content_type,
  8918. const void *buf, size_t len, SSL *ssl, void *arg)
  8919. whenever a protocol message has been completely received
  8920. (write_p == 0) or sent (write_p == 1). Here 'version' is the
  8921. protocol version according to which the SSL library interprets
  8922. the current protocol message (SSL2_VERSION, SSL3_VERSION, or
  8923. TLS1_VERSION). 'content_type' is 0 in the case of SSL 2.0, or
  8924. the content type as defined in the SSL 3.0/TLS 1.0 protocol
  8925. specification (change_cipher_spec(20), alert(21), handshake(22)).
  8926. 'buf' and 'len' point to the actual message, 'ssl' to the
  8927. SSL object, and 'arg' is the application-defined value set by
  8928. SSL[_CTX]_set_msg_callback_arg().
  8929. 'openssl s_client' and 'openssl s_server' have new '-msg' options
  8930. to enable a callback that displays all protocol messages.
  8931. *Bodo Moeller*
  8932. * Change the shared library support so shared libraries are built as
  8933. soon as the corresponding static library is finished, and thereby get
  8934. openssl and the test programs linked against the shared library.
  8935. This still only happens when the keyword "shard" has been given to
  8936. the configuration scripts.
  8937. NOTE: shared library support is still an experimental thing, and
  8938. backward binary compatibility is still not guaranteed.
  8939. *"Maciej W. Rozycki" <macro@ds2.pg.gda.pl> and Richard Levitte*
  8940. * Add support for Subject Information Access extension.
  8941. *Peter Sylvester <Peter.Sylvester@EdelWeb.fr>*
  8942. * Make BUF_MEM_grow() behaviour more consistent: Initialise to zero
  8943. additional bytes when new memory had to be allocated, not just
  8944. when reusing an existing buffer.
  8945. *Bodo Moeller*
  8946. * New command line and configuration option 'utf8' for the req command.
  8947. This allows field values to be specified as UTF8 strings.
  8948. *Steve Henson*
  8949. * Add -multi and -mr options to "openssl speed" - giving multiple parallel
  8950. runs for the former and machine-readable output for the latter.
  8951. *Ben Laurie*
  8952. * Add '-noemailDN' option to 'openssl ca'. This prevents inclusion
  8953. of the e-mail address in the DN (i.e., it will go into a certificate
  8954. extension only). The new configuration file option 'email_in_dn = no'
  8955. has the same effect.
  8956. *Massimiliano Pala madwolf@openca.org*
  8957. * Change all functions with names starting with `des_` to be starting
  8958. with `DES_` instead. Add wrappers that are compatible with libdes,
  8959. but are named `_ossl_old_des_*`. Finally, add macros that map the
  8960. `des_*` symbols to the corresponding `_ossl_old_des_*` if libdes
  8961. compatibility is desired. If OpenSSL 0.9.6c compatibility is
  8962. desired, the `des_*` symbols will be mapped to `DES_*`, with one
  8963. exception.
  8964. Since we provide two compatibility mappings, the user needs to
  8965. define the macro OPENSSL_DES_LIBDES_COMPATIBILITY if libdes
  8966. compatibility is desired. The default (i.e., when that macro
  8967. isn't defined) is OpenSSL 0.9.6c compatibility.
  8968. There are also macros that enable and disable the support of old
  8969. des functions altogether. Those are OPENSSL_ENABLE_OLD_DES_SUPPORT
  8970. and OPENSSL_DISABLE_OLD_DES_SUPPORT. If none or both of those
  8971. are defined, the default will apply: to support the old des routines.
  8972. In either case, one must include openssl/des.h to get the correct
  8973. definitions. Do not try to just include openssl/des_old.h, that
  8974. won't work.
  8975. NOTE: This is a major break of an old API into a new one. Software
  8976. authors are encouraged to switch to the `DES_` style functions. Some
  8977. time in the future, des_old.h and the libdes compatibility functions
  8978. will be disable (i.e. OPENSSL_DISABLE_OLD_DES_SUPPORT will be the
  8979. default), and then completely removed.
  8980. *Richard Levitte*
  8981. * Test for certificates which contain unsupported critical extensions.
  8982. If such a certificate is found during a verify operation it is
  8983. rejected by default: this behaviour can be overridden by either
  8984. handling the new error X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION or
  8985. by setting the verify flag X509_V_FLAG_IGNORE_CRITICAL. A new function
  8986. X509_supported_extension() has also been added which returns 1 if a
  8987. particular extension is supported.
  8988. *Steve Henson*
  8989. * Modify the behaviour of EVP cipher functions in similar way to digests
  8990. to retain compatibility with existing code.
  8991. *Steve Henson*
  8992. * Modify the behaviour of EVP_DigestInit() and EVP_DigestFinal() to retain
  8993. compatibility with existing code. In particular the 'ctx' parameter does
  8994. not have to be to be initialized before the call to EVP_DigestInit() and
  8995. it is tidied up after a call to EVP_DigestFinal(). New function
  8996. EVP_DigestFinal_ex() which does not tidy up the ctx. Similarly function
  8997. EVP_MD_CTX_copy() changed to not require the destination to be
  8998. initialized valid and new function EVP_MD_CTX_copy_ex() added which
  8999. requires the destination to be valid.
  9000. Modify all the OpenSSL digest calls to use EVP_DigestInit_ex(),
  9001. EVP_DigestFinal_ex() and EVP_MD_CTX_copy_ex().
  9002. *Steve Henson*
  9003. * Change ssl3_get_message (ssl/s3_both.c) and the functions using it
  9004. so that complete 'Handshake' protocol structures are kept in memory
  9005. instead of overwriting 'msg_type' and 'length' with 'body' data.
  9006. *Bodo Moeller*
  9007. * Add an implementation of SSL_add_dir_cert_subjects_to_stack for Win32.
  9008. *Massimo Santin via Richard Levitte*
  9009. * Major restructuring to the underlying ENGINE code. This includes
  9010. reduction of linker bloat, separation of pure "ENGINE" manipulation
  9011. (initialisation, etc) from functionality dealing with implementations
  9012. of specific crypto interfaces. This change also introduces integrated
  9013. support for symmetric ciphers and digest implementations - so ENGINEs
  9014. can now accelerate these by providing EVP_CIPHER and EVP_MD
  9015. implementations of their own. This is detailed in
  9016. [crypto/engine/README.md](crypto/engine/README.md)
  9017. as it couldn't be adequately described here. However, there are a few
  9018. API changes worth noting - some RSA, DSA, DH, and RAND functions that
  9019. were changed in the original introduction of ENGINE code have now
  9020. reverted back - the hooking from this code to ENGINE is now a good
  9021. deal more passive and at run-time, operations deal directly with
  9022. RSA_METHODs, DSA_METHODs (etc) as they did before, rather than
  9023. dereferencing through an ENGINE pointer any more. Also, the ENGINE
  9024. functions dealing with `BN_MOD_EXP[_CRT]` handlers have been removed -
  9025. they were not being used by the framework as there is no concept of a
  9026. BIGNUM_METHOD and they could not be generalised to the new
  9027. 'ENGINE_TABLE' mechanism that underlies the new code. Similarly,
  9028. ENGINE_cpy() has been removed as it cannot be consistently defined in
  9029. the new code.
  9030. *Geoff Thorpe*
  9031. * Change ASN1_GENERALIZEDTIME_check() to allow fractional seconds.
  9032. *Steve Henson*
  9033. * Change mkdef.pl to sort symbols that get the same entry number,
  9034. and make sure the automatically generated functions `ERR_load_*`
  9035. become part of libeay.num as well.
  9036. *Richard Levitte*
  9037. * New function SSL_renegotiate_pending(). This returns true once
  9038. renegotiation has been requested (either SSL_renegotiate() call
  9039. or HelloRequest/ClientHello received from the peer) and becomes
  9040. false once a handshake has been completed.
  9041. (For servers, SSL_renegotiate() followed by SSL_do_handshake()
  9042. sends a HelloRequest, but does not ensure that a handshake takes
  9043. place. SSL_renegotiate_pending() is useful for checking if the
  9044. client has followed the request.)
  9045. *Bodo Moeller*
  9046. * New SSL option SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION.
  9047. By default, clients may request session resumption even during
  9048. renegotiation (if session ID contexts permit); with this option,
  9049. session resumption is possible only in the first handshake.
  9050. SSL_OP_ALL is now 0x00000FFFL instead of 0x000FFFFFL. This makes
  9051. more bits available for options that should not be part of
  9052. SSL_OP_ALL (such as SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION).
  9053. *Bodo Moeller*
  9054. * Add some demos for certificate and certificate request creation.
  9055. *Steve Henson*
  9056. * Make maximum certificate chain size accepted from the peer application
  9057. settable (`SSL*_get/set_max_cert_list()`), as proposed by
  9058. "Douglas E. Engert" <deengert@anl.gov>.
  9059. *Lutz Jaenicke*
  9060. * Add support for shared libraries for Unixware-7
  9061. (Boyd Lynn Gerber <gerberb@zenez.com>).
  9062. *Lutz Jaenicke*
  9063. * Add a "destroy" handler to ENGINEs that allows structural cleanup to
  9064. be done prior to destruction. Use this to unload error strings from
  9065. ENGINEs that load their own error strings. NB: This adds two new API
  9066. functions to "get" and "set" this destroy handler in an ENGINE.
  9067. *Geoff Thorpe*
  9068. * Alter all existing ENGINE implementations (except "openssl" and
  9069. "openbsd") to dynamically instantiate their own error strings. This
  9070. makes them more flexible to be built both as statically-linked ENGINEs
  9071. and self-contained shared-libraries loadable via the "dynamic" ENGINE.
  9072. Also, add stub code to each that makes building them as self-contained
  9073. shared-libraries easier (see [README-Engine.md](README-Engine.md)).
  9074. *Geoff Thorpe*
  9075. * Add a "dynamic" ENGINE that provides a mechanism for binding ENGINE
  9076. implementations into applications that are completely implemented in
  9077. self-contained shared-libraries. The "dynamic" ENGINE exposes control
  9078. commands that can be used to configure what shared-library to load and
  9079. to control aspects of the way it is handled. Also, made an update to
  9080. the [README-Engine.md](README-Engine.md) file
  9081. that brings its information up-to-date and
  9082. provides some information and instructions on the "dynamic" ENGINE
  9083. (ie. how to use it, how to build "dynamic"-loadable ENGINEs, etc).
  9084. *Geoff Thorpe*
  9085. * Make it possible to unload ranges of ERR strings with a new
  9086. "ERR_unload_strings" function.
  9087. *Geoff Thorpe*
  9088. * Add a copy() function to EVP_MD.
  9089. *Ben Laurie*
  9090. * Make EVP_MD routines take a context pointer instead of just the
  9091. md_data void pointer.
  9092. *Ben Laurie*
  9093. * Add flags to EVP_MD and EVP_MD_CTX. EVP_MD_FLAG_ONESHOT indicates
  9094. that the digest can only process a single chunk of data
  9095. (typically because it is provided by a piece of
  9096. hardware). EVP_MD_CTX_FLAG_ONESHOT indicates that the application
  9097. is only going to provide a single chunk of data, and hence the
  9098. framework needn't accumulate the data for oneshot drivers.
  9099. *Ben Laurie*
  9100. * As with "ERR", make it possible to replace the underlying "ex_data"
  9101. functions. This change also alters the storage and management of global
  9102. ex_data state - it's now all inside ex_data.c and all "class" code (eg.
  9103. RSA, BIO, SSL_CTX, etc) no longer stores its own STACKS and per-class
  9104. index counters. The API functions that use this state have been changed
  9105. to take a "class_index" rather than pointers to the class's local STACK
  9106. and counter, and there is now an API function to dynamically create new
  9107. classes. This centralisation allows us to (a) plug a lot of the
  9108. thread-safety problems that existed, and (b) makes it possible to clean
  9109. up all allocated state using "CRYPTO_cleanup_all_ex_data()". W.r.t. (b)
  9110. such data would previously have always leaked in application code and
  9111. workarounds were in place to make the memory debugging turn a blind eye
  9112. to it. Application code that doesn't use this new function will still
  9113. leak as before, but their memory debugging output will announce it now
  9114. rather than letting it slide.
  9115. Besides the addition of CRYPTO_cleanup_all_ex_data(), another API change
  9116. induced by the "ex_data" overhaul is that X509_STORE_CTX_init() now
  9117. has a return value to indicate success or failure.
  9118. *Geoff Thorpe*
  9119. * Make it possible to replace the underlying "ERR" functions such that the
  9120. global state (2 LHASH tables and 2 locks) is only used by the "default"
  9121. implementation. This change also adds two functions to "get" and "set"
  9122. the implementation prior to it being automatically set the first time
  9123. any other ERR function takes place. Ie. an application can call "get",
  9124. pass the return value to a module it has just loaded, and that module
  9125. can call its own "set" function using that value. This means the
  9126. module's "ERR" operations will use (and modify) the error state in the
  9127. application and not in its own statically linked copy of OpenSSL code.
  9128. *Geoff Thorpe*
  9129. * Give DH, DSA, and RSA types their own `*_up_ref()` function to increment
  9130. reference counts. This performs normal REF_PRINT/REF_CHECK macros on
  9131. the operation, and provides a more encapsulated way for external code
  9132. (crypto/evp/ and ssl/) to do this. Also changed the evp and ssl code
  9133. to use these functions rather than manually incrementing the counts.
  9134. Also rename "DSO_up()" function to more descriptive "DSO_up_ref()".
  9135. *Geoff Thorpe*
  9136. * Add EVP test program.
  9137. *Ben Laurie*
  9138. * Add symmetric cipher support to ENGINE. Expect the API to change!
  9139. *Ben Laurie*
  9140. * New CRL functions: X509_CRL_set_version(), X509_CRL_set_issuer_name()
  9141. X509_CRL_set_lastUpdate(), X509_CRL_set_nextUpdate(), X509_CRL_sort(),
  9142. X509_REVOKED_set_serialNumber(), and X509_REVOKED_set_revocationDate().
  9143. These allow a CRL to be built without having to access X509_CRL fields
  9144. directly. Modify 'ca' application to use new functions.
  9145. *Steve Henson*
  9146. * Move SSL_OP_TLS_ROLLBACK_BUG out of the SSL_OP_ALL list of recommended
  9147. bug workarounds. Rollback attack detection is a security feature.
  9148. The problem will only arise on OpenSSL servers when TLSv1 is not
  9149. available (sslv3_server_method() or SSL_OP_NO_TLSv1).
  9150. Software authors not wanting to support TLSv1 will have special reasons
  9151. for their choice and can explicitly enable this option.
  9152. *Bodo Moeller, Lutz Jaenicke*
  9153. * Rationalise EVP so it can be extended: don't include a union of
  9154. cipher/digest structures, add init/cleanup functions for EVP_MD_CTX
  9155. (similar to those existing for EVP_CIPHER_CTX).
  9156. Usage example:
  9157. EVP_MD_CTX md;
  9158. EVP_MD_CTX_init(&md); /* new function call */
  9159. EVP_DigestInit(&md, EVP_sha1());
  9160. EVP_DigestUpdate(&md, in, len);
  9161. EVP_DigestFinal(&md, out, NULL);
  9162. EVP_MD_CTX_cleanup(&md); /* new function call */
  9163. *Ben Laurie*
  9164. * Make DES key schedule conform to the usual scheme, as well as
  9165. correcting its structure. This means that calls to DES functions
  9166. now have to pass a pointer to a des_key_schedule instead of a
  9167. plain des_key_schedule (which was actually always a pointer
  9168. anyway): E.g.,
  9169. des_key_schedule ks;
  9170. des_set_key_checked(..., &ks);
  9171. des_ncbc_encrypt(..., &ks, ...);
  9172. (Note that a later change renames 'des_...' into 'DES_...'.)
  9173. *Ben Laurie*
  9174. * Initial reduction of linker bloat: the use of some functions, such as
  9175. PEM causes large amounts of unused functions to be linked in due to
  9176. poor organisation. For example pem_all.c contains every PEM function
  9177. which has a knock on effect of linking in large amounts of (unused)
  9178. ASN1 code. Grouping together similar functions and splitting unrelated
  9179. functions prevents this.
  9180. *Steve Henson*
  9181. * Cleanup of EVP macros.
  9182. *Ben Laurie*
  9183. * Change historical references to `{NID,SN,LN}_des_ede` and ede3 to add the
  9184. correct `_ecb suffix`.
  9185. *Ben Laurie*
  9186. * Add initial OCSP responder support to ocsp application. The
  9187. revocation information is handled using the text based index
  9188. use by the ca application. The responder can either handle
  9189. requests generated internally, supplied in files (for example
  9190. via a CGI script) or using an internal minimal server.
  9191. *Steve Henson*
  9192. * Add configuration choices to get zlib compression for TLS.
  9193. *Richard Levitte*
  9194. * Changes to Kerberos SSL for RFC 2712 compliance:
  9195. 1. Implemented real KerberosWrapper, instead of just using
  9196. KRB5 AP_REQ message. [Thanks to Simon Wilkinson <sxw@sxw.org.uk>]
  9197. 2. Implemented optional authenticator field of KerberosWrapper.
  9198. Added openssl-style ASN.1 macros for Kerberos ticket, ap_req,
  9199. and authenticator structs; see crypto/krb5/.
  9200. Generalized Kerberos calls to support multiple Kerberos libraries.
  9201. *Vern Staats <staatsvr@asc.hpc.mil>, Jeffrey Altman <jaltman@columbia.edu>
  9202. via Richard Levitte*
  9203. * Cause 'openssl speed' to use fully hard-coded DSA keys as it
  9204. already does with RSA. testdsa.h now has 'priv_key/pub_key'
  9205. values for each of the key sizes rather than having just
  9206. parameters (and 'speed' generating keys each time).
  9207. *Geoff Thorpe*
  9208. * Speed up EVP routines.
  9209. Before:
  9210. crypt
  9211. pe 8 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
  9212. s-cbc 4408.85k 5560.51k 5778.46k 5862.20k 5825.16k
  9213. s-cbc 4389.55k 5571.17k 5792.23k 5846.91k 5832.11k
  9214. s-cbc 4394.32k 5575.92k 5807.44k 5848.37k 5841.30k
  9215. crypt
  9216. s-cbc 3482.66k 5069.49k 5496.39k 5614.16k 5639.28k
  9217. s-cbc 3480.74k 5068.76k 5510.34k 5609.87k 5635.52k
  9218. s-cbc 3483.72k 5067.62k 5504.60k 5708.01k 5724.80k
  9219. After:
  9220. crypt
  9221. s-cbc 4660.16k 5650.19k 5807.19k 5827.13k 5783.32k
  9222. crypt
  9223. s-cbc 3624.96k 5258.21k 5530.91k 5624.30k 5628.26k
  9224. *Ben Laurie*
  9225. * Added the OS2-EMX target.
  9226. *"Brian Havard" <brianh@kheldar.apana.org.au> and Richard Levitte*
  9227. * Rewrite commands to use `NCONF` routines instead of the old `CONF`.
  9228. New functions to support `NCONF` routines in extension code.
  9229. New function `CONF_set_nconf()`
  9230. to allow functions which take an `NCONF` to also handle the old `LHASH`
  9231. structure: this means that the old `CONF` compatible routines can be
  9232. retained (in particular w.rt. extensions) without having to duplicate the
  9233. code. New function `X509V3_add_ext_nconf_sk()` to add extensions to a stack.
  9234. *Steve Henson*
  9235. * Enhance the general user interface with mechanisms for inner control
  9236. and with possibilities to have yes/no kind of prompts.
  9237. *Richard Levitte*
  9238. * Change all calls to low-level digest routines in the library and
  9239. applications to use EVP. Add missing calls to HMAC_cleanup() and
  9240. don't assume HMAC_CTX can be copied using memcpy().
  9241. *Verdon Walker <VWalker@novell.com>, Steve Henson*
  9242. * Add the possibility to control engines through control names but with
  9243. arbitrary arguments instead of just a string.
  9244. Change the key loaders to take a UI_METHOD instead of a callback
  9245. function pointer. NOTE: this breaks binary compatibility with earlier
  9246. versions of OpenSSL [engine].
  9247. Adapt the nCipher code for these new conditions and add a card insertion
  9248. callback.
  9249. *Richard Levitte*
  9250. * Enhance the general user interface with mechanisms to better support
  9251. dialog box interfaces, application-defined prompts, the possibility
  9252. to use defaults (for example default passwords from somewhere else)
  9253. and interrupts/cancellations.
  9254. *Richard Levitte*
  9255. * Tidy up PKCS#12 attribute handling. Add support for the CSP name
  9256. attribute in PKCS#12 files, add new -CSP option to pkcs12 utility.
  9257. *Steve Henson*
  9258. * Fix a memory leak in 'sk_dup()' in the case reallocation fails. (Also
  9259. tidy up some unnecessarily weird code in 'sk_new()').
  9260. *Geoff, reported by Diego Tartara <dtartara@novamens.com>*
  9261. * Change the key loading routines for ENGINEs to use the same kind
  9262. callback (pem_password_cb) as all other routines that need this
  9263. kind of callback.
  9264. *Richard Levitte*
  9265. * Increase ENTROPY_NEEDED to 32 bytes, as Rijndael can operate with
  9266. 256 bit (=32 byte) keys. Of course seeding with more entropy bytes
  9267. than this minimum value is recommended.
  9268. *Lutz Jaenicke*
  9269. * New random seeder for OpenVMS, using the system process statistics
  9270. that are easily reachable.
  9271. *Richard Levitte*
  9272. * Windows apparently can't transparently handle global
  9273. variables defined in DLLs. Initialisations such as:
  9274. const ASN1_ITEM *it = &ASN1_INTEGER_it;
  9275. won't compile. This is used by the any applications that need to
  9276. declare their own ASN1 modules. This was fixed by adding the option
  9277. EXPORT_VAR_AS_FN to all Win32 platforms, although this isn't strictly
  9278. needed for static libraries under Win32.
  9279. *Steve Henson*
  9280. * New functions X509_PURPOSE_set() and X509_TRUST_set() to handle
  9281. setting of purpose and trust fields. New X509_STORE trust and
  9282. purpose functions and tidy up setting in other SSL functions.
  9283. *Steve Henson*
  9284. * Add copies of X509_STORE_CTX fields and callbacks to X509_STORE
  9285. structure. These are inherited by X509_STORE_CTX when it is
  9286. initialised. This allows various defaults to be set in the
  9287. X509_STORE structure (such as flags for CRL checking and custom
  9288. purpose or trust settings) for functions which only use X509_STORE_CTX
  9289. internally such as S/MIME.
  9290. Modify X509_STORE_CTX_purpose_inherit() so it only sets purposes and
  9291. trust settings if they are not set in X509_STORE. This allows X509_STORE
  9292. purposes and trust (in S/MIME for example) to override any set by default.
  9293. Add command line options for CRL checking to smime, s_client and s_server
  9294. applications.
  9295. *Steve Henson*
  9296. * Initial CRL based revocation checking. If the CRL checking flag(s)
  9297. are set then the CRL is looked up in the X509_STORE structure and
  9298. its validity and signature checked, then if the certificate is found
  9299. in the CRL the verify fails with a revoked error.
  9300. Various new CRL related callbacks added to X509_STORE_CTX structure.
  9301. Command line options added to 'verify' application to support this.
  9302. This needs some additional work, such as being able to handle multiple
  9303. CRLs with different times, extension based lookup (rather than just
  9304. by subject name) and ultimately more complete V2 CRL extension
  9305. handling.
  9306. *Steve Henson*
  9307. * Add a general user interface API (crypto/ui/). This is designed
  9308. to replace things like des_read_password and friends (backward
  9309. compatibility functions using this new API are provided).
  9310. The purpose is to remove prompting functions from the DES code
  9311. section as well as provide for prompting through dialog boxes in
  9312. a window system and the like.
  9313. *Richard Levitte*
  9314. * Add "ex_data" support to ENGINE so implementations can add state at a
  9315. per-structure level rather than having to store it globally.
  9316. *Geoff*
  9317. * Make it possible for ENGINE structures to be copied when retrieved by
  9318. ENGINE_by_id() if the ENGINE specifies a new flag: ENGINE_FLAGS_BY_ID_COPY.
  9319. This causes the "original" ENGINE structure to act like a template,
  9320. analogous to the RSA vs. RSA_METHOD type of separation. Because of this
  9321. operational state can be localised to each ENGINE structure, despite the
  9322. fact they all share the same "methods". New ENGINE structures returned in
  9323. this case have no functional references and the return value is the single
  9324. structural reference. This matches the single structural reference returned
  9325. by ENGINE_by_id() normally, when it is incremented on the pre-existing
  9326. ENGINE structure.
  9327. *Geoff*
  9328. * Fix ASN1 decoder when decoding type ANY and V_ASN1_OTHER: since this
  9329. needs to match any other type at all we need to manually clear the
  9330. tag cache.
  9331. *Steve Henson*
  9332. * Changes to the "openssl engine" utility to include;
  9333. - verbosity levels ('-v', '-vv', and '-vvv') that provide information
  9334. about an ENGINE's available control commands.
  9335. - executing control commands from command line arguments using the
  9336. '-pre' and '-post' switches. '-post' is only used if '-t' is
  9337. specified and the ENGINE is successfully initialised. The syntax for
  9338. the individual commands are colon-separated, for example;
  9339. openssl engine chil -pre FORK_CHECK:0 -pre SO_PATH:/lib/test.so
  9340. *Geoff*
  9341. * New dynamic control command support for ENGINEs. ENGINEs can now
  9342. declare their own commands (numbers), names (strings), descriptions,
  9343. and input types for run-time discovery by calling applications. A
  9344. subset of these commands are implicitly classed as "executable"
  9345. depending on their input type, and only these can be invoked through
  9346. the new string-based API function ENGINE_ctrl_cmd_string(). (Eg. this
  9347. can be based on user input, config files, etc). The distinction is
  9348. that "executable" commands cannot return anything other than a boolean
  9349. result and can only support numeric or string input, whereas some
  9350. discoverable commands may only be for direct use through
  9351. ENGINE_ctrl(), eg. supporting the exchange of binary data, function
  9352. pointers, or other custom uses. The "executable" commands are to
  9353. support parameterisations of ENGINE behaviour that can be
  9354. unambiguously defined by ENGINEs and used consistently across any
  9355. OpenSSL-based application. Commands have been added to all the
  9356. existing hardware-supporting ENGINEs, noticeably "SO_PATH" to allow
  9357. control over shared-library paths without source code alterations.
  9358. *Geoff*
  9359. * Changed all ENGINE implementations to dynamically allocate their
  9360. ENGINEs rather than declaring them statically. Apart from this being
  9361. necessary with the removal of the ENGINE_FLAGS_MALLOCED distinction,
  9362. this also allows the implementations to compile without using the
  9363. internal engine_int.h header.
  9364. *Geoff*
  9365. * Minor adjustment to "rand" code. RAND_get_rand_method() now returns a
  9366. 'const' value. Any code that should be able to modify a RAND_METHOD
  9367. should already have non-const pointers to it (ie. they should only
  9368. modify their own ones).
  9369. *Geoff*
  9370. * Made a variety of little tweaks to the ENGINE code.
  9371. - "atalla" and "ubsec" string definitions were moved from header files
  9372. to C code. "nuron" string definitions were placed in variables
  9373. rather than hard-coded - allowing parameterisation of these values
  9374. later on via ctrl() commands.
  9375. - Removed unused "#if 0"'d code.
  9376. - Fixed engine list iteration code so it uses ENGINE_free() to release
  9377. structural references.
  9378. - Constified the RAND_METHOD element of ENGINE structures.
  9379. - Constified various get/set functions as appropriate and added
  9380. missing functions (including a catch-all ENGINE_cpy that duplicates
  9381. all ENGINE values onto a new ENGINE except reference counts/state).
  9382. - Removed NULL parameter checks in get/set functions. Setting a method
  9383. or function to NULL is a way of cancelling out a previously set
  9384. value. Passing a NULL ENGINE parameter is just plain stupid anyway
  9385. and doesn't justify the extra error symbols and code.
  9386. - Deprecate the ENGINE_FLAGS_MALLOCED define and move the area for
  9387. flags from engine_int.h to engine.h.
  9388. - Changed prototypes for ENGINE handler functions (init(), finish(),
  9389. ctrl(), key-load functions, etc) to take an (ENGINE*) parameter.
  9390. *Geoff*
  9391. * Implement binary inversion algorithm for BN_mod_inverse in addition
  9392. to the algorithm using long division. The binary algorithm can be
  9393. used only if the modulus is odd. On 32-bit systems, it is faster
  9394. only for relatively small moduli (roughly 20-30% for 128-bit moduli,
  9395. roughly 5-15% for 256-bit moduli), so we use it only for moduli
  9396. up to 450 bits. In 64-bit environments, the binary algorithm
  9397. appears to be advantageous for much longer moduli; here we use it
  9398. for moduli up to 2048 bits.
  9399. *Bodo Moeller*
  9400. * Rewrite CHOICE field setting in ASN1_item_ex_d2i(). The old code
  9401. could not support the combine flag in choice fields.
  9402. *Steve Henson*
  9403. * Add a 'copy_extensions' option to the 'ca' utility. This copies
  9404. extensions from a certificate request to the certificate.
  9405. *Steve Henson*
  9406. * Allow multiple 'certopt' and 'nameopt' options to be separated
  9407. by commas. Add 'namopt' and 'certopt' options to the 'ca' config
  9408. file: this allows the display of the certificate about to be
  9409. signed to be customised, to allow certain fields to be included
  9410. or excluded and extension details. The old system didn't display
  9411. multicharacter strings properly, omitted fields not in the policy
  9412. and couldn't display additional details such as extensions.
  9413. *Steve Henson*
  9414. * Function EC_POINTs_mul for multiple scalar multiplication
  9415. of an arbitrary number of elliptic curve points
  9416. \sum scalars[i]*points[i],
  9417. optionally including the generator defined for the EC_GROUP:
  9418. scalar*generator + \sum scalars[i]*points[i].
  9419. EC_POINT_mul is a simple wrapper function for the typical case
  9420. that the point list has just one item (besides the optional
  9421. generator).
  9422. *Bodo Moeller*
  9423. * First EC_METHODs for curves over GF(p):
  9424. EC_GFp_simple_method() uses the basic BN_mod_mul and BN_mod_sqr
  9425. operations and provides various method functions that can also
  9426. operate with faster implementations of modular arithmetic.
  9427. EC_GFp_mont_method() reuses most functions that are part of
  9428. EC_GFp_simple_method, but uses Montgomery arithmetic.
  9429. *Bodo Moeller; point addition and point doubling
  9430. implementation directly derived from source code provided by
  9431. Lenka Fibikova <fibikova@exp-math.uni-essen.de>*
  9432. * Framework for elliptic curves (crypto/ec/ec.h, crypto/ec/ec_lcl.h,
  9433. crypto/ec/ec_lib.c):
  9434. Curves are EC_GROUP objects (with an optional group generator)
  9435. based on EC_METHODs that are built into the library.
  9436. Points are EC_POINT objects based on EC_GROUP objects.
  9437. Most of the framework would be able to handle curves over arbitrary
  9438. finite fields, but as there are no obvious types for fields other
  9439. than GF(p), some functions are limited to that for now.
  9440. *Bodo Moeller*
  9441. * Add the -HTTP option to s_server. It is similar to -WWW, but requires
  9442. that the file contains a complete HTTP response.
  9443. *Richard Levitte*
  9444. * Add the ec directory to mkdef.pl and mkfiles.pl. In mkdef.pl
  9445. change the def and num file printf format specifier from "%-40sXXX"
  9446. to "%-39s XXX". The latter will always guarantee a space after the
  9447. field while the former will cause them to run together if the field
  9448. is 40 of more characters long.
  9449. *Steve Henson*
  9450. * Constify the cipher and digest 'method' functions and structures
  9451. and modify related functions to take constant EVP_MD and EVP_CIPHER
  9452. pointers.
  9453. *Steve Henson*
  9454. * Hide BN_CTX structure details in bn_lcl.h instead of publishing them
  9455. in <openssl/bn.h>. Also further increase BN_CTX_NUM to 32.
  9456. *Bodo Moeller*
  9457. * Modify `EVP_Digest*()` routines so they now return values. Although the
  9458. internal software routines can never fail additional hardware versions
  9459. might.
  9460. *Steve Henson*
  9461. * Clean up crypto/err/err.h and change some error codes to avoid conflicts:
  9462. Previously ERR_R_FATAL was too small and coincided with ERR_LIB_PKCS7
  9463. (= ERR_R_PKCS7_LIB); it is now 64 instead of 32.
  9464. ASN1 error codes
  9465. ERR_R_NESTED_ASN1_ERROR
  9466. ...
  9467. ERR_R_MISSING_ASN1_EOS
  9468. were 4 .. 9, conflicting with
  9469. ERR_LIB_RSA (= ERR_R_RSA_LIB)
  9470. ...
  9471. ERR_LIB_PEM (= ERR_R_PEM_LIB).
  9472. They are now 58 .. 63 (i.e., just below ERR_R_FATAL).
  9473. Add new error code 'ERR_R_INTERNAL_ERROR'.
  9474. *Bodo Moeller*
  9475. * Don't overuse locks in crypto/err/err.c: For data retrieval, CRYPTO_r_lock
  9476. suffices.
  9477. *Bodo Moeller*
  9478. * New option '-subj arg' for 'openssl req' and 'openssl ca'. This
  9479. sets the subject name for a new request or supersedes the
  9480. subject name in a given request. Formats that can be parsed are
  9481. 'CN=Some Name, OU=myOU, C=IT'
  9482. and
  9483. 'CN=Some Name/OU=myOU/C=IT'.
  9484. Add options '-batch' and '-verbose' to 'openssl req'.
  9485. *Massimiliano Pala <madwolf@hackmasters.net>*
  9486. * Introduce the possibility to access global variables through
  9487. functions on platform were that's the best way to handle exporting
  9488. global variables in shared libraries. To enable this functionality,
  9489. one must configure with "EXPORT_VAR_AS_FN" or defined the C macro
  9490. "OPENSSL_EXPORT_VAR_AS_FUNCTION" in crypto/opensslconf.h (the latter
  9491. is normally done by Configure or something similar).
  9492. To implement a global variable, use the macro OPENSSL_IMPLEMENT_GLOBAL
  9493. in the source file (foo.c) like this:
  9494. OPENSSL_IMPLEMENT_GLOBAL(int,foo)=1;
  9495. OPENSSL_IMPLEMENT_GLOBAL(double,bar);
  9496. To declare a global variable, use the macros OPENSSL_DECLARE_GLOBAL
  9497. and OPENSSL_GLOBAL_REF in the header file (foo.h) like this:
  9498. OPENSSL_DECLARE_GLOBAL(int,foo);
  9499. #define foo OPENSSL_GLOBAL_REF(foo)
  9500. OPENSSL_DECLARE_GLOBAL(double,bar);
  9501. #define bar OPENSSL_GLOBAL_REF(bar)
  9502. The #defines are very important, and therefore so is including the
  9503. header file everywhere where the defined globals are used.
  9504. The macro OPENSSL_EXPORT_VAR_AS_FUNCTION also affects the definition
  9505. of ASN.1 items, but that structure is a bit different.
  9506. The largest change is in util/mkdef.pl which has been enhanced with
  9507. better and easier to understand logic to choose which symbols should
  9508. go into the Windows .def files as well as a number of fixes and code
  9509. cleanup (among others, algorithm keywords are now sorted
  9510. lexicographically to avoid constant rewrites).
  9511. *Richard Levitte*
  9512. * In BN_div() keep a copy of the sign of 'num' before writing the
  9513. result to 'rm' because if rm==num the value will be overwritten
  9514. and produce the wrong result if 'num' is negative: this caused
  9515. problems with BN_mod() and BN_nnmod().
  9516. *Steve Henson*
  9517. * Function OCSP_request_verify(). This checks the signature on an
  9518. OCSP request and verifies the signer certificate. The signer
  9519. certificate is just checked for a generic purpose and OCSP request
  9520. trust settings.
  9521. *Steve Henson*
  9522. * Add OCSP_check_validity() function to check the validity of OCSP
  9523. responses. OCSP responses are prepared in real time and may only
  9524. be a few seconds old. Simply checking that the current time lies
  9525. between thisUpdate and nextUpdate max reject otherwise valid responses
  9526. caused by either OCSP responder or client clock inaccuracy. Instead
  9527. we allow thisUpdate and nextUpdate to fall within a certain period of
  9528. the current time. The age of the response can also optionally be
  9529. checked. Two new options -validity_period and -status_age added to
  9530. ocsp utility.
  9531. *Steve Henson*
  9532. * If signature or public key algorithm is unrecognized print out its
  9533. OID rather that just UNKNOWN.
  9534. *Steve Henson*
  9535. * Change OCSP_cert_to_id() to tolerate a NULL subject certificate and
  9536. OCSP_cert_id_new() a NULL serialNumber. This allows a partial certificate
  9537. ID to be generated from the issuer certificate alone which can then be
  9538. passed to OCSP_id_issuer_cmp().
  9539. *Steve Henson*
  9540. * New compilation option ASN1_ITEM_FUNCTIONS. This causes the new
  9541. ASN1 modules to export functions returning ASN1_ITEM pointers
  9542. instead of the ASN1_ITEM structures themselves. This adds several
  9543. new macros which allow the underlying ASN1 function/structure to
  9544. be accessed transparently. As a result code should not use ASN1_ITEM
  9545. references directly (such as &X509_it) but instead use the relevant
  9546. macros (such as ASN1_ITEM_rptr(X509)). This option is to allow
  9547. use of the new ASN1 code on platforms where exporting structures
  9548. is problematical (for example in shared libraries) but exporting
  9549. functions returning pointers to structures is not.
  9550. *Steve Henson*
  9551. * Add support for overriding the generation of SSL/TLS session IDs.
  9552. These callbacks can be registered either in an SSL_CTX or per SSL.
  9553. The purpose of this is to allow applications to control, if they wish,
  9554. the arbitrary values chosen for use as session IDs, particularly as it
  9555. can be useful for session caching in multiple-server environments. A
  9556. command-line switch for testing this (and any client code that wishes
  9557. to use such a feature) has been added to "s_server".
  9558. *Geoff Thorpe, Lutz Jaenicke*
  9559. * Modify mkdef.pl to recognise and parse preprocessor conditionals
  9560. of the form `#if defined(...) || defined(...) || ...` and
  9561. `#if !defined(...) && !defined(...) && ...`. This also avoids
  9562. the growing number of special cases it was previously handling.
  9563. *Richard Levitte*
  9564. * Make all configuration macros available for application by making
  9565. sure they are available in opensslconf.h, by giving them names starting
  9566. with `OPENSSL_` to avoid conflicts with other packages and by making
  9567. sure e_os2.h will cover all platform-specific cases together with
  9568. opensslconf.h.
  9569. Additionally, it is now possible to define configuration/platform-
  9570. specific names (called "system identities"). In the C code, these
  9571. are prefixed with `OPENSSL_SYSNAME_`. e_os2.h will create another
  9572. macro with the name beginning with `OPENSSL_SYS_`, which is determined
  9573. from `OPENSSL_SYSNAME_*` or compiler-specific macros depending on
  9574. what is available.
  9575. *Richard Levitte*
  9576. * New option -set_serial to 'req' and 'x509' this allows the serial
  9577. number to use to be specified on the command line. Previously self
  9578. signed certificates were hard coded with serial number 0 and the
  9579. CA options of 'x509' had to use a serial number in a file which was
  9580. auto incremented.
  9581. *Steve Henson*
  9582. * New options to 'ca' utility to support V2 CRL entry extensions.
  9583. Currently CRL reason, invalidity date and hold instruction are
  9584. supported. Add new CRL extensions to V3 code and some new objects.
  9585. *Steve Henson*
  9586. * New function EVP_CIPHER_CTX_set_padding() this is used to
  9587. disable standard block padding (aka PKCS#5 padding) in the EVP
  9588. API, which was previously mandatory. This means that the data is
  9589. not padded in any way and so the total length much be a multiple
  9590. of the block size, otherwise an error occurs.
  9591. *Steve Henson*
  9592. * Initial (incomplete) OCSP SSL support.
  9593. *Steve Henson*
  9594. * New function OCSP_parse_url(). This splits up a URL into its host,
  9595. port and path components: primarily to parse OCSP URLs. New -url
  9596. option to ocsp utility.
  9597. *Steve Henson*
  9598. * New nonce behavior. The return value of OCSP_check_nonce() now
  9599. reflects the various checks performed. Applications can decide
  9600. whether to tolerate certain situations such as an absent nonce
  9601. in a response when one was present in a request: the ocsp application
  9602. just prints out a warning. New function OCSP_add1_basic_nonce()
  9603. this is to allow responders to include a nonce in a response even if
  9604. the request is nonce-less.
  9605. *Steve Henson*
  9606. * Disable stdin buffering in `load_cert()` (`apps/apps.c`) so that no certs are
  9607. skipped when using openssl x509 multiple times on a single input file,
  9608. e.g. `(openssl x509 -out cert1; openssl x509 -out cert2) <certs`.
  9609. *Bodo Moeller*
  9610. * Make ASN1_UTCTIME_set_string() and ASN1_GENERALIZEDTIME_set_string()
  9611. set string type: to handle setting ASN1_TIME structures. Fix ca
  9612. utility to correctly initialize revocation date of CRLs.
  9613. *Steve Henson*
  9614. * New option SSL_OP_CIPHER_SERVER_PREFERENCE allows the server to override
  9615. the clients preferred ciphersuites and rather use its own preferences.
  9616. Should help to work around M$ SGC (Server Gated Cryptography) bug in
  9617. Internet Explorer by ensuring unchanged hash method during stepup.
  9618. (Also replaces the broken/deactivated SSL_OP_NON_EXPORT_FIRST option.)
  9619. *Lutz Jaenicke*
  9620. * Make mkdef.pl recognise all DECLARE_ASN1 macros, change rijndael
  9621. to aes and add a new 'exist' option to print out symbols that don't
  9622. appear to exist.
  9623. *Steve Henson*
  9624. * Additional options to ocsp utility to allow flags to be set and
  9625. additional certificates supplied.
  9626. *Steve Henson*
  9627. * Add the option -VAfile to 'openssl ocsp', so the user can give the
  9628. OCSP client a number of certificate to only verify the response
  9629. signature against.
  9630. *Richard Levitte*
  9631. * Update Rijndael code to version 3.0 and change EVP AES ciphers to
  9632. handle the new API. Currently only ECB, CBC modes supported. Add new
  9633. AES OIDs.
  9634. Add TLS AES ciphersuites as described in RFC3268, "Advanced
  9635. Encryption Standard (AES) Ciphersuites for Transport Layer
  9636. Security (TLS)". (In beta versions of OpenSSL 0.9.7, these were
  9637. not enabled by default and were not part of the "ALL" ciphersuite
  9638. alias because they were not yet official; they could be
  9639. explicitly requested by specifying the "AESdraft" ciphersuite
  9640. group alias. In the final release of OpenSSL 0.9.7, the group
  9641. alias is called "AES" and is part of "ALL".)
  9642. *Ben Laurie, Steve Henson, Bodo Moeller*
  9643. * New function OCSP_copy_nonce() to copy nonce value (if present) from
  9644. request to response.
  9645. *Steve Henson*
  9646. * Functions for OCSP responders. OCSP_request_onereq_count(),
  9647. OCSP_request_onereq_get0(), OCSP_onereq_get0_id() and OCSP_id_get0_info()
  9648. extract information from a certificate request. OCSP_response_create()
  9649. creates a response and optionally adds a basic response structure.
  9650. OCSP_basic_add1_status() adds a complete single response to a basic
  9651. response and returns the OCSP_SINGLERESP structure just added (to allow
  9652. extensions to be included for example). OCSP_basic_add1_cert() adds a
  9653. certificate to a basic response and OCSP_basic_sign() signs a basic
  9654. response with various flags. New helper functions ASN1_TIME_check()
  9655. (checks validity of ASN1_TIME structure) and ASN1_TIME_to_generalizedtime()
  9656. (converts ASN1_TIME to GeneralizedTime).
  9657. *Steve Henson*
  9658. * Various new functions. EVP_Digest() combines EVP_Digest{Init,Update,Final}()
  9659. in a single operation. X509_get0_pubkey_bitstr() extracts the public_key
  9660. structure from a certificate. X509_pubkey_digest() digests the public_key
  9661. contents: this is used in various key identifiers.
  9662. *Steve Henson*
  9663. * Make sk_sort() tolerate a NULL argument.
  9664. *Steve Henson reported by Massimiliano Pala <madwolf@comune.modena.it>*
  9665. * New OCSP verify flag OCSP_TRUSTOTHER. When set the "other" certificates
  9666. passed by the function are trusted implicitly. If any of them signed the
  9667. response then it is assumed to be valid and is not verified.
  9668. *Steve Henson*
  9669. * In PKCS7_set_type() initialise content_type in PKCS7_ENC_CONTENT
  9670. to data. This was previously part of the PKCS7 ASN1 code. This
  9671. was causing problems with OpenSSL created PKCS#12 and PKCS#7 structures.
  9672. *Steve Henson, reported by Kenneth R. Robinette
  9673. <support@securenetterm.com>*
  9674. * Add CRYPTO_push_info() and CRYPTO_pop_info() calls to new ASN1
  9675. routines: without these tracing memory leaks is very painful.
  9676. Fix leaks in PKCS12 and PKCS7 routines.
  9677. *Steve Henson*
  9678. * Make X509_time_adj() cope with the new behaviour of ASN1_TIME_new().
  9679. Previously it initialised the 'type' argument to V_ASN1_UTCTIME which
  9680. effectively meant GeneralizedTime would never be used. Now it
  9681. is initialised to -1 but X509_time_adj() now has to check the value
  9682. and use ASN1_TIME_set() if the value is not V_ASN1_UTCTIME or
  9683. V_ASN1_GENERALIZEDTIME, without this it always uses GeneralizedTime.
  9684. *Steve Henson, reported by Kenneth R. Robinette
  9685. <support@securenetterm.com>*
  9686. * Fixes to BN_to_ASN1_INTEGER when bn is zero. This would previously
  9687. result in a zero length in the ASN1_INTEGER structure which was
  9688. not consistent with the structure when d2i_ASN1_INTEGER() was used
  9689. and would cause ASN1_INTEGER_cmp() to fail. Enhance s2i_ASN1_INTEGER()
  9690. to cope with hex and negative integers. Fix bug in i2a_ASN1_INTEGER()
  9691. where it did not print out a minus for negative ASN1_INTEGER.
  9692. *Steve Henson*
  9693. * Add summary printout to ocsp utility. The various functions which
  9694. convert status values to strings have been renamed to:
  9695. OCSP_response_status_str(), OCSP_cert_status_str() and
  9696. OCSP_crl_reason_str() and are no longer static. New options
  9697. to verify nonce values and to disable verification. OCSP response
  9698. printout format cleaned up.
  9699. *Steve Henson*
  9700. * Add additional OCSP certificate checks. These are those specified
  9701. in RFC2560. This consists of two separate checks: the CA of the
  9702. certificate being checked must either be the OCSP signer certificate
  9703. or the issuer of the OCSP signer certificate. In the latter case the
  9704. OCSP signer certificate must contain the OCSP signing extended key
  9705. usage. This check is performed by attempting to match the OCSP
  9706. signer or the OCSP signer CA to the issuerNameHash and issuerKeyHash
  9707. in the OCSP_CERTID structures of the response.
  9708. *Steve Henson*
  9709. * Initial OCSP certificate verification added to OCSP_basic_verify()
  9710. and related routines. This uses the standard OpenSSL certificate
  9711. verify routines to perform initial checks (just CA validity) and
  9712. to obtain the certificate chain. Then additional checks will be
  9713. performed on the chain. Currently the root CA is checked to see
  9714. if it is explicitly trusted for OCSP signing. This is used to set
  9715. a root CA as a global signing root: that is any certificate that
  9716. chains to that CA is an acceptable OCSP signing certificate.
  9717. *Steve Henson*
  9718. * New '-extfile ...' option to 'openssl ca' for reading X.509v3
  9719. extensions from a separate configuration file.
  9720. As when reading extensions from the main configuration file,
  9721. the '-extensions ...' option may be used for specifying the
  9722. section to use.
  9723. *Massimiliano Pala <madwolf@comune.modena.it>*
  9724. * New OCSP utility. Allows OCSP requests to be generated or
  9725. read. The request can be sent to a responder and the output
  9726. parsed, outputted or printed in text form. Not complete yet:
  9727. still needs to check the OCSP response validity.
  9728. *Steve Henson*
  9729. * New subcommands for 'openssl ca':
  9730. `openssl ca -status <serial>` prints the status of the cert with
  9731. the given serial number (according to the index file).
  9732. `openssl ca -updatedb` updates the expiry status of certificates
  9733. in the index file.
  9734. *Massimiliano Pala <madwolf@comune.modena.it>*
  9735. * New '-newreq-nodes' command option to CA.pl. This is like
  9736. '-newreq', but calls 'openssl req' with the '-nodes' option
  9737. so that the resulting key is not encrypted.
  9738. *Damien Miller <djm@mindrot.org>*
  9739. * New configuration for the GNU Hurd.
  9740. *Jonathan Bartlett <johnnyb@wolfram.com> via Richard Levitte*
  9741. * Initial code to implement OCSP basic response verify. This
  9742. is currently incomplete. Currently just finds the signer's
  9743. certificate and verifies the signature on the response.
  9744. *Steve Henson*
  9745. * New SSLeay_version code SSLEAY_DIR to determine the compiled-in
  9746. value of OPENSSLDIR. This is available via the new '-d' option
  9747. to 'openssl version', and is also included in 'openssl version -a'.
  9748. *Bodo Moeller*
  9749. * Allowing defining memory allocation callbacks that will be given
  9750. file name and line number information in additional arguments
  9751. (a `const char*` and an int). The basic functionality remains, as
  9752. well as the original possibility to just replace malloc(),
  9753. realloc() and free() by functions that do not know about these
  9754. additional arguments. To register and find out the current
  9755. settings for extended allocation functions, the following
  9756. functions are provided:
  9757. CRYPTO_set_mem_ex_functions
  9758. CRYPTO_set_locked_mem_ex_functions
  9759. CRYPTO_get_mem_ex_functions
  9760. CRYPTO_get_locked_mem_ex_functions
  9761. These work the same way as CRYPTO_set_mem_functions and friends.
  9762. `CRYPTO_get_[locked_]mem_functions` now writes 0 where such an
  9763. extended allocation function is enabled.
  9764. Similarly, `CRYPTO_get_[locked_]mem_ex_functions` writes 0 where
  9765. a conventional allocation function is enabled.
  9766. *Richard Levitte, Bodo Moeller*
  9767. * Finish off removing the remaining LHASH function pointer casts.
  9768. There should no longer be any prototype-casting required when using
  9769. the LHASH abstraction, and any casts that remain are "bugs". See
  9770. the callback types and macros at the head of lhash.h for details
  9771. (and "OBJ_cleanup" in crypto/objects/obj_dat.c as an example).
  9772. *Geoff Thorpe*
  9773. * Add automatic query of EGD sockets in RAND_poll() for the unix variant.
  9774. If /dev/[u]random devices are not available or do not return enough
  9775. entropy, EGD style sockets (served by EGD or PRNGD) will automatically
  9776. be queried.
  9777. The locations /var/run/egd-pool, /dev/egd-pool, /etc/egd-pool, and
  9778. /etc/entropy will be queried once each in this sequence, querying stops
  9779. when enough entropy was collected without querying more sockets.
  9780. *Lutz Jaenicke*
  9781. * Change the Unix RAND_poll() variant to be able to poll several
  9782. random devices, as specified by DEVRANDOM, until a sufficient amount
  9783. of data has been collected. We spend at most 10 ms on each file
  9784. (select timeout) and read in non-blocking mode. DEVRANDOM now
  9785. defaults to the list "/dev/urandom", "/dev/random", "/dev/srandom"
  9786. (previously it was just the string "/dev/urandom"), so on typical
  9787. platforms the 10 ms delay will never occur.
  9788. Also separate out the Unix variant to its own file, rand_unix.c.
  9789. For VMS, there's a currently-empty rand_vms.c.
  9790. *Richard Levitte*
  9791. * Move OCSP client related routines to ocsp_cl.c. These
  9792. provide utility functions which an application needing
  9793. to issue a request to an OCSP responder and analyse the
  9794. response will typically need: as opposed to those which an
  9795. OCSP responder itself would need which will be added later.
  9796. OCSP_request_sign() signs an OCSP request with an API similar
  9797. to PKCS7_sign(). OCSP_response_status() returns status of OCSP
  9798. response. OCSP_response_get1_basic() extracts basic response
  9799. from response. OCSP_resp_find_status(): finds and extracts status
  9800. information from an OCSP_CERTID structure (which will be created
  9801. when the request structure is built). These are built from lower
  9802. level functions which work on OCSP_SINGLERESP structures but
  9803. won't normally be used unless the application wishes to examine
  9804. extensions in the OCSP response for example.
  9805. Replace nonce routines with a pair of functions.
  9806. OCSP_request_add1_nonce() adds a nonce value and optionally
  9807. generates a random value. OCSP_check_nonce() checks the
  9808. validity of the nonce in an OCSP response.
  9809. *Steve Henson*
  9810. * Change function OCSP_request_add() to OCSP_request_add0_id().
  9811. This doesn't copy the supplied OCSP_CERTID and avoids the
  9812. need to free up the newly created id. Change return type
  9813. to OCSP_ONEREQ to return the internal OCSP_ONEREQ structure.
  9814. This can then be used to add extensions to the request.
  9815. Deleted OCSP_request_new(), since most of its functionality
  9816. is now in OCSP_REQUEST_new() (and the case insensitive name
  9817. clash) apart from the ability to set the request name which
  9818. will be added elsewhere.
  9819. *Steve Henson*
  9820. * Update OCSP API. Remove obsolete extensions argument from
  9821. various functions. Extensions are now handled using the new
  9822. OCSP extension code. New simple OCSP HTTP function which
  9823. can be used to send requests and parse the response.
  9824. *Steve Henson*
  9825. * Fix the PKCS#7 (S/MIME) code to work with new ASN1. Two new
  9826. ASN1_ITEM structures help with sign and verify. PKCS7_ATTR_SIGN
  9827. uses the special reorder version of SET OF to sort the attributes
  9828. and reorder them to match the encoded order. This resolves a long
  9829. standing problem: a verify on a PKCS7 structure just after signing
  9830. it used to fail because the attribute order did not match the
  9831. encoded order. PKCS7_ATTR_VERIFY does not reorder the attributes:
  9832. it uses the received order. This is necessary to tolerate some broken
  9833. software that does not order SET OF. This is handled by encoding
  9834. as a SEQUENCE OF but using implicit tagging (with UNIVERSAL class)
  9835. to produce the required SET OF.
  9836. *Steve Henson*
  9837. * Have mk1mf.pl generate the macros OPENSSL_BUILD_SHLIBCRYPTO and
  9838. OPENSSL_BUILD_SHLIBSSL and use them appropriately in the header
  9839. files to get correct declarations of the ASN.1 item variables.
  9840. *Richard Levitte*
  9841. * Rewrite of PKCS#12 code to use new ASN1 functionality. Replace many
  9842. PKCS#12 macros with real functions. Fix two unrelated ASN1 bugs:
  9843. asn1_check_tlen() would sometimes attempt to use 'ctx' when it was
  9844. NULL and ASN1_TYPE was not dereferenced properly in asn1_ex_c2i().
  9845. New ASN1 macro: DECLARE_ASN1_ITEM() which just declares the relevant
  9846. ASN1_ITEM and no wrapper functions.
  9847. *Steve Henson*
  9848. * New functions or ASN1_item_d2i_fp() and ASN1_item_d2i_bio(). These
  9849. replace the old function pointer based I/O routines. Change most of
  9850. the `*_d2i_bio()` and `*_d2i_fp()` functions to use these.
  9851. *Steve Henson*
  9852. * Enhance mkdef.pl to be more accepting about spacing in C preprocessor
  9853. lines, recognize more "algorithms" that can be deselected, and make
  9854. it complain about algorithm deselection that isn't recognised.
  9855. *Richard Levitte*
  9856. * New ASN1 functions to handle dup, sign, verify, digest, pack and
  9857. unpack operations in terms of ASN1_ITEM. Modify existing wrappers
  9858. to use new functions. Add NO_ASN1_OLD which can be set to remove
  9859. some old style ASN1 functions: this can be used to determine if old
  9860. code will still work when these eventually go away.
  9861. *Steve Henson*
  9862. * New extension functions for OCSP structures, these follow the
  9863. same conventions as certificates and CRLs.
  9864. *Steve Henson*
  9865. * New function X509V3_add1_i2d(). This automatically encodes and
  9866. adds an extension. Its behaviour can be customised with various
  9867. flags to append, replace or delete. Various wrappers added for
  9868. certificates and CRLs.
  9869. *Steve Henson*
  9870. * Fix to avoid calling the underlying ASN1 print routine when
  9871. an extension cannot be parsed. Correct a typo in the
  9872. OCSP_SERVICELOC extension. Tidy up print OCSP format.
  9873. *Steve Henson*
  9874. * Make mkdef.pl parse some of the ASN1 macros and add appropriate
  9875. entries for variables.
  9876. *Steve Henson*
  9877. * Add functionality to `apps/openssl.c` for detecting locking
  9878. problems: As the program is single-threaded, all we have
  9879. to do is register a locking callback using an array for
  9880. storing which locks are currently held by the program.
  9881. *Bodo Moeller*
  9882. * Use a lock around the call to CRYPTO_get_ex_new_index() in
  9883. SSL_get_ex_data_X509_STORE_idx(), which is used in
  9884. ssl_verify_cert_chain() and thus can be called at any time
  9885. during TLS/SSL handshakes so that thread-safety is essential.
  9886. Unfortunately, the ex_data design is not at all suited
  9887. for multi-threaded use, so it probably should be abolished.
  9888. *Bodo Moeller*
  9889. * Added Broadcom "ubsec" ENGINE to OpenSSL.
  9890. *Broadcom, tweaked and integrated by Geoff Thorpe*
  9891. * Move common extension printing code to new function
  9892. X509V3_print_extensions(). Reorganise OCSP print routines and
  9893. implement some needed OCSP ASN1 functions. Add OCSP extensions.
  9894. *Steve Henson*
  9895. * New function X509_signature_print() to remove duplication in some
  9896. print routines.
  9897. *Steve Henson*
  9898. * Add a special meaning when SET OF and SEQUENCE OF flags are both
  9899. set (this was treated exactly the same as SET OF previously). This
  9900. is used to reorder the STACK representing the structure to match the
  9901. encoding. This will be used to get round a problem where a PKCS7
  9902. structure which was signed could not be verified because the STACK
  9903. order did not reflect the encoded order.
  9904. *Steve Henson*
  9905. * Reimplement the OCSP ASN1 module using the new code.
  9906. *Steve Henson*
  9907. * Update the X509V3 code to permit the use of an ASN1_ITEM structure
  9908. for its ASN1 operations. The old style function pointers still exist
  9909. for now but they will eventually go away.
  9910. *Steve Henson*
  9911. * Merge in replacement ASN1 code from the ASN1 branch. This almost
  9912. completely replaces the old ASN1 functionality with a table driven
  9913. encoder and decoder which interprets an ASN1_ITEM structure describing
  9914. the ASN1 module. Compatibility with the existing ASN1 API (i2d,d2i) is
  9915. largely maintained. Almost all of the old asn1_mac.h macro based ASN1
  9916. has also been converted to the new form.
  9917. *Steve Henson*
  9918. * Change BN_mod_exp_recp so that negative moduli are tolerated
  9919. (the sign is ignored). Similarly, ignore the sign in BN_MONT_CTX_set
  9920. so that BN_mod_exp_mont and BN_mod_exp_mont_word work
  9921. for negative moduli.
  9922. *Bodo Moeller*
  9923. * Fix BN_uadd and BN_usub: Always return non-negative results instead
  9924. of not touching the result's sign bit.
  9925. *Bodo Moeller*
  9926. * BN_div bugfix: If the result is 0, the sign (res->neg) must not be
  9927. set.
  9928. *Bodo Moeller*
  9929. * Changed the LHASH code to use prototypes for callbacks, and created
  9930. macros to declare and implement thin (optionally static) functions
  9931. that provide type-safety and avoid function pointer casting for the
  9932. type-specific callbacks.
  9933. *Geoff Thorpe*
  9934. * Added Kerberos Cipher Suites to be used with TLS, as written in
  9935. RFC 2712.
  9936. *Veers Staats <staatsvr@asc.hpc.mil>,
  9937. Jeffrey Altman <jaltman@columbia.edu>, via Richard Levitte*
  9938. * Reformat the FAQ so the different questions and answers can be divided
  9939. in sections depending on the subject.
  9940. *Richard Levitte*
  9941. * Have the zlib compression code load ZLIB.DLL dynamically under
  9942. Windows.
  9943. *Richard Levitte*
  9944. * New function BN_mod_sqrt for computing square roots modulo a prime
  9945. (using the probabilistic Tonelli-Shanks algorithm unless
  9946. p == 3 (mod 4) or p == 5 (mod 8), which are cases that can
  9947. be handled deterministically).
  9948. *Lenka Fibikova <fibikova@exp-math.uni-essen.de>, Bodo Moeller*
  9949. * Make BN_mod_inverse faster by explicitly handling small quotients
  9950. in the Euclid loop. (Speed gain about 20% for small moduli [256 or
  9951. 512 bits], about 30% for larger ones [1024 or 2048 bits].)
  9952. *Bodo Moeller*
  9953. * New function BN_kronecker.
  9954. *Bodo Moeller*
  9955. * Fix BN_gcd so that it works on negative inputs; the result is
  9956. positive unless both parameters are zero.
  9957. Previously something reasonably close to an infinite loop was
  9958. possible because numbers could be growing instead of shrinking
  9959. in the implementation of Euclid's algorithm.
  9960. *Bodo Moeller*
  9961. * Fix BN_is_word() and BN_is_one() macros to take into account the
  9962. sign of the number in question.
  9963. Fix BN_is_word(a,w) to work correctly for w == 0.
  9964. The old BN_is_word(a,w) macro is now called BN_abs_is_word(a,w)
  9965. because its test if the absolute value of 'a' equals 'w'.
  9966. Note that BN_abs_is_word does *not* handle w == 0 reliably;
  9967. it exists mostly for use in the implementations of BN_is_zero(),
  9968. BN_is_one(), and BN_is_word().
  9969. *Bodo Moeller*
  9970. * New function BN_swap.
  9971. *Bodo Moeller*
  9972. * Use BN_nnmod instead of BN_mod in crypto/bn/bn_exp.c so that
  9973. the exponentiation functions are more likely to produce reasonable
  9974. results on negative inputs.
  9975. *Bodo Moeller*
  9976. * Change BN_mod_mul so that the result is always non-negative.
  9977. Previously, it could be negative if one of the factors was negative;
  9978. I don't think anyone really wanted that behaviour.
  9979. *Bodo Moeller*
  9980. * Move `BN_mod_...` functions into new file `crypto/bn/bn_mod.c`
  9981. (except for exponentiation, which stays in `crypto/bn/bn_exp.c`,
  9982. and `BN_mod_mul_reciprocal`, which stays in `crypto/bn/bn_recp.c`)
  9983. and add new functions:
  9984. BN_nnmod
  9985. BN_mod_sqr
  9986. BN_mod_add
  9987. BN_mod_add_quick
  9988. BN_mod_sub
  9989. BN_mod_sub_quick
  9990. BN_mod_lshift1
  9991. BN_mod_lshift1_quick
  9992. BN_mod_lshift
  9993. BN_mod_lshift_quick
  9994. These functions always generate non-negative results.
  9995. `BN_nnmod` otherwise is `like BN_mod` (if `BN_mod` computes a remainder `r`
  9996. such that `|m| < r < 0`, `BN_nnmod` will output `rem + |m|` instead).
  9997. `BN_mod_XXX_quick(r, a, [b,] m)` generates the same result as
  9998. `BN_mod_XXX(r, a, [b,] m, ctx)`, but requires that `a` [and `b`]
  9999. be reduced modulo `m`.
  10000. *Lenka Fibikova <fibikova@exp-math.uni-essen.de>, Bodo Moeller*
  10001. <!--
  10002. The following entry accidentally appeared in the CHANGES file
  10003. distributed with OpenSSL 0.9.7. The modifications described in
  10004. it do *not* apply to OpenSSL 0.9.7.
  10005. * Remove a few calls to bn_wexpand() in BN_sqr() (the one in there
  10006. was actually never needed) and in BN_mul(). The removal in BN_mul()
  10007. required a small change in bn_mul_part_recursive() and the addition
  10008. of the functions bn_cmp_part_words(), bn_sub_part_words() and
  10009. bn_add_part_words(), which do the same thing as bn_cmp_words(),
  10010. bn_sub_words() and bn_add_words() except they take arrays with
  10011. differing sizes.
  10012. *Richard Levitte*
  10013. -->
  10014. * In 'openssl passwd', verify passwords read from the terminal
  10015. unless the '-salt' option is used (which usually means that
  10016. verification would just waste user's time since the resulting
  10017. hash is going to be compared with some given password hash)
  10018. or the new '-noverify' option is used.
  10019. This is an incompatible change, but it does not affect
  10020. non-interactive use of 'openssl passwd' (passwords on the command
  10021. line, '-stdin' option, '-in ...' option) and thus should not
  10022. cause any problems.
  10023. *Bodo Moeller*
  10024. * Remove all references to RSAref, since there's no more need for it.
  10025. *Richard Levitte*
  10026. * Make DSO load along a path given through an environment variable
  10027. (SHLIB_PATH) with shl_load().
  10028. *Richard Levitte*
  10029. * Constify the ENGINE code as a result of BIGNUM constification.
  10030. Also constify the RSA code and most things related to it. In a
  10031. few places, most notable in the depth of the ASN.1 code, ugly
  10032. casts back to non-const were required (to be solved at a later
  10033. time)
  10034. *Richard Levitte*
  10035. * Make it so the openssl application has all engines loaded by default.
  10036. *Richard Levitte*
  10037. * Constify the BIGNUM routines a little more.
  10038. *Richard Levitte*
  10039. * Add the following functions:
  10040. ENGINE_load_cswift()
  10041. ENGINE_load_chil()
  10042. ENGINE_load_atalla()
  10043. ENGINE_load_nuron()
  10044. ENGINE_load_builtin_engines()
  10045. That way, an application can itself choose if external engines that
  10046. are built-in in OpenSSL shall ever be used or not. The benefit is
  10047. that applications won't have to be linked with libdl or other dso
  10048. libraries unless it's really needed.
  10049. Changed 'openssl engine' to load all engines on demand.
  10050. Changed the engine header files to avoid the duplication of some
  10051. declarations (they differed!).
  10052. *Richard Levitte*
  10053. * 'openssl engine' can now list capabilities.
  10054. *Richard Levitte*
  10055. * Better error reporting in 'openssl engine'.
  10056. *Richard Levitte*
  10057. * Never call load_dh_param(NULL) in s_server.
  10058. *Bodo Moeller*
  10059. * Add engine application. It can currently list engines by name and
  10060. identity, and test if they are actually available.
  10061. *Richard Levitte*
  10062. * Improve RPM specification file by forcing symbolic linking and making
  10063. sure the installed documentation is also owned by root.root.
  10064. *Damien Miller <djm@mindrot.org>*
  10065. * Give the OpenSSL applications more possibilities to make use of
  10066. keys (public as well as private) handled by engines.
  10067. *Richard Levitte*
  10068. * Add OCSP code that comes from CertCo.
  10069. *Richard Levitte*
  10070. * Add VMS support for the Rijndael code.
  10071. *Richard Levitte*
  10072. * Added untested support for Nuron crypto accelerator.
  10073. *Ben Laurie*
  10074. * Add support for external cryptographic devices. This code was
  10075. previously distributed separately as the "engine" branch.
  10076. *Geoff Thorpe, Richard Levitte*
  10077. * Rework the filename-translation in the DSO code. It is now possible to
  10078. have far greater control over how a "name" is turned into a filename
  10079. depending on the operating environment and any oddities about the
  10080. different shared library filenames on each system.
  10081. *Geoff Thorpe*
  10082. * Support threads on FreeBSD-elf in Configure.
  10083. *Richard Levitte*
  10084. * Fix for SHA1 assembly problem with MASM: it produces
  10085. warnings about corrupt line number information when assembling
  10086. with debugging information. This is caused by the overlapping
  10087. of two sections.
  10088. *Bernd Matthes <mainbug@celocom.de>, Steve Henson*
  10089. * NCONF changes.
  10090. NCONF_get_number() has no error checking at all. As a replacement,
  10091. NCONF_get_number_e() is defined (`_e` for "error checking") and is
  10092. promoted strongly. The old NCONF_get_number is kept around for
  10093. binary backward compatibility.
  10094. Make it possible for methods to load from something other than a BIO,
  10095. by providing a function pointer that is given a name instead of a BIO.
  10096. For example, this could be used to load configuration data from an
  10097. LDAP server.
  10098. *Richard Levitte*
  10099. * Fix for non blocking accept BIOs. Added new I/O special reason
  10100. BIO_RR_ACCEPT to cover this case. Previously use of accept BIOs
  10101. with non blocking I/O was not possible because no retry code was
  10102. implemented. Also added new SSL code SSL_WANT_ACCEPT to cover
  10103. this case.
  10104. *Steve Henson*
  10105. * Added the beginnings of Rijndael support.
  10106. *Ben Laurie*
  10107. * Fix for bug in DirectoryString mask setting. Add support for
  10108. X509_NAME_print_ex() in 'req' and X509_print_ex() function
  10109. to allow certificate printing to more controllable, additional
  10110. 'certopt' option to 'x509' to allow new printing options to be
  10111. set.
  10112. *Steve Henson*
  10113. * Clean old EAY MD5 hack from e_os.h.
  10114. *Richard Levitte*
  10115. ### Changes between 0.9.6l and 0.9.6m [17 Mar 2004]
  10116. * Fix null-pointer assignment in do_change_cipher_spec() revealed
  10117. by using the Codenomicon TLS Test Tool ([CVE-2004-0079])
  10118. *Joe Orton, Steve Henson*
  10119. ### Changes between 0.9.6k and 0.9.6l [04 Nov 2003]
  10120. * Fix additional bug revealed by the NISCC test suite:
  10121. Stop bug triggering large recursion when presented with
  10122. certain ASN.1 tags ([CVE-2003-0851])
  10123. *Steve Henson*
  10124. ### Changes between 0.9.6j and 0.9.6k [30 Sep 2003]
  10125. * Fix various bugs revealed by running the NISCC test suite:
  10126. Stop out of bounds reads in the ASN1 code when presented with
  10127. invalid tags (CVE-2003-0543 and CVE-2003-0544).
  10128. If verify callback ignores invalid public key errors don't try to check
  10129. certificate signature with the NULL public key.
  10130. *Steve Henson*
  10131. * In ssl3_accept() (ssl/s3_srvr.c) only accept a client certificate
  10132. if the server requested one: as stated in TLS 1.0 and SSL 3.0
  10133. specifications.
  10134. *Steve Henson*
  10135. * In ssl3_get_client_hello() (ssl/s3_srvr.c), tolerate additional
  10136. extra data after the compression methods not only for TLS 1.0
  10137. but also for SSL 3.0 (as required by the specification).
  10138. *Bodo Moeller; problem pointed out by Matthias Loepfe*
  10139. * Change X509_certificate_type() to mark the key as exported/exportable
  10140. when it's 512 *bits* long, not 512 bytes.
  10141. *Richard Levitte*
  10142. ### Changes between 0.9.6i and 0.9.6j [10 Apr 2003]
  10143. * Countermeasure against the Klima-Pokorny-Rosa extension of
  10144. Bleichbacher's attack on PKCS #1 v1.5 padding: treat
  10145. a protocol version number mismatch like a decryption error
  10146. in ssl3_get_client_key_exchange (ssl/s3_srvr.c).
  10147. *Bodo Moeller*
  10148. * Turn on RSA blinding by default in the default implementation
  10149. to avoid a timing attack. Applications that don't want it can call
  10150. RSA_blinding_off() or use the new flag RSA_FLAG_NO_BLINDING.
  10151. They would be ill-advised to do so in most cases.
  10152. *Ben Laurie, Steve Henson, Geoff Thorpe, Bodo Moeller*
  10153. * Change RSA blinding code so that it works when the PRNG is not
  10154. seeded (in this case, the secret RSA exponent is abused as
  10155. an unpredictable seed -- if it is not unpredictable, there
  10156. is no point in blinding anyway). Make RSA blinding thread-safe
  10157. by remembering the creator's thread ID in rsa->blinding and
  10158. having all other threads use local one-time blinding factors
  10159. (this requires more computation than sharing rsa->blinding, but
  10160. avoids excessive locking; and if an RSA object is not shared
  10161. between threads, blinding will still be very fast).
  10162. *Bodo Moeller*
  10163. ### Changes between 0.9.6h and 0.9.6i [19 Feb 2003]
  10164. * In ssl3_get_record (ssl/s3_pkt.c), minimize information leaked
  10165. via timing by performing a MAC computation even if incorrect
  10166. block cipher padding has been found. This is a countermeasure
  10167. against active attacks where the attacker has to distinguish
  10168. between bad padding and a MAC verification error. ([CVE-2003-0078])
  10169. *Bodo Moeller; problem pointed out by Brice Canvel (EPFL),
  10170. Alain Hiltgen (UBS), Serge Vaudenay (EPFL), and
  10171. Martin Vuagnoux (EPFL, Ilion)*
  10172. ### Changes between 0.9.6g and 0.9.6h [5 Dec 2002]
  10173. * New function OPENSSL_cleanse(), which is used to cleanse a section of
  10174. memory from its contents. This is done with a counter that will
  10175. place alternating values in each byte. This can be used to solve
  10176. two issues: 1) the removal of calls to memset() by highly optimizing
  10177. compilers, and 2) cleansing with other values than 0, since those can
  10178. be read through on certain media, for example a swap space on disk.
  10179. *Geoff Thorpe*
  10180. * Bugfix: client side session caching did not work with external caching,
  10181. because the session->cipher setting was not restored when reloading
  10182. from the external cache. This problem was masked, when
  10183. SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG (part of SSL_OP_ALL) was set.
  10184. (Found by Steve Haslam <steve@araqnid.ddts.net>.)
  10185. *Lutz Jaenicke*
  10186. * Fix client_certificate (ssl/s2_clnt.c): The permissible total
  10187. length of the REQUEST-CERTIFICATE message is 18 .. 34, not 17 .. 33.
  10188. *Zeev Lieber <zeev-l@yahoo.com>*
  10189. * Undo an undocumented change introduced in 0.9.6e which caused
  10190. repeated calls to OpenSSL_add_all_ciphers() and
  10191. OpenSSL_add_all_digests() to be ignored, even after calling
  10192. EVP_cleanup().
  10193. *Richard Levitte*
  10194. * Change the default configuration reader to deal with last line not
  10195. being properly terminated.
  10196. *Richard Levitte*
  10197. * Change X509_NAME_cmp() so it applies the special rules on handling
  10198. DN values that are of type PrintableString, as well as RDNs of type
  10199. emailAddress where the value has the type ia5String.
  10200. *stefank@valicert.com via Richard Levitte*
  10201. * Add a SSL_SESS_CACHE_NO_INTERNAL_STORE flag to take over half
  10202. the job SSL_SESS_CACHE_NO_INTERNAL_LOOKUP was inconsistently
  10203. doing, define a new flag (SSL_SESS_CACHE_NO_INTERNAL) to be
  10204. the bitwise-OR of the two for use by the majority of applications
  10205. wanting this behaviour, and update the docs. The documented
  10206. behaviour and actual behaviour were inconsistent and had been
  10207. changing anyway, so this is more a bug-fix than a behavioural
  10208. change.
  10209. *Geoff Thorpe, diagnosed by Nadav Har'El*
  10210. * Don't impose a 16-byte length minimum on session IDs in ssl/s3_clnt.c
  10211. (the SSL 3.0 and TLS 1.0 specifications allow any length up to 32 bytes).
  10212. *Bodo Moeller*
  10213. * Fix initialization code race conditions in
  10214. SSLv23_method(), SSLv23_client_method(), SSLv23_server_method(),
  10215. SSLv2_method(), SSLv2_client_method(), SSLv2_server_method(),
  10216. SSLv3_method(), SSLv3_client_method(), SSLv3_server_method(),
  10217. TLSv1_method(), TLSv1_client_method(), TLSv1_server_method(),
  10218. ssl2_get_cipher_by_char(),
  10219. ssl3_get_cipher_by_char().
  10220. *Patrick McCormick <patrick@tellme.com>, Bodo Moeller*
  10221. * Reorder cleanup sequence in SSL_CTX_free(): only remove the ex_data after
  10222. the cached sessions are flushed, as the remove_cb() might use ex_data
  10223. contents. Bug found by Sam Varshavchik <mrsam@courier-mta.com>
  10224. (see [openssl.org #212]).
  10225. *Geoff Thorpe, Lutz Jaenicke*
  10226. * Fix typo in OBJ_txt2obj which incorrectly passed the content
  10227. length, instead of the encoding length to d2i_ASN1_OBJECT.
  10228. *Steve Henson*
  10229. ### Changes between 0.9.6f and 0.9.6g [9 Aug 2002]
  10230. * [In 0.9.6g-engine release:]
  10231. Fix crypto/engine/vendor_defns/cswift.h for WIN32 (use `_stdcall`).
  10232. *Lynn Gazis <lgazis@rainbow.com>*
  10233. ### Changes between 0.9.6e and 0.9.6f [8 Aug 2002]
  10234. * Fix ASN1 checks. Check for overflow by comparing with LONG_MAX
  10235. and get fix the header length calculation.
  10236. *Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>,
  10237. Alon Kantor <alonk@checkpoint.com> (and others), Steve Henson*
  10238. * Use proper error handling instead of 'assertions' in buffer
  10239. overflow checks added in 0.9.6e. This prevents DoS (the
  10240. assertions could call abort()).
  10241. *Arne Ansper <arne@ats.cyber.ee>, Bodo Moeller*
  10242. ### Changes between 0.9.6d and 0.9.6e [30 Jul 2002]
  10243. * Add various sanity checks to asn1_get_length() to reject
  10244. the ASN1 length bytes if they exceed sizeof(long), will appear
  10245. negative or the content length exceeds the length of the
  10246. supplied buffer.
  10247. *Steve Henson, Adi Stav <stav@mercury.co.il>, James Yonan <jim@ntlp.com>*
  10248. * Fix cipher selection routines: ciphers without encryption had no flags
  10249. for the cipher strength set and where therefore not handled correctly
  10250. by the selection routines (PR #130).
  10251. *Lutz Jaenicke*
  10252. * Fix EVP_dsa_sha macro.
  10253. *Nils Larsch*
  10254. * New option
  10255. SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS
  10256. for disabling the SSL 3.0/TLS 1.0 CBC vulnerability countermeasure
  10257. that was added in OpenSSL 0.9.6d.
  10258. As the countermeasure turned out to be incompatible with some
  10259. broken SSL implementations, the new option is part of SSL_OP_ALL.
  10260. SSL_OP_ALL is usually employed when compatibility with weird SSL
  10261. implementations is desired (e.g. '-bugs' option to 's_client' and
  10262. 's_server'), so the new option is automatically set in many
  10263. applications.
  10264. *Bodo Moeller*
  10265. * Changes in security patch:
  10266. Changes marked "(CHATS)" were sponsored by the Defense Advanced
  10267. Research Projects Agency (DARPA) and Air Force Research Laboratory,
  10268. Air Force Materiel Command, USAF, under agreement number
  10269. F30602-01-2-0537.
  10270. * Add various sanity checks to asn1_get_length() to reject
  10271. the ASN1 length bytes if they exceed sizeof(long), will appear
  10272. negative or the content length exceeds the length of the
  10273. supplied buffer. ([CVE-2002-0659])
  10274. *Steve Henson, Adi Stav <stav@mercury.co.il>, James Yonan <jim@ntlp.com>*
  10275. * Assertions for various potential buffer overflows, not known to
  10276. happen in practice.
  10277. *Ben Laurie (CHATS)*
  10278. * Various temporary buffers to hold ASCII versions of integers were
  10279. too small for 64 bit platforms. ([CVE-2002-0655])
  10280. *Matthew Byng-Maddick <mbm@aldigital.co.uk> and Ben Laurie (CHATS)>*
  10281. * Remote buffer overflow in SSL3 protocol - an attacker could
  10282. supply an oversized session ID to a client. ([CVE-2002-0656])
  10283. *Ben Laurie (CHATS)*
  10284. * Remote buffer overflow in SSL2 protocol - an attacker could
  10285. supply an oversized client master key. ([CVE-2002-0656])
  10286. *Ben Laurie (CHATS)*
  10287. ### Changes between 0.9.6c and 0.9.6d [9 May 2002]
  10288. * Fix crypto/asn1/a_sign.c so that 'parameters' is omitted (not
  10289. encoded as NULL) with id-dsa-with-sha1.
  10290. *Nils Larsch <nla@trustcenter.de>; problem pointed out by Bodo Moeller*
  10291. * Check various `X509_...()` return values in `apps/req.c`.
  10292. *Nils Larsch <nla@trustcenter.de>*
  10293. * Fix BASE64 decode (EVP_DecodeUpdate) for data with CR/LF ended lines:
  10294. an end-of-file condition would erroneously be flagged, when the CRLF
  10295. was just at the end of a processed block. The bug was discovered when
  10296. processing data through a buffering memory BIO handing the data to a
  10297. BASE64-decoding BIO. Bug fund and patch submitted by Pavel Tsekov
  10298. <ptsekov@syntrex.com> and Nedelcho Stanev.
  10299. *Lutz Jaenicke*
  10300. * Implement a countermeasure against a vulnerability recently found
  10301. in CBC ciphersuites in SSL 3.0/TLS 1.0: Send an empty fragment
  10302. before application data chunks to avoid the use of known IVs
  10303. with data potentially chosen by the attacker.
  10304. *Bodo Moeller*
  10305. * Fix length checks in ssl3_get_client_hello().
  10306. *Bodo Moeller*
  10307. * TLS/SSL library bugfix: use s->s3->in_read_app_data differently
  10308. to prevent ssl3_read_internal() from incorrectly assuming that
  10309. ssl3_read_bytes() found application data while handshake
  10310. processing was enabled when in fact s->s3->in_read_app_data was
  10311. merely automatically cleared during the initial handshake.
  10312. *Bodo Moeller; problem pointed out by Arne Ansper <arne@ats.cyber.ee>*
  10313. * Fix object definitions for Private and Enterprise: they were not
  10314. recognized in their shortname (=lowercase) representation. Extend
  10315. obj_dat.pl to issue an error when using undefined keywords instead
  10316. of silently ignoring the problem (Svenning Sorensen
  10317. <sss@sss.dnsalias.net>).
  10318. *Lutz Jaenicke*
  10319. * Fix DH_generate_parameters() so that it works for 'non-standard'
  10320. generators, i.e. generators other than 2 and 5. (Previously, the
  10321. code did not properly initialise the 'add' and 'rem' values to
  10322. BN_generate_prime().)
  10323. In the new general case, we do not insist that 'generator' is
  10324. actually a primitive root: This requirement is rather pointless;
  10325. a generator of the order-q subgroup is just as good, if not
  10326. better.
  10327. *Bodo Moeller*
  10328. * Map new X509 verification errors to alerts. Discovered and submitted by
  10329. Tom Wu <tom@arcot.com>.
  10330. *Lutz Jaenicke*
  10331. * Fix ssl3_pending() (ssl/s3_lib.c) to prevent SSL_pending() from
  10332. returning non-zero before the data has been completely received
  10333. when using non-blocking I/O.
  10334. *Bodo Moeller; problem pointed out by John Hughes*
  10335. * Some of the ciphers missed the strength entry (SSL_LOW etc).
  10336. *Ben Laurie, Lutz Jaenicke*
  10337. * Fix bug in SSL_clear(): bad sessions were not removed (found by
  10338. Yoram Zahavi <YoramZ@gilian.com>).
  10339. *Lutz Jaenicke*
  10340. * Add information about CygWin 1.3 and on, and preserve proper
  10341. configuration for the versions before that.
  10342. *Corinna Vinschen <vinschen@redhat.com> and Richard Levitte*
  10343. * Make removal from session cache (SSL_CTX_remove_session()) more robust:
  10344. check whether we deal with a copy of a session and do not delete from
  10345. the cache in this case. Problem reported by "Izhar Shoshani Levi"
  10346. <izhar@checkpoint.com>.
  10347. *Lutz Jaenicke*
  10348. * Do not store session data into the internal session cache, if it
  10349. is never intended to be looked up (SSL_SESS_CACHE_NO_INTERNAL_LOOKUP
  10350. flag is set). Proposed by Aslam <aslam@funk.com>.
  10351. *Lutz Jaenicke*
  10352. * Have ASN1_BIT_STRING_set_bit() really clear a bit when the requested
  10353. value is 0.
  10354. *Richard Levitte*
  10355. * [In 0.9.6d-engine release:]
  10356. Fix a crashbug and a logic bug in hwcrhk_load_pubkey().
  10357. *Toomas Kiisk <vix@cyber.ee> via Richard Levitte*
  10358. * Add the configuration target linux-s390x.
  10359. *Neale Ferguson <Neale.Ferguson@SoftwareAG-USA.com> via Richard Levitte*
  10360. * The earlier bugfix for the SSL3_ST_SW_HELLO_REQ_C case of
  10361. ssl3_accept (ssl/s3_srvr.c) incorrectly used a local flag
  10362. variable as an indication that a ClientHello message has been
  10363. received. As the flag value will be lost between multiple
  10364. invocations of ssl3_accept when using non-blocking I/O, the
  10365. function may not be aware that a handshake has actually taken
  10366. place, thus preventing a new session from being added to the
  10367. session cache.
  10368. To avoid this problem, we now set s->new_session to 2 instead of
  10369. using a local variable.
  10370. *Lutz Jaenicke, Bodo Moeller*
  10371. * Bugfix: Return -1 from ssl3_get_server_done (ssl3/s3_clnt.c)
  10372. if the SSL_R_LENGTH_MISMATCH error is detected.
  10373. *Geoff Thorpe, Bodo Moeller*
  10374. * New 'shared_ldflag' column in Configure platform table.
  10375. *Richard Levitte*
  10376. * Fix EVP_CIPHER_mode macro.
  10377. *"Dan S. Camper" <dan@bti.net>*
  10378. * Fix ssl3_read_bytes (ssl/s3_pkt.c): To ignore messages of unknown
  10379. type, we must throw them away by setting rr->length to 0.
  10380. *D P Chang <dpc@qualys.com>*
  10381. ### Changes between 0.9.6b and 0.9.6c [21 dec 2001]
  10382. * Fix BN_rand_range bug pointed out by Dominikus Scherkl
  10383. <Dominikus.Scherkl@biodata.com>. (The previous implementation
  10384. worked incorrectly for those cases where range = `10..._2` and
  10385. `3*range` is two bits longer than range.)
  10386. *Bodo Moeller*
  10387. * Only add signing time to PKCS7 structures if it is not already
  10388. present.
  10389. *Steve Henson*
  10390. * Fix crypto/objects/objects.h: "ld-ce" should be "id-ce",
  10391. OBJ_ld_ce should be OBJ_id_ce.
  10392. Also some ip-pda OIDs in crypto/objects/objects.txt were
  10393. incorrect (cf. RFC 3039).
  10394. *Matt Cooper, Frederic Giudicelli, Bodo Moeller*
  10395. * Release CRYPTO_LOCK_DYNLOCK when CRYPTO_destroy_dynlockid()
  10396. returns early because it has nothing to do.
  10397. *Andy Schneider <andy.schneider@bjss.co.uk>*
  10398. * [In 0.9.6c-engine release:]
  10399. Fix mutex callback return values in crypto/engine/hw_ncipher.c.
  10400. *Andy Schneider <andy.schneider@bjss.co.uk>*
  10401. * [In 0.9.6c-engine release:]
  10402. Add support for Cryptographic Appliance's keyserver technology.
  10403. (Use engine 'keyclient')
  10404. *Cryptographic Appliances and Geoff Thorpe*
  10405. * Add a configuration entry for OS/390 Unix. The C compiler 'c89'
  10406. is called via tools/c89.sh because arguments have to be
  10407. rearranged (all '-L' options must appear before the first object
  10408. modules).
  10409. *Richard Shapiro <rshapiro@abinitio.com>*
  10410. * [In 0.9.6c-engine release:]
  10411. Add support for Broadcom crypto accelerator cards, backported
  10412. from 0.9.7.
  10413. *Broadcom, Nalin Dahyabhai <nalin@redhat.com>, Mark Cox*
  10414. * [In 0.9.6c-engine release:]
  10415. Add support for SureWare crypto accelerator cards from
  10416. Baltimore Technologies. (Use engine 'sureware')
  10417. *Baltimore Technologies and Mark Cox*
  10418. * [In 0.9.6c-engine release:]
  10419. Add support for crypto accelerator cards from Accelerated
  10420. Encryption Processing, www.aep.ie. (Use engine 'aep')
  10421. *AEP Inc. and Mark Cox*
  10422. * Add a configuration entry for gcc on UnixWare.
  10423. *Gary Benson <gbenson@redhat.com>*
  10424. * Change ssl/s2_clnt.c and ssl/s2_srvr.c so that received handshake
  10425. messages are stored in a single piece (fixed-length part and
  10426. variable-length part combined) and fix various bugs found on the way.
  10427. *Bodo Moeller*
  10428. * Disable caching in BIO_gethostbyname(), directly use gethostbyname()
  10429. instead. BIO_gethostbyname() does not know what timeouts are
  10430. appropriate, so entries would stay in cache even when they have
  10431. become invalid.
  10432. *Bodo Moeller; problem pointed out by Rich Salz <rsalz@zolera.com>*
  10433. * Change ssl23_get_client_hello (ssl/s23_srvr.c) behaviour when
  10434. faced with a pathologically small ClientHello fragment that does
  10435. not contain client_version: Instead of aborting with an error,
  10436. simply choose the highest available protocol version (i.e.,
  10437. TLS 1.0 unless it is disabled). In practice, ClientHello
  10438. messages are never sent like this, but this change gives us
  10439. strictly correct behaviour at least for TLS.
  10440. *Bodo Moeller*
  10441. * Fix SSL handshake functions and SSL_clear() such that SSL_clear()
  10442. never resets s->method to s->ctx->method when called from within
  10443. one of the SSL handshake functions.
  10444. *Bodo Moeller; problem pointed out by Niko Baric*
  10445. * In ssl3_get_client_hello (ssl/s3_srvr.c), generate a fatal alert
  10446. (sent using the client's version number) if client_version is
  10447. smaller than the protocol version in use. Also change
  10448. ssl23_get_client_hello (ssl/s23_srvr.c) to select TLS 1.0 if
  10449. the client demanded SSL 3.0 but only TLS 1.0 is enabled; then
  10450. the client will at least see that alert.
  10451. *Bodo Moeller*
  10452. * Fix ssl3_get_message (ssl/s3_both.c) to handle message fragmentation
  10453. correctly.
  10454. *Bodo Moeller*
  10455. * Avoid infinite loop in ssl3_get_message (ssl/s3_both.c) if a
  10456. client receives HelloRequest while in a handshake.
  10457. *Bodo Moeller; bug noticed by Andy Schneider <andy.schneider@bjss.co.uk>*
  10458. * Bugfix in ssl3_accept (ssl/s3_srvr.c): Case SSL3_ST_SW_HELLO_REQ_C
  10459. should end in 'break', not 'goto end' which circumvents various
  10460. cleanups done in state SSL_ST_OK. But session related stuff
  10461. must be disabled for SSL_ST_OK in the case that we just sent a
  10462. HelloRequest.
  10463. Also avoid some overhead by not calling ssl_init_wbio_buffer()
  10464. before just sending a HelloRequest.
  10465. *Bodo Moeller, Eric Rescorla <ekr@rtfm.com>*
  10466. * Fix ssl/s3_enc.c, ssl/t1_enc.c and ssl/s3_pkt.c so that we don't
  10467. reveal whether illegal block cipher padding was found or a MAC
  10468. verification error occurred. (Neither SSLerr() codes nor alerts
  10469. are directly visible to potential attackers, but the information
  10470. may leak via logfiles.)
  10471. Similar changes are not required for the SSL 2.0 implementation
  10472. because the number of padding bytes is sent in clear for SSL 2.0,
  10473. and the extra bytes are just ignored. However ssl/s2_pkt.c
  10474. failed to verify that the purported number of padding bytes is in
  10475. the legal range.
  10476. *Bodo Moeller*
  10477. * Add OpenUNIX-8 support including shared libraries
  10478. (Boyd Lynn Gerber <gerberb@zenez.com>).
  10479. *Lutz Jaenicke*
  10480. * Improve RSA_padding_check_PKCS1_OAEP() check again to avoid
  10481. 'wristwatch attack' using huge encoding parameters (cf.
  10482. James H. Manger's CRYPTO 2001 paper). Note that the
  10483. RSA_PKCS1_OAEP_PADDING case of RSA_private_decrypt() does not use
  10484. encoding parameters and hence was not vulnerable.
  10485. *Bodo Moeller*
  10486. * BN_sqr() bug fix.
  10487. *Ulf Möller, reported by Jim Ellis <jim.ellis@cavium.com>*
  10488. * Rabin-Miller test analyses assume uniformly distributed witnesses,
  10489. so use BN_pseudo_rand_range() instead of using BN_pseudo_rand()
  10490. followed by modular reduction.
  10491. *Bodo Moeller; pointed out by Adam Young <AYoung1@NCSUS.JNJ.COM>*
  10492. * Add BN_pseudo_rand_range() with obvious functionality: BN_rand_range()
  10493. equivalent based on BN_pseudo_rand() instead of BN_rand().
  10494. *Bodo Moeller*
  10495. * s3_srvr.c: allow sending of large client certificate lists (> 16 kB).
  10496. This function was broken, as the check for a new client hello message
  10497. to handle SGC did not allow these large messages.
  10498. (Tracked down by "Douglas E. Engert" <deengert@anl.gov>.)
  10499. *Lutz Jaenicke*
  10500. * Add alert descriptions for TLSv1 to `SSL_alert_desc_string[_long]()`.
  10501. *Lutz Jaenicke*
  10502. * Fix buggy behaviour of BIO_get_num_renegotiates() and BIO_ctrl()
  10503. for BIO_C_GET_WRITE_BUF_SIZE ("Stephen Hinton" <shinton@netopia.com>).
  10504. *Lutz Jaenicke*
  10505. * Rework the configuration and shared library support for Tru64 Unix.
  10506. The configuration part makes use of modern compiler features and
  10507. still retains old compiler behavior for those that run older versions
  10508. of the OS. The shared library support part includes a variant that
  10509. uses the RPATH feature, and is available through the special
  10510. configuration target "alpha-cc-rpath", which will never be selected
  10511. automatically.
  10512. *Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu> via Richard Levitte*
  10513. * In ssl3_get_key_exchange (ssl/s3_clnt.c), call ssl3_get_message()
  10514. with the same message size as in ssl3_get_certificate_request().
  10515. Otherwise, if no ServerKeyExchange message occurs, CertificateRequest
  10516. messages might inadvertently be reject as too long.
  10517. *Petr Lampa <lampa@fee.vutbr.cz>*
  10518. * Enhanced support for IA-64 Unix platforms (well, Linux and HP-UX).
  10519. *Andy Polyakov*
  10520. * Modified SSL library such that the verify_callback that has been set
  10521. specifically for an SSL object with SSL_set_verify() is actually being
  10522. used. Before the change, a verify_callback set with this function was
  10523. ignored and the verify_callback() set in the SSL_CTX at the time of
  10524. the call was used. New function X509_STORE_CTX_set_verify_cb() introduced
  10525. to allow the necessary settings.
  10526. *Lutz Jaenicke*
  10527. * Initialize static variable in crypto/dsa/dsa_lib.c and crypto/dh/dh_lib.c
  10528. explicitly to NULL, as at least on Solaris 8 this seems not always to be
  10529. done automatically (in contradiction to the requirements of the C
  10530. standard). This made problems when used from OpenSSH.
  10531. *Lutz Jaenicke*
  10532. * In OpenSSL 0.9.6a and 0.9.6b, crypto/dh/dh_key.c ignored
  10533. dh->length and always used
  10534. BN_rand_range(priv_key, dh->p).
  10535. BN_rand_range() is not necessary for Diffie-Hellman, and this
  10536. specific range makes Diffie-Hellman unnecessarily inefficient if
  10537. dh->length (recommended exponent length) is much smaller than the
  10538. length of dh->p. We could use BN_rand_range() if the order of
  10539. the subgroup was stored in the DH structure, but we only have
  10540. dh->length.
  10541. So switch back to
  10542. BN_rand(priv_key, l, ...)
  10543. where 'l' is dh->length if this is defined, or BN_num_bits(dh->p)-1
  10544. otherwise.
  10545. *Bodo Moeller*
  10546. * In
  10547. RSA_eay_public_encrypt
  10548. RSA_eay_private_decrypt
  10549. RSA_eay_private_encrypt (signing)
  10550. RSA_eay_public_decrypt (signature verification)
  10551. (default implementations for RSA_public_encrypt,
  10552. RSA_private_decrypt, RSA_private_encrypt, RSA_public_decrypt),
  10553. always reject numbers >= n.
  10554. *Bodo Moeller*
  10555. * In crypto/rand/md_rand.c, use a new short-time lock CRYPTO_LOCK_RAND2
  10556. to synchronize access to 'locking_thread'. This is necessary on
  10557. systems where access to 'locking_thread' (an 'unsigned long'
  10558. variable) is not atomic.
  10559. *Bodo Moeller*
  10560. * In crypto/rand/md_rand.c, set 'locking_thread' to current thread's ID
  10561. *before* setting the 'crypto_lock_rand' flag. The previous code had
  10562. a race condition if 0 is a valid thread ID.
  10563. *Travis Vitek <vitek@roguewave.com>*
  10564. * Add support for shared libraries under Irix.
  10565. *Albert Chin-A-Young <china@thewrittenword.com>*
  10566. * Add configuration option to build on Linux on both big-endian and
  10567. little-endian MIPS.
  10568. *Ralf Baechle <ralf@uni-koblenz.de>*
  10569. * Add the possibility to create shared libraries on HP-UX.
  10570. *Richard Levitte*
  10571. ### Changes between 0.9.6a and 0.9.6b [9 Jul 2001]
  10572. * Change ssleay_rand_bytes (crypto/rand/md_rand.c)
  10573. to avoid a SSLeay/OpenSSL PRNG weakness pointed out by
  10574. Markku-Juhani O. Saarinen <markku-juhani.saarinen@nokia.com>:
  10575. PRNG state recovery was possible based on the output of
  10576. one PRNG request appropriately sized to gain knowledge on
  10577. 'md' followed by enough consecutive 1-byte PRNG requests
  10578. to traverse all of 'state'.
  10579. 1. When updating 'md_local' (the current thread's copy of 'md')
  10580. during PRNG output generation, hash all of the previous
  10581. 'md_local' value, not just the half used for PRNG output.
  10582. 2. Make the number of bytes from 'state' included into the hash
  10583. independent from the number of PRNG bytes requested.
  10584. The first measure alone would be sufficient to avoid
  10585. Markku-Juhani's attack. (Actually it had never occurred
  10586. to me that the half of 'md_local' used for chaining was the
  10587. half from which PRNG output bytes were taken -- I had always
  10588. assumed that the secret half would be used.) The second
  10589. measure makes sure that additional data from 'state' is never
  10590. mixed into 'md_local' in small portions; this heuristically
  10591. further strengthens the PRNG.
  10592. *Bodo Moeller*
  10593. * Fix crypto/bn/asm/mips3.s.
  10594. *Andy Polyakov*
  10595. * When only the key is given to "enc", the IV is undefined. Print out
  10596. an error message in this case.
  10597. *Lutz Jaenicke*
  10598. * Handle special case when X509_NAME is empty in X509 printing routines.
  10599. *Steve Henson*
  10600. * In dsa_do_verify (crypto/dsa/dsa_ossl.c), verify that r and s are
  10601. positive and less than q.
  10602. *Bodo Moeller*
  10603. * Don't change `*pointer` in CRYPTO_add_lock() is add_lock_callback is
  10604. used: it isn't thread safe and the add_lock_callback should handle
  10605. that itself.
  10606. *Paul Rose <Paul.Rose@bridge.com>*
  10607. * Verify that incoming data obeys the block size in
  10608. ssl3_enc (ssl/s3_enc.c) and tls1_enc (ssl/t1_enc.c).
  10609. *Bodo Moeller*
  10610. * Fix OAEP check.
  10611. *Ulf Möller, Bodo Möller*
  10612. * The countermeasure against Bleichbacher's attack on PKCS #1 v1.5
  10613. RSA encryption was accidentally removed in s3_srvr.c in OpenSSL 0.9.5
  10614. when fixing the server behaviour for backwards-compatible 'client
  10615. hello' messages. (Note that the attack is impractical against
  10616. SSL 3.0 and TLS 1.0 anyway because length and version checking
  10617. means that the probability of guessing a valid ciphertext is
  10618. around 2^-40; see section 5 in Bleichenbacher's CRYPTO '98
  10619. paper.)
  10620. Before 0.9.5, the countermeasure (hide the error by generating a
  10621. random 'decryption result') did not work properly because
  10622. ERR_clear_error() was missing, meaning that SSL_get_error() would
  10623. detect the supposedly ignored error.
  10624. Both problems are now fixed.
  10625. *Bodo Moeller*
  10626. * In crypto/bio/bf_buff.c, increase DEFAULT_BUFFER_SIZE to 4096
  10627. (previously it was 1024).
  10628. *Bodo Moeller*
  10629. * Fix for compatibility mode trust settings: ignore trust settings
  10630. unless some valid trust or reject settings are present.
  10631. *Steve Henson*
  10632. * Fix for blowfish EVP: its a variable length cipher.
  10633. *Steve Henson*
  10634. * Fix various bugs related to DSA S/MIME verification. Handle missing
  10635. parameters in DSA public key structures and return an error in the
  10636. DSA routines if parameters are absent.
  10637. *Steve Henson*
  10638. * In versions up to 0.9.6, RAND_file_name() resorted to file ".rnd"
  10639. in the current directory if neither $RANDFILE nor $HOME was set.
  10640. RAND_file_name() in 0.9.6a returned NULL in this case. This has
  10641. caused some confusion to Windows users who haven't defined $HOME.
  10642. Thus RAND_file_name() is changed again: e_os.h can define a
  10643. DEFAULT_HOME, which will be used if $HOME is not set.
  10644. For Windows, we use "C:"; on other platforms, we still require
  10645. environment variables.
  10646. * Move 'if (!initialized) RAND_poll()' into regions protected by
  10647. CRYPTO_LOCK_RAND. This is not strictly necessary, but avoids
  10648. having multiple threads call RAND_poll() concurrently.
  10649. *Bodo Moeller*
  10650. * In crypto/rand/md_rand.c, replace 'add_do_not_lock' flag by a
  10651. combination of a flag and a thread ID variable.
  10652. Otherwise while one thread is in ssleay_rand_bytes (which sets the
  10653. flag), *other* threads can enter ssleay_add_bytes without obeying
  10654. the CRYPTO_LOCK_RAND lock (and may even illegally release the lock
  10655. that they do not hold after the first thread unsets add_do_not_lock).
  10656. *Bodo Moeller*
  10657. * Change bctest again: '-x' expressions are not available in all
  10658. versions of 'test'.
  10659. *Bodo Moeller*
  10660. ### Changes between 0.9.6 and 0.9.6a [5 Apr 2001]
  10661. * Fix a couple of memory leaks in PKCS7_dataDecode()
  10662. *Steve Henson, reported by Heyun Zheng <hzheng@atdsprint.com>*
  10663. * Change Configure and Makefiles to provide EXE_EXT, which will contain
  10664. the default extension for executables, if any. Also, make the perl
  10665. scripts that use symlink() to test if it really exists and use "cp"
  10666. if it doesn't. All this made OpenSSL compilable and installable in
  10667. CygWin.
  10668. *Richard Levitte*
  10669. * Fix for asn1_GetSequence() for indefinite length constructed data.
  10670. If SEQUENCE is length is indefinite just set c->slen to the total
  10671. amount of data available.
  10672. *Steve Henson, reported by shige@FreeBSD.org*
  10673. *This change does not apply to 0.9.7.*
  10674. * Change bctest to avoid here-documents inside command substitution
  10675. (workaround for FreeBSD /bin/sh bug).
  10676. For compatibility with Ultrix, avoid shell functions (introduced
  10677. in the bctest version that searches along $PATH).
  10678. *Bodo Moeller*
  10679. * Rename 'des_encrypt' to 'des_encrypt1'. This avoids the clashes
  10680. with des_encrypt() defined on some operating systems, like Solaris
  10681. and UnixWare.
  10682. *Richard Levitte*
  10683. * Check the result of RSA-CRT (see D. Boneh, R. DeMillo, R. Lipton:
  10684. On the Importance of Eliminating Errors in Cryptographic
  10685. Computations, J. Cryptology 14 (2001) 2, 101-119,
  10686. <http://theory.stanford.edu/~dabo/papers/faults.ps.gz>).
  10687. *Ulf Moeller*
  10688. * MIPS assembler BIGNUM division bug fix.
  10689. *Andy Polyakov*
  10690. * Disabled incorrect Alpha assembler code.
  10691. *Richard Levitte*
  10692. * Fix PKCS#7 decode routines so they correctly update the length
  10693. after reading an EOC for the EXPLICIT tag.
  10694. *Steve Henson*
  10695. *This change does not apply to 0.9.7.*
  10696. * Fix bug in PKCS#12 key generation routines. This was triggered
  10697. if a 3DES key was generated with a 0 initial byte. Include
  10698. PKCS12_BROKEN_KEYGEN compilation option to retain the old
  10699. (but broken) behaviour.
  10700. *Steve Henson*
  10701. * Enhance bctest to search for a working bc along $PATH and print
  10702. it when found.
  10703. *Tim Rice <tim@multitalents.net> via Richard Levitte*
  10704. * Fix memory leaks in err.c: free err_data string if necessary;
  10705. don't write to the wrong index in ERR_set_error_data.
  10706. *Bodo Moeller*
  10707. * Implement ssl23_peek (analogous to ssl23_read), which previously
  10708. did not exist.
  10709. *Bodo Moeller*
  10710. * Replace rdtsc with `_emit` statements for VC++ version 5.
  10711. *Jeremy Cooper <jeremy@baymoo.org>*
  10712. * Make it possible to reuse SSLv2 sessions.
  10713. *Richard Levitte*
  10714. * In copy_email() check for >= 0 as a return value for
  10715. X509_NAME_get_index_by_NID() since 0 is a valid index.
  10716. *Steve Henson reported by Massimiliano Pala <madwolf@opensca.org>*
  10717. * Avoid coredump with unsupported or invalid public keys by checking if
  10718. X509_get_pubkey() fails in PKCS7_verify(). Fix memory leak when
  10719. PKCS7_verify() fails with non detached data.
  10720. *Steve Henson*
  10721. * Don't use getenv in library functions when run as setuid/setgid.
  10722. New function OPENSSL_issetugid().
  10723. *Ulf Moeller*
  10724. * Avoid false positives in memory leak detection code (crypto/mem_dbg.c)
  10725. due to incorrect handling of multi-threading:
  10726. 1. Fix timing glitch in the MemCheck_off() portion of CRYPTO_mem_ctrl().
  10727. 2. Fix logical glitch in is_MemCheck_on() aka CRYPTO_is_mem_check_on().
  10728. 3. Count how many times MemCheck_off() has been called so that
  10729. nested use can be treated correctly. This also avoids
  10730. inband-signalling in the previous code (which relied on the
  10731. assumption that thread ID 0 is impossible).
  10732. *Bodo Moeller*
  10733. * Add "-rand" option also to s_client and s_server.
  10734. *Lutz Jaenicke*
  10735. * Fix CPU detection on Irix 6.x.
  10736. *Kurt Hockenbury <khockenb@stevens-tech.edu> and
  10737. "Bruce W. Forsberg" <bruce.forsberg@baesystems.com>*
  10738. * Fix X509_NAME bug which produced incorrect encoding if X509_NAME
  10739. was empty.
  10740. *Steve Henson*
  10741. *This change does not apply to 0.9.7.*
  10742. * Use the cached encoding of an X509_NAME structure rather than
  10743. copying it. This is apparently the reason for the libsafe "errors"
  10744. but the code is actually correct.
  10745. *Steve Henson*
  10746. * Add new function BN_rand_range(), and fix DSA_sign_setup() to prevent
  10747. Bleichenbacher's DSA attack.
  10748. Extend BN_[pseudo_]rand: As before, top=1 forces the highest two bits
  10749. to be set and top=0 forces the highest bit to be set; top=-1 is new
  10750. and leaves the highest bit random.
  10751. *Ulf Moeller, Bodo Moeller*
  10752. * In the `NCONF_...`-based implementations for `CONF_...` queries
  10753. (crypto/conf/conf_lib.c), if the input LHASH is NULL, avoid using
  10754. a temporary CONF structure with the data component set to NULL
  10755. (which gives segmentation faults in lh_retrieve).
  10756. Instead, use NULL for the CONF pointer in CONF_get_string and
  10757. CONF_get_number (which may use environment variables) and directly
  10758. return NULL from CONF_get_section.
  10759. *Bodo Moeller*
  10760. * Fix potential buffer overrun for EBCDIC.
  10761. *Ulf Moeller*
  10762. * Tolerate nonRepudiation as being valid for S/MIME signing and certSign
  10763. keyUsage if basicConstraints absent for a CA.
  10764. *Steve Henson*
  10765. * Make SMIME_write_PKCS7() write mail header values with a format that
  10766. is more generally accepted (no spaces before the semicolon), since
  10767. some programs can't parse those values properly otherwise. Also make
  10768. sure BIO's that break lines after each write do not create invalid
  10769. headers.
  10770. *Richard Levitte*
  10771. * Make the CRL encoding routines work with empty SEQUENCE OF. The
  10772. macros previously used would not encode an empty SEQUENCE OF
  10773. and break the signature.
  10774. *Steve Henson*
  10775. *This change does not apply to 0.9.7.*
  10776. * Zero the premaster secret after deriving the master secret in
  10777. DH ciphersuites.
  10778. *Steve Henson*
  10779. * Add some EVP_add_digest_alias registrations (as found in
  10780. OpenSSL_add_all_digests()) to SSL_library_init()
  10781. aka OpenSSL_add_ssl_algorithms(). This provides improved
  10782. compatibility with peers using X.509 certificates
  10783. with unconventional AlgorithmIdentifier OIDs.
  10784. *Bodo Moeller*
  10785. * Fix for Irix with NO_ASM.
  10786. *"Bruce W. Forsberg" <bruce.forsberg@baesystems.com>*
  10787. * ./config script fixes.
  10788. *Ulf Moeller, Richard Levitte*
  10789. * Fix 'openssl passwd -1'.
  10790. *Bodo Moeller*
  10791. * Change PKCS12_key_gen_asc() so it can cope with non null
  10792. terminated strings whose length is passed in the passlen
  10793. parameter, for example from PEM callbacks. This was done
  10794. by adding an extra length parameter to asc2uni().
  10795. *Steve Henson, reported by <oddissey@samsung.co.kr>*
  10796. * Fix C code generated by 'openssl dsaparam -C': If a BN_bin2bn
  10797. call failed, free the DSA structure.
  10798. *Bodo Moeller*
  10799. * Fix to uni2asc() to cope with zero length Unicode strings.
  10800. These are present in some PKCS#12 files.
  10801. *Steve Henson*
  10802. * Increase s2->wbuf allocation by one byte in ssl2_new (ssl/s2_lib.c).
  10803. Otherwise do_ssl_write (ssl/s2_pkt.c) will write beyond buffer limits
  10804. when writing a 32767 byte record.
  10805. *Bodo Moeller; problem reported by Eric Day <eday@concentric.net>*
  10806. * In `RSA_eay_public_{en,ed}crypt` and RSA_eay_mod_exp (rsa_eay.c),
  10807. obtain lock CRYPTO_LOCK_RSA before setting `rsa->_method_mod_{n,p,q}`.
  10808. (RSA objects have a reference count access to which is protected
  10809. by CRYPTO_LOCK_RSA [see rsa_lib.c, s3_srvr.c, ssl_cert.c, ssl_rsa.c],
  10810. so they are meant to be shared between threads.)
  10811. *Bodo Moeller, Geoff Thorpe; original patch submitted by
  10812. "Reddie, Steven" <Steven.Reddie@ca.com>*
  10813. * Fix a deadlock in CRYPTO_mem_leaks().
  10814. *Bodo Moeller*
  10815. * Use better test patterns in bntest.
  10816. *Ulf Möller*
  10817. * rand_win.c fix for Borland C.
  10818. *Ulf Möller*
  10819. * BN_rshift bugfix for n == 0.
  10820. *Bodo Moeller*
  10821. * Add a 'bctest' script that checks for some known 'bc' bugs
  10822. so that 'make test' does not abort just because 'bc' is broken.
  10823. *Bodo Moeller*
  10824. * Store verify_result within SSL_SESSION also for client side to
  10825. avoid potential security hole. (Re-used sessions on the client side
  10826. always resulted in verify_result==X509_V_OK, not using the original
  10827. result of the server certificate verification.)
  10828. *Lutz Jaenicke*
  10829. * Fix ssl3_pending: If the record in s->s3->rrec is not of type
  10830. SSL3_RT_APPLICATION_DATA, return 0.
  10831. Similarly, change ssl2_pending to return 0 if SSL_in_init(s) is true.
  10832. *Bodo Moeller*
  10833. * Fix SSL_peek:
  10834. Both ssl2_peek and ssl3_peek, which were totally broken in earlier
  10835. releases, have been re-implemented by renaming the previous
  10836. implementations of ssl2_read and ssl3_read to ssl2_read_internal
  10837. and ssl3_read_internal, respectively, and adding 'peek' parameters
  10838. to them. The new ssl[23]_{read,peek} functions are calls to
  10839. ssl[23]_read_internal with the 'peek' flag set appropriately.
  10840. A 'peek' parameter has also been added to ssl3_read_bytes, which
  10841. does the actual work for ssl3_read_internal.
  10842. *Bodo Moeller*
  10843. * Initialise "ex_data" member of RSA/DSA/DH structures prior to calling
  10844. the method-specific "init()" handler. Also clean up ex_data after
  10845. calling the method-specific "finish()" handler. Previously, this was
  10846. happening the other way round.
  10847. *Geoff Thorpe*
  10848. * Increase BN_CTX_NUM (the number of BIGNUMs in a BN_CTX) to 16.
  10849. The previous value, 12, was not always sufficient for BN_mod_exp().
  10850. *Bodo Moeller*
  10851. * Make sure that shared libraries get the internal name engine with
  10852. the full version number and not just 0. This should mark the
  10853. shared libraries as not backward compatible. Of course, this should
  10854. be changed again when we can guarantee backward binary compatibility.
  10855. *Richard Levitte*
  10856. * Fix typo in get_cert_by_subject() in by_dir.c
  10857. *Jean-Marc Desperrier <jean-marc.desperrier@certplus.com>*
  10858. * Rework the system to generate shared libraries:
  10859. - Make note of the expected extension for the shared libraries and
  10860. if there is a need for symbolic links from for example libcrypto.so.0
  10861. to libcrypto.so.0.9.7. There is extended info in Configure for
  10862. that.
  10863. - Make as few rebuilds of the shared libraries as possible.
  10864. - Still avoid linking the OpenSSL programs with the shared libraries.
  10865. - When installing, install the shared libraries separately from the
  10866. static ones.
  10867. *Richard Levitte*
  10868. * Fix SSL_CTX_set_read_ahead macro to actually use its argument.
  10869. Copy SSL_CTX's read_ahead flag to SSL object directly in SSL_new
  10870. and not in SSL_clear because the latter is also used by the
  10871. accept/connect functions; previously, the settings made by
  10872. SSL_set_read_ahead would be lost during the handshake.
  10873. *Bodo Moeller; problems reported by Anders Gertz <gertz@epact.se>*
  10874. * Correct util/mkdef.pl to be selective about disabled algorithms.
  10875. Previously, it would create entries for disabled algorithms no
  10876. matter what.
  10877. *Richard Levitte*
  10878. * Added several new manual pages for SSL_* function.
  10879. *Lutz Jaenicke*
  10880. ### Changes between 0.9.5a and 0.9.6 [24 Sep 2000]
  10881. * In ssl23_get_client_hello, generate an error message when faced
  10882. with an initial SSL 3.0/TLS record that is too small to contain the
  10883. first two bytes of the ClientHello message, i.e. client_version.
  10884. (Note that this is a pathologic case that probably has never happened
  10885. in real life.) The previous approach was to use the version number
  10886. from the record header as a substitute; but our protocol choice
  10887. should not depend on that one because it is not authenticated
  10888. by the Finished messages.
  10889. *Bodo Moeller*
  10890. * More robust randomness gathering functions for Windows.
  10891. *Jeffrey Altman <jaltman@columbia.edu>*
  10892. * For compatibility reasons if the flag X509_V_FLAG_ISSUER_CHECK is
  10893. not set then we don't setup the error code for issuer check errors
  10894. to avoid possibly overwriting other errors which the callback does
  10895. handle. If an application does set the flag then we assume it knows
  10896. what it is doing and can handle the new informational codes
  10897. appropriately.
  10898. *Steve Henson*
  10899. * Fix for a nasty bug in ASN1_TYPE handling. ASN1_TYPE is used for
  10900. a general "ANY" type, as such it should be able to decode anything
  10901. including tagged types. However it didn't check the class so it would
  10902. wrongly interpret tagged types in the same way as their universal
  10903. counterpart and unknown types were just rejected. Changed so that the
  10904. tagged and unknown types are handled in the same way as a SEQUENCE:
  10905. that is the encoding is stored intact. There is also a new type
  10906. "V_ASN1_OTHER" which is used when the class is not universal, in this
  10907. case we have no idea what the actual type is so we just lump them all
  10908. together.
  10909. *Steve Henson*
  10910. * On VMS, stdout may very well lead to a file that is written to
  10911. in a record-oriented fashion. That means that every write() will
  10912. write a separate record, which will be read separately by the
  10913. programs trying to read from it. This can be very confusing.
  10914. The solution is to put a BIO filter in the way that will buffer
  10915. text until a linefeed is reached, and then write everything a
  10916. line at a time, so every record written will be an actual line,
  10917. not chunks of lines and not (usually doesn't happen, but I've
  10918. seen it once) several lines in one record. BIO_f_linebuffer() is
  10919. the answer.
  10920. Currently, it's a VMS-only method, because that's where it has
  10921. been tested well enough.
  10922. *Richard Levitte*
  10923. * Remove 'optimized' squaring variant in BN_mod_mul_montgomery,
  10924. it can return incorrect results.
  10925. (Note: The buggy variant was not enabled in OpenSSL 0.9.5a,
  10926. but it was in 0.9.6-beta[12].)
  10927. *Bodo Moeller*
  10928. * Disable the check for content being present when verifying detached
  10929. signatures in pk7_smime.c. Some versions of Netscape (wrongly)
  10930. include zero length content when signing messages.
  10931. *Steve Henson*
  10932. * New BIO_shutdown_wr macro, which invokes the BIO_C_SHUTDOWN_WR
  10933. BIO_ctrl (for BIO pairs).
  10934. *Bodo Möller*
  10935. * Add DSO method for VMS.
  10936. *Richard Levitte*
  10937. * Bug fix: Montgomery multiplication could produce results with the
  10938. wrong sign.
  10939. *Ulf Möller*
  10940. * Add RPM specification openssl.spec and modify it to build three
  10941. packages. The default package contains applications, application
  10942. documentation and run-time libraries. The devel package contains
  10943. include files, static libraries and function documentation. The
  10944. doc package contains the contents of the doc directory. The original
  10945. openssl.spec was provided by Damien Miller <djm@mindrot.org>.
  10946. *Richard Levitte*
  10947. * Add a large number of documentation files for many SSL routines.
  10948. *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>*
  10949. * Add a configuration entry for Sony News 4.
  10950. *NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp>*
  10951. * Don't set the two most significant bits to one when generating a
  10952. random number < q in the DSA library.
  10953. *Ulf Möller*
  10954. * New SSL API mode 'SSL_MODE_AUTO_RETRY'. This disables the default
  10955. behaviour that SSL_read may result in SSL_ERROR_WANT_READ (even if
  10956. the underlying transport is blocking) if a handshake took place.
  10957. (The default behaviour is needed by applications such as s_client
  10958. and s_server that use select() to determine when to use SSL_read;
  10959. but for applications that know in advance when to expect data, it
  10960. just makes things more complicated.)
  10961. *Bodo Moeller*
  10962. * Add RAND_egd_bytes(), which gives control over the number of bytes read
  10963. from EGD.
  10964. *Ben Laurie*
  10965. * Add a few more EBCDIC conditionals that make `req` and `x509`
  10966. work better on such systems.
  10967. *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>*
  10968. * Add two demo programs for PKCS12_parse() and PKCS12_create().
  10969. Update PKCS12_parse() so it copies the friendlyName and the
  10970. keyid to the certificates aux info.
  10971. *Steve Henson*
  10972. * Fix bug in PKCS7_verify() which caused an infinite loop
  10973. if there was more than one signature.
  10974. *Sven Uszpelkat <su@celocom.de>*
  10975. * Major change in util/mkdef.pl to include extra information
  10976. about each symbol, as well as presenting variables as well
  10977. as functions. This change means that there's n more need
  10978. to rebuild the .num files when some algorithms are excluded.
  10979. *Richard Levitte*
  10980. * Allow the verify time to be set by an application,
  10981. rather than always using the current time.
  10982. *Steve Henson*
  10983. * Phase 2 verify code reorganisation. The certificate
  10984. verify code now looks up an issuer certificate by a
  10985. number of criteria: subject name, authority key id
  10986. and key usage. It also verifies self signed certificates
  10987. by the same criteria. The main comparison function is
  10988. X509_check_issued() which performs these checks.
  10989. Lot of changes were necessary in order to support this
  10990. without completely rewriting the lookup code.
  10991. Authority and subject key identifier are now cached.
  10992. The LHASH 'certs' is X509_STORE has now been replaced
  10993. by a STACK_OF(X509_OBJECT). This is mainly because an
  10994. LHASH can't store or retrieve multiple objects with
  10995. the same hash value.
  10996. As a result various functions (which were all internal
  10997. use only) have changed to handle the new X509_STORE
  10998. structure. This will break anything that messed round
  10999. with X509_STORE internally.
  11000. The functions X509_STORE_add_cert() now checks for an
  11001. exact match, rather than just subject name.
  11002. The X509_STORE API doesn't directly support the retrieval
  11003. of multiple certificates matching a given criteria, however
  11004. this can be worked round by performing a lookup first
  11005. (which will fill the cache with candidate certificates)
  11006. and then examining the cache for matches. This is probably
  11007. the best we can do without throwing out X509_LOOKUP
  11008. entirely (maybe later...).
  11009. The X509_VERIFY_CTX structure has been enhanced considerably.
  11010. All certificate lookup operations now go via a get_issuer()
  11011. callback. Although this currently uses an X509_STORE it
  11012. can be replaced by custom lookups. This is a simple way
  11013. to bypass the X509_STORE hackery necessary to make this
  11014. work and makes it possible to use more efficient techniques
  11015. in future. A very simple version which uses a simple
  11016. STACK for its trusted certificate store is also provided
  11017. using X509_STORE_CTX_trusted_stack().
  11018. The verify_cb() and verify() callbacks now have equivalents
  11019. in the X509_STORE_CTX structure.
  11020. X509_STORE_CTX also has a 'flags' field which can be used
  11021. to customise the verify behaviour.
  11022. *Steve Henson*
  11023. * Add new PKCS#7 signing option PKCS7_NOSMIMECAP which
  11024. excludes S/MIME capabilities.
  11025. *Steve Henson*
  11026. * When a certificate request is read in keep a copy of the
  11027. original encoding of the signed data and use it when outputting
  11028. again. Signatures then use the original encoding rather than
  11029. a decoded, encoded version which may cause problems if the
  11030. request is improperly encoded.
  11031. *Steve Henson*
  11032. * For consistency with other BIO_puts implementations, call
  11033. buffer_write(b, ...) directly in buffer_puts instead of calling
  11034. BIO_write(b, ...).
  11035. In BIO_puts, increment b->num_write as in BIO_write.
  11036. *Peter.Sylvester@EdelWeb.fr*
  11037. * Fix BN_mul_word for the case where the word is 0. (We have to use
  11038. BN_zero, we may not return a BIGNUM with an array consisting of
  11039. words set to zero.)
  11040. *Bodo Moeller*
  11041. * Avoid calling abort() from within the library when problems are
  11042. detected, except if preprocessor symbols have been defined
  11043. (such as REF_CHECK, BN_DEBUG etc.).
  11044. *Bodo Moeller*
  11045. * New openssl application 'rsautl'. This utility can be
  11046. used for low-level RSA operations. DER public key
  11047. BIO/fp routines also added.
  11048. *Steve Henson*
  11049. * New Configure entry and patches for compiling on QNX 4.
  11050. *Andreas Schneider <andreas@ds3.etech.fh-hamburg.de>*
  11051. * A demo state-machine implementation was sponsored by
  11052. Nuron (<http://www.nuron.com/>) and is now available in
  11053. demos/state_machine.
  11054. *Ben Laurie*
  11055. * New options added to the 'dgst' utility for signature
  11056. generation and verification.
  11057. *Steve Henson*
  11058. * Unrecognized PKCS#7 content types are now handled via a
  11059. catch all ASN1_TYPE structure. This allows unsupported
  11060. types to be stored as a "blob" and an application can
  11061. encode and decode it manually.
  11062. *Steve Henson*
  11063. * Fix various signed/unsigned issues to make a_strex.c
  11064. compile under VC++.
  11065. *Oscar Jacobsson <oscar.jacobsson@celocom.com>*
  11066. * ASN1 fixes. i2d_ASN1_OBJECT was not returning the correct
  11067. length if passed a buffer. ASN1_INTEGER_to_BN failed
  11068. if passed a NULL BN and its argument was negative.
  11069. *Steve Henson, pointed out by Sven Heiberg <sven@tartu.cyber.ee>*
  11070. * Modification to PKCS#7 encoding routines to output definite
  11071. length encoding. Since currently the whole structures are in
  11072. memory there's not real point in using indefinite length
  11073. constructed encoding. However if OpenSSL is compiled with
  11074. the flag PKCS7_INDEFINITE_ENCODING the old form is used.
  11075. *Steve Henson*
  11076. * Added BIO_vprintf() and BIO_vsnprintf().
  11077. *Richard Levitte*
  11078. * Added more prefixes to parse for in the strings written
  11079. through a logging bio, to cover all the levels that are available
  11080. through syslog. The prefixes are now:
  11081. PANIC, EMERG, EMR => LOG_EMERG
  11082. ALERT, ALR => LOG_ALERT
  11083. CRIT, CRI => LOG_CRIT
  11084. ERROR, ERR => LOG_ERR
  11085. WARNING, WARN, WAR => LOG_WARNING
  11086. NOTICE, NOTE, NOT => LOG_NOTICE
  11087. INFO, INF => LOG_INFO
  11088. DEBUG, DBG => LOG_DEBUG
  11089. and as before, if none of those prefixes are present at the
  11090. beginning of the string, LOG_ERR is chosen.
  11091. On Win32, the `LOG_*` levels are mapped according to this:
  11092. LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR => EVENTLOG_ERROR_TYPE
  11093. LOG_WARNING => EVENTLOG_WARNING_TYPE
  11094. LOG_NOTICE, LOG_INFO, LOG_DEBUG => EVENTLOG_INFORMATION_TYPE
  11095. *Richard Levitte*
  11096. * Made it possible to reconfigure with just the configuration
  11097. argument "reconf" or "reconfigure". The command line arguments
  11098. are stored in Makefile.ssl in the variable CONFIGURE_ARGS,
  11099. and are retrieved from there when reconfiguring.
  11100. *Richard Levitte*
  11101. * MD4 implemented.
  11102. *Assar Westerlund <assar@sics.se>, Richard Levitte*
  11103. * Add the arguments -CAfile and -CApath to the pkcs12 utility.
  11104. *Richard Levitte*
  11105. * The obj_dat.pl script was messing up the sorting of object
  11106. names. The reason was that it compared the quoted version
  11107. of strings as a result "OCSP" > "OCSP Signing" because
  11108. " > SPACE. Changed script to store unquoted versions of
  11109. names and add quotes on output. It was also omitting some
  11110. names from the lookup table if they were given a default
  11111. value (that is if SN is missing it is given the same
  11112. value as LN and vice versa), these are now added on the
  11113. grounds that if an object has a name we should be able to
  11114. look it up. Finally added warning output when duplicate
  11115. short or long names are found.
  11116. *Steve Henson*
  11117. * Changes needed for Tandem NSK.
  11118. *Scott Uroff <scott@xypro.com>*
  11119. * Fix SSL 2.0 rollback checking: Due to an off-by-one error in
  11120. RSA_padding_check_SSLv23(), special padding was never detected
  11121. and thus the SSL 3.0/TLS 1.0 countermeasure against protocol
  11122. version rollback attacks was not effective.
  11123. In s23_clnt.c, don't use special rollback-attack detection padding
  11124. (RSA_SSLV23_PADDING) if SSL 2.0 is the only protocol enabled in the
  11125. client; similarly, in s23_srvr.c, don't do the rollback check if
  11126. SSL 2.0 is the only protocol enabled in the server.
  11127. *Bodo Moeller*
  11128. * Make it possible to get hexdumps of unprintable data with 'openssl
  11129. asn1parse'. By implication, the functions ASN1_parse_dump() and
  11130. BIO_dump_indent() are added.
  11131. *Richard Levitte*
  11132. * New functions ASN1_STRING_print_ex() and X509_NAME_print_ex()
  11133. these print out strings and name structures based on various
  11134. flags including RFC2253 support and proper handling of
  11135. multibyte characters. Added options to the 'x509' utility
  11136. to allow the various flags to be set.
  11137. *Steve Henson*
  11138. * Various fixes to use ASN1_TIME instead of ASN1_UTCTIME.
  11139. Also change the functions X509_cmp_current_time() and
  11140. X509_gmtime_adj() work with an ASN1_TIME structure,
  11141. this will enable certificates using GeneralizedTime in validity
  11142. dates to be checked.
  11143. *Steve Henson*
  11144. * Make the NEG_PUBKEY_BUG code (which tolerates invalid
  11145. negative public key encodings) on by default,
  11146. NO_NEG_PUBKEY_BUG can be set to disable it.
  11147. *Steve Henson*
  11148. * New function c2i_ASN1_OBJECT() which acts on ASN1_OBJECT
  11149. content octets. An i2c_ASN1_OBJECT is unnecessary because
  11150. the encoding can be trivially obtained from the structure.
  11151. *Steve Henson*
  11152. * crypto/err.c locking bugfix: Use write locks (`CRYPTO_w_[un]lock`),
  11153. not read locks (`CRYPTO_r_[un]lock`).
  11154. *Bodo Moeller*
  11155. * A first attempt at creating official support for shared
  11156. libraries through configuration. I've kept it so the
  11157. default is static libraries only, and the OpenSSL programs
  11158. are always statically linked for now, but there are
  11159. preparations for dynamic linking in place.
  11160. This has been tested on Linux and Tru64.
  11161. *Richard Levitte*
  11162. * Randomness polling function for Win9x, as described in:
  11163. Peter Gutmann, Software Generation of Practically Strong
  11164. Random Numbers.
  11165. *Ulf Möller*
  11166. * Fix so PRNG is seeded in req if using an already existing
  11167. DSA key.
  11168. *Steve Henson*
  11169. * New options to smime application. -inform and -outform
  11170. allow alternative formats for the S/MIME message including
  11171. PEM and DER. The -content option allows the content to be
  11172. specified separately. This should allow things like Netscape
  11173. form signing output easier to verify.
  11174. *Steve Henson*
  11175. * Fix the ASN1 encoding of tags using the 'long form'.
  11176. *Steve Henson*
  11177. * New ASN1 functions, `i2c_*` and `c2i_*` for INTEGER and BIT
  11178. STRING types. These convert content octets to and from the
  11179. underlying type. The actual tag and length octets are
  11180. already assumed to have been read in and checked. These
  11181. are needed because all other string types have virtually
  11182. identical handling apart from the tag. By having versions
  11183. of the ASN1 functions that just operate on content octets
  11184. IMPLICIT tagging can be handled properly. It also allows
  11185. the ASN1_ENUMERATED code to be cut down because ASN1_ENUMERATED
  11186. and ASN1_INTEGER are identical apart from the tag.
  11187. *Steve Henson*
  11188. * Change the handling of OID objects as follows:
  11189. - New object identifiers are inserted in objects.txt, following
  11190. the syntax given in [crypto/objects/README.md](crypto/objects/README.md).
  11191. - objects.pl is used to process obj_mac.num and create a new
  11192. obj_mac.h.
  11193. - obj_dat.pl is used to create a new obj_dat.h, using the data in
  11194. obj_mac.h.
  11195. This is currently kind of a hack, and the perl code in objects.pl
  11196. isn't very elegant, but it works as I intended. The simplest way
  11197. to check that it worked correctly is to look in obj_dat.h and
  11198. check the array nid_objs and make sure the objects haven't moved
  11199. around (this is important!). Additions are OK, as well as
  11200. consistent name changes.
  11201. *Richard Levitte*
  11202. * Add BSD-style MD5-based passwords to 'openssl passwd' (option '-1').
  11203. *Bodo Moeller*
  11204. * Addition of the command line parameter '-rand file' to 'openssl req'.
  11205. The given file adds to whatever has already been seeded into the
  11206. random pool through the RANDFILE configuration file option or
  11207. environment variable, or the default random state file.
  11208. *Richard Levitte*
  11209. * mkstack.pl now sorts each macro group into lexical order.
  11210. Previously the output order depended on the order the files
  11211. appeared in the directory, resulting in needless rewriting
  11212. of safestack.h .
  11213. *Steve Henson*
  11214. * Patches to make OpenSSL compile under Win32 again. Mostly
  11215. work arounds for the VC++ problem that it treats func() as
  11216. func(void). Also stripped out the parts of mkdef.pl that
  11217. added extra typesafe functions: these no longer exist.
  11218. *Steve Henson*
  11219. * Reorganisation of the stack code. The macros are now all
  11220. collected in safestack.h . Each macro is defined in terms of
  11221. a "stack macro" of the form `SKM_<name>(type, a, b)`. The
  11222. DEBUG_SAFESTACK is now handled in terms of function casts,
  11223. this has the advantage of retaining type safety without the
  11224. use of additional functions. If DEBUG_SAFESTACK is not defined
  11225. then the non typesafe macros are used instead. Also modified the
  11226. mkstack.pl script to handle the new form. Needs testing to see
  11227. if which (if any) compilers it chokes and maybe make DEBUG_SAFESTACK
  11228. the default if no major problems. Similar behaviour for ASN1_SET_OF
  11229. and PKCS12_STACK_OF.
  11230. *Steve Henson*
  11231. * When some versions of IIS use the 'NET' form of private key the
  11232. key derivation algorithm is different. Normally MD5(password) is
  11233. used as a 128 bit RC4 key. In the modified case
  11234. MD5(MD5(password) + "SGCKEYSALT") is used instead. Added some
  11235. new functions i2d_RSA_NET(), d2i_RSA_NET() etc which are the same
  11236. as the old Netscape_RSA functions except they have an additional
  11237. 'sgckey' parameter which uses the modified algorithm. Also added
  11238. an -sgckey command line option to the rsa utility. Thanks to
  11239. Adrian Peck <bertie@ncipher.com> for posting details of the modified
  11240. algorithm to openssl-dev.
  11241. *Steve Henson*
  11242. * The evp_local.h macros were using 'c.##kname' which resulted in
  11243. invalid expansion on some systems (SCO 5.0.5 for example).
  11244. Corrected to 'c.kname'.
  11245. *Phillip Porch <root@theporch.com>*
  11246. * New X509_get1_email() and X509_REQ_get1_email() functions that return
  11247. a STACK of email addresses from a certificate or request, these look
  11248. in the subject name and the subject alternative name extensions and
  11249. omit any duplicate addresses.
  11250. *Steve Henson*
  11251. * Re-implement BN_mod_exp2_mont using independent (and larger) windows.
  11252. This makes DSA verification about 2 % faster.
  11253. *Bodo Moeller*
  11254. * Increase maximum window size in `BN_mod_exp_...` to 6 bits instead of 5
  11255. (meaning that now 2^5 values will be precomputed, which is only 4 KB
  11256. plus overhead for 1024 bit moduli).
  11257. This makes exponentiations about 0.5 % faster for 1024 bit
  11258. exponents (as measured by "openssl speed rsa2048").
  11259. *Bodo Moeller*
  11260. * Rename memory handling macros to avoid conflicts with other
  11261. software:
  11262. Malloc => OPENSSL_malloc
  11263. Malloc_locked => OPENSSL_malloc_locked
  11264. Realloc => OPENSSL_realloc
  11265. Free => OPENSSL_free
  11266. *Richard Levitte*
  11267. * New function BN_mod_exp_mont_word for small bases (roughly 15%
  11268. faster than BN_mod_exp_mont, i.e. 7% for a full DH exchange).
  11269. *Bodo Moeller*
  11270. * CygWin32 support.
  11271. *John Jarvie <jjarvie@newsguy.com>*
  11272. * The type-safe stack code has been rejigged. It is now only compiled
  11273. in when OpenSSL is configured with the DEBUG_SAFESTACK option and
  11274. by default all type-specific stack functions are "#define"d back to
  11275. standard stack functions. This results in more streamlined output
  11276. but retains the type-safety checking possibilities of the original
  11277. approach.
  11278. *Geoff Thorpe*
  11279. * The STACK code has been cleaned up, and certain type declarations
  11280. that didn't make a lot of sense have been brought in line. This has
  11281. also involved a cleanup of sorts in safestack.h to more correctly
  11282. map type-safe stack functions onto their plain stack counterparts.
  11283. This work has also resulted in a variety of "const"ifications of
  11284. lots of the code, especially `_cmp` operations which should normally
  11285. be prototyped with "const" parameters anyway.
  11286. *Geoff Thorpe*
  11287. * When generating bytes for the first time in md_rand.c, 'stir the pool'
  11288. by seeding with STATE_SIZE dummy bytes (with zero entropy count).
  11289. (The PRNG state consists of two parts, the large pool 'state' and 'md',
  11290. where all of 'md' is used each time the PRNG is used, but 'state'
  11291. is used only indexed by a cyclic counter. As entropy may not be
  11292. well distributed from the beginning, 'md' is important as a
  11293. chaining variable. However, the output function chains only half
  11294. of 'md', i.e. 80 bits. ssleay_rand_add, on the other hand, chains
  11295. all of 'md', and seeding with STATE_SIZE dummy bytes will result
  11296. in all of 'state' being rewritten, with the new values depending
  11297. on virtually all of 'md'. This overcomes the 80 bit limitation.)
  11298. *Bodo Moeller*
  11299. * In ssl/s2_clnt.c and ssl/s3_clnt.c, call ERR_clear_error() when
  11300. the handshake is continued after ssl_verify_cert_chain();
  11301. otherwise, if SSL_VERIFY_NONE is set, remaining error codes
  11302. can lead to 'unexplainable' connection aborts later.
  11303. *Bodo Moeller; problem tracked down by Lutz Jaenicke*
  11304. * Major EVP API cipher revision.
  11305. Add hooks for extra EVP features. This allows various cipher
  11306. parameters to be set in the EVP interface. Support added for variable
  11307. key length ciphers via the EVP_CIPHER_CTX_set_key_length() function and
  11308. setting of RC2 and RC5 parameters.
  11309. Modify EVP_OpenInit() and EVP_SealInit() to cope with variable key length
  11310. ciphers.
  11311. Remove lots of duplicated code from the EVP library. For example *every*
  11312. cipher init() function handles the 'iv' in the same way according to the
  11313. cipher mode. They also all do nothing if the 'key' parameter is NULL and
  11314. for CFB and OFB modes they zero ctx->num.
  11315. New functionality allows removal of S/MIME code RC2 hack.
  11316. Most of the routines have the same form and so can be declared in terms
  11317. of macros.
  11318. By shifting this to the top level EVP_CipherInit() it can be removed from
  11319. all individual ciphers. If the cipher wants to handle IVs or keys
  11320. differently it can set the EVP_CIPH_CUSTOM_IV or EVP_CIPH_ALWAYS_CALL_INIT
  11321. flags.
  11322. Change lots of functions like EVP_EncryptUpdate() to now return a
  11323. value: although software versions of the algorithms cannot fail
  11324. any installed hardware versions can.
  11325. *Steve Henson*
  11326. * Implement SSL_OP_TLS_ROLLBACK_BUG: In ssl3_get_client_key_exchange, if
  11327. this option is set, tolerate broken clients that send the negotiated
  11328. protocol version number instead of the requested protocol version
  11329. number.
  11330. *Bodo Moeller*
  11331. * Call dh_tmp_cb (set by `..._TMP_DH_CB`) with correct 'is_export' flag;
  11332. i.e. non-zero for export ciphersuites, zero otherwise.
  11333. Previous versions had this flag inverted, inconsistent with
  11334. rsa_tmp_cb (..._TMP_RSA_CB).
  11335. *Bodo Moeller; problem reported by Amit Chopra*
  11336. * Add missing DSA library text string. Work around for some IIS
  11337. key files with invalid SEQUENCE encoding.
  11338. *Steve Henson*
  11339. * Add a document (doc/standards.txt) that list all kinds of standards
  11340. and so on that are implemented in OpenSSL.
  11341. *Richard Levitte*
  11342. * Enhance c_rehash script. Old version would mishandle certificates
  11343. with the same subject name hash and wouldn't handle CRLs at all.
  11344. Added -fingerprint option to crl utility, to support new c_rehash
  11345. features.
  11346. *Steve Henson*
  11347. * Eliminate non-ANSI declarations in crypto.h and stack.h.
  11348. *Ulf Möller*
  11349. * Fix for SSL server purpose checking. Server checking was
  11350. rejecting certificates which had extended key usage present
  11351. but no ssl client purpose.
  11352. *Steve Henson, reported by Rene Grosser <grosser@hisolutions.com>*
  11353. * Make PKCS#12 code work with no password. The PKCS#12 spec
  11354. is a little unclear about how a blank password is handled.
  11355. Since the password in encoded as a BMPString with terminating
  11356. double NULL a zero length password would end up as just the
  11357. double NULL. However no password at all is different and is
  11358. handled differently in the PKCS#12 key generation code. NS
  11359. treats a blank password as zero length. MSIE treats it as no
  11360. password on export: but it will try both on import. We now do
  11361. the same: PKCS12_parse() tries zero length and no password if
  11362. the password is set to "" or NULL (NULL is now a valid password:
  11363. it wasn't before) as does the pkcs12 application.
  11364. *Steve Henson*
  11365. * Bugfixes in `apps/x509.c`: Avoid a memory leak; and don't use
  11366. perror when PEM_read_bio_X509_REQ fails, the error message must
  11367. be obtained from the error queue.
  11368. *Bodo Moeller*
  11369. * Avoid 'thread_hash' memory leak in crypto/err/err.c by freeing
  11370. it in ERR_remove_state if appropriate, and change ERR_get_state
  11371. accordingly to avoid race conditions (this is necessary because
  11372. thread_hash is no longer constant once set).
  11373. *Bodo Moeller*
  11374. * Bugfix for linux-elf makefile.one.
  11375. *Ulf Möller*
  11376. * RSA_get_default_method() will now cause a default
  11377. RSA_METHOD to be chosen if one doesn't exist already.
  11378. Previously this was only set during a call to RSA_new()
  11379. or RSA_new_method(NULL) meaning it was possible for
  11380. RSA_get_default_method() to return NULL.
  11381. *Geoff Thorpe*
  11382. * Added native name translation to the existing DSO code
  11383. that will convert (if the flag to do so is set) filenames
  11384. that are sufficiently small and have no path information
  11385. into a canonical native form. Eg. "blah" converted to
  11386. "libblah.so" or "blah.dll" etc.
  11387. *Geoff Thorpe*
  11388. * New function ERR_error_string_n(e, buf, len) which is like
  11389. ERR_error_string(e, buf), but writes at most 'len' bytes
  11390. including the 0 terminator. For ERR_error_string_n, 'buf'
  11391. may not be NULL.
  11392. *Damien Miller <djm@mindrot.org>, Bodo Moeller*
  11393. * CONF library reworked to become more general. A new CONF
  11394. configuration file reader "class" is implemented as well as a
  11395. new functions (`NCONF_*`, for "New CONF") to handle it. The now
  11396. old `CONF_*` functions are still there, but are reimplemented to
  11397. work in terms of the new functions. Also, a set of functions
  11398. to handle the internal storage of the configuration data is
  11399. provided to make it easier to write new configuration file
  11400. reader "classes" (I can definitely see something reading a
  11401. configuration file in XML format, for example), called `_CONF_*`,
  11402. or "the configuration storage API"...
  11403. The new configuration file reading functions are:
  11404. NCONF_new, NCONF_free, NCONF_load, NCONF_load_fp, NCONF_load_bio,
  11405. NCONF_get_section, NCONF_get_string, NCONF_get_numbre
  11406. NCONF_default, NCONF_WIN32
  11407. NCONF_dump_fp, NCONF_dump_bio
  11408. NCONF_default and NCONF_WIN32 are method (or "class") choosers,
  11409. NCONF_new creates a new CONF object. This works in the same way
  11410. as other interfaces in OpenSSL, like the BIO interface.
  11411. `NCONF_dump_*` dump the internal storage of the configuration file,
  11412. which is useful for debugging. All other functions take the same
  11413. arguments as the old `CONF_*` functions with the exception of the
  11414. first that must be a `CONF *` instead of a `LHASH *`.
  11415. To make it easier to use the new classes with the old `CONF_*` functions,
  11416. the function CONF_set_default_method is provided.
  11417. *Richard Levitte*
  11418. * Add '-tls1' option to 'openssl ciphers', which was already
  11419. mentioned in the documentation but had not been implemented.
  11420. (This option is not yet really useful because even the additional
  11421. experimental TLS 1.0 ciphers are currently treated as SSL 3.0 ciphers.)
  11422. *Bodo Moeller*
  11423. * Initial DSO code added into libcrypto for letting OpenSSL (and
  11424. OpenSSL-based applications) load shared libraries and bind to
  11425. them in a portable way.
  11426. *Geoff Thorpe, with contributions from Richard Levitte*
  11427. ### Changes between 0.9.5 and 0.9.5a [1 Apr 2000]
  11428. * Make sure _lrotl and _lrotr are only used with MSVC.
  11429. * Use lock CRYPTO_LOCK_RAND correctly in ssleay_rand_status
  11430. (the default implementation of RAND_status).
  11431. * Rename openssl x509 option '-crlext', which was added in 0.9.5,
  11432. to '-clrext' (= clear extensions), as intended and documented.
  11433. *Bodo Moeller; inconsistency pointed out by Michael Attili
  11434. <attili@amaxo.com>*
  11435. * Fix for HMAC. It wasn't zeroing the rest of the block if the key length
  11436. was larger than the MD block size.
  11437. *Steve Henson, pointed out by Yost William <YostW@tce.com>*
  11438. * Modernise PKCS12_parse() so it uses STACK_OF(X509) for its ca argument
  11439. fix a leak when the ca argument was passed as NULL. Stop X509_PUBKEY_set()
  11440. using the passed key: if the passed key was a private key the result
  11441. of X509_print(), for example, would be to print out all the private key
  11442. components.
  11443. *Steve Henson*
  11444. * des_quad_cksum() byte order bug fix.
  11445. *Ulf Möller, using the problem description in krb4-0.9.7, where
  11446. the solution is attributed to Derrick J Brashear <shadow@DEMENTIA.ORG>*
  11447. * Fix so V_ASN1_APP_CHOOSE works again: however its use is strongly
  11448. discouraged.
  11449. *Steve Henson, pointed out by Brian Korver <briank@cs.stanford.edu>*
  11450. * For easily testing in shell scripts whether some command
  11451. 'openssl XXX' exists, the new pseudo-command 'openssl no-XXX'
  11452. returns with exit code 0 iff no command of the given name is available.
  11453. 'no-XXX' is printed in this case, 'XXX' otherwise. In both cases,
  11454. the output goes to stdout and nothing is printed to stderr.
  11455. Additional arguments are always ignored.
  11456. Since for each cipher there is a command of the same name,
  11457. the 'no-cipher' compilation switches can be tested this way.
  11458. ('openssl no-XXX' is not able to detect pseudo-commands such
  11459. as 'quit', 'list-XXX-commands', or 'no-XXX' itself.)
  11460. *Bodo Moeller*
  11461. * Update test suite so that 'make test' succeeds in 'no-rsa' configuration.
  11462. *Bodo Moeller*
  11463. * For SSL_[CTX_]set_tmp_dh, don't create a DH key if SSL_OP_SINGLE_DH_USE
  11464. is set; it will be thrown away anyway because each handshake creates
  11465. its own key.
  11466. ssl_cert_dup, which is used by SSL_new, now copies DH keys in addition
  11467. to parameters -- in previous versions (since OpenSSL 0.9.3) the
  11468. 'default key' from SSL_CTX_set_tmp_dh would always be lost, meaning
  11469. you effectively got SSL_OP_SINGLE_DH_USE when using this macro.
  11470. *Bodo Moeller*
  11471. * New s_client option -ign_eof: EOF at stdin is ignored, and
  11472. 'Q' and 'R' lose their special meanings (quit/renegotiate).
  11473. This is part of what -quiet does; unlike -quiet, -ign_eof
  11474. does not suppress any output.
  11475. *Richard Levitte*
  11476. * Add compatibility options to the purpose and trust code. The
  11477. purpose X509_PURPOSE_ANY is "any purpose" which automatically
  11478. accepts a certificate or CA, this was the previous behaviour,
  11479. with all the associated security issues.
  11480. X509_TRUST_COMPAT is the old trust behaviour: only and
  11481. automatically trust self signed roots in certificate store. A
  11482. new trust setting X509_TRUST_DEFAULT is used to specify that
  11483. a purpose has no associated trust setting and it should instead
  11484. use the value in the default purpose.
  11485. *Steve Henson*
  11486. * Fix the PKCS#8 DSA private key code so it decodes keys again
  11487. and fix a memory leak.
  11488. *Steve Henson*
  11489. * In util/mkerr.pl (which implements 'make errors'), preserve
  11490. reason strings from the previous version of the .c file, as
  11491. the default to have only downcase letters (and digits) in
  11492. automatically generated reasons codes is not always appropriate.
  11493. *Bodo Moeller*
  11494. * In ERR_load_ERR_strings(), build an ERR_LIB_SYS error reason table
  11495. using strerror. Previously, ERR_reason_error_string() returned
  11496. library names as reason strings for SYSerr; but SYSerr is a special
  11497. case where small numbers are errno values, not library numbers.
  11498. *Bodo Moeller*
  11499. * Add '-dsaparam' option to 'openssl dhparam' application. This
  11500. converts DSA parameters into DH parameters. (When creating parameters,
  11501. DSA_generate_parameters is used.)
  11502. *Bodo Moeller*
  11503. * Include 'length' (recommended exponent length) in C code generated
  11504. by 'openssl dhparam -C'.
  11505. *Bodo Moeller*
  11506. * The second argument to set_label in perlasm was already being used
  11507. so couldn't be used as a "file scope" flag. Moved to third argument
  11508. which was free.
  11509. *Steve Henson*
  11510. * In PEM_ASN1_write_bio and some other functions, use RAND_pseudo_bytes
  11511. instead of RAND_bytes for encryption IVs and salts.
  11512. *Bodo Moeller*
  11513. * Include RAND_status() into RAND_METHOD instead of implementing
  11514. it only for md_rand.c Otherwise replacing the PRNG by calling
  11515. RAND_set_rand_method would be impossible.
  11516. *Bodo Moeller*
  11517. * Don't let DSA_generate_key() enter an infinite loop if the random
  11518. number generation fails.
  11519. *Bodo Moeller*
  11520. * New 'rand' application for creating pseudo-random output.
  11521. *Bodo Moeller*
  11522. * Added configuration support for Linux/IA64
  11523. *Rolf Haberrecker <rolf@suse.de>*
  11524. * Assembler module support for Mingw32.
  11525. *Ulf Möller*
  11526. * Shared library support for HPUX (in shlib/).
  11527. *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE> and Anonymous*
  11528. * Shared library support for Solaris gcc.
  11529. *Lutz Behnke <behnke@trustcenter.de>*
  11530. ### Changes between 0.9.4 and 0.9.5 [28 Feb 2000]
  11531. * PKCS7_encrypt() was adding text MIME headers twice because they
  11532. were added manually and by SMIME_crlf_copy().
  11533. *Steve Henson*
  11534. * In bntest.c don't call BN_rand with zero bits argument.
  11535. *Steve Henson, pointed out by Andrew W. Gray <agray@iconsinc.com>*
  11536. * BN_mul bugfix: In bn_mul_part_recursion() only the a>a[n] && b>b[n]
  11537. case was implemented. This caused BN_div_recp() to fail occasionally.
  11538. *Ulf Möller*
  11539. * Add an optional second argument to the set_label() in the perl
  11540. assembly language builder. If this argument exists and is set
  11541. to 1 it signals that the assembler should use a symbol whose
  11542. scope is the entire file, not just the current function. This
  11543. is needed with MASM which uses the format label:: for this scope.
  11544. *Steve Henson, pointed out by Peter Runestig <peter@runestig.com>*
  11545. * Change the ASN1 types so they are typedefs by default. Before
  11546. almost all types were #define'd to ASN1_STRING which was causing
  11547. STACK_OF() problems: you couldn't declare STACK_OF(ASN1_UTF8STRING)
  11548. for example.
  11549. *Steve Henson*
  11550. * Change names of new functions to the new get1/get0 naming
  11551. convention: After 'get1', the caller owns a reference count
  11552. and has to call `..._free`; 'get0' returns a pointer to some
  11553. data structure without incrementing reference counters.
  11554. (Some of the existing 'get' functions increment a reference
  11555. counter, some don't.)
  11556. Similarly, 'set1' and 'add1' functions increase reference
  11557. counters or duplicate objects.
  11558. *Steve Henson*
  11559. * Allow for the possibility of temp RSA key generation failure:
  11560. the code used to assume it always worked and crashed on failure.
  11561. *Steve Henson*
  11562. * Fix potential buffer overrun problem in BIO_printf().
  11563. *Ulf Möller, using public domain code by Patrick Powell; problem
  11564. pointed out by David Sacerdote <das33@cornell.edu>*
  11565. * Support EGD <http://www.lothar.com/tech/crypto/>. New functions
  11566. RAND_egd() and RAND_status(). In the command line application,
  11567. the EGD socket can be specified like a seed file using RANDFILE
  11568. or -rand.
  11569. *Ulf Möller*
  11570. * Allow the string CERTIFICATE to be tolerated in PKCS#7 structures.
  11571. Some CAs (e.g. Verisign) distribute certificates in this form.
  11572. *Steve Henson*
  11573. * Remove the SSL_ALLOW_ADH compile option and set the default cipher
  11574. list to exclude them. This means that no special compilation option
  11575. is needed to use anonymous DH: it just needs to be included in the
  11576. cipher list.
  11577. *Steve Henson*
  11578. * Change the EVP_MD_CTX_type macro so its meaning consistent with
  11579. EVP_MD_type. The old functionality is available in a new macro called
  11580. EVP_MD_md(). Change code that uses it and update docs.
  11581. *Steve Henson*
  11582. * `..._ctrl` functions now have corresponding `..._callback_ctrl` functions
  11583. where the `void *` argument is replaced by a function pointer argument.
  11584. Previously `void *` was abused to point to functions, which works on
  11585. many platforms, but is not correct. As these functions are usually
  11586. called by macros defined in OpenSSL header files, most source code
  11587. should work without changes.
  11588. *Richard Levitte*
  11589. * `<openssl/opensslconf.h>` (which is created by Configure) now contains
  11590. sections with information on -D... compiler switches used for
  11591. compiling the library so that applications can see them. To enable
  11592. one of these sections, a pre-processor symbol `OPENSSL_..._DEFINES`
  11593. must be defined. E.g.,
  11594. #define OPENSSL_ALGORITHM_DEFINES
  11595. #include <openssl/opensslconf.h>
  11596. defines all pertinent `NO_<algo>` symbols, such as NO_IDEA, NO_RSA, etc.
  11597. *Richard Levitte, Ulf and Bodo Möller*
  11598. * Bugfix: Tolerate fragmentation and interleaving in the SSL 3/TLS
  11599. record layer.
  11600. *Bodo Moeller*
  11601. * Change the 'other' type in certificate aux info to a STACK_OF
  11602. X509_ALGOR. Although not an AlgorithmIdentifier as such it has
  11603. the required ASN1 format: arbitrary types determined by an OID.
  11604. *Steve Henson*
  11605. * Add some PEM_write_X509_REQ_NEW() functions and a command line
  11606. argument to 'req'. This is not because the function is newer or
  11607. better than others it just uses the work 'NEW' in the certificate
  11608. request header lines. Some software needs this.
  11609. *Steve Henson*
  11610. * Reorganise password command line arguments: now passwords can be
  11611. obtained from various sources. Delete the PEM_cb function and make
  11612. it the default behaviour: i.e. if the callback is NULL and the
  11613. usrdata argument is not NULL interpret it as a null terminated pass
  11614. phrase. If usrdata and the callback are NULL then the pass phrase
  11615. is prompted for as usual.
  11616. *Steve Henson*
  11617. * Add support for the Compaq Atalla crypto accelerator. If it is installed,
  11618. the support is automatically enabled. The resulting binaries will
  11619. autodetect the card and use it if present.
  11620. *Ben Laurie and Compaq Inc.*
  11621. * Work around for Netscape hang bug. This sends certificate request
  11622. and server done in one record. Since this is perfectly legal in the
  11623. SSL/TLS protocol it isn't a "bug" option and is on by default. See
  11624. the bugs/SSLv3 entry for more info.
  11625. *Steve Henson*
  11626. * HP-UX tune-up: new unified configs, HP C compiler bug workaround.
  11627. *Andy Polyakov*
  11628. * Add -rand argument to smime and pkcs12 applications and read/write
  11629. of seed file.
  11630. *Steve Henson*
  11631. * New 'passwd' tool for crypt(3) and apr1 password hashes.
  11632. *Bodo Moeller*
  11633. * Add command line password options to the remaining applications.
  11634. *Steve Henson*
  11635. * Bug fix for BN_div_recp() for numerators with an even number of
  11636. bits.
  11637. *Ulf Möller*
  11638. * More tests in bntest.c, and changed test_bn output.
  11639. *Ulf Möller*
  11640. * ./config recognizes MacOS X now.
  11641. *Andy Polyakov*
  11642. * Bug fix for BN_div() when the first words of num and divisor are
  11643. equal (it gave wrong results if `(rem=(n1-q*d0)&BN_MASK2) < d0)`.
  11644. *Ulf Möller*
  11645. * Add support for various broken PKCS#8 formats, and command line
  11646. options to produce them.
  11647. *Steve Henson*
  11648. * New functions BN_CTX_start(), BN_CTX_get() and BT_CTX_end() to
  11649. get temporary BIGNUMs from a BN_CTX.
  11650. *Ulf Möller*
  11651. * Correct return values in BN_mod_exp_mont() and BN_mod_exp2_mont()
  11652. for p == 0.
  11653. *Ulf Möller*
  11654. * Change the `SSLeay_add_all_*()` functions to `OpenSSL_add_all_*()` and
  11655. include a #define from the old name to the new. The original intent
  11656. was that statically linked binaries could for example just call
  11657. SSLeay_add_all_ciphers() to just add ciphers to the table and not
  11658. link with digests. This never worked because SSLeay_add_all_digests()
  11659. and SSLeay_add_all_ciphers() were in the same source file so calling
  11660. one would link with the other. They are now in separate source files.
  11661. *Steve Henson*
  11662. * Add a new -notext option to 'ca' and a -pubkey option to 'spkac'.
  11663. *Steve Henson*
  11664. * Use a less unusual form of the Miller-Rabin primality test (it used
  11665. a binary algorithm for exponentiation integrated into the Miller-Rabin
  11666. loop, our standard modexp algorithms are faster).
  11667. *Bodo Moeller*
  11668. * Support for the EBCDIC character set completed.
  11669. *Martin Kraemer <Martin.Kraemer@Mch.SNI.De>*
  11670. * Source code cleanups: use const where appropriate, eliminate casts,
  11671. use `void *` instead of `char *` in lhash.
  11672. *Ulf Möller*
  11673. * Bugfix: ssl3_send_server_key_exchange was not restartable
  11674. (the state was not changed to SSL3_ST_SW_KEY_EXCH_B, and because of
  11675. this the server could overwrite ephemeral keys that the client
  11676. has already seen).
  11677. *Bodo Moeller*
  11678. * Turn DSA_is_prime into a macro that calls BN_is_prime,
  11679. using 50 iterations of the Rabin-Miller test.
  11680. DSA_generate_parameters now uses BN_is_prime_fasttest (with 50
  11681. iterations of the Rabin-Miller test as required by the appendix
  11682. to FIPS PUB 186[-1]) instead of DSA_is_prime.
  11683. As BN_is_prime_fasttest includes trial division, DSA parameter
  11684. generation becomes much faster.
  11685. This implies a change for the callback functions in DSA_is_prime
  11686. and DSA_generate_parameters: The callback function is called once
  11687. for each positive witness in the Rabin-Miller test, not just
  11688. occasionally in the inner loop; and the parameters to the
  11689. callback function now provide an iteration count for the outer
  11690. loop rather than for the current invocation of the inner loop.
  11691. DSA_generate_parameters additionally can call the callback
  11692. function with an 'iteration count' of -1, meaning that a
  11693. candidate has passed the trial division test (when q is generated
  11694. from an application-provided seed, trial division is skipped).
  11695. *Bodo Moeller*
  11696. * New function BN_is_prime_fasttest that optionally does trial
  11697. division before starting the Rabin-Miller test and has
  11698. an additional BN_CTX * argument (whereas BN_is_prime always
  11699. has to allocate at least one BN_CTX).
  11700. 'callback(1, -1, cb_arg)' is called when a number has passed the
  11701. trial division stage.
  11702. *Bodo Moeller*
  11703. * Fix for bug in CRL encoding. The validity dates weren't being handled
  11704. as ASN1_TIME.
  11705. *Steve Henson*
  11706. * New -pkcs12 option to CA.pl script to write out a PKCS#12 file.
  11707. *Steve Henson*
  11708. * New function BN_pseudo_rand().
  11709. *Ulf Möller*
  11710. * Clean up BN_mod_mul_montgomery(): replace the broken (and unreadable)
  11711. bignum version of BN_from_montgomery() with the working code from
  11712. SSLeay 0.9.0 (the word based version is faster anyway), and clean up
  11713. the comments.
  11714. *Ulf Möller*
  11715. * Avoid a race condition in s2_clnt.c (function get_server_hello) that
  11716. made it impossible to use the same SSL_SESSION data structure in
  11717. SSL2 clients in multiple threads.
  11718. *Bodo Moeller*
  11719. * The return value of RAND_load_file() no longer counts bytes obtained
  11720. by stat(). RAND_load_file(..., -1) is new and uses the complete file
  11721. to seed the PRNG (previously an explicit byte count was required).
  11722. *Ulf Möller, Bodo Möller*
  11723. * Clean up CRYPTO_EX_DATA functions, some of these didn't have prototypes
  11724. used `char *` instead of `void *` and had casts all over the place.
  11725. *Steve Henson*
  11726. * Make BN_generate_prime() return NULL on error if ret!=NULL.
  11727. *Ulf Möller*
  11728. * Retain source code compatibility for BN_prime_checks macro:
  11729. BN_is_prime(..., BN_prime_checks, ...) now uses
  11730. BN_prime_checks_for_size to determine the appropriate number of
  11731. Rabin-Miller iterations.
  11732. *Ulf Möller*
  11733. * Diffie-Hellman uses "safe" primes: DH_check() return code renamed to
  11734. DH_CHECK_P_NOT_SAFE_PRIME.
  11735. (Check if this is true? OpenPGP calls them "strong".)
  11736. *Ulf Möller*
  11737. * Merge the functionality of "dh" and "gendh" programs into a new program
  11738. "dhparam". The old programs are retained for now but will handle DH keys
  11739. (instead of parameters) in future.
  11740. *Steve Henson*
  11741. * Make the ciphers, s_server and s_client programs check the return values
  11742. when a new cipher list is set.
  11743. *Steve Henson*
  11744. * Enhance the SSL/TLS cipher mechanism to correctly handle the TLS 56bit
  11745. ciphers. Before when the 56bit ciphers were enabled the sorting was
  11746. wrong.
  11747. The syntax for the cipher sorting has been extended to support sorting by
  11748. cipher-strength (using the strength_bits hard coded in the tables).
  11749. The new command is `@STRENGTH` (see also `doc/apps/ciphers.pod`).
  11750. Fix a bug in the cipher-command parser: when supplying a cipher command
  11751. string with an "undefined" symbol (neither command nor alphanumeric
  11752. *A-Za-z0-9*, ssl_set_cipher_list used to hang in an endless loop. Now
  11753. an error is flagged.
  11754. Due to the strength-sorting extension, the code of the
  11755. ssl_create_cipher_list() function was completely rearranged. I hope that
  11756. the readability was also increased :-)
  11757. *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>*
  11758. * Minor change to 'x509' utility. The -CAcreateserial option now uses 1
  11759. for the first serial number and places 2 in the serial number file. This
  11760. avoids problems when the root CA is created with serial number zero and
  11761. the first user certificate has the same issuer name and serial number
  11762. as the root CA.
  11763. *Steve Henson*
  11764. * Fixes to X509_ATTRIBUTE utilities, change the 'req' program so it uses
  11765. the new code. Add documentation for this stuff.
  11766. *Steve Henson*
  11767. * Changes to X509_ATTRIBUTE utilities. These have been renamed from
  11768. `X509_*()` to `X509at_*()` on the grounds that they don't handle X509
  11769. structures and behave in an analogous way to the X509v3 functions:
  11770. they shouldn't be called directly but wrapper functions should be used
  11771. instead.
  11772. So we also now have some wrapper functions that call the X509at functions
  11773. when passed certificate requests. (TO DO: similar things can be done with
  11774. PKCS#7 signed and unsigned attributes, PKCS#12 attributes and a few other
  11775. things. Some of these need some d2i or i2d and print functionality
  11776. because they handle more complex structures.)
  11777. *Steve Henson*
  11778. * Add missing #ifndefs that caused missing symbols when building libssl
  11779. as a shared library without RSA. Use #ifndef NO_SSL2 instead of
  11780. NO_RSA in `ssl/s2*.c`.
  11781. *Kris Kennaway <kris@hub.freebsd.org>, modified by Ulf Möller*
  11782. * Precautions against using the PRNG uninitialized: RAND_bytes() now
  11783. has a return value which indicates the quality of the random data
  11784. (1 = ok, 0 = not seeded). Also an error is recorded on the thread's
  11785. error queue. New function RAND_pseudo_bytes() generates output that is
  11786. guaranteed to be unique but not unpredictable. RAND_add is like
  11787. RAND_seed, but takes an extra argument for an entropy estimate
  11788. (RAND_seed always assumes full entropy).
  11789. *Ulf Möller*
  11790. * Do more iterations of Rabin-Miller probable prime test (specifically,
  11791. 3 for 1024-bit primes, 6 for 512-bit primes, 12 for 256-bit primes
  11792. instead of only 2 for all lengths; see BN_prime_checks_for_size definition
  11793. in crypto/bn/bn_prime.c for the complete table). This guarantees a
  11794. false-positive rate of at most 2^-80 for random input.
  11795. *Bodo Moeller*
  11796. * Rewrite ssl3_read_n (ssl/s3_pkt.c) avoiding a couple of bugs.
  11797. *Bodo Moeller*
  11798. * New function X509_CTX_rget_chain() (renamed to X509_CTX_get1_chain
  11799. in the 0.9.5 release), this returns the chain
  11800. from an X509_CTX structure with a dup of the stack and all
  11801. the X509 reference counts upped: so the stack will exist
  11802. after X509_CTX_cleanup() has been called. Modify pkcs12.c
  11803. to use this.
  11804. Also make SSL_SESSION_print() print out the verify return
  11805. code.
  11806. *Steve Henson*
  11807. * Add manpage for the pkcs12 command. Also change the default
  11808. behaviour so MAC iteration counts are used unless the new
  11809. -nomaciter option is used. This improves file security and
  11810. only older versions of MSIE (4.0 for example) need it.
  11811. *Steve Henson*
  11812. * Honor the no-xxx Configure options when creating .DEF files.
  11813. *Ulf Möller*
  11814. * Add PKCS#10 attributes to field table: challengePassword,
  11815. unstructuredName and unstructuredAddress. These are taken from
  11816. draft PKCS#9 v2.0 but are compatible with v1.2 provided no
  11817. international characters are used.
  11818. More changes to X509_ATTRIBUTE code: allow the setting of types
  11819. based on strings. Remove the 'loc' parameter when adding
  11820. attributes because these will be a SET OF encoding which is sorted
  11821. in ASN1 order.
  11822. *Steve Henson*
  11823. * Initial changes to the 'req' utility to allow request generation
  11824. automation. This will allow an application to just generate a template
  11825. file containing all the field values and have req construct the
  11826. request.
  11827. Initial support for X509_ATTRIBUTE handling. Stacks of these are
  11828. used all over the place including certificate requests and PKCS#7
  11829. structures. They are currently handled manually where necessary with
  11830. some primitive wrappers for PKCS#7. The new functions behave in a
  11831. manner analogous to the X509 extension functions: they allow
  11832. attributes to be looked up by NID and added.
  11833. Later something similar to the X509V3 code would be desirable to
  11834. automatically handle the encoding, decoding and printing of the
  11835. more complex types. The string types like challengePassword can
  11836. be handled by the string table functions.
  11837. Also modified the multi byte string table handling. Now there is
  11838. a 'global mask' which masks out certain types. The table itself
  11839. can use the flag STABLE_NO_MASK to ignore the mask setting: this
  11840. is useful when for example there is only one permissible type
  11841. (as in countryName) and using the mask might result in no valid
  11842. types at all.
  11843. *Steve Henson*
  11844. * Clean up 'Finished' handling, and add functions SSL_get_finished and
  11845. SSL_get_peer_finished to allow applications to obtain the latest
  11846. Finished messages sent to the peer or expected from the peer,
  11847. respectively. (SSL_get_peer_finished is usually the Finished message
  11848. actually received from the peer, otherwise the protocol will be aborted.)
  11849. As the Finished message are message digests of the complete handshake
  11850. (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can
  11851. be used for external authentication procedures when the authentication
  11852. provided by SSL/TLS is not desired or is not enough.
  11853. *Bodo Moeller*
  11854. * Enhanced support for Alpha Linux is added. Now ./config checks if
  11855. the host supports BWX extension and if Compaq C is present on the
  11856. $PATH. Just exploiting of the BWX extension results in 20-30%
  11857. performance kick for some algorithms, e.g. DES and RC4 to mention
  11858. a couple. Compaq C in turn generates ~20% faster code for MD5 and
  11859. SHA1.
  11860. *Andy Polyakov*
  11861. * Add support for MS "fast SGC". This is arguably a violation of the
  11862. SSL3/TLS protocol. Netscape SGC does two handshakes: the first with
  11863. weak crypto and after checking the certificate is SGC a second one
  11864. with strong crypto. MS SGC stops the first handshake after receiving
  11865. the server certificate message and sends a second client hello. Since
  11866. a server will typically do all the time consuming operations before
  11867. expecting any further messages from the client (server key exchange
  11868. is the most expensive) there is little difference between the two.
  11869. To get OpenSSL to support MS SGC we have to permit a second client
  11870. hello message after we have sent server done. In addition we have to
  11871. reset the MAC if we do get this second client hello.
  11872. *Steve Henson*
  11873. * Add a function 'd2i_AutoPrivateKey()' this will automatically decide
  11874. if a DER encoded private key is RSA or DSA traditional format. Changed
  11875. d2i_PrivateKey_bio() to use it. This is only needed for the "traditional"
  11876. format DER encoded private key. Newer code should use PKCS#8 format which
  11877. has the key type encoded in the ASN1 structure. Added DER private key
  11878. support to pkcs8 application.
  11879. *Steve Henson*
  11880. * SSL 3/TLS 1 servers now don't request certificates when an anonymous
  11881. ciphersuites has been selected (as required by the SSL 3/TLS 1
  11882. specifications). Exception: When SSL_VERIFY_FAIL_IF_NO_PEER_CERT
  11883. is set, we interpret this as a request to violate the specification
  11884. (the worst that can happen is a handshake failure, and 'correct'
  11885. behaviour would result in a handshake failure anyway).
  11886. *Bodo Moeller*
  11887. * In SSL_CTX_add_session, take into account that there might be multiple
  11888. SSL_SESSION structures with the same session ID (e.g. when two threads
  11889. concurrently obtain them from an external cache).
  11890. The internal cache can handle only one SSL_SESSION with a given ID,
  11891. so if there's a conflict, we now throw out the old one to achieve
  11892. consistency.
  11893. *Bodo Moeller*
  11894. * Add OIDs for idea and blowfish in CBC mode. This will allow both
  11895. to be used in PKCS#5 v2.0 and S/MIME. Also add checking to
  11896. some routines that use cipher OIDs: some ciphers do not have OIDs
  11897. defined and so they cannot be used for S/MIME and PKCS#5 v2.0 for
  11898. example.
  11899. *Steve Henson*
  11900. * Simplify the trust setting structure and code. Now we just have
  11901. two sequences of OIDs for trusted and rejected settings. These will
  11902. typically have values the same as the extended key usage extension
  11903. and any application specific purposes.
  11904. The trust checking code now has a default behaviour: it will just
  11905. check for an object with the same NID as the passed id. Functions can
  11906. be provided to override either the default behaviour or the behaviour
  11907. for a given id. SSL client, server and email already have functions
  11908. in place for compatibility: they check the NID and also return "trusted"
  11909. if the certificate is self signed.
  11910. *Steve Henson*
  11911. * Add d2i,i2d bio/fp functions for PrivateKey: these convert the
  11912. traditional format into an EVP_PKEY structure.
  11913. *Steve Henson*
  11914. * Add a password callback function PEM_cb() which either prompts for
  11915. a password if usr_data is NULL or otherwise assumes it is a null
  11916. terminated password. Allow passwords to be passed on command line
  11917. environment or config files in a few more utilities.
  11918. *Steve Henson*
  11919. * Add a bunch of DER and PEM functions to handle PKCS#8 format private
  11920. keys. Add some short names for PKCS#8 PBE algorithms and allow them
  11921. to be specified on the command line for the pkcs8 and pkcs12 utilities.
  11922. Update documentation.
  11923. *Steve Henson*
  11924. * Support for ASN1 "NULL" type. This could be handled before by using
  11925. ASN1_TYPE but there wasn't any function that would try to read a NULL
  11926. and produce an error if it couldn't. For compatibility we also have
  11927. ASN1_NULL_new() and ASN1_NULL_free() functions but these are faked and
  11928. don't allocate anything because they don't need to.
  11929. *Steve Henson*
  11930. * Initial support for MacOS is now provided. Examine INSTALL.MacOS
  11931. for details.
  11932. *Andy Polyakov, Roy Woods <roy@centicsystems.ca>*
  11933. * Rebuild of the memory allocation routines used by OpenSSL code and
  11934. possibly others as well. The purpose is to make an interface that
  11935. provide hooks so anyone can build a separate set of allocation and
  11936. deallocation routines to be used by OpenSSL, for example memory
  11937. pool implementations, or something else, which was previously hard
  11938. since Malloc(), Realloc() and Free() were defined as macros having
  11939. the values malloc, realloc and free, respectively (except for Win32
  11940. compilations). The same is provided for memory debugging code.
  11941. OpenSSL already comes with functionality to find memory leaks, but
  11942. this gives people a chance to debug other memory problems.
  11943. With these changes, a new set of functions and macros have appeared:
  11944. CRYPTO_set_mem_debug_functions() [F]
  11945. CRYPTO_get_mem_debug_functions() [F]
  11946. CRYPTO_dbg_set_options() [F]
  11947. CRYPTO_dbg_get_options() [F]
  11948. CRYPTO_malloc_debug_init() [M]
  11949. The memory debug functions are NULL by default, unless the library
  11950. is compiled with CRYPTO_MDEBUG or friends is defined. If someone
  11951. wants to debug memory anyway, CRYPTO_malloc_debug_init() (which
  11952. gives the standard debugging functions that come with OpenSSL) or
  11953. CRYPTO_set_mem_debug_functions() (tells OpenSSL to use functions
  11954. provided by the library user) must be used. When the standard
  11955. debugging functions are used, CRYPTO_dbg_set_options can be used to
  11956. request additional information:
  11957. CRYPTO_dbg_set_options(V_CYRPTO_MDEBUG_xxx) corresponds to setting
  11958. the CRYPTO_MDEBUG_xxx macro when compiling the library.
  11959. Also, things like CRYPTO_set_mem_functions will always give the
  11960. expected result (the new set of functions is used for allocation
  11961. and deallocation) at all times, regardless of platform and compiler
  11962. options.
  11963. To finish it up, some functions that were never use in any other
  11964. way than through macros have a new API and new semantic:
  11965. CRYPTO_dbg_malloc()
  11966. CRYPTO_dbg_realloc()
  11967. CRYPTO_dbg_free()
  11968. All macros of value have retained their old syntax.
  11969. *Richard Levitte and Bodo Moeller*
  11970. * Some S/MIME fixes. The OID for SMIMECapabilities was wrong, the
  11971. ordering of SMIMECapabilities wasn't in "strength order" and there
  11972. was a missing NULL in the AlgorithmIdentifier for the SHA1 signature
  11973. algorithm.
  11974. *Steve Henson*
  11975. * Some ASN1 types with illegal zero length encoding (INTEGER,
  11976. ENUMERATED and OBJECT IDENTIFIER) choked the ASN1 routines.
  11977. *Frans Heymans <fheymans@isaserver.be>, modified by Steve Henson*
  11978. * Merge in my S/MIME library for OpenSSL. This provides a simple
  11979. S/MIME API on top of the PKCS#7 code, a MIME parser (with enough
  11980. functionality to handle multipart/signed properly) and a utility
  11981. called 'smime' to call all this stuff. This is based on code I
  11982. originally wrote for Celo who have kindly allowed it to be
  11983. included in OpenSSL.
  11984. *Steve Henson*
  11985. * Add variants des_set_key_checked and des_set_key_unchecked of
  11986. des_set_key (aka des_key_sched). Global variable des_check_key
  11987. decides which of these is called by des_set_key; this way
  11988. des_check_key behaves as it always did, but applications and
  11989. the library itself, which was buggy for des_check_key == 1,
  11990. have a cleaner way to pick the version they need.
  11991. *Bodo Moeller*
  11992. * New function PKCS12_newpass() which changes the password of a
  11993. PKCS12 structure.
  11994. *Steve Henson*
  11995. * Modify X509_TRUST and X509_PURPOSE so it also uses a static and
  11996. dynamic mix. In both cases the ids can be used as an index into the
  11997. table. Also modified the X509_TRUST_add() and X509_PURPOSE_add()
  11998. functions so they accept a list of the field values and the
  11999. application doesn't need to directly manipulate the X509_TRUST
  12000. structure.
  12001. *Steve Henson*
  12002. * Modify the ASN1_STRING_TABLE stuff so it also uses bsearch and doesn't
  12003. need initialising.
  12004. *Steve Henson*
  12005. * Modify the way the V3 extension code looks up extensions. This now
  12006. works in a similar way to the object code: we have some "standard"
  12007. extensions in a static table which is searched with OBJ_bsearch()
  12008. and the application can add dynamic ones if needed. The file
  12009. crypto/x509v3/ext_dat.h now has the info: this file needs to be
  12010. updated whenever a new extension is added to the core code and kept
  12011. in ext_nid order. There is a simple program 'tabtest.c' which checks
  12012. this. New extensions are not added too often so this file can readily
  12013. be maintained manually.
  12014. There are two big advantages in doing things this way. The extensions
  12015. can be looked up immediately and no longer need to be "added" using
  12016. X509V3_add_standard_extensions(): this function now does nothing.
  12017. Side note: I get *lots* of email saying the extension code doesn't
  12018. work because people forget to call this function.
  12019. Also no dynamic allocation is done unless new extensions are added:
  12020. so if we don't add custom extensions there is no need to call
  12021. X509V3_EXT_cleanup().
  12022. *Steve Henson*
  12023. * Modify enc utility's salting as follows: make salting the default. Add a
  12024. magic header, so unsalted files fail gracefully instead of just decrypting
  12025. to garbage. This is because not salting is a big security hole, so people
  12026. should be discouraged from doing it.
  12027. *Ben Laurie*
  12028. * Fixes and enhancements to the 'x509' utility. It allowed a message
  12029. digest to be passed on the command line but it only used this
  12030. parameter when signing a certificate. Modified so all relevant
  12031. operations are affected by the digest parameter including the
  12032. -fingerprint and -x509toreq options. Also -x509toreq choked if a
  12033. DSA key was used because it didn't fix the digest.
  12034. *Steve Henson*
  12035. * Initial certificate chain verify code. Currently tests the untrusted
  12036. certificates for consistency with the verify purpose (which is set
  12037. when the X509_STORE_CTX structure is set up) and checks the pathlength.
  12038. There is a NO_CHAIN_VERIFY compilation option to keep the old behaviour:
  12039. this is because it will reject chains with invalid extensions whereas
  12040. every previous version of OpenSSL and SSLeay made no checks at all.
  12041. Trust code: checks the root CA for the relevant trust settings. Trust
  12042. settings have an initial value consistent with the verify purpose: e.g.
  12043. if the verify purpose is for SSL client use it expects the CA to be
  12044. trusted for SSL client use. However the default value can be changed to
  12045. permit custom trust settings: one example of this would be to only trust
  12046. certificates from a specific "secure" set of CAs.
  12047. Also added X509_STORE_CTX_new() and X509_STORE_CTX_free() functions
  12048. which should be used for version portability: especially since the
  12049. verify structure is likely to change more often now.
  12050. SSL integration. Add purpose and trust to SSL_CTX and SSL and functions
  12051. to set them. If not set then assume SSL clients will verify SSL servers
  12052. and vice versa.
  12053. Two new options to the verify program: -untrusted allows a set of
  12054. untrusted certificates to be passed in and -purpose which sets the
  12055. intended purpose of the certificate. If a purpose is set then the
  12056. new chain verify code is used to check extension consistency.
  12057. *Steve Henson*
  12058. * Support for the authority information access extension.
  12059. *Steve Henson*
  12060. * Modify RSA and DSA PEM read routines to transparently handle
  12061. PKCS#8 format private keys. New *_PUBKEY_* functions that handle
  12062. public keys in a format compatible with certificate
  12063. SubjectPublicKeyInfo structures. Unfortunately there were already
  12064. functions called *_PublicKey_* which used various odd formats so
  12065. these are retained for compatibility: however the DSA variants were
  12066. never in a public release so they have been deleted. Changed dsa/rsa
  12067. utilities to handle the new format: note no releases ever handled public
  12068. keys so we should be OK.
  12069. The primary motivation for this change is to avoid the same fiasco
  12070. that dogs private keys: there are several incompatible private key
  12071. formats some of which are standard and some OpenSSL specific and
  12072. require various evil hacks to allow partial transparent handling and
  12073. even then it doesn't work with DER formats. Given the option anything
  12074. other than PKCS#8 should be dumped: but the other formats have to
  12075. stay in the name of compatibility.
  12076. With public keys and the benefit of hindsight one standard format
  12077. is used which works with EVP_PKEY, RSA or DSA structures: though
  12078. it clearly returns an error if you try to read the wrong kind of key.
  12079. Added a -pubkey option to the 'x509' utility to output the public key.
  12080. Also rename the `EVP_PKEY_get_*()` to `EVP_PKEY_rget_*()`
  12081. (renamed to `EVP_PKEY_get1_*()` in the OpenSSL 0.9.5 release) and add
  12082. `EVP_PKEY_rset_*()` functions (renamed to `EVP_PKEY_set1_*()`)
  12083. that do the same as the `EVP_PKEY_assign_*()` except they up the
  12084. reference count of the added key (they don't "swallow" the
  12085. supplied key).
  12086. *Steve Henson*
  12087. * Fixes to crypto/x509/by_file.c the code to read in certificates and
  12088. CRLs would fail if the file contained no certificates or no CRLs:
  12089. added a new function to read in both types and return the number
  12090. read: this means that if none are read it will be an error. The
  12091. DER versions of the certificate and CRL reader would always fail
  12092. because it isn't possible to mix certificates and CRLs in DER format
  12093. without choking one or the other routine. Changed this to just read
  12094. a certificate: this is the best we can do. Also modified the code
  12095. in `apps/verify.c` to take notice of return codes: it was previously
  12096. attempting to read in certificates from NULL pointers and ignoring
  12097. any errors: this is one reason why the cert and CRL reader seemed
  12098. to work. It doesn't check return codes from the default certificate
  12099. routines: these may well fail if the certificates aren't installed.
  12100. *Steve Henson*
  12101. * Code to support otherName option in GeneralName.
  12102. *Steve Henson*
  12103. * First update to verify code. Change the verify utility
  12104. so it warns if it is passed a self signed certificate:
  12105. for consistency with the normal behaviour. X509_verify
  12106. has been modified to it will now verify a self signed
  12107. certificate if *exactly* the same certificate appears
  12108. in the store: it was previously impossible to trust a
  12109. single self signed certificate. This means that:
  12110. openssl verify ss.pem
  12111. now gives a warning about a self signed certificate but
  12112. openssl verify -CAfile ss.pem ss.pem
  12113. is OK.
  12114. *Steve Henson*
  12115. * For servers, store verify_result in SSL_SESSION data structure
  12116. (and add it to external session representation).
  12117. This is needed when client certificate verifications fails,
  12118. but an application-provided verification callback (set by
  12119. SSL_CTX_set_cert_verify_callback) allows accepting the session
  12120. anyway (i.e. leaves x509_store_ctx->error != X509_V_OK
  12121. but returns 1): When the session is reused, we have to set
  12122. ssl->verify_result to the appropriate error code to avoid
  12123. security holes.
  12124. *Bodo Moeller, problem pointed out by Lutz Jaenicke*
  12125. * Fix a bug in the new PKCS#7 code: it didn't consider the
  12126. case in PKCS7_dataInit() where the signed PKCS7 structure
  12127. didn't contain any existing data because it was being created.
  12128. *Po-Cheng Chen <pocheng@nst.com.tw>, slightly modified by Steve Henson*
  12129. * Add a salt to the key derivation routines in enc.c. This
  12130. forms the first 8 bytes of the encrypted file. Also add a
  12131. -S option to allow a salt to be input on the command line.
  12132. *Steve Henson*
  12133. * New function X509_cmp(). Oddly enough there wasn't a function
  12134. to compare two certificates. We do this by working out the SHA1
  12135. hash and comparing that. X509_cmp() will be needed by the trust
  12136. code.
  12137. *Steve Henson*
  12138. * SSL_get1_session() is like SSL_get_session(), but increments
  12139. the reference count in the SSL_SESSION returned.
  12140. *Geoff Thorpe <geoff@eu.c2.net>*
  12141. * Fix for 'req': it was adding a null to request attributes.
  12142. Also change the X509_LOOKUP and X509_INFO code to handle
  12143. certificate auxiliary information.
  12144. *Steve Henson*
  12145. * Add support for 40 and 64 bit RC2 and RC4 algorithms: document
  12146. the 'enc' command.
  12147. *Steve Henson*
  12148. * Add the possibility to add extra information to the memory leak
  12149. detecting output, to form tracebacks, showing from where each
  12150. allocation was originated: CRYPTO_push_info("constant string") adds
  12151. the string plus current file name and line number to a per-thread
  12152. stack, CRYPTO_pop_info() does the obvious, CRYPTO_remove_all_info()
  12153. is like calling CYRPTO_pop_info() until the stack is empty.
  12154. Also updated memory leak detection code to be multi-thread-safe.
  12155. *Richard Levitte*
  12156. * Add options -text and -noout to pkcs7 utility and delete the
  12157. encryption options which never did anything. Update docs.
  12158. *Steve Henson*
  12159. * Add options to some of the utilities to allow the pass phrase
  12160. to be included on either the command line (not recommended on
  12161. OSes like Unix) or read from the environment. Update the
  12162. manpages and fix a few bugs.
  12163. *Steve Henson*
  12164. * Add a few manpages for some of the openssl commands.
  12165. *Steve Henson*
  12166. * Fix the -revoke option in ca. It was freeing up memory twice,
  12167. leaking and not finding already revoked certificates.
  12168. *Steve Henson*
  12169. * Extensive changes to support certificate auxiliary information.
  12170. This involves the use of X509_CERT_AUX structure and X509_AUX
  12171. functions. An X509_AUX function such as PEM_read_X509_AUX()
  12172. can still read in a certificate file in the usual way but it
  12173. will also read in any additional "auxiliary information". By
  12174. doing things this way a fair degree of compatibility can be
  12175. retained: existing certificates can have this information added
  12176. using the new 'x509' options.
  12177. Current auxiliary information includes an "alias" and some trust
  12178. settings. The trust settings will ultimately be used in enhanced
  12179. certificate chain verification routines: currently a certificate
  12180. can only be trusted if it is self signed and then it is trusted
  12181. for all purposes.
  12182. *Steve Henson*
  12183. * Fix assembler for Alpha (tested only on DEC OSF not Linux or `*BSD`).
  12184. The problem was that one of the replacement routines had not been working
  12185. since SSLeay releases. For now the offending routine has been replaced
  12186. with non-optimised assembler. Even so, this now gives around 95%
  12187. performance improvement for 1024 bit RSA signs.
  12188. *Mark Cox*
  12189. * Hack to fix PKCS#7 decryption when used with some unorthodox RC2
  12190. handling. Most clients have the effective key size in bits equal to
  12191. the key length in bits: so a 40 bit RC2 key uses a 40 bit (5 byte) key.
  12192. A few however don't do this and instead use the size of the decrypted key
  12193. to determine the RC2 key length and the AlgorithmIdentifier to determine
  12194. the effective key length. In this case the effective key length can still
  12195. be 40 bits but the key length can be 168 bits for example. This is fixed
  12196. by manually forcing an RC2 key into the EVP_PKEY structure because the
  12197. EVP code can't currently handle unusual RC2 key sizes: it always assumes
  12198. the key length and effective key length are equal.
  12199. *Steve Henson*
  12200. * Add a bunch of functions that should simplify the creation of
  12201. X509_NAME structures. Now you should be able to do:
  12202. X509_NAME_add_entry_by_txt(nm, "CN", MBSTRING_ASC, "Steve", -1, -1, 0);
  12203. and have it automatically work out the correct field type and fill in
  12204. the structures. The more adventurous can try:
  12205. X509_NAME_add_entry_by_txt(nm, field, MBSTRING_UTF8, str, -1, -1, 0);
  12206. and it will (hopefully) work out the correct multibyte encoding.
  12207. *Steve Henson*
  12208. * Change the 'req' utility to use the new field handling and multibyte
  12209. copy routines. Before the DN field creation was handled in an ad hoc
  12210. way in req, ca, and x509 which was rather broken and didn't support
  12211. BMPStrings or UTF8Strings. Since some software doesn't implement
  12212. BMPStrings or UTF8Strings yet, they can be enabled using the config file
  12213. using the dirstring_type option. See the new comment in the default
  12214. openssl.cnf for more info.
  12215. *Steve Henson*
  12216. * Make crypto/rand/md_rand.c more robust:
  12217. - Assure unique random numbers after fork().
  12218. - Make sure that concurrent threads access the global counter and
  12219. md serializably so that we never lose entropy in them
  12220. or use exactly the same state in multiple threads.
  12221. Access to the large state is not always serializable because
  12222. the additional locking could be a performance killer, and
  12223. md should be large enough anyway.
  12224. *Bodo Moeller*
  12225. * New file `apps/app_rand.c` with commonly needed functionality
  12226. for handling the random seed file.
  12227. Use the random seed file in some applications that previously did not:
  12228. ca,
  12229. dsaparam -genkey (which also ignored its '-rand' option),
  12230. s_client,
  12231. s_server,
  12232. x509 (when signing).
  12233. Except on systems with /dev/urandom, it is crucial to have a random
  12234. seed file at least for key creation, DSA signing, and for DH exchanges;
  12235. for RSA signatures we could do without one.
  12236. gendh and gendsa (unlike genrsa) used to read only the first byte
  12237. of each file listed in the '-rand' option. The function as previously
  12238. found in genrsa is now in app_rand.c and is used by all programs
  12239. that support '-rand'.
  12240. *Bodo Moeller*
  12241. * In RAND_write_file, use mode 0600 for creating files;
  12242. don't just chmod when it may be too late.
  12243. *Bodo Moeller*
  12244. * Report an error from X509_STORE_load_locations
  12245. when X509_LOOKUP_load_file or X509_LOOKUP_add_dir failed.
  12246. *Bill Perry*
  12247. * New function ASN1_mbstring_copy() this copies a string in either
  12248. ASCII, Unicode, Universal (4 bytes per character) or UTF8 format
  12249. into an ASN1_STRING type. A mask of permissible types is passed
  12250. and it chooses the "minimal" type to use or an error if not type
  12251. is suitable.
  12252. *Steve Henson*
  12253. * Add function equivalents to the various macros in asn1.h. The old
  12254. macros are retained with an `M_` prefix. Code inside the library can
  12255. use the `M_` macros. External code (including the openssl utility)
  12256. should *NOT* in order to be "shared library friendly".
  12257. *Steve Henson*
  12258. * Add various functions that can check a certificate's extensions
  12259. to see if it usable for various purposes such as SSL client,
  12260. server or S/MIME and CAs of these types. This is currently
  12261. VERY EXPERIMENTAL but will ultimately be used for certificate chain
  12262. verification. Also added a -purpose flag to x509 utility to
  12263. print out all the purposes.
  12264. *Steve Henson*
  12265. * Add a CRYPTO_EX_DATA to X509 certificate structure and associated
  12266. functions.
  12267. *Steve Henson*
  12268. * New `X509V3_{X509,CRL,REVOKED}_get_d2i()` functions. These will search
  12269. for, obtain and decode and extension and obtain its critical flag.
  12270. This allows all the necessary extension code to be handled in a
  12271. single function call.
  12272. *Steve Henson*
  12273. * RC4 tune-up featuring 30-40% performance improvement on most RISC
  12274. platforms. See crypto/rc4/rc4_enc.c for further details.
  12275. *Andy Polyakov*
  12276. * New -noout option to asn1parse. This causes no output to be produced
  12277. its main use is when combined with -strparse and -out to extract data
  12278. from a file (which may not be in ASN.1 format).
  12279. *Steve Henson*
  12280. * Fix for pkcs12 program. It was hashing an invalid certificate pointer
  12281. when producing the local key id.
  12282. *Richard Levitte <levitte@stacken.kth.se>*
  12283. * New option -dhparam in s_server. This allows a DH parameter file to be
  12284. stated explicitly. If it is not stated then it tries the first server
  12285. certificate file. The previous behaviour hard coded the filename
  12286. "server.pem".
  12287. *Steve Henson*
  12288. * Add -pubin and -pubout options to the rsa and dsa commands. These allow
  12289. a public key to be input or output. For example:
  12290. openssl rsa -in key.pem -pubout -out pubkey.pem
  12291. Also added necessary DSA public key functions to handle this.
  12292. *Steve Henson*
  12293. * Fix so PKCS7_dataVerify() doesn't crash if no certificates are contained
  12294. in the message. This was handled by allowing
  12295. X509_find_by_issuer_and_serial() to tolerate a NULL passed to it.
  12296. *Steve Henson, reported by Sampo Kellomaki <sampo@mail.neuronio.pt>*
  12297. * Fix for bug in d2i_ASN1_bytes(): other ASN1 functions add an extra null
  12298. to the end of the strings whereas this didn't. This would cause problems
  12299. if strings read with d2i_ASN1_bytes() were later modified.
  12300. *Steve Henson, reported by Arne Ansper <arne@ats.cyber.ee>*
  12301. * Fix for base64 decode bug. When a base64 bio reads only one line of
  12302. data and it contains EOF it will end up returning an error. This is
  12303. caused by input 46 bytes long. The cause is due to the way base64
  12304. BIOs find the start of base64 encoded data. They do this by trying a
  12305. trial decode on each line until they find one that works. When they
  12306. do a flag is set and it starts again knowing it can pass all the
  12307. data directly through the decoder. Unfortunately it doesn't reset
  12308. the context it uses. This means that if EOF is reached an attempt
  12309. is made to pass two EOFs through the context and this causes the
  12310. resulting error. This can also cause other problems as well. As is
  12311. usual with these problems it takes *ages* to find and the fix is
  12312. trivial: move one line.
  12313. *Steve Henson, reported by ian@uns.ns.ac.yu (Ivan Nejgebauer)*
  12314. * Ugly workaround to get s_client and s_server working under Windows. The
  12315. old code wouldn't work because it needed to select() on sockets and the
  12316. tty (for keypresses and to see if data could be written). Win32 only
  12317. supports select() on sockets so we select() with a 1s timeout on the
  12318. sockets and then see if any characters are waiting to be read, if none
  12319. are present then we retry, we also assume we can always write data to
  12320. the tty. This isn't nice because the code then blocks until we've
  12321. received a complete line of data and it is effectively polling the
  12322. keyboard at 1s intervals: however it's quite a bit better than not
  12323. working at all :-) A dedicated Windows application might handle this
  12324. with an event loop for example.
  12325. *Steve Henson*
  12326. * Enhance RSA_METHOD structure. Now there are two extra methods, rsa_sign
  12327. and rsa_verify. When the RSA_FLAGS_SIGN_VER option is set these functions
  12328. will be called when RSA_sign() and RSA_verify() are used. This is useful
  12329. if rsa_pub_dec() and rsa_priv_enc() equivalents are not available.
  12330. For this to work properly RSA_public_decrypt() and RSA_private_encrypt()
  12331. should *not* be used: RSA_sign() and RSA_verify() must be used instead.
  12332. This necessitated the support of an extra signature type NID_md5_sha1
  12333. for SSL signatures and modifications to the SSL library to use it instead
  12334. of calling RSA_public_decrypt() and RSA_private_encrypt().
  12335. *Steve Henson*
  12336. * Add new -verify -CAfile and -CApath options to the crl program, these
  12337. will lookup a CRL issuers certificate and verify the signature in a
  12338. similar way to the verify program. Tidy up the crl program so it
  12339. no longer accesses structures directly. Make the ASN1 CRL parsing a bit
  12340. less strict. It will now permit CRL extensions even if it is not
  12341. a V2 CRL: this will allow it to tolerate some broken CRLs.
  12342. *Steve Henson*
  12343. * Initialize all non-automatic variables each time one of the openssl
  12344. sub-programs is started (this is necessary as they may be started
  12345. multiple times from the "OpenSSL>" prompt).
  12346. *Lennart Bang, Bodo Moeller*
  12347. * Preliminary compilation option RSA_NULL which disables RSA crypto without
  12348. removing all other RSA functionality (this is what NO_RSA does). This
  12349. is so (for example) those in the US can disable those operations covered
  12350. by the RSA patent while allowing storage and parsing of RSA keys and RSA
  12351. key generation.
  12352. *Steve Henson*
  12353. * Non-copying interface to BIO pairs.
  12354. (still largely untested)
  12355. *Bodo Moeller*
  12356. * New function ASN1_tag2str() to convert an ASN1 tag to a descriptive
  12357. ASCII string. This was handled independently in various places before.
  12358. *Steve Henson*
  12359. * New functions UTF8_getc() and UTF8_putc() that parse and generate
  12360. UTF8 strings a character at a time.
  12361. *Steve Henson*
  12362. * Use client_version from client hello to select the protocol
  12363. (s23_srvr.c) and for RSA client key exchange verification
  12364. (s3_srvr.c), as required by the SSL 3.0/TLS 1.0 specifications.
  12365. *Bodo Moeller*
  12366. * Add various utility functions to handle SPKACs, these were previously
  12367. handled by poking round in the structure internals. Added new function
  12368. NETSCAPE_SPKI_print() to print out SPKAC and a new utility 'spkac' to
  12369. print, verify and generate SPKACs. Based on an original idea from
  12370. Massimiliano Pala <madwolf@comune.modena.it> but extensively modified.
  12371. *Steve Henson*
  12372. * RIPEMD160 is operational on all platforms and is back in 'make test'.
  12373. *Andy Polyakov*
  12374. * Allow the config file extension section to be overwritten on the
  12375. command line. Based on an original idea from Massimiliano Pala
  12376. <madwolf@comune.modena.it>. The new option is called -extensions
  12377. and can be applied to ca, req and x509. Also -reqexts to override
  12378. the request extensions in req and -crlexts to override the crl extensions
  12379. in ca.
  12380. *Steve Henson*
  12381. * Add new feature to the SPKAC handling in ca. Now you can include
  12382. the same field multiple times by preceding it by "XXXX." for example:
  12383. 1.OU="Unit name 1"
  12384. 2.OU="Unit name 2"
  12385. this is the same syntax as used in the req config file.
  12386. *Steve Henson*
  12387. * Allow certificate extensions to be added to certificate requests. These
  12388. are specified in a 'req_extensions' option of the req section of the
  12389. config file. They can be printed out with the -text option to req but
  12390. are otherwise ignored at present.
  12391. *Steve Henson*
  12392. * Fix a horrible bug in enc_read() in crypto/evp/bio_enc.c: if the first
  12393. data read consists of only the final block it would not decrypted because
  12394. EVP_CipherUpdate() would correctly report zero bytes had been decrypted.
  12395. A misplaced 'break' also meant the decrypted final block might not be
  12396. copied until the next read.
  12397. *Steve Henson*
  12398. * Initial support for DH_METHOD. Again based on RSA_METHOD. Also added
  12399. a few extra parameters to the DH structure: these will be useful if
  12400. for example we want the value of 'q' or implement X9.42 DH.
  12401. *Steve Henson*
  12402. * Initial support for DSA_METHOD. This is based on the RSA_METHOD and
  12403. provides hooks that allow the default DSA functions or functions on a
  12404. "per key" basis to be replaced. This allows hardware acceleration and
  12405. hardware key storage to be handled without major modification to the
  12406. library. Also added low-level modexp hooks and CRYPTO_EX structure and
  12407. associated functions.
  12408. *Steve Henson*
  12409. * Add a new flag to memory BIOs, BIO_FLAG_MEM_RDONLY. This marks the BIO
  12410. as "read only": it can't be written to and the buffer it points to will
  12411. not be freed. Reading from a read only BIO is much more efficient than
  12412. a normal memory BIO. This was added because there are several times when
  12413. an area of memory needs to be read from a BIO. The previous method was
  12414. to create a memory BIO and write the data to it, this results in two
  12415. copies of the data and an O(n^2) reading algorithm. There is a new
  12416. function BIO_new_mem_buf() which creates a read only memory BIO from
  12417. an area of memory. Also modified the PKCS#7 routines to use read only
  12418. memory BIOs.
  12419. *Steve Henson*
  12420. * Bugfix: ssl23_get_client_hello did not work properly when called in
  12421. state SSL23_ST_SR_CLNT_HELLO_B, i.e. when the first 7 bytes of
  12422. a SSLv2-compatible client hello for SSLv3 or TLSv1 could be read,
  12423. but a retry condition occurred while trying to read the rest.
  12424. *Bodo Moeller*
  12425. * The PKCS7_ENC_CONTENT_new() function was setting the content type as
  12426. NID_pkcs7_encrypted by default: this was wrong since this should almost
  12427. always be NID_pkcs7_data. Also modified the PKCS7_set_type() to handle
  12428. the encrypted data type: this is a more sensible place to put it and it
  12429. allows the PKCS#12 code to be tidied up that duplicated this
  12430. functionality.
  12431. *Steve Henson*
  12432. * Changed obj_dat.pl script so it takes its input and output files on
  12433. the command line. This should avoid shell escape redirection problems
  12434. under Win32.
  12435. *Steve Henson*
  12436. * Initial support for certificate extension requests, these are included
  12437. in things like Xenroll certificate requests. Included functions to allow
  12438. extensions to be obtained and added.
  12439. *Steve Henson*
  12440. * -crlf option to s_client and s_server for sending newlines as
  12441. CRLF (as required by many protocols).
  12442. *Bodo Moeller*
  12443. ### Changes between 0.9.3a and 0.9.4 [09 Aug 1999]
  12444. * Install libRSAglue.a when OpenSSL is built with RSAref.
  12445. *Ralf S. Engelschall*
  12446. * A few more `#ifndef NO_FP_API / #endif` pairs for consistency.
  12447. *Andrija Antonijevic <TheAntony2@bigfoot.com>*
  12448. * Fix -startdate and -enddate (which was missing) arguments to 'ca'
  12449. program.
  12450. *Steve Henson*
  12451. * New function DSA_dup_DH, which duplicates DSA parameters/keys as
  12452. DH parameters/keys (q is lost during that conversion, but the resulting
  12453. DH parameters contain its length).
  12454. For 1024-bit p, DSA_generate_parameters followed by DSA_dup_DH is
  12455. much faster than DH_generate_parameters (which creates parameters
  12456. where `p = 2*q + 1`), and also the smaller q makes DH computations
  12457. much more efficient (160-bit exponentiation instead of 1024-bit
  12458. exponentiation); so this provides a convenient way to support DHE
  12459. ciphersuites in SSL/TLS servers (see ssl/ssltest.c). It is of
  12460. utter importance to use
  12461. SSL_CTX_set_options(s_ctx, SSL_OP_SINGLE_DH_USE);
  12462. or
  12463. SSL_set_options(s_ctx, SSL_OP_SINGLE_DH_USE);
  12464. when such DH parameters are used, because otherwise small subgroup
  12465. attacks may become possible!
  12466. *Bodo Moeller*
  12467. * Avoid memory leak in i2d_DHparams.
  12468. *Bodo Moeller*
  12469. * Allow the -k option to be used more than once in the enc program:
  12470. this allows the same encrypted message to be read by multiple recipients.
  12471. *Steve Henson*
  12472. * New function OBJ_obj2txt(buf, buf_len, a, no_name), this converts
  12473. an ASN1_OBJECT to a text string. If the "no_name" parameter is set then
  12474. it will always use the numerical form of the OID, even if it has a short
  12475. or long name.
  12476. *Steve Henson*
  12477. * Added an extra RSA flag: RSA_FLAG_EXT_PKEY. Previously the rsa_mod_exp
  12478. method only got called if p,q,dmp1,dmq1,iqmp components were present,
  12479. otherwise bn_mod_exp was called. In the case of hardware keys for example
  12480. no private key components need be present and it might store extra data
  12481. in the RSA structure, which cannot be accessed from bn_mod_exp.
  12482. By setting RSA_FLAG_EXT_PKEY rsa_mod_exp will always be called for
  12483. private key operations.
  12484. *Steve Henson*
  12485. * Added support for SPARC Linux.
  12486. *Andy Polyakov*
  12487. * pem_password_cb function type incompatibly changed from
  12488. typedef int pem_password_cb(char *buf, int size, int rwflag);
  12489. to
  12490. ....(char *buf, int size, int rwflag, void *userdata);
  12491. so that applications can pass data to their callbacks:
  12492. The `PEM[_ASN1]_{read,write}...` functions and macros now take an
  12493. additional void * argument, which is just handed through whenever
  12494. the password callback is called.
  12495. *Damien Miller <dmiller@ilogic.com.au>; tiny changes by Bodo Moeller*
  12496. New function SSL_CTX_set_default_passwd_cb_userdata.
  12497. Compatibility note: As many C implementations push function arguments
  12498. onto the stack in reverse order, the new library version is likely to
  12499. interoperate with programs that have been compiled with the old
  12500. pem_password_cb definition (PEM_whatever takes some data that
  12501. happens to be on the stack as its last argument, and the callback
  12502. just ignores this garbage); but there is no guarantee whatsoever that
  12503. this will work.
  12504. * The -DPLATFORM="\"$(PLATFORM)\"" definition and the similar -DCFLAGS=...
  12505. (both in crypto/Makefile.ssl for use by crypto/cversion.c) caused
  12506. problems not only on Windows, but also on some Unix platforms.
  12507. To avoid problematic command lines, these definitions are now in an
  12508. auto-generated file crypto/buildinf.h (created by crypto/Makefile.ssl
  12509. for standard "make" builds, by util/mk1mf.pl for "mk1mf" builds).
  12510. *Bodo Moeller*
  12511. * MIPS III/IV assembler module is reimplemented.
  12512. *Andy Polyakov*
  12513. * More DES library cleanups: remove references to srand/rand and
  12514. delete an unused file.
  12515. *Ulf Möller*
  12516. * Add support for the free Netwide assembler (NASM) under Win32,
  12517. since not many people have MASM (ml) and it can be hard to obtain.
  12518. This is currently experimental but it seems to work OK and pass all
  12519. the tests. Check out INSTALL.W32 for info.
  12520. *Steve Henson*
  12521. * Fix memory leaks in s3_clnt.c: All non-anonymous SSL3/TLS1 connections
  12522. without temporary keys kept an extra copy of the server key,
  12523. and connections with temporary keys did not free everything in case
  12524. of an error.
  12525. *Bodo Moeller*
  12526. * New function RSA_check_key and new openssl rsa option -check
  12527. for verifying the consistency of RSA keys.
  12528. *Ulf Moeller, Bodo Moeller*
  12529. * Various changes to make Win32 compile work:
  12530. 1. Casts to avoid "loss of data" warnings in p5_crpt2.c
  12531. 2. Change unsigned int to int in b_dump.c to avoid "signed/unsigned
  12532. comparison" warnings.
  12533. 3. Add `sk_<TYPE>_sort` to DEF file generator and do make update.
  12534. *Steve Henson*
  12535. * Add a debugging option to PKCS#5 v2 key generation function: when
  12536. you #define DEBUG_PKCS5V2 passwords, salts, iteration counts and
  12537. derived keys are printed to stderr.
  12538. *Steve Henson*
  12539. * Copy the flags in ASN1_STRING_dup().
  12540. *Roman E. Pavlov <pre@mo.msk.ru>*
  12541. * The x509 application mishandled signing requests containing DSA
  12542. keys when the signing key was also DSA and the parameters didn't match.
  12543. It was supposed to omit the parameters when they matched the signing key:
  12544. the verifying software was then supposed to automatically use the CA's
  12545. parameters if they were absent from the end user certificate.
  12546. Omitting parameters is no longer recommended. The test was also
  12547. the wrong way round! This was probably due to unusual behaviour in
  12548. EVP_cmp_parameters() which returns 1 if the parameters match.
  12549. This meant that parameters were omitted when they *didn't* match and
  12550. the certificate was useless. Certificates signed with 'ca' didn't have
  12551. this bug.
  12552. *Steve Henson, reported by Doug Erickson <Doug.Erickson@Part.NET>*
  12553. * Memory leak checking (-DCRYPTO_MDEBUG) had some problems.
  12554. The interface is as follows:
  12555. Applications can use
  12556. CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON) aka MemCheck_start(),
  12557. CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF) aka MemCheck_stop();
  12558. "off" is now the default.
  12559. The library internally uses
  12560. CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE) aka MemCheck_off(),
  12561. CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE) aka MemCheck_on()
  12562. to disable memory-checking temporarily.
  12563. Some inconsistent states that previously were possible (and were
  12564. even the default) are now avoided.
  12565. -DCRYPTO_MDEBUG_TIME is new and additionally stores the current time
  12566. with each memory chunk allocated; this is occasionally more helpful
  12567. than just having a counter.
  12568. -DCRYPTO_MDEBUG_THREAD is also new and adds the thread ID.
  12569. -DCRYPTO_MDEBUG_ALL enables all of the above, plus any future
  12570. extensions.
  12571. *Bodo Moeller*
  12572. * Introduce "mode" for SSL structures (with defaults in SSL_CTX),
  12573. which largely parallels "options", but is for changing API behaviour,
  12574. whereas "options" are about protocol behaviour.
  12575. Initial "mode" flags are:
  12576. SSL_MODE_ENABLE_PARTIAL_WRITE Allow SSL_write to report success when
  12577. a single record has been written.
  12578. SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER Don't insist that SSL_write
  12579. retries use the same buffer location.
  12580. (But all of the contents must be
  12581. copied!)
  12582. *Bodo Moeller*
  12583. * Bugfix: SSL_set_options ignored its parameter, only SSL_CTX_set_options
  12584. worked.
  12585. * Fix problems with no-hmac etc.
  12586. *Ulf Möller, pointed out by Brian Wellington <bwelling@tislabs.com>*
  12587. * New functions RSA_get_default_method(), RSA_set_method() and
  12588. RSA_get_method(). These allows replacement of RSA_METHODs without having
  12589. to mess around with the internals of an RSA structure.
  12590. *Steve Henson*
  12591. * Fix memory leaks in DSA_do_sign and DSA_is_prime.
  12592. Also really enable memory leak checks in openssl.c and in some
  12593. test programs.
  12594. *Chad C. Mulligan, Bodo Moeller*
  12595. * Fix a bug in d2i_ASN1_INTEGER() and i2d_ASN1_INTEGER() which can mess
  12596. up the length of negative integers. This has now been simplified to just
  12597. store the length when it is first determined and use it later, rather
  12598. than trying to keep track of where data is copied and updating it to
  12599. point to the end.
  12600. *Steve Henson, reported by Brien Wheeler <bwheeler@authentica-security.com>*
  12601. * Add a new function PKCS7_signatureVerify. This allows the verification
  12602. of a PKCS#7 signature but with the signing certificate passed to the
  12603. function itself. This contrasts with PKCS7_dataVerify which assumes the
  12604. certificate is present in the PKCS#7 structure. This isn't always the
  12605. case: certificates can be omitted from a PKCS#7 structure and be
  12606. distributed by "out of band" means (such as a certificate database).
  12607. *Steve Henson*
  12608. * Complete the `PEM_*` macros with DECLARE_PEM versions to replace the
  12609. function prototypes in pem.h, also change util/mkdef.pl to add the
  12610. necessary function names.
  12611. *Steve Henson*
  12612. * mk1mf.pl (used by Windows builds) did not properly read the
  12613. options set by Configure in the top level Makefile, and Configure
  12614. was not even able to write more than one option correctly.
  12615. Fixed, now "no-idea no-rc5 -DCRYPTO_MDEBUG" etc. works as intended.
  12616. *Bodo Moeller*
  12617. * New functions CONF_load_bio() and CONF_load_fp() to allow a config
  12618. file to be loaded from a BIO or FILE pointer. The BIO version will
  12619. for example allow memory BIOs to contain config info.
  12620. *Steve Henson*
  12621. * New function "CRYPTO_num_locks" that returns CRYPTO_NUM_LOCKS.
  12622. Whoever hopes to achieve shared-library compatibility across versions
  12623. must use this, not the compile-time macro.
  12624. (Exercise 0.9.4: Which is the minimum library version required by
  12625. such programs?)
  12626. Note: All this applies only to multi-threaded programs, others don't
  12627. need locks.
  12628. *Bodo Moeller*
  12629. * Add missing case to s3_clnt.c state machine -- one of the new SSL tests
  12630. through a BIO pair triggered the default case, i.e.
  12631. SSLerr(...,SSL_R_UNKNOWN_STATE).
  12632. *Bodo Moeller*
  12633. * New "BIO pair" concept (crypto/bio/bss_bio.c) so that applications
  12634. can use the SSL library even if none of the specific BIOs is
  12635. appropriate.
  12636. *Bodo Moeller*
  12637. * Fix a bug in i2d_DSAPublicKey() which meant it returned the wrong value
  12638. for the encoded length.
  12639. *Jeon KyoungHo <khjeon@sds.samsung.co.kr>*
  12640. * Add initial documentation of the X509V3 functions.
  12641. *Steve Henson*
  12642. * Add a new pair of functions PEM_write_PKCS8PrivateKey() and
  12643. PEM_write_bio_PKCS8PrivateKey() that are equivalent to
  12644. PEM_write_PrivateKey() and PEM_write_bio_PrivateKey() but use the more
  12645. secure PKCS#8 private key format with a high iteration count.
  12646. *Steve Henson*
  12647. * Fix determination of Perl interpreter: A perl or perl5
  12648. *directory* in $PATH was also accepted as the interpreter.
  12649. *Ralf S. Engelschall*
  12650. * Fix demos/sign/sign.c: well there wasn't anything strictly speaking
  12651. wrong with it but it was very old and did things like calling
  12652. PEM_ASN1_read() directly and used MD5 for the hash not to mention some
  12653. unusual formatting.
  12654. *Steve Henson*
  12655. * Fix demos/selfsign.c: it used obsolete and deleted functions, changed
  12656. to use the new extension code.
  12657. *Steve Henson*
  12658. * Implement the PEM_read/PEM_write functions in crypto/pem/pem_all.c
  12659. with macros. This should make it easier to change their form, add extra
  12660. arguments etc. Fix a few PEM prototypes which didn't have cipher as a
  12661. constant.
  12662. *Steve Henson*
  12663. * Add to configuration table a new entry that can specify an alternative
  12664. name for unistd.h (for pre-POSIX systems); we need this for NeXTstep,
  12665. according to Mark Crispin <MRC@Panda.COM>.
  12666. *Bodo Moeller*
  12667. * DES CBC did not update the IV. Weird.
  12668. *Ben Laurie*
  12669. lse
  12670. des_cbc_encrypt does not update the IV, but des_ncbc_encrypt does.
  12671. Changing the behaviour of the former might break existing programs --
  12672. where IV updating is needed, des_ncbc_encrypt can be used.
  12673. ndif
  12674. * When bntest is run from "make test" it drives bc to check its
  12675. calculations, as well as internally checking them. If an internal check
  12676. fails, it needs to cause bc to give a non-zero result or make test carries
  12677. on without noticing the failure. Fixed.
  12678. *Ben Laurie*
  12679. * DES library cleanups.
  12680. *Ulf Möller*
  12681. * Add support for PKCS#5 v2.0 PBE algorithms. This will permit PKCS#8 to be
  12682. used with any cipher unlike PKCS#5 v1.5 which can at most handle 64 bit
  12683. ciphers. NOTE: although the key derivation function has been verified
  12684. against some published test vectors it has not been extensively tested
  12685. yet. Added a -v2 "cipher" option to pkcs8 application to allow the use
  12686. of v2.0.
  12687. *Steve Henson*
  12688. * Instead of "mkdir -p", which is not fully portable, use new
  12689. Perl script "util/mkdir-p.pl".
  12690. *Bodo Moeller*
  12691. * Rewrite the way password based encryption (PBE) is handled. It used to
  12692. assume that the ASN1 AlgorithmIdentifier parameter was a PBEParameter
  12693. structure. This was true for the PKCS#5 v1.5 and PKCS#12 PBE algorithms
  12694. but doesn't apply to PKCS#5 v2.0 where it can be something else. Now
  12695. the 'parameter' field of the AlgorithmIdentifier is passed to the
  12696. underlying key generation function so it must do its own ASN1 parsing.
  12697. This has also changed the EVP_PBE_CipherInit() function which now has a
  12698. 'parameter' argument instead of literal salt and iteration count values
  12699. and the function EVP_PBE_ALGOR_CipherInit() has been deleted.
  12700. *Steve Henson*
  12701. * Support for PKCS#5 v1.5 compatible password based encryption algorithms
  12702. and PKCS#8 functionality. New 'pkcs8' application linked to openssl.
  12703. Needed to change the PEM_STRING_EVP_PKEY value which was just "PRIVATE
  12704. KEY" because this clashed with PKCS#8 unencrypted string. Since this
  12705. value was just used as a "magic string" and not used directly its
  12706. value doesn't matter.
  12707. *Steve Henson*
  12708. * Introduce some semblance of const correctness to BN. Shame C doesn't
  12709. support mutable.
  12710. *Ben Laurie*
  12711. * "linux-sparc64" configuration (ultrapenguin).
  12712. *Ray Miller <ray.miller@oucs.ox.ac.uk>*
  12713. "linux-sparc" configuration.
  12714. *Christian Forster <fo@hawo.stw.uni-erlangen.de>*
  12715. * config now generates no-xxx options for missing ciphers.
  12716. *Ulf Möller*
  12717. * Support the EBCDIC character set (work in progress).
  12718. File ebcdic.c not yet included because it has a different license.
  12719. *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>*
  12720. * Support BS2000/OSD-POSIX.
  12721. *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>*
  12722. * Make callbacks for key generation use `void *` instead of `char *`.
  12723. *Ben Laurie*
  12724. * Make S/MIME samples compile (not yet tested).
  12725. *Ben Laurie*
  12726. * Additional typesafe stacks.
  12727. *Ben Laurie*
  12728. * New configuration variants "bsdi-elf-gcc" (BSD/OS 4.x).
  12729. *Bodo Moeller*
  12730. ### Changes between 0.9.3 and 0.9.3a [29 May 1999]
  12731. * New configuration variant "sco5-gcc".
  12732. * Updated some demos.
  12733. *Sean O Riordain, Wade Scholine*
  12734. * Add missing BIO_free at exit of pkcs12 application.
  12735. *Wu Zhigang*
  12736. * Fix memory leak in conf.c.
  12737. *Steve Henson*
  12738. * Updates for Win32 to assembler version of MD5.
  12739. *Steve Henson*
  12740. * Set #! path to perl in `apps/der_chop` to where we found it
  12741. instead of using a fixed path.
  12742. *Bodo Moeller*
  12743. * SHA library changes for irix64-mips4-cc.
  12744. *Andy Polyakov*
  12745. * Improvements for VMS support.
  12746. *Richard Levitte*
  12747. ### Changes between 0.9.2b and 0.9.3 [24 May 1999]
  12748. * Bignum library bug fix. IRIX 6 passes "make test" now!
  12749. This also avoids the problems with SC4.2 and unpatched SC5.
  12750. *Andy Polyakov <appro@fy.chalmers.se>*
  12751. * New functions sk_num, sk_value and sk_set to replace the previous macros.
  12752. These are required because of the typesafe stack would otherwise break
  12753. existing code. If old code used a structure member which used to be STACK
  12754. and is now STACK_OF (for example cert in a PKCS7_SIGNED structure) with
  12755. sk_num or sk_value it would produce an error because the num, data members
  12756. are not present in STACK_OF. Now it just produces a warning. sk_set
  12757. replaces the old method of assigning a value to sk_value
  12758. (e.g. sk_value(x, i) = y) which the library used in a few cases. Any code
  12759. that does this will no longer work (and should use sk_set instead) but
  12760. this could be regarded as a "questionable" behaviour anyway.
  12761. *Steve Henson*
  12762. * Fix most of the other PKCS#7 bugs. The "experimental" code can now
  12763. correctly handle encrypted S/MIME data.
  12764. *Steve Henson*
  12765. * Change type of various DES function arguments from des_cblock
  12766. (which means, in function argument declarations, pointer to char)
  12767. to des_cblock * (meaning pointer to array with 8 char elements),
  12768. which allows the compiler to do more typechecking; it was like
  12769. that back in SSLeay, but with lots of ugly casts.
  12770. Introduce new type const_des_cblock.
  12771. *Bodo Moeller*
  12772. * Reorganise the PKCS#7 library and get rid of some of the more obvious
  12773. problems: find RecipientInfo structure that matches recipient certificate
  12774. and initialise the ASN1 structures properly based on passed cipher.
  12775. *Steve Henson*
  12776. * Belatedly make the BN tests actually check the results.
  12777. *Ben Laurie*
  12778. * Fix the encoding and decoding of negative ASN1 INTEGERS and conversion
  12779. to and from BNs: it was completely broken. New compilation option
  12780. NEG_PUBKEY_BUG to allow for some broken certificates that encode public
  12781. key elements as negative integers.
  12782. *Steve Henson*
  12783. * Reorganize and speed up MD5.
  12784. *Andy Polyakov <appro@fy.chalmers.se>*
  12785. * VMS support.
  12786. *Richard Levitte <richard@levitte.org>*
  12787. * New option -out to asn1parse to allow the parsed structure to be
  12788. output to a file. This is most useful when combined with the -strparse
  12789. option to examine the output of things like OCTET STRINGS.
  12790. *Steve Henson*
  12791. * Make SSL library a little more fool-proof by not requiring any longer
  12792. that `SSL_set_{accept,connect}_state` be called before
  12793. `SSL_{accept,connect}` may be used (`SSL_set_..._state` is omitted
  12794. in many applications because usually everything *appeared* to work as
  12795. intended anyway -- now it really works as intended).
  12796. *Bodo Moeller*
  12797. * Move openssl.cnf out of lib/.
  12798. *Ulf Möller*
  12799. * Fix various things to let OpenSSL even pass "egcc -pipe -O2 -Wall
  12800. -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes
  12801. -Wmissing-declarations -Wnested-externs -Winline" with EGCS 1.1.2+
  12802. *Ralf S. Engelschall*
  12803. * Various fixes to the EVP and PKCS#7 code. It may now be able to
  12804. handle PKCS#7 enveloped data properly.
  12805. *Sebastian Akerman <sak@parallelconsulting.com>, modified by Steve*
  12806. * Create a duplicate of the SSL_CTX's CERT in SSL_new instead of
  12807. copying pointers. The cert_st handling is changed by this in
  12808. various ways (and thus what used to be known as ctx->default_cert
  12809. is now called ctx->cert, since we don't resort to `s->ctx->[default_]cert`
  12810. any longer when s->cert does not give us what we need).
  12811. ssl_cert_instantiate becomes obsolete by this change.
  12812. As soon as we've got the new code right (possibly it already is?),
  12813. we have solved a couple of bugs of the earlier code where s->cert
  12814. was used as if it could not have been shared with other SSL structures.
  12815. Note that using the SSL API in certain dirty ways now will result
  12816. in different behaviour than observed with earlier library versions:
  12817. Changing settings for an `SSL_CTX *ctx` after having done s = SSL_new(ctx)
  12818. does not influence s as it used to.
  12819. In order to clean up things more thoroughly, inside SSL_SESSION
  12820. we don't use CERT any longer, but a new structure SESS_CERT
  12821. that holds per-session data (if available); currently, this is
  12822. the peer's certificate chain and, for clients, the server's certificate
  12823. and temporary key. CERT holds only those values that can have
  12824. meaningful defaults in an SSL_CTX.
  12825. *Bodo Moeller*
  12826. * New function X509V3_EXT_i2d() to create an X509_EXTENSION structure
  12827. from the internal representation. Various PKCS#7 fixes: remove some
  12828. evil casts and set the enc_dig_alg field properly based on the signing
  12829. key type.
  12830. *Steve Henson*
  12831. * Allow PKCS#12 password to be set from the command line or the
  12832. environment. Let 'ca' get its config file name from the environment
  12833. variables "OPENSSL_CONF" or "SSLEAY_CONF" (for consistency with 'req'
  12834. and 'x509').
  12835. *Steve Henson*
  12836. * Allow certificate policies extension to use an IA5STRING for the
  12837. organization field. This is contrary to the PKIX definition but
  12838. VeriSign uses it and IE5 only recognises this form. Document 'x509'
  12839. extension option.
  12840. *Steve Henson*
  12841. * Add PEDANTIC compiler flag to allow compilation with gcc -pedantic,
  12842. without disallowing inline assembler and the like for non-pedantic builds.
  12843. *Ben Laurie*
  12844. * Support Borland C++ builder.
  12845. *Janez Jere <jj@void.si>, modified by Ulf Möller*
  12846. * Support Mingw32.
  12847. *Ulf Möller*
  12848. * SHA-1 cleanups and performance enhancements.
  12849. *Andy Polyakov <appro@fy.chalmers.se>*
  12850. * Sparc v8plus assembler for the bignum library.
  12851. *Andy Polyakov <appro@fy.chalmers.se>*
  12852. * Accept any -xxx and +xxx compiler options in Configure.
  12853. *Ulf Möller*
  12854. * Update HPUX configuration.
  12855. *Anonymous*
  12856. * Add missing `sk_<type>_unshift()` function to safestack.h
  12857. *Ralf S. Engelschall*
  12858. * New function SSL_CTX_use_certificate_chain_file that sets the
  12859. "extra_cert"s in addition to the certificate. (This makes sense
  12860. only for "PEM" format files, as chains as a whole are not
  12861. DER-encoded.)
  12862. *Bodo Moeller*
  12863. * Support verify_depth from the SSL API.
  12864. x509_vfy.c had what can be considered an off-by-one-error:
  12865. Its depth (which was not part of the external interface)
  12866. was actually counting the number of certificates in a chain;
  12867. now it really counts the depth.
  12868. *Bodo Moeller*
  12869. * Bugfix in crypto/x509/x509_cmp.c: The SSLerr macro was used
  12870. instead of X509err, which often resulted in confusing error
  12871. messages since the error codes are not globally unique
  12872. (e.g. an alleged error in ssl3_accept when a certificate
  12873. didn't match the private key).
  12874. * New function SSL_CTX_set_session_id_context that allows to set a default
  12875. value (so that you don't need SSL_set_session_id_context for each
  12876. connection using the SSL_CTX).
  12877. *Bodo Moeller*
  12878. * OAEP decoding bug fix.
  12879. *Ulf Möller*
  12880. * Support INSTALL_PREFIX for package builders, as proposed by
  12881. David Harris.
  12882. *Bodo Moeller*
  12883. * New Configure options "threads" and "no-threads". For systems
  12884. where the proper compiler options are known (currently Solaris
  12885. and Linux), "threads" is the default.
  12886. *Bodo Moeller*
  12887. * New script util/mklink.pl as a faster substitute for util/mklink.sh.
  12888. *Bodo Moeller*
  12889. * Install various scripts to $(OPENSSLDIR)/misc, not to
  12890. $(INSTALLTOP)/bin -- they shouldn't clutter directories
  12891. such as /usr/local/bin.
  12892. *Bodo Moeller*
  12893. * "make linux-shared" to build shared libraries.
  12894. *Niels Poppe <niels@netbox.org>*
  12895. * New Configure option `no-<cipher>` (rsa, idea, rc5, ...).
  12896. *Ulf Möller*
  12897. * Add the PKCS#12 API documentation to openssl.txt. Preliminary support for
  12898. extension adding in x509 utility.
  12899. *Steve Henson*
  12900. * Remove NOPROTO sections and error code comments.
  12901. *Ulf Möller*
  12902. * Partial rewrite of the DEF file generator to now parse the ANSI
  12903. prototypes.
  12904. *Steve Henson*
  12905. * New Configure options --prefix=DIR and --openssldir=DIR.
  12906. *Ulf Möller*
  12907. * Complete rewrite of the error code script(s). It is all now handled
  12908. by one script at the top level which handles error code gathering,
  12909. header rewriting and C source file generation. It should be much better
  12910. than the old method: it now uses a modified version of Ulf's parser to
  12911. read the ANSI prototypes in all header files (thus the old K&R definitions
  12912. aren't needed for error creation any more) and do a better job of
  12913. translating function codes into names. The old 'ASN1 error code embedded
  12914. in a comment' is no longer necessary and it doesn't use .err files which
  12915. have now been deleted. Also the error code call doesn't have to appear all
  12916. on one line (which resulted in some large lines...).
  12917. *Steve Henson*
  12918. * Change #include filenames from `<foo.h>` to `<openssl/foo.h>`.
  12919. *Bodo Moeller*
  12920. * Change behaviour of ssl2_read when facing length-0 packets: Don't return
  12921. 0 (which usually indicates a closed connection), but continue reading.
  12922. *Bodo Moeller*
  12923. * Fix some race conditions.
  12924. *Bodo Moeller*
  12925. * Add support for CRL distribution points extension. Add Certificate
  12926. Policies and CRL distribution points documentation.
  12927. *Steve Henson*
  12928. * Move the autogenerated header file parts to crypto/opensslconf.h.
  12929. *Ulf Möller*
  12930. * Fix new 56-bit DES export ciphersuites: they were using 7 bytes instead of
  12931. 8 of keying material. Merlin has also confirmed interop with this fix
  12932. between OpenSSL and Baltimore C/SSL 2.0 and J/SSL 2.0.
  12933. *Merlin Hughes <merlin@baltimore.ie>*
  12934. * Fix lots of warnings.
  12935. *Richard Levitte <levitte@stacken.kth.se>*
  12936. * In add_cert_dir() in crypto/x509/by_dir.c, break out of the loop if
  12937. the directory spec didn't end with a LIST_SEPARATOR_CHAR.
  12938. *Richard Levitte <levitte@stacken.kth.se>*
  12939. * Fix problems with sizeof(long) == 8.
  12940. *Andy Polyakov <appro@fy.chalmers.se>*
  12941. * Change functions to ANSI C.
  12942. *Ulf Möller*
  12943. * Fix typos in error codes.
  12944. *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>, Ulf Möller*
  12945. * Remove defunct assembler files from Configure.
  12946. *Ulf Möller*
  12947. * SPARC v8 assembler BIGNUM implementation.
  12948. *Andy Polyakov <appro@fy.chalmers.se>*
  12949. * Support for Certificate Policies extension: both print and set.
  12950. Various additions to support the r2i method this uses.
  12951. *Steve Henson*
  12952. * A lot of constification, and fix a bug in X509_NAME_oneline() that could
  12953. return a const string when you are expecting an allocated buffer.
  12954. *Ben Laurie*
  12955. * Add support for ASN1 types UTF8String and VISIBLESTRING, also the CHOICE
  12956. types DirectoryString and DisplayText.
  12957. *Steve Henson*
  12958. * Add code to allow r2i extensions to access the configuration database,
  12959. add an LHASH database driver and add several ctx helper functions.
  12960. *Steve Henson*
  12961. * Fix an evil bug in bn_expand2() which caused various BN functions to
  12962. fail when they extended the size of a BIGNUM.
  12963. *Steve Henson*
  12964. * Various utility functions to handle SXNet extension. Modify mkdef.pl to
  12965. support typesafe stack.
  12966. *Steve Henson*
  12967. * Fix typo in SSL_[gs]et_options().
  12968. *Nils Frostberg <nils@medcom.se>*
  12969. * Delete various functions and files that belonged to the (now obsolete)
  12970. old X509V3 handling code.
  12971. *Steve Henson*
  12972. * New Configure option "rsaref".
  12973. *Ulf Möller*
  12974. * Don't auto-generate pem.h.
  12975. *Bodo Moeller*
  12976. * Introduce type-safe ASN.1 SETs.
  12977. *Ben Laurie*
  12978. * Convert various additional casted stacks to type-safe STACK_OF() variants.
  12979. *Ben Laurie, Ralf S. Engelschall, Steve Henson*
  12980. * Introduce type-safe STACKs. This will almost certainly break lots of code
  12981. that links with OpenSSL (well at least cause lots of warnings), but fear
  12982. not: the conversion is trivial, and it eliminates loads of evil casts. A
  12983. few STACKed things have been converted already. Feel free to convert more.
  12984. In the fullness of time, I'll do away with the STACK type altogether.
  12985. *Ben Laurie*
  12986. * Add `openssl ca -revoke <certfile>` facility which revokes a certificate
  12987. specified in `<certfile>` by updating the entry in the index.txt file.
  12988. This way one no longer has to edit the index.txt file manually for
  12989. revoking a certificate. The -revoke option does the gory details now.
  12990. *Massimiliano Pala <madwolf@openca.org>, Ralf S. Engelschall*
  12991. * Fix `openssl crl -noout -text` combination where `-noout` killed the
  12992. `-text` option at all and this way the `-noout -text` combination was
  12993. inconsistent in `openssl crl` with the friends in `openssl x509|rsa|dsa`.
  12994. *Ralf S. Engelschall*
  12995. * Make sure a corresponding plain text error message exists for the
  12996. X509_V_ERR_CERT_REVOKED/23 error number which can occur when a
  12997. verify callback function determined that a certificate was revoked.
  12998. *Ralf S. Engelschall*
  12999. * Bugfix: In test/testenc, don't test `openssl <cipher>` for
  13000. ciphers that were excluded, e.g. by -DNO_IDEA. Also, test
  13001. all available ciphers including rc5, which was forgotten until now.
  13002. In order to let the testing shell script know which algorithms
  13003. are available, a new (up to now undocumented) command
  13004. `openssl list-cipher-commands` is used.
  13005. *Bodo Moeller*
  13006. * Bugfix: s_client occasionally would sleep in select() when
  13007. it should have checked SSL_pending() first.
  13008. *Bodo Moeller*
  13009. * New functions DSA_do_sign and DSA_do_verify to provide access to
  13010. the raw DSA values prior to ASN.1 encoding.
  13011. *Ulf Möller*
  13012. * Tweaks to Configure
  13013. *Niels Poppe <niels@netbox.org>*
  13014. * Add support for PKCS#5 v2.0 ASN1 PBES2 structures. No other support,
  13015. yet...
  13016. *Steve Henson*
  13017. * New variables $(RANLIB) and $(PERL) in the Makefiles.
  13018. *Ulf Möller*
  13019. * New config option to avoid instructions that are illegal on the 80386.
  13020. The default code is faster, but requires at least a 486.
  13021. *Ulf Möller*
  13022. * Got rid of old SSL2_CLIENT_VERSION (inconsistently used) and
  13023. SSL2_SERVER_VERSION (not used at all) macros, which are now the
  13024. same as SSL2_VERSION anyway.
  13025. *Bodo Moeller*
  13026. * New "-showcerts" option for s_client.
  13027. *Bodo Moeller*
  13028. * Still more PKCS#12 integration. Add pkcs12 application to openssl
  13029. application. Various cleanups and fixes.
  13030. *Steve Henson*
  13031. * More PKCS#12 integration. Add new pkcs12 directory with Makefile.ssl and
  13032. modify error routines to work internally. Add error codes and PBE init
  13033. to library startup routines.
  13034. *Steve Henson*
  13035. * Further PKCS#12 integration. Added password based encryption, PKCS#8 and
  13036. packing functions to asn1 and evp. Changed function names and error
  13037. codes along the way.
  13038. *Steve Henson*
  13039. * PKCS12 integration: and so it begins... First of several patches to
  13040. slowly integrate PKCS#12 functionality into OpenSSL. Add PKCS#12
  13041. objects to objects.h
  13042. *Steve Henson*
  13043. * Add a new 'indent' option to some X509V3 extension code. Initial ASN1
  13044. and display support for Thawte strong extranet extension.
  13045. *Steve Henson*
  13046. * Add LinuxPPC support.
  13047. *Jeff Dubrule <igor@pobox.org>*
  13048. * Get rid of redundant BN file bn_mulw.c, and rename bn_div64 to
  13049. bn_div_words in alpha.s.
  13050. *Hannes Reinecke <H.Reinecke@hw.ac.uk> and Ben Laurie*
  13051. * Make sure the RSA OAEP test is skipped under -DRSAref because
  13052. OAEP isn't supported when OpenSSL is built with RSAref.
  13053. *Ulf Moeller <ulf@fitug.de>*
  13054. * Move definitions of IS_SET/IS_SEQUENCE inside crypto/asn1/asn1.h
  13055. so they no longer are missing under -DNOPROTO.
  13056. *Soren S. Jorvang <soren@t.dk>*
  13057. ### Changes between 0.9.1c and 0.9.2b [22 Mar 1999]
  13058. * Make SSL_get_peer_cert_chain() work in servers. Unfortunately, it still
  13059. doesn't work when the session is reused. Coming soon!
  13060. *Ben Laurie*
  13061. * Fix a security hole, that allows sessions to be reused in the wrong
  13062. context thus bypassing client cert protection! All software that uses
  13063. client certs and session caches in multiple contexts NEEDS PATCHING to
  13064. allow session reuse! A fuller solution is in the works.
  13065. *Ben Laurie, problem pointed out by Holger Reif, Bodo Moeller (and ???)*
  13066. * Some more source tree cleanups (removed obsolete files
  13067. crypto/bf/asm/bf586.pl, test/test.txt and crypto/sha/asm/f.s; changed
  13068. permission on "config" script to be executable) and a fix for the INSTALL
  13069. document.
  13070. *Ulf Moeller <ulf@fitug.de>*
  13071. * Remove some legacy and erroneous uses of malloc, free instead of
  13072. Malloc, Free.
  13073. *Lennart Bang <lob@netstream.se>, with minor changes by Steve*
  13074. * Make rsa_oaep_test return non-zero on error.
  13075. *Ulf Moeller <ulf@fitug.de>*
  13076. * Add support for native Solaris shared libraries. Configure
  13077. solaris-sparc-sc4-pic, make, then run shlib/solaris-sc4.sh. It'd be nice
  13078. if someone would make that last step automatic.
  13079. *Matthias Loepfe <Matthias.Loepfe@AdNovum.CH>*
  13080. * ctx_size was not built with the right compiler during "make links". Fixed.
  13081. *Ben Laurie*
  13082. * Change the meaning of 'ALL' in the cipher list. It now means "everything
  13083. except NULL ciphers". This means the default cipher list will no longer
  13084. enable NULL ciphers. They need to be specifically enabled e.g. with
  13085. the string "DEFAULT:eNULL".
  13086. *Steve Henson*
  13087. * Fix to RSA private encryption routines: if p < q then it would
  13088. occasionally produce an invalid result. This will only happen with
  13089. externally generated keys because OpenSSL (and SSLeay) ensure p > q.
  13090. *Steve Henson*
  13091. * Be less restrictive and allow also `perl util/perlpath.pl
  13092. /path/to/bin/perl` in addition to `perl util/perlpath.pl /path/to/bin`,
  13093. because this way one can also use an interpreter named `perl5` (which is
  13094. usually the name of Perl 5.xxx on platforms where an Perl 4.x is still
  13095. installed as `perl`).
  13096. *Matthias Loepfe <Matthias.Loepfe@adnovum.ch>*
  13097. * Let util/clean-depend.pl work also with older Perl 5.00x versions.
  13098. *Matthias Loepfe <Matthias.Loepfe@adnovum.ch>*
  13099. * Fix Makefile.org so CC,CFLAG etc are passed to 'make links' add
  13100. advapi32.lib to Win32 build and change the pem test comparison
  13101. to fc.exe (thanks to Ulrich Kroener <kroneru@yahoo.com> for the
  13102. suggestion). Fix misplaced ASNI prototypes and declarations in evp.h
  13103. and crypto/des/ede_cbcm_enc.c.
  13104. *Steve Henson*
  13105. * DES quad checksum was broken on big-endian architectures. Fixed.
  13106. *Ben Laurie*
  13107. * Comment out two functions in bio.h that aren't implemented. Fix up the
  13108. Win32 test batch file so it (might) work again. The Win32 test batch file
  13109. is horrible: I feel ill....
  13110. *Steve Henson*
  13111. * Move various #ifdefs around so NO_SYSLOG, NO_DIRENT etc are now selected
  13112. in e_os.h. Audit of header files to check ANSI and non ANSI
  13113. sections: 10 functions were absent from non ANSI section and not exported
  13114. from Windows DLLs. Fixed up libeay.num for new functions.
  13115. *Steve Henson*
  13116. * Make `openssl version` output lines consistent.
  13117. *Ralf S. Engelschall*
  13118. * Fix Win32 symbol export lists for BIO functions: Added
  13119. BIO_get_ex_new_index, BIO_get_ex_num, BIO_get_ex_data and BIO_set_ex_data
  13120. to ms/libeay{16,32}.def.
  13121. *Ralf S. Engelschall*
  13122. * Second round of fixing the OpenSSL perl/ stuff. It now at least compiled
  13123. fine under Unix and passes some trivial tests I've now added. But the
  13124. whole stuff is horribly incomplete, so a README.1ST with a disclaimer was
  13125. added to make sure no one expects that this stuff really works in the
  13126. OpenSSL 0.9.2 release. Additionally I've started to clean the XS sources
  13127. up and fixed a few little bugs and inconsistencies in OpenSSL.{pm,xs} and
  13128. openssl_bio.xs.
  13129. *Ralf S. Engelschall*
  13130. * Fix the generation of two part addresses in perl.
  13131. *Kenji Miyake <kenji@miyake.org>, integrated by Ben Laurie*
  13132. * Add config entry for Linux on MIPS.
  13133. *John Tobey <jtobey@channel1.com>*
  13134. * Make links whenever Configure is run, unless we are on Windoze.
  13135. *Ben Laurie*
  13136. * Permit extensions to be added to CRLs using crl_section in openssl.cnf.
  13137. Currently only issuerAltName and AuthorityKeyIdentifier make any sense
  13138. in CRLs.
  13139. *Steve Henson*
  13140. * Add a useful kludge to allow package maintainers to specify compiler and
  13141. other platforms details on the command line without having to patch the
  13142. Configure script every time: One now can use
  13143. `perl Configure <id>:<details>`,
  13144. i.e. platform ids are allowed to have details appended
  13145. to them (separated by colons). This is treated as there would be a static
  13146. pre-configured entry in Configure's %table under key `<id>` with value
  13147. `<details>` and `perl Configure <id>` is called. So, when you want to
  13148. perform a quick test-compile under FreeBSD 3.1 with pgcc and without
  13149. assembler stuff you can use `perl Configure "FreeBSD-elf:pgcc:-O6:::"`
  13150. now, which overrides the FreeBSD-elf entry on-the-fly.
  13151. *Ralf S. Engelschall*
  13152. * Disable new TLS1 ciphersuites by default: they aren't official yet.
  13153. *Ben Laurie*
  13154. * Allow DSO flags like -fpic, -fPIC, -KPIC etc. to be specified
  13155. on the `perl Configure ...` command line. This way one can compile
  13156. OpenSSL libraries with Position Independent Code (PIC) which is needed
  13157. for linking it into DSOs.
  13158. *Ralf S. Engelschall*
  13159. * Remarkably, export ciphers were totally broken and no-one had noticed!
  13160. Fixed.
  13161. *Ben Laurie*
  13162. * Cleaned up the LICENSE document: The official contact for any license
  13163. questions now is the OpenSSL core team under openssl-core@openssl.org.
  13164. And add a paragraph about the dual-license situation to make sure people
  13165. recognize that _BOTH_ the OpenSSL license _AND_ the SSLeay license apply
  13166. to the OpenSSL toolkit.
  13167. *Ralf S. Engelschall*
  13168. * General source tree makefile cleanups: Made `making xxx in yyy...`
  13169. display consistent in the source tree and replaced `/bin/rm` by `rm`.
  13170. Additionally cleaned up the `make links` target: Remove unnecessary
  13171. semicolons, subsequent redundant removes, inline point.sh into mklink.sh
  13172. to speed processing and no longer clutter the display with confusing
  13173. stuff. Instead only the actually done links are displayed.
  13174. *Ralf S. Engelschall*
  13175. * Permit null encryption ciphersuites, used for authentication only. It used
  13176. to be necessary to set the preprocessor define SSL_ALLOW_ENULL to do this.
  13177. It is now necessary to set SSL_FORBID_ENULL to prevent the use of null
  13178. encryption.
  13179. *Ben Laurie*
  13180. * Add a bunch of fixes to the PKCS#7 stuff. It used to sometimes reorder
  13181. signed attributes when verifying signatures (this would break them),
  13182. the detached data encoding was wrong and public keys obtained using
  13183. X509_get_pubkey() weren't freed.
  13184. *Steve Henson*
  13185. * Add text documentation for the BUFFER functions. Also added a work around
  13186. to a Win95 console bug. This was triggered by the password read stuff: the
  13187. last character typed gets carried over to the next fread(). If you were
  13188. generating a new cert request using 'req' for example then the last
  13189. character of the passphrase would be CR which would then enter the first
  13190. field as blank.
  13191. *Steve Henson*
  13192. * Added the new 'Includes OpenSSL Cryptography Software' button as
  13193. doc/openssl_button.{gif,html} which is similar in style to the old SSLeay
  13194. button and can be used by applications based on OpenSSL to show the
  13195. relationship to the OpenSSL project.
  13196. *Ralf S. Engelschall*
  13197. * Remove confusing variables in function signatures in files
  13198. ssl/ssl_lib.c and ssl/ssl.h.
  13199. *Lennart Bong <lob@kulthea.stacken.kth.se>*
  13200. * Don't install bss_file.c under PREFIX/include/
  13201. *Lennart Bong <lob@kulthea.stacken.kth.se>*
  13202. * Get the Win32 compile working again. Modify mkdef.pl so it can handle
  13203. functions that return function pointers and has support for NT specific
  13204. stuff. Fix mk1mf.pl and VC-32.pl to support NT differences also. Various
  13205. #ifdef WIN32 and WINNTs sprinkled about the place and some changes from
  13206. unsigned to signed types: this was killing the Win32 compile.
  13207. *Steve Henson*
  13208. * Add new certificate file to stack functions,
  13209. SSL_add_dir_cert_subjects_to_stack() and
  13210. SSL_add_file_cert_subjects_to_stack(). These largely supplant
  13211. SSL_load_client_CA_file(), and can be used to add multiple certs easily
  13212. to a stack (usually this is then handed to SSL_CTX_set_client_CA_list()).
  13213. This means that Apache-SSL and similar packages don't have to mess around
  13214. to add as many CAs as they want to the preferred list.
  13215. *Ben Laurie*
  13216. * Experiment with doxygen documentation. Currently only partially applied to
  13217. ssl/ssl_lib.c.
  13218. See <http://www.stack.nl/~dimitri/doxygen/index.html>, and run doxygen with
  13219. openssl.doxy as the configuration file.
  13220. *Ben Laurie*
  13221. * Get rid of remaining C++-style comments which strict C compilers hate.
  13222. *Ralf S. Engelschall, pointed out by Carlos Amengual*
  13223. * Changed BN_RECURSION in bn_mont.c to BN_RECURSION_MONT so it is not
  13224. compiled in by default: it has problems with large keys.
  13225. *Steve Henson*
  13226. * Add a bunch of SSL_xxx() functions for configuring the temporary RSA and
  13227. DH private keys and/or callback functions which directly correspond to
  13228. their SSL_CTX_xxx() counterparts but work on a per-connection basis. This
  13229. is needed for applications which have to configure certificates on a
  13230. per-connection basis (e.g. Apache+mod_ssl) instead of a per-context basis
  13231. (e.g. s_server).
  13232. For the RSA certificate situation is makes no difference, but
  13233. for the DSA certificate situation this fixes the "no shared cipher"
  13234. problem where the OpenSSL cipher selection procedure failed because the
  13235. temporary keys were not overtaken from the context and the API provided
  13236. no way to reconfigure them.
  13237. The new functions now let applications reconfigure the stuff and they
  13238. are in detail: SSL_need_tmp_RSA, SSL_set_tmp_rsa, SSL_set_tmp_dh,
  13239. SSL_set_tmp_rsa_callback and SSL_set_tmp_dh_callback. Additionally a new
  13240. non-public-API function ssl_cert_instantiate() is used as a helper
  13241. function and also to reduce code redundancy inside ssl_rsa.c.
  13242. *Ralf S. Engelschall*
  13243. * Move s_server -dcert and -dkey options out of the undocumented feature
  13244. area because they are useful for the DSA situation and should be
  13245. recognized by the users.
  13246. *Ralf S. Engelschall*
  13247. * Fix the cipher decision scheme for export ciphers: the export bits are
  13248. *not* within SSL_MKEY_MASK or SSL_AUTH_MASK, they are within
  13249. SSL_EXP_MASK. So, the original variable has to be used instead of the
  13250. already masked variable.
  13251. *Richard Levitte <levitte@stacken.kth.se>*
  13252. * Fix `port` variable from `int` to `unsigned int` in crypto/bio/b_sock.c
  13253. *Richard Levitte <levitte@stacken.kth.se>*
  13254. * Change type of another md_len variable in pk7_doit.c:PKCS7_dataFinal()
  13255. from `int` to `unsigned int` because it is a length and initialized by
  13256. EVP_DigestFinal() which expects an `unsigned int *`.
  13257. *Richard Levitte <levitte@stacken.kth.se>*
  13258. * Don't hard-code path to Perl interpreter on shebang line of Configure
  13259. script. Instead use the usual Shell->Perl transition trick.
  13260. *Ralf S. Engelschall*
  13261. * Make `openssl x509 -noout -modulus`' functional also for DSA certificates
  13262. (in addition to RSA certificates) to match the behaviour of `openssl dsa
  13263. -noout -modulus` as it's already the case for `openssl rsa -noout
  13264. -modulus`. For RSA the -modulus is the real "modulus" while for DSA
  13265. currently the public key is printed (a decision which was already done by
  13266. `openssl dsa -modulus` in the past) which serves a similar purpose.
  13267. Additionally the NO_RSA no longer completely removes the whole -modulus
  13268. option; it now only avoids using the RSA stuff. Same applies to NO_DSA
  13269. now, too.
  13270. *Ralf S. Engelschall*
  13271. * Add Arne Ansper's reliable BIO - this is an encrypted, block-digested
  13272. BIO. See the source (crypto/evp/bio_ok.c) for more info.
  13273. *Arne Ansper <arne@ats.cyber.ee>*
  13274. * Dump the old yucky req code that tried (and failed) to allow raw OIDs
  13275. to be added. Now both 'req' and 'ca' can use new objects defined in the
  13276. config file.
  13277. *Steve Henson*
  13278. * Add cool BIO that does syslog (or event log on NT).
  13279. *Arne Ansper <arne@ats.cyber.ee>, integrated by Ben Laurie*
  13280. * Add support for new TLS ciphersuites, TLS_RSA_EXPORT56_WITH_RC4_56_MD5,
  13281. TLS_RSA_EXPORT56_WITH_RC2_CBC_56_MD5 and
  13282. TLS_RSA_EXPORT56_WITH_DES_CBC_SHA, as specified in "56-bit Export Cipher
  13283. Suites For TLS", draft-ietf-tls-56-bit-ciphersuites-00.txt.
  13284. *Ben Laurie*
  13285. * Add preliminary config info for new extension code.
  13286. *Steve Henson*
  13287. * Make RSA_NO_PADDING really use no padding.
  13288. *Ulf Moeller <ulf@fitug.de>*
  13289. * Generate errors when private/public key check is done.
  13290. *Ben Laurie*
  13291. * Overhaul for 'crl' utility. New function X509_CRL_print. Partial support
  13292. for some CRL extensions and new objects added.
  13293. *Steve Henson*
  13294. * Really fix the ASN1 IMPLICIT bug this time... Partial support for private
  13295. key usage extension and fuller support for authority key id.
  13296. *Steve Henson*
  13297. * Add OAEP encryption for the OpenSSL crypto library. OAEP is the improved
  13298. padding method for RSA, which is recommended for new applications in PKCS
  13299. #1 v2.0 (RFC 2437, October 1998).
  13300. OAEP (Optimal Asymmetric Encryption Padding) has better theoretical
  13301. foundations than the ad-hoc padding used in PKCS #1 v1.5. It is secure
  13302. against Bleichbacher's attack on RSA.
  13303. *Ulf Moeller <ulf@fitug.de>, reformatted, corrected and integrated by
  13304. Ben Laurie*
  13305. * Updates to the new SSL compression code
  13306. *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)*
  13307. * Fix so that the version number in the master secret, when passed
  13308. via RSA, checks that if TLS was proposed, but we roll back to SSLv3
  13309. (because the server will not accept higher), that the version number
  13310. is 0x03,0x01, not 0x03,0x00
  13311. *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)*
  13312. * Run extensive memory leak checks on SSL commands. Fixed *lots* of memory
  13313. leaks in `ssl/` relating to new `X509_get_pubkey()` behaviour. Also fixes
  13314. in `apps/` and an unrelated leak in `crypto/dsa/dsa_vrf.c`.
  13315. *Steve Henson*
  13316. * Support for RAW extensions where an arbitrary extension can be
  13317. created by including its DER encoding. See `apps/openssl.cnf` for
  13318. an example.
  13319. *Steve Henson*
  13320. * Make sure latest Perl versions don't interpret some generated C array
  13321. code as Perl array code in the crypto/err/err_genc.pl script.
  13322. *Lars Weber <3weber@informatik.uni-hamburg.de>*
  13323. * Modify ms/do_ms.bat to not generate assembly language makefiles since
  13324. not many people have the assembler. Various Win32 compilation fixes and
  13325. update to the INSTALL.W32 file with (hopefully) more accurate Win32
  13326. build instructions.
  13327. *Steve Henson*
  13328. * Modify configure script 'Configure' to automatically create crypto/date.h
  13329. file under Win32 and also build pem.h from pem.org. New script
  13330. util/mkfiles.pl to create the MINFO file on environments that can't do a
  13331. 'make files': perl util/mkfiles.pl >MINFO should work.
  13332. *Steve Henson*
  13333. * Major rework of DES function declarations, in the pursuit of correctness
  13334. and purity. As a result, many evil casts evaporated, and some weirdness,
  13335. too. You may find this causes warnings in your code. Zapping your evil
  13336. casts will probably fix them. Mostly.
  13337. *Ben Laurie*
  13338. * Fix for a typo in asn1.h. Bug fix to object creation script
  13339. obj_dat.pl. It considered a zero in an object definition to mean
  13340. "end of object": none of the objects in objects.h have any zeros
  13341. so it wasn't spotted.
  13342. *Steve Henson, reported by Erwann ABALEA <eabalea@certplus.com>*
  13343. * Add support for Triple DES Cipher Block Chaining with Output Feedback
  13344. Masking (CBCM). In the absence of test vectors, the best I have been able
  13345. to do is check that the decrypt undoes the encrypt, so far. Send me test
  13346. vectors if you have them.
  13347. *Ben Laurie*
  13348. * Correct calculation of key length for export ciphers (too much space was
  13349. allocated for null ciphers). This has not been tested!
  13350. *Ben Laurie*
  13351. * Modifications to the mkdef.pl for Win32 DEF file creation. The usage
  13352. message is now correct (it understands "crypto" and "ssl" on its
  13353. command line). There is also now an "update" option. This will update
  13354. the util/ssleay.num and util/libeay.num files with any new functions.
  13355. If you do a:
  13356. perl util/mkdef.pl crypto ssl update
  13357. it will update them.
  13358. *Steve Henson*
  13359. * Overhauled the Perl interface:
  13360. - ported BN stuff to OpenSSL's different BN library
  13361. - made the perl/ source tree CVS-aware
  13362. - renamed the package from SSLeay to OpenSSL (the files still contain
  13363. their history because I've copied them in the repository)
  13364. - removed obsolete files (the test scripts will be replaced
  13365. by better Test::Harness variants in the future)
  13366. *Ralf S. Engelschall*
  13367. * First cut for a very conservative source tree cleanup:
  13368. 1. merge various obsolete readme texts into doc/ssleay.txt
  13369. where we collect the old documents and readme texts.
  13370. 2. remove the first part of files where I'm already sure that we no
  13371. longer need them because of three reasons: either they are just temporary
  13372. files which were left by Eric or they are preserved original files where
  13373. I've verified that the diff is also available in the CVS via "cvs diff
  13374. -rSSLeay_0_8_1b" or they were renamed (as it was definitely the case for
  13375. the crypto/md/ stuff).
  13376. *Ralf S. Engelschall*
  13377. * More extension code. Incomplete support for subject and issuer alt
  13378. name, issuer and authority key id. Change the i2v function parameters
  13379. and add an extra 'crl' parameter in the X509V3_CTX structure: guess
  13380. what that's for :-) Fix to ASN1 macro which messed up
  13381. IMPLICIT tag and add f_enum.c which adds a2i, i2a for ENUMERATED.
  13382. *Steve Henson*
  13383. * Preliminary support for ENUMERATED type. This is largely copied from the
  13384. INTEGER code.
  13385. *Steve Henson*
  13386. * Add new function, EVP_MD_CTX_copy() to replace frequent use of memcpy.
  13387. *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)*
  13388. * Make sure `make rehash` target really finds the `openssl` program.
  13389. *Ralf S. Engelschall, Matthias Loepfe <Matthias.Loepfe@adnovum.ch>*
  13390. * Squeeze another 7% of speed out of MD5 assembler, at least on a P2. I'd
  13391. like to hear about it if this slows down other processors.
  13392. *Ben Laurie*
  13393. * Add CygWin32 platform information to Configure script.
  13394. *Alan Batie <batie@aahz.jf.intel.com>*
  13395. * Fixed ms/32all.bat script: `no_asm` -> `no-asm`
  13396. *Rainer W. Gerling <gerling@mpg-gv.mpg.de>*
  13397. * New program nseq to manipulate netscape certificate sequences
  13398. *Steve Henson*
  13399. * Modify crl2pkcs7 so it supports multiple -certfile arguments. Fix a
  13400. few typos.
  13401. *Steve Henson*
  13402. * Fixes to BN code. Previously the default was to define BN_RECURSION
  13403. but the BN code had some problems that would cause failures when
  13404. doing certificate verification and some other functions.
  13405. *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)*
  13406. * Add ASN1 and PEM code to support netscape certificate sequences.
  13407. *Steve Henson*
  13408. * Add ASN1 and PEM code to support netscape certificate sequences.
  13409. *Steve Henson*
  13410. * Add several PKIX and private extended key usage OIDs.
  13411. *Steve Henson*
  13412. * Modify the 'ca' program to handle the new extension code. Modify
  13413. openssl.cnf for new extension format, add comments.
  13414. *Steve Henson*
  13415. * More X509 V3 changes. Fix typo in v3_bitstr.c. Add support to 'req'
  13416. and add a sample to openssl.cnf so req -x509 now adds appropriate
  13417. CA extensions.
  13418. *Steve Henson*
  13419. * Continued X509 V3 changes. Add to other makefiles, integrate with the
  13420. error code, add initial support to X509_print() and x509 application.
  13421. *Steve Henson*
  13422. * Takes a deep breath and start adding X509 V3 extension support code. Add
  13423. files in crypto/x509v3. Move original stuff to crypto/x509v3/old. All this
  13424. stuff is currently isolated and isn't even compiled yet.
  13425. *Steve Henson*
  13426. * Continuing patches for GeneralizedTime. Fix up certificate and CRL
  13427. ASN1 to use ASN1_TIME and modify print routines to use ASN1_TIME_print.
  13428. Removed the versions check from X509 routines when loading extensions:
  13429. this allows certain broken certificates that don't set the version
  13430. properly to be processed.
  13431. *Steve Henson*
  13432. * Deal with irritating shit to do with dependencies, in YAAHW (Yet Another
  13433. Ad Hoc Way) - Makefile.ssls now all contain local dependencies, which
  13434. can still be regenerated with "make depend".
  13435. *Ben Laurie*
  13436. * Spelling mistake in C version of CAST-128.
  13437. *Ben Laurie, reported by Jeremy Hylton <jeremy@cnri.reston.va.us>*
  13438. * Changes to the error generation code. The perl script err-code.pl
  13439. now reads in the old error codes and retains the old numbers, only
  13440. adding new ones if necessary. It also only changes the .err files if new
  13441. codes are added. The makefiles have been modified to only insert errors
  13442. when needed (to avoid needlessly modifying header files). This is done
  13443. by only inserting errors if the .err file is newer than the auto generated
  13444. C file. To rebuild all the error codes from scratch (the old behaviour)
  13445. either modify crypto/Makefile.ssl to pass the -regen flag to err_code.pl
  13446. or delete all the .err files.
  13447. *Steve Henson*
  13448. * CAST-128 was incorrectly implemented for short keys. The C version has
  13449. been fixed, but is untested. The assembler versions are also fixed, but
  13450. new assembler HAS NOT BEEN GENERATED FOR WIN32 - the Makefile needs fixing
  13451. to regenerate it if needed.
  13452. *Ben Laurie, reported (with fix for C version) by Jun-ichiro itojun
  13453. Hagino <itojun@kame.net>*
  13454. * File was opened incorrectly in randfile.c.
  13455. *Ulf Möller <ulf@fitug.de>*
  13456. * Beginning of support for GeneralizedTime. d2i, i2d, check and print
  13457. functions. Also ASN1_TIME suite which is a CHOICE of UTCTime or
  13458. GeneralizedTime. ASN1_TIME is the proper type used in certificates et
  13459. al: it's just almost always a UTCTime. Note this patch adds new error
  13460. codes so do a "make errors" if there are problems.
  13461. *Steve Henson*
  13462. * Correct Linux 1 recognition in config.
  13463. *Ulf Möller <ulf@fitug.de>*
  13464. * Remove pointless MD5 hash when using DSA keys in ca.
  13465. *Anonymous <nobody@replay.com>*
  13466. * Generate an error if given an empty string as a cert directory. Also
  13467. generate an error if handed NULL (previously returned 0 to indicate an
  13468. error, but didn't set one).
  13469. *Ben Laurie, reported by Anonymous <nobody@replay.com>*
  13470. * Add prototypes to SSL methods. Make SSL_write's buffer const, at last.
  13471. *Ben Laurie*
  13472. * Fix the dummy function BN_ref_mod_exp() in rsaref.c to have the correct
  13473. parameters. This was causing a warning which killed off the Win32 compile.
  13474. *Steve Henson*
  13475. * Remove C++ style comments from crypto/bn/bn_local.h.
  13476. *Neil Costigan <neil.costigan@celocom.com>*
  13477. * The function OBJ_txt2nid was broken. It was supposed to return a nid
  13478. based on a text string, looking up short and long names and finally
  13479. "dot" format. The "dot" format stuff didn't work. Added new function
  13480. OBJ_txt2obj to do the same but return an ASN1_OBJECT and rewrote
  13481. OBJ_txt2nid to use it. OBJ_txt2obj can also return objects even if the
  13482. OID is not part of the table.
  13483. *Steve Henson*
  13484. * Add prototypes to X509 lookup/verify methods, fixing a bug in
  13485. X509_LOOKUP_by_alias().
  13486. *Ben Laurie*
  13487. * Sort openssl functions by name.
  13488. *Ben Laurie*
  13489. * Get the `gendsa` command working and add it to the `list` command. Remove
  13490. encryption from sample DSA keys (in case anyone is interested the password
  13491. was "1234").
  13492. *Steve Henson*
  13493. * Make *all* `*_free` functions accept a NULL pointer.
  13494. *Frans Heymans <fheymans@isaserver.be>*
  13495. * If a DH key is generated in s3_srvr.c, don't blow it by trying to use
  13496. NULL pointers.
  13497. *Anonymous <nobody@replay.com>*
  13498. * s_server should send the CAfile as acceptable CAs, not its own cert.
  13499. *Bodo Moeller <3moeller@informatik.uni-hamburg.de>*
  13500. * Don't blow it for numeric `-newkey` arguments to `apps/req`.
  13501. *Bodo Moeller <3moeller@informatik.uni-hamburg.de>*
  13502. * Temp key "for export" tests were wrong in s3_srvr.c.
  13503. *Anonymous <nobody@replay.com>*
  13504. * Add prototype for temp key callback functions
  13505. SSL_CTX_set_tmp_{rsa,dh}_callback().
  13506. *Ben Laurie*
  13507. * Make DH_free() tolerate being passed a NULL pointer (like RSA_free() and
  13508. DSA_free()). Make X509_PUBKEY_set() check for errors in d2i_PublicKey().
  13509. *Steve Henson*
  13510. * X509_name_add_entry() freed the wrong thing after an error.
  13511. *Arne Ansper <arne@ats.cyber.ee>*
  13512. * rsa_eay.c would attempt to free a NULL context.
  13513. *Arne Ansper <arne@ats.cyber.ee>*
  13514. * BIO_s_socket() had a broken should_retry() on Windoze.
  13515. *Arne Ansper <arne@ats.cyber.ee>*
  13516. * BIO_f_buffer() didn't pass on BIO_CTRL_FLUSH.
  13517. *Arne Ansper <arne@ats.cyber.ee>*
  13518. * Make sure the already existing X509_STORE->depth variable is initialized
  13519. in X509_STORE_new(), but document the fact that this variable is still
  13520. unused in the certificate verification process.
  13521. *Ralf S. Engelschall*
  13522. * Fix the various library and `apps/` files to free up pkeys obtained from
  13523. X509_PUBKEY_get() et al. Also allow x509.c to handle netscape extensions.
  13524. *Steve Henson*
  13525. * Fix reference counting in X509_PUBKEY_get(). This makes
  13526. demos/maurice/example2.c work, amongst others, probably.
  13527. *Steve Henson and Ben Laurie*
  13528. * First cut of a cleanup for `apps/`. First the `ssleay` program is now named
  13529. `openssl` and second, the shortcut symlinks for the `openssl <command>`
  13530. are no longer created. This way we have a single and consistent command
  13531. line interface `openssl <command>`, similar to `cvs <command>`.
  13532. *Ralf S. Engelschall, Paul Sutton and Ben Laurie*
  13533. * ca.c: move test for DSA keys inside #ifndef NO_DSA. Make pubkey
  13534. BIT STRING wrapper always have zero unused bits.
  13535. *Steve Henson*
  13536. * Add CA.pl, perl version of CA.sh, add extended key usage OID.
  13537. *Steve Henson*
  13538. * Make the top-level INSTALL documentation easier to understand.
  13539. *Paul Sutton*
  13540. * Makefiles updated to exit if an error occurs in a sub-directory
  13541. make (including if user presses ^C) [Paul Sutton]
  13542. * Make Montgomery context stuff explicit in RSA data structure.
  13543. *Ben Laurie*
  13544. * Fix build order of pem and err to allow for generated pem.h.
  13545. *Ben Laurie*
  13546. * Fix renumbering bug in X509_NAME_delete_entry().
  13547. *Ben Laurie*
  13548. * Enhanced the err-ins.pl script so it makes the error library number
  13549. global and can add a library name. This is needed for external ASN1 and
  13550. other error libraries.
  13551. *Steve Henson*
  13552. * Fixed sk_insert which never worked properly.
  13553. *Steve Henson*
  13554. * Fix ASN1 macros so they can handle indefinite length constructed
  13555. EXPLICIT tags. Some non standard certificates use these: they can now
  13556. be read in.
  13557. *Steve Henson*
  13558. * Merged the various old/obsolete SSLeay documentation files (doc/xxx.doc)
  13559. into a single doc/ssleay.txt bundle. This way the information is still
  13560. preserved but no longer messes up this directory. Now it's new room for
  13561. the new set of documentation files.
  13562. *Ralf S. Engelschall*
  13563. * SETs were incorrectly DER encoded. This was a major pain, because they
  13564. shared code with SEQUENCEs, which aren't coded the same. This means that
  13565. almost everything to do with SETs or SEQUENCEs has either changed name or
  13566. number of arguments.
  13567. *Ben Laurie, based on a partial fix by GP Jayan <gp@nsj.co.jp>*
  13568. * Fix test data to work with the above.
  13569. *Ben Laurie*
  13570. * Fix the RSA header declarations that hid a bug I fixed in 0.9.0b but
  13571. was already fixed by Eric for 0.9.1 it seems.
  13572. *Ben Laurie - pointed out by Ulf Möller <ulf@fitug.de>*
  13573. * Autodetect FreeBSD3.
  13574. *Ben Laurie*
  13575. * Fix various bugs in Configure. This affects the following platforms:
  13576. nextstep
  13577. ncr-scde
  13578. unixware-2.0
  13579. unixware-2.0-pentium
  13580. sco5-cc.
  13581. *Ben Laurie*
  13582. * Eliminate generated files from CVS. Reorder tests to regenerate files
  13583. before they are needed.
  13584. *Ben Laurie*
  13585. * Generate Makefile.ssl from Makefile.org (to keep CVS happy).
  13586. *Ben Laurie*
  13587. ### Changes between 0.9.1b and 0.9.1c [23-Dec-1998]
  13588. * Added OPENSSL_VERSION_NUMBER to crypto/crypto.h and
  13589. changed SSLeay to OpenSSL in version strings.
  13590. *Ralf S. Engelschall*
  13591. * Some fixups to the top-level documents.
  13592. *Paul Sutton*
  13593. * Fixed the nasty bug where rsaref.h was not found under compile-time
  13594. because the symlink to include/ was missing.
  13595. *Ralf S. Engelschall*
  13596. * Incorporated the popular no-RSA/DSA-only patches
  13597. which allow to compile an RSA-free SSLeay.
  13598. *Andrew Cooke / Interrader Ldt., Ralf S. Engelschall*
  13599. * Fixed nasty rehash problem under `make -f Makefile.ssl links`
  13600. when "ssleay" is still not found.
  13601. *Ralf S. Engelschall*
  13602. * Added more platforms to Configure: Cray T3E, HPUX 11,
  13603. *Ralf S. Engelschall, Beckmann <beckman@acl.lanl.gov>*
  13604. * Updated the README file.
  13605. *Ralf S. Engelschall*
  13606. * Added various .cvsignore files in the CVS repository subdirs
  13607. to make a "cvs update" really silent.
  13608. *Ralf S. Engelschall*
  13609. * Recompiled the error-definition header files and added
  13610. missing symbols to the Win32 linker tables.
  13611. *Ralf S. Engelschall*
  13612. * Cleaned up the top-level documents;
  13613. o new files: CHANGES and LICENSE
  13614. o merged VERSION, HISTORY* and README* files a CHANGES.SSLeay
  13615. o merged COPYRIGHT into LICENSE
  13616. o removed obsolete TODO file
  13617. o renamed MICROSOFT to INSTALL.W32
  13618. *Ralf S. Engelschall*
  13619. * Removed dummy files from the 0.9.1b source tree:
  13620. crypto/asn1/x crypto/bio/cd crypto/bio/fg crypto/bio/grep crypto/bio/vi
  13621. crypto/bn/asm/......add.c crypto/bn/asm/a.out crypto/dsa/f crypto/md5/f
  13622. crypto/pem/gmon.out crypto/perlasm/f crypto/pkcs7/build crypto/rsa/f
  13623. crypto/sha/asm/f crypto/threads/f ms/zzz ssl/f ssl/f.mak test/f
  13624. util/f.mak util/pl/f util/pl/f.mak crypto/bf/bf_locl.old apps/f
  13625. *Ralf S. Engelschall*
  13626. * Added various platform portability fixes.
  13627. *Mark J. Cox*
  13628. * The Genesis of the OpenSSL rpject:
  13629. We start with the latest (unreleased) SSLeay version 0.9.1b which Eric A.
  13630. Young and Tim J. Hudson created while they were working for C2Net until
  13631. summer 1998.
  13632. *The OpenSSL Project*
  13633. ### Changes between 0.9.0b and 0.9.1b [not released]
  13634. * Updated a few CA certificates under certs/
  13635. *Eric A. Young*
  13636. * Changed some BIGNUM api stuff.
  13637. *Eric A. Young*
  13638. * Various platform ports: OpenBSD, Ultrix, IRIX 64bit, NetBSD,
  13639. DGUX x86, Linux Alpha, etc.
  13640. *Eric A. Young*
  13641. * New COMP library [crypto/comp/] for SSL Record Layer Compression:
  13642. RLE (dummy implemented) and ZLIB (really implemented when ZLIB is
  13643. available).
  13644. *Eric A. Young*
  13645. * Add -strparse option to asn1pars program which parses nested
  13646. binary structures
  13647. *Dr Stephen Henson <shenson@bigfoot.com>*
  13648. * Added "oid_file" to ssleay.cnf for "ca" and "req" programs.
  13649. *Eric A. Young*
  13650. * DSA fix for "ca" program.
  13651. *Eric A. Young*
  13652. * Added "-genkey" option to "dsaparam" program.
  13653. *Eric A. Young*
  13654. * Added RIPE MD160 (rmd160) message digest.
  13655. *Eric A. Young*
  13656. * Added -a (all) option to "ssleay version" command.
  13657. *Eric A. Young*
  13658. * Added PLATFORM define which is the id given to Configure.
  13659. *Eric A. Young*
  13660. * Added MemCheck_XXXX functions to crypto/mem.c for memory checking.
  13661. *Eric A. Young*
  13662. * Extended the ASN.1 parser routines.
  13663. *Eric A. Young*
  13664. * Extended BIO routines to support REUSEADDR, seek, tell, etc.
  13665. *Eric A. Young*
  13666. * Added a BN_CTX to the BN library.
  13667. *Eric A. Young*
  13668. * Fixed the weak key values in DES library
  13669. *Eric A. Young*
  13670. * Changed API in EVP library for cipher aliases.
  13671. *Eric A. Young*
  13672. * Added support for RC2/64bit cipher.
  13673. *Eric A. Young*
  13674. * Converted the lhash library to the crypto/mem.c functions.
  13675. *Eric A. Young*
  13676. * Added more recognized ASN.1 object ids.
  13677. *Eric A. Young*
  13678. * Added more RSA padding checks for SSL/TLS.
  13679. *Eric A. Young*
  13680. * Added BIO proxy/filter functionality.
  13681. *Eric A. Young*
  13682. * Added extra_certs to SSL_CTX which can be used
  13683. send extra CA certificates to the client in the CA cert chain sending
  13684. process. It can be configured with SSL_CTX_add_extra_chain_cert().
  13685. *Eric A. Young*
  13686. * Now Fortezza is denied in the authentication phase because
  13687. this is key exchange mechanism is not supported by SSLeay at all.
  13688. *Eric A. Young*
  13689. * Additional PKCS1 checks.
  13690. *Eric A. Young*
  13691. * Support the string "TLSv1" for all TLS v1 ciphers.
  13692. *Eric A. Young*
  13693. * Added function SSL_get_ex_data_X509_STORE_CTX_idx() which gives the
  13694. ex_data index of the SSL context in the X509_STORE_CTX ex_data.
  13695. *Eric A. Young*
  13696. * Fixed a few memory leaks.
  13697. *Eric A. Young*
  13698. * Fixed various code and comment typos.
  13699. *Eric A. Young*
  13700. * A minor bug in ssl/s3_clnt.c where there would always be 4 0
  13701. bytes sent in the client random.
  13702. *Edward Bishop <ebishop@spyglass.com>*
  13703. <!-- Links -->
  13704. [CVE-2023-2650]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-2650
  13705. [CVE-2023-1255]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-1255
  13706. [CVE-2023-0466]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0466
  13707. [CVE-2023-0465]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0465
  13708. [CVE-2023-0464]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0464
  13709. [CVE-2023-0401]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0401
  13710. [CVE-2023-0286]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0286
  13711. [CVE-2023-0217]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0217
  13712. [CVE-2023-0216]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0216
  13713. [CVE-2023-0215]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0215
  13714. [CVE-2022-4450]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-4450
  13715. [CVE-2022-4304]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-4304
  13716. [CVE-2022-4203]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-4203
  13717. [CVE-2022-3996]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-3996
  13718. [CVE-2022-2274]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-2274
  13719. [CVE-2022-2097]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-2097
  13720. [CVE-2020-1971]: https://www.openssl.org/news/vulnerabilities.html#CVE-2020-1971
  13721. [CVE-2020-1967]: https://www.openssl.org/news/vulnerabilities.html#CVE-2020-1967
  13722. [CVE-2019-1563]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1563
  13723. [CVE-2019-1559]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1559
  13724. [CVE-2019-1552]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1552
  13725. [CVE-2019-1551]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1551
  13726. [CVE-2019-1549]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1549
  13727. [CVE-2019-1547]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1547
  13728. [CVE-2019-1543]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1543
  13729. [CVE-2018-5407]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-5407
  13730. [CVE-2018-0739]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0739
  13731. [CVE-2018-0737]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0737
  13732. [CVE-2018-0735]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0735
  13733. [CVE-2018-0734]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0734
  13734. [CVE-2018-0733]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0733
  13735. [CVE-2018-0732]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0732
  13736. [CVE-2017-3738]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3738
  13737. [CVE-2017-3737]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3737
  13738. [CVE-2017-3736]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3736
  13739. [CVE-2017-3735]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3735
  13740. [CVE-2017-3733]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3733
  13741. [CVE-2017-3732]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3732
  13742. [CVE-2017-3731]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3731
  13743. [CVE-2017-3730]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3730
  13744. [CVE-2016-7055]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7055
  13745. [CVE-2016-7054]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7054
  13746. [CVE-2016-7053]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7053
  13747. [CVE-2016-7052]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7052
  13748. [CVE-2016-6309]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6309
  13749. [CVE-2016-6308]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6308
  13750. [CVE-2016-6307]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6307
  13751. [CVE-2016-6306]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6306
  13752. [CVE-2016-6305]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6305
  13753. [CVE-2016-6304]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6304
  13754. [CVE-2016-6303]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6303
  13755. [CVE-2016-6302]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6302
  13756. [CVE-2016-2183]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2183
  13757. [CVE-2016-2182]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2182
  13758. [CVE-2016-2181]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2181
  13759. [CVE-2016-2180]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2180
  13760. [CVE-2016-2179]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2179
  13761. [CVE-2016-2178]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2178
  13762. [CVE-2016-2177]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2177
  13763. [CVE-2016-2176]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2176
  13764. [CVE-2016-2109]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2109
  13765. [CVE-2016-2107]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2107
  13766. [CVE-2016-2106]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2106
  13767. [CVE-2016-2105]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2105
  13768. [CVE-2016-0800]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0800
  13769. [CVE-2016-0799]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0799
  13770. [CVE-2016-0798]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0798
  13771. [CVE-2016-0797]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0797
  13772. [CVE-2016-0705]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0705
  13773. [CVE-2016-0702]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0702
  13774. [CVE-2016-0701]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0701
  13775. [CVE-2015-3197]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3197
  13776. [CVE-2015-3196]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3196
  13777. [CVE-2015-3195]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3195
  13778. [CVE-2015-3194]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3194
  13779. [CVE-2015-3193]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3193
  13780. [CVE-2015-1793]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1793
  13781. [CVE-2015-1792]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1792
  13782. [CVE-2015-1791]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1791
  13783. [CVE-2015-1790]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1790
  13784. [CVE-2015-1789]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1789
  13785. [CVE-2015-1788]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1788
  13786. [CVE-2015-1787]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1787
  13787. [CVE-2015-0293]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0293
  13788. [CVE-2015-0291]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0291
  13789. [CVE-2015-0290]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0290
  13790. [CVE-2015-0289]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0289
  13791. [CVE-2015-0288]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0288
  13792. [CVE-2015-0287]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0287
  13793. [CVE-2015-0286]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0286
  13794. [CVE-2015-0285]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0285
  13795. [CVE-2015-0209]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0209
  13796. [CVE-2015-0208]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0208
  13797. [CVE-2015-0207]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0207
  13798. [CVE-2015-0206]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0206
  13799. [CVE-2015-0205]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0205
  13800. [CVE-2015-0204]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0204
  13801. [CVE-2014-8275]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-8275
  13802. [CVE-2014-5139]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-5139
  13803. [CVE-2014-3572]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3572
  13804. [CVE-2014-3571]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3571
  13805. [CVE-2014-3570]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3570
  13806. [CVE-2014-3569]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3569
  13807. [CVE-2014-3568]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3568
  13808. [CVE-2014-3567]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3567
  13809. [CVE-2014-3566]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3566
  13810. [CVE-2014-3513]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3513
  13811. [CVE-2014-3512]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3512
  13812. [CVE-2014-3511]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3511
  13813. [CVE-2014-3510]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3510
  13814. [CVE-2014-3509]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3509
  13815. [CVE-2014-3508]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3508
  13816. [CVE-2014-3507]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3507
  13817. [CVE-2014-3506]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3506
  13818. [CVE-2014-3505]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3505
  13819. [CVE-2014-3470]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3470
  13820. [CVE-2014-0224]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0224
  13821. [CVE-2014-0221]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0221
  13822. [CVE-2014-0195]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0195
  13823. [CVE-2014-0160]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0160
  13824. [CVE-2014-0076]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0076
  13825. [CVE-2013-6450]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-6450
  13826. [CVE-2013-4353]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-4353
  13827. [CVE-2013-0169]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-0169
  13828. [CVE-2013-0166]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-0166
  13829. [CVE-2012-2686]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2686
  13830. [CVE-2012-2333]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2333
  13831. [CVE-2012-2110]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2110
  13832. [CVE-2012-0884]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0884
  13833. [CVE-2012-0050]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0050
  13834. [CVE-2012-0027]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0027
  13835. [CVE-2011-4619]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4619
  13836. [CVE-2011-4577]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4577
  13837. [CVE-2011-4576]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4576
  13838. [CVE-2011-4109]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4109
  13839. [CVE-2011-4108]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4108
  13840. [CVE-2011-3210]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-3210
  13841. [CVE-2011-3207]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-3207
  13842. [CVE-2011-0014]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-0014
  13843. [CVE-2010-4252]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-4252
  13844. [CVE-2010-4180]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-4180
  13845. [CVE-2010-3864]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-3864
  13846. [CVE-2010-1633]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-1633
  13847. [CVE-2010-0740]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-0740
  13848. [CVE-2010-0433]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-0433
  13849. [CVE-2009-4355]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-4355
  13850. [CVE-2009-3555]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-3555
  13851. [CVE-2009-3245]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-3245
  13852. [CVE-2009-1386]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1386
  13853. [CVE-2009-1379]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1379
  13854. [CVE-2009-1378]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1378
  13855. [CVE-2009-1377]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1377
  13856. [CVE-2009-0789]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0789
  13857. [CVE-2009-0591]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0591
  13858. [CVE-2009-0590]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0590
  13859. [CVE-2008-5077]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-5077
  13860. [CVE-2008-1678]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-1678
  13861. [CVE-2008-1672]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-1672
  13862. [CVE-2008-0891]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-0891
  13863. [CVE-2007-5135]: https://www.openssl.org/news/vulnerabilities.html#CVE-2007-5135
  13864. [CVE-2007-4995]: https://www.openssl.org/news/vulnerabilities.html#CVE-2007-4995
  13865. [CVE-2006-4343]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-4343
  13866. [CVE-2006-4339]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-4339
  13867. [CVE-2006-3738]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-3738
  13868. [CVE-2006-2940]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-2940
  13869. [CVE-2006-2937]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-2937
  13870. [CVE-2005-2969]: https://www.openssl.org/news/vulnerabilities.html#CVE-2005-2969
  13871. [CVE-2004-0112]: https://www.openssl.org/news/vulnerabilities.html#CVE-2004-0112
  13872. [CVE-2004-0079]: https://www.openssl.org/news/vulnerabilities.html#CVE-2004-0079
  13873. [CVE-2003-0851]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0851
  13874. [CVE-2003-0545]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0545
  13875. [CVE-2003-0544]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0544
  13876. [CVE-2003-0543]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0543
  13877. [CVE-2003-0078]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0078
  13878. [CVE-2002-0659]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0659
  13879. [CVE-2002-0657]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0657
  13880. [CVE-2002-0656]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0656
  13881. [CVE-2002-0655]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0655