summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-03-12Add deprecation warning for autoconfprivacy.florian1-5/+27
While here check address family for 'temporary' option, only inet6 is allowed. OK kn
2021-03-12Use RA instead of MiRA in iwn(4).stsp2-191/+129
Tested by: iwn 6200: stsp iwn 6205: cwen, Jeremy O'Brien iwn 6300: okan
2021-03-12Use RA instead of MiRA in iwm(4).stsp2-49/+66
Tested by: iwm 7260: florian iwm 7265: TronDD, Aaron Miller, stsp iwm 8260: bket iwm 8265: matthieu, tracey, naddy, Dave Voutila, jcs, Mathieu Kerjouan, Matthias Schmidt, stsp iwm 9260: matthieu, phessler, Darren VanBuren iwm 9560: Uwe Werler
2021-03-12Add RA, a new 11n Tx rate adaptation module for net80211.stsp3-1/+785
Written by Christian Ehrhardt and myself, based on ieee80211_mira.c but with significant changes. The main difference is that RA does not attempt to precisely measure actual throughput but simply deducts a loss percentage from the theoretical throughput which can be achieved by a given MCS. Unlike MiRa, RA does not use timeouts to trigger probing. Probing is triggered only by changes in measured throughput. Unlike MiRA, RA doesn't care whether a frame was part of an A-MPDU. RA simply collects statistics for individual subframes. This makes reporting very easy for drivers and seems to work well enough in practice. Another difference is that drivers can report multi-rate retries properly via ieee80211_ra_add_stats_ht(mcs, total, fail) which can be called several times before ieee80211_ra_choose() selects a new Tx rate. There is no reason any issues could not be fixed in ieee8011_mira.c but I felt it was a good moment to burn the house down and start over. And since this code diverges from how MiRA is described in the research paper applying the "MiRA" label becomes inappropriate.
2021-03-12Zap a useless variable.tb1-4/+2
suggested by jsing
2021-03-12Missing void in function definitiontb1-2/+2
ok jsing
2021-03-12Fix checks of memory caps of constraints namestb3-20/+32
x509_internal.h defines caps on the number of name constraints and other names (such as subjectAltNames) that we want to allocate per cert chain. These limits are checked too late. In a particularly silly cert that jan found on ugos.ugm.ac.id 443, we ended up allocating six times 2048 x509_constraint_name structures before deciding that these are more than 512. Fix this by adding a names_max member to x509_constraints_names which is set on allocation against which each addition of a name is checked. cluebat/ok jsing ok inoguchi on earlier version
2021-03-12Update Spleen kernel fonts to version 1.9.0, bringing the followingfcambus2-27/+1691
improvements: - Enlarge vertical line for consistency with other small sizes (5x8 version) - Add full support for the Latin-1 Supplement Unicode block (6x12 version)
2021-03-12spellingjsg11-27/+27
ok mpi@
2021-03-12Emulate "[inet] autoconf" hostname.if(5) lines with "dhcp"kn1-1/+9
With dhcpleased(8) in base, netstart(8) and ifconfig(8) understand both "autoconf" and "inet autoconf" lines in hostname.if(5) files to signal the new daemon. The installer however currently has only dhclient(8), hence manual upgrades with "[inet] autoconf" instead of "dhcp" in hostname.if files would fail to establish IPv4 connectivity. Make install.sub's netstart clone treat autoconf lines like old fashioned dhcp lines such users^Wearly testers of the new approach don't get stuck in nyetwork land. Note that this is only relevant for manual upgrades; installation always creates working hostname.if files and automated upgrades with sysupgrade(8) do not care about network/hostname.if files. Idea from deraadt OK deraadt krw ajacoutot
2021-03-12spellingjsg12-27/+27
2021-03-12Kill SINGLE_PTRACE and use SINGLE_SUSPEND which has almost the same semanticmpi4-17/+12
single_thread_set() is modified to explicitly indicated when waiting until sibling threads are parked is required. This is obviously not required if a traced thread is switching away from a CPU after handling a STOP signal. ok claudio@
2021-03-12Fix so tmux correctly sends the cvvis (cursor very visible) capabilitynicm2-16/+30
rather than sending it and then immediately undoing it with cnorm. Also turn it off when the cursor shape is changed like xterm.
2021-03-12fix previousjsg1-2/+2
2021-03-12spelling: refenece -> referencejmc1-3/+3
2021-03-12spellingjsg21-65/+65
2021-03-12Add ModuliFile keyword to sshd_config to specify the location of thedtucker6-12/+49
"moduli" file containing the groups for DH-GEX. This will allow us to run tests against arbitrary moduli files without having to install them. ok djm@
2021-03-12pwcopy() struct passwd that we're going to reuse across a bunch ofdjm1-1/+2
library calls; bz3273 ok dtucker@
2021-03-12Provide definition of CTRL in vi.c like we do for emacs.c.millert1-1/+4
Fixes a portability issue. From Benjamin Baier
2021-03-11quiz: handle line continuation in data files correctly, switch to getline(3)naddy1-40/+24
Specifically, the following quiz.db line foo:\ bar was parsed into "foo:bar\n", which made it impossible to answer correctly. Bug reported and inital fix from Alex Karle, partially reworked by yours truly, further input from millert@
2021-03-11fix a double space and a macro error;jmc1-3/+3
2021-03-11When RFC 8981 obsoleted RFC 4941 the terminology changed fromflorian4-17/+20
"privacy extensions" to "temporary address extensions" Change ifconfig(8) to output temporary after temporary addresses and add "temporary" option which is an alias for autoconfprivacy for now. Also make AUTOCONF6TEMP a positiv flag that is set by default. Previously the negative flag "INET6_NOPRIVACY" was set when privacy addresses were disabled. This makes the flags output less ugly and will allow us to disable autoconf addresses while having temporary addresses enabled in the future. More work is needed in slaacd. input benno, jmc, deraadt previous verison OK benno OK jmc, kn
2021-03-11Use unveil(2)kn1-1/+6
Pledge is not possible due to the ioctls, but as apmd hoists both the control socket and apm device early at startup and only ever possibly executes scripts under /etc/apm/, hiding the rest of the filesystem becomes easy. Technically, only "x" is required to traverse the directory and run scripts, but apmd carefully access(2) each script, which requires the read bit regardless of the permission bits being tested. OK mestre
2021-03-11Remove ssl_downgrade_max_version().jsing5-54/+15
Now that we store our maximum TLS version at the start of the handshake, we can check against that directly. ok inoguchi@ tb@
2021-03-11There is no need to try to attach IPv6 to an interface when theflorian1-2/+3
AUTOCONF6 flag is already set. This is likely a leftover from when we sent router solicitations from the kernel. This was a way to trigger sending a solicitation from userland. OK kn
2021-03-11If the AUTOCONF4 or AUTOCONF6 flags get enabled, force the interface up.deraadt1-23/+34
ok florian claudio
2021-03-11Use timespec timers to determine when select-timeout and timeout intervalskrw2-14/+35
are exceeded. Feedback from otto@, cheloha@
2021-03-11spellingjsg17-42/+42
2021-03-11Revert rev 1.116claudio1-37/+43
The repo structs are reallocated during runtime and so the back pointers to the head element of the TAILQ get corrupted. Noticed by tb@
2021-03-11Check for the existence of p5-IO-Socket-SSL by checking for its SSL.pmtb1-3/+4
instead of running pkg_add which may block due to its locking mechanism. Precise file to check for suggested by sthen ok kn deraadt on previous version
2021-03-11spellingjsg140-331/+331
2021-03-11Add SMP support.kettenis1-14/+99
ok patrick@
2021-03-11Remove unhelpful sentence from TPMRkn1-3/+1
with dlg
2021-03-11Document veb(4)kn1-2/+99
All text is copied from other already existing sections, i.e. link flag handling from TPMR and the rest from BIDGE. Contrary to BRIDGE, add a synopsis for VEB such that there's a simple overwiew, especially since veb(4) currently does not explain *how* to use the described features. NB: While TPMR and VEB use the same wording for link flags, their semantics are different, i.e. both different flags and swapped polarity for those flags. Feedback jmc dlg OK dlg
2021-03-11Link to sh(1) and use the same wording and markup for EXTRACT_CASES codekn1-3/+6
"good idea" sthen
2021-03-11There is no need to revisit a file in the repo, so if the RB_INSERT failsclaudio1-4/+10
just drop the entity queue element. OK benno@ tb@
2021-03-11There is no need for a global enity queue, instead use per repo queues.claudio1-43/+37
Simplifies the code a fair bit. OK tb@
2021-03-11Make sure to skip attaching disabled I2C devices. This can happen onpatrick5-10/+35
hardware which include a common parent block in their device trees and only enable the components that were actually implemented, as seen on e.g. the NanoPi R4S.
2021-03-11Make sure to skip attaching disabled I2C devices. This can happen onpatrick1-2/+7
hardware which include a common parent block in their device trees and only enable the components that were actually implemented, as seen on e.g. the NanoPi R4S. ok kettenis@
2021-03-11grow media a littlederaadt2-6/+6
2021-03-11that 0 should be NULLderaadt1-2/+2
2021-03-11Tidy old jobs every hour instead of every 30 seconds.nicm3-28/+36
2021-03-11groff complains about the word "An" in an Rs/Re block, believing it a macro,jmc1-3/+3
so escape it;
2021-03-11Add an "absolute-centre" alignment to use the centre of the total spacenicm5-36/+204
instead of only the available space. From Magnus Gross in GitHub issue 2578.
2021-03-11Add split-window -Z to start the pane zoomed, GitHub issue 2591.nicm14-52/+66
2021-03-10Build install media with -fno-asynchronous-unwind-tables to furtherjsg2-2/+4
reduce size. Allows a clang 11 amd64 release to complete without overflowing the floppy image. ok kettenis@ deraadt@
2021-03-10Handle named references in acpi_getdevlist(). Fixes a regression in acpitztobhe1-1/+11
caused by the reference handling change from December. ok kettenis@ patrick@
2021-03-10zlib functions take a gzFile not gzFile * (gzFile is already a pointer).millert3-7/+7
From Josh Rickmar.
2021-03-10Our ACPI namerefs are pointers to the byte structures for ACPI names.patrick6-15/+20
These are not in a printable format, hence printing them as string is wrong. Additionally, aml_searchrel()/aml_searchname() expect the name to be passed in a printable format as well. Passing a nameref can lead to an out-of-bounds read, and the comparison can fail. Hence make sure that namerefs are passed to aml_getname() first, which returns printable strings. Note that aml_getname() uses a static buffer, so there are a few restrictions how the string can be used. ok kettenis@
2021-03-10Add support for ^R (redraw) in insert mode too.millert2-3/+9
From gotroyb127, OK tb@