summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2024-08-18Use OPENSSL_config() instead of OPENSSL_load_builtin_modules()Theo Buehler
2024-08-18whitespaceTheo de Raadt
2024-08-17mention that ed25519 is the default key type generated andDamien Miller
clarify that rsa-sha2-512 is the default signature scheme when RSA is in use. Based on GHPR505 from SebastianRzk
2024-08-17fix minor memory leak in Subsystem option parsing;Damien Miller
from Antonio Larrosa via GHPR515
2024-08-17fix swapping of source and destination addresses in some sshd log messagesDamien Miller
2024-08-16Remove reference to telnet(1).Florian Obser
telnet(1) doesn't have anything to do with login(1), maybe telnetd(8) did, but that was taken behind the barn nearly 20 years ago. Earlier version OK miod Input dtucker OK jmc, sthen, deraadt
2024-08-16Add pledge & unveil.Florian Obser
The rpc library needs read access to the rpc database in /etc/rpc. Other than that rpcinfo only uses AF_INET sockets. With -b, rpcinfo(8) uses gethostbyaddr(3) to report hosts that responded, so add "dns" pledge as well. OK bluhm, miod
2024-08-15Convert RSA and ECDSA key to the libcrypto EVP_PKEY API. DSA remainsDamien Miller
unconverted as it will be removed within six months. Based on patches originally from Dmitry Belyavskiy, but significantly reworked based on feedback from Bob Beck, Joel Sing and especially Theo Buehler (apologies to anyone I've missed). ok tb@
2024-08-14resdebug and no_tld_query are unusedFlorian Obser
2024-08-14sortlist is unusedFlorian Obser
2024-08-14lwserver is unused, whatever that is / was.Florian Obser
2024-08-14Reorder calloc argumentsTobias Stoeckmann
The first argument should be the amount, the second argument should be the element size. Fixing this also silences some gcc compiler warnings for portable. Spotted with Benny Baumann (BenBE at geshi dot org). ok djm@
2024-08-14Extend sshbuf validationTobias Stoeckmann
Multiple sshbuf structs can be linked through a parent/child relationship. Make sure that a single sshbuf cannot be its own parent. If this would ever happen, it would result in reference counting issues. This is a cheap way of testing this with very little overhead. It does not detect A->B->A linkages though for performance reason and the fact that it takes a programming error for this to occur anyway. Authored with Benny Baumann (BenBE at geshi dot org). ok djm@
2024-08-14Use freezero for better readabilityTobias Stoeckmann
It has the same meaning as the current pair of calling explicit_bzero and free. Spotted with Benny Baumann (BenBE at geshi dot org). ok djm@
2024-08-14Fix typo in commentTobias Stoeckmann
Spotted with Benny Baumann (BenBE at geshi dot org). ok djm@
2024-08-13Fix a bug in .Ql handling that has been present since the beginning (2017).Ingo Schwarze
Since the .Ql macro action uses an output prefix of "'`" and an output suffix of "`'", md_post_raw() would decrement the code_blocks state variable even though md_pre_raw() had earlier neglected to increment it, hence leaving the variable in an invalid negative state. That in turn could result in corrupt output in a variety of ways. Fix this by checking in md_pre_raw() whether the prefix *contains* a backtick rather than only checking whether it *starts* with a backtick. For consistency, apply the same change to md_post_raw() even though there was no bug in that function: all *suffixes* containing a backtick actually contain it in the leading position. Thanks to job@ for reporting this bug. He noticed a particularly nasty kind of output corruption: having .Ql in an input file would result in ASCII_NBRSP (0x31) sneaking through into the output stream if later, unrelated parts of the same input file directly or indirectly used the \~ escape sequence, for example by using the .Ex macro.
2024-08-12Add -CRLfile option to 'cms' sub commandJob Snijders
This option allows to verify certs in a CMS object against additional CRLs. Ported from work by Tom Harrison from APNIC OK tb@
2024-08-12Get rid of inet_aton and simplify.Florian Obser
localhost is just a weird spelling of 127.0.0.1. OK bluhm
2024-08-12Get rid of inet_aton.Florian Obser
Input & OK bluhm
2024-08-11Even though US-ASCII (= ANSI X3.4-1986) only defines 128 characters,Ingo Schwarze
the POSIX standard explicitly requires in section 6.2 that "the POSIX locale shall contain 256 single-byte characters", see: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap06.html#tag_06_02 So the current behaviour of treating non-ASCII bytes in an LC_CTYPE=POSIX input stream as if they were characters is not a POSIX violation, but actually required by the standard - and not just for awk(1), but for utility programs in general and even for library functions in general. Consequently, delete the wrong sentence i added to the STANDARDS section last year. Thanks to millert@ and jmc@ for making me realize my mistake. OK millert@ jmc@
2024-08-11whitespace, no binary changeFlorian Obser
2024-08-07crank to 7.6-beta, release date is vagueTheo de Raadt
2024-08-06Replace sys/time.h with proper includes for using localtimeGreg Steuck
Sure deraadt@
2024-08-05Remove bogus connect(s, NULL, 0) callTheo Buehler
The only thing it does is error because of a check added in sockargs() in uipc_syscalls r1.155. As guenther pointed out, this may have been added because of a misreading of the last sentence of the first paragraph of the connect(2) manual. Instead of erroring, this will keep listening if -k is given and otherwise it will close the socket and exit with success. ok guenther jeremy
2024-08-04Make a little effort to treate CRLF as LF in config files. GitHub issueNicholas Marriott
3720.
2024-08-04The Linux console has some bugs with bright colours. It seems likelyNicholas Marriott
that it is emulating them by setting a bright (or bold) flag; however, when the colour is changed from a bright colour (say SGR 96) to a non-bright (say SGR 36), the flag is not reset, so the new colour remains as bright. SGR 39 (default colour) also does not reset, so you end up with the bright default colour. Work around this by sending SGR 0 when switching away from a bright colour, and disable AX for TERM=linux. Also make the check for AX simpler and do not check for the op capability is not actually used. GitHub issue 3976.
2024-08-04-l should be before -r, pointed out by jmc a while ago.Nicholas Marriott
2024-08-04Adjust the logic when deleting last buffer to better preserve theNicholas Marriott
selection: if selecting the element below the deleted one fails (because as the last one), select the one above it instead. From Daniel Mueller, GitHub issue 4043.
2024-08-04Use paste_is_empty to check if there are no buffers since paste_get_topNicholas Marriott
will return NULL if there are no automatic buffers.
2024-08-03The maximum count is SKEY_MAX_SEQ + 1 not SKEY_MAX_SEQ - 1.Todd C. Miller
Sequence numbers are in the range [0, SKEY_MAX_SEQ] inclusive. This means the maximum value for the -n option (count) should be SKEY_MAX_SEQ + 1. From Denis Bodor.
2024-08-03Update awk to the July 28, 2024 version.Todd C. Miller
* Fixed readcsvrec resize segfault when reading csv records longer than 8k. * Rewrite if-else chain in quoted as a switch.
2024-08-02nc(1): remove useless function pointer dereferencingJan Klemkow
ok tb@
2024-08-01sndiod: Fix insufficent check of input from clientsAlexandre Ratchov
Fixes possible sndiod(8) crashes caused by a global table overread triggered by the client. Found and analysed by Henry Ford <henryfordkjv at gmail.com>, thanks! ok blumh, help from millert, mlarkin
2024-07-31bump posix spec 2008 -> 2024;Jason McIntyre
2024-07-31add a random amount of time (up to 4 seconds) to the grace login time.David Gwynne
ok deraadt@ djm@
2024-07-31quote the book title (%T) reference, to prevent formatters (in this caseJason McIntyre
groff) stumbling over literal words that match macro names;
2024-07-30bump posix ref 2008 -> 2024;Jason McIntyre
2024-07-30fold the "timespec" info into the options list (since "time_arg" is alreadyJason McIntyre
there). move the information of "time_arg" matching touch -t to the "time_arg" description, instead of "timespec". ok millert
2024-07-30bump posix spec from 2008 to 2024; ok millertJason McIntyre
2024-07-29bump posix spec from 2008 -> 2024:Jason McIntyre
- "now" is a permissable timespec - split the at and batch notes in STANDARDS - note batch behaviour differences - note default queue name differences ok millert
2024-07-28The dash must not come first in the getopt(3) stringKlemens Nanni
Broken/sorted in previous -u addition, fix/move it to the end. By tb
2024-07-28Support "-u name" to remove variable from environmentKlemens Nanni
OK aisha millert Feedback jmc
2024-07-26Trace struct itimervalPhilip Guenther
ok deraadt@ claudio@
2024-07-26document the reduced logingrace penaltyChristian Weisgerber
2024-07-25reduce logingrace penalty.Damien Miller
A single forgotton login that times out should be below the penalty threshold. ok deraadt/claudio
2024-07-25Fix proxy multiplexing (-O proxy) bugDamien Miller
If a mux started with ControlPersist then later has a forwarding added using mux proxy connection and the forwarding was used, then when the mux proxy session terminates, the mux master process will send a channel close to the server with a bad channel ID and crash the connection. This was caused by my stupidly reusing c->remote_id for mux channel associations when I should have just added another member to struct channel. ok markus@
2024-07-25fix double space; from crystal kolipeJason McIntyre
2024-07-23sndiod: Properly update the poll(2) event masks after i/o.Alexandre Ratchov
If there are no descriptors to poll for an event source, we call the i/o handlers immediately (before poll(2) is called). As this may generate output for other descriptors, their the poll(2) event masks need to be updated.
2024-07-22rpcgen(1): default to "STDIN" as input file when compiling to headers.Dave Voutila
FreeBSD, NetBSD, and GNU all use a variation of "STDIN" as the default input filename when compiling to header files (-h) to prevent a NULL-pointer deference. Adopt a similar approach. ok millert@
2024-07-22Expand full array option values if no index is provided, GitHub issueNicholas Marriott
4051.