summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/reallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-05-09Add a bit more detail about dot notation from the old inet(3) manpage.guenther1-3/+11
ok jmc@
2014-05-08move reallocarray() to a seperate file so that -portable applicationsderaadt3-18/+46
can avoid reinventing the wheel ok guenther schwarze
2014-05-08Replace hand-crafted STRICT_ALIGNMENT with system provided __STRICT_ALIGNMENT.miod2-34/+14
Forgotten during yesterday's STRICT_ALIGNMENT cleanup commit.
2014-05-08More KNF.jsing22-90/+188
2014-05-08KNF.jsing24-616/+766
2014-05-08Remove KSSL debug code.jsing2-42/+0
"fire bomb" tedu@
2014-05-08KNF.jsing14-1824/+1834
2014-05-08Nuke OPENSSL_FIPS - having #ifdefs inside a #ifndef for the same thingjsing4-36/+0
is amusing. ok deraadt@
2014-05-08KNF.jsing32-2998/+3088
2014-05-08knfectomie.jsing2-1306/+1636
2014-05-08Emergency knfectomie requested by tedu@.jsing60-12266/+13236
2014-05-08kill some more VMS ifdefsgiovanni8-32/+0
ok miod@
2014-05-07Get __STRICT_ALIGNMENT from <machine/endian.h> and decide upon it, rathermiod18-70/+52
than defining it for not (i386 and amd64 (and sometimes s390)) only. Compile-time tests remain compile-time tests, and runtime-test remain runtime-test instead of being converted to compile-time tests, per matthew@'s explicit demand (rationale: this makes sure the compiler checks your code even if you won't run it). No functional change except on s390 (which we don't run on) and vax (which we run on, but noone cares about) ok matthew@
2014-05-07less than jpaketedu4-317/+4
2014-05-07don't free memory unless we allocated it.tedu2-4/+8
reported to openssl by David Ramos (rt 3338) stealing commit from logan, who's run away. ok miod.
2014-05-07with the first bug it uncovered fixed, clear all bignums again.tedu2-34/+18
i've never worked on codebase so resistant to efforts to improve it.
2014-05-07in BN_clear_free, don't cleanse the data if the static data flag is set.tedu2-6/+4
much debugging work done by otto. ok miod otto. side note: BN_FLG_STATIC_DATA doesn't actually mean the data is static. it's also used to indicate the data may be secretly shared behind your back as a sort of poor man's refcounting, but without the refcounting.
2014-05-07comment style fixhalex1-2/+3
ok crickets@
2014-05-07KNF.jsing28-1888/+1968
2014-05-07revert, thanks sthentedu2-18/+34
2014-05-07add additional includes from eng_cryptodev.cjsg2-0/+10
makes this compile with OPENSSL_NO_DEPRECATED defined. ok deraadt@
2014-05-07miod forgot about fcrypt_b.c being needed, before he went off to get hisderaadt2-2/+4
beauty sleep. He's probably having a nightmare about this right now.... ok tedu
2014-05-06small fix from mancha1. currently unused file, but no harm fixing it.tedu1-1/+2
2014-05-06Make sure the stdout output is check, to confirm proper sorting.miod3-1/+10
2014-05-06Assorted cleanups:miod2-28/+8
- replace hardcoded sizes with sizeof() - pqueue_find() apparently used to need to keep track of the previous node when iterating, which causes its logic to be complicated. However, nowadays it only needs to iterate, so replace with a straightforward, much readable logic. - remove #if 0'ed code From ``sin'' from 2f30 dot org on tech@, thanks!
2014-05-06Add a fixed (read: non-SIGSEGV'ing) pq_test.miod3-1/+111
2014-05-06Remove broken-by-design testmiod2-190/+0
2014-05-06Make sure PKCS7_get_octet_string() return values are checked for NULL.miod2-4/+20
Reported by David Ramos (and simultaneously to OpenSSL as PR#3339). ok beck@ logan@
2014-05-06Sort CFLAGS, SRC and SSLASM stanzas by the directories they apply to, to makemiod4-136/+166
these files similar in layout to the other md Makefile.inc; no functional change.
2014-05-06missing NULL checks to see if init is needed. found hard way by deraadt.tedu1-3/+3
2014-05-06fix stupid committedu1-5/+5
2014-05-06use explicit_bzerotedu1-5/+5
2014-05-06clear a stack buffer with explicit_bzerotedu1-2/+2
2014-05-06knf approximationtedu48-17238/+18272
2014-05-06move chacha context and buffer out of bss and allow mmap to place themtedu1-6/+16
wherever it decides it would like them. first step. ok deraadt dlg djm
2014-05-06"stay backwards-compatible with 0.9.5; this should go away soon"tedu1-8/+0
it's your lucky day!
2014-05-06remove Kerberostedu2-41/+0
2014-05-06move a comment to make unifdef happiertedu1-2/+3
2014-05-06bye bye SRPtedu4-975/+0
2014-05-05inspired by a cloudflare diff, cleanse old memory when expanding a bignum.tedu2-34/+18
however, instead of trying to audit all the places where a secret bignum is used, apply the big hammer and clear all bignums when freed. ok deraadt miod
2014-05-05Sort and group includes.jsing4-20/+22
2014-05-05Repair BIO_socket_nbio operation.jsing2-4/+6
ok miod@
2014-05-05During the great e_os.h nukathon we stopped pulling in <sys/filio.h> viajsing3-35/+6
the ifdef maze, meaning that FIONBIO was no longer defined. This removes non-blocking I/O support from s_{client,server,time}. Remove all FIONBIO ifdefs and import <sys/ioctl.h>, renabling -nbio. ok miod@
2014-05-05Kill memory debug calls that are now noops. While here, nuke an #if 0 andjsing1-22/+3
a unnecessary NULL check before free. ok miod@
2014-05-05OpenBSD has_SC_CLK_TCK.jsing1-27/+0
ok miod@
2014-05-05Remove SRP and Kerberos support from libssl. These are complex protocolstedu30-5120/+2
all on their own and we can't effectively maintain them without using them, which we don't. If the need arises, the code can be resurrected.
2014-05-05Enable assembler code for DES. Assembler code for BN is commented out as itmiod2-0/+54
uses the `umul' and `udiv' instructions directly, which are not supported on v7 processors.
2014-05-04Improve line wrapping for lines exceeding 80 chars.jim128-497/+714
ok jmc@
2014-05-04Add missing SEE ALSO section header.jim1-0/+2
yup jmc@
2014-05-04Remove trailing whitespace.jim140-345/+345
fine jmc@