summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2019-07-15Make layout_fix_offsets take a window like layout_fix_panes.Nicholas Marriott
2019-07-15support PKCS8 as an optional format for storage of private keys,Damien Miller
enabled via "ssh-keygen -m PKCS8" on operations that save private keys to disk. The OpenSSH native key format remains the default, but PKCS8 is a superior format to PEM if interoperability with non-OpenSSH software is required, as it may use a less terrible KDF (IIRC PEM uses a single round of MD5 as a KDF). adapted from patch by Jakub Jelen via bz3013; ok markus
2019-07-15two more bounds-checking sshbuf counterparts to common stringDamien Miller
operations: sshbuf_cmp() (bcmp-like) and sshbuf_find() (memmem like) feedback and ok markus@
2019-07-14add some functions to perform random-access read/write operationsDamien Miller
inside buffers with bounds checking. Intended to replace manual pointer arithmetic wherever possible. feedback and ok markus@
2019-07-14If messages are shown and output is printed without a pager, displayIngo Schwarze
a heads-up on stderr at the end because otherwise, users may easily miss the messages: because messages typically occur while parsing, they typically preceed the output. This is most useful with flag combinations like "-c -W all" but may also help in some unusual error scenarios. Inconvenient ordering of output originally pointed out by espie@ for the example situation that /tmp/ is not writeable.
2019-07-14Mark the initialized struct options arrays as both static and const.Philip Guenther
This moves them from .data to .data.rel.ro ok deraadt@ inoguchi@
2019-07-12Count the number of TCP SACK options that were dropped due to theAlexander Bluhm
sack hole list length or pool limit. OK claudio@
2019-07-12Delete a sentence about the prompt that has nothing to do with su(1).Ingo Schwarze
It depends on the shell, is done by the shell if at all, is documented in the ksh(1) manual, and who knows what other shells may or may not do. Suggested by deraadt@.
2019-07-12Fix manual openssl(1) s_serverKinichiro Inoguchi
- Add undocumented options below. -alpn, -cert2, -certform, -dcertform, -dkeyform, -dpass, -dtls1, -key2, -keyform, -keymatexport, -keymatexportlen, -mtu, -named_curve, -no_cache, -no_ecdhe, -no_ticket, -pass, -port, -servername, -servername_fatal, -status, -status_timeout, -status_url, -status_verbose, -timeout, -tlsextdebug, -use_srtp, -verify_return_error - Remove -hack, -psk and -psk_hint since not exist in source code. I didn't add these 5 options since these were no-op. -chain, -legacy_renegotiation, -nextprotoneg, -no_comp, -no_ssl2 This option was removed from manual in the past. -no_ssl3 ok and suggestions from jmc@
2019-07-12Add affinity between the program and its mixer control.Alexandre Ratchov
Currently, if there are two instances of the same program, sndiod will allocate one volume control to each. If both programs disconnect and reconnect, the information of which control is assigned to which program is lost. This makes difficult to run two instances of a player and crossfade between each other with a MIDI controller. To address this, the program chooses a 32-bit "id" (for now the process pid) and sends it to the server. The server records the id in the client's slot structure. When the server accepts a new connection, it uses the id to identify the slot the client used during the previous connection; if it was not recycled yet, it's assigned to the program.
2019-07-12include SHA2-variant RSA key algorithms in KEX proposal; allowsDamien Miller
ssh-keyscan to harvest keys from servers that disable olde SHA1 ssh-rsa. bz#3029 from Jakub Jelen
2019-07-12print explicit "not modified" message if a file was requested forDamien Miller
resumed download but was considered already complete. bz#2978 ok dtucker
2019-07-11Allow functions that have 1 or more parameters receive and processMark Lumsden
multiple arguments when evaluated in a startup file or via one of the 'eval' commands. This diff does treat the '(' and ')' chars differently during evaluation than previously, in-so-far as they are not ignored if they are at the end or start of a line now. However, even though these characters are not ignored, this diff should not change the behaviour of an extant .mg file, with '(' and ')' chars at the end and start of a line. This situation is accomodated for in this diff (with limited testing though).
2019-07-11Remove duplicate pledge(2) and comment from another era. While here also placeRicardo Mestre
the final pledge "stdio" within main() for better readability. OK espie@
2019-07-11When parsing a tab character that is not preceded by a space characterIngo Schwarze
on an .It -column line, args() sets the MDOC_PHRASEQL flag to Quote the Last word of the Phrase. Even if it turns out this quoting is not needed because the word is already quoted for other reasons, clear the flag at the end of parsing the phrase, such that the flag does not leak to the next phrase. This patch fixes the bug that the trailing Macro on a line of the form .It "word<tab>word" Ta word Macro<eol> was incorrectly considered quoted and hence not parsed. Bug found by Havard Eidnes (he@) with the NetBSD gettytab(5) manual page: https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=54361 Reported via Thomas Klausner (wiz@).
2019-07-11Fix manual openssl(1) s_clientKinichiro Inoguchi
- Add undocumented options below. -alpn, -certform, -dtls1, -host, -keyform, -keymatexport, -keymatexportlen, -legacy_server_connect, -mtu, -no_ign_eof, -no_legacy_server_connect, -pass -port, -serverpref, -sess_in, -sess_out, -status, -timeout, -use_srtp, -verify_return_error - Remove -psk and -psk_identity since not exist in source code. I didn't add these 4 options since these were no-op. -nextprotoneg, -legacy_renegotiation, -no_comp, -no_ssl2 This option was removed from manual in the past. -no_ssl3 ok jmc@
2019-07-11tedu: when you commit a change with global impact, please do a fullTheo de Raadt
build to verify there's no fallout, machines are fast now and 1 hour of your time is worth saving a bunch of others 1+ hour of their time in this case, paths.h broke this as noticed by jmc and 3 of my build machines so far, but I might as well restart them all, so call it 8 machines impacted.
2019-07-11I visited telnet to find and fix some monster bug, and within 20 minutesTheo de Raadt
rediscovered that telnet has more more signal race conditions and trashing of global state than all the rest of the openbsd source tree (where signal races have either been fixed or marked with "XXX signal race". I don't feel like being a hero here today, so I'm fixing a whitespace error in an unrelated file.
2019-07-11on 12-Mar-98 when art replaced two sprintf calls with snprintf to avoidTheo de Raadt
an overflow, he left spaces at the end of the line. we have been incredibly sloppy and not notice his oversight for 21 years. bonus Y2K joke included.
2019-07-10Some time ago, i simplified mandoc_msg() such that it can be usedIngo Schwarze
everywhere and not only in the parsers. For more uniform messages, use it at more places instead of err(3), in particular in the main program. While here, integrate a few trivial functions called at exactly one place into the main option parser, and let a few more functions use the normal convention of returning 0 for success and -1 for error.
2019-07-10The command item changes so can't keep getting the target out of it, need to useNicholas Marriott
the one from the first item. Fixes crash reported by M Kelly.
2019-07-10Remove few level 3 debug printfs related to slot allocation.Alexandre Ratchov
2019-07-10Replace the "umap" bitmap by a simple table of slot pointers.Alexandre Ratchov
Makes the code simpler at virtually no cost since we need 8 entries only. No behavior change.
2019-07-10Swap "if" and "else" code blocks in slot_new() to improve readability.Alexandre Ratchov
No behavior change.
2019-07-10Slot name can't be empty. So, no need to check if it is empty.Alexandre Ratchov
2019-07-10Use NULL instead of 0 where a pointer is expected.Alexandre Ratchov
2019-07-10in man.cgi(8), disable -O toc by default; requested by deraadt@Ingo Schwarze
2019-07-10Add -F to refresh-client to specify flags for control clients - one flagNicholas Marriott
at the moment, no-output which turns off forwarding pane output. From Thomas Adam. GitHub issue 1834.
2019-07-10Add missing option openssl dsa -modulusKinichiro Inoguchi
ok bcook@ jsing@
2019-07-10Fix a typo and make <esc><right> move right to the closest end of a wordTheo Buehler
just like <esc><left> moves left to the closest beginning of a word. ok djm
2019-07-09Add a -H flag to send-keys to send literal keys given as hex numbersNicholas Marriott
(needed for control clients to send mouse sequences). Also add some format flags for UTF-8 and SGR mouse mode. Requested by Bradley Smith in GitHub issues 1832 and 1833.
2019-07-09Do not leak empty lines, GitHub issue 1824.Nicholas Marriott
2019-07-09Add j and k for navigation in menus, GitHub issue 1828.Nicholas Marriott
2019-07-09Fix manual openssl(1) genrsaKinichiro Inoguchi
Add missing -camellia*/-idea description to genrsa section. ok jmc@
2019-07-09Convert openssl(1) genrsa to the newer style of option handlingKinichiro Inoguchi
ok tb@ jsing@
2019-07-09cap the number of permiopen/permitlisten directives we're willing toDamien Miller
parse on a single authorized_keys line; ok deraadt@
2019-07-08Clear search marks before resize, GitHub issue 1823.Nicholas Marriott
2019-07-08Fix manual openssl(1) dsa, ocsp, rsa and smimeKinichiro Inoguchi
- dsa : add missing -pvk-none, -pvk-strong and -pvk-weak add pvk format to -inform and -outform - ocsp : add missing -header, -ignore_err, -no_explicit and -timeout - rsa : add missing -pvk-none, -pvk-strong and -pvk-weak add missing -RSAPublicKey_in and -RSAPublicKey_out add pvk format to -inform and -outform - smime : add missing -nosmimecap - add pvk description at common format part ok jmc@
2019-07-08Use the clear history function for the 3J sequence rather than doing it ↵Nicholas Marriott
manually.
2019-07-07fix one last edge case regarding PATH, allows simpler config.Ted Unangst
2019-07-07Fix manual openssl(1) pkcs12, req, verify and x509Kinichiro Inoguchi
- For pkcs12, add -camellia*/-idea, -LMK and -password - For req, add -multivalue-rdn, -pkeyopt and -sigopt - For verify, add -CRLfile and -trusted, and down -check_ss_sig description - For x509, add -next_serial and -sigopt - Remove the escape in -multivalue-rdn from ca section ok jmc@
2019-07-07Remove some set but never used variables. ok daraadt@Darren Tucker
2019-07-06Correctly adjust mouse position if the status line is at the top andNicholas Marriott
more than one line. GitHub issue 1822.
2019-07-06Correctly clear underscore colour in grid_get_cell1, also fix structNicholas Marriott
grid_cell to avoid padding. Fixes increased memory use reported by Suraj N Kurapati.
2019-07-05Make mg display the correct file name in the minibuffer if you loadMark Lumsden
another file in a startup file (e.g via find-file), then experience another unrelated error with one of the lines being evaluated.
2019-07-05Fix manual openssl(1) ec, enc and pkcs7Kinichiro Inoguchi
- For ec, add -param_out description - For enc, add -v usage and description - For pkcs7, add -print usage and description ok jmc@
2019-07-05lock(1): make "-n" and "-t timeout" mutually exclusive.cheloha
It doesn't make sense to simultaneously say "never time out" and "release this terminal in a few minutes". Input from kn@. "just go for it" deraadt@
2019-07-05still compile uuencode.c, unbreaks buildTheo de Raadt
2019-07-05Fix manual openssl(1) dgstKinichiro Inoguchi
- Add undocumented option -r ok jmc@
2019-07-05Do not use uninitialized buffer name.Nicholas Marriott