summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2024-10-09Make it possible to configure tcp md5 and ipsec on rtr as wellClaudio Jeker
Single out the auth_config yacc rules. Even though this requires an extra merge_auth_conf() function to handle manual IPsec setups but even with that this seems like a net gain. There is no rtr cache that does tcp md5 on OpenBSD so those bits remain untested for now. OK tb@
2024-10-09correct indentationJonathan Gray
2024-10-08Extend the socket handover from parent to rtr process to also include teardownClaudio Jeker
This is needed to support tcp md5sum and ipsec auth for rtr. OK tb@
2024-10-08remove unused structJonathan Gray
2024-10-07When acme-client is run with -v, show the account URI from the LocationStuart Henderson
header sent by the server in response to the newAccount API call (used for every cert request). This is useful if you want to set a CAA DNS record restricting issuance to a specific user account, rather than just "all of $whichever_acme_CA". ok florian
2024-10-07use the Ox macro instead of "OpenBSD";Jason McIntyre
2024-10-07merge unbound 1.21.1Stuart Henderson
2024-10-07Fix unbound CVE-2024-8508, put a limit on resources used for handlingStuart Henderson
DNS compression. OK florian From unbound 1.21.1 (rest will be merged shortly).
2024-10-07Add comment accidentally omitted on commitTheo Buehler
2024-10-07update crl number draft linkTheo Buehler
2024-10-07The two usual use cases are sysupgrade and sysupgrade -s, jumpingTheo de Raadt
forward to the same key, or the key+.1. But sometimes you want to update an older machine far forward (either with -s, or with -R), and the required key might not exist on-disk. Since getting the key isn't automated, people make some poor decisions to get the key. Previous to 7.6 the situation was worse, (and obviously older releases will have the old sysupgrade script, though you can copy this one to those machines and it will work, but please do that securely..) Moving forward this improves the workflow: a new set of keybundles (signed by older keys) have been made available so that sysupgrade can securely and automatically download the required key. ok job tb beck sthen
2024-10-07rpki-client: fix validity interval checkTheo Buehler
The language in RFC 5280, section 4.1.2.5 includes the end points of the validity interval. Reported by Tom Harrison ok claudio job
2024-10-07rpki-client: fix seqnum upper boundTheo Buehler
An ASN1_INTEGER doesn't contain the ASN.1 encoding in its data. It contains a BIGNUM. In particular, there's no padding octet for integers with the top bit of the top octet set. Do the check the dumb way and check all the parts individually: non-negative, not larger than 20 octets and bit 159 not set. Reported by Tom Harrison ok claudio job
2024-10-07drop redundant AF attach ioctlKlemens Nanni
SIOCAIFADDR_IN6 to configure an IPv6 address does everything SIOCIFAFATTACH does, i.e. it enables IPv6 on the interface if not done so already. vm.conf(5) 'local inet6' works as before. OK mlarkin
2024-10-05error on long locator lines, don't overflow buffersJonathan Gray
found with afl, feedback and ok millert@
2024-10-02Move some PCI MMIO defines from vmm(4) kernel headers to userland.Dave Voutila
vmm(4) doesn't need this information anymore. vmd(8) is the only consumer of this information. ok mlarkin@
2024-10-02No need to check as->established before calling pfkey_remove().Claudio Jeker
Remove the extra checks in the caller and simplify some code because of that. OK tb@
2024-10-02Adding pkg_add from stdin hasn't worked in ages. It was somethingTheo Buehler
we inherited from the initial implemention on FreeBSD which has made no sense in years. prompted by a diff by Johannes Thyssen Tishman from espie
2024-10-01Extend Log->system to support the same features as BaseState->systemTheo Buehler
In order to support privsep in tags, we need to be able to pass some code values in child/parent. from espie, tested by sthen, ok giovanni
2024-10-01Use auth_conf.method instead of auth_state.method. The latter is always 0.Claudio Jeker
2024-10-01Explicitly set peer.auth_conf.method, the auth_state value is neverClaudio Jeker
initialized in the SE so bgpctl did always see 0, auth_conf.method is on the other hand properly shared. OK tb@
2024-10-01In merge_peers also copy over the auth_conf from the new peer to the oldClaudio Jeker
since that one is kept. OK tb@
2024-10-01Fix typo in commentClaudio Jeker
OK tb@
2024-10-01Adjust to the pfkey changes in bgpd.Claudio Jeker
OK tb@
2024-10-01Rework the pfkey and tcp md5 API to not depend on struct peer.Claudio Jeker
Instead use struct auth_config and struct auth_state in the pfkey calls and those tcp_md5 calls where it matters. This is preparation work to allow RTR to use TCP MD5 as well. OK tb@
2024-09-30Improve some currently impossible error path in log_ext_subtype().Claudio Jeker
Mainly handle unknown ext-communities better and handle the special case of type == -1. OK tb@
2024-09-30In bgpd_rtr_connect() do the setsockopt dance for IP_TOS and TCP_NODELAYClaudio Jeker
before calling connect(). This way it happens for sure and on top the TOS is already set on the initial SYN. OK tb@
2024-09-29sync synopsis and usage, sort commands, fix their spacingKlemens Nanni
OK input lucas
2024-09-27rpki-client: free deltas in rrdp_session_parse() as in rrdp_repo_free()Theo Buehler
ok claudio
2024-09-27rpki-client: check for getline error when reading the skiplist fileTheo Buehler
ok claudio
2024-09-26remove unneeded includes; ok dv@ mlarkin@Jonathan Gray
2024-09-25Improve description of -f.Florian Obser
ok sthen, florian Committing on behalf of jmc as requested.
2024-09-25correct macro for -R entry;Jason McIntyre
2024-09-25When generating UPDATE handle the message size limit better.Claudio Jeker
First of all warn that a prefix was dropped. In the generate an update code handle possible overflows of attributes and NLRI and withdraw the affected prefix. This way the peer will not have stale data. OK tb@
2024-09-25sysupgrade: add -R #.# to try to use a specific release version ratherStuart Henderson
than the immediate +0.1. print an https://ftp.openbsd.org/... URL where the new signify pubkey can be found if not present. no guarantees: we only test +0.1, but jumping further does work quite often (and if tight on disk, can work better than multiple steps) - this avoids editing the script if you're going to do it anyway. "Only upgrades from one version to the next are tested. Skipping versions may work. Downgrading is unlikely to work." discussed with deraadt chris florian, ok deraadt
2024-09-25document why sys/param.h is usedTheo de Raadt
2024-09-24- VM(s) -> VMsJason McIntyre
- simpler tense - fix the -width parameter - add -nosplit to AUTHORS
2024-09-24vmd(8) manpage change for shutdown behaviourMike Larkin
Document the shutdown behaviour for vmd(8). Suggested via bugs@ via eric at mulh.net. ok jmc@, bluhm@
2024-09-24Remove -r toggle and generally be less smart.Florian Obser
The default is to install the next release. Snapshots are only installed when invoked with -s. The logic on what to do per default got out of hand and it was very difficult to reason about what sysupgrade(8) actually did. deraadt@ then suggested that we should dumb it all down, sysupgrade(8) is there to upgrade from one release to the next. More advance usage needs to be requested by the user. With all this simplification we can now be a bit more smart to work out what the next release is. With that, snapshots right before a release can be sysupgrade(8)'ed to the official release. OK sthen on a previous version that was much more complicated but allowed shortly-before-release -> release upgrade testing sthen on this version Guidance, prodding & OK deraadt
2024-09-21add route-to exampleaisha
ok benno@
2024-09-21vmm.h is a needed include nowMike Larkin
2024-09-20remove unneeded semicolons; checked by millert@Jonathan Gray
2024-09-19Shift 1U rather than 1 to avoid -Wsign-compare whiningTheo Buehler
claudio agress
2024-09-19Move rpki-client to 9.3Job Snijders
requested by tb@
2024-09-19Remove spaces before EOL.Claudio Jeker
2024-09-19document how to add a restricted socketDenis Fondras
OK claudio@
2024-09-18zic: cherrypick support for %z in time zone formatsTodd C. Miller
This extends the zic input format to add support for %z, which expands to a UTC offset in as-short-as-possible ISO 8601 format. It's intended to better support zones that do not have an established abbreviation already. tzdata2024b and higher require a version of zic that supports the %z format. From upstream tzcode. OK beck@
2024-09-16Mention psp(4) in vm.conf(5) man page.Alexander Bluhm
from hshoexer@; OK mlarkin@
2024-09-15__STDC_VERSION__ not __STDC_VERSION; ok miod@Jonathan Gray
2024-09-15Improve the log messages and white spaces.YASUOKA Masahiko