summaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-04-08MFC: fixes for OpenSSL ASN.1 invalid memory accesses (CVE-2009-0590 andOPENBSD_4_4djm3-2/+16
CVE-2009-0789).
2009-01-09Fix CVE-2008-5077: Incorrect checks for malformed signaturesdjm9-12/+11
2008-07-28This commit was manufactured by cvs2git to create branch 'OPENBSD_4_4'.cvs2svn692-180302/+0
2008-07-28Install man pages for the BIO_* libcrypto functions, but not bio.3jsg1-1/+126
as the page doesn't directly describe any functions. ok deraadt@
2008-07-28man page bits for new malloc; ok jmc@otto1-43/+33
2008-07-28Almost complete rewrite of malloc, to have a more efficient dataotto1-1443/+835
structure of tracking pages returned by mmap(). Lots of testing by lots of people, thanks to you all. ok djm@ (for a slighly earlier version) deraadt@
2008-07-25i have to crank this for a ridiculous reason, to save me about 4 hours of workderaadt1-1/+1
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.ray4-33/+5
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-06-14remove _thread_malloc_init prototypeotto1-2/+1
2008-06-13grammar fixes;jmc1-3/+3
2008-06-13remove _MALLOC_LOCK_INIT; major bump; ok deraadt@otto2-8/+2
2008-06-13Add strtof() to libc, some ports seem to like it. Currently it's a simplelandry3-9/+64
call to strtod() with bounding check. Discussed with pyr@ and otto@ ok otto@ deraadt@
2008-06-09fix an Xr, and use a more appropriate macro;jmc1-4/+4
2008-06-08arc4random_stir() does not use /dev/arandom anymore, but sysctl kern.arandomderaadt1-4/+6
2008-06-04fix math screwup that reintroduced a bias for upper_bounds in rangedjm1-2/+2
(2^30,2^31). Nothing in the tree yet requests random numbers bounded by this range. report jakob!deraadt; ok deraadt@
2008-05-30-salt is default for "openssl enc"; from djmjmc1-29/+19
tweaked with some help from Matthew Dempsky and djm ok djm
2008-05-20kill an Xr to a non-existent man page, ulimit(1);jmc1-5/+3
2008-05-19remove recalloc(3); it is buggy and impossible to repair without bigotto3-62/+20
costs; ok jmc@ for the man page bits; ok millert@ deraadt@
2008-05-11garbage collect the portability bits for the removed select() support.brad1-11/+1
ok djm@ deraadt@
2008-05-09try SO_BINDANY for -s, but do not insist; ok bob, reykmarkus1-2/+4
2008-05-07remove duplicates; remove des_random_key; remove unused; sort MLINKS; ok jmc@markus1-113/+8
2008-05-06- put the description of -O in the right placejmc1-6/+6
- shorten the argument names to -IO
2008-05-06allow setting of TCP send/receive buffer sizes; ok markus@djm2-5/+38
2008-04-18convert select() => poll(), saves a runtime malloc+free per retrydjm1-23/+16
feedback deraadt@ drahn@; ok deraadt@
2008-04-16permit _ in the middle of a DNS name componentderaadt1-2/+3
2008-04-13Improve the libc DNS resolver ID generation algorithm to be moredjm1-43/+79
resistant to prediction atacks by wrapping the existing LCG in a random permutation generator based on a Luby-Rackoff block cipher. lots of discussion and final ok deraadt@
2008-04-13Use arc4random_buf() when requesting more than a single word of outputdjm2-4/+4
Use arc4random_uniform() when the desired random number upper bound is not a power of two ok deraadt@ millert@
2008-04-04- do not call pthread_atfork(3) handlers when a multithreaded programkurt1-2/+7
calls vfork(2). "untested, but looks OK" marc@ - document vfork(2), popen(3) and system(3) don't call atfork handlers in multithreaded programs. okay jmc@
2008-04-02Zero state buffers on return. OK deraadt@millert1-1/+5
2008-03-19bcmp(3) tries to return length, which is a size_t, as an int.ray1-4/+4
Instead, just return 1 if there is a difference. Found by lint. OK millert.
2008-03-16- add NAME entries for arc4random_buf and arc4random_uniformjmc1-2/+4
- simplify a macro call (Do/Dc -> Dq)
2008-03-16Add missing MLINKSderaadt1-1/+2
2008-03-16diff from djm@ committed at his request:otto2-3/+84
introduce two new APIs for requesting strong random numbers: arc4random_buf() - fill an arbitrary memory range with random numbers arc4random_uniform() - return a uniformly distributed random number below a specified upper bound, avoiding the bias that comes from a naive "arc4random() % upper_bound" construction. these mirror similarly-named functions in the kernel; lots of discussion deraadt@ mcbride@
2008-03-15- len is size_t, but n uses len and is an int. Matching those typesray1-6/+12
should be good, plus it prevents weird things from happening if len > INT_MAX. - Since n is now size_t, compare it against 0 instead of >= 0. - temp is used to store individual bytes, so use char instead (matches fp and tp). - millert noted that the comma operator may not guarantee order of execution, so replace with semicolons. Found by lint, OK millert.
2008-03-15Convert c to unsigned char, like it says in the manual. Also addray1-4/+3
cast to make it explicit. Found by lint, OK millert.
2008-02-26fix memory leak (in one case of unaligned buffers); from Markus Kvetterderaadt2-4/+6
ok markus
2008-02-20use pgfree pool like other code does to reserve free list slots.otto1-6/+6
prevents a few "cannot free mem because i need mem to free mem" scenarios (one found by weingart@). ok weingart@ millert@ miod@
2008-01-01- make arc4random*() functions thread safe. Use a custom spinlock functionkurt2-42/+69
instead of the generic pthread macros since free(3) uses __arc4_getbyte() when freeing small sized allocations and the generic pthread macros call malloc(3). - eliminate passing pointers to a static variable with global scope (rs) for additional code clarity and reduction. - shlib minor bumps for libc and libpthread due to new functions. From andreas@ with some bits from me. okay tedu@ marc@ w/some spot checking from millert@
2007-12-01relevant updates/fixes up to openssl-0.9.8g;jmc1-31/+45
2007-11-27typos; ok jmc@martynas1-2/+2
sys/dev/pci/pciide.c from naddy@
2007-11-19fix misleading comment; the _MUTEX_LOCK/_MUTEX_UNLOCK macros work withkurt1-2/+2
both static and non-static mutexs.
2007-11-13Put limits.h in front of stdlib.h as style(9) recommends.tobias2-8/+8
OK millert@
2007-11-11strtod may return HUGE_VAL on overflow, which is defined in math.h.tobias1-2/+3
Therefore added math.h to SYNPOSIS. OK millert@
2007-10-31Add parentheses to avoid warning:chl1-2/+2
"suggest parentheses around && within ||" ok millert@
2007-10-25Make sure to use unique target names so that make -j does not break;miod1-25/+25
feedback and ok espie@
2007-10-22Only test one condition per invocation flavour, instead of testing allmiod1-27/+29
of them with exceptions disabled and then only one with exceptions enabled. ok kettenis@
2007-10-20Give more details on failure.miod1-8/+8
2007-10-20Make this work on 64 bit platforms by using strlen() instead of sizeof()...miod1-1/+1
worked by accident.
2007-10-11use RRSIG instead of SIG for DNSSEC. ok djm@jakob3-6/+7
2007-10-10Replace use of strcpy(3) and other pointer goo inmoritz2-30/+24
SSL_get_shared_ciphers() with strlcat(3). ok deraadt@ markus@