summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-11-15new manual page ASN1_BIT_STRING_set(3) documenting four BIT STRING accessorsIngo Schwarze
2021-11-15Revert to eager removal of poll/select knotesVisa Hankala
This should prevent a panic that bluhm@ has reported.
2021-11-15Third attempt to solve the claim multiple report ids conflict. Using theAnton Lindqvist
report id to signal that multiple ones should be claimed by the match routines does not work. All valid report ids 1-255 cannot of course be used and 0 which is reserved by the USB HID specification is internally used to represents devices lacking an explicit report id. Therefore, use presence of the claimed array to signal that multiple report ids can be claimed. Tested by gnezdo@
2021-11-15In preparation for once again trying the resolve the claim multipleAnton Lindqvist
report ids conflict, extract the claim multiple report ids conditional in order to minimize the required upcoming changes to resolve the conflict. Tested by gnezdo@
2021-11-15No need to declare optind, optarg or opterr; unistd.h does this for us.Todd C. Miller
From Jan Stary. OK deraadt@
2021-11-15Change printing of maps to use qsort to order the output using a pointerClaudio Jeker
array. This replaces the current solution that only prints one element for a certain value and not all elements with tha same value. This can be further optimized but printing is not really a hot path in btrace. OK mpi@
2021-11-15document ASN1_PRINTABLE_type(3) and ASN1_UNIVERSALSTRING_to_string(3)Ingo Schwarze
2021-11-15Tidy up; no change.Antoine Jacoutot
2021-11-15document ASN1_item_pack(3) and ASN1_item_unpack(3)Ingo Schwarze
2021-11-15Leave the hardware cursor at the position of the selected line in chooseNicholas Marriott
modes and current editing position and at the command prompt. It is invisible but this is helpful for people using screen readers. GitHub issue 2970.
2021-11-15document i2a_ASN1_STRING(3) and a2i_ASN1_STRING(3)Ingo Schwarze
2021-11-14Fix a strange check in the auto DH codepathTheo Buehler
The code assumes that the server certificate has an RSA key and bases the calculation of the size of the ephemeral DH key on this assumption. So instead of checking whether we have any key by inspecting the dh part of the union, let's check that we actually have an RSA key. While here, make sure that its length is non-negative. ok jsing
2021-11-14Delete all the no-op RELOC_GOT() macros and their uses.Philip Guenther
Annotate RELOC_DYN() on non-hppa as only used in lib/csu. Delete some inconsistent comments, adjust whitespace, and reorder mips64's archdep.h so that the ld.so/*/archdep.h files look (almost) the same. ok visa@ kettenis@
2021-11-14Make sure efiboot is built with RELA/REL relocations and not RELR,Philip Guenther
as self_reloc.c only handles the former. ok deraadt@ kettenis@
2021-11-14use ppoll() instead of pselect()Theo de Raadt
with djm
2021-11-14When we transition from RENEWING to REBINDING state we have toFlorian Obser
calculate the next timeout based on the rebinding time (T2), not renewal time (T1). At this point T1 already expired and we would wait way too long, past the lease lifetime. Spotted while investigating a problem reported by Zack Newman on misc@
2021-11-14Calculate initial OpenBSD partition start/size using LBA valuesKenneth R Westerback
instead of CHS values. Shorter, easier to follow. No intentional functional change.
2021-11-14the last argument of BIO_gets(3) is called "size", not "len"Ingo Schwarze
2021-11-14fix a typo; diff from Matthias Schmidt <xosc dot org> on tech@Ingo Schwarze
2021-11-14Improve and simplify timer handling in "stop" and "reload".Antoine Jacoutot
Rename _rc_wait to _rc_wait_for_start since only "start" uses this now (to handle rc_bg daemons). In any situation, none of these actions should be able to hang boot or shutdown. We should now be able to manage most corner cases out there ("most" because it's unreasonable to assume we can cope with all the non-default rc_{start,stop,reload} crazyness). Several tests have been made and no obvious regression has been found. But that doesn't mean there isn't; if some behavior changed for the worst, talk to me. ok robert@ sthen@
2021-11-14Put curly brace on the correct line.Joel Sing
2021-11-14match .events with .fd betterTheo de Raadt
2021-11-14convert select() to poll()Theo de Raadt
ok djm
2021-11-14"autoconf" is an automatic "up"Klemens Nanni
OK deraadt
2021-11-14Split out the hppa and mips64 versions of boot.h similar to how IPhilip Guenther
split ld.so/boot.c in 2019: * delete extraneous #includes * delete jmprel handling on non-hppa * delete RELOC_GOT() and DT_PROC bits on non-mips64 ok visa@
2021-11-13Catch up with (proposed) Linux device tree bindings.Mark Kettenis
2021-11-13replace select() with ppoll(), including converting timeval's to timespec'sTheo de Raadt
to make things easier. back and forth and ok; djm
2021-11-13The key/nonce disclaimers were copied from ipsec.conf.5 but aren't relevantTobias Heider
to iked. Encryption keys and nonces are generated by the handshake and don't have to be supplied in the config.
2021-11-13Test ASN1_STRING_copy(3).Ingo Schwarze
As a side effect, this also tests various aspects of ASN1_STRING_new(3), ASN1_STRING_set(3), ASN1_STRING_length_set(3), ASN1_STRING_get0_data(3), ASN1_STRING_length(3), and ASN1_STRING_type(3).
2021-11-13Fix a nasty quirk in ASN1_STRING_copy(3).Ingo Schwarze
In case of failure, it reported the failure but corrupted the type of the destination string. Instead, let's make sure that in case of failure, existing objects remain in their original state. OK tb@
2021-11-13Document the interactions of X509_V_FLAG_USE_CHECK_TIME,Ingo Schwarze
X509_V_FLAG_NO_CHECK_TIME, X509_VERIFY_PARAM_set_time(3), X509_VERIFY_PARAM_set_flags(3), and X509_VERIFY_PARAM_clear_flags(3) in detail because the API design is both surprising and surprisingly complicated in this respect, and the resulting nasty traps have already caused bugs in the past.
2021-11-13Mark the public X509_VP_FLAG_* constants as intentionally undocumented.Ingo Schwarze
With LibreSSL, they can only be used internally in the library itself, and even with OpenSSL, no real-world application code uses them. OK tb@
2021-11-13Fix a bug in check_crl_time() that could result in incompleteIngo Schwarze
verification, accepting CRLs that ought to be rejected, if an unusual combination of verification flags was specified. If time verification was explicitly requested with X509_V_FLAG_USE_CHECK_TIME, it was skipped on CRLs if X509_V_FLAG_NO_CHECK_TIME was also set, even though the former is documented to override the latter both in the OpenSSL and in the LibreSSL X509_VERIFY_PARAM_set_flags(3) manual page. The same bug in x509_check_cert_time() was already fixed by beck@ in rev. 1.57 on 2017/01/20. This syncs the beginning of the function check_crl_time() with the OpenSSL 1.1.1 branch, which is still under a free license. OK beck@ This teaches that having too many flags and options is bad because they breed bugs, and even more so if they are poorly designed to override each other in surprising ways.
2021-11-13Use long filenames by default on FAT filesystemsKlemens Nanni
These days, 8.3 filenames are often a problem, filesystems containing firmware with long names must not truncate them -- it's also a sane default as portable file system between OSes, anyway. Altough undocumented in mount_msdos(8), the default for FAT32 already is to use long filenames: ever since its import from NetBSD in 1998. Previously, mount_msdos would ignore long filenames and default to short filenames unless a flag was used or long ones were found on the filesystem prior to mounting it. Just always mount with support for long filenames (unless `-s' is used). As various install media use FAT filesystems, adjust the remaining ones to also pass explicit mount option reflecting the previous default. OK deraadt
2021-11-13Simplify address family handling, ditch inet_ntop(3)Klemens Nanni
Reduce duplicate code, use getnameinfo(3) for IPv4 as well and use gai_strerror(3) in case of failure. This was split out as part of the previous IPv6-LL fix.
2021-11-13Install missing scope identifier for IPv6 link-local addressesKlemens Nanni
RTM_PROPOSAL's list of IP addresses does not contain scope IDs by design. This is not a problem as the proposal is always bound to an interface, as long as we use it... Fill in the scope ID for link-local IPs and replace inet_ntop(3) usage with getnameinfo(3) in the IPv6 case such that it actually turns up in the string representation. Otherwise resolv.conf(5) ends up with "nameserver fe80::1" entries and libc/asr won't be able to resolve without an interface.
2021-11-13It really looks like pledge "stdio dns" is possible earlier.Theo de Raadt
Discussed with mestre
2021-11-13document ASN1_STRING_copy(3)Ingo Schwarze
2021-11-13Use a proper PKGPATH in the WRKOBJDIR exampleKlemens Nanni
www/mozilla is a module, www/mozilla-firefox is an actual port. OK sthen
2021-11-13Un-hook the X11 tests. The new X server doesn't install libfb anymore.Matthieu Herrb
ok kettenis@, anton@
2021-11-13hook up unfdpassfail and ungcAnton Lindqvist
2021-11-13Let filt_fileattach() run without the kernel lockVisa Hankala
This makes it possible to attach pipe, socket and kqueue event filters without acquiring the kernel lock. Event filters behind vn_kqfilter() are not MP-safe yet, so vn_kqfilter() has to take KERNEL_LOCK(). dmabuf_kqfilter() can skip locking because it has no side effects. OK anton@, mpi@
2021-11-12Add support for RELR relocations in the executable and share objects.Philip Guenther
This doesn't affect ld.so's self-reloc, which still requires DT_REL/DT_RELA ok kettenis@
2021-11-12Teach binutils enough about RELR relocations to not break them and forPhilip Guenther
readelf to display them in a way compatible with llvm-readelf, including the --raw-relr debugging option ok kettenis@
2021-11-12Add #defines and typedefs for RELR, a compressed form for relative relocationsPhilip Guenther
ok kettenis@
2021-11-12Document the public constants X509_V_FLAG_POLICY_MASKIngo Schwarze
and X509_V_FLAG_USE_CHECK_TIME. While here, fix a typo and improve the wording for X509_V_FLAG_NOTIFY_POLICY.
2021-11-12sigsuspend(2): sleep on &nowake channelScott Soule Cheloha
sigsuspend(2) only returns upon delivery of a signal: we do not expect a wakeup(9). Indicate this by sleeping on &nowake instead of &p->p_p->ps_sigacts. We still need to loop here to handle spurious wakeups, though. Spurious wakeup case pointed out by kettenis@. ok claudio@
2021-11-12Add support for controlling keyboard LEDs.Mark Kettenis
ok patrick@
2021-11-12Use a mutex to lock the bus such that we can safely access the bus fromMark Kettenis
interrupt handlers and process context. ok patrick@
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@