summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2008-07-05grammarDamien Miller
2008-07-04Make protocol 1 MaxAuthTries logic match protocol 2's.Damien Miller
Do not treat the first protocol 2 authentication attempt as a failure IFF it is for method "none". Makes MaxAuthTries' user-visible behaviour identical for protocol 1 vs 2. ok dtucker@
2008-07-04handle EINTR in packet_write_poll()l ok dtucker@Damien Miller
2008-07-04fix compilation for !YP case; ok millert@Damien Miller
2008-07-04Make debug a little clearer. ok djm@Darren Tucker
2008-07-04support negation of groups in "Match group" block (bz#1315); ok dtucker@Damien Miller
2008-07-03avoid nasty double free; ok dtucker@ djm@Otto Moerbeek
2008-07-02When forking after authentication ("ssh -f") with ExitOnForwardFailureDamien Miller
enabled, delay the fork until after replies for any -R forwards have been seen. Allows for robust detection of -R forward failure when using -f (similar to bz#92); ok dtucker@
2008-07-02really really remove the freebie "none" auth try for protocol 2Damien Miller
2008-07-02Make protocol 2 MaxAuthTries behaviour a little more sensible:Damien Miller
Check whether client has exceeded MaxAuthTries before running an authentication method and skip it if they have, previously it would always allow one try (for "none" auth). Preincrement failure count before post-auth test - previously this checked and postincremented, also to allow one "none" try. Together, these two changes always count the "none" auth method which could be skipped by a malicious client (e.g. an SSH worm) to get an extra attempt at a real auth method. They also make MaxAuthTries=0 a useful way to block users entirely (esp. in a sshd_config Match block). Also, move sending of any preauth banner from "none" auth method to the first call to input_userauth_request(), so worms that skip the "none" method get to see it too.
2008-07-02Merge duplicate host key file checks, based in part on a patch from RobDarren Tucker
Holland via bz #1348 . Also checks for non-regular files during protocol 1 RSA auth. ok djm@
2008-07-02increase default size of ssh protocol 1 ephemeral key from 768 to 1024Damien Miller
bits; prodded by & ok dtucker@ ok deraadt@
2008-07-01fix some typos; ok djm@Kevin Steves
2008-07-01Send CR LF during protocol banner exchanges, but only for Protocol 2 only,Darren Tucker
in order to comply with RFC 4253. bz #1443, ok djm@
2008-07-01Check ExitOnForwardFailure if forwardings are disabled due to a failedDarren Tucker
host key check. ok djm@
2008-06-30set speed for writing tracks in TAO.av
ok and tweaks by fgsch manual page by jmc
2008-06-30clarify that eow@openssh.com is only sent on session channelsDamien Miller
2008-06-30only send eow@openssh.com notifications for session channels; ok! markus@Damien Miller
2008-06-30only pass channel requests on session channels through to the sessionDamien Miller
channel handler, avoiding spurious log messages; ok! markus@
2008-06-30typo: s/constraint_date/constraint_data/Damien Miller
2008-06-29Simplify state creation code; merge state import/export code between pfsyncRyan Thomas McBride
and the state-related pf(4) ioctls, and make functions in state creation and destruction paths more robust in error conditions. All values in struct pfsync_state now in network byte order, as with pfsync. testing by david ok henning, systat parts ok canacar
2008-06-29protocol 2 key blobs are strings, not byte arraysDamien Miller
2008-06-29documentation tweaks.Igor Sobrado
2008-06-28document the protocol used by ssh-agent; "looks ok" markus@Damien Miller
2008-06-28reset global compat flag after processing a protocol 2 signatureDamien Miller
request with the legacy DSA encoding flag set; ok markus
2008-06-28revert accidental commit (nearly 2 months ago!) thatDamien Miller
unconditionally enabled -Werror and -g
2008-06-28refuse to add a key that has unknown constraints specified;Damien Miller
ok markus
2008-06-28if the user supplied -A only checkout files again if a sticky tagJoris Vink
was in fact set, instead of ALWAYS checking them out no matter what. spotted & diff tested by naddy@
2008-06-28spelling fixesDamien Miller
2008-06-27Simply the version string and nuke unecessary variables used to build it.Xavier Santolaria
ok joris
2008-06-27Bump version; we're not going to stay with 1.0 forever.Xavier Santolaria
ok joris
2008-06-27sort flags; align usage output.Igor Sobrado
ok jmc@
2008-06-26plug a memleak in rcs_rev_getlines() - initially noticed & diff byJoris Vink
Igor Zinovik - but fixed in a better way by myself. ok tobias@
2008-06-26add VisualHostKey to the list of options listed in -o;Jason McIntyre
2008-06-26Move SSH Fingerprint Visualization away from sharing the config optionAlexander von Gernler
CheckHostIP to an own config option named VisualHostKey. While there, fix the behaviour that ssh would draw a random art picture on every newly seen host even when the option was not enabled. prodded by deraadt@, discussions, help and ok markus@ djm@ dtucker@
2008-06-26when loading moduli from /etc/moduli in sshd(8), check that theyDamien Miller
are of the expected "safe prime" structure and have had appropriate primality tests performed; feedback and ok dtucker@
2008-06-26some minor improvements from Pierre Riteau; ok djmJason McIntyre
2008-06-26allow the sftp chmod(2)-equivalent operation to set set[ug]id/stickyDamien Miller
bits. Note that this only affects explicit setting of modes (e.g. via sftp(1)'s chmod command) and not file transfers. (bz#1310) ok deraadt@ at c2k8
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-06-25in resume mode, pass -c to mget when {dir,file}hasglob, so that i'mMartynas Venckus
able to continue multiple transfers with -C; ok millert@ while here fix some comments (!SMALL vs. SMALL stuff), and add missing
2008-06-25- fix -Wall (no behavior change, a || b && c = a || (b && c) anyway)Martynas Venckus
- use argv[0] for "Confirm with", as other confirm()s do - fix confirm cases, pass force=1 for mdelete and mabort too, fixes a bug when you end up deleting all files when you ^C, instead of getting a confirmation - add reput command, that will allow to continue transfer uploads - add -c for mget and mput, that will allow to continue multiple transfers - fix a bug when you use restart command together with put. the progressmeter would start from zero, and eta would show fictional time. this actually allows reput/put -c to have correct progressmeter too - document everything discussed with, suggestions, reminded to ifdef SMALL the code so we're able to fit in floppies, and ok millert@, and jmc@
2008-06-25split test for __sparc__ into __sparc__ and __sparc64__Theo de Raadt
2008-06-25add key length to visual fingerprint; zap magical constants;Otto Moerbeek
ok grunk@ djm@
2008-06-24implement getpwnam_r() and getpwuid_r() -- very nearly a rewrite of theTheo de Raadt
entire file. much help from kurt, and tested by many
2008-06-24clarify tao's -a option; ok av fgschJason McIntyre
2008-06-23Some conformance fixes:Anders Magnusson
- Empty brackets forbidden in C99. - ? : and skipping middle argument is both disallowed and considered bad programming habit. OK ray@, xsa@.
2008-06-23new sentence, new line;Jason McIntyre
2008-06-22Automatically distinguish between CD-DA track and WAVE audio file writing themav
in TAO mode. For WAVE files we should skip header. ok and comments by fgsch
2008-06-21add a hash table mechanism based upon hcreate(3) but one that allowsJoris Vink
us to maintain multiple hash tables concurrently. immediatly start using it to keep track of what directories we have already created and what CVS dirs we already created so we do not recreate them when we do not need to. we will be switching more internals to use this soon. rejoice for cheaper lookups. ok tobias@
2008-06-21use optopt to get invalid flag, instead of return value of getopt,Martynas Venckus
which is always '?'; ok djm@