summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-07-04somehow, when I created this file, I copied the licence of the other filesMarc Espie
around, but with my name instead... which makes absolutely no sense whatsoever, especially the regents part. replace with ISC licence, much saner. (as noticed by miod@, who else ?)
2022-07-04Ignore any CERT payload after the first instead of failing the exchangeTobias Heider
when more than one is received. The first CERT is always the leaf certificate, additional payloads can be used to send intermediate certs which iked can not handle at the moment. This fixes exchanges where the certificate chain is still valid because matching intermediate certs are available locally in /etc/iked. Reported and tested by Loïc Revest <l.revest (at) apc.fr> ok mbuhl@
2022-07-04Add TEST_REGRESS_CACHE_DIR which, if set, is used to cache regress testDarren Tucker
names that have succeeded and skip those on a re-run.
2022-07-04Fix error in the comparison of the Child SA nonces to decide whichTobias Heider
SA shall be deleted. ni should be set to the minimum nonce for the exchange intitiated by us while nr should be the smaller of the nonces of the simultaneous exchange initiated by the peer, which is stored in sa_simulat. This fixes the ni < nr comparison below and makes sure our Child SA is only deleted in the correct case as specified in RFC 7296. Reported by and fix from Sibar Soumi <sibar.soumi (at) achelos.de> ok mbuhl@
2022-07-04Sort panes by index not by ID, GitHub issue 3249.Nicholas Marriott
2022-07-04Mouse clicks could change current item, so work it out again. GitHubNicholas Marriott
issue 3242.
2022-07-03Reword a commentTheo Buehler
2022-07-03Unwrap a lineTheo Buehler
2022-07-03Revert previous changeset: While using .Nm without an argumentJob Snijders
in the SYNOPSIS is not strictly wrong, the conventional way is to always state the name explicitely in the SYNOPSIS. With help from Ingo Schwarze
2022-07-03use sys/types.h to get at __dead.Florian Obser
Pointed out by & OK deraadt
2022-07-03thou shalt not include sys/cdefs.h because it is not standardized, theTheo de Raadt
file to be used is sys/types.h
2022-07-03Update instructions for using curl's mk-ca-bundle script.Stuart Henderson
2022-07-03Simplify certificate list handling code in legacy server.Joel Sing
A client is required to send an empty list if it does not have a suitable certificate - handle this case up front, rather than going through the normal code path and ending up with an empty certificate list. This matches what we do in the TLSv1.3 stack and will allow for ruther clean up (in addition to making the code more readable). Also tidy up the CBS code and remove some unnecessary length checks. Use 'cert' and 'certs' for certificates, rather than 'x' and 'sk'. ok tb@
2022-07-03Simplify certificate list handling code in legacy client.Joel Sing
Tidy up CBS code and remove some unnecessary length checks. Use 'cert' and 'certs' for certificates, rather than 'x' and 'sk'. ok tb@
2022-07-03Instead of the custom <div class="manual-text">, use the standardIngo Schwarze
HTML <main> element. The benefit is that it has the ARIA landmark role "main" by default. To ease the transition for people using their own CSS file instead of mandoc.css, retain the custom class for now. I had this idea in a discussion with Anna Vyalkova <cyber at sysrq dot in>. Patch from Anna, slightly tweaked by me.
2022-07-03Nm is already definedJob Snijders
From Daniel Ebdrup
2022-07-03Create virtual interfaces upfront if specified on the command lineKlemens Nanni
In cases like `sh /etc/netstart pair1 pair2', one of hostname.pair{1,2} will contain a "patch pair{2,1}" command which expects the other interface to exist. If none exist, this would fail and netstart had to be run separately or "patch"ed interface had to be manually created before. There are other use cases where interfaces depend on each other, so before (re)configuring an explicit list of interfaces, create all virtual ones upfront so that a single netstart invocation will configure everything correctly without having reflect dependencies in multiple ordered netstart invocations. Copy isin() from install.sub to help. Feedback OK halex
2022-07-03Implement SVCB and HTTPS record types.Florian Obser
Testing caspar, otto OK otto
2022-07-03Simplify tls1_ec_nid2group_id()Theo Buehler
Replace long switch statement duplicating data from nid_list[] with a linear scan. requested by and ok jsing
2022-07-03Simplify tls1_ec_group_id2{bits,nid}()Theo Buehler
Instead of a nonsensical NULL check, check nid_list[group_id].{bits,nid} is not 0. This way we can drop the group_id < 1 check. ok jsing
2022-07-02Call certificate variables cert and certs, rather than x and skJoel Sing
ok tb@
2022-07-02Make -s accept HUP like kill(1) and GNU timeout(1) doKlemens Nanni
timeout.c's parse_signal() basically does what kill.c's signame_to_num() does, except it expects "SIG" in string signals. Borrow the isalpha() check from kill.c to get the same behaviour. OK deraadt
2022-07-02Use ASN1_INTEGER to parse/build (Z)LONG_itJoel Sing
Rather than having yet another (broken) ASN.1 INTEGER content builder and parser, use {c2i,i2c}_ASN1_INTEGER(). ok beck@
2022-07-02syncTheo de Raadt
2022-07-02dhclient(8) has been undergoing replacement with "ifconfig xxx inet auto"Theo de Raadt
for a couple of years, backed by dhcpleased(8), which provides much better dns handling. The next step is to make the dhclient simply execve ifconfig in that way, and provide syslog warnings about deprecated options along the way. This way, we can find the last few dhclient users, and what they are missing. ok florian krw
2022-07-02Remove references to openssl/obj_mac.hJoel Sing
Consumers should include openssl/objects.h instead.
2022-07-02Stop using ssl{_ctx,}_security() outside of ssl_seclevel.cTheo Buehler
The API is ugly and we can easily abstract it away. The SSL_SECOP_* stuff is now confined into ssl_seclevel.c and the rest of the library can make use of the more straightforward wrappers, which makes it a lot easier on the eyes. ok beck jsing
2022-07-02Avoid c99 features, come on, this is supposed to be highly portable softwareTheo de Raadt
ok florian
2022-07-02Adjust to new tls1_ec_nid2group_id API.Theo Buehler
2022-07-02Rename uses 'curve' to 'group' and rework tls1 group API.Theo Buehler
This reworks various tls1_ curve APIs to indicate success via a boolean return value and move the output to an out parameter. This makes the caller code easier and more consistent. Based on a suggestion by jsing ok jsing
2022-07-02Fix off-by-one in length check.Theo Buehler
Spotted by jsing
2022-07-02remove machine/lock.h where unusedJonathan Gray
Previously for __cpu_simple_lock parts. Now only hppa and m88k use __cpu_simple_lock (and hppa uses atomic.h for it). ok miod@ visa@
2022-07-02Unlock peer in the SOCK_STREAM and SOCK_SEQPACKET error path.Vitaliy Makkoveev
Reported-by: syzbot+a648408d6a58fd40b59a@syzkaller.appspotmail.com by anton@
2022-07-02Make tls1_ec_curve_id2nid() return explicit NID_undef instead of 0 on errorTheo Buehler
and adjust the only caller that didn't check for NID_undef already. ok beck jsing
2009-07-31By popular demand and peer pressure, check-in work in progress work to supportMiod Vallat
the Yeelong Lemote mips-based netbook. Kernel bits only for now, needs polishing; most of this work done during h2k9 last month, although the porting effort started earlier this year.
2022-07-02Remove unused device poll functions.Visa Hankala
Also remove unneeded includes of <sys/poll.h> and <sys/select.h>. Some addenda from jsg@. OK miod@ mpi@
2022-07-02Add /etc/rpki/skiplistDaniel Jakots
ok tb
2022-07-02syncTheo de Raadt
2022-07-01Remove PIPEXCSESSION ioctl(2) call only from npppd(8).Vitaliy Makkoveev
Long time ago pipex(4) sessions can't be deleted until pipex(4) queues become empty. Such dead sessions stay linked to the stack and the session `ip_forward' flag was used to prevent packets processing. But now pipex(4) session could be closed just after close request. This logic became unnecessary. PIPEXCSESSION ioctl(2) will be removed from kernel with upcoming diff. ok yasuoka@
2022-07-01Make fine grained unix(4) domain sockets locking. Use the per-socketVitaliy Makkoveev
`so_lock' rwlock(9) instead of global `unp_lock' which locks the whole layer. The PCB of unix(4) sockets are linked to each other and we need to lock them both. This introduces the lock ordering problem, because when the thread (1) keeps lock on `so1' and trying to lock `so2', the thread (2) could hold lock on `so2' and trying to lock `so1'. To solve this we always lock sockets in the strict order. For the sockets which are already accessible from userland, we always lock socket with the smallest memory address first. Sometimes we need to unlock socket before lock it's peer and lock it again. We use reference counters for prevent the connected peer destruction during to relock. We also handle the case where the peer socket was replaced by another socket. For the newly connected sockets, which are not yet exported to the userland by accept(2), we always lock the listening socket `head' first. This allows us to avoid unwanted relock within accept(2) syscall. ok claudio@
2022-07-01Remove extra line leftover from merge conflict. ok djm@Darren Tucker
2022-07-01use consistent field names (s/char/byte) in format descriptionDamien Miller
2022-07-01bump up loglevel from debug to info when unable to open authorizedDamien Miller
keys/principals file for errno != ENOENT; bz2042 ok dtucker
2022-07-01Don't leak the strings allocated by order_hostkeyalgs() andDarren Tucker
list_hostkey_types() that are passed to compat_pkalg_proposal(). Part of github PR#324 from ZoltanFridrich, ok djm@ This is a roll-forward of the previous rollback now that the required changes in compat.c have been done.
2022-07-01Always return allocated strings from the kex filtering so that weDarren Tucker
can free them later. Fix one leak in compat_kex_proposal. Based on github PR#324 from ZoltanFridrich with some simplications by me. ok djm@
2022-07-01ignore SIGPIPE earlier in main(), specifically before muxclient()Damien Miller
which performs operations that could cause one; Reported by Noam Lewis via bz3454, ok dtucker@
2022-06-30- do not talk about non-standard conversions, because we are not talkingJason McIntyre
about any specific standards - only use escapes where needed - SEE ALSO ok claudio
2022-06-30Only have one version of send_rtmsg() which uses struct kroute_full().Claudio Jeker
Code uses struct sockaddr_storage to have enough space for ROUNDUP() in all cases. Makes the code mostly nicer. OK tb@
2022-06-30Reduce allocations and possible failures in uvm_pagermapin/out().Martin Pieuchot
. If a direct map exists use it to map single-page allocations . Use pmap_kenter_pa() instead of pmap_enter() in all other cases. This speeds up file-based mmap up to 75% when I/O are performed and it also reduces possible allocations failtures in the page daemon making it more stable in OOM situations. ok kettenis@, beck@
2022-06-30Fix bwfm(4) crash during detach on USB.Stefan Sperling
The net80211 stack detach routine can trigger more tasks to be scheduled, e.g. to delete WPA keys. So let's not free the driver's taskq before net80211 has been detached. fixed with and ok by mpi@ Crash reported by mlarkin@ who yanked the USB cable to test our fix.