Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fail early if a (universal) primitive type identifies as constructed, or if a | 2019-05-12 | 1 | -1/+17 | ||
| | | | | | | boolean has a contents length other than 1. ok claudio@ | |||||
* | Enforce minimal number of octets for tag > 30. | 2019-05-12 | 1 | -1/+8 | ||
| | | | | "sure" claudio@ | |||||
* | In long form encoding, explicitly prohibit an initial length octet of 0xff | 2019-05-12 | 1 | -1/+7 | ||
| | | | | | | which is reserved for future use. ok claudio@ | |||||
* | The BER API is currently used by ldap, ldapd, ldapctl, ypldap, snmpd, and | 2019-05-11 | 6 | -5/+1984 | ||
| | | | | | | | | | | | | snmpctl. Separate copies of ber.[ch] have existed and been maintained in sync in ldap, ldapd, ypldap and snmpd. This commit moves the BER API into /usr/lib/libutil. All current consumers already link libutil. ldapd and snmpd regress passes, and release builds. With help from tb@ and guenther@. ok deraadt@, tb@ | |||||
* | missing dots after ".%P pp"; the case of btree(3) was | 2019-04-23 | 1 | -3/+3 | ||
| | | | | | reported by Fabio Scotoni <fabio at esse dot ch>; also garbage collect one .Tn while here | |||||
* | I am retiring my old email address; replace it with my OpenBSD one. | 2019-01-25 | 1 | -3/+3 | ||
| | ||||||
* | Change imsg header definitions to use standard types. | 2019-01-20 | 3 | -9/+11 | ||
| | | | | ok deraadt@ claudio@ | |||||
* | Calling llabs(LLONG_MIN) is undefined behavior, llvm 7.0.1 does not | 2019-01-14 | 1 | -5/+9 | ||
| | | | | | | work with our old code. In fmt_scaled() move the check before calling llabs(). found by regress/lib/libutil/fmt_scaled; OK deraadt@ millert@ tedu@ | |||||
* | explicitly mention local processes; from geoff hill | 2018-09-26 | 1 | -3/+3 | ||
| | | | | ok nicm | |||||
* | delete volatile intended to silence whiny old compilers around vfork. | 2018-08-10 | 1 | -2/+2 | ||
| | | | | | This variable is only used in the parent context so there is no issue. ok kettenis | |||||
* | constrain fractional part to [0-9] (less confusing to static analysis); ok ian@ | 2018-05-14 | 1 | -2/+5 | ||
| | ||||||
* | Fix function argument names, from Abel Abraham Camarillo Ojeda via jmc@. | 2018-02-16 | 1 | -9/+9 | ||
| | ||||||
* | Adjust references for sysctl(3) to sysctl(2) | 2018-01-12 | 2 | -6/+6 | ||
| | ||||||
* | Make a few internal symbols static and add a Symbols.map version script | 2017-12-14 | 5 | -13/+107 | ||
| | | | | | | to control which symbols are exported from the shared library. ok guenther@, deraadt@, jca@ | |||||
* | It's the imsg_compose(3) who accepts 'fd' argument, not imsg_create(3). | 2017-12-06 | 1 | -9/+9 | ||
| | ||||||
* | spacing (in EXAMPLES code) | 2017-05-03 | 1 | -3/+3 | ||
| | ||||||
* | add previous to NAME; | 2017-04-20 | 1 | -2/+5 | ||
| | ||||||
* | Add getptmfd(), fdopenpty(), fdforkpty() functions. These allow programs | 2017-04-20 | 4 | -19/+96 | ||
| | | | | | | | | | to separate the open(/dev/ptm) from the ioctl(PTMGET) for privilege separation or pledge(). Based on a diff from reyk@. ok deraadt millert | |||||
* | use freezero() instead of explicit_bzero+free | 2017-04-18 | 1 | -3/+2 | ||
| | ||||||
* | Use freezero(3) for the imsg framework in imsg_free(3) and ibuf_free(3). | 2017-04-11 | 2 | -4/+4 | ||
| | | | | | | | | | | In our privsep model, imsg is often used to transport sensitive information between processes. But a process might free an imsg, and reuse the memory for a different thing. iked uses some explicit_bzero() to clean imsg-buffer but doing it in the library with the freezero() is less error-prone and also benefits other daemons. OK deraadt@ jsing@ claudio@ | |||||
* | Use C99 types (uint32_t) instead of BSD (u_int32_t) - the former are | 2017-03-24 | 3 | -37/+37 | ||
| | | | | | | more portable. Add stdint.h to the headers in imsg_init(3). No objections from millert@. | |||||
* | Grow buffers using recallocarray, to avoid the potential dribble that | 2017-03-17 | 1 | -2/+2 | ||
| | | | | | | | the standard realloc*() functions can leave behind. imsg buffers are sometimes used in protocol stacks which require some secrecy, and layering violations would be needed to resolve this issue otherwise. Discussed with many. | |||||
* | Fix overly-conservative overflow checks on mulitplications and add checks | 2017-03-16 | 1 | -3/+11 | ||
| | | | | | on additions. This allows scan_scaled to work up to +/-LLONG_MAX (LLONG_MIN will still be flagged as a range error). ok millert@ | |||||
* | Collapse underflow and overflow checks into a single block. | 2017-03-15 | 1 | -7/+4 | ||
| | | | | ok djm@ millert@ | |||||
* | Catch integer underflow in scan_scaled reported by Nicolas Iooss. | 2017-03-15 | 1 | -1/+6 | ||
| | | | | ok deraadt@ djm@ | |||||
* | fix signed integer overflow in scan_scaled. Found by Nicolas Iooss | 2017-03-11 | 1 | -1/+14 | ||
| | | | | using AFL against ssh_config. ok deraadt@ millert@ | |||||
* | zap trailing whitespace; | 2016-10-15 | 1 | -3/+3 | ||
| | ||||||
* | Fixup the example for msgbuf_write() and imsg_read() to check the | 2016-10-10 | 1 | -5/+11 | ||
| | | | | | | | | error cases for -1 and 0 explicitly (it initially only checked for -1, I updated it to also check for 0, and rzalamena@ figured out that 0 has to be checked in a differently). OK millert@ rzalamena@ | |||||
* | Use a constant format string and output the variable part with %s | 2016-08-30 | 1 | -11/+11 | ||
| | | | | ok krw@ millert@ | |||||
* | Use O_CLOEXEC when opening fds local to a function | 2016-08-30 | 4 | -12/+13 | ||
| | | | | ok jca@ krw@ | |||||
* | Pull in <stdio.h> for NULL | 2016-08-27 | 2 | -2/+4 | ||
| | | | | ok deraadt@ | |||||
* | Refer to /etc/passwd consistently as the "legacy password file" and | 2016-08-14 | 2 | -8/+10 | ||
| | | | | | | remove some references to differences between versions 6 and 7. ok jmc, millert, tedu | |||||
* | Fix example: long long should be print with %lld | 2016-07-16 | 1 | -3/+3 | ||
| | ||||||
* | Remove obsolete caveat. OK deraadt@ | 2016-05-18 | 1 | -9/+2 | ||
| | ||||||
* | for some time now mandoc has not required MLINKS to function | 2016-03-30 | 1 | -57/+1 | ||
| | | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung | |||||
* | mention that ibuf_free() does not need a NULL check. | 2015-12-29 | 1 | -2/+5 | ||
| | ||||||
* | check for NULL in ibuf_free(). | 2015-12-29 | 1 | -1/+3 | ||
| | | | | | ok and slight improvement, mmcco@ ok semarie@ and encouragement tedu@ krw@ | |||||
* | Switch login(3) from lseek+read/write to pread/pwrite and only do the pread() | 2015-12-28 | 2 | -14/+15 | ||
| | | | | | | | | if the data is needed. Use O_CLOEXEC on the internal fd as MT paranoia. Fix cast in offset calculation; delete register keyword; prefer memset() over bzero() ok millert@ | |||||
* | Add a cast to silence a compiler warning by clang on FreeBSD. | 2015-12-09 | 1 | -2/+2 | ||
| | | | | | From Craig Rodrigues. ok tedu@ | |||||
* | Do not loop on EAGAIN in imsg_read(). Better to return the error to the | 2015-12-05 | 2 | -9/+7 | ||
| | | | | | caller and let him do another poll loop. This fixes spinning relayd processes seen on busy TLS relays. OK benno@ henning@ | |||||
* | Remove three NULL-checks before free(). ok millert@ | 2015-11-27 | 3 | -11/+7 | ||
| | ||||||
* | Use the backchannel for all error messages instead of syslog(3). | 2015-11-26 | 1 | -16/+15 | ||
| | | | | OK deraadt@ beck@ | |||||
* | creat() -> open equiv; from Frederic Nowak | 2015-11-11 | 1 | -2/+2 | ||
| | ||||||
* | update NAME section to include all documented functions, | 2015-11-10 | 1 | -3/+3 | ||
| | | | | | | or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze | |||||
* | Don't Xr flock, since that is not the locking method used. | 2015-10-15 | 1 | -3/+2 | ||
| | | | | ok millert | |||||
* | Remove useless quoting from .Fo and .Fn function names, to prevent | 2015-09-14 | 1 | -3/+3 | ||
| | | | | | | development of a cargo cult in case people look at existing files for examples. This achieves a consistent .Fo and .Fn quoting style across the whole tree. | |||||
* | in the SYNOPSIS, make void function arguments explicit | 2015-09-14 | 2 | -7/+7 | ||
| | ||||||
* | reduce more .Nd to one line and kill more .Tn | 2015-09-10 | 1 | -4/+3 | ||
| | ||||||
* | reduce .Nd to one line and kill .Tn while here | 2015-09-10 | 2 | -10/+6 | ||
| | ||||||
* | Remove lies about openpty(4) searching for a free pseudo-tty by iterating | 2015-08-28 | 1 | -12/+6 | ||
| | | | | through all existing pseudo-tty devices in /dev. |