Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Make pthread_atfork() track the DSO that called it like atexit() does, | guenther | 2015-04-07 | 3 | -2/+81 | |
| | | | | | | | | | | unregistering callbacks if the DSO is unloaded. Move the callback handling from libpthread to libc, though libpthread still overrides the inner call to handle locking and thread-library reinitialization. Major version bump for both libc and libpthread. verification that this fixes various ports ajacoutot@ asm assistance miod@; ok millert@ deraadt@ | |||||
* | bludgeon DES support out of crypt. long live the bcrypt. | tedu | 2015-04-06 | 2 | -761/+9 | |
| | ||||||
* | improve realloc. when expanding a region, actually use the free page cache | tedu | 2015-04-06 | 1 | -7/+16 | |
| | | | | | instead of simply zapping it. this can save many syscalls in a program that repeatedly grows and shrinks a buffer, as observed in the wild. | |||||
* | Make rcmdsh(3) not fail if it is passed a non resolvable hostname. | halex | 2015-03-23 | 3 | -20/+16 | |
| | | | | | | | Instead, silently ignore the fact and instead let the underlying ssh (or $RSH) command handle it. ok millert@ | |||||
* | differentiate between a failed read, returning -1, and encountering | halex | 2015-03-22 | 1 | -2/+4 | |
| | | | | | | | end-of-file, returning 0, in order not to print an unrelated strerror(errno) in the latter case ok millert@ | |||||
* | unmute rcmd hostname lookup failure | halex | 2015-03-22 | 1 | -3/+2 | |
| | | | | ok millert@ jung@ | |||||
* | zap #if 0'd code that's been dead since '96 | halex | 2015-03-19 | 1 | -7/+0 | |
| | | | | ok todd@ | |||||
* | remove incorrect statement. the standard *does* require calloc to check | tedu | 2015-03-14 | 1 | -7/+2 | |
| | | | | | for overflow. stop talking about old broken systems, there's little use for such info. | |||||
* | Update comment to match code; Caspar Schutijserlibressl-v2.1.4 | millert | 2015-03-02 | 1 | -2/+2 | |
| | ||||||
* | we don't let strtonum errors bleed through now. | tedu | 2015-02-24 | 1 | -4/+2 | |
| | ||||||
* | Set errno to EINVAL, instead of letting ERANGE escape out. | tedu | 2015-02-24 | 1 | -2/+4 | |
| | | | | | | Printing strerror() in that case will say result too large, even if rounds is actually too small. invalid is less specific, but less incorrect. ok millert | |||||
* | Amend documentation for AI_ADDRCONFIG | jca | 2015-02-16 | 1 | -2/+4 | |
| | | | | ok jmc@ | |||||
* | lsearch and lfind return void * | tedu | 2015-02-15 | 1 | -4/+4 | |
| | ||||||
* | use a width specifier for lists, and Sq rather than Dq for single letters | jmc | 2015-02-11 | 1 | -3/+3 | |
| | | | | to avoid swamping it; | |||||
* | the possible algos for pref should be documented here | tedu | 2015-02-11 | 1 | -4/+11 | |
| | ||||||
* | Use .Rv where appropriate, and move it to RETURN VALUES; | schwarze | 2015-01-29 | 3 | -27/+13 | |
| | | | | | remove .Tn, and a few minor macro adjustments. Patch from Kaspars at Bankovskis dot net. | |||||
* | dial the time back to about 0.1s, closer to the original targets and | tedu | 2015-01-28 | 1 | -4/+4 | |
| | | | | friendlier for users. requested by deraadt | |||||
* | Improve wording in alloca. | tedu | 2015-01-17 | 1 | -7/+5 | |
| | | | | | | | 1. it's not a bug; it's a caveat. 2. "slightly unsafe" gives me the willies. 3. one .Xr to malloc should suffice ok deraadt jmc | |||||
* | Use ">", not ">=" when comparing length to HOST_NAME_MAX since | millert | 2015-01-16 | 1 | -3/+3 | |
| | | | | | otherwise we end up needlessly replacing a NUL with a NUL. OK deraadt@ | |||||
* | Replace HOST_NAME_MAX+1-1 with HOST_NAME_MAX. OK deraad@ | millert | 2015-01-16 | 2 | -8/+8 | |
| | ||||||
* | Replace check for ">= HOST_NAME_MAX+1" with "> HOST_NAME_MAX". | millert | 2015-01-16 | 1 | -1/+1 | |
| | | | | OK deraadt@ | |||||
* | Move to the <limits.h> universe. | deraadt | 2015-01-16 | 23 | -57/+40 | |
| | | | | review by millert, binary checking process with doug, concept with guenther | |||||
* | remove unused variable | chl | 2015-01-15 | 1 | -2/+1 | |
| | | | | ok tedu@ | |||||
* | back in september I did the large abstraction refactoring to allow these | deraadt | 2015-01-15 | 2 | -2/+4 | |
| | | | | other systems to fit into the same mold, so add copyright | |||||
* | Make strlcpy/strlcat slightly easier to read. | millert | 2015-01-15 | 4 | -86/+82 | |
| | ||||||
* | rename blocks to words. bcrypt "blocks" are unrelated to blowfish blocks, | tedu | 2015-01-12 | 1 | -9/+9 | |
| | | | | nor are they the same size. | |||||
* | missing , found by Dongsheng Song | deraadt | 2015-01-08 | 1 | -3/+3 | |
| | ||||||
* | stupid me. need errno.h | tedu | 2015-01-07 | 1 | -1/+2 | |
| | ||||||
* | set errno = EINVAL for invalid salts and hashes in most functions. | tedu | 2015-01-07 | 1 | -12/+20 | |
| | | | | | | | remember to set EACCES in bcrypt_checkpass for hash differences. the higher level crypt_checkpass function will reset errno to EACCES in all cases, which is probably the right behavior, but this change gives code working with the lower level functions the correct errno if they care. | |||||
* | rename kern enter/exit macros to malloc enter/leave to better reflect | tedu | 2015-01-05 | 1 | -7/+7 | |
| | | | | what's going on. | |||||
* | convert clock() to clock_gettime() for improved precision (and accuracy?) | tedu | 2015-01-05 | 1 | -7/+9 | |
| | | | | | guenther suggested using thread time, which actually may improve accuracy if somebody puts this in a threaded program. | |||||
* | copy bcrypt autotune from encrypt(1) and expose via crypt_newhash | tedu | 2014-12-30 | 2 | -5/+43 | |
| | | | | ok deraadt miod | |||||
* | simplify crypt_checkpass. The API promise is that this function doesn't | tedu | 2014-12-24 | 1 | -11/+5 | |
| | | | | | | | | | use global data. The simplest fix is to only check blowfish passwords, and implicitly lock out DES passwords. crypt_checkpass is currently only used in one place, passwd, to verify the local user's password, so this is probably acceptable. Gives people a little more time to migrate away from DES before introduing checkpass into more places. | |||||
* | typo; ok deraadt | sthen | 2014-12-16 | 2 | -3/+3 | |
| | ||||||
* | warn for correct symbol | deraadt | 2014-12-16 | 1 | -2/+2 | |
| | ||||||
* | catch up with swab.c rev. 1.9: | schwarze | 2014-12-12 | 1 | -5/+23 | |
| | | | | update SYNOPSIS and DESCRIPTION and add STANDARDS | |||||
* | update swab() to match the current posix definition. "rationale: none." | tedu | 2014-12-11 | 1 | -50/+24 | |
| | | | | | | rewrite the function to be simpler as well. the compiler can unroll the loop for us if necessary. ok schwarze | |||||
* | Xr and Ox fixes; | jmc | 2014-12-09 | 3 | -12/+18 | |
| | ||||||
* | random seed buffer must be unsigned | deraadt | 2014-12-09 | 1 | -2/+2 | |
| | ||||||
* | no more string(3); | jmc | 2014-12-09 | 1 | -3/+2 | |
| | ||||||
* | fix NAME; | jmc | 2014-12-09 | 1 | -3/+3 | |
| | ||||||
* | improve warnings from rand_r(), rand(), and random()libressl-v2.1.2 | deraadt | 2014-12-09 | 2 | -3/+8 | |
| | | | | | It may take a few iterations to get the tone right. previously discussed with millert | |||||
* | In ingo's new world order, we do not want multiple manual pages describing | deraadt | 2014-12-09 | 3 | -247/+3 | |
| | | | | | | | the same thingies. Therefore these "lists of functions" man pages can go away. Hurray! I've wanted these pages to die for around 10 years! ok ingo (and i think jmc) | |||||
* | more standardsier: cast to int to make sure we keep the negative numbers. | tedu | 2014-12-09 | 1 | -2/+2 | |
| | | | | observed by jonas termansen | |||||
* | Oops, got the sense of the test backwards. Hilarious that we didn't spot it. | deraadt | 2014-12-08 | 1 | -1/+1 | |
| | ||||||
* | Change rand(), random(), drand48(), lrand48(), mrand48(), and srand48() | deraadt | 2014-12-08 | 13 | -159/+267 | |
| | | | | | | | | | | | | | | | | | to returning strong random by default, source from arc4random(3). Parameters to the seeding functions are ignored, and the subsystems remain in strong random mode. If you wish the standardized deterministic mode, call srand_deterministic(), srandom_determistic(), srand48_deterministic(), seed48_deterministic() or lcong48_deterministic() instead. The re-entrant functions rand_r(), erand48(), nrand48(), jrand48() are unaffected by this change and remain in deterministic mode (for now). Verified as a good roadmap forward by auditing 8800 pieces of software. Roughly 60 pieces of software will need adaptation to request the deterministic mode. Violates POSIX and C89, which violate best practice in this century. ok guenther tedu millert | |||||
* | delete documentation for deleted DES interfaces | tedu | 2014-12-08 | 2 | -87/+3 | |
| | ||||||
* | remove cfree from documentation | tedu | 2014-12-08 | 1 | -19/+3 | |
| | ||||||
* | delete obsolete sunos cfree function. ok deraadt millert naddy | tedu | 2014-12-08 | 2 | -42/+3 | |
| | ||||||
* | remove setkey and encrypt interfaces. they are useless and dangerous. | tedu | 2014-12-08 | 3 | -116/+9 | |
| | | | | ok deraadt naddy |