summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldapd/util.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Silence -Wsign-compare whining in bsnprintf()tb2020-11-291-2/+2
| | | | | | | This warning was present since an incorrect cast was removed in r1.11. Add the cast to the correct place, i.e., cast to the wider type. ok florian martijn
* The ber_* namespace is used by liblber since time immemorial,tb2019-10-241-10/+10
| | | | | | | | | | | | so move our BER API to the unused ober_* prefix to avoid some breakage in ports. Problem diagnosed by jmatthew with ber_free() in samba, but there are many others as pointed out by sthen. tests & ok rob ok sthen (who had an almost identical diff for libutil) "go head hit it" deraadt
* snprintf/vsnprintf return < 0 on error, rather than -1.deraadt2019-07-031-2/+2
|
* Fix format string errors in log messages and update ldapd to use relayd's log.creyk2018-05-151-5/+5
| | | | OK benno@ jmatthew@
* Kill ber.c support for direct fd read/writesjca2018-02-081-3/+1
| | | | | This mechanism is already unused and annotated with lots of XXX's, no need to keep it around. ok claudio@
* work on making log.c similar in all daemons:benno2017-01-201-1/+2
| | | | | | | move daemon-local functions into new logmsg.c, and reduce the (mostly whitespace) differences so that log.c's can be diffed easily. ok krw@ jmatthew@
* bzero -> memset. No binary change.mmcc2015-12-241-4/+4
|
* use SOCK_NONBLOCK instead of fcntljmatthew2015-11-021-2/+2
| | | | ok dlg@
* unsigned char casts for ctypederaadt2013-11-231-2/+2
| | | | ok jca
* bunch of format string cleanups, removing %i, signed vs unsigned, and evenderaadt2013-11-021-3/+3
| | | | | a few long long's ok jmatthew
* Protect against fd exhaustion when reopening database files. Only acceptjmatthew2012-06-161-1/+14
| | | | | | | | client or control connections when there are at least 8 fds available, and close a connection before calling imsg_read if it would be unable to accept an fd from the parent process. ok gilles@
* Move around some functions to ease re-use from ldapctl.martinh2010-06-151-1/+104
|
* Initial import of ldapd, a small LDAP daemon. Work in progress.martinh2010-05-311-0/+98
ok deraadt@ jacekm@ gilles@ back@ henning@ blambert@