summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MFC:OPENBSD_4_7djm2011-02-111-1/+7
| | | | | | | | | | | ---------------------------- revision 1.8 date: 2011/02/10 22:40:27; author: djm; state: Exp; lines: +7 -1 fix for CVE-2011-0014 "OCSP stapling vulnerability"; ok markus@ jasper@ miod@ AFAIK nothing in base uses this, though apache2 from ports may be affected. ----------------------------
* Security fix for CVE-2010-4180 as mentioned in ↵jasper2010-12-152-0/+8
| | | | | | | | | | | http://www.openssl.org/news/secadv_20101202.txt. where clients could modify the stored session cache ciphersuite and in some cases even downgrade the suite to weaker ones. This code is not enabled by default. ok djm@
* - Apply security fix for CVE-2010-3864.jasper2010-11-171-4/+14
| | | | ok djm@ deraadt@
* ecurity fix for CVE-2010-0740jasper2010-03-311-3/+4
| | | | | | | | | "In TLS connections, certain incorrectly formatted records can cause an OpenSSL client or server to crash due to a read attempt at NULL." http://openssl.org/news/secadv_20100324.txt ok djm@ sthen@
* This commit was manufactured by cvs2git to create branch 'OPENBSD_4_7'.cvs2svn2010-03-10827-252519/+0
|
* It's unsetenv() that doesn't like `=' in the argument, not putenv().kili2010-03-101-3/+3
| | | | ok millert@
* cherrypick patch from OpenSSL 0.9.8m:djm2010-03-047-14/+20
| | | | | *) Always check bn_wexpend() return values for failure. (CVE-2009-3245) [Martin Olsson, Neel Mehta]
* Fix the atelnet() function, which was wrong in several ways.nicm2010-02-271-13/+13
| | | | | | Pointed out by obsd at happyjack.org, fix based on a diff from kili@. ok deraadt
* Fix the worst among the fatal block-nesting issues we have in our tree,schwarze2010-02-231-4/+4
| | | | | | | | | | | | in the end simply changing Oo Xo Oo Oc Oc Xc to Oo Xo Oo Oc Xc Oc. I tried five different variants without the Xo/Xc, because there is no real reason why Xo/Xc should be needed here, and two additional variants with Xo/Xc that look more pretty than what i'm now committing. All seven alternatives work both with mandoc and groff 1.20.1, but all seven trigger various different bugs in our old groff, and we still need to remain compatible with our old groff right now. ok jmc@ sobrado@
* Our groff does not handle all cases of nested displays properly, soschwarze2010-02-181-6/+6
| | | | | | | | resolve the contradiction in the manual whether it's allowed or not in favour of "not allowed" for now, shelving my diff to support nested displays in mandoc(1) for later consideration. Found by and unbreaking the build with mandoc(1). Feedback and OK jmc@
* Sync with current state of the tree.miod2010-02-141-2/+2
|
* Test mkstemps() tooguenther2010-02-111-26/+87
|
* Add a regression suite for mkstemp(), verifying that it neither overrunsguenther2010-02-113-2/+116
| | | | | | no underruns the supplied template buffer, that it can generate names that don't contain any X's, and that all open() calls that pass O_CREAT also pass O_EXCL
* Use size_t in appropriate places; fixes sorting of big arrays;otto2010-02-081-9/+10
| | | | | after the diff was written, I made it similar to the freebsd fix of the same code; pr6287 ok millert@ guenther@
* use size_t to index arrays; avoids big array bugs; ok millert@ guenther@otto2010-02-081-1/+1
|
* Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependentmiod2010-02-035-23/+25
| | | | | | | files or directories when applicable. The inspiration and name of MACHINE_CPU come from NetBSD, although the way to provide it to Makefiles is completely different. ok kettenis@
* add a fix from OpenSSL CVS for SA38200.jasper2010-01-312-20/+14
| | | | | | | | "Modify compression code so it avoids using ex_data free functions. This stops applications that call CRYPTO_free_all_ex_data() prematurely leaking memory." looks ok to markus@
* stucture -> structure;jmc2010-01-251-3/+3
|
* New options 'S', as a shorthand for the options most suitable as anotto2010-01-132-3/+9
| | | | extra safeguard (FGJ). Idea from deraadt@; ok deraadt@ dlg@
* new ipsca root.dlg2009-12-311-0/+108
|
* ipsca has expireddlg2009-12-311-51/+0
|
* replace a few remaining UNIX terms with .Ux macros; this diffsobrado2009-12-291-4/+4
| | | | completes the changes from Oct 22.
* save calls to arc4random() by using a nibble at a time; not becauseotto2009-12-161-24/+27
| | | | | arc4random() is slow, but it induces getpid() calls; also saves a bit on stirring efforts
* No point in refreshing the pid from inside arc4_stir() when thatguenther2009-12-151-6/+15
| | | | | | | | | doesn't test it, so factor out the two places that test it into a routine and do the refreshing there. With this, arch4random_buf() doesn't trigger superfluous calls to getpid() when filling large buffers. ok deraadt@, "looks nicer indeed" otto@
* Add a test for sleep(3), to verify that it both (a) returns zero when itguenther2009-12-142-0/+97
| | | | completes, and (b) returns the unslept time in seconds when interrupted
* plug a memory leak; found by parfait, ok djmderaadt2009-12-111-0/+2
|
* Make userland malloc use __LDPGSZ granularity on mips, regardless of themiod2009-12-071-1/+3
| | | | actual kernel page size.
* missing word;jmc2009-12-051-3/+3
| | | | from trhodes@freebsd, r200095;
* Switch the chunk_info lists to doubly-linked lists and use the queueotto2009-11-271-51/+34
| | | | | | macros for them. Avoids walking the lists and greatly enhances speed of freeing chunks in reverse or random order at the cost of a little space. Suggested by Fabien Romano and Jonathan Armani; ok djm@
* Don't forget to fill region from the cache with junk if needed in one case;otto2009-11-271-1/+3
| | | | from Fabien Romano and Jonathan Armani
* No need to clear a mmapped region; from Fabien Romano and Jonathanotto2009-11-271-2/+1
| | | | Armani
* Add a (hopefully) comprehensive regression test of how stdio functionsguenther2009-11-213-2/+264
| | | | affect stream orientation
* Add regression tests for stdio threading. Originally by blambert withguenther2009-11-1915-1/+511
| | | | some further hacking by me
* More shrinkage, a bit for ramdisks but mostly for static binaries:guenther2009-11-185-392/+445
| | | | | | | | | | | | | | | | | - wrap with #ifndef NO_LOG_BAD_DNS_RESPONSES libc code that uses p_class() and p_type() for diagnostics, then add that define to libstub to avoid pulling in res_debug_syms.o - split rcmd() and ruserok() into separate files, as nothing uses both - split readdir_r() to its own file - split syslog_r() from syslog(), as the latter needs localtime(); many binaries no longer need to pull in all the time code after this; switch from usleep() to nanosleep() while we're at it (The profit of analysis of -Wl,-M,--cref output) Chops 888kB from /bin and /sbin on i386 ok deraadt@, miod@
* pull Ben Lauries blind prefix injection fix for CVE-2009-3555 frommarkus2009-11-1010-12/+40
| | | | openssl 0.9.8l; crank minor version; ok djm@ deraadt@; initially from jsg@
* permit -DMALLOC_STATS to compile againtodd2009-11-021-2/+2
| | | | | noticed by Jonathan Armani & Fabien Romano ugh+ok otto@
* s/Mhz/MHz/, MHz is a multiple of the SI unit hertz (whose symbol is Hz).sobrado2009-10-314-8/+8
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-273-30/+3
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* write UNIX-domain in a more consistent way; while here, replace asobrado2009-10-221-5/+5
| | | | | | | | few remaining ".Tn UNIX" macros with ".Ux" ones. pointed out by ratchov@, thanks! ok jmc@
* use the UNIX-related macros (.At and .Ux) where appropriate.sobrado2009-10-221-4/+8
| | | | ok jmc@
* Check mmap return value against MAP_FAILED not NULL.pirofti2009-10-201-2/+2
| | | | Okay deraadt@, otto@.
* teach gdtoa & its subroutines that malloc can fail; in which casemartynas2009-10-162-2/+6
| | | | | | ecvt, fcvt, gcvt, *printf, strtof, strtod, strtold act per ieee 1003.1. after these massive changes, remove unused files which would not work now. reported by Maksymilian Arciemowicz; ok theo
* another cert that makes godaddy.com and launchpad.net (among others) happy.fgsch2009-10-121-0/+51
| | | | | found by Guillaume Protet (guillaume dot protet at mortheres dot info) while testing bzr update. deraadt@ ok
* rewrite the history section, prompted by Paul Stoeber; ok deraadt@ jmc@otto2009-10-101-25/+28
|
* Do not write "Connection to ... succeeded" messages to stdout.mpf2009-10-081-3/+5
| | | | OK gilles, rainer, millert, deraadt.
* doing numeric lookups without specifying an ai_socktype fails no longer.claudio2009-09-141-2/+8
| | | | Update the expected answers accordingly. Found by david, OK fgsch
* make getaddrinfo(3) accept numeric servname when ai_socktype is notfgsch2009-09-021-4/+2
| | | | | specified in hint or hints is NULL. claudio@ ok
* replace ".Ar file ..." with ".Ar" whenever possible.sobrado2009-08-161-27/+27
| | | | ok jmc@
* various MLINK fixes from Alan R. S. Bueno;jmc2009-08-131-3/+3
|
* remove expired certificates and add startcom ltd.fgsch2009-08-081-839/+148
| | | | beck@ ok