Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Replace entire printf-like guts with calls to libc snprintf. | deraadt | 2014-04-21 | 2 | -1538/+92 |
| | | | | | funopen(3) is used to interface to BIO descriptors. ok guenther | ||||
* | Bring malloc/calloc/realloc sequences to modern standard | deraadt | 2014-04-21 | 16 | -54/+38 |
| | | | | ok guenther | ||||
* | remove macros wrapping malloc/calloc/free/realloc | deraadt | 2014-04-21 | 1 | -26/+16 |
| | |||||
* | Correctly document the return value of getenv(3) | guenther | 2014-04-21 | 1 | -6/+8 |
| | | | | From Ben Cornett (ben (at) lantern.is) | ||||
* | KNF. | jsing | 2014-04-21 | 16 | -1096/+912 |
| | |||||
* | clean up files we don't need | tedu | 2014-04-21 | 38 | -2704/+0 |
| | |||||
* | fix accidentally deleted deref. | beck | 2014-04-21 | 2 | -2/+2 |
| | |||||
* | ASN1_STRING cleanup - realloc has handled NULL since I had a mullet | beck | 2014-04-20 | 2 | -34/+20 |
| | | | | | | | | | and parachute pants - and since it's obvious there is no guarantee the caller doesn't pass in the data area in the argument, use memmove instead of memcpy so overlapping areas are handled correctly. Also, pointers can be usefully printed in hex with %p, in error messaeges rather than the bizzaro stuff that was there using mystical buffer lengths and abuse of strlcpy-converted-blindly-from-strcpy | ||||
* | replace a bunch of pointer-arithmatic-strcpy-converted-blindly-to-strlcpy | beck | 2014-04-20 | 2 | -14/+14 |
| | | | | | cruft with an snprintf. "better than what was there" ok guenther@ | ||||
* | Eliminate duplicated logic by switching from malloc+snprintf to asprintf | guenther | 2014-04-20 | 2 | -40/+28 |
| | | | | ok beck@ | ||||
* | Chop off more SSLv2 tentacles and start fixing and noting y2038 issues. | guenther | 2014-04-20 | 2 | -22/+36 |
| | | | | | | | APIs that pass times as longs will have to change at some point... Bump major on both libcrypto and libssl. ok tedu@ | ||||
* | Restore beck's (void)snprintf(): they were reviewed. | guenther | 2014-04-20 | 6 | -10/+10 |
| | |||||
* | Restore beck's rev 1.8: snprintf() was reviewed. | guenther | 2014-04-20 | 2 | -4/+4 |
| | |||||
* | Restore tedu's rev 1.4: snprintf() was reviewed. | guenther | 2014-04-20 | 2 | -2/+2 |
| | |||||
* | Restore beck's rev 1.7: snprintf() was reviewed. | guenther | 2014-04-20 | 2 | -4/+8 |
| | | | | Also, use sizeof() for snprintf()'s size argument | ||||
* | Remove unused/never installed libssl tools and docs and references to them | afresh1 | 2014-04-20 | 20 | -1267/+17 |
| | | | | Sure deraadt | ||||
* | Restore beck's rev 1.21: snprintf() was reviewed | guenther | 2014-04-20 | 2 | -2/+2 |
| | |||||
* | theo found a file we don't seem to need, but just in case, i will paste | tedu | 2014-04-20 | 2 | -6/+0 |
| | | | | | | the contents below: #!/usr/local/bin/perl # x86 assember | ||||
* | Restore beck's rev 1.9: snprintf() was reviewed | guenther | 2014-04-20 | 2 | -2/+2 |
| | |||||
* | KNF. | jsing | 2014-04-20 | 10 | -476/+610 |
| | |||||
* | Restore beck's rev 1.3: snprintf() was reviewed | guenther | 2014-04-20 | 2 | -2/+2 |
| | |||||
* | More KNF. | jsing | 2014-04-20 | 4 | -6/+6 |
| | |||||
* | KNF. | jsing | 2014-04-20 | 12 | -1428/+1902 |
| | |||||
* | KNF. | jsing | 2014-04-20 | 12 | -940/+1184 |
| | |||||
* | KNF. | jsing | 2014-04-20 | 8 | -528/+718 |
| | |||||
* | More KNF. | jsing | 2014-04-20 | 26 | -160/+176 |
| | |||||
* | More KNF. | jsing | 2014-04-20 | 2 | -100/+124 |
| | |||||
* | gettimeofday() is portable enough and does not need a wrapper | deraadt | 2014-04-20 | 2 | -18/+4 |
| | |||||
* | calloc() rather than malloc+memset | deraadt | 2014-04-20 | 2 | -4/+4 |
| | |||||
* | Fix indentation, adding braces and combining a nested if to reduce depth | guenther | 2014-04-20 | 2 | -24/+28 |
| | |||||
* | KNF. | jsing | 2014-04-20 | 4 | -362/+438 |
| | |||||
* | KNF. | jsing | 2014-04-20 | 8 | -796/+786 |
| | |||||
* | Chop off more SSLv2 tentacles and start fixing and noting y2038 issues. | guenther | 2014-04-20 | 17 | -118/+44 |
| | | | | | | | APIs that pass times as longs will have to change at some point... Bump major on both libcrypto and libssl. ok tedu@ | ||||
* | return after error instead of plowing ahead. noticed by mancha1 at zoho | tedu | 2014-04-20 | 2 | -0/+2 |
| | |||||
* | Use calloc(a,b) instead of malloc(a*b) + memset(a*b). I don't know if | deraadt | 2014-04-20 | 2 | -4/+2 |
| | | | | | | | | | | | | | | | | | | | | | | this instance is integer-overflowable, but we cannot keep hand-auditing every instance (or apathetically ignoring these issues) when the simple calloc idiom is better in the presence of a good calloc(). It is simply unfeasible to always enter correct range checks before the aggregate size calculation, just go find some 4000 lines of code, REPAIR THEM ALL, then come back and tell me I am wrong. This only works on systems where calloc() does the integer overflow check, but if your system doesn't do this, you need to ask your vendor WHY THEY ARE 10 YEARS BEHIND IN BEST PRACTICE? This is the kind of problem that needs to be solved at the right layer. malloc integer-overflow was implicated in the 2002 OpenSSH hole. OpenSSH and much other code is now written to use calloc(), for instance OpenSSH has 103 calls to it. We feel safer with our use of calloc(). It is a natural approach for us to use calloc(). How safe do you feel on systems which lack that range check in their calloc()? Good writeup from 2006: http://undeadly.org/cgi?action=article&sid=20060330071917 | ||||
* | Undo a calloc() replacement. It lacks the integer overflow check that | deraadt | 2014-04-20 | 1 | -14/+1 |
| | | | | the system one has. | ||||
* | KNF. | jsing | 2014-04-20 | 24 | -2308/+2268 |
| | |||||
* | reset imprint to NULL to avoid double free. from mancha1 at zoho | tedu | 2014-04-20 | 2 | -0/+2 |
| | |||||
* | release buffers fix was lost in merge. put it back. | tedu | 2014-04-19 | 2 | -2/+4 |
| | |||||
* | change some rsh references to ssh. poke by jmc | tedu | 2014-04-19 | 2 | -9/+9 |
| | |||||
* | More KNF. | jsing | 2014-04-19 | 4 | -74/+84 |
| | |||||
* | More KNF. | jsing | 2014-04-19 | 6 | -90/+122 |
| | |||||
* | another attempt at fixing stale x509 data. since we don't know where the | tedu | 2014-04-19 | 2 | -20/+16 |
| | | | | | initial storage came from, we can't free it. just memset in the sequence case. probably ok beck | ||||
* | More KNF. | jsing | 2014-04-19 | 14 | -157/+163 |
| | |||||
* | More KNF. | jsing | 2014-04-19 | 2 | -40/+40 |
| | |||||
* | tweak previous; | jmc | 2014-04-19 | 1 | -3/+2 |
| | |||||
* | zap trailing whitespace; | jmc | 2014-04-19 | 1 | -2/+2 |
| | |||||
* | remove the openssl_fdset wrapper, and a variety of VMS'ism's like | deraadt | 2014-04-19 | 6 | -48/+19 |
| | | | | | crazy (void *) casts all over the place ok beck jsing | ||||
* | KNF. | jsing | 2014-04-19 | 12 | -1626/+1628 |
| | |||||
* | Remove a gethostbyname() cache layer. The internet works better these | deraadt | 2014-04-19 | 1 | -50/+1 |
| | | | | days. Initially fixed this, but Ted asked for it to die. |