summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2014-11-25macro and typo fixes from kaspars at bankovskis dot netIngo Schwarze
2014-11-25no first person in man pages.Ted Unangst
2014-11-25no need for md5 xrTed Unangst
2014-11-25revert the bludgeoning of DES. if we need a thread safe crypt, maybe it'sTed Unangst
better to find one instead of continuing to mangle this mess.
2014-11-25push some global data down into functions to make this threadlier.Ted Unangst
only doing what's needed for crypt_hashpass. sigh.
2014-11-24introduce a hashspace define and check that there's enough space toTed Unangst
write out a hash. also simplify writing out the hash.
2014-11-24check crypt() for null. noticed by Jonas TermansenTed Unangst
2014-11-23Merge from FreeBSD:Philip Guenther
------------------------------------------------------------------------ r246641 | jilles | 2013-02-10 15:09:15 -0800 (Sun, 10 Feb 2013) | 8 lines fts: Use O_DIRECTORY when opening name that might be changed by attacker. There are uncommon cases where fts_safe_changedir() may be called with a non-NULL name that is not "..". Do not block or worse if an attacker put (a (symlink to) a fifo or device where a directory used to be. MFC after: 1 week ------------------------------------------------------------------------ r241010 | jilles | 2012-09-27 15:05:54 -0700 (Thu, 27 Sep 2012) | 9 lines libc/fts: Use O_CLOEXEC for internal file descriptors. Because fts keeps internal file descriptors open across calls, making such descriptors close-on-exec helps not only multi-threaded applications but also single-threaded applications. In particular, this prevents passing a temporary file descriptor for saving the current directory to processes created via find -exec. ------------------------------------------------------------------------ ports scan for possible O_CLOEXEC affected programs by sthen@ ok millert@
2014-11-22mop up a barely started project... getting in the way of grepping the tree!Theo de Raadt
2014-11-22Fix incorrect escape.Anthony J. Bentley
2014-11-21MPE support, begone. ok teduTheo de Raadt
2014-11-21space needed between macro args and punctuation;Jason McIntyre
2014-11-21add ERRORS, HISTORY, AUTHORS, Copyright year, and some missing macros;Ingo Schwarze
ok tedu@ on a previous version
2014-11-21Let crypt_checkpass() set EACCES after bcrypt_checkpass() failure;Ingo Schwarze
ok tedu@
2014-11-21Initialize the xrun attribute to SIO_IGNORE in sio_sun_getpar(). FoundAlexandre Ratchov
by stu@, thanks!
2014-11-21libraries shouldnt print to stderr when things dont go their way.David Gwynne
switch fprintf(stderr) over to event_warn() on malloc failure. fix up an errant newline in an existing event_warn while there. originally i just wanted to delete the fprintf diff from nicm@ who is away from a keyboard right now so cant commit guenther@ agrees with the idea
2014-11-21evbuffer_read will return 0 one an end of file condition.David Gwynne
2014-11-21change prototype for crypt_newhash. the login_cap_t is a holdover from itsTed Unangst
pwd_gensalt origins, but a string argument works equally work and is more friendly to consumers beyond local user accounts. ok deraadt
2014-11-20One of these optimized stubs creates some incredibly subtle damage,Theo de Raadt
causing as(1) to create a wrong nop-sled for text segment aligns. Revert, until it is found and fixed.
2014-11-20Oops, make sure camellia is compiled on platforms without an arch-specificMiod Vallat
Makefile.inc (i.e. landisk and m88k)
2014-11-20split crypt_checkpass off into a new fileTed Unangst
2014-11-20Be more POSIXy by using blksize_t (a.k.a. int32) for st_blksize, rather than ↵Kenneth R Westerback
the current uint32_t. ok guenther@ deraadt@
2014-11-20Yet more #include de-duplication.Kenneth R Westerback
ok deraadt@ tedu@
2014-11-20Add amd64 assembler versions of some standard functions to libc. TheReyk Floeter
code is already used in the kernel and the files are unmodified copies from src/sys/lib/libkern/arch/amd64/. Depending on the function, this gives us some speedup in userland. ok deraadt@, no objections from miod@
2014-11-20zap some stray commas;Jason McIntyre
2014-11-20add evbuffer_expand to NAME;Jason McIntyre
2014-11-20put MLINKS in the order they appear in the man page, so i don;t go blindJason McIntyre
trying to check what's missing;
2014-11-20Document behavior of atexit() when called in a DSO that is later unloaded.Philip Guenther
Would be nice to document when/where this originated (in glibc?) if anyone knows... tweaks by schwarze@ ok jmc@ espie@ kettenis@ schwarze@ dimitry(at)google.com
2014-11-20Merge from FreeBSD:Philip Guenther
-------- r260571 | jilles | 2014-01-12 12:30:55 -0800 (Sun, 12 Jan 2014) | 9 lines fts: Stat things relative to the directory fd, if possible. As a result, the kernel needs to process shorter pathnames if fts is not changing directories (if fts follows symlinks (-L option to utilities), fts cannot open "." or FTS_NOCHDIR was specified). Side effect: If pathnames exceed PATH_MAX, [ENAMETOOLONG] is not hit at the stat stage but later (opendir or application fts_accpath) or not at all. -------- Prompted by a similar diff from (enh (at) google.com), who also reran a performance test. ok millert@
2014-11-20oops. malloc is in section 3.Ted Unangst
2014-11-20sbrk is long dead. clarify that the data segment is malloc and anon mmap.Ted Unangst
2014-11-20document the only macro i find useful when working with evbuffers.David Gwynne
2014-11-20might help to Xr evbuffer_new 3David Gwynne
2014-11-20im not good at grammar things.David Gwynne
from schwarze@
2014-11-20use .Va to say errno is a variable.David Gwynne
from schwarze@
2014-11-19fix erroneous capitalisation of a word in the middle of a sentence.David Gwynne
from schwarze again
2014-11-19less worse escapes for \ from ingo. im sure there's a much nicer way toDavid Gwynne
represent newlines still.
2014-11-19use .In to specify includes.David Gwynne
2014-11-19ingo also points out we're documenting things that work withDavid Gwynne
evbuffers, not evbufbuffers.
2014-11-19ingo points outDavid Gwynne
.Fo evbuffer_readln .Fa "struct evbuffer *buf" .Fa "size_t *read_out" .Fa "enum evbuffer_eol_style eol_style" .Fc is more readable mdoc for very long prototypes than lines like .Fn "evbuffer_readln" "struct evbuffer *buf" "size_t *read_out" "enum evbuffer_eol_style eol_style"
2014-11-19i got sick of having to read the source code to know what theDavid Gwynne
evbuffer_foo functions do. reyk, nicm, jmc, and schwarze seem to support a manpage as a reasonable solution to this problem. im putting this in a separate manpage because i find they get too cumbersome when they get too big. ingo agrees (and suggests even this might be too big). the file is evbuffer_new.3 rather than evbuffer.3 because we document functions. ok reyk@ nicm@ jmc@ schwarze@ this is rough, everyone has tweaks coming.
2014-11-19BUGS is no longer relevant, according to nicm;Jason McIntyre
2014-11-19delete the KERN_VNODE sysctl. it fails to provide any isolation from theTed Unangst
kernel struct vnode defintion, and the only consumer (pstat) still needs kvm to read much of the required information. no great loss to always use kvm until there's a better replacement interface. ok deraadt millert uebayasi
2014-11-19Nuke yet more obvious #include duplications.Kenneth R Westerback
ok deraadt@
2014-11-19include camellia.h using the public include pathBrent Cook
2014-11-19Fix a memory leak with pkey in client key exchangeDoug Hogan
Based on boringssl commit: 1df112448b41c3568477f3fcd3b8fc820ce80066 ok miod@ jsing@
2014-11-19abort() doesn't call atexit handlers any morePhilip Guenther
2014-11-18add crypt_newhash to NAME and add an MLINK;Jason McIntyre
2014-11-18Argh, another bug introduced in r1.3; Dmitry Eremin-SolenikovMiod Vallat
2014-11-18Nuke some obvious #include duplications.Kenneth R Westerback
ok espie@ deraadt@ millert@ tedu@