summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-01-11Clear the last_sent_errcode, last_rcvd_errcode and last_reason whenClaudio Jeker
the session comes up instead of at the start of a connect. With this the last errors reported should stick around longer. Reported by linx.net, OK job@
2024-01-11Fix white spaces in TCP.Alexander Bluhm
2024-01-11Display the exported rtr session state and fix a missing indent.Claudio Jeker
OK tb@
2024-01-11Export the rtr session state as string.Claudio Jeker
OK tb@
2024-01-11Add basic support for R_386_GOT32XJeremie Courreges-Anglas
Repairs ld.bfd operations on i386: since the switch to llvm-16 clang emits such relocations (eg one is present in /usr/lib/crtbegin.o). This unbreaks the build of ports/lang/fpc. Help and tests from tb@, ok tb@ kettenis@
2024-01-11Make the -P option work for Trust Anchor certificates as wellJob Snijders
OK tb@
2024-01-11Try to improve RTR version negotiation.Claudio Jeker
RFC8210 and especially draft-ietf-sidrops-8210bis are underspecified when it comes to inital version negotiation. The authors seem to have a very different view on how this works compared to the various RTR cache implementations. Reducing the version on any session close is a problem since it often leads to downgraded sessions where not needed. Instead require the server to send PDUs with their correct version (either a code 4 error, a cache response or cache reset pdu). Extensively tested against various modes of StayRTR. Also tested against routinator which is currently not following the spec (https://github.com/NLnetLabs/routinator/issues/919) and breaks on unknown versions. This is probably not the last change to make RTR version negotiation work but it is a step in the right direction. OK tb@
2011-04-24Here comes the easter bunnytils 2.17 (the last version released against aMiod Vallat
licence mere mortals can understand the terms of); will be connected to the build on an arch-by-arch basis. Testsuites and generated files have been intentionnaly omitted from this import. Peer pressure and ok from at least drahn@ pirofti@ deraadt@
2024-01-11handle MHI M1->M2 state transitions in qwx(4)Stefan Sperling
When the device signals transition to state M1, the MHI driver may set the device into M2 state to save power. The MHI device will be woken up again by the driver ringing the wake doorbell register before doing PCI reads/writes, which qwx(4) already implements.
2024-01-11add XKHTheo de Raadt
2024-01-11don't disable RSA test when DSA is disabled; bug introduced in last commitDamien Miller
2024-01-11ensure key_fd is filled when DSA is disabled; spotted by tb@Damien Miller
2024-01-11make DSA testing optional, defaulting to onDamien Miller
ok markus
2024-01-11make DSA key support compile-time optional, defaulting to onDamien Miller
ok markus@
2024-01-10X509_TRUST: tidy up includesTheo Buehler
2024-01-10X509_TRUST: group together all trust_*() functionsTheo Buehler
Now they are next to the trstandard[] table and listed in the order they appear in the table.
2024-01-10X509_TRUST: hoist trust_compat() to the other end of the fileTheo Buehler
2024-01-10X509_TRUST: start shuffling some code aroundTheo Buehler
Hoist obj_trust() to the top and move the static default_trust() next to its setter.
2024-01-10Rework X509_STORE_CTX_set_{purpose,trust}()Theo Buehler
Split the two codepaths in x509_vfy_purpose_inherit() into its two callers. What remains is gross, but at least a reader has a chance of following all this nonsense without leaving a significant amount of hair behind. In short, purpose and trust are only overridden if they're not already set. Otherwise silently ignore valid purpose and trust identifiers that were passed in and succeed. Error on almost all invalid trust or purpose ids, except 0, because... well... who knows, really? ok jsing
2024-01-10Split UDP PCB table into IPv4 and IPv6.Alexander Bluhm
Having two hash tables instead of a common one, reduces table size and contention on the per table lock. The address family is always known in advance. The lookups and loops are more specific. OK sashan@
2024-01-10Improve rtr_send_error() so that there is no need to log_warnx() before.Claudio Jeker
Now rtr_send_error() supports a format string for the error message so use this fact to make the error report better. OK tb@
2024-01-10Add missing newlines in printf.Claudio Jeker
2024-01-10Inline rsa_is_pss() and rsa_pkey_is_pss()Theo Buehler
It's more explicit and not that much longer. ok jsing
2024-01-10Drop an unnecessary castTheo Buehler
from jsing
2024-01-10Fix print_fp()Theo Buehler
The callback-based printing needs to die. But first BIO_set() will die. We have a FILE *. We have fprintf(). No need to use a static BIO to dump error codes to said stream. This basically undoes an unrelated change of "Move crpytlib.h prior bio.h" from 19 years ago (OpenSSL 25a66ee3). Except we don't cast and check len. ok jsing (who had a nearly identical diff)
2024-01-10Implement log_roa() and log_aspa() and use these functions in printconf.cClaudio Jeker
OK tb@
2024-01-10Update the control.c code to use the new imsg API.Claudio Jeker
OK tb@
2024-01-10fix incorrect capitalisation;Jason McIntyre
2024-01-10If bringing up a queue fails, only tear down the ones that we set upJonathan Matthew
successfully, rather than trying to tear them all down and crashing. tested by hrvoje, who can make queue setup fail sometimes ok bluhm@
2024-01-10pthread_cond_timedwait(3): accept negative absolute timeoutsScott Soule Cheloha
Negative absolute timeouts are valid inputs. With input from kettenis@. Thread: https://marc.info/?l=openbsd-tech&m=170467558006767&w=2 ok guenther@
2024-01-10vmm/vmd: add io instruction length to exit information.Dave Voutila
Add the instruction length to the vm exit information to allower vmd(8) to manipulate the instruction pointer after io emulation. This is preparation for emulating string-based io instructions. Removes the instruction pointer update from the kernel (vmm(4)) as well as the instruction length checks, which were overly restrictive anyways based on the way prefixes work in x86 instructions. ok mlarkin@
2024-01-09extend ChannelTimeout regression test to exercise multiplexed connectionsDamien Miller
and the new "global" timeout type. ok dtucker@
2024-01-09add a "global" ChannelTimeout type to ssh(1) and sshd(8) that watchesDamien Miller
all open channels and will close all open channels if there is no traffic on any of them for the specified interval. This is in addition to the existing per-channel timeouts added a few releases ago. This supports use-cases like having a session + x11 forwarding channel open where one may be idle for an extended period but the other is actively used. The global timeout would allow closing both channels when both have been idle for too long. ok dtucker@
2024-01-09adapt ssh_api.c code for kex-strictDamien Miller
from markus@ ok me
2024-01-09Convert some struct inpcb parameter to const pointer.Alexander Bluhm
OK millert@
2024-01-09The End of Data PDU changed between v0 (RFC6810) and v1 (RFC8210).Claudio Jeker
Add struct rtr_endofdata_v0 and rtr_parse_end_of_data_v0() to handle this oddity. With this bgpd supports RFC6810 and RFC8210 and some form of draft-ietf-sidrops-8210bis OK tb@
2024-01-09rtr_parse_notify() state check is special since we ignore the PDU whenClaudio Jeker
it arrives in a strange moment. The RFC is as helpful about this as one could expect. Still I botched the state check and later added an rtr_send_error() call which made the previous worse. OK tb@
2024-01-09Be more consistent with RTR parse error reporting.Claudio Jeker
Stop calling rtr_send_error() after a parse error in rtr_process_msg(); instead move the calls into the parse functions. Use consistend and useful error text to most rtr_send_error() calls. In parse header also check the minimal version for router key and ASPA pdus before checking their length. OK tb@
2024-01-09Convert the parent process imsg handling over to the new imsg API.Claudio Jeker
This simplifies the code a fair bit and removes direct unchecked memory access to imsg.data. OK tb@
2024-01-09Fix copy-paste error that broke openssl-ruby and openssl regressTheo Buehler
Noticed by anton
2024-01-09remove unused of_device_get_match_data() prototypeJonathan Gray
2024-01-09inline -> static inline ; fixes sparc64 buildJonathan Gray
2024-01-09remove needless commentJonathan Matthew
2024-01-09If there are still mbufs on a ring when we're freeing it,Jonathan Matthew
it'd be a good idea to free them too. ok dlg@
2024-01-09avoid unused var warning on sparc64Jonathan Gray
2024-01-09Delete support for FFS filesystems before the in-inode symlinkPhilip Guenther
optimization. As observed by ali_farzanrad(at)riseup.net, support for these was broken in the 5.5 release in early 2014 by the time_t changes. No one noticed before now, so clearly this isn't something we need to continue to support; rejecting in ffs_validate() is an improvement. Also: simplify DIRSIZ(), drop OLDDIRFMT and NEWDIRFMT, tests of fs_maxsymlinklen against zero, #ifdef tests of FS_44INODEFMT, and remove support for newfs -O0, last used in 2016. ok miod@
2024-01-08Implement RootPathString support in the LoadTable() AML function. FixesMark Kettenis
booting OpenBSD on some (ancient?) Hyper-V version. Tested by Henryk Paluch ok mlarkin@
2024-01-08Only use DIR_VALID in noop modeTheo Buehler
Looking in DIR_TEMP will not find a file, resulting in lots of ugly printf (null). This is another bandaid until I figure out how to fix my fix for this function... with/ok job
2024-01-08Rework rtr_parse_header() and introduce rtr_check_session_id() to makeClaudio Jeker
the initial header parsing simpler. This also allows to simplify the version negotiation dance a bit. More is needed there. OK tb@
2024-01-08Simplify the IMSG_CTL_KROUTE after the change in bgpd.Claudio Jeker
OK tb@