summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2023-07-03Remove the tls1.0 and 1.1 related options from the openssl(1) toolkitBob Beck
ok tb@
2023-07-02Use TSO and LRO on the loopback interface to transfer TCP faster.Alexander Bluhm
If tcplro is activated on lo(4), ignore the MTU with TCP packets. They are passed along with the information that they have to be chopped in case they are forwarded later. New netstat(1) counter shows that software LRO is in effect. The feature is currently turned off by default. tested by jan@; OK claudio@ jan@
2023-07-02Teach openssl ca about Ed25519 certificatesTheo Buehler
This adds a few logic curlies to end up setting the EVP_MD to EVP_md_null() as required by the API. This way ASN1_item_sign() now knows how to behave. "ok = (rv == 2);" beck
2023-07-02Teach openssl req about EdDSA certsTheo Buehler
After a few things in libcrypto were adjusted, this diff makes issuing certificate requests with Ed25519 work. ok beck
2023-06-30Change a few types to fix warnings, from Thomas Klausner.Nicholas Marriott
2023-06-30Get rid of some warnings with GCC 10, from Thomas Klausner.Nicholas Marriott
2023-06-28revert makefile change included by mistake in previousOmar Polo
2023-06-28drop needless strcspn in the header parsingOmar Polo
since fetch.c revision 1.211, ftp removes trailingwhitespaces early so there's no need to re-do that when parsing a header. while here, remove an unused variable too. ok tb, millert
2023-06-28fix parsing of the Last-Modified headerOmar Polo
Was overlooked in r1.209. diff from 'a dog' (OpenBSD [at] anthropomorphic [dot] dog) ok tb, sthen
2023-06-28add `notab' to the list of modes that can be set with set-default-modeOmar Polo
specify also that it can be set globally with set-default-mode, as done in the description of the other built-in modes. Diff from Simon Branch (that I got via jmc@), thanks!
2023-06-26When exiting alternate screen, there is no need to reflow when goingNicholas Marriott
back to old size since the contents will be overwritten. GitHub issue 3510.
2023-06-26Add "us" to styles for underscore colour, GitHub issue 3589.Nicholas Marriott
2023-06-25SGR 0 should not end hyperlink, reported by Lucas Trzesniewski.Nicholas Marriott
2023-06-23Fix a bug in ex's 's' command with the 'c' flag when 'number' is off.Todd C. Miller
The underlining was positioned in the wrong place. This fixes the problem and matches historic ex behavior. OK op@
2023-06-21Check fdopen return value, from Christian Menges.Nicholas Marriott
2023-06-21better validate CASignatureAlgorithms in ssh_config and sshd_config.Damien Miller
Previously this directive would accept certificate algorithm names, but these were unusable in practice as OpenSSH does not support CA chains. part of bz3577; ok dtucker@
2023-06-21make `ssh -Q CASignatureAlgorithms` only list signature algorithms thatDamien Miller
are valid for CA signing. Previous behaviour was to list all signing algorithms, including certificate algorithms (OpenSSH certificates do not support CA chains). part of bz3577; ok dtucker@
2023-06-21handle rlimits > INT_MAX (rlim_t is u64); ok dtuckerDamien Miller
bz3581
2023-06-20prepare for support for connecting to unix domain sockets using ssh -WDamien Miller
by explicitly decoding PORT_STREAMLOCAL (a negative number) from the u32 that's passed over the multiplexing socket; previously code would just cast, which is UB.
2023-06-20reset comment=NULL for each key in do_fingerprint(); fixes "no comment"Damien Miller
not showing on when running `ssh-keygen -l` on multiple keys where one has a comment and other following keys do not. Patch from Markus Kuhn via GHPR407, bz3580
2023-06-13Remove debug info inadvertantly left in the last commit.Todd C. Miller
2023-06-12seq: fix check for rounding error/truncationTodd C. Miller
We need to compare the printable version of the last value displayed, not the floating point representation. Otherwise, we may print the last value twice. OK deraadt@
2023-06-11remove unused args_st structJonathan Gray
ok tb@
2023-06-11remove chopup_args() unused since apps.c rev 1.31Jonathan Gray
ok tb@
2023-06-11openssl enc: drop a few parens and unwrap a few linesTheo Buehler
No binary change on amd64
2023-06-11openssl enc: small style fixup after ZLIB unifdefTheo Buehler
2023-06-11Unifdef ZLIBTheo Buehler
This is very dead code: the openssl app was never compiled with -DZLIB after January 1, 2015.
2023-06-08Fix mismatch between function prototype and definition, from AnindyaNicholas Marriott
Mukherjee.
2023-06-08From the description of "openssl verify", delete the duplicate andIngo Schwarze
outdated list of error messages. Instead, refer to the master copy of that list in X509_STORE_CTX_get_error(3). Suggested by and OK tb@, and beck@ also agrees with the idea.
2023-06-08move to perl use v5.36Marc Espie
also fix a discrepancy wrt the "original" pkg-config thanks to tb@ for testing.
2023-06-07Refer to the field "thisUpdate" instead of the non-existent "lastUpdate".Ingo Schwarze
Similar to X509_get0_notBefore(3) rev. 1.6. Requested by and OK tb@.
2023-06-05Store timeouts as int, not u_int as they are limited to INT_MAX.Todd C. Miller
Fixes sign compare warnings systems with 32-bit time_t due to type promotion. OK djm@
2023-05-30fail when an argument is given on 'id -R'Omar Polo
from Lucas (lucas [at] sexy [dot] is). ok millert@
2023-05-30Due to the way make is designed, not being able to read a makefileMarc Espie
is basically silent. Record errors due to missing permissions and other oddities, and display them when we error out due to lack of targets, as a quality-of-life diagnostic. Based on a remark from sthen@, with some feedback and tweaks from op@ okay op@, kn@
2023-05-24fix AuthorizedPrincipalsCommand when AuthorizedKeysCommand appearsDamien Miller
previously in configuration. Reported by John Meyers in bz3574 ok dtucker@
2023-05-23New counters for LRO packets from hardware TCP offloading.Jan Klemkow
With tweaks from patrick@ and bluhm@. OK bluhm@
2023-05-22Remove unused variable kerr.Tobias Heider
ok bluhm@
2023-05-22Remove duplicate entries in kvars.Alexander Bluhm
OK tobhe@
2023-05-20Remove a space that I thought I had already deleted.Theo Buehler
Makes mandoc -Tlint happier
2023-05-20openssl speed: add an '-unaligned n' optionTheo Buehler
All hashes and ciphers covered by speed should be able to handle unaligned input and output. The buffers used in openssl speed are well aligned since they are large, so will never exercise the more problematic unaligned case. I wished something like this was available on various occasions. It would have been useful to point more easily at OpenSSL's broken T4 assembly. Yesterday there were two independent reasons for wanting it, so I sat down and did it. It's trivial: make the allocations a bit larger and use buffers starting at an offset inside these allocations. Despite the trivality, I managed to have a stupid bug. Thanks miod. discussed with jsing ok miod
2023-05-20openssl speed: minor style nitsTheo Buehler
This drops a bunch of unnecessary parentheses, makes the strcmp() checks consistent and moves some "}\n\telse" to "} else". Makes an upcoming commit smaller
2023-05-20openssl speed: remove binary curve remnantsTheo Buehler
This wasn't properly hidden under OPENSSL_NO_EC2M, and all it does now is producing ugly errors and useless "statistics". While looking at this, I found that much of speed "has been pilfered from [Eric A. Young's] libdes speed.c program". Apparently this was an precursor and ingredient of SSLeay. Unfortunately, it seems that this piece of the history is lost. ok miod PS: If anyone is bored, a rewrite from scratch of the speed 'app' would be a welcome contribution and may be an instructive rainy day project. The current code was written in about the most stupid way possible so as to maximize fragility and unmaintainability.
2023-05-19Add format for server_sessions, from Magnus Gross.Nicholas Marriott
2023-05-15calendar.canada: sync the entry for victoria day with that of calendar.holiday.Jason McIntyre
as seen this morning, Mon-Third* does not always work. Mon-2 works for now... calendar.uk: victoria day is obscure enough in scotland that i don;t think it warrants worth an entry
2023-05-15Add Juneteenth.Anthony J. Bentley
ok phessler@ jmc@
2023-05-10Implement TCP send offloading, for now in software only. This isAlexander Bluhm
meant as a fallback if network hardware does not support TSO. Driver support is still work in progress. TCP output generates large packets. In IP output the packet is chopped to TCP maximum segment size. This reduces the CPU cycles used by pf. The regular output could be assisted by hardware later, but pf route-to and IPsec needs the software fallback in general. For performance comparison or to workaround possible bugs, sysctl net.inet.tcp.tso=0 disables the feature. netstat -s -p tcp shows TSO counter with chopped and generated packets. based on work from jan@ tested by jmc@ jan@ Hrvoje Popovski OK jan@ claudio@
2023-05-10Remove now-unused prototypes for ssh1 RSA functions. From lengyijun viaDarren Tucker
github PR#396.
2023-05-08Prevent signed integer overflowTobias Stoeckmann
A signed integer overflow could occur after INT_MAX bad password attempts. Check for unlimited tries first and then increment the counter. Also consider INT_MAX to be a valid upper limit. ok millert@
2023-05-08Improve error handlingTobias Stoeckmann
Close pipe file descriptors if fork fails. Also do not parse exit status of child if waitpid fails. with input by and ok millert@
2023-05-08Reorder struct grid_cell_entryTheo Buehler
On aarch64 with llvm 15, the new -Wunaligned-access emits noise on every one of tmux's source files. This avoids this warning by moving a u_char to the end of the struct. This does not change the size of the struct on any architecture. ok nicm