Matt Johnston
0ea2e3463d
try fix coverity build
...
--HG--
branch : coverity
2020-06-26 21:20:57 +08:00
Matt Johnston
ddb6751ab4
merge coverity from main
...
--HG--
branch : coverity
2020-06-26 21:07:34 +08:00
Guilhem Moulin
3727b099c5
Don't choke on disabled authorized_keys(5) options
...
As of 2020.79 X11 forwarding is disabled at build time, which could lock
out users with authorized_keys(5) files containing ‘no-X11-forwarding’
options.
2020-06-26 20:56:03 +08:00
Matt Johnston
45294b458a
update CHANGES for 2020.80
2020-06-26 20:55:56 +08:00
Matt Johnston
d51e4a75cd
Some notes on style
2020-06-26 20:41:34 +08:00
Matt Johnston
e9f2815144
Refer to libtom license files
2020-06-25 23:18:16 +08:00
Matt Johnston
2771fab0fa
merge
2020-06-23 22:25:57 +08:00
Matt Johnston
a7a67585cb
move GNU_SOURCE earlier
2020-06-23 22:24:58 +08:00
Ilya
366f01252e
fix trace messages ( #105 )
2020-06-23 22:20:05 +08:00
Matt Johnston
1490c0c3a6
check for poly1305_init in other libtomcrypt configure test
2020-06-23 21:47:54 +08:00
Matt Johnston
3f5c106a88
_GNU_SOURCE for random
2020-06-23 21:38:46 +08:00
Matt Johnston
10e119f638
Disable toom and karatsuba for new libtommath
2020-06-18 19:12:07 +08:00
Matt Johnston
5b68d117c2
Added signature for changeset 4877afd51e04
2020-06-15 23:51:45 +08:00
Matt Johnston
58106b1615
Added tag DROPBEAR_2020.79 for changeset e2e4929d057b
2020-06-15 23:51:39 +08:00
Matt Johnston
1e10af850b
can't call "make lint" without configure
2020-06-15 23:38:08 +08:00
Matt Johnston
ee4b4db816
changelog for 2020.79
2020-06-15 23:36:14 +08:00
Gabor Z. Papp
ab9cfce00d
Fix "make install" for manpages in out-of-tree builds
2020-06-15 23:17:27 +08:00
Matt Johnston
2b8106b14e
Add DEVELOPING.md
2020-06-15 22:30:28 +08:00
Matt Johnston
78c5daee52
Delay seedrandom until connections
2020-06-15 22:24:34 +08:00
Vladislav Grishenko
2301b6ac0b
Disallow leading lines before the ident for server ( #102 )
...
Per RFC4253 4.2 clients must be able to process other lines of data
before the version string, server behavior is not defined neither
with MUST/SHOULD nor with MAY.
If server process up to 50 lines too - it may cause too long hanging
session with invalid/evil client that consume host resources and
potentially may lead to DDoS on poor embedded boxes.
Let's require first line from client to be version string and fail
early if it's not - matches both RFC and real OpenSSH behavior.
2020-06-15 21:22:18 +08:00
Matt Johnston
a27e8b053e
Disable by default 3des, cbc, hmac-sha1-96, x11 forwarding
2020-06-11 00:09:15 +08:00
Matt Johnston
6145289e0d
Remove blowfish
2020-06-10 23:42:42 +08:00
Matt Johnston
d14ebdbf0e
avoid zero length array in base64_decode
2020-06-10 23:26:05 +08:00
Matt Johnston
4b305c5721
Merge libtomcrypt v1.18.2
2020-06-10 23:16:13 +08:00
Matt Johnston
615885be01
Fix whitespace changes vs upstream libtomcrypt
2020-06-10 23:01:33 +08:00
Vladislav Grishenko
6b823d617c
Sync curve25519 license
2020-06-10 22:13:53 +08:00
Kazuo Kuroi
ec993dbdbc
Set IOV_MAX for IRIX
2020-06-10 22:09:29 +08:00
Matt Johnston
ad1e9b7e3c
void return types for curve25519
2020-05-30 00:05:49 +08:00
Matt Johnston
846b8cdbf7
Remove unused DEBUG_FORKGPROF
2020-05-29 23:32:19 +08:00
Vladislav Grishenko
b0243b0e7b
Fix ChaCha20 on 32-bit platforms ( #99 )
...
* Fix ChaCha20 on 32-bit platforms
On 32-bit platforms with old compiler STORE64H() parameter is
not auto-expanded to 64-bit value, causing wrong IV data.
Spotted on BCM4706 MIPS32r2 with GCC 4.2.4:
Exit before auth: Integrity error (bad packet size 2065808956)
* Fix Chacha20-Poly1305 and AES-GCM debug messages
Functions were renamed earlier and trace messages - not.
2020-05-29 21:26:22 +08:00
Matt Johnston
4faf06aae7
Don't warn when SO_PRIORITY fails
2020-05-28 23:26:34 +08:00
Matt Johnston
07d46f9907
Fix typo DROPBEAR_NORMAL_DH
2020-05-28 23:23:54 +08:00
Vladislav Grishenko
413eaf1ba1
Allow DH to be completely disabled ( #97 )
...
Reduces binary size by ~2kB by default and by 21kB with no other
libtommath functions users, ex. with curve25519 kex and ed25519
key only.
2020-05-28 23:01:48 +08:00
Matt Johnston
3b359050b4
Fix warning for unused prngd branch
2020-05-28 23:01:15 +08:00
Matt Johnston
a015cc7594
Fix indentation and add braces
2020-05-28 22:55:49 +08:00
Matt Johnston
dc12be0cfe
merge
2020-05-28 22:52:01 +08:00
Matt Johnston
89e98a2f83
Use Linux getrandom() to ensure random device is initialised
...
Remove old code warning about random device being not ready,
/dev/random isn't used by default anyway.
2020-05-28 22:50:41 +08:00
Matt Johnston
5027bc4db1
set up early logging name
2020-05-28 22:02:33 +08:00
Matt Johnston
630f6aa6b9
initialise variable to stop warning
2020-05-28 22:02:03 +08:00
Matt Johnston
8048473eb9
Avoid oss-fuzz $SANITIZER causing wrong build
...
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22608
2020-05-27 20:33:45 +08:00
Matt Johnston
4216c984ae
Mention libtom version requirements, check for poly1305 in libtomcrypt
2020-05-27 00:05:15 +08:00
Matt Johnston
6abf756e51
Bring back -Werror and improve travis tests
2020-05-26 23:53:50 +08:00
Steffen Jaeckel
b4bd23b4d2
Update LibTomMath to 1.2.0 ( #84 )
...
* update C files
* update other files
* update headers
* update makefiles
* remove mp_set/get_double()
* use ltm 1.2.0 API
* update ltm_desc
* use bundled tommath if system-tommath is too old
* XMALLOC etc. were changed to MP_MALLOC etc.
2020-05-26 23:36:47 +08:00
Matt Johnston
724e61f8ae
try rearrange travis build matrix
2020-05-26 23:27:26 +08:00
Matt Johnston
49667a82de
.travis.yml needs spaces not tabs
2020-05-26 23:16:11 +08:00
Matt Johnston
a57114e7fa
update travis to Ubuntu focal to provide chacha20
2020-05-26 23:13:48 +08:00
Matt Johnston
cfe90bc6bd
Fix untested rsa-sha256 change to fuzzer-verify
2020-05-26 23:13:23 +08:00
Matt Johnston
0aefec6c89
Make "dbclient -m help -c help" work
2020-05-26 20:15:39 +08:00
Matt Johnston
6a3bc73a78
fix typo
2020-05-26 20:15:00 +08:00
Matt Johnston
73aa4f0de9
Get rid of unused "none" cipher option
2020-05-26 20:05:31 +08:00
Matt Johnston
9e25854b41
cast to fix warning
2020-05-26 19:57:28 +08:00
Matt Johnston
d277f140ba
merge rsa-sha256
2020-05-26 00:24:02 +08:00
Vladislav Grishenko
61267f8503
CBC mode cleanup ( #95 )
...
* Fix CBC mode can't be fully disabled
* Fix CBC mode can't be the only mode
2020-05-25 23:55:13 +08:00
Vladislav Grishenko
d3d0d60076
Add Chacha20-Poly1305, AES128-GCM and AES256-GCM support ( #93 )
...
* Add Chacha20-Poly1305 authenticated encryption
* Add general AEAD approach.
* Add chacha20-poly1305@openssh.com algo using LibTomCrypt chacha and
poly1305 routines.
Chacha20-Poly1305 is generally faster than AES256 on CPU w/o dedicated
AES instructions, having the same key size.
Compiling in will add ~5,5kB to binary size on x86-64.
function old new delta
chacha_crypt - 1397 +1397
_poly1305_block - 608 +608
poly1305_done - 595 +595
dropbear_chachapoly_crypt - 457 +457
.rodata 26976 27392 +416
poly1305_process - 290 +290
poly1305_init - 221 +221
chacha_setup - 218 +218
encrypt_packet 1068 1270 +202
dropbear_chachapoly_getlength - 147 +147
decrypt_packet 756 897 +141
chacha_ivctr64 - 137 +137
read_packet 543 637 +94
dropbear_chachapoly_start - 94 +94
read_kex_algos 792 880 +88
chacha_keystream - 69 +69
dropbear_mode_chachapoly - 48 +48
sshciphers 280 320 +40
dropbear_mode_none 24 48 +24
dropbear_mode_ctr 24 48 +24
dropbear_mode_cbc 24 48 +24
dropbear_chachapoly_mac - 24 +24
dropbear_chachapoly - 24 +24
gen_new_keys 848 854 +6
------------------------------------------------------------------------------
(add/remove: 14/0 grow/shrink: 10/0 up/down: 5388/0) Total: 5388 bytes
* Add AES128-GCM and AES256-GCM authenticated encryption
* Add general AES-GCM mode.
* Add aes128-gcm@openssh.com and aes256-gcm@openssh.com algo using
LibTomCrypt gcm routines.
AES-GCM is combination of AES CTR mode and GHASH, slower than AES-CTR on
CPU w/o dedicated AES/GHASH instructions therefore disabled by default.
Compiling in will add ~6kB to binary size on x86-64.
function old new delta
gcm_process - 1060 +1060
.rodata 26976 27808 +832
gcm_gf_mult - 820 +820
gcm_add_aad - 660 +660
gcm_shift_table - 512 +512
gcm_done - 471 +471
gcm_add_iv - 384 +384
gcm_init - 347 +347
dropbear_gcm_crypt - 309 +309
encrypt_packet 1068 1270 +202
decrypt_packet 756 897 +141
gcm_reset - 118 +118
read_packet 543 637 +94
read_kex_algos 792 880 +88
sshciphers 280 360 +80
gcm_mult_h - 80 +80
dropbear_gcm_start - 62 +62
dropbear_mode_gcm - 48 +48
dropbear_mode_none 24 48 +24
dropbear_mode_ctr 24 48 +24
dropbear_mode_cbc 24 48 +24
dropbear_ghash - 24 +24
dropbear_gcm_getlength - 24 +24
gen_new_keys 848 854 +6
------------------------------------------------------------------------------
(add/remove: 14/0 grow/shrink: 10/0 up/down: 6434/0) Total: 6434 bytes
2020-05-25 23:50:25 +08:00
Vladislav Grishenko
91e537e427
Mention Ed25519 in dropbearkey man ( #94 )
2020-05-25 21:28:27 +08:00
jcmathews
fb9a78c3ee
Add files via upload ( #90 )
...
When SSHKeepAlive is enabled, dropbear idletimeout is not working as expected.
2020-05-25 21:02:59 +08:00
Haelwenn Monnier
8f8a3dff70
scp.c: Port OpenSSH CVE-2018-20685 fix ( #80 )
2020-05-25 20:54:29 +08:00
Matt Johnston
c917807b1c
rsa-sha256 for ssh-agent
2020-05-25 20:23:02 +08:00
Matt Johnston
701d43b859
send and handle SSH_MSG_EXT_INFO only at the correct point
...
- other fixes for rsa pubkey auth
- only include ext-info handling when rsa pubkey auth is compiled
2020-05-24 14:16:58 +08:00
Matt Johnston
79bedc90a1
run linter
2020-05-24 13:34:19 +08:00
Matt Johnston
545cc62671
Add linter for #ifdef
2020-05-24 13:15:24 +08:00
Matt Johnston
331d4a714f
Make server send SSH_MSG_EXT_INFO
...
Ensure that only valid hostkey algorithms are sent in the first kex guess
2020-05-21 23:00:22 +08:00
Matt Johnston
2a81289ed3
Make DEBUG_NOFORK a #if not #ifdef
2020-05-21 22:58:56 +08:00
Matt Johnston
5acee497bf
ext-info handling for server-sig-algs
...
only client side is handled
2020-05-19 00:31:41 +08:00
Matt Johnston
972d723484
split signkey_type and signature_type for RSA sha1 vs sha256
2020-05-17 23:58:31 +08:00
Matt Johnston
7dc2f36c3e
use sigtype where appropriate
2020-04-06 23:18:26 +08:00
Alexander Dahl
90cfbe1f7a
When explicitly passing --disable-fuzz to ./configure fuzz was actually
...
enabled.
Signed-off-by: Alexander Dahl <ada@thorsis.com >
2020-03-27 23:23:11 +08:00
Alexander Dahl
b681570899
Update remaining advise to edit options.h
...
You should edit localoptions.h instead.
2020-03-10 15:38:38 +01:00
Matt Johnston
201e359363
Handle early exit when addrstring isn't set
2020-03-18 23:37:45 +08:00
Kevin Darbyshire-Bryant
fa4c4646d8
Improve address logging on early exit messages ( #83 )
...
Change 'Early exit' and 'Exit before auth' messages to include the IP
address & port as part of the message.
This allows log scanning utilities such as 'fail2ban' to obtain the
offending IP address as part of the failure event instead of extracting
the PID from the message and then scanning the log again for match
'child connection from' messages
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk >
2020-03-18 23:28:56 +08:00
Matt Johnston
6f6aa9db5a
merge
2020-03-14 23:33:30 +08:00
Matt Johnston
e35d0784a8
Set SSH_ORIGINAL_COMMAND for "dropbear -c" too, fix build without
...
DROPBEAR_SVR_PUBKEY_OPTIONS
2020-03-14 23:28:18 +08:00
Matt Johnston
cc6fa57a41
Don't log authorized_keys command= every time
2020-03-14 23:26:37 +08:00
Matt Robinson
a26ad21c0a
Fallback for key gen without hard link support ( #89 )
...
Add a non-atomic fallback for key generation on platforms where link()
is not permitted (such as most stock Android installs) or on filesystems
without hard link support (such as FAT).
2020-03-14 22:37:35 +08:00
zciendor
002b79e2f9
MOTD enabled by default as the manpage says ( #87 )
...
The man page (https://github.com/mkj/dropbear/blob/master/dropbear.8 ) says MOTD will be printed by default for any login shell, but it was disabled at compile time. Probably happened by accident when this code was moved from `options.h` to `default_options.h`.
2020-03-14 22:21:01 +08:00
Vladislav Grishenko
3d12521735
Add Ed25519 support ( #91 )
...
* Add support for Ed25519 as a public key type
Ed25519 is a elliptic curve signature scheme that offers
better security than ECDSA and DSA and good performance. It may be
used for both user and host keys.
OpenSSH key import and fuzzer are not supported yet.
Initially inspired by Peter Szabo.
* Add curve25519 and ed25519 fuzzers
* Add import and export of Ed25519 keys
2020-03-12 00:09:45 +08:00
Matt Johnston
b2007beeb0
bring back fsync_parent_dir
2019-10-18 23:48:16 +08:00
Matt Johnston
8f123fb618
Bring back Dropbear patch to avoid setting AR/LD/RANLIB in LTM
2019-09-17 22:26:03 +08:00
Steffen Jaeckel
c71258625d
Prime-related bugfixes ( #81 )
...
* Merge pull request #180 from czurnieden/isprimeerror
Fixed bug in mp_prime_isprime
(cherry picked from commit f3ff7064f3301a2fc11b84d389fd67769862d437)
* do 2 MR rounds for numbers >=2048bits
* back-port modified mp_prime_next_prime()
2019-09-17 22:11:09 +08:00
Steffen Jaeckel
615ed4e46a
update ltm to 1.1.0 and enable FIPS 186.4 compliant key-generation ( #79 )
...
* make key-generation compliant to FIPS 186.4
* fix includes in tommath_class.h
* update fuzzcorpus instead of error-out
* fixup fuzzing make-targets
* update Makefile.in
* apply necessary patches to ltm sources
* clean-up not required ltm files
* update to vanilla ltm 1.1.0
this already only contains the required files
* remove set/get double
2019-09-16 21:50:38 +08:00
Matt Johnston
fa116e983b
Rename EPKA -> Plugin
2019-05-15 21:59:45 +08:00
fabriziobertocci
8c6aaf8d36
External Public-Key Authentication API ( #72 )
...
* Implemented dynamic loading of an external plug-in shared library to delegate public key authentication
* Moved conditional compilation of the plugin infrastructure into the configure.ac script to be able to add -ldl to dropbear build only when the flag is enabled
* Added tags file to the ignore list
* Updated API to have the constructor to return function pointers in the pliugin instance. Added support for passing user name to the checkpubkey function. Added options to the session returned by the plugin and have dropbear to parse and process them
* Added -rdynamic to the linker flags when EPKA is enabled
* Changed the API to pass a previously created session to the checkPubKey function (created during preauth)
* Added documentation to the API
* Added parameter addrstring to plugin creation function
* Modified the API to retrieve the auth options. Instead of having them as field of the EPKASession struct, they are stored internally (plugin-dependent) in the plugin/session and retrieved through a pointer to a function (in the session)
* Changed option string to be a simple char * instead of unsigned char *
2019-05-15 21:43:57 +08:00
Matt Johnston
cae6e6af10
Added signature for changeset ebcdb893992d
2019-03-27 22:15:23 +08:00
Matt Johnston
f89c5b0390
Added tag DROPBEAR_2019.78 for changeset 009d52ae26d3
2019-03-27 22:15:10 +08:00
Matt Johnston
4318631dd6
Bump to 2019.78
2019-03-27 21:47:34 +08:00
Matt Johnston
7bc6280613
Fix regression where TTY modes weren't reset for client
2019-03-24 20:41:02 +08:00
Matt Johnston
e9231f73c2
Added signature for changeset 07b0d56d186d
2019-03-23 21:54:23 +08:00
Matt Johnston
4fd40e61f7
Added tag DROPBEAR_2019.77 for changeset 6d1bbe7d5fa5
2019-03-23 21:54:21 +08:00
Matt Johnston
71f818262c
2019.77
2019-03-23 21:46:29 +08:00
Matt Johnston
07f790db5a
use "openssl sha256"
2019-03-23 21:45:00 +08:00
Matt Johnston
78a3388b98
Update config.sub to 2019-01-05 and config.guess to 2019-03-04
2019-03-23 21:19:02 +08:00
Matt Johnston
6e3c3c8c51
try for coverity
...
--HG--
branch : coverity
2019-03-21 23:28:59 +08:00
Matt Johnston
6fecc91d10
fix constness build error
2019-03-21 00:21:38 +08:00
Matt Johnston
ef080502f8
merge coverity
...
--HG--
branch : coverity
2019-03-21 00:14:38 +08:00
Matt Johnston
8b4f60a7a1
limit password length to 100
2019-03-21 00:09:07 +08:00
Matt Johnston
01cd1bd11f
Increase MAX_USERNAME_LEN to 100
2019-03-20 23:47:25 +08:00
Christian Hohnstädt
f6df3e1fec
dropbearconvert: keyimport.c: fix BER encoding of secp521r1 keys ( #69 )
...
keysizes >= 128 octets will be encoded with a 3 byte header
which must be accounted by the optional-header
Reproduce:
master:~/build/dropbear$ ./dropbearkey -t ecdsa -s 521 -f K
Generating 521 bit ecdsa key, this may take a while...
master:~/build/dropbear$ ./dropbearconvert d o K L
Key is a ecdsa-sha2-nistp521 key
Wrote key to 'L'
master:~/build/dropbear$ openssl ec < L
read EC key
unable to load Key
139769806448384:error:0D07209B:asn1 encoding routines:ASN1_get_object:too long:crypto/asn1/asn1_lib.c:91:
2019-03-20 23:42:47 +08:00
xcko
553087b7a6
support openssh long option -o Port=XXXX ( #68 )
2019-03-20 23:08:25 +08:00
karel-m
16fb0b0d53
cygwin competibility fix ( #64 )
2019-03-20 23:05:37 +08:00
Andre McCurdy
493ab8fd81
drop obsolete definition for MAX_KEXHASHBUF ( #65 )
...
The last code to make use of MAX_KEXHASHBUF was removed in 2005:
736f370dce
Signed-off-by: Andre McCurdy <armccurdy@gmail.com >
2019-03-20 23:01:41 +08:00
Matt Johnston
0afcfafbb9
Add a sanity check for DROPBEAR_SVR_MULTIUSER==0 mode
2019-03-20 22:57:06 +08:00
Patrick Stewart
0af22aa8e4
Support servers without multiple user support ( #76 )
2019-03-20 22:44:49 +08:00
Konstantin Demin
2fd3b9f560
packet: remove stale comment about "packet_type" ( #63 )
...
clean up after 7f15910541
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com >
2019-03-20 22:33:15 +08:00
François Perrad
2de3bc9353
fix some gcc warnings ( #73 )
...
* tweak string size
fix gcc8 warnings
```
svr-agentfwd.c: In function 'bindagent':
svr-agentfwd.c:254:53: warning: '%s' directive output may be truncated writing up to 107 bytes into a region of size between 0 and 107 [-Wformat-truncation=]
snprintf(addr.sun_path, sizeof(addr.sun_path), "%s/%s", path, sockfile);
^~ ~~~~~~~~
svr-agentfwd.c:254:2: note: 'snprintf' output between 2 and 216 bytes into a destination of size 108
snprintf(addr.sun_path, sizeof(addr.sun_path), "%s/%s", path, sockfile);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
* cleanup signed/unsigned comparison
fix gcc8 warnings
```
scp.c: In function 'do_local_cmd':
scp.c:132:17: warning: comparison of integer expressions of different signedness: 'u_int' {aka 'unsigned int'} and 'int' [-Wsign-compare]
for (i = 0; i < a->num; i++)
^
scpmisc.c: In function 'addargs':
scpmisc.c:161:25: warning: comparison of integer expressions of different signedness: 'int' and 'u_int' {aka 'unsigned int'} [-Wsign-compare]
} else if (args->num+2 >= nalloc)
^~
scpmisc.c: In function 'replacearg':
scpmisc.c:183:12: warning: comparison of integer expressions of different signedness: 'u_int' {aka 'unsigned int'} and 'int' [-Wsign-compare]
if (which >= args->num)
^~
scpmisc.c: In function 'freeargs':
scpmisc.c:196:17: warning: comparison of integer expressions of different signedness: 'u_int' {aka 'unsigned int'} and 'int' [-Wsign-compare]
for (i = 0; i < args->num; i++)
^
```
see https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/misc.h.diff?r1=1.16&r2=1.17
2019-03-20 22:25:15 +08:00
François Perrad
28b6111db0
use strlcpy & strlcat ( #74 )
...
* refactor checkpubkeyperms() with safe BSD functions
fix gcc8 warnings
```
svr-authpubkey.c: In function 'checkpubkeyperms':
svr-authpubkey.c:427:2: warning: 'strncat' specified bound 5 equals source length [-Wstringop-overflow=]
strncat(filename, "/.ssh", 5); /* strlen("/.ssh") == 5 */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
svr-authpubkey.c:433:2: warning: 'strncat' specified bound 16 equals source length [-Wstringop-overflow=]
strncat(filename, "/authorized_keys", 16);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
see https://www.sudo.ws/todd/papers/strlcpy.html
* restore strlcpy in xstrdup
see original https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/xmalloc.c?rev=1.16
2019-03-20 22:09:19 +08:00
vincentto13
a0aa274981
Fix for issue successfull login of disabled user ( #78 )
...
This commit introduces fix for scenario:
1. Root login disabled on dropbear
2. PAM authentication model enabled
While login as root user, after prompt for password
user is being notified about login failrue, but
after second attempt of prompt for password within
same session, login becames succesfull.
Signed-off-by: Pawel Rapkiewicz <pawel.rapkiewicz@gmail.com >
2019-03-20 22:03:40 +08:00
Michael Jones
b016ebedfd
Add missing word to readme ( #77 )
2019-03-20 21:56:19 +08:00
François Perrad
cb945f9f67
add missing initializer ( #71 )
2019-01-07 23:09:45 +08:00
Matt Johnston
df0f1297eb
merge
2018-11-14 22:58:35 +08:00
Matt Johnston
fe992bf4ea
Split ChanType closehandler() and cleanup() so that dbclient doesn't
...
lose exit status messages
2018-11-14 22:57:56 +08:00
Matt Johnston
ffde4a524f
Remove some cluttering TRACE printouts
2018-11-14 22:52:04 +08:00
Matt Johnston
7e03e4d443
Remove incorrect _POSIX_C_SOURCE
2018-11-06 07:25:53 +08:00
Matt Johnston
02ffdd09dc
- Add adaptive authentication failure delay
...
- Rework monotonic_now/gettime_wrapper and use clock_gettime on more platforms
2018-11-05 23:36:34 +08:00
Matt Johnston
6f6ef4834c
merge remote forward fix
2018-09-07 23:02:53 +08:00
Matt Johnston
d2e71ade72
FIx remote forward listeners
2018-09-07 23:02:20 +08:00
Matt Johnston
892c5fc1c8
Merge writev #include fix
2018-08-26 22:26:42 +08:00
Matt Johnston
e7504b3311
make writev #include consistent for variable declarations too
2018-08-23 23:59:24 +08:00
Matt Johnston
ad3eacf3d6
Merge bugfix delay invalid users
2018-08-23 23:43:45 +08:00
Matt Johnston
52adbb34c3
Wait to fail invalid usernames
2018-08-23 23:43:12 +08:00
Matt Johnston
90f04384ee
fix error message to say localoptions.h
2018-08-23 22:10:07 +08:00
Matt Johnston
195934be96
avoid extended regex features to avoid caring about sed -r vs -E
2018-07-24 20:19:05 +08:00
Matt Johnston
fdbdbe5703
merge coverity
...
--HG--
branch : coverity
2018-03-21 00:52:02 +08:00
Matt Johnston
d740dc5489
Fix leaks in kex fuzzers
2018-03-09 23:16:37 +08:00
Matt Johnston
76933e6c0a
move dictionaries to corpus repo
2018-03-09 20:43:11 +08:00
Matt Johnston
38c9408cf8
avoid leak of ecdh public key
2018-03-08 23:51:33 +08:00
Matt Johnston
397af3e6a6
kexhashbuf was much to small in kex fuzzers
2018-03-08 23:23:19 +08:00
Matt Johnston
933bc5f8a7
Disable wrapfds outside of fuzzed code
2018-03-08 23:22:53 +08:00
Matt Johnston
ba94bcd2e8
It turns out you can't have a single-quote in an #error
2018-03-08 22:37:54 +08:00
Matt Johnston
56855744b8
Only advertise a single server ecdsa key when -R (generate as required) is
...
specified. Fixes -R now that default ecdsa key size has changed.
2018-03-08 22:25:33 +08:00
Matt Johnston
b4b11c8155
#error if no ecc size is chosen
2018-03-08 22:22:11 +08:00
Matt Johnston
f82933108d
reduce fuzzer-kexdh params count again, still hitting timeout
2018-03-07 22:50:32 +08:00
Matt Johnston
27828c742c
don't allow null characters in authorized_keys
2018-03-07 22:16:21 +08:00
Matt Johnston
ed4c38ba46
fix leak in option handling
2018-03-07 22:14:36 +08:00
Matt Johnston
e9edbe8bb2
avoid leak of pubkey_options
2018-03-06 22:18:20 +08:00
Matt Johnston
4fd3160179
fix uninitialised memory in fuzzer codepath
2018-03-06 22:02:19 +08:00
Matt Johnston
a60725740b
workaround memory sanitizer FD_ZERO false positives
2018-03-06 21:51:51 +08:00
Matt Johnston
5d065258da
reduce number of dh parameters so fuzzer doesn't timeout
2018-03-06 21:00:09 +08:00
Matt Johnston
149b21d7cf
ciphers/hashes/kex algorithms won't have string lengths, also use
...
dictionary for fuzzer-preauth_nomaths
2018-03-05 21:02:26 +08:00
Matt Johnston
145fb96989
Don't read uninitialised value.
...
From 1d03522625
2018-03-05 16:50:24 +08:00
Matt Johnston
084ff9b4c8
reduce number of params so it doesn't hit a timeout
2018-03-05 16:29:57 +08:00
Matt Johnston
6b05aa4275
fix some links
2018-03-05 14:14:26 +08:00
Matt Johnston
366fc8f335
notes on the fuzzer
2018-03-05 14:07:11 +08:00
Matt Johnston
35f479bd87
Add kexdh and kexecdh fuzzers
2018-03-05 11:50:31 +08:00
Matt Johnston
9d11cad5dc
dictionary for fuzzer-preauth
2018-03-05 00:59:17 +08:00
Matt Johnston
0233dcebb4
try and improve the odds of useful fuzzer activity
2018-03-04 22:11:23 +08:00
Matt Johnston
f7dedab4a7
- fuzzer-pubkey needs to free algoname, fix build
...
- improve dictionary with lengths
2018-03-04 21:44:09 +08:00
Matt Johnston
129c440362
add a dictionary for fuzzer-pubkey
2018-03-04 19:38:34 +08:00
Matt Johnston
abee8093b3
use random keyblob from the fuzzer instead
2018-03-04 19:19:45 +08:00
Matt Johnston
2583b180c9
travis fuzz build clang++
2018-03-04 17:17:37 +08:00
Matt Johnston
1e1e477d85
set up CXX for fuzzing build
2018-03-04 17:08:21 +08:00
Matt Johnston
85eda7d943
try fix travis sanitizer
2018-03-04 15:18:20 +08:00
Matt Johnston
4b36e24735
print config.log on failure
2018-03-04 15:09:41 +08:00
Matt Johnston
921592d37e
merge coverity
...
--HG--
branch : coverity
2018-03-04 15:07:09 +08:00
Matt Johnston
a5eac0a065
add -fsanitize=address for fuzz test again
2018-03-04 15:00:51 +08:00
Matt Johnston
7f15910541
get rid of unused packet_type in encrypted write queue
2018-03-04 14:57:18 +08:00
Matt Johnston
625b38d7af
merge
2018-03-03 11:11:04 +08:00
Matt Johnston
b9edf939f4
add cryptlib for all targets in fuzz build
2018-03-03 11:08:26 +08:00
François Perrad
257bba00ac
some linting after fuzz merge ( #60 )
...
* fix prototype
* remove extra comma
* use m_free after m_strdup
2018-03-03 11:06:45 +08:00
Matt Johnston
8d0b48f165
Fix CFLAGS for configure
2018-03-03 10:10:16 +08:00
Matt Johnston
ce1f9cdf7c
no werror for fuzzing clang
2018-03-02 00:11:27 +08:00
Matt Johnston
e612aec5d9
Attempt to fix m_free for libtomcrypt/libtommath
2018-03-02 00:02:06 +08:00
Matt Johnston
5bd0c0d25a
avoid fsanitize=address for fuzzing
2018-03-01 23:47:46 +08:00
Matt Johnston
26ad6853d2
Only use malloc wrapper if fuzzing
2018-03-01 23:46:24 +08:00
Matt Johnston
8a4f7fe4f8
avoid volatile cast warning
2018-03-01 23:46:07 +08:00
Matt Johnston
294e98c397
don't try clang-5.0
2018-03-01 22:58:39 +08:00
Matt Johnston
c1a2dcb25d
add fuzzers to travis
2018-03-01 22:54:57 +08:00
Matt Johnston
a0972e0ac6
mention localoptions.h being build directory, fix underscore in CHANGES
2018-03-01 22:12:30 +08:00
Matt Johnston
8062a4e8d6
mention localoptions.h being build directory, fix underscore in CHANGES
2018-03-01 22:12:30 +08:00
Matt Johnston
a0ab5e86b5
more portable for which hg test
2018-02-28 23:42:57 +08:00
Matt Johnston
a1dcaf82a0
Merge fuzzing branch
2018-02-28 22:12:05 +08:00
Matt Johnston
78e17f6ee9
merge from main
...
--HG--
branch : fuzz
2018-02-28 22:11:39 +08:00
Matt Johnston
5ebc48b3f2
clean some fuzzing conditionals
...
--HG--
branch : fuzz
2018-02-28 22:10:43 +08:00
François Perrad
1ae4237920
fix #endif ( #59 )
2018-02-28 15:10:14 +01:00
Matt Johnston
5ca12d8332
avoid extended regex features to avoid caring about sed -r vs -E
2018-07-24 20:19:05 +08:00
François Perrad
7f8702d3d6
fix #endif ( #59 )
2018-02-28 22:10:14 +08:00
Matt Johnston
5f2447edbb
Fix to be able to compile normal(ish) binaries with --enable-fuzz
...
--HG--
branch : fuzz
2018-02-28 22:02:12 +08:00
Matt Johnston
c658b275fd
- #if not #ifdef for DROPBEAR_FUZZ
...
- fix some unused variables
--HG--
branch : fuzz
2018-02-28 21:40:08 +08:00
Matt Johnston
9bbce01e1b
merge from main
...
--HG--
branch : fuzz
2018-02-28 21:28:59 +08:00
Matt Johnston
bbe02dc3cf
Added signature for changeset 2f0c3f3361d3
2018-02-27 22:49:06 +08:00
Matt Johnston
3d76aecaa6
Added tag DROPBEAR_2018.76 for changeset 1c66ca4f3791
2018-02-27 22:48:42 +08:00
Matt Johnston
64bd345a5d
Bump version
2018-02-27 22:21:48 +08:00
Matt Johnston
152c507499
bump debian changelog
2018-02-27 22:14:46 +08:00
Matt Johnston
e2ae628b17
CHANGES for 2018.76
2018-02-27 22:14:04 +08:00
Matt Johnston
6eabc0fe87
add guard HAVE_GETGROUPLIST
2018-02-27 21:49:10 +08:00
Matt Johnston
bf6f04cbe6
Remove unused tests for headers and functions
2018-02-27 21:41:56 +08:00
Matt Johnston
e0c86670e2
only clean libtom when using bundled libraries
2018-02-26 23:13:54 +08:00
Matt Johnston
7840691420
remove references to TODO
2018-02-26 23:12:59 +08:00
Matt Johnston
96e1a7e6da
avoid warning about port
2018-02-26 23:12:02 +08:00
Matt Johnston
5df73215f8
merge from main
...
--HG--
branch : fuzz
2018-02-26 22:44:48 +08:00
Matt Johnston
04a02730bc
merge coverity
...
--HG--
branch : coverity
2018-02-26 22:43:12 +08:00
Matt Johnston
3996e93a20
make group1 client-only
2018-02-26 22:42:53 +08:00
Matt Johnston
246f24eda8
Change default ecdsa size to 256
2018-02-26 22:19:01 +08:00
Matt Johnston
4aa72b96c1
disable group1 in default config
2018-02-26 22:14:11 +08:00
Matt Johnston
0fc20c70af
don't log server listen ports
2018-02-26 22:12:39 +08:00
Matt Johnston
ebc915baae
ignore default_options_guard.h
2018-02-26 22:08:53 +08:00
Matt Johnston
7435369615
- Don't try to handle changed usernames
...
- Avoid logging repeated failed username messages
2018-02-26 22:07:18 +08:00
François Perrad
2e836bb553
more linting ( #58 )
...
* const parameter
* fix indentation
2018-02-26 21:31:15 +08:00
Matt Johnston
36ccfd21e7
Fix restricted group code for BSDs, move to separate function
2018-02-26 21:17:13 +08:00
Matt Johnston
44c323872a
Merge branch 'stellarpower-master'
2018-02-22 23:07:13 +08:00
Matt Johnston
094972ea84
Merge branch 'master' of git://github.com/stellarpower/dropbear into stellarpower-master
2018-02-22 23:06:45 +08:00
Matt Johnston
2707f054a5
clarify that -r skips default hostkeys
2018-02-22 21:57:47 +08:00
CamVan Nguyen
4c95d595c0
Only load dropbear default host keys if a key is not specified
2018-02-22 21:55:15 +08:00
Matt Johnston
573838a027
print hg revid
...
--HG--
branch : fuzz
2018-02-21 21:59:52 +08:00
Matt Johnston
05f4e29a52
The fuzzer has managed to generated DSS key/signature pairs that
...
verify. Avoid false positives from bogus keys that wouldn't be used
--HG--
branch : fuzz
2018-02-21 21:49:24 +08:00
Matt Johnston
dbc0520992
compile fixes
...
--HG--
branch : fuzz
2018-02-21 21:03:42 +08:00
François Perrad
7efe873d73
use a full prototype ( #56 )
2018-02-20 23:13:42 +08:00
Matt Johnston
4058574cfa
add curve25519-sha256 without @libssh.org
2018-02-20 19:35:26 +08:00
stellarpower
d17dedfa4f
Added the -G option to allow logins only for users that are members of a certain group. This allows finer control of an instance on who can and cannot login over a certain instance (e.g. password and not key). Needs double-checking and ensuring it meets platform requirements.
2018-02-20 02:11:55 +00:00
Matt Johnston
dcce2cfd8d
merge coverity
...
--HG--
branch : coverity
2018-02-19 23:14:49 +08:00
Matt Johnston
4768351e89
Remove bad merged libtommmath "clean" rule and leftover makefile.include
2018-02-19 23:04:46 +08:00
Matt Johnston
3f3f399231
- Fix dependencies and remove old default_options.h from version control
...
- Rename default_options.h.in -> default_options.h, and
default_options.h -> default_options_guard.h
- Fix newlines in default_options.h
2018-02-19 22:16:50 +08:00
Matt Johnston
316c923188
draft CHANGES
2018-02-18 23:48:32 +08:00
Matt Johnston
8fdaf0268d
missed regenerating
2018-02-18 23:48:24 +08:00
Matt Johnston
f2d86ae7d3
group14-sha256 should be higher than group14-sha1
2018-02-18 22:47:51 +08:00
Matt Johnston
34ee326075
clean up some default options
...
- move hmac-sha2-512, hmac-md5, twofish_ctr to sysoptions.h, off by default
- try and improve text for KEX methods
2018-02-18 22:27:51 +08:00
Matt Johnston
1656db9e58
Add dbclient '-J &fd' option for a file descriptor
...
Based on patch by Harald Becker
2018-02-18 15:12:15 +08:00
Matt Johnston
802dace05e
include config.h for options.h. don't need to include options.h when
...
includes.h brings it in
2018-02-18 11:22:13 +08:00
Matt Johnston
c2f2f2b817
rename some options and move some to sysoptions.h
2018-02-18 00:29:17 +08:00
Matt Johnston
dcb41e91eb
limit rsa->e size to 64 bits
...
--HG--
branch : fuzz
2018-02-17 19:41:44 +08:00
Matt Johnston
67111efdad
limit rsa->e size to 64 bits
2018-02-17 19:41:44 +08:00
Matt Johnston
5fd677af76
12 years is too old for a TODO list
2018-02-20 19:30:34 +08:00
Matt Johnston
b080f5a047
rename default_options.h.in in docs too
2018-02-20 19:29:55 +08:00
Matt Johnston
7e8094d53a
merge from main
...
--HG--
branch : fuzz
2018-02-17 19:29:51 +08:00
Matt Johnston
c8d852caf6
loginrec close fd on error path
2018-02-17 12:16:18 +08:00
Matt Johnston
00a1290173
merge coverity up to date
...
--HG--
branch : coverity
2018-02-17 11:29:17 +08:00
François Perrad
f042eb41ab
more linting ( #55 )
...
* dropbear_exit: remove priority parameter
confusion with dropbear_log()
* const parameter
2018-02-17 11:27:37 +08:00
Loganaden Velvindron
017e2f07a7
Add Spectre v2 mitigations for GCC ( #54 )
2018-02-16 23:35:32 +08:00
Matt Johnston
3a923b72a4
Merge branch 'master' of github.com:mkj/dropbear
2018-02-16 23:33:46 +08:00
Francois Perrad
5bf1214859
use NULL instead of 0
2018-02-16 23:32:11 +08:00
Francois Perrad
2ef1ab0753
fix indentation
2018-02-16 23:31:58 +08:00
Matt Johnston
c218af6ea7
merge
2018-02-16 23:17:48 +08:00
Matt Johnston
e0748b1970
Remove accidentally committed DROPBEAR_FUZZ
2018-02-16 23:17:15 +08:00
Michael Witten
3ee685ad1c
options: Complete the transition to numeric toggles (`#if')
...
For the sake of review, this commit alters only the code; the affiliated
comments within the source files also need to be updated, but doing so
now would obscure the operational changes that have been made here.
* All on/off options have been switched to the numeric `#if' variant;
that is the only way to make this `default_options.h.in' thing work
in a reasonable manner.
* There is now some very minor compile-time checking of the user's
choice of options.
* NO_FAST_EXPTMOD doesn't seem to be used, so it has been removed.
* ENABLE_USER_ALGO_LIST was supposed to be renamed DROPBEAR_USER_ALGO_LIST,
and this commit completes that work.
* DROPBEAR_FUZZ seems to be a relatively new, as-yet undocumented option,
which was added by the following commit:
commit 6e0b539e9c
Author: Matt Johnston <matt@ucc.asn.au >
Date: Tue May 23 22:29:21 2017 +0800
split out checkpubkey_line() separately
It has now been added to `sysoptions.h' and defined as `0' by default.
* The configuration option `DROPBEAR_PASSWORD_ENV' is no longer listed in
`default_options.h.in'; it is no longer meant to be set by the user, and
is instead left to be defined in `sysoptions.h' (where it was already being
defined) as merely the name of the environment variable in question:
DROPBEAR_PASSWORD
To enable or disable use of that environment variable, the user must now
toggle `DROPBEAR_USE_DROPBEAR_PASSWORD'.
* The sFTP support is now toggled by setting `DROPBEAR_SFTPSERVER', and the
path of the sFTP server program is set independently through the usual
SFTPSERVER_PATH.
2018-02-16 23:13:47 +08:00
Matt Johnston
17be46e229
disallow inetd -v
2018-02-15 23:30:54 +08:00
Matt Johnston
370d4c7cd5
fix unused variable from merge
2018-02-14 23:09:40 +08:00
Matt Johnston
1700987bfc
fix compile warnings
2018-02-14 23:09:28 +08:00
Matt Johnston
a1aa161527
make signal flags volatile, simplify handling
2018-02-14 23:06:01 +08:00
Matt Johnston
9a7972dcb8
Move DEBUG_TRACE to default_options
2018-02-14 00:24:44 +08:00
Matt Johnston
191f22e11a
Update build instructions for localoptions, and tidy
2018-02-14 00:24:32 +08:00
Matt Johnston
93632660bb
update some dependencies
2018-02-14 00:17:30 +08:00
Matt Johnston
84d415fb66
update default_options.h
2018-02-14 00:17:22 +08:00
Michael Witten
ad9db51434
build: Remove unused constructs: space' and AC_PROG_MAKE_SET'
...
The makefile variable `space' is never used.
The autoconf output variable `SET_MAKE' is never used, so the
autoconf macro `AC_PROG_MAKE_SET' has been removed.
2018-02-11 23:43:19 +08:00
Matt Johnston
1a37d7aa48
Removed commented out code
2018-02-11 23:03:31 +08:00
Matt Johnston
22eb197d6c
Fix building default_options.h
2018-02-11 10:53:59 +08:00
Matt Johnston
3953018c2d
simplify error handling, check mp_copy return value
2018-02-10 19:25:00 +08:00
Matt Johnston
cfe99a79bd
limit travis branches
2018-02-10 19:06:30 +08:00
Matt Johnston
a3a0b26581
limit travis branches
...
--HG--
branch : coverity
2018-02-10 19:06:13 +08:00
Matt Johnston
276197b404
merge
...
--HG--
branch : coverity
2018-02-10 19:03:54 +08:00
Matt Johnston
ee812daf69
Use an explicit matrix instead, avoid bad clang combinations etc
2018-02-10 18:57:44 +08:00
Matt Johnston
df66daa26a
use parent $CC etc
2018-02-10 18:57:20 +08:00
Matt Johnston
484d1e9b81
merge
...
--HG--
branch : coverity
2018-02-10 08:27:30 +08:00
Matt Johnston
8013009880
pass CFLAGS to LTC_CFLAGS
2018-02-10 00:12:31 +08:00
Matt Johnston
95b99cc86a
cast m_burn argument away from volatile
2018-02-10 00:12:22 +08:00
Matt Johnston
6a713ad834
exclude clang rather than osx for unbundled libtom
2018-02-10 00:09:02 +08:00
Matt Johnston
278a3e43e5
merge
...
--HG--
branch : coverity
2018-02-09 23:58:47 +08:00
Matt Johnston
c81e530d3c
missed saving a file removing none cipher
2018-02-09 23:58:13 +08:00
Matt Johnston
2df2117388
update coverity
...
--HG--
branch : coverity
2018-02-09 23:49:22 +08:00
Matt Johnston
4b021ae6f0
Remove none cipher
2018-02-09 23:40:23 +08:00
Matt Johnston
a36f182b36
Put Dropbear config in a separate file
...
Patch out MECC DER
2018-02-09 23:35:07 +08:00
Matt Johnston
d8bb6a7816
Fix commenting out
2018-02-09 23:34:48 +08:00
Matt Johnston
57d474e183
add $srcdir as needed
2018-02-09 23:34:03 +08:00
Matt Johnston
d7e12aadbe
generate list of libtomcrypt directories automatically
2018-02-09 23:33:41 +08:00
Matt Johnston
c0df3902b7
Update Makefile.in
2018-02-09 22:19:42 +08:00
Matt Johnston
4f2eb1914b
Update to libtomcrypt 1.18.1, merged with Dropbear changes
2018-02-09 21:44:05 +08:00
Matt Johnston
d72f50ff32
Update to libtommath v1.0.1
2018-02-08 23:11:40 +08:00
Matt Johnston
debb208553
Test for -Wno-pointer-sign, move CFLAGS tests into a macro
2018-02-08 22:21:47 +08:00
Matt Johnston
f581ef9453
define CLOCK_MONOTONIC if needed
2018-02-08 22:07:59 +08:00
Matt Johnston
b65354d237
Merge branch 'houseofkodai-cli_bind_address_connect'
2018-01-26 00:32:39 +08:00
Matt Johnston
e4ac7ea1ca
bind to port as well with -b
2018-01-26 00:28:25 +08:00
houseofkodai
9c7ecf6d14
cli_bind_address_connect
...
* replaces -b dummy option in dbclient to be similar with openssh -b option
* useful in multi-wan connections
2018-01-26 00:28:25 +08:00
houseofkodai
917722257d
Server chosen tcpfwd ports ( #43 )
...
Server chosen tcpfwd ports
2018-01-25 22:21:41 +08:00
Matt Johnston
3d61b6eab6
Merge pull request #48 from DengkeDu/dengke/configure-add-variable-to-allow-openpty-check-cached
...
configure: add a variable to allow openpty check to be cached
2018-01-25 21:58:00 +08:00
Matt Johnston
e64e25e4d6
Merge pull request #49 from fperrad/20170812_lint
...
Some linting, const parameters
2018-01-25 21:55:25 +08:00
Matt Johnston
f7a664f127
fix bad assertion
...
--HG--
branch : fuzz
2018-01-23 23:27:40 +08:00
Matt Johnston
89bdf3b0b9
add fuzzer-preauth_nomaths
...
--HG--
branch : fuzz
2018-01-23 23:05:47 +08:00
Matt Johnston
597f7eb5e9
merge up to date
...
--HG--
branch : fuzz
2018-01-23 22:46:07 +08:00
Matt Johnston
ba23b823dc
fix updates to libtomcrypt/libtommath for out of tree builds
2018-01-23 22:44:18 +08:00
Matt Johnston
fa3b0dd3ca
test close < 0, from Marco Wenzel
2017-10-18 22:41:27 +08:00
Matt Johnston
dd8988220e
fix checkpubkey_line function name for TRACE
2017-10-04 22:30:18 +08:00
Matt Johnston
cc803ee802
fix pubkey authentication return value
2017-10-04 22:29:42 +08:00
Francois Perrad
598056d168
Pointer parameter could be declared as pointing to const (callback)
2017-08-19 22:39:53 +02:00
Francois Perrad
89e64c631e
Pointer parameter could be declared as pointing to const
2017-08-19 17:16:13 +02:00
Matt Johnston
5cd003d9e6
check dss g range
...
--HG--
branch : fuzz
2017-08-14 00:00:10 +08:00
Francois Perrad
468656b4aa
fix format
...
Argument no. 3 nominally inconsistent with format (int vs. unsigned int)
2017-08-12 20:53:52 +02:00
Eric Bénard
22037d5fba
configure: add a variable to allow openpty check to be cached
...
Signed-off-by: Dengke Du <dengke.du@windriver.com >
2017-07-11 03:20:08 -04:00
Matt Johnston
4b7105dfea
fix DROBPEAR_FUZZ auth delay
...
--HG--
branch : fuzz
2017-06-30 21:10:57 +08:00
Matt Johnston
a5ec3aca7d
EXEEXT for a few more targets, dropbearmulti in particular for Cygwin
...
From William K. Foster.
2017-06-27 23:02:05 +08:00
Matt Johnston
785459d31b
document --enable-static in place of STATIC=1
2017-06-27 22:42:32 +08:00
Matt Johnston
a9a3746d09
add --enable-static configure argument. disable conflicting harden flags
2017-06-27 22:37:46 +08:00
Matt Johnston
74ace058a6
Use MAX_AUTH_TRIES rather than DEFAULT_AUTH_TRIES, don't limit argument range
2017-06-27 22:20:38 +08:00
Matt Johnston
96382d52ab
improve configure --help alignment
2017-06-27 22:18:18 +08:00
Matt Johnston
ddbc8113a9
Merge pull request #47 from kdarbyshirebryant/mastermaxauth
...
dropbear server: support -T max auth tries
2017-06-25 23:37:44 +08:00
Matt Johnston
65115b9159
Merge pull request #45 from bengardner/DROPBEAR_LISTEN_BACKLOG
...
sysoptions.h: Add ability to override DROPBEAR_LISTEN_BACKLOG
2017-06-25 23:22:11 +08:00
Kevin Darbyshire-Bryant
e255101299
dropbear server: support -T max auth tries
...
Add support for '-T n' for a run-time specification for maximum number
of authentication attempts where 'n' is between 1 and compile time
option MAX_AUTH_TRIES.
A default number of tries can be specified at compile time using
'DEFAULT_AUTH_TRIES' which itself defaults to MAX_AUTH_TRIES for
backwards compatibility.
Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk >
2017-06-25 11:53:58 +01:00
Matt Johnston
187fc95deb
merge
...
--HG--
branch : coverity
2017-06-24 23:33:16 +08:00
Matt Johnston
a94338dc67
add configuration option for default RSA size.
...
print key size with dropbearkey
2017-06-24 23:32:25 +08:00
Matt Johnston
6ac5ea2a9f
merge from main (libtommath/libtomcrypt/curve25510-donna updates)
...
--HG--
branch : fuzz
2017-06-24 22:51:45 +08:00
Matt Johnston
364fb6019c
Update to libtommath v1.0
2017-06-24 22:37:14 +08:00
Matt Johnston
a79b61517b
update to libtomcrypt 1.17 (with Dropbear changes)
2017-06-24 17:50:50 +08:00
Matt Johnston
99361f54ca
Update curve25519-donna to f7837adf95a2c2dcc36233cb02a1fb34081c0c4a
2017-06-24 11:53:32 +08:00
Matt Johnston
82c06dd76b
document changed default RSA key size back in 2013.61test
2017-06-24 11:00:16 +08:00
Matt Johnston
17a9b8802f
fix dss debug printing
...
--HG--
branch : fuzz
2017-06-24 10:34:58 +08:00
Matt Johnston
9b6f7fc9af
merge from main
...
--HG--
branch : fuzz
2017-06-24 10:34:19 +08:00
Matt Johnston
57690891ce
test dss key parameter lengths exactly
2017-06-24 10:32:33 +08:00
Matt Johnston
5896a4941d
test for -pie linker flag as well, for Linux
2017-06-24 01:01:11 +08:00
Matt Johnston
5ac4a71000
merge from main
...
--HG--
branch : fuzz
2017-06-24 00:47:07 +08:00
Matt Johnston
521e63529c
set hardened compiler/linker flags by default
2017-06-24 00:42:20 +08:00
Matt Johnston
24b446705b
test for linux/pkt-sched.h rather than SO_PRIORITY
2017-06-23 23:36:33 +08:00
Matt Johnston
3c5ed47804
set PAM_RHOST
2017-06-23 23:21:20 +08:00
Matt Johnston
b967dc1fa5
merge
...
--HG--
branch : fuzz
2017-06-23 21:31:49 +08:00
Matt Johnston
af2caaab72
Compile with -fno-strict-overflow if possible.
...
Needed for curve25519-donna https://github.com/agl/curve25519-donna/issues/31
2017-06-23 21:31:25 +08:00
Matt Johnston
2cbe70ba34
verify debug printing
...
--HG--
branch : fuzz
2017-06-20 20:07:25 +08:00
Matt Johnston
8e1ea0f27b
increase min DSS and RSA lengths
...
--HG--
branch : fuzz
2017-06-16 22:35:32 +08:00
Matt Johnston
e3246ceb7e
check p and q lengths
...
--HG--
branch : fuzz
2017-06-16 22:35:18 +08:00
Matt Johnston
169f41a43c
fix missing arglist NULL terminator
2017-06-15 08:00:07 +08:00
Matt Johnston
88ce30beb6
merge from main
...
--HG--
branch : fuzz
2017-06-14 23:31:42 +08:00
Matt Johnston
d260d5148e
improve value range validation
2017-06-14 23:31:15 +08:00
Matt Johnston
723ec19eed
fix checkmac always failing pre-kex
...
--HG--
branch : fuzz
2017-06-11 21:39:40 +08:00
Ben Gardner
44f36d57e6
sysoptions.h: Add ability to override DROPBEAR_LISTEN_BACKLOG
...
This change allows adding DROPBEAR_LISTEN_BACKLOG to localoptions.h to
force the value.
2017-06-05 08:40:48 -05:00
Matt Johnston
7ab8f61974
Merge pull request #38 from armcc/master
...
Fix libtomcrypt/libtommath linking order
2017-06-03 09:45:55 +08:00
Matt Johnston
4bba3268d5
Merge pull request #40 from fperrad/20161119_lint
...
more lintings
2017-06-03 09:41:09 +08:00
Francois Perrad
5f76e4c1ed
when pointer, use NULL instead of 0
2017-06-02 18:14:31 +02:00
Matt Johnston
b75a033787
merge
...
--HG--
branch : coverity
2017-06-03 00:10:58 +08:00
Matt Johnston
92c4f20089
Set configure #defines to 1. Escape some strings for m4
2017-06-02 23:35:30 +08:00
Matt Johnston
acfd372808
Merge pull request #37 from shauser88/configure-fixes
...
Fix configure options using AC_ARG_ENABLE
2017-06-02 23:21:31 +08:00
Matt Johnston
6054483dc7
Merge pull request #39 from fperrad/20161118_lint
...
fix indentation
2017-06-02 23:10:48 +08:00
Matt Johnston
25931bc1e6
Merge pull request #34 from bengardner/gitignore
...
Add .gitignore file
2017-06-02 23:02:34 +08:00
Matt Johnston
9250c58013
Merge pull request #33 from bengardner/termcodes
...
termcodes: make VEOL2, VWERASE, VLNEXT, ECHOCTL, and ECHOKE optional
2017-06-02 23:01:54 +08:00
Matt Johnston
4f226ab36a
Merge pull request #32 from bengardner/ERR_label
...
Change label name _ERR to LBL_ERR
2017-06-02 23:00:05 +08:00
Matt Johnston
33e28fb96b
Merge pull request #31 from bengardner/PATH_DEVNULL
...
Use DROPBEAR_PATH_DEVNULL instead of undefined _PATH_DEVNULL
2017-06-02 22:57:09 +08:00
Francois Perrad
206b9cea0d
rename hidden variable
...
in function tcp_acceptor()
struct sockaddr_storage addr;
char* addr = NULL;
2017-06-01 19:15:07 +02:00
Francois Perrad
9dcb04a1e0
fix DEBUG_* condition
2017-06-01 19:10:37 +02:00
Francois Perrad
08543d0c76
use #ifdef DROPBEAR_PRNGD_SOCKET instead of #if
2017-06-01 19:10:37 +02:00
Matt Johnston
937e6cb91e
fuzzer-preauth don't call getpwnam(), bring back longjmp
...
--HG--
branch : fuzz
2017-06-02 00:03:51 +08:00
Francois Perrad
6c43be767c
fix indentation
2017-06-01 16:39:26 +02:00
Matt Johnston
81b64ea0b5
Add a flag whether to longjmp, missed that last commit
...
--HG--
branch : fuzz
2017-06-01 21:30:26 +08:00
Matt Johnston
ea0e23c172
don't longjmp for fuzzer-preauth (temporary to debug asan)
...
--HG--
branch : fuzz
2017-05-30 22:50:52 +08:00
Matt Johnston
4d07aa315b
Disable setnonblocking(), get_socket_address(), set_sock_priority()
...
for fuzzing
--HG--
branch : fuzz
2017-05-26 22:10:51 +08:00
Matt Johnston
2e298b25e4
fix building with DEBUG_TRACE
...
--HG--
branch : fuzz
2017-05-26 22:09:30 +08:00
Matt Johnston
c38927da47
add m_mp_free_multi, be more careful freeing when failing to load keys
2017-05-26 21:08:43 +08:00
Matt Johnston
25607c04a7
add m_mp_free_multi, be more careful freeing when failing to load keys
...
--HG--
branch : fuzz
2017-05-26 21:08:43 +08:00
Matt Johnston
cbd5be1b82
add fuzzer-verify
...
--HG--
branch : fuzz
2017-05-26 00:20:01 +08:00
Matt Johnston
924b8469cb
fix null pointer crash
2017-05-26 00:19:53 +08:00
Matt Johnston
f24d93d4e4
fix null pointer crash
...
--HG--
branch : fuzz
2017-05-26 00:19:53 +08:00
Matt Johnston
65baa71b58
linked list dbmalloc now
...
add non-free m_malloc_free_epoch() argument for leak detection
--HG--
branch : fuzz
2017-05-26 00:19:39 +08:00
Matt Johnston
b8fa712847
rearrange, all fuzzers now call fuzzer_set_input()
...
--HG--
branch : fuzz
2017-05-25 22:21:49 +08:00
Matt Johnston
095b067857
limit input size
...
--HG--
branch : fuzz
2017-05-25 22:21:23 +08:00
Matt Johnston
87c4586d61
fuzzing has a constant time
...
--HG--
branch : fuzz
2017-05-25 22:20:10 +08:00
Matt Johnston
b17254925d
Just use memset, it should'be be optimised out in a separate file
...
--HG--
branch : fuzz
2017-05-25 22:19:46 +08:00
Matt Johnston
cf2c4f44a2
fuzzers disable logging by default
...
--HG--
branch : fuzz
2017-05-25 00:12:07 +08:00
Matt Johnston
2bc55ff428
don't exit encountering short lines
...
--HG--
branch : fuzz
2017-05-25 00:10:18 +08:00
Matt Johnston
ee5769f31f
avoid NULL argument to base64 decode
...
--HG--
branch : fuzz
2017-05-25 00:09:40 +08:00
Matt Johnston
3a8517b06f
create fuzzer .options files
...
--HG--
branch : fuzz
2017-05-23 22:43:52 +08:00
Matt Johnston
0363d3c32e
fuzzer-pubkey
...
--HG--
branch : fuzz
2017-05-23 22:43:34 +08:00
Matt Johnston
a582c4cdb6
split out checkpubkey_line() separately
...
--HG--
branch : fuzz
2017-05-23 22:29:21 +08:00
Matt Johnston
a43b6b0323
define SIZE_T_MAX
...
--HG--
branch : fuzz
2017-05-22 22:09:46 +08:00
Matt Johnston
84a143a605
remove unneeded check
...
--HG--
branch : fuzz
2017-05-22 22:09:38 +08:00
Matt Johnston
114438e669
zlib can use m_malloc/m_free too
...
--HG--
branch : fuzz
2017-05-22 22:09:26 +08:00
Matt Johnston
50bde9976b
seed_fuzz() prototype
...
--HG--
branch : fuzz
2017-05-21 18:53:44 +08:00
Matt Johnston
18ea116827
-v for debug_trace
...
--HG--
branch : fuzz
2017-05-21 18:53:33 +08:00
Matt Johnston
0ab0687a3a
Fix null pointer dereference found by libfuzzer
2017-05-21 18:53:09 +08:00
Matt Johnston
72f85ad90f
limit input size
2017-05-25 22:21:23 +08:00
Matt Johnston
fb4e07f7a8
don't exit encountering short lines
2017-05-25 00:10:18 +08:00
Matt Johnston
6e0b539e9c
split out checkpubkey_line() separately
2017-05-23 22:29:21 +08:00
Matt Johnston
83b2c899f5
increase min DSS and RSA lengths
2017-06-16 22:35:32 +08:00
Matt Johnston
eb7ca20379
check p and q lengths
2017-06-16 22:35:18 +08:00
Matt Johnston
30d3ccd419
Fix null pointer dereference found by libfuzzer
...
--HG--
branch : fuzz
2017-05-21 18:53:09 +08:00
Matt Johnston
fb8fb7fed0
add dbmalloc epoch cleanup
...
--HG--
branch : fuzz
2017-05-21 10:54:11 +08:00
Matt Johnston
1abd239b9d
ignore wrapfd_close for unknown
...
--HG--
branch : fuzz
2017-05-21 10:48:18 +08:00
Matt Johnston
9f1c8b2f8f
make buf_getstring fail prior to malloc if the buffer is short
...
--HG--
branch : fuzz
2017-05-20 23:39:01 +08:00
Matt Johnston
c169423051
glaring wrapfd problems fixed
...
--HG--
branch : fuzz
2017-05-20 22:47:19 +08:00
Matt Johnston
fdc6f32392
closer to working
...
--HG--
branch : fuzz
2017-05-20 13:23:16 +08:00
Matt Johnston
ea984cfb95
add cve and patch link
2017-05-20 10:27:29 +08:00
Matt Johnston
e7cdb2ebe5
add wrapfd. improve fuzzer in makefile
...
--HG--
branch : fuzz
2017-05-19 00:48:46 +08:00
Matt Johnston
4dae8edb76
merge main to fuzz
...
--HG--
branch : fuzz
2017-05-18 23:45:10 +08:00
Matt Johnston
a3e01b8884
better harness
...
--HG--
branch : fuzz
2017-05-18 23:38:30 +08:00
Matt Johnston
6d33a2b0bb
setup svr_dropbear_exit
...
--HG--
branch : fuzz
2017-05-18 23:36:54 +08:00
Matt Johnston
423be0d5e6
merge coverity
...
--HG--
branch : coverity
2017-05-18 23:02:39 +08:00
Matt Johnston
f7d38a1b9c
merge main
2017-05-18 23:00:12 +08:00
Matt Johnston
45b27b0194
merge 2017.75
2017-05-18 22:59:38 +08:00
Matt Johnston
2a921c2c25
Added signature for changeset 5c9207ceedae
2017-05-18 22:58:18 +08:00
Matt Johnston
4c759cde1f
Added tag DROPBEAR_2017.75 for changeset c31276613181
2017-05-18 22:58:14 +08:00
Matt Johnston
c3984c89f7
fix changelog for atomic dropbearkey
2017-05-18 21:31:13 +08:00
Matt Johnston
96dfbc882d
bump version to 2017.75
2017-05-17 23:57:58 +08:00
Matt Johnston
d3883e54b8
changes for 2017.75
2017-05-17 23:57:18 +08:00
Matt Johnston
beaff53a79
rename fuzzer -> fuzz-target, add list-fuzz-targets
...
--HG--
branch : fuzz
2017-05-14 00:00:21 +08:00
Matt Johnston
b9b308f2fe
Use CXX to link fuzzer, also link with $FUZZLIB
...
--HG--
branch : fuzz
2017-05-13 23:46:01 +08:00
Matt Johnston
a7bfd792f7
crypto_init()
...
--HG--
branch : fuzz
2017-05-13 23:45:51 +08:00
Matt Johnston
06fd9e3771
fix buf->pos when shrinking
...
--HG--
branch : fuzz
2017-05-13 23:44:12 +08:00
Matt Johnston
fb719e3d0b
fuzz harness
...
--HG--
branch : fuzz
2017-05-13 22:50:54 +08:00
Matt Johnston
9f24cdf74c
copy over some fuzzing code from AFL branch
...
--HG--
branch : fuzz
2017-05-12 23:14:54 +08:00
Matt Johnston
d7471c4f87
notsocket changes from afl branch
...
--HG--
branch : fuzz
2017-05-12 22:14:49 +08:00
Matt Johnston
5d2cb48f46
Use atomic key generation in all cases
2016-11-19 00:31:21 +08:00
Matt Johnston
597f12c44a
Use atomic key generation in all cases
2016-11-19 00:31:21 +08:00
Matt Johnston
9f674382d5
Merge pull request #27 from fperrad/20160325_lint
...
more linting
2016-11-18 23:56:22 +08:00
Matt Johnston
6830a65923
Merge pull request #26 from fperrad/kill_kr
...
remove K&R old style code
2016-11-18 22:48:50 +08:00
Francois Perrad
0d9c3fe70b
initialize variable and protect against NULL dereferencement
2016-11-15 15:36:05 +01:00
Francois Perrad
2e38ac7504
initialize variable
2016-11-15 15:33:27 +01:00
Francois Perrad
f208d7920c
remove duplicated include
2016-11-15 15:31:50 +01:00
Francois Perrad
ecb4a6173d
upgrade atomicio
...
in order to remove K&R code in atomicio.c
now, vwrite comes from atomicio.h
2016-11-15 14:56:25 +01:00
Francois Perrad
37a66fa5b6
upgrade strlcat
...
in order to remove K&R code
2016-11-15 14:56:25 +01:00
Andre McCurdy
f9e6bc2aec
Fix libtomcrypt/libtommath linking order
...
To prevent build failures when using system libtom libraries and
linking with --as-needed, LIBTOM_LIBS should be in the order
-ltomcrypt -ltommath, not the other way around, ie libs should be
prepended to LIBTOM_LIBS as they are found, not appended.
Signed-off-by: Andre McCurdy <armccurdy@gmail.com >
2016-09-16 16:29:28 -07:00
Matt Johnston
81a0240491
add CVEs and patch urls
2016-09-15 21:43:57 +08:00
Matt Johnston
b4d31b492c
merge
2016-09-09 21:08:32 +08:00
Matt Johnston
32df924d02
ses.debug_trace is wrong
2016-09-01 23:08:56 +08:00
Stefan Hauser
c60a65bc93
Fix configure options using AC_ARG_ENABLE
...
Configure options to disable some features, which are checked using
AC_ARG_ENABLE can be invoked with --enable-<option> as well.
The current configure script always generates a #define for such options
even though the --enable-<option> case should not generate a #define.
Fix this by properly checking if the feature should be enabled, in which
case no #define is being generated.
Signed-off-by: Stefan Hauser <stefan@shauser.net >
2016-07-27 20:08:57 +02:00
Matt Johnston
68b3ef0734
merge coverity
...
--HG--
branch : coverity
2016-07-22 00:08:02 +08:00
Matt Johnston
4222251d6f
merge github
2016-07-22 00:04:47 +08:00
Matt Johnston
c6e912f9e2
merge 2016.74
2016-07-21 23:38:42 +08:00
Matt Johnston
1df5c97144
Added signature for changeset 9030ffdbe562
2016-07-21 23:20:25 +08:00
Matt Johnston
b840a0f500
Added tag DROPBEAR_2016.74 for changeset 0ed3d2bbf956
2016-07-21 23:19:41 +08:00
Matt Johnston
9f40bbba29
mention regression release
2016-07-21 23:16:57 +08:00
Matt Johnston
0086e1d7ca
bump version
2016-07-21 23:04:47 +08:00
Matt Johnston
4732de71c6
changelogs
2016-07-21 23:04:24 +08:00
Matt Johnston
8db9415f2a
merge
2016-06-21 22:04:30 +08:00
Matt Johnston
dd19d73db4
make sure socket is of the right domain
2016-06-19 20:38:38 +08:00
Ben Gardner
91450c7a95
Add .gitignore file
...
Ignored are all files created when building from a git checkout as well as
anything deleted by 'make clean'.
Signed-off-by: Ben Gardner <gardner.ben@gmail.com >
2016-05-25 10:17:50 -05:00
Ben Gardner
1d20df627d
termcodes: make VEOL2, VWERASE, VLNEXT, ECHOCTL, and ECHOKE optional
...
My POSIX-like platform is missing some basic termcodes.
Make them optional.
Signed-off-by: Ben Gardner <gardner.ben@gmail.com >
2016-05-25 10:03:53 -05:00
Ben Gardner
4a10b1961c
Change label name _ERR to LBL_ERR
...
_ERR is defined in stdio.h on my platform.
Signed-off-by: Ben Gardner <gardner.ben@gmail.com >
2016-05-25 09:57:53 -05:00
Ben Gardner
100cbc5f3f
Use DROPBEAR_PATH_DEVNULL instead of undefined _PATH_DEVNULL
2016-05-25 09:52:23 -05:00
Matt Johnston
e0c6e819c2
Merge pull request #29 from hno/patch-out-of-tree
...
Support out-of-tree builds usign bundled libtom
2016-05-12 23:47:35 +08:00
Henrik Nordström
9025cd9b72
Support out-of-tree builds usign bundled libtom
...
When building out-of-tree we need both source and generated
folders in include paths to find both distributed and generated
headers.
2016-05-11 12:35:06 +02:00
Matt Johnston
2b891f5eb3
listenaddr must be malloced
2017-05-16 23:04:57 +08:00
Matt Johnston
01bde8ff94
reduce buf->pos if shrinking
2017-05-13 23:43:09 +08:00
Matt Johnston
eed0e2e431
add CVEs and patch urls
2016-09-15 21:43:57 +08:00
Matt Johnston
bda3bc4c8d
free forced_command
2017-05-10 00:20:33 +08:00
Matt Johnston
93f3c31807
switch user when opening authorized_keys
2017-05-10 00:20:21 +08:00
Henrik Nordström
3aeb557196
Support out-of-tree builds usign bundled libtom
...
When building out-of-tree we need both source and generated
folders in include paths to find both distributed and generated
headers.
2016-05-11 12:35:06 +02:00
Matt Johnston
8c7ebc02a0
Add generated header default_options.h to version control.
...
This is a workaround since I cannot figure how to get dependencies
to work properly with "make -j"
2016-05-04 17:59:34 +02:00
Matt Johnston
1152e47b52
message about truncated banner
2016-05-04 15:28:33 +02:00
Matt Johnston
32a28d0d9c
Convert #ifdef to #if, other build changes
2016-05-04 15:33:40 +02:00
Matt Johnston
d6daad29fc
options for disabling "normal" DH
2016-05-02 23:48:16 +02:00
Matt Johnston
4664ce2c35
move group14 and group16 to options.h, group14-sha256 on by default
2016-05-02 17:03:55 +02:00
Matt Johnston
171456c683
Avoid busy loop while waiting for rekey response
2016-04-29 23:04:10 +08:00
Matt Johnston
2c73fd6fbf
make sure socket is of the right domain
2016-06-19 20:38:38 +08:00
Matt Johnston
0ee860a011
make indenting consistent
2016-07-12 23:33:15 +08:00
Matt Johnston
5127943673
add length checks for ecc too
2016-07-12 23:28:42 +08:00
Matt Johnston
3ee9656250
merge fixes from PuTTY import.c
...
toint() from misc.c
(revids are from hggit conversion)
changeset: 4620:60a336a6c85c
user: Simon Tatham <anakin@pobox.com >
date: Thu Feb 25 20:26:33 2016 +0000
files: import.c
description:
Fix potential segfaults in reading OpenSSH's ASN.1 key format.
The length coming back from ber_read_id_len might have overflowed, so
treat it as potentially negative. Also, while I'm here, accumulate it
inside ber_read_id_len as an unsigned, so as to avoid undefined
behaviour on integer overflow, and toint() it before return.
Thanks to Hanno Böck for spotting this, with the aid of AFL.
(cherry picked from commit 5b7833cd474a24ec098654dcba8cb9509f3bf2c1)
Conflicts:
import.c
(cherry-picker's note: resolving the conflict involved removing an
entire section of the original commit which fixed ECDSA code not
present on this branch)
changeset: 4619:9c6c638d98d8
user: Simon Tatham <anakin@pobox.com >
date: Sun Jul 14 10:45:54 2013 +0000
files: import.c ssh.c sshdss.c sshpubk.c sshrsa.c
description:
Tighten up a lot of casts from unsigned to int which are read by one
of the GET_32BIT macros and then used as length fields. Missing bounds
checks against zero have been added, and also I've introduced a helper
function toint() which casts from unsigned to int in such a way as to
avoid C undefined behaviour, since I'm not sure I trust compilers any
more to do the obviously sensible thing.
[originally from svn r9918]
changeset: 4618:3957829f24d3
user: Simon Tatham <anakin@pobox.com >
date: Mon Jul 08 22:36:04 2013 +0000
files: import.c sshdss.c sshrsa.c
description:
Add an assortment of extra safety checks.
[originally from svn r9896]
changeset: 4617:2cddee0bce12
user: Jacob Nevins <jacobn@chiark.greenend.org.uk >
date: Wed Dec 07 00:24:45 2005 +0000
files: import.c
description:
Institutional failure to memset() things pointed at rather than pointers.
Things should now be zeroed and memory not leaked. Spotted by Brant Thomsen.
[originally from svn r6476]
changeset: 4616:24ac78a9c71d
user: Simon Tatham <anakin@pobox.com >
date: Wed Feb 11 13:58:27 2004 +0000
files: import.c
description:
Jacob's last-minute testing found a couple of trivial bugs in
import.c, and my attempts to reproduce them in cmdgen found another
one there :-)
[originally from svn r3847]
changeset: 4615:088d39a73db0
user: Simon Tatham <anakin@pobox.com >
date: Thu Jan 22 18:52:49 2004 +0000
files: import.c
description:
Placate some gcc warnings.
[originally from svn r3761]
changeset: 4614:e4288bad4d93
parent: 1758:108b8924593d
user: Simon Tatham <anakin@pobox.com >
date: Fri Oct 03 21:21:23 2003 +0000
files: import.c
description:
My ASN.1 decoder returned wrong IDs for anything above 0x1E! Good
job it's never had to yet. Ahem.
[originally from svn r3479]
2016-07-12 23:00:01 +08:00
Matt Johnston
c0f63ee100
additional length checks
2016-07-11 23:34:18 +08:00
Matt Johnston
8fd720c3e3
Improve exit message formatting
2016-07-11 23:09:33 +08:00
Matt Johnston
4f5d0756c2
improve algorithm list parsing
2016-07-11 22:40:38 +08:00
Matt Johnston
64e6e3aca9
better TRACE of failed remote ident
2016-07-11 21:51:25 +08:00
Matt Johnston
8174300429
Avoid busy loop while waiting for rekey response
2016-04-29 23:04:10 +08:00
Matt Johnston
a453b06168
Avoid osx "install" race
2016-04-12 21:22:21 +08:00
Matt Johnston
103036c546
Add manpage and log for forced_command
2016-04-12 21:05:40 +08:00
Jeremy Kerr
ac9a4c839f
Add -c <command> option to force a specific command
...
This change adds a -c option to dropbear, to force the session to use a
specific command, in a similar fashion to OpenSSH's ForceCommand
configuration option.
This is useful to provide a simple fixed service over ssh, without
requiring an authorized key file for the per-key forced_command option.
This setting takes precedence over the channel session's provided
command, and the per-key forced_command setting.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org >
2016-04-12 21:01:08 +08:00
Matt Johnston
3d2ddd15f8
Added signature for changeset 70705edee9dd
2016-03-18 23:51:50 +08:00
Matt Johnston
ea4ab22017
Added tag DROPBEAR_2016.73 for changeset 309e1c4a8768
2016-03-18 23:51:34 +08:00
Matt Johnston
d58e0497cc
merge
...
--HG--
branch : coverity
2016-03-18 22:47:33 +08:00
Matt Johnston
8c53621c24
update for 2016.73
2016-03-18 22:44:36 +08:00
Matt Johnston
514baf3bf7
Fix whitespace missed in merge
2016-03-18 20:43:22 +08:00
Matt Johnston
420151dbd9
move m_burn and function attributes to dbhelpers
...
use m_burn for libtomcrypt zeromem() too
2016-03-17 23:21:33 +08:00
Matt Johnston
156b28c771
Fix missing paths from m_burn commit
2016-03-17 06:40:31 +08:00
Matt Johnston
ad801851a2
use m_burn for mp_clear
2016-03-17 00:06:26 +08:00
Matt Johnston
b647b753e0
Use memset_s or explicit_bzero
2016-03-16 23:39:39 +08:00
Matt Johnston
48b855c581
add CVE
2016-03-16 23:04:55 +08:00
Matt Johnston
c830d30553
merge
2016-03-16 22:53:27 +08:00
Francois Perrad
0650182289
add the idiomatic do/while(0) in the macro SCREWUP
2016-03-16 22:41:20 +08:00
Francois Perrad
3e20c442de
fix empty C prototypes
2016-03-16 22:41:20 +08:00
Francois Perrad
af87369cb3
add static in function definition
...
like in function declaration
2016-03-16 22:41:19 +08:00
Francois Perrad
edea73b1f8
add parentheses to macro
2016-03-16 22:41:19 +08:00
Francois Perrad
893d7be5bf
const variables
2016-03-16 22:41:19 +08:00
Francois Perrad
c5b77e1b49
explicitly initialization of static variables
2016-03-16 22:41:19 +08:00
Francois Perrad
a5e5bab74b
Suspicious use of ;
2016-03-16 22:41:19 +08:00
Francois Perrad
8f96b8908e
rename loop variable
...
2 nested loops with the same variable 'i',
line 219 and line 309
2016-03-16 22:41:19 +08:00
Francois Perrad
f3a6dd139c
Suspicious use of &
2016-03-16 22:41:19 +08:00
Francois Perrad
1dba0d4830
add comment FALLTHROUGH which recognize by many lint tools
2016-03-16 22:41:19 +08:00
Francois Perrad
da85400e57
put default in switch/case
2016-03-16 22:41:19 +08:00
Francois Perrad
7f38caefd0
remove unreachable code
2016-03-16 22:41:19 +08:00
Francois Perrad
937594c130
use #ifdef like everywhere
2016-03-16 22:41:05 +08:00
Matt Johnston
3e7672edca
merge
2016-03-15 23:23:31 +08:00
Matt Johnston
af10eb8346
merge
...
--HG--
branch : coverity
2016-03-15 23:20:40 +08:00
Matt Johnston
098aba47c3
assertion for case that shouldn't happen
2016-03-15 23:20:01 +08:00
Matt Johnston
c67fc5693a
m_close() rather than close()
2016-03-15 23:03:59 +08:00
Matt Johnston
6b5c6af613
ignore return value from fcntl()
2016-03-15 23:03:43 +08:00
Matt Johnston
3ccc36b3b7
Fix truncated type for getc() at confirmation prompt
2016-03-15 23:03:31 +08:00
Matt Johnston
8e93ac9925
merge up to date
...
--HG--
branch : coverity
2016-03-15 22:45:43 +08:00
Matt Johnston
e7828bb911
cast return type to enum
2016-03-15 22:40:15 +08:00
Matt Johnston
e255f0590b
remove unused loginrec_set_addr()
2016-03-15 22:04:13 +08:00
Matt Johnston
4615631d83
update CHANGES
2016-03-15 22:03:23 +08:00
Matt Johnston
e708f9542f
Merge pull request #23 from Chocobo1/travis_fix
...
TravisCI: re-enable MULTI=1 & NOWRITEV=1 builds on OSX
2016-03-15 21:55:11 +08:00
Matt Johnston
6bfbcdbfdb
Merge branch 'fperrad-20151231_indent'
2016-03-15 21:41:22 +08:00
Matt Johnston
645b254173
Merge branch '20151231_indent' of https://github.com/fperrad/dropbear into fperrad-20151231_indent
2016-03-15 21:41:06 +08:00
Matt Johnston
fdc61f3ab2
Get rid of group15, move group16 to sha512.
...
New groups are disabled by default pending
draft-ietf-curdle-ssh-kex-sha2-02 being finalised
2016-03-12 16:21:13 +08:00
Matt Johnston
a991d3b56b
merge github master
2016-03-10 21:37:35 +08:00
Matt Johnston
26a1a0a3bc
allow specifying dropbearmulti command as an argument
2016-03-10 21:35:23 +08:00
Matt Johnston
73bc3a9853
merge 2016.72
2016-03-10 20:57:47 +08:00
Matt Johnston
9cb325ee6f
Added signature for changeset fd1981f41c62
2016-03-10 20:50:31 +08:00
Matt Johnston
9e1d038a65
Added tag DROPBEAR_2016.72 for changeset 78b12b6549be
2016-03-10 20:50:24 +08:00
Matt Johnston
7e5fe1d813
debian changelog
2016-03-09 22:54:51 +08:00
Matt Johnston
97dff151ae
2016.72
2016-03-09 22:54:15 +08:00
Matt Johnston
18681875e3
Validate xauth input
2016-03-09 22:45:40 +08:00
Chocobo1
9b0a2714f0
TravisCI: re-enable MULTI=1 & NOWRITEV=1 builds on OSX, fixes d416a9b
2016-01-21 00:21:39 +08:00
Matt Johnston
a84ce21aec
Merge pull request #22 from Chocobo1/travis
...
TravisCI: Improvements
2016-01-20 21:36:58 +08:00
Matt Johnston
1fc1559d15
Merge pull request #21 from Chocobo1/fix
...
Fix warnings
2016-01-20 21:24:36 +08:00
Matt Johnston
de70b02c2f
Don't fail if can't get the username
2016-01-19 00:34:37 +08:00
Michael Witten
6453b5b70e
scp: Have `fatal()' append a newline to the message
...
Date: Wed, 4 Nov 2015 20:33:19 -0000
It would seem that it's standard practice not to include a newline in the message
text, but that results in poor formatting, as a shell's command line then begins
on the line of the error message itself.
This commit simply instructs `fatal()' to append a newline after the message,
which should be suitable behavior for all of the invocations I've come across.
2016-01-19 00:23:19 +08:00
Matt Johnston
61b49ea2e3
Add note about OpenSSH origin
2016-01-19 00:22:23 +08:00
Matt Johnston
21ed9480d7
add dh group15 and group16, disabled by default
2016-01-15 00:19:11 +08:00
Matt Johnston
09e83ad742
Move dh group constants to a separate file
2016-01-14 21:54:58 +08:00
Chocobo1
3360072f84
TravisCI: fix linux + clang compile
2016-01-11 13:33:00 +08:00
Chocobo1
0ba59d80b6
TravisCI: use if block
2016-01-11 13:33:00 +08:00
Chocobo1
d416a9b818
TravisCI: enable osx builds
2016-01-11 13:32:59 +08:00
Chocobo1
de1993a1fd
Fix parentheses weird placement
2016-01-05 22:44:09 +08:00
Chocobo1
307c71b66a
TravisCI: enable build with clang
2016-01-05 14:14:29 +08:00
Chocobo1
b41ae80399
TravisCI: enable parallel build
2016-01-05 14:12:38 +08:00
Chocobo1
bbf9ba6d8d
TravisCI: modify to run builds in container
2016-01-05 14:09:38 +08:00
Chocobo1
9bcd5f3c0a
Fix print format specifier
2016-01-05 12:37:48 +08:00
Chocobo1
533aebe336
Fix "Pointer to local array variable returned"
2016-01-05 12:25:10 +08:00
Matt Johnston
5f8fcef688
Merge pull request #20 from kingosticks/debian-init-short-description
...
Added missing Short-Description init info field to debian init script.
2016-01-04 21:18:17 +08:00
Nick Steel
f37d67ff5e
Added missing init info field to debian init script.
...
The Short-Description init info field is used by systemd and
displayed along with the service name. When it's missing the string
'null' is displayed instead.
2016-01-03 14:42:57 +00:00
Francois Perrad
9bda22e702
more hard tab
2016-01-01 15:02:09 +01:00
Francois Perrad
23ac7f56fa
refactor indentation with hard tab
2015-12-31 16:00:23 +01:00
Matt Johnston
4c4aa502d4
use exec for proxycommand
2015-12-18 21:20:46 +08:00
Matt Johnston
20bdf3a5b1
revert removal of space handling, different fix for avoiding option prefix
...
matches
2015-12-15 22:57:22 +08:00
Matt Johnston
6d5b27715a
merge
...
--HG--
branch : coverity
2015-12-15 22:24:34 +08:00
Matt Johnston
da108a9327
Don't allow spaces and don't get confused by -o usesyslogd=yes
...
(option name has another option name as a prefix)
2015-12-15 22:23:42 +08:00
Matt Johnston
e6432b1262
unknown options should be non-fatal
2015-12-15 22:19:41 +08:00
Matt Johnston
99bc4f451a
rename killchild to kill_proxy_sighandler
2015-12-15 22:15:44 +08:00
Matt Johnston
79b43270a7
A few minor style fixes
2015-12-15 22:09:55 +08:00
Matt Johnston
3d33e65a35
Merge pull request #18 from annulen/dbclient_syslog
...
Support syslog logging in dbclient.
2015-12-15 21:55:51 +08:00
Konstantin Tokarev
5ab562f695
Use dropbear_log instead of some fprintf's in client code.
2015-12-15 16:52:53 +03:00
Konstantin Tokarev
3cb278c35c
Support syslog logging in dbclient.
2015-12-15 16:52:53 +03:00
Konstantin Tokarev
c59827334c
Allow setting syslog identifier via startsyslog().
2015-12-15 16:43:29 +03:00
Konstantin Tokarev
2d6bbf341d
Moved usingsyslog from svr_runopts to runopts.
2015-12-15 16:43:29 +03:00
Matt Johnston
2f62128297
Merge pull request #17 from annulen/kill_proxy_cmd
...
Client: kill proxy command when exiting application.
2015-12-15 21:40:32 +08:00
Matt Johnston
ed21e75235
Merge pull request #16 from annulen/openssh_options
...
Implemented ExitOnForwardFailure option for local and remote forwarding.
2015-12-15 21:30:59 +08:00
Matt Johnston
87d2c9c05c
diffie-hellman-group14-sha256
2015-12-11 22:12:12 +08:00
Matt Johnston
df999ed1e1
Thanks
2015-12-03 21:40:31 +08:00
Matt Johnston
154de2aee3
Added signature for changeset 926e7275cef4
2015-12-03 21:33:48 +08:00
Matt Johnston
f808b8e930
Added tag DROPBEAR_2015.71 for changeset 9a944a243f08
2015-12-03 21:33:43 +08:00
Matt Johnston
5b2e57aa2f
2015.71
2015-12-03 21:23:54 +08:00
Konstantin Tokarev
960364d953
Client: kill proxy command when exiting application.
2015-12-03 16:22:29 +03:00
Matt Johnston
0b9793ccd0
wrong breakage version
2015-12-02 23:37:04 +08:00
Matt Johnston
fff298523d
preliminary 2015.71 CHANGES
2015-12-02 23:35:14 +08:00
Matt Johnston
f295fbe0b2
merge
...
--HG--
branch : coverity
2015-12-02 22:37:51 +08:00
Matt Johnston
e81b6fbc6e
ports and addresses must be malloced to avoid segfault on exit
2015-12-02 22:37:20 +08:00
Konstantin Tokarev
4dc1388ac7
Implemented ExitOnForwardFailure option for local and remote forwarding.
2015-11-30 21:05:36 +03:00
Konstantin Tokarev
1b69d6d658
Added OpenSSH-like -o command line option to dbclient.
...
Like in OpenSSH, whitespaces are ignored, key and value may be separated
by one '=' character.
For now only yes/no flag parsing is implemented.
2015-11-30 20:36:15 +03:00
Matt Johnston
f64a50f319
Merge pull request #15 from annulen/fix_cli_remotetcpfwd
...
Fixed build when ENABLE_CLI_REMOTETCPFWD is the only allowed TCP forw…
2015-11-30 21:13:03 +08:00
Juergen Daubert
f299caf612
The '==' comparision operator is not defined by POSIX, use '=' instead
2015-11-30 20:55:07 +08:00
Konstantin Tokarev
f76141a704
Fixed build when ENABLE_CLI_REMOTETCPFWD is the only allowed TCP forwarding.
2015-11-27 21:40:00 +03:00
Matt Johnston
a3049d6433
Fix "Avoid queueing into circbuffer when the channel is about to close"
...
which broken handling EAGAIN/EINTR
2015-11-27 22:19:08 +08:00
Matt Johnston
ee353847be
Fix ses.channel_signal_pending race
2015-11-27 21:26:43 +08:00
Matt Johnston
33b2fbb5ef
Added signature for changeset 5bb5976e6902
2015-11-26 23:15:27 +08:00
Matt Johnston
7d84615545
Added tag DROPBEAR_2015.70 for changeset 79a6ef02307d
2015-11-26 23:15:12 +08:00
Matt Johnston
b42113119a
Wrong date
2015-11-26 23:05:38 +08:00
Matt Johnston
722944f307
2015.70
2015-11-26 23:04:13 +08:00
Matt Johnston
e038c26963
Another attempt at test for crypt()
2015-11-26 23:01:13 +08:00
Matt Johnston
56b9388702
Backed out changeset fbcd0a20e667
2015-11-26 22:21:14 +08:00
Matt Johnston
0e438f6d5c
AC_SEARCH_LIBS not AC_CHECK_LIB to find crypt()
2015-11-26 21:58:25 +08:00
Matt Johnston
9f1eb695b4
release.sh reminds how to sign
2015-11-25 23:30:56 +08:00
Matt Johnston
9fef5d1050
Added signature for changeset af074dbcb68f
2015-11-25 23:30:44 +08:00
Matt Johnston
0bb7f77a8f
Added tag DROPBEAR_2015.69 for changeset 1637dbd26212
2015-11-25 23:30:36 +08:00
Matt Johnston
9e4e562cfb
2015.69
2015-11-25 23:07:47 +08:00
Matt Johnston
92ec446cb9
debian changelog
2015-11-25 23:07:18 +08:00
Matt Johnston
9097da0284
changelog
2015-11-25 23:06:55 +08:00
Matt Johnston
eedeb009ec
mention dropbearkey too
2015-11-25 23:05:41 +08:00
Matt Johnston
d8bc6abcf0
Mention "dropbear -R" if no hostkeys
2015-11-25 23:05:14 +08:00
Matt Johnston
2293e3d105
check for zero K value from curve25519
2015-11-25 22:15:59 +08:00
Guilhem Moulin
550b3056fd
Fix minor manpage formatting issues
2015-11-25 20:46:06 +08:00
Matt Johnston
575f0e5f92
merge
...
--HG--
branch : coverity
2015-11-23 23:04:48 +08:00
Matt Johnston
1ba5e8052e
Improve dbclient manpage
2015-11-23 23:02:03 +08:00
Matt Johnston
6f5abeff2e
Fix flags after the hostname
2015-11-23 22:47:43 +08:00
Guilhem Moulin
7cbf6b131b
Bundling for dbclient
2015-11-23 22:28:56 +08:00
Matt Johnston
a461298109
Increase channel limit to 1000
2015-11-19 23:53:06 +08:00
Matt Johnston
90c3a74b2a
Avoid queueing into circbuffer when the channel is about to close
2015-11-19 23:52:52 +08:00
Matt Johnston
87373be960
lazy allocation of circbuffer
2015-11-19 23:52:11 +08:00
Matt Johnston
85d9672e47
Send SSH_OPEN_RESOURCE_SHORTAGE response when too many channels open
...
rather than SSH_OPEN_UNKNOWN_CHANNEL_TYPE
2015-11-19 22:39:32 +08:00
Matt Johnston
e0ae527190
Only clear channel_signal_pending after handling all channels,
...
from Andrzej Szombierski
2015-11-17 20:53:30 +08:00
Guilhem Moulin
7fb1bec84a
Enable bundling
2015-11-06 23:54:24 +08:00
Matt Johnston
1f308fb2b4
S_IWUSR rather than S_IWRITE for scp
2015-11-04 23:22:58 +08:00
Guilhem Moulin
e2d36d493f
Mention -y flag
2015-10-28 21:44:16 +08:00
Matt Johnston
7c43594075
Add comment about compression
2015-10-28 21:42:09 +08:00
Matt Johnston
e4827025be
Warn rather than fail if flags have trailing parts
2015-10-28 21:37:35 +08:00
Matt Johnston
00798ca8cc
Test for crypt() rather than crypt.h
...
Print a message from configure if getpass() or crypt() were missing
2015-10-21 23:08:22 +08:00
Mike Frysinger
e84cb3c3c2
fix default build when getpass() is unavailable
...
if the system doesn't support getpass, we still default on the options
that require it which causes a build failure. instead, only default
enable these when getpass is available.
2015-10-21 22:48:15 +08:00
Mike Frysinger
78b9cecb52
fix default build when crypt() is unavailable
...
if the system doesn't support crypt.h/crypt, then ENABLE_SVR_PASSWORD_AUTH
cannot work. rather than default this to on all the time, do so only when
support for the header is found.
2015-10-21 22:40:11 +08:00
Mike Frysinger
93c54fe6f6
avoid getpass when not used
...
some systems (like android's bionic) do not provide getpass. you can
disable ENABLE_CLI_PASSWORD_AUTH & ENABLE_CLI_INTERACT_AUTH to avoid
its use (and rely on pubkey auth), but the link still fails because
the support file calls getpass. do not define this func if both of
those auth methods are not used.
2015-10-21 22:39:55 +08:00
Mike Frysinger
5f97d0fbbc
fix build when ENABLE_CLI_INTERACT_AUTH is disabled
...
The session.h defines clientsession.cipher_none_after_auth only when
ENABLE_CLI_INTERACT_AUTH is defined, but cli-session.c will always
try to set that member. export cipher_none_after_auth all the time.
2015-10-21 22:39:31 +08:00
Guilhem Moulin
dc01a8edd4
Don't display the MOTD when an explicit command is run.
...
(possibly via authorized_keys(5) restrictions), even when a
pseudo-terminal has been allocated for the session. In other words,
only display the MOTD when the server starts the user's default shell.
2015-10-21 22:08:47 +08:00
Matt Johnston
23cc2bfb8c
don't silently ignore extra flag arguments
2015-10-21 22:05:50 +08:00
Matt Johnston
9e379835c4
avoid invalidated iterator when connection fails
2015-09-29 22:19:11 +08:00
Matt Johnston
8ccbd216c6
make sure that the test for queued packets to write occurs after
...
those packets might have been enqueued by set_connect_fds()
2015-09-29 21:53:27 +08:00
Matt Johnston
90f4da29d7
Added signature for changeset ef4b26364b0c
2015-08-08 22:14:30 +08:00
Matt Johnston
54dbd5bbc8
Added signature for changeset a687f835236c
2015-08-08 22:14:19 +08:00
Matt Johnston
849b8ec469
Added tag DROPBEAR_2015.68 for changeset 809feaa9408f
2015-08-08 22:14:10 +08:00
Matt Johnston
84e18f72ae
changelog and version 2015.68
2015-08-08 20:35:28 +08:00
Guilhem Moulin
633b98ef28
Fix typo in dropbear(8)'s manpage
2015-08-07 23:07:16 +08:00
Guilhem Moulin
2a34a72bff
Fix segfault with restricted authorized_key files without forced command
2015-08-07 23:00:08 +08:00
Matt Johnston
85374c5ba2
merge
...
--HG--
branch : coverity
2015-08-07 21:26:03 +08:00
Matt Johnston
24bae46e42
only update keepalive timeout post-auth (when keepalives are sent)
2015-08-07 21:02:49 +08:00
Matt Johnston
7585d4606e
Build with -Werror for the simplest case
2015-08-04 08:20:50 +08:00
Matt Johnston
94bff1df66
couple more changelog items
2015-08-03 23:17:50 +08:00
Matt Johnston
2e60d20a76
set timeouts to time remaining rather than timeout duration
2015-08-03 23:05:43 +08:00
Matt Johnston
ce59260ee9
Fix problem where auth timeout wasn't checked when waiting for ident
2015-08-03 21:59:40 +08:00
Matt Johnston
387ebccf36
increase MAX_CMD_LEN to 9000
2015-08-03 21:17:23 +08:00
Matt Johnston
2f618af086
remove .hgtags from release
2015-08-03 21:05:42 +08:00
Matt Johnston
0ac33d22f7
Don't try to send data on first ack packet of 3way handshake.
...
Cisco SSH on 15.4(3)M2 or similar can't handle it.
2015-08-03 20:53:37 +08:00
Matt Johnston
c7bd5ac77d
remove extraneous semicolon from m_free #define
2015-08-03 20:46:29 +08:00
Matt Johnston
941c067765
change DROPBEAR_DEFAULT_CLI_AUTHKEY to just prepend homedir
...
rather than doing ~ expansion
2015-08-03 20:45:04 +08:00
Matt Johnston
83f3f55280
merge
...
--HG--
branch : coverity
2015-06-23 21:49:04 +08:00
Matt Johnston
839e023ed8
check ecc key return, fix null pointer crash
2015-06-23 21:48:13 +08:00
Matt Johnston
b2beb2c2da
coverity shouldn't have a matrix
...
--HG--
branch : coverity
2015-06-13 23:39:55 +08:00
Matt Johnston
48ad370a19
fix travis coverity matrix?
...
--HG--
branch : coverity
2015-06-13 23:36:03 +08:00
Matt Johnston
c36f94a322
fiddle with coverity travis
...
--HG--
branch : coverity
2015-06-13 23:32:15 +08:00
Matt Johnston
6493bbb7e7
merge up to date, attempt to fix travis.yml
...
--HG--
branch : coverity
2015-06-12 23:02:15 +08:00
Matt Johnston
2e05a2b8c4
Merge pull request #11 from nshopik/patch-2
...
Prepend DROPBEAR for scp.c
2015-06-12 22:57:48 +08:00
Matt Johnston
fc2c67e61c
a bit more changelog
2015-06-12 22:55:10 +08:00
Matt Johnston
9c3e9fcdad
merge
2015-06-04 23:24:08 +08:00
Matt Johnston
1a4db21fe4
buf_getstring and buf_putstring now use non-unsigned char*
2015-06-04 23:08:50 +08:00
Matt Johnston
d96a52541f
Merge pull request #13 from gazoo74/fix-warnings
...
Fix warnings
2015-06-04 23:08:50 +08:00
Matt Johnston
e7ac4c1ab3
Merge pull request #13 from gazoo74/fix-warnings
...
Fix warnings
2015-06-04 22:25:28 +08:00
Matt Johnston
ecd8505218
Disable twofish-ctr by default, add config option
2015-06-03 22:59:59 +08:00
Matt Johnston
1fa1c3f9db
note about constant_time_strcmp and lengths
2015-06-03 22:15:12 +08:00
Matt Johnston
91df741926
Fix building when ENABLE_CLI_PUBKEY_AUTH is unset
2015-06-03 21:45:32 +08:00
Matt Johnston
2a431cab03
separate client/server fastopen options
2015-05-29 23:19:11 +08:00
Gaël PORTAY
9fdab3ced8
Merge branch 'fix-pointer-sign-warnings' into fix-warnings
2015-05-05 20:42:38 +02:00
Gaël PORTAY
6e15e75391
Turn modptr local variable into unsigned char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
1c2a1838fc
Turn name and instruction local variables into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
bfd730aa4c
Turn type and term local variables into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
e3c6a86b1e
Turn TCPFwdEntry's connectaddr and listenaddr attributes into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
bbaeb917ff
Turn banner, methods and tok local variable into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
20f1e49b73
Turn many local variables into char *
...
reqname, bindaddr, request_addr, desthost and orighost to be exhaustive.
2015-05-05 20:39:14 +02:00
Gaël PORTAY
292656d899
Turn signame local variable into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
05b36b484e
Turn ChanSess's cmd attribute into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
be3016b8d5
Turn send_msg_service_accept()'s name argument into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
5cf43d76bf
Turn checkpubkey() and send_msg_userauth_pk_ok()'s algo argument into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
6f05e810d9
Turn addr local variable into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
947d2697cf
Turn sshsession's remoteident attribute into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
449ddae628
Turn dropbear_ecc_curve's name into const char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
6b90885d4f
Turn Algo_Type's name attribute into const char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
bd6c37adb6
Turn local key_indent variable into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
59235276ac
Turn get_response()'s return type and prompt argument into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
e5ce3fc51b
Turn type local variable into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
9f97511356
Turn ChanSess's tty and term attributes into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
ef0aac432c
Fix unused make_connection_string() warning [-Werror=unused-function]
...
This function is used when USE_VFORK is unset.
2015-05-05 20:39:13 +02:00
Gaël PORTAY
7928d83b02
Turn cleantext()'s dirtytext argument into char *
2015-05-05 20:39:13 +02:00
Gaël PORTAY
3e91ec07e4
Fix unused but set variable warnings [-Werror=unused-but-set-variable]
2015-05-05 20:39:13 +02:00
Gaël PORTAY
d680a9e3fb
Turn username, servicename and methodname local variables into char *
...
Changing checkusername()'s username argument into char * as well.
2015-05-05 20:39:13 +02:00
Gaël PORTAY
6086851fc1
Fix unused parameters warnings [-Werror=unused-parameter]
2015-05-05 20:39:13 +02:00
Gaël PORTAY
61726df20c
Turn sendaddr, listenaddr and request_listenaddr local variables into char *
2015-05-05 20:39:13 +02:00
Gaël PORTAY
1601a657d4
Turn send_msg_channel_open_failure()'s text and lang into const char *
2015-05-05 20:39:13 +02:00
Gaël PORTAY
50b14f696c
Turn start_send_channel_request()'s type argument into char *
2015-05-05 20:39:13 +02:00
Gaël PORTAY
c239baf801
Turn addrandom()'s buf argument into unsigned char *
...
Data is usually represented as "unsigned char *" like genrandom().
2015-05-05 20:39:13 +02:00
Gaël PORTAY
18638859e6
Expect len to be a type of socklen_t [-Werror=pointer-sign]
2015-05-05 20:39:13 +02:00
Gaël PORTAY
224b16b247
Fix pointer differ in signess warnings [-Werror=pointer-sign]
2015-05-05 20:39:13 +02:00
Gaël PORTAY
d9d97969a3
Uses abort() instead of raising a SIGABRT signal [-Werror]
...
error: ‘noreturn’ function does return [-Werror]
abort() is a noreturn function while raise() is not.
And because crypt_argchk() is flagged as __attribute__(noreturn), abort()
appears to be a better condidate.
This compilation warning has probably been introduced by commit
1809f741cb .
2015-05-05 20:30:49 +02:00
Gaël PORTAY
897da4ee36
Uses k_size as an signed integer
...
buf_incrwritepos() and mp_to_unsigned_bin() functions use k_size as signed
integer argument.
k_size is also used in an assertion that compared it to curve_size which is
a signed long.
Only buf_getwriteptr() is using k_size as unsigned.
So it safe to use it as signed.
2015-05-05 20:30:49 +02:00
Gaël PORTAY
90f9f43335
Test struct existance against sizeof() operator
...
Instead of declaring an "unused-variable" or "unused-but-set-variable"
structure.
This avoid unexpected broken configurations when using something like:
$ ./configure CFLAGS="-Wall -Wextra -Werror"
It causes AC_COMPILE_IFELSE to fail and thus leading to a mismatch
configuration (because the CFLAGS are passed to the macro).
2015-05-05 20:23:54 +02:00
Matt Johnston
0e1dee828a
Make sure kexfirstinitialise is called early enough
2015-05-03 00:00:35 +08:00
Matt Johnston
cbdc1f0753
fix travis more
2015-05-02 22:59:55 +08:00
Matt Johnston
7e306336d0
bad travis syntax
2015-05-02 22:55:53 +08:00
Matt Johnston
e7def4c211
add no-writev build
2015-05-02 22:51:46 +08:00
Matt Johnston
19e1afbd1c
Fix no-writev fallback
2015-05-02 22:47:25 +08:00
Matt Johnston
fee32054e6
Should be AF_UNSPEC not PF_UNSPEC
2015-04-17 20:59:32 +08:00
Matt Johnston
3ec2737d54
merge main
...
--HG--
branch : coverity
2015-04-14 20:44:30 +08:00
Matt Johnston
9754fdd995
fastopen code was totally broken
2015-04-14 20:43:54 +08:00
Matt Johnston
ef20b9ff7a
Avoid channel writev() when there is nothing to write
2015-03-21 22:43:08 +08:00
Matt Johnston
275611fbaa
Make main socket nonblocking. Limit writequeue size.
2015-03-20 23:36:42 +08:00
Matt Johnston
a070159cc5
Fix when iov queue is large
2015-03-20 23:33:45 +08:00
Matt Johnston
20f9683ae0
avoid malloc for iovec
2015-03-20 22:53:32 +08:00
Matt Johnston
dce384668b
dropbear_assert() rather than assert()
2015-03-16 21:33:01 +08:00
Nikolay Shopik
fdcd21e74b
Prepend DROPBEAR for scp.c
2015-03-12 15:14:47 +03:00
Matt Johnston
67b4fa313e
strdup strerror
2015-03-11 23:10:27 +08:00
Matt Johnston
5dff74109e
Fix error handling for dbclient async connect
2015-03-03 20:53:00 +08:00
Matt Johnston
20d970a0e2
more changes
2015-03-02 21:40:06 +08:00
Matt Johnston
94734ad377
changes (also testing hg bookmarks)
2015-03-02 21:29:49 +08:00
Matt Johnston
72ccfda5b2
merge
...
--HG--
branch : coverity
2015-03-02 21:17:41 +08:00
Matt Johnston
14ad6a5972
merge
2015-03-01 23:27:08 +08:00
Matt Johnston
9e66b5a9b1
reword comment for clarity
...
--HG--
branch : nocircbuffer
2015-03-01 23:26:42 +08:00
Matt Johnston
f782cf375a
Fix pubkey auth after change to reuse ses.readbuf as ses.payload
...
(4d7b4c5526c5)
--HG--
branch : nocircbuffer
2015-03-01 23:02:06 +08:00
Matt Johnston
3317916111
Fix some memory leaks in ecc code
2015-03-01 22:44:36 +08:00
Matt Johnston
f367273549
allocate buffer and data in a single allocation
...
--HG--
branch : nocircbuffer
2015-03-01 21:16:09 +08:00
Matt Johnston
91ef9b2fa9
Avoid malloc in hmac
...
--HG--
branch : nocircbuffer
2015-03-01 14:46:04 +08:00
Matt Johnston
579463933b
A bit of a bodge to avoid memcpy if zlib is disabled
...
--HG--
branch : nocircbuffer
2015-03-01 00:57:21 +08:00
Matt Johnston
989c5c1436
Avoid copying data into circular buffer
...
--HG--
branch : nocircbuffer
2015-03-01 00:44:45 +08:00
Matt Johnston
3113932151
Better failure handling
2015-02-28 23:49:39 +08:00
Matt Johnston
003ec5d356
merge
...
--HG--
branch : coverity
2015-02-28 23:25:16 +08:00
Matt Johnston
125a970d71
merge tcp fastopen
2015-02-28 23:24:30 +08:00
Matt Johnston
89c0b2a6d8
Add cleanup
...
--HG--
branch : fastopen
2015-02-28 23:15:23 +08:00
Matt Johnston
31e379c300
merge from default
...
--HG--
branch : fastopen
2015-02-28 09:06:40 +08:00
Matt Johnston
843953379c
EINPROGRESS for sendmsg() means it's working OK
...
--HG--
branch : fastopen
2015-02-27 00:02:48 +08:00
Matt Johnston
2a90c1ca7e
ignore any sendmsg() errors
...
--HG--
branch : fastopen
2015-02-26 23:43:12 +08:00
Matt Johnston
f91d66448a
merge
...
--HG--
branch : coverity
2015-02-24 22:48:34 +08:00
Thorsten Horstmann
59bb1777be
Use m_burn rather than memset
2015-02-24 22:48:14 +08:00
Thorsten Horstmann
c5f3c550a6
Avoid cppcheck warning
2015-02-24 22:41:26 +08:00
Matt Johnston
1809f741cb
Add more ATTRIB_NORETURN annotations, from Thorsten Horstmann
2015-02-24 22:36:20 +08:00
Matt Johnston
9adfff5c1a
Revert accidental commented out signal handlers
2015-02-24 22:23:32 +08:00
Matt Johnston
8008b595d3
Some additional cleanup functions
2015-02-24 22:17:04 +08:00
Matt Johnston
21bed0d21a
Free memory before exiting. Based on patch from Thorsten Horstmann.
...
Client side is not complete.
2015-02-24 22:01:33 +08:00
Matt Johnston
4b1f5ec7c2
Use m_close() which will avoid close(-1)
2015-02-24 20:53:32 +08:00
Thorsten Horstmann
ab9439519a
Fix for old compilers, variable declarations at beginning of functions
...
and /**/ comments
2015-02-24 20:51:18 +08:00
Thorsten Horstmann
abeb9d64a3
Some minor typo fixes, found by codespell.
2015-02-24 20:45:07 +08:00
Thorsten Horstmann
fdb7ffa864
DROPBEAR_ prefix for include guards to avoid collisions
2015-02-24 20:43:01 +08:00
Matt Johnston
46845fd3e8
get rid of some unnecessary code
...
--HG--
branch : fastopen
2015-02-21 00:43:32 +08:00
Matt Johnston
c53ca6ebc0
avoid some warnings
...
--HG--
branch : fastopen
2015-02-20 23:43:59 +08:00
Matt Johnston
f04a3a2cfa
Fixes for backwards compatibility
...
--HG--
branch : fastopen
2015-02-20 23:38:05 +08:00
Matt Johnston
364a53577e
Move generic network routines to netio.c
...
--HG--
branch : fastopen
2015-02-20 23:16:38 +08:00
Matt Johnston
1b1997bf2d
Update priority once the socket is open
...
--HG--
branch : fastopen
2015-02-20 22:13:53 +08:00
Matt Johnston
34f9adb1c9
merge
...
--HG--
branch : fastopen
2015-02-19 22:42:30 +08:00
Matt Johnston
2e7d468b90
Add the missing second half of iov code
...
--HG--
branch : fastopen
2015-02-19 22:41:51 +08:00
Matt Johnston
86a717c80c
fallback for old glibc and fastopen
...
memset rather than = {0} initialiser
--HG--
branch : fastopen
2015-02-19 22:33:51 +08:00
Matt Johnston
76a3eb393c
In theory TFO should work. Needs platform cleanup and testing
...
--HG--
branch : fastopen
2015-02-19 00:32:00 +08:00
Matt Johnston
5f0cc969a0
generalise write iovec handling
...
--HG--
branch : fastopen
2015-02-18 23:02:49 +08:00
Matt Johnston
755c1458f0
async connections working
...
--HG--
branch : fastopen
2015-02-18 22:46:15 +08:00
Matt Johnston
8795d733ec
work in progress for async connect
...
--HG--
branch : fastopen
2015-02-18 00:05:27 +08:00
Matt Johnston
28f61c8b3a
tcp fastopen for the server
...
--HG--
branch : fastopen
2015-02-15 22:34:05 +08:00
Matt Johnston
9abcc7b909
connect_remote() is now always non-blocking
2015-02-14 09:56:11 +08:00
Matt Johnston
2c35f1c8fd
Add envirnonment variable for debug timestamps to roughly match
...
network timestamps (in tshark)
2015-02-13 23:47:53 +08:00
Matt Johnston
136188259e
Fix print that no longer works since we're not using fourCCs
2015-02-13 23:17:23 +08:00
Matt Johnston
02179b1218
merge
2015-02-13 23:15:12 +08:00
Matt Johnston
1e350de136
Make it compile
2015-02-13 23:13:58 +08:00
Matt Johnston
9aeda4c5bd
piggyback data on acks when making connections on linux
2015-02-13 22:49:15 +08:00
Matt Johnston
8eb30c353a
debug should be off by default
2015-02-13 21:45:15 +08:00
Matt Johnston
ccfdf7e039
merge
...
--HG--
branch : coverity
2015-02-10 21:47:43 +08:00
Matt Johnston
c44a78a2e6
Tighten validation of DH values. Odds of x==0 being generated are
...
improbable, roughly 2**-1023
Regression in 0.49
2015-02-10 21:46:19 +08:00
Matt Johnston
b6685bf806
twofish ctr modes
2015-02-04 22:12:06 +08:00
Matt Johnston
269d690e71
Added signature for changeset 1d2d81b1b7c1
2015-01-29 21:42:01 +08:00
Matt Johnston
4df268f10e
sha256
2015-01-28 22:58:52 +08:00
Matt Johnston
19b3f01477
bump version
2015-01-28 22:57:33 +08:00
Matt Johnston
86811f4765
Added tag DROPBEAR_2015.67 for changeset cbd674d63cd4
2015-01-28 22:55:27 +08:00
Matt Johnston
dd0352d93b
changelog for 2015.67
2015-01-28 22:54:23 +08:00
Matt Johnston
95ce05da40
merge
...
--HG--
branch : coverity
2015-01-28 22:49:55 +08:00
Matt Johnston
30ec18d938
merge
2015-01-28 22:49:40 +08:00
Matt Johnston
9d495ab2b5
changes for 2015.67
2015-01-28 22:49:28 +08:00
Matt Johnston
9174de47a9
Fix bad multi-statement define for m_free(), detected by Coverity
2015-01-28 22:43:01 +08:00
Christian Engelmayer
d857faf18e
When clearing the memory of 'key' in function openssh_read(), only the size
...
of the pointer to the data instead of the whole size of struct openssh_key
is cleared. Correct the size calculation as detected by Coverity CID 1191543.
2015-01-28 22:42:29 +08:00
Matt Johnston
d5c8ba1690
Initialise sa_mask
2015-01-28 22:33:34 +08:00
Matt Johnston
9bb9b4829d
Fix memory leak of ecdsa structure, found by Coverity
2015-01-28 22:29:18 +08:00
Matt Johnston
e25c297c3c
Document ~/.ssh/id_dropbear
2015-01-28 22:22:32 +08:00
Matt Johnston
4de876f259
Keep sha1 default
2015-01-28 22:14:07 +08:00
Elan Ruusamäe
b9073961f7
Allow configure with libtomcrypt/libtommath directories missing
...
if using bundled libraries
2015-01-28 22:05:24 +08:00
Matt Johnston
c5d53cf81c
merge
...
--HG--
branch : coverity
2015-01-28 21:40:34 +08:00
Matt Johnston
a7a79d569a
Disable non-delayed zlib for server
2015-01-28 21:38:27 +08:00
Matt Johnston
6165f53fcd
Default client key path ~/.ssh/id_dropbear
2015-01-24 00:05:26 +08:00
Fedor Brunner
4122cac66b
Prefer stronger algorithms in algorithm negotiation.
...
Prefer diffie-hellman-group14-sha1 (2048 bit) over
diffie-hellman-group1-sha1 (1024 bit).
Due to meet-in-the-middle attacks the effective key length of
three key 3DES is 112 bits. AES is stronger and faster then 3DES.
Prefer to delay the start of compression until after authentication
has completed. This avoids exposing compression code to attacks
from unauthenticated users.
(github pull request #9 )
2015-01-23 23:00:25 +08:00
Like Ma
a1dcebe4f4
Fix installing dropbear.8 error when building in a separate directory.
...
(fix pull request #6 )
2015-01-23 22:59:30 +08:00
Matt Johnston
6cbb23a819
Add config option to disable cbc. Disable twofish by default
2015-01-23 22:37:14 +08:00
Like Ma
5c57a31184
Fix variables may be uninitialized.
...
(fixup of pull request #7 )
2015-01-23 22:23:23 +08:00
Fedor Brunner
7b2c42aa75
Integrity error (bad packet size %u) negative length
...
When corrupted packet is received negative length of packet is
displayed.
(re-apply of pull request #8 )
2015-01-23 22:21:06 +08:00
Matt Johnston
1ed8d3938e
Enable sha2 HMACs by default, they're required for ecdsa already
2015-01-13 20:55:04 +08:00
Matt Johnston
b24984deb3
clear hash state memory after use
2015-01-04 23:10:59 +08:00
Matt Johnston
5574460d25
merge
...
--HG--
branch : coverity
2015-01-04 22:33:12 +08:00
Matt Johnston
eabd9f5e60
clarify bad/unknown
2015-01-04 22:32:38 +08:00
Catalin Patulea
d4609682af
Handle invalid agent keys by skipping rather than exiting.
...
My agent exposes both conventional keys and certs (ecdsa-sha2-nistp256-cert-v01@openssh.com ) and I want dropbear to be able to use the former.
2015-01-01 17:47:46 -05:00
Matt Johnston
634415f79e
Open directories O_RDONLY for fsync, add debugging if it fails
2015-01-04 22:22:43 +08:00
Matt Johnston
4ba830fc31
Make sure hostkeys are flushed to disk to avoid empty files if the power
...
fails. Based on patch from Peter Korsgaard
2014-11-08 22:15:16 +08:00
Matt Johnston
3022a46039
Added signature for changeset 2d421bc0545d
2014-10-23 22:09:46 +08:00
Matt Johnston
d9a868ff60
Added tag DROPBEAR_2014.66 for changeset 735511a4c761
2014-10-23 22:09:22 +08:00
Matt Johnston
c890a0c133
changelog, version number bump
2014-10-23 21:43:00 +08:00
Matt Johnston
9ec934a94a
Remove -o from scp help
2014-10-23 20:52:10 +08:00
Matt Johnston
5e606a964b
increae MAX_STRING_LEN for sun ssh
2014-10-23 20:50:06 +08:00
Steven Honeyman
d88034434c
Don't print "Failed loading hostkey" when -R delayed hostkey option is enabled
2014-10-22 07:12:52 +08:00
Matt Johnston
233fd96994
merge to coverity
...
--HG--
branch : coverity
2014-10-21 22:34:20 +08:00
Matt Johnston
776d908703
Combine code for SSH_CONNECTION and SSH_CLIENT
2014-10-21 22:33:49 +08:00
Matt Johnston
444b15889f
Merge pull request #5 from rcleere/ssh_client
...
Add SSH_CLIENT environment variable
2014-10-21 21:43:20 +08:00
Ryan Cleere
957450582f
Add SSH_CLIENT environment variable
2014-10-20 12:59:47 -05:00
Matt Johnston
d1b29336b1
merge
...
--HG--
branch : coverity
2014-08-19 23:36:46 +08:00
Matt Johnston
6d2d3669f3
Make keepalive handling more robust, this should now match what OpenSSH does
2014-08-19 23:08:56 +08:00
Whoopie
1387654cc8
Fix wtmp, testing for wtmp.h and wtmpx.h doesn't make sense
2014-08-13 22:07:43 +08:00
Matt Johnston
10eb218fb0
Don't send SSH_MSG_UNIMPLEMENTED for keepalive responses
2014-08-13 21:48:47 +08:00
Matt Johnston
bfb2b30de6
Added signature for changeset caac692b366c
2014-08-08 21:53:47 +08:00
Matt Johnston
426d4d72c6
Added tag DROPBEAR_2014.65 for changeset e9579816f20e
2014-08-08 21:53:42 +08:00
Matt Johnston
cce29ba38c
2014.64
2014-08-08 21:40:42 +08:00
Matt Johnston
fa5eb62464
merge
...
--HG--
branch : coverity
2014-08-08 21:26:07 +08:00
Mike Frysinger
ed2e276b3a
use xauth in /usr/bin
...
Since the x.org rework, X has been installed into standard paths and not
its own random prefixes. I think it's time we update the default paths
accordingly.
2014-08-01 06:14:19 -04:00
Matt Johnston
12a020aa62
Don't warn about ENOTSOCK when setting priority
2014-08-06 22:16:38 +08:00
Matt Johnston
b969101b33
Be a bit safer in case pw_name doesn't exist
2014-08-06 22:10:57 +08:00
Matt Johnston
86a742f635
merge
2014-08-06 22:08:16 +08:00
Matt Johnston
9468f7f6d6
Merge pull request #2 from iquaba/patch-1
...
Try without identifying current user
2014-08-06 22:04:49 +08:00
Matt Johnston
628a3f5cca
Test for EAGAIN too
2014-08-06 21:55:43 +08:00
iquaba
e815e97440
Try without identifying current user
...
Small change that warns the user if the current user cannot be identified rather than aborting. This came in handy when I put dropbear on a dlink that did not have a true user environment. Falling back on the "-l" option and user@ options works just fine as a client. The only implication I found is that the -J option will fail ungracefully without a known own_user.
2014-08-06 08:48:43 -05:00
Matt Johnston
0b48a4f879
merge
...
--HG--
branch : coverity
2014-07-28 23:38:54 +08:00
Matt Johnston
0e7409c7ff
Make sure the check_close() handler runs when a server child process exits
2014-07-28 23:23:49 +08:00
Matt Johnston
393ca2a290
Fix some format string warnings
2014-07-28 22:59:16 +08:00
Matt Johnston
00ef081fcf
merge
...
--HG--
branch : coverity
2014-07-28 22:56:07 +08:00
Matt Johnston
ad1d48e07b
Fix clock_gettime handling
2014-07-28 22:48:48 +08:00
Matt Johnston
ac98aae160
Added signature for changeset 96584b934d04
2014-07-27 23:11:52 +08:00
Matt Johnston
c1267398a2
Added tag DROPBEAR_2014.64 for changeset 0d2d39957c02
2014-07-27 23:11:47 +08:00
Matt Johnston
8c3a2bb63e
Archive should be bz2 nor gz
2014-07-27 22:56:35 +08:00
Matt Johnston
923fc9087c
- Don't use multichar constants since recent gcc complains
...
- Add release script
- Simplify print_version
2014-07-27 22:55:29 +08:00
Matt Johnston
83511fecc0
Version 2014.64
2014-07-27 22:25:18 +08:00
Matt Johnston
ed0552f214
Add '-V' for version
...
-h should exit with success
Update manpages
2014-07-27 22:06:26 +08:00
Matt Johnston
dabeaec461
merge
...
--HG--
branch : coverity
2014-07-26 10:23:53 +08:00
Matt Johnston
5cf83a7212
Avoid use-after-free when channel inithandler fails. Thanks to Coverity
2014-07-26 10:18:55 +08:00
Matt Johnston
d4ed2fffe4
merge
...
--HG--
branch : coverity
2014-07-25 22:23:50 +08:00
Matt Johnston
7808eff0a9
changes for 2014.64
2014-07-25 22:22:39 +08:00
Matt Johnston
da57dd13c5
Set tcp priority as follows:
...
if (connecting || ptys || x11) tos = LOWDELAY;
else if (tcp_forwards) tos = 0;
else tos = BULK;
TCP forwards could be either lowdelay or bulk, hence the default priority.
2014-07-16 22:53:32 +08:00
Matt Johnston
f1826ea389
Fix auth timeout regression
2014-07-09 22:02:22 +08:00
Matt Johnston
c884e5000e
Make -K keepalive behave like OpenSSH's ServerAliveInterval
2014-07-09 00:15:20 +08:00
Matt Johnston
1ccac01cee
Make sure client exit messages don't get lost
2014-07-09 00:13:17 +08:00
Matt Johnston
50a5d3756f
Send a failure response if a client receives a global request
2014-07-08 21:59:36 +08:00
Matt Johnston
ca86726f9f
Improve handling lots of concurrent forwarded connections. Increase
...
connection backlog, avoid check_close() for channels that haven't had IO
2014-06-25 23:42:39 +08:00
Matt Johnston
6b5317e7cc
Fix compiling with ECDSA and DSS disabled
2014-06-25 23:37:44 +08:00
Matt Johnston
2a1d28ea3a
Be more careful in case a platform doesn't define UIO_MAXIOV nor IOV_MAX
2014-05-20 21:21:02 +08:00
Ronny Meeus
0e0ff51582
Limit size of the iovect passed to writev in packet.c
2014-05-20 21:18:48 +08:00
Ronny Meeus
cd700aaf6e
Print errno information in write_packet
2014-05-20 20:56:59 +08:00
Matt Johnston
188ec1e258
Fix pubkey auth if the first key presented fails (infinite loop of
...
auth requests). Regresssion in ff597bf2cfb0
2014-04-23 16:22:50 +08:00
Matt Johnston
d01fb265d6
Fix monotonic_now() on OS X
2014-03-21 22:16:42 +08:00
Matt Johnston
db688e3ec1
Experiment of always writing data if available. Might waste a writev() with
...
EAGAIN but always saves a select() - needs testing with bandwidth-limited
and CPU-limited situations.
2014-03-15 11:37:02 +08:00
Matt Johnston
e767bbb41f
Add new monotonic_now() wrapper so that timeouts are unaffected by
...
system clock changes
2014-03-13 23:50:09 +08:00
Matt Johnston
2b599df57a
Fix typo
2014-03-13 23:08:47 +08:00
Yousong Zhou
5baa10a6b6
Use AUTH_TIMEOUT only before authdone != 1.
...
While at it, fix a few indentations and typo.
2014-03-13 16:28:16 +08:00
Matt Johnston
0533b87b1a
merge
...
--HG--
branch : coverity
2014-03-08 21:02:02 +08:00
Matt Johnston
3e1a389629
Don't need to mkdir
2014-03-08 21:00:57 +08:00
Matt Johnston
7504cd1a1a
Don't 'make install' for coverity
...
--HG--
branch : coverity
2014-03-08 21:00:32 +08:00
Matt Johnston
482dc0eff4
Fix the right build line
...
--HG--
branch : coverity
2014-03-08 18:16:11 +08:00
Matt Johnston
fc34d02427
Fix quoting for coverity
...
--HG--
branch : coverity
2014-03-08 18:09:00 +08:00
Matt Johnston
5ce5fbcba0
More for coverity
...
--HG--
branch : coverity
2014-03-08 16:56:15 +08:00
Matt Johnston
31d2311537
Add coverity bits
...
--HG--
branch : coverity
2014-03-08 14:56:27 +08:00
Matt Johnston
37e6207396
Fix env vars for travis again
2014-03-07 21:46:51 +08:00
Matt Johnston
927a2dc849
Fix "make install" dependency so that it works without prior "make"
2014-03-07 21:30:20 +08:00
Matt Johnston
ce9f9594da
Add some tests for multi
2014-03-07 21:14:12 +08:00
Matt Johnston
f0bf37b6cb
Install system libtom libs, run dropbearkey when it's done
2014-03-07 21:03:43 +08:00
Matt Johnston
2f0b35a105
The arguments are for configure, not make!
2014-03-07 20:52:57 +08:00
Matt Johnston
7a9ed81f5f
Add Travis CI autobuilder config
2014-03-07 20:44:32 +08:00
Matt Johnston
12e7d570a2
Make some debug info conditional
2014-02-24 20:53:32 +08:00
Matt Johnston
bb7934bf04
A few fixes for cases where compression increases payload sizes, and
...
be more precise about maximum channel sizes
2014-02-22 18:02:09 +08:00
Matt Johnston
fb3c718963
Fix typo in Catalin's name
2014-02-19 22:18:11 +08:00
Matt Johnston
231fc607f9
Added signature for changeset 277429102f13
2014-02-19 22:14:58 +08:00
Matt Johnston
9594a3aa45
Added tag DROPBEAR_2014.63 for changeset 2351b2da8e0d
2014-02-19 22:14:52 +08:00
Matt Johnston
162fcab347
2014.63
2014-02-19 22:04:35 +08:00
Catalin Patulea
0c8bdfd7cd
README: fix ecdsa key generation command
2014-02-09 03:56:50 -05:00
Matt Johnston
5e4dc71907
CHANGES for 2014.63
2014-02-19 22:01:01 +08:00
Matt Johnston
3e4433f715
- Fix dbclient with port 0 for server-allocated
...
- Fix port forwards with a bind address of 127.0.0.1 vs "localhost" etc
2014-02-18 21:33:56 +08:00
Matt Johnston
29062e629f
Fix building with system libtomcrypt/libtommath
2014-02-18 21:03:27 +08:00
Steve Dover
47f7272ba1
Add linux/types.h to includes to avoid missing ___u64 etc
2014-02-17 22:05:59 +08:00
Matt Johnston
bf6f3f613d
Read (and enqueue) packets from interactive input even when
...
we're waiting for a key exchange.
This should hopefully fix the situation where "~." doesn't work to terminate a
client session when a laptop wakes up. The client will be stuck waiting for a
key exchange on a dead connection, so won't have read the escape character
2014-02-17 21:41:06 +08:00
Matt Johnston
0c9a643216
Change port separator to ^ since % is used in ipv6 addresses
2014-02-15 21:42:35 +08:00
Matt Johnston
fa2d843403
Disable immediate auth for delayed-zlib mode
2014-02-15 21:23:41 +08:00
Matt Johnston
1dc5312f00
- Save errno in signal handlers
...
- Use _exit() in segv handler
2014-02-15 21:13:57 +08:00
Matt Johnston
73444f2957
generate RSA keys of exact length
2014-02-14 23:18:45 +08:00
Matt Johnston
a18a6b8db8
cleanup before clearing keys
2014-02-12 22:15:02 +08:00
Nicolas Boos
bf56591fb8
Fix linking -lcrypt for systems without libcrypt in /usr/lib
2014-02-07 07:57:45 +08:00
Nicolas Boos
5ea428a30d
Avoid linking dropbearconvert and dropbearkey to libz or libutil
2014-02-07 07:53:32 +08:00
Matt Johnston
af524c4d65
Fix check for EINTR
2014-01-28 22:44:24 +08:00
Matt Johnston
2bc9f35052
Back out accidentally committed files
2014-01-23 22:29:04 +08:00
Matt Johnston
55a0c5068f
requirenext doesn't need two values
2014-01-23 22:25:52 +08:00
Matt Johnston
8128b15e41
Fix failing rekeying when we receive a still-in-flight packet
2014-01-23 21:56:35 +08:00
Matt Johnston
8081b0e033
Forgot to save the change
2014-01-17 21:42:32 +08:00
Matt Johnston
61cecbb337
DROPBEAR_CLI_AUTH_IMMEDIATE fixed, now enabled by default
2014-01-17 21:39:27 +08:00
Mike Frysinger
aee1309c91
Fix so that "make install" for multi target won't fail on scp which doesn't
...
have a manpage
2013-12-11 21:50:33 +08:00
Mike Frysinger
710c1df413
Turn dropbearmulti into a real target so we don't constantly re-link it
2013-12-11 21:48:02 +08:00
Matt Johnston
0f165a95a8
Added signature for changeset 3d1d7d151c0c
2013-12-03 22:00:38 +08:00
Matt Johnston
581f04c80b
Added tag DROPBEAR_2013.62 for changeset 3d1d7d151c0c
2013-12-03 22:00:29 +08:00
Matt Johnston
511be4acc6
2013.62
2013-12-03 21:39:06 +08:00
Matt Johnston
d77b29f1d7
Update to 2013-10-01
2013-12-03 21:36:12 +08:00
Matt Johnston
092a4d9a7e
Fix disabling DSS key
2013-12-03 21:26:59 +08:00
Matt Johnston
b3cab3ce31
Log when generating a hostkey
2013-12-03 21:13:58 +08:00
Matt Johnston
e5279b0e2e
Update README
2013-12-03 21:03:23 +08:00
Matt Johnston
9ff337aa3b
Exit if we don't have keys and -R wasn't specified
2013-12-03 20:59:03 +08:00
Catalin Patulea
441facc6e0
Fix TRACEs of cli_send_netcat_request
2013-12-03 00:06:35 +08:00
Matt Johnston
998d6cdfc4
- Sockets are set to lowdelay priority initially to improve conneciton setup
...
time
- Set non-pty connections to bulk for client and server
2013-12-03 00:04:48 +08:00
Catalin Patulea
ddc10b2d0c
Set IPTOS_LOWDELAY on PTY sessions only
2013-12-02 22:55:43 +08:00
Matt Johnston
4f6f651b7d
Only define LTM_DESC if it isn't already
2013-12-02 22:15:17 +08:00
Matt Johnston
68c7667a20
merge
2013-11-27 21:32:45 +08:00
Matt Johnston
0b62d71e70
- Increase buffer size, fixes converting 521bit ECC key
...
- Fix assertion that key size is exactly curve size
2013-11-27 21:30:05 +08:00
Matt Johnston
be5780ef90
Fix library order of libtom*
2013-11-25 23:39:15 +08:00
Matt Johnston
e5c52796c3
Try and fix utmp handling
2013-11-25 23:30:01 +08:00
Matt Johnston
c5e36f8e3c
Fix some warnings
2013-11-25 23:08:33 +08:00
Matt Johnston
5a85c4b91b
Added signature for changeset 9ec083a21adf
2013-11-14 22:39:27 +08:00
Matt Johnston
0201072c1b
Added tag DROPBEAR_2013.61test for changeset e894dbc015ba
2013-11-14 22:39:16 +08:00
Matt Johnston
aa029ed991
2013.61test
2013-11-14 22:24:10 +08:00
Matt Johnston
0777e896f1
docs for ecdsa
2013-11-14 22:14:09 +08:00
Matt Johnston
7f90231b8f
another new config.guess 2013-06-10
2013-11-14 22:07:18 +08:00
Matt Johnston
cbe63bbabe
rename random.h to dbrandom.h since some OSes have a system random.h
...
--HG--
rename : random.c => dbrandom.c
rename : random.h => dbrandom.h
2013-11-14 22:05:47 +08:00
Matt Johnston
de1deaf0bd
use oldstyle comments
2013-11-14 22:03:30 +08:00
Matt Johnston
e00a97944a
Replace some deprecated macros with other ones, from Daniel Richard G.
2013-11-14 21:45:50 +08:00
Matt Johnston
a65f84db38
- Some fixes for old compilers like tru64 v4 from Daniel Richard G.
...
- Don't warn about blocking random device for prngd
2013-11-14 21:36:45 +08:00
Matt Johnston
8c8ecec3e9
merge ecc again
2013-11-14 20:45:46 +08:00
Matt Johnston
b77864931b
Don't exit fatally if authorized_keys has a line like
...
command="something" ssh-rsa
--HG--
branch : ecc
2013-11-12 23:58:51 +08:00
Matt Johnston
e60a84d0ed
Various cleanups and fixes for warnings
...
--HG--
branch : ecc
2013-11-12 23:02:32 +08:00
Matt Johnston
f025277147
comments, turn off debugging options
...
--HG--
branch : ecc
2013-11-09 00:14:28 +08:00
Matt Johnston
1e00d0b926
- Make curve25519 work after fixing a typo, interoperates with OpenSSH
...
- comment on ecc binary size effects
--HG--
branch : ecc
2013-11-09 00:02:26 +08:00
Matt Johnston
29b1455f36
Merge
...
--HG--
branch : ecc
2013-11-08 23:32:13 +08:00
Matt Johnston
0162c116da
curve25519
...
--HG--
branch : ecc
2013-11-08 23:11:43 +08:00
Matt Johnston
58fe1c2d2a
Add '-R' for delayed hostkey option
...
--HG--
branch : keyondemand
2013-11-07 23:49:37 +08:00
Matt Johnston
4363b8b32d
refactor key generation, make it generate as required.
...
Needs UI in server command line options
--HG--
branch : keyondemand
2013-11-07 00:18:52 +08:00
Matt Johnston
cfac8435a7
merge yet again
2013-11-01 00:21:59 +08:00
Matt Johnston
35f26ff855
merge again
2013-11-01 00:19:25 +08:00
Matt Johnston
f66fc01620
Merge
2013-11-01 00:14:48 +08:00
Matt Johnston
082a2dde35
Fix specifying a keysize for key generation, fix key name arguments
...
--HG--
branch : ecc
2013-11-01 00:13:09 +08:00
Matt Johnston
814ab77538
Default to some larger key sizes
...
--HG--
branch : ecc
2013-10-31 22:49:15 +08:00
Matt Johnston
8eefb092c8
Merge in ECC
2013-10-21 22:57:21 +08:00
Matt Johnston
55e7f0486a
Fix shadowed "ret" variable
...
--HG--
branch : ecc
2013-10-21 22:50:52 +08:00
Matt Johnston
88ac2da7c2
A few small fixes for ECC compilation
...
--HG--
branch : ecc
2013-10-21 22:46:12 +08:00
Matt Johnston
27510a6e9e
merge
...
--HG--
branch : ecc
2013-10-20 21:07:05 +08:00
Matt Johnston
7fda6418e1
writing out openssh ecc keys works
...
--HG--
branch : ecc
2013-10-20 21:06:18 +08:00
Matt Johnston
45bd0edae5
Merge in changes from the past couple of releases
...
--HG--
branch : ecc
2013-10-18 21:38:01 +08:00
Matt Johnston
3d733a16e9
Added signature for changeset a50a1dc74331
2013-10-16 22:55:03 +08:00
Matt Johnston
fe623afaad
Added signature for changeset 025237c9f0a1
2013-10-16 22:52:43 +08:00
Matt Johnston
b840a980e3
Added tag DROPBEAR_2013.60 for changeset a50a1dc74331
2013-10-16 22:52:05 +08:00
Matt Johnston
2ec98eb048
Update debian changelog for 2013.60 too
2013-10-16 22:34:25 +08:00
Matt Johnston
253cd3b66b
- 2013.60, update CHANGES
...
- Add CVE references to CHANGES
2013-10-16 22:32:31 +08:00
Matt Johnston
920120d05a
Make --disable-bundled-libtom work, based on patch from Mike Frysinger
2013-10-15 22:55:44 +08:00
Matt Johnston
4ba058986e
- Fix "inst_scp" target since there isn't a manpage
...
- Fix "make install MULTI=1"
2013-10-09 22:24:39 +08:00
Matt Johnston
03b7255ddd
Add @exec_prefix@ that was missing
2013-10-09 21:58:07 +08:00
Matt Johnston
2de7f8b224
Added signature for changeset deb211f75ca1
2013-10-04 22:40:28 +08:00
Matt Johnston
bbf2f1d571
Added tag DROPBEAR_2013.59 for changeset 7b68e581985f
2013-10-04 22:39:09 +08:00
Matt Johnston
9cdd5e99a4
Fix up debian build
2013-10-04 22:22:35 +08:00
Matt Johnston
897ed7125b
Fix debian installation of manpages
2013-10-04 21:49:32 +08:00
Matt Johnston
459d259185
Version 2013.59
2013-10-04 21:41:19 +08:00
Matt Johnston
aac6336e49
Don't say "SSH 2" any more since protocol version 1 is irrelevant
2013-10-03 23:50:04 +08:00
Matt Johnston
fc1155f974
Add manpage for dropbearconvert
...
Move dropbearkey to manual section 1
Add install target for manpages
--HG--
rename : dropbearkey.8 => dropbearkey.1
2013-10-03 23:45:25 +08:00
Matt Johnston
6a09fa23d0
Get rid of spurious newlines in pam log messages
2013-10-03 23:04:26 +08:00
Matt Johnston
142a0f8a83
Send PAM error messages as a banner messages
...
Patch from Martin Donnelly, modified.
2013-10-03 23:04:11 +08:00
Matt Johnston
d1dec41f76
Constant time memcmp for the hmac and password crypt
2013-10-03 22:25:30 +08:00
Matt Johnston
69a165db86
Only send a failure response to a channel request if wantreply is set.
2013-09-21 00:34:36 +08:00
Matt Johnston
dffb33cecf
Improve EOF handling for half-close. Patch from Catalin Patulea
...
Fixes the situation
$ ./dbclient root@1.2.3.4 'cat; echo foo'
^D
<no output>
2013-09-21 00:17:22 +08:00
Matt Johnston
e7917c16c9
Remove accidental one second sleep leftover from debugging
2013-08-12 22:41:00 +08:00
Matt Johnston
e05b7f0b76
merge
2013-07-08 22:43:56 +08:00
Matt Johnston
aeea70f95f
strdup the proxycmd to avoid crash when freeing, from Lluís Batlle i Rossell
2013-07-08 22:42:32 +08:00
Matt Johnston
ded40babb5
limit how much we read from rt_cache etc
2013-05-28 22:16:57 +08:00
Matt Johnston
e355f69401
merge
2013-05-26 18:43:00 +08:00
Matt Johnston
c2b1327deb
merge
2013-05-26 18:42:17 +08:00
Matt Johnston
f7ba7444e8
improve auth failure delays to avoid indicating which users exist
2013-05-26 18:39:24 +08:00
Matt Johnston
aafeebd0c8
have separate ecdsa keys for each size
...
fix crash from the mp_alloc_init_multi change in RSA
--HG--
branch : ecc
2013-05-25 00:54:19 +08:00
Matt Johnston
6b0d47b364
hackish ECC import code from OpenSSH
...
--HG--
branch : ecc
2013-05-23 22:18:33 +08:00
Matt Johnston
d9e790e7dc
Add m_mp_alloc_init_multi() helper
...
--HG--
branch : ecc
2013-05-23 22:18:16 +08:00
Matt Johnston
51b5cdd430
Enable SMALL_CODE by default
...
--HG--
branch : ecc
2013-05-21 13:44:48 +08:00
Matt Johnston
aced7b5b00
Fix static library order, libtomcrypt depends on libtommath
...
--HG--
branch : ecc
2013-05-21 13:20:02 +08:00
Matt Johnston
0475594cb2
Fix broken disablekey()
...
--HG--
branch : ecc
2013-05-21 12:15:48 +08:00
Matt Johnston
04518e9e80
merge in HEAD
...
--HG--
branch : ecc
2013-05-21 12:09:35 +08:00
Matt Johnston
a57947c513
Fix bad comma in header list
2013-05-13 21:35:13 +08:00
Matt Johnston
372e81a842
Update config.guess and config.sub
2013-05-13 21:06:35 +08:00
Matt Johnston
41f531ceaf
quieten the compiler
...
--HG--
branch : ecc
2013-05-09 23:27:23 +08:00
Matt Johnston
b46d46667f
merge
...
--HG--
branch : ecc
2013-05-09 23:25:39 +08:00
Matt Johnston
226671b550
Fix build for dropbearkey and ecdsa with certain options
...
--HG--
branch : ecc
2013-05-09 23:24:58 +08:00
Matt Johnston
916cfa6b83
Fix ecdsa verification
...
--HG--
branch : ecc
2013-05-09 23:24:05 +08:00
Matt Johnston
49263b5314
Limit decompressed size
2013-05-08 23:23:14 +08:00
Matt Johnston
95a21c8fd7
ecdsa is working
...
--HG--
branch : ecc
2013-05-03 23:07:48 +08:00
Matt Johnston
57166b400c
Avoid segfault for locked accounts (invalid salt to crypt())
2013-04-29 23:42:37 +08:00
Matt Johnston
79660f2eb1
more ecdsa signkey work, not correct
...
--HG--
branch : ecc
2013-04-28 23:17:43 +08:00
Matt Johnston
3ea9068e18
Save with utf8 encoding
2013-04-18 23:15:17 +08:00
Matt Johnston
e4c672bdbb
Added signature for changeset f168962bab85
2013-04-18 23:10:24 +08:00
Matt Johnston
791a78ad1f
Added tag DROPBEAR_2013.58 for changeset e76614145aea
2013-04-18 23:10:19 +08:00
Matt Johnston
6da90b34fe
2013.58
2013-04-18 22:57:47 +08:00
Matt Johnston
43769b5bb3
Don't enable CLI_IMMEDIATE_AUTH by default, it breaks blank password logins
2013-04-18 21:47:38 +08:00
Matt Johnston
f98eb5808b
Use % rather than # for port delimiter
2013-04-17 23:17:27 +08:00
Matt Johnston
3525cabf48
Use '#' for host#port separator, document it. This fixes scp
...
in multihop
2013-04-17 22:48:43 +08:00
Matt Johnston
54a76342f5
If running as non-root only allow that user to log in
2013-04-17 22:29:18 +08:00
Matt Johnston
154a65fc31
Fix build when zlib is disabled, from
...
http://freetz.org/browser/trunk/make/dropbear/patches/350-no_zlib_fix.patch
2013-04-16 22:16:32 +08:00
Matt Johnston
bd7a46f514
Added signature for changeset 095b46180bbc
2013-04-15 22:11:11 +08:00
Matt Johnston
79a307bca2
Added tag DROPBEAR_2013.57 for changeset 96b8bcb88017
2013-04-15 22:10:49 +08:00
Matt Johnston
38f42a0fa2
Fix error message for requirenext change
2013-04-15 22:01:41 +08:00
Matt Johnston
b4cdfcb506
bump version to 2013.57
2013-04-15 21:56:04 +08:00
Matt Johnston
d3cef72f26
changelog updates for 2013.57
2013-04-15 21:51:27 +08:00
Matt Johnston
ef151888fb
requirenext fixup for firstkexfollows
2013-04-14 23:16:16 +08:00
Matt Johnston
ba15bbfe33
Document escape chars
2013-04-14 23:08:57 +08:00
Matt Johnston
3bdfae61a2
merge
2013-04-14 22:49:19 +08:00
Matt Johnston
4404126501
-y -y to disable hostkey checking
...
fix missing trailing space when passing arguments for multihop mode
From Hans Harder
2013-04-14 22:49:10 +08:00
Matt Johnston
5c87c6a435
A bit of work on ecdsa for host/auth keys
...
--HG--
branch : ecc
2013-04-14 00:50:03 +08:00
Matt Johnston
adeb372a66
Fix zlib for split newkeys
2013-04-11 23:03:58 +08:00
Matt Johnston
c0d7c6693f
run closehandlers on cleanup
2013-04-10 21:32:55 +08:00
Matt Johnston
3ec4670478
reset terminal modes before printing a message
2013-04-10 21:32:44 +08:00
Matt Johnston
f842712551
A bit of debugging output
...
--HG--
branch : ecc
2013-04-09 22:47:03 +08:00
Matt Johnston
9f01625e23
Be safer with how we handle ltc_ecc_sets[] (particularly with
...
system libtomcrypt)
A bit of progress with ecdsa code
--HG--
branch : ecc
2013-04-09 22:44:19 +08:00
Matt Johnston
7f091e7019
start on ecdsa keys
...
--HG--
branch : ecc
2013-04-09 00:36:04 +08:00
Matt Johnston
4f07805d0a
- Rename buf_put_ecc_pubkey_string() to buf_put_ecc_raw_pubkey_string()
...
- Reindent ecc.c properly
--HG--
branch : ecc
2013-04-08 23:56:31 +08:00
Matt Johnston
a7d1a9cfcb
add printmpint() for debugging
...
--HG--
branch : ecc
2013-04-08 23:12:35 +08:00
Matt Johnston
48c83aa9d0
ecdh works against OpenSSH
...
--HG--
branch : ecc
2013-04-08 23:12:20 +08:00
Matt Johnston
c797c1750c
- Fix various hardcoded uses of SHA1
...
- rename curves to nistp256 etc
- fix svr-auth.c TRACE problem
--HG--
branch : ecc
2013-04-08 00:10:57 +08:00
Matt Johnston
c6bdc810ab
ecc kind of works, needs fixing/testing
...
--HG--
branch : ecc
2013-04-07 01:36:42 +08:00
Matt Johnston
a8135dec1e
Make _sign and _verify functions take a buffer* rather than void* and int
...
--HG--
branch : ecc
2013-04-06 16:00:37 +08:00
Matt Johnston
2fdb5fd6ce
setup tcp after requesting a channel - might hide some DNS latency
2013-04-04 07:51:13 +08:00
Matt Johnston
7f42096d0f
Take transmit and receive keys into use separately
2013-04-04 00:18:50 +08:00
Matt Johnston
e2c813df4d
Fix MAC bug which would prevent asymmetric hashes
2013-04-03 23:54:58 +08:00
Matt Johnston
a2f70a3751
Just put the version string on the queue, don't use atomicio
2013-04-03 19:23:53 +08:00
Matt Johnston
286fa93a8d
fix leftover kexguess debugging
2013-04-03 07:34:18 +08:00
Matt Johnston
557d86aa79
Fix a few options and headers
2013-04-03 07:33:47 +08:00
Matt Johnston
8e68d5e2d5
merge
2013-04-03 00:50:46 +08:00
Matt Johnston
1a16da38d5
merge kexguess branch
2013-04-03 00:49:24 +08:00
Matt Johnston
cbd3d5e3a5
Put some #ifdef options around first-follows options in case they
...
need to be disabled
--HG--
branch : kexguess
2013-04-03 00:43:31 +08:00
Matt Johnston
78fbed8c3e
Don't usually need to recalculate dh_e for the repeated kexdh_init packet
...
--HG--
branch : kexguess
2013-04-03 00:32:55 +08:00
Matt Johnston
f267ca1f3a
Add sentinel attribute
...
--HG--
branch : kexguess
2013-04-03 00:32:05 +08:00
Matt Johnston
a6eb824950
add IUTF8
2013-04-02 19:11:13 +08:00
Matt Johnston
dcd1527a11
fix tabs
2013-04-02 18:59:00 +08:00
Matt Johnston
f8a92d1eed
merge
2013-04-02 18:54:04 +08:00
Matt Johnston
e55e468754
Fix segfault when /dev/urandom isn't writable
2013-04-02 18:53:18 +08:00
Matt Johnston
ff2aa20565
Be a bit more careful about when we want to use CLI_AUTH_IMMEDIATE
...
Only use it if we have pubkeys to try, or we have $DROPBEAR_PASSWORD set
2013-04-02 00:11:53 +08:00
Matt Johnston
90b5691183
Run the cleanup handler also when we close due to TCP connection being closed
2013-04-01 22:26:55 +08:00
Matt Johnston
5af0d33164
Try password before interactive - bit of a hack
2013-04-01 22:26:24 +08:00
Matt Johnston
e5072c6b12
merge from head roundtrip changes
...
--HG--
branch : kexguess
2013-04-01 00:13:41 +08:00
Matt Johnston
90cf7f012c
Move the more verbose TRACE() statements into TRACE2()
2013-04-01 00:07:26 +08:00
Matt Johnston
484516da51
Send an auth packet straight away, save another roundtrip
...
This needs a bit of testing to make sure it doesn't have side-effects.
2013-03-31 23:48:25 +08:00
Matt Johnston
5abe22d1a5
Fix incorrect logic for USE_VFORK and calling arg_setup()
2013-03-31 23:29:03 +08:00
Matt Johnston
f6b304250b
Try using writev() for writing packets out to tcp
2013-03-31 23:15:35 +08:00
Matt Johnston
36526700a9
Don't bother waiting for a ssh-connection service reply - the server
...
will disconnect if it wasn't accepted
2013-03-31 21:38:17 +08:00
Matt Johnston
32294978a3
merge
...
--HG--
branch : kexguess
2013-03-31 00:41:15 +08:00
Matt Johnston
a0e931005b
send out our kexinit packet before blocking to read the SSH version string
2013-03-31 00:40:00 +08:00
Matt Johnston
9c7485331a
Get rid of client/server specific buf_match_algo, use single
...
function with a couple of if statements instead
--HG--
branch : kexguess
2013-03-30 23:55:05 +08:00
Matt Johnston
99d9cf500b
Add kexguess2 behaviour
...
--HG--
branch : kexguess
2013-03-29 23:29:48 +08:00
Matt Johnston
4f62da0f0d
first_kex_packet_follows working, needs tidying
...
--HG--
branch : kexguess
2013-03-29 20:44:13 +08:00
Matt Johnston
b4bcc60657
More changes for KEX and ECDH. Set up hash descriptors, make ECC code work,
...
ses.hash and ses.session_id are now buffers (doesn't compile)
--HG--
branch : ecc
2013-03-29 00:28:09 +08:00
Matt Johnston
5139bd42f6
Set LTC_SOURCE for proper ltm_desc etc
...
--HG--
branch : ecc
2013-03-29 00:26:46 +08:00
Matt Johnston
cf7a271f90
ecc key import function
...
--HG--
branch : ecc
2013-03-27 23:50:52 +08:00
Matt Johnston
74cad1612f
more bits on ecc branch
...
--HG--
branch : ecc
2013-03-27 00:38:03 +08:00
Matt Johnston
73e22c115c
refactor kexdh code a bit, start working on ecdh etc
...
--HG--
branch : ecc
2013-03-26 01:35:22 +08:00
Matt Johnston
9be0d6b53d
Define _GNU_SOURCE for vasprintf
2013-03-24 00:02:20 +08:00
Mike Frysinger
bbf6d5f2f5
rename configure.in -> configure.ac
...
Latest autotools warn now if the file is named configure.in
--HG--
rename : configure.in => configure.ac
2013-03-24 00:00:39 +08:00
Matt Johnston
c4861340e9
Fix a few compile warnings
2013-03-23 23:17:01 +08:00
Matt Johnston
5996c3824c
Add ~. and ~^Z handling to exit/suspend dbclient
2013-03-23 23:16:06 +08:00
Matt Johnston
c172fb3b32
Added signature for changeset 9b80981212fe
2013-03-21 23:35:07 +08:00
Matt Johnston
03a0d11c4d
Added tag DROPBEAR_2013.56 for changeset 1b8b2b9d6e94
2013-03-21 23:33:12 +08:00
Matt Johnston
156e0187bf
Forgot date in CHANGES
2013-03-21 23:29:04 +08:00
Matt Johnston
fcaaa7b4c2
2013.56 changelog
2013-03-21 23:19:06 +08:00
Matt Johnston
2f098325f8
update text about authorized_keys options
2013-03-21 23:11:16 +08:00
Matt Johnston
9dc30fbd2a
Add URL to usage text
2013-03-21 23:10:47 +08:00
Matt Johnston
024d268d8c
Make hmac-sha2-256 and hmac-sha2-512 work
2013-03-21 22:55:12 +08:00
Matt Johnston
eaa737fecd
Make sure "struct timeval" is initialised on OS X to avoid valgrind warnings
2013-03-21 21:23:34 +08:00
Matt Johnston
845ad0be39
Fix "-c none" so that it allows aes during authentication
...
Default for options.h shouldn't allow "none"
2013-03-20 23:52:49 +08:00
Matt Johnston
2259ce4cdf
Fix "-m none" case and ugly typo
2013-03-20 23:13:45 +08:00
Matt Johnston
34f9b2a8f7
Fix "-m none" case where an entire packet fits in a block and can be
...
read by read_packet_init()
2013-03-20 23:13:19 +08:00
Matt Johnston
d37dcc636f
Merge "none" cipher/MAC branch. Also adds sha256 and sha512
2013-03-20 22:41:07 +08:00
Matt Johnston
804a1e69f2
use an empty writebuf rather than a NULL one
2013-03-20 22:31:07 +08:00
Matt Johnston
f7b1222073
document a few more changes
2013-03-20 00:05:19 +08:00
Matt Johnston
4fd4fbc255
Fix memory leak when direct TCP connections time out on connection.
...
Long-standing bug probably stemming from the awkwardly named
delete_channel() versus remove_channel()
2013-03-19 23:54:32 +08:00
Matt Johnston
8393c5f016
Allow specifying server "-p" options with ipv6 bracket notation,
...
patch from Ben Jencks
2013-03-19 20:55:11 +08:00
Matt Johnston
5ff341206e
Android returns NULL for pw_crypt, set it to something else
2013-03-19 20:15:44 +08:00
Matt Johnston
da59afe798
ignore I_PUSH if it isn't defined, for Android from Reimar Döffinger
2013-03-19 20:12:19 +08:00
Matt Johnston
6270ed2f8a
Fix compat basename() to handle paths with no slashes. Thanks to Frank Teo
2013-03-19 20:04:55 +08:00
Matt Johnston
80e77b5e6d
Include /proc/vmstat as another random source
2013-03-19 19:47:29 +08:00
Matt Johnston
58c7d4474c
link to Dropbear webpage
2013-03-19 19:43:47 +08:00
Matt Johnston
3af964304f
Removed tag t:ltc-0.95-db-merge1
2013-03-19 19:26:54 +08:00
Matt Johnston
4289324c4b
Removed tag t:ltc-0.95-orig
2013-03-19 19:26:46 +08:00
Matt Johnston
9f3c817491
fix signedness error in prototype
2013-03-11 23:07:45 +08:00
Matt Johnston
a9cf0ca25f
improve subsystem/sftp documentation, and multi-hop manual formatting
2013-03-03 11:47:41 +08:00
Matt Johnston
72a5612a29
fix typo
2013-02-24 00:16:02 +08:00
Matt Johnston
d7f2153631
DSS_PROTOK is not necessary now that private keys are included
...
in the random generation input
2013-02-23 17:55:46 +08:00
Matt Johnston
26b07ccafc
add loadavg and entropy_avail as sources
2013-02-23 10:27:49 +08:00
Paul Eggleton
1205fa68df
Allow configuring "allow blank password option" at runtime
...
Changes this from a compile-time switch to a command-line option.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com >
2013-02-12 15:52:57 +00:00
Matt Johnston
f5be0fb218
Some changes since 2012.55
2013-02-22 23:54:47 +08:00
Matt Johnston
88fc38c8f0
Document "-m" and "-c"
...
Update URLs with https
2013-02-22 23:53:49 +08:00
Matt Johnston
545de7a3a1
/dev/random blocks on busy servers too.
2012-07-19 21:34:27 +08:00
Matt Johnston
6ba2b2b384
Add a few more files in /proc for Linux
2012-06-30 22:12:28 +08:00
Matt Johnston
d5ccc32b4d
Improve RNG seeding.
...
Try to read from /dev/urandom multiple times, take input from extra sources,
and use /dev/random when generating private keys
2012-06-29 23:19:43 +08:00
Matt Johnston
e719a9ef6f
- Only request "none" cipher after auth has succeeded
...
--HG--
branch : insecure-nocrypto
2012-05-17 20:52:57 +08:00
Matt Johnston
a02d38072a
Add ALLOW_NONE_PASSWORD_AUTH option
...
--HG--
branch : insecure-nocrypto
2012-05-17 08:33:11 +08:00
Matt Johnston
f2cd610750
Merge in "-m"/"-c" code
...
--HG--
branch : insecure-nocrypto
2012-05-17 08:09:19 +08:00
Matt Johnston
db34044c7f
ENABLE_USER_ALGO_LIST should work for the client
2012-05-17 00:26:12 +08:00
Matt Johnston
036edd6206
Add rough support for choosing ciphers/hashes with "-c" or "-m"
2012-05-17 00:12:42 +08:00
Matt Johnston
f40ed8bad7
Update insecure-nocrypto to current head
...
--HG--
branch : insecure-nocrypto
2012-05-16 22:54:51 +08:00
Matt Johnston
41f50057f1
Disable SHA256 and SHA512 by default in options.h
...
--HG--
branch : sha2
2012-05-16 21:56:50 +08:00
Matt Johnston
c62e53807f
- Add hmac-sha2-256 and hmac-sha2-512. Needs debugging, seems to be
...
getting keyed incorrectly
--HG--
branch : sha2
2012-05-10 08:38:37 +08:00
Matt Johnston
10d7a35841
Don't TRACE() the pw_passwd
2012-05-09 22:52:58 +08:00
Matt Johnston
6b4105ffe6
Fix empty password immediate login
2012-05-09 22:51:59 +08:00
Matt Johnston
2713445e91
Return immediate success for blank passwords if allowed
2012-05-09 22:37:04 +08:00
Matt Johnston
1984aabc95
Server shouldn't return "localhost" in response to -R forward connections
...
if that wasn't what the client requested.
2012-05-09 21:09:34 +08:00
Matt Johnston
f4c4ca64a8
Initialise agent_fd to -1 so we don't end up closing stdin (fd 0)
...
if public key authentication is disabled
2012-05-09 20:34:55 +08:00
Matt Johnston
2a02c4084a
- Don't sent SSH_MSG_UNIMPLEMENTED if we don't have ENABLE_SVR_REMOTETCPFWD
...
- Fix build if ENABLE_SVR_REMOTETCPFWD is disabled but ENABLE_SVR_LOCALTCPFWD
is enabled
2012-05-09 20:33:16 +08:00
Matt Johnston
e242b2820c
Ignore -q if SCP_PROGRESS isn't set
2012-04-24 22:05:55 +08:00
Matt Johnston
6467b8d903
Split listening port argument at the rightmost colon, allows binding to
...
specific IPv6 addresses.
From OpenWRT,
https://dev.openwrt.org/browser/trunk/package/dropbear/patches/300-ipv6_addr_port_split.patch
2012-04-12 22:04:16 +08:00
Matt Johnston
3e2b6a1821
Improve comment about sha1-96
2012-04-12 21:57:30 +08:00
Matt Johnston
4d009daaa0
Slight formatting change for ENABLE_CLI_AGENTFWD if statement
2012-04-09 21:29:41 +08:00
Andrey Mazo
d4a14fcb3d
Fixed compilation with unset ENABLE_{SVR,CLI}_AGENTFWD.
...
Got rid of ENABLE_AGENTFWD macro.
2012-03-26 16:17:16 +04:00
Matt Johnston
49b79fa02d
Rename HAVE_FORK to USE_VFORK
...
It makes it a bit more obvious why there's a test there since HAVE_FORK
is the normal case.
2012-04-09 20:35:13 +08:00
Mike Frysinger
c957edbe75
check for fork() and not __uClinux__
2012-04-08 01:50:52 -04:00
Mike Frysinger
33ae2be52e
fix out-of-tree cleaning
...
If we build out of tree and then run `make clean`, we hit an
infinite loop where libtommath tries to enter subdirs that don't
exist and run `make clean`.
2012-04-08 02:06:54 -04:00
Matt Johnston
496c1db974
Added signature for changeset 85f835f2fe0a
2012-02-23 21:46:02 +08:00
Matt Johnston
f381274278
Added tag DROPBEAR_2012.55 for changeset d354464b2aa6
2012-02-23 21:45:42 +08:00
Matt Johnston
398339218e
- Improve CHANGES description
2012-02-23 21:45:36 +08:00
Matt Johnston
4dda424f74
2012.55
2012-02-22 22:12:15 +08:00
Matt Johnston
f403c1f18b
- Fix minor leak
2012-02-22 22:05:24 +08:00
Matt Johnston
ff5d94a7a4
Fix accidentally committed change
2012-02-22 19:33:07 +08:00
Matt Johnston
a15fc009da
- Initialise sa_mask properly
2011-12-04 05:41:46 +08:00
Matt Johnston
6c4390c848
- Merge
2012-02-21 23:00:30 +08:00
Matt Johnston
a3188b44f0
- Make sure sa_mask is set
2012-02-21 22:57:19 +08:00
Matt Johnston
aaa72ddbfc
- Burn buffers to 0x00 instead
2012-02-21 22:56:45 +08:00
Matt Johnston
bcf3a3ab93
Merge
2012-02-10 19:09:52 +08:00
Matt Johnston
5feebd300e
Clear a few buffers when possible
2012-02-10 18:32:18 +08:00
Matt Johnston
aec23e5f79
- Fix use-after-free if multiple command requests were sent. Move
...
the original_command into chansess struct since that makes more sense
2011-12-04 05:31:25 +08:00
Matt Johnston
52a466b8af
- Remove unused variable/code
2011-12-04 05:27:57 +08:00
Matt Johnston
baa32218b0
- Make sure we don't use channel-specific data after it has been freed
...
with a ChanType->closehandler()
2011-12-04 05:27:29 +08:00
Matt Johnston
fd0b05943d
- Fix some format strings in TRACE()s
2011-12-04 05:24:50 +08:00
Matt Johnston
2e0145fb95
- We don't need to test for NULL before free()
2011-12-04 05:23:43 +08:00
Matt Johnston
c894ea4ea2
Put better #if guards around IPv6 socket options for IPV6_TCLASS and
...
IPV6_V6ONLY. From Gustavo Zacarias.
2011-11-10 18:17:00 +08:00
Matt Johnston
88278dee74
Added signature for changeset 3f12086c2ef2
2011-11-08 21:06:29 +08:00
Matt Johnston
d0fadd992f
Added tag DROPBEAR_2011.54 for changeset 3f12086c2ef2
2011-11-08 21:06:01 +08:00
Matt Johnston
eb45ce0e8a
Changelog and version bump for 2011.54
2011-11-08 20:48:15 +08:00
Matt Johnston
194b700592
Fix symlink target created by installdropbearmulti
2011-11-08 20:33:19 +08:00
Matt Johnston
5454c2a7f1
Added signature for changeset aa2f51a6b81d
2011-11-08 00:01:47 +08:00
Matt Johnston
a6568626a5
Use "uint64_t" instead of "u_int64_t" since the Solaris doesn't have the
...
latter
2011-11-07 19:31:53 +08:00
Matt Johnston
59943acffe
Fix crash with -R forwarding
2011-11-06 20:22:34 +08:00
Matt Johnston
d4e7654ed0
Print the server allocated port when using dbclient -R 0:....
...
Patch from Ali Onur Uyar
2011-11-05 23:12:15 +08:00
convert-repo
68b458ece9
update tags
2011-11-03 07:18:37 +00:00
Matt Johnston
1119ad3a2f
Set IPTOS_LOWDELAY for IPv6 too
...
--HG--
extra : convert_revision : bebc84493fc5f4ca914ae8828e6db7204c086ac2
2011-10-26 16:02:06 +00:00
Matt Johnston
29e68e9d79
- Add ALLOW_BLANK_PASSWORD option
...
- Don't reject blank-password logins via public key
--HG--
extra : convert_revision : 2d4bb3ecb013a7be47a7b470fc6b23e653a43dfb
2011-10-26 15:49:47 +00:00
Matt Johnston
c1fe2ec5ae
Try bind IPV6_V6ONLY
...
--HG--
extra : convert_revision : cfe965c1503984cafaa98b684269db99bec310eb
2011-10-20 13:45:43 +00:00
Matt Johnston
81cacd9f15
list.c also has no trailing newline
...
--HG--
extra : convert_revision : cfe8e94b86e98f79b18abebbcd49c6eb5908c74c
2011-07-05 12:52:06 +00:00
Matt Johnston
6def0ab5f1
Fix lost ending newline
...
--HG--
extra : convert_revision : eacbbecc4f4aad52a29b013beed83b7d54a98796
2011-07-05 12:50:15 +00:00
Matt Johnston
d20627585a
Hopefully fix -lcrypt problem
...
--HG--
extra : convert_revision : 94d41df148dba424a62b442aebdb5cf0db11449a
2011-06-30 14:34:32 +00:00
Matt Johnston
2bcb60fe56
Fix case where "-K 1" would cause a SSH_MSG_IGNORE packet to be sent
...
with the wrong encryption key ("bad packet length" symptom) while
key exchange was happening.
--HG--
extra : convert_revision : f7d27ec094c4aba2a4289c523c722fcb3c3f58ca
2011-06-07 11:55:44 +00:00
Matt Johnston
0f83379dc0
Mention that the value is in seconds
...
--HG--
extra : convert_revision : fcdafc69f831ab356b34815958114cc3d75d23bb
2011-06-07 11:08:47 +00:00
Matt Johnston
ca6d5fd05c
Clean up leaked FD if getnameinfo fails. From Klocwork
...
--HG--
extra : convert_revision : 712881a0b28aa45804bed6803fb72a4a35714e41
2011-04-07 13:52:43 +00:00
Matt Johnston
b9e21e2367
Fix crash when remote forwarding was requested
...
--HG--
extra : convert_revision : 5c0a794976692a54ec36111291179020e2ae6c1e
2011-04-07 13:39:10 +00:00
Matt Johnston
665b768cef
Fix leak found by Klocwork
...
--HG--
extra : convert_revision : 51ce088e100e9ea150efc6bf3d021f019a46b2f5
2011-04-07 13:38:27 +00:00
Matt Johnston
b272b967e2
Properly fix the bug found years ago by Klocwork, refound again.
...
--HG--
extra : convert_revision : 65b95facde07c748c56e0bfa25c801397dc16a99
2011-04-07 13:33:26 +00:00
Matt Johnston
22c16a8b71
Clean up fd on failure. Found by Klocwork
...
--HG--
extra : convert_revision : 4b999175c8e91ee3ddf283b17525999499a12849
2011-04-07 13:25:00 +00:00
Matt Johnston
f924aa18f2
Define LTC_NO_FILE to avoid hmac_file() etc
...
--HG--
extra : convert_revision : b918fd450c1572ce055a6a1fe8c161a495ddec34
2011-04-07 13:24:41 +00:00
Matt Johnston
72c446f160
Fix FD leak if connect() fails, found by Klocwork
...
--HG--
extra : convert_revision : 4f7dec450bb69aee8d7789b8ab10311b1d1655bb
2011-04-07 13:05:10 +00:00
Matt Johnston
2028b1b517
Add noreturn and format attribute hints for some functions.
...
--HG--
extra : convert_revision : 6cc8735d01f0360b918edc26be05681725c0022a
2011-04-07 12:59:18 +00:00
Matt Johnston
72a82cc0ac
Fix memory leak found by Klocwork
...
--HG--
extra : convert_revision : 6f1e5e6dd6462f1c35a6bfd601a0f5f8b99410d6
2011-04-07 12:34:44 +00:00
Matt Johnston
eef35883b7
Tidy error handling and get rid of some commented out code
...
--HG--
extra : convert_revision : beb6fc766123135d5ae455ff7ad6b48d85386f62
2011-04-07 12:30:20 +00:00
Matt Johnston
8028e07815
Change comparison to be more paranoid (and perhaps avoid Klocwork false
...
positive). Does not change behaviour.
--HG--
extra : convert_revision : 11d5ca4bf2f4197ed2d14b6772a351bcb59f775e
2011-04-07 11:18:35 +00:00
Matt Johnston
3fc6569d46
Fix check of wrong variable found by Klocwork
...
--HG--
extra : convert_revision : 6f3b074e83bb808019f49c5aca3451b70f9f1e8f
2011-04-07 11:14:22 +00:00
Matt Johnston
2303d0fd09
Avoid segfault when handling childpid race
...
--HG--
extra : convert_revision : 8845727a7e2b096015dbb76d8f3df13c9acee7da
2011-03-31 14:42:11 +00:00
Matt Johnston
9a007c30d4
Use mp_init_size() to avoid some mp_grow()s
...
--HG--
extra : convert_revision : 94b7dd79a8e970e9641d4e655b3db48190ac2531
2011-03-18 14:31:07 +00:00
Matt Johnston
8a545a0d04
Update changelog for 0.53.1
...
--HG--
extra : convert_revision : c7f6c45c46a2f8e2394756c68ae825d6e4dc7489
2011-03-02 13:23:27 +00:00
Matt Johnston
0993e44b4f
merge of '8a608f0ed5e4b491dba4bf330e560636ec7376fd'
...
and 'b31879a384d3bf8cbcbe2ed731d7d79d49799b1d'
--HG--
extra : convert_revision : dfa0557e6070859d23ff096789f339e51a870177
2011-02-28 13:51:34 +00:00
Matt Johnston
d634b502cf
- Don't allow setting memLevel since that doesn't work properly
...
- Better handling of the case where compressing makes the data
larger (possibly only happens when memLevel is adjusted, but better
to be safe)
--HG--
extra : convert_revision : b31879a384d3bf8cbcbe2ed731d7d79d49799b1d
2011-02-28 13:51:27 +00:00
Matt Johnston
53fc7eaf03
Compile fix for when both client and server agent forwarding is disabled
...
--HG--
extra : convert_revision : 8a608f0ed5e4b491dba4bf330e560636ec7376fd
2011-02-28 13:39:18 +00:00
Matt Johnston
3c42c5407c
Refer to RFCs rather than drafts, update some section references
...
--HG--
extra : convert_revision : b5c5c88e702f427b9d5e8c592e2b7e1bda204ff3
2011-02-27 13:57:32 +00:00
Matt Johnston
9d9a8ff735
- Fix DROPBEAR_PRNGD_SOCKET since it doesn't need to call connect()
...
any more
--HG--
extra : convert_revision : 535f2029a34cba3d86eb8ce104d57c910c89c4a4
2011-02-27 13:12:17 +00:00
Matt Johnston
abed230cdb
Updates changelog. Mention diffie-hellman-group14-sha1 in 0.53
...
release, -lcrypt order for 0.53.1
--HG--
extra : convert_revision : 2fa3bd3d29fe694a50f929a12ca249931c92311d
2011-02-25 12:16:14 +00:00
Matt Johnston
e9879cd07b
-lcrypt needs to be before object files when static linking
...
--HG--
extra : convert_revision : 8ecc9a039f16d8492d2b7f64e8602d3f6302e212
2011-02-25 12:14:33 +00:00
Matt Johnston
84c51f933c
- Set debian version to 0.53
...
--HG--
extra : convert_revision : bddea10d0d68b0beafbd98d694df462961e489e6
2011-02-24 14:21:36 +00:00
Matt Johnston
977c43fffb
Changelog for 0.53, bump version
...
--HG--
extra : convert_revision : 5369d8c2cbcbc07a86fce6a1b66ebd4979866a2d
2011-02-24 14:19:36 +00:00
Matt Johnston
f99a19b6ca
Mention -L/-R listenaddress argument in manpage
...
--HG--
extra : convert_revision : 2728be15a280f7b0d48741d033381c0ebf2281f5
2011-02-24 14:18:13 +00:00
Matt Johnston
5a7a88b843
It happened to sony
...
--HG--
extra : convert_revision : c2d5690ca9ed85c7d75dd9cc2c150de50503aa3b
2011-02-24 12:45:17 +00:00
Matt Johnston
0ffdf2bba9
Add diffie-hellman-group14-sha1 KEX method
...
--HG--
extra : convert_revision : 5b9c394ad43745e48c42d671cefac7a5c346082f
2011-02-24 12:42:42 +00:00
Matt Johnston
38ed870ffe
Improve capitalisation for all logged strings
...
--HG--
extra : convert_revision : 997e53cec7a9efb7413ac6e17b6be60a5597bd2e
2011-02-23 15:50:30 +00:00
Matt Johnston
1e4ed404c5
merge of '8849ec659cb45b924158cc3322390a1d3d48daef'
...
and 'a46ca9204de0df58d8701df0d79b6b8ec601b9ce'
--HG--
extra : convert_revision : 00e4e5abea55474624e2ea0ea09f6fbc6c9e4c89
2011-02-23 15:10:31 +00:00
Matt Johnston
642920585f
Don't reset last_packet_time when we're transmitting SSH_MSG_IGNORE packets
...
(from keepalives)
--HG--
extra : convert_revision : a46ca9204de0df58d8701df0d79b6b8ec601b9ce
2011-02-23 15:10:28 +00:00
Matt Johnston
af07eb115a
remove unused variable
...
--HG--
extra : convert_revision : 8849ec659cb45b924158cc3322390a1d3d48daef
2010-07-21 14:07:13 +00:00
Matt Johnston
66371f9920
merge of '4b90e96a8a8afcc9feafc59cb47592a4a6d1cc30'
...
and '94427244d30e268c74ddade212e31ba01f6f0950'
--HG--
extra : convert_revision : 09d7a0d8401b94db3975c71f5bcafde428cb34d7
2010-07-21 13:53:29 +00:00
Matt Johnston
aabe0677c0
- Update fake-rfc2553.{c,h} from OpenSSH 5.5p1
...
--HG--
extra : convert_revision : 4b90e96a8a8afcc9feafc59cb47592a4a6d1cc30
2010-07-21 13:53:23 +00:00
Matt Johnston
0fa65ebd4d
Fix bug in primality testing, see
...
http://bugs.gentoo.org/show_bug.cgi?id=328383
http://bugs.gentoo.org/show_bug.cgi?id=328409
https://bugzilla.redhat.com/show_bug.cgi?id=615088
Exact effects of the bug are uncertain.
--HG--
extra : convert_revision : 94427244d30e268c74ddade212e31ba01f6f0950
2010-07-21 13:33:07 +00:00
Matt Johnston
27fddd2c35
Work properly again with bundled libtom*. autoconf is a hassle.
...
--HG--
extra : convert_revision : 4077fc3332bd7c965aadbb05b02eba6d00fa9621
2010-07-21 13:27:44 +00:00
Matt Johnston
fced1113d3
Rename rsa_key to dropbear_rsa_key (and same for dss too) so
...
we don't conflict with libtomcrypt.
--HG--
extra : convert_revision : 77961344ec415d73d48fdc7b1ebead3099c13394
2010-07-21 12:55:25 +00:00
Matt Johnston
4d050c34cb
Use system libtomcrypt/libtommath if available. Doesn't currently
...
build due to clash in rsa_key identifier.
--HG--
extra : convert_revision : c9a4726d1c89e17ee8e96801d1aaa8049216aae1
2010-07-21 12:38:46 +00:00
Matt Johnston
a8c28714cd
Comment public/private parts
...
--HG--
extra : convert_revision : 914cbb822f488fa5d17affdad01fcc7dae6006b1
2010-07-20 13:54:20 +00:00
Matt Johnston
eabfd803c9
merge of '0adbc6745a5ada0b6780b0683209f5b26b1a335d'
...
and 'a014a978f213e6ff424e7d10794ae426375f3191'
--HG--
extra : convert_revision : eecc64377b2b55ba1d9e77855f4323cdc9f8e1c6
2010-03-21 06:07:22 +00:00
Matt Johnston
07b764ead6
- make structure static
...
--HG--
extra : convert_revision : 0adbc6745a5ada0b6780b0683209f5b26b1a335d
2010-03-21 06:06:42 +00:00
Matt Johnston
8bad5d61fd
don't #include "utmp.h"
...
--HG--
extra : convert_revision : a014a978f213e6ff424e7d10794ae426375f3191
2010-03-04 14:50:19 +00:00
Matt Johnston
9f42a75ef6
- fixes for listenaddr
...
--HG--
extra : convert_revision : 9eebe96bb7c26c4c09c77a2e89a67a7332abcd49
2010-02-27 12:15:27 +00:00
Matt Johnston
ddbfdb0799
merge of '48fdaa8706d1acda35e9d564adc9a1fbc96c18c8'
...
and '658fd03abd21e0da7c4c89b9fff9dc693c72daae'
--HG--
extra : convert_revision : 8064882fcaa13d586651021462b9014b74332107
2010-02-27 11:53:18 +00:00
Matt Johnston
3b07844548
- tcpfwd bindaddr support against trunk. needs merging.
...
--HG--
extra : convert_revision : 658fd03abd21e0da7c4c89b9fff9dc693c72daae
2010-02-27 11:51:19 +00:00
Matt Johnston
85288d7b61
- Progress for allowing specifying a listenaddr for tcp forwards
...
--HG--
extra : convert_revision : 48fdaa8706d1acda35e9d564adc9a1fbc96c18c8
2010-02-24 16:13:15 +00:00
Matt Johnston
8174a2f27b
Mention -p's address argument in manpage synopsis
...
--HG--
extra : convert_revision : abef8fc8584889de6fd92ceaec28d094419462e0
2009-09-13 15:31:29 +00:00
Matt Johnston
e3ca0513a0
- Disable compression for non-final multihops
...
--HG--
extra : convert_revision : c507a2aacb9e0db4c0266891b8915c614e32857e
2009-09-11 14:02:04 +00:00
Matt Johnston
95a01f9002
Remove extraneous semicolon
...
--HG--
extra : convert_revision : ea33f9576dd0ff344d6f1d150a01265470f56131
2009-09-10 11:12:31 +00:00
Matt Johnston
52551cb771
- Test for pam_fail_delay() function in configure
...
- Recognise "username:" as a PAM prompt
- Add some randomness to the auth-failure delay
- Fix wrongly committed options.h/debug.h
--HG--
extra : convert_revision : f242f0e66fb0ea5d3b374995d2f548d37dd8f3a3
2009-09-08 14:53:53 +00:00
Matt Johnston
4dfb834f7c
Move remotehost into svr_ses structure since we can't look it up
...
once we've forked (the connection socket has been closed).
Fixes inetd mode.
--HG--
extra : convert_revision : 7d5d152ec84fb11a188966c1400d213c908cc511
2009-09-05 11:40:00 +00:00
Matt Johnston
c35e38c5e9
- Remove options that dbclient won't know about
...
--HG--
extra : convert_revision : 2d401308f73352e92d3c662d33920b24fc12bfa1
2009-09-02 15:17:14 +00:00
Matt Johnston
48734bb3b5
- scp progressbar needs strlcat(), so add compat.o
...
--HG--
extra : convert_revision : 0743230bac5ae28d1b773fb4d89c4d88b6a9a0c1
2009-09-02 15:05:14 +00:00
Matt Johnston
4e9f22c602
- Set $SSH_CONNECTION
...
- Document environment variables in the manpage
--HG--
extra : convert_revision : 1a93c6112f00730f5cd21a853d3bd5ca8079f725
2009-09-02 14:47:12 +00:00
Matt Johnston
f88bed7a30
Rearrange getaddrstring() etc
...
--HG--
extra : convert_revision : 8a18c4a60aeaec085923d13d98fa0f93c506ceba
2009-09-01 16:38:26 +00:00
Matt Johnston
ccd02552dd
- set $SSH_TTY environment variable
...
- remove extraneous (crash causing) printf()
--HG--
extra : convert_revision : cf4b256bf6785be384eca32f7b229b89e58539eb
2009-08-31 15:25:39 +00:00
Matt Johnston
4b1f9e50f2
- set $SSH_ORIGINAL_COMMAND if a command is forced, and log it
...
if LOG_COMMANDS is set
--HG--
extra : convert_revision : d9e8aa0ecbe7607285fa4f96f0d6f9b1523719d8
2009-08-26 14:09:22 +00:00
Matt Johnston
0b50010436
merge of '0d7a9127af37d6e74efc5ec031a7001ce63d334d'
...
and 'e35cd321b6d4fab6ad854827249f610da3bb6878'
--HG--
extra : convert_revision : a0fef159e70c5d1b24d10764066290362965e879
2009-08-25 11:11:35 +00:00
Matt Johnston
d773103730
- Move netcat struct to where it stays in scope.
...
--HG--
extra : convert_revision : e35cd321b6d4fab6ad854827249f610da3bb6878
2009-08-25 05:24:18 +00:00
Matt Johnston
c7e3eb9b3f
- Don't print warning if SSH_AUTH_SOCK is unset
...
--HG--
extra : convert_revision : 0d7a9127af37d6e74efc5ec031a7001ce63d334d
2009-08-13 14:57:27 +00:00
Matt Johnston
f15feb2ac6
- Handle failure to connect to forwarding socket
...
--HG--
extra : convert_revision : 0cc1ae25ba35931d6ddd9e989e875ef975616be6
2009-07-31 15:51:33 +00:00
Matt Johnston
2f1ed9a34b
propagate from branch 'au.asn.ucc.matt.dropbear.cli-agent' (head eb0dae4b62e243ba37a897beb7ba81a4f637d8b3)
...
to branch 'au.asn.ucc.matt.dropbear' (head ff0abce7b29e61630e3b09e5fc5820ae6e192808)
--HG--
extra : convert_revision : 49e078caffa785d121cefaf05b64fecc71fecd63
2009-07-30 15:15:12 +00:00
Matt Johnston
bb8234c2f1
Agent forwarding works
...
--HG--
branch : agent-client
extra : convert_revision : eb0dae4b62e243ba37a897beb7ba81a4f637d8b3
2009-07-30 15:14:33 +00:00
Matt Johnston
bacd2a8c79
propagate from branch 'au.asn.ucc.matt.dropbear' (head bbe4e11695a7b22bd89a722600eb4a4020b6fdf3)
...
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 276cf5e82276b6c879d246ba64739ec6868f5150)
--HG--
branch : agent-client
extra : convert_revision : d23b0c21649eb2f0b2d13dbf33c0a9faca25628a
2009-07-29 02:58:33 +00:00
Matt Johnston
103a829eac
Use /usr/bin/X11/xauth default path instead
...
--HG--
extra : convert_revision : ff0abce7b29e61630e3b09e5fc5820ae6e192808
2009-07-28 16:16:14 +00:00
Matt Johnston
0dcecfa526
Turn off DEBUG_TRACE accidentally committed
...
--HG--
extra : convert_revision : bbe4e11695a7b22bd89a722600eb4a4020b6fdf3
2009-07-26 16:14:50 +00:00
Matt Johnston
bcd541d65f
- Payload length doesn't include macsize.
...
--HG--
extra : convert_revision : 98ac17a573ab350cbd6e358b3943237d2ad5c9cf
2009-07-26 16:11:27 +00:00
Matt Johnston
3608775306
- Add option to change zlib windowBits/memLevel
...
--HG--
extra : convert_revision : 5fc51ba0b8f165426c78f8d32162e5ccb51e524f
2009-07-26 15:39:47 +00:00
Matt Johnston
8181d41bb5
Disable Blowfish by default, it has inefficient key memory use
...
--HG--
extra : convert_revision : a37b8ae5fb524be221dbdfd71b4f35eb6a48565c
2009-07-24 13:49:07 +00:00
Matt Johnston
a996e61a2e
- For uclinux, only cleanup on exit for the main process. This avoids
...
trashing the state when a failing child exits.
--HG--
extra : convert_revision : 5d029ce4602908c3becf0035cf2b7e62816959bc
2009-07-09 16:01:30 +00:00
Matt Johnston
8a19a049b2
- Client auth using an agent's key works. Still need to implement client
...
agent forwarding.
--HG--
branch : agent-client
extra : convert_revision : 276cf5e82276b6c879d246ba64739ec6868f5150
2009-07-06 14:02:45 +00:00
Matt Johnston
c742137dc8
New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList
...
--HG--
branch : agent-client
extra : convert_revision : 5465e639cc3f5ee0c6c55f0de6e7b6d5a8769da3
2009-07-06 12:59:13 +00:00
Matt Johnston
9dc9aff016
Talking to the agent works now. Can't interpret the pubkeys.
...
--HG--
branch : agent-client
extra : convert_revision : 357373f28e889108178b8627480fd24bc26dcbd7
2009-07-01 06:27:27 +00:00
Matt Johnston
c6582dbe37
Make it compile, update for changes in channel structure.
...
--HG--
branch : agent-client
extra : convert_revision : 84676a98a0848224078a716b1292744a34e9d80c
2009-07-01 04:53:17 +00:00
Matt Johnston
709a3e75cf
propagate from branch 'au.asn.ucc.matt.dropbear' (head 899a8851a5edf840b2f7925bcc26ffe99dcac54d)
...
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 6bbab8364de17bd9ecb1dee5ffb796e48c0380d2)
--HG--
branch : agent-client
extra : convert_revision : d39a49137cc36b624768d4e79e564141dde8d355
2009-07-01 04:16:32 +00:00
Matt Johnston
cb82c6e3e0
- Print banner to stderr. Probably the right way, and avoids
...
bad interactions with multihop or netcat-alike mode.
--HG--
extra : convert_revision : 899a8851a5edf840b2f7925bcc26ffe99dcac54d
2009-06-16 15:22:33 +00:00
Matt Johnston
d6441f4397
- Make -i and -W pass through multihop arguments
...
--HG--
extra : convert_revision : 70c64073c9ec07b4dfb54ee60e39cec2bd8c6910
2009-06-12 14:58:43 +00:00
Matt Johnston
08893f03a5
- Don't memcpy() in place with void_encrypt
...
--HG--
extra : convert_revision : d123343d78df1b5998d8dd2674fd83fd682ce0c0
2009-06-09 13:18:52 +00:00
Matt Johnston
4be3826dd5
Wrap proxycmd function in ENABLE_CLI_PROXYCMD #ifdef
...
(commit the right file this time)
--HG--
extra : convert_revision : d86e846566d01b739b51fa2ecdb8f62006e38dbd
2009-06-08 14:53:29 +00:00
Matt Johnston
a21cf67a6c
disapproval of revision '6d6160b277bfc7c2db6888a2ac91ac618cef6de3'
...
--HG--
extra : convert_revision : 64088637337d7b6024a9b48b9a616eecf8621cf6
2009-06-08 14:51:22 +00:00
Matt Johnston
fe03c39241
Wrap proxycmd function in ENABLE_CLI_PROXYCMD #ifdef
...
--HG--
extra : convert_revision : 6d6160b277bfc7c2db6888a2ac91ac618cef6de3
2009-06-08 14:44:23 +00:00
Matt Johnston
6e78eca7c8
use memset() rather than bzero()
...
--HG--
extra : convert_revision : d44b31a46d0fdfcc92bf4f16e7c49fd49eb40aa1
2009-06-08 14:40:29 +00:00
Matt Johnston
5d3dae1492
merge of '0a8dfaa3e5365a2004db2b55895e11f65b5cefcc'
...
and 'ef3b41f37e9f4dd45358bc40f9559ee23f71c284'
--HG--
extra : convert_revision : 36f4aee4c1a6a38c7904e2482102d8555ff45fa0
2009-03-17 22:30:39 +00:00
Matt Johnston
061565865c
- Add the signal pipe to maxfd
...
--HG--
extra : convert_revision : 0a8dfaa3e5365a2004db2b55895e11f65b5cefcc
2009-03-17 22:30:25 +00:00
Matt Johnston
b639e18d39
- Turn DROPBEAR_SMALL_CODE off by default
...
--HG--
extra : convert_revision : ef3b41f37e9f4dd45358bc40f9559ee23f71c284
2009-03-03 13:42:54 +00:00
Matt Johnston
2b54d3397c
Remove extraneous debugging
...
--HG--
extra : convert_revision : 58d53a027555e98d6d274b4659d38211eea7ad11
2009-03-03 13:20:00 +00:00
Matt Johnston
ff763e4005
- Get rid of decryptreadbuf, just decrypt in-place with readbuf
...
- Share make_mac function for both packet creation and validation
- Split recv/trans parts of key_context into their own structures
--HG--
extra : convert_revision : 043bc598c76ed43625987e6937e32238f7ed6240
2009-03-01 16:15:57 +00:00
Matt Johnston
8e72bbaa9d
Encrypt in-place, avoid an extra malloc
...
--HG--
extra : convert_revision : 981e3e4b44e6fdc8537775518e898a33e76a38db
2009-03-01 14:38:25 +00:00
Matt Johnston
4b37932ba1
merge of 'e1c100e6366c5d607af08f4abdbb0f4281df4fa9'
...
and 'fe8161b0698c9816b98f79e3cab2b9d59f2be71b'
--HG--
extra : convert_revision : 23e1a99e40fc3baad5216b2a7e7318f8243f86a3
2009-02-26 13:21:14 +00:00
Matt Johnston
d1bfb6bfb7
disapproval of revision 'a101cbd046507cf723e6362a49196dbd4b924042'
...
--HG--
extra : convert_revision : e1c100e6366c5d607af08f4abdbb0f4281df4fa9
2009-02-26 13:20:53 +00:00
Matt Johnston
35f3d2ff90
merge of 'a101cbd046507cf723e6362a49196dbd4b924042'
...
and 'c8e1b84cfe874887ad7df0dd95a00de46dbc0136'
--HG--
extra : convert_revision : fe8161b0698c9816b98f79e3cab2b9d59f2be71b
2009-02-26 12:18:34 +00:00
Matt Johnston
a60cb7dbaa
- Try to write out as much as we can
...
--HG--
extra : convert_revision : a101cbd046507cf723e6362a49196dbd4b924042
2009-02-26 12:18:11 +00:00
Matt Johnston
cca4e1a080
- Don't be dumb and encrypt/decrypt in a while() loop - why did I do this??
...
--HG--
extra : convert_revision : c8e1b84cfe874887ad7df0dd95a00de46dbc0136
2009-02-25 14:04:02 +00:00
Matt Johnston
c04cc62ebf
- Allow building with neither server nor client specified
...
--HG--
extra : convert_revision : d9a8b717bf65021efa4c61c34faf24d050d95da4
2008-11-18 12:53:39 +00:00
Matt Johnston
8158e952b9
- Use the right variable notation
...
--HG--
extra : convert_revision : 8d1eddd800cc6c405f2b3eaad148433c0d6bc0c8
2008-11-18 12:53:02 +00:00
Matt Johnston
b717efb577
Only use -lcrypt for Dropbear server binary
...
--HG--
extra : convert_revision : 7d3d93a5f58d60933277ab6f2595d662e5fb1815
2008-11-17 14:04:14 +00:00
Matt Johnston
3dbc707820
- Add a date for the release
...
--HG--
extra : convert_revision : f2c4b1b1304914efad934b368d3f6e4e8d91de99
2008-11-12 13:13:00 +00:00
Matt Johnston
5a2dde814d
PAM shouldn't be on by default
...
--HG--
extra : convert_revision : 44714b1a34bf7833e6f2e4fd1c81ceaacccb15bd
2008-11-11 14:15:54 +00:00
Matt Johnston
4fc5a52850
- Bump to 0.52
...
- Clarify that hosts are resolved on the remote end for multihop
--HG--
extra : convert_revision : acde944b3ea0b8f673c276d2921c6bb3ede8ddde
2008-11-11 14:08:48 +00:00
Matt Johnston
d005aa139e
- Document idle_timeout
...
--HG--
extra : convert_revision : da3bab4cab817b6a9ecede779e0524c38c9fb760
2008-11-11 13:51:55 +00:00
Matt Johnston
5efdd391eb
Mention DSS and DSA being the same thing
...
--HG--
extra : convert_revision : 562d196de58e606c7a95671e9e7b3d1cc0f9752d
2008-11-09 10:59:19 +00:00
Matt Johnston
adc4d0194f
Idle timeout patch from Farrell Aultman. Needs testing, unsure if server
...
code works
--HG--
extra : convert_revision : ff66e05ae040561110af70114bf83f11ed528f05
2008-11-07 14:11:06 +00:00
Matt Johnston
1912439526
Update nocrypto branch to current head
...
--HG--
branch : insecure-nocrypto
extra : convert_revision : 9e5e6e33be005d27cd5b3270c574edc45b5c2893
2008-11-06 13:33:06 +00:00
Matt Johnston
800810a181
propagate from branch 'au.asn.ucc.matt.dropbear' (head cdcc3c729e29544e8b98a408e2dc60e4483dfd2a)
...
to branch 'au.asn.ucc.matt.dropbear.insecure-nocrypto' (head 0ca38a1cf349f7426ac9de34ebe4c3e3735effab)
--HG--
branch : insecure-nocrypto
extra : convert_revision : dbb093e087a68abf2e54ab0b711af70771ddb29d
2008-11-06 13:16:55 +00:00
Matt Johnston
e80f8e8c09
- Update manuals, include section on authorized_keys
...
- Change default PATH to /usr/bin:/bin
- Mention DEBUG_TRACE in -v help text
--HG--
extra : convert_revision : cdcc3c729e29544e8b98a408e2dc60e4483dfd2a
2008-11-05 14:14:40 +00:00
Matt Johnston
1fdfa2ecfd
LICENSE - Update copyright to 2008
...
cli-runopts.c - mention that -v is for DEBUG_TRACE, add multihop syntax
dbclient.1 - document some new features
--HG--
extra : convert_revision : 04ca01e638904920e0e16fea06b55c52a9b9b81d
2008-11-05 13:53:14 +00:00
Matt Johnston
51dcfc06dc
- Set a default path, since bash won't export one otherwise (though it will set
...
one, leading to mysterious problems)
- Rearrange some options
--HG--
extra : convert_revision : 6e81becf6e96479e10d9244186a900fab7079bf8
2008-11-05 13:30:23 +00:00
Matt Johnston
8edc0c2afc
Give a umask argument to open() in loginrec
...
--HG--
extra : convert_revision : e8ae11ccf89b916d47ff09fce1d7b2ccb966607e
2008-11-05 13:14:38 +00:00
Matt Johnston
ebc3a3ac74
- use vfork()/_exit() for uclinux
...
--HG--
extra : convert_revision : 1f9658a860290e6664fa9db84b9bb5b8673a1b1f
2008-11-02 13:34:02 +00:00
Matt Johnston
5cd6995fb5
Report errors if a remote request fails
...
--HG--
extra : convert_revision : ed1584aacf189b8f8ddee813b98342fa8bb38022
2008-11-02 12:25:08 +00:00
Matt Johnston
ed79abed76
Don't use // style comments
...
--HG--
extra : convert_revision : c92c7b4fef739b505d9842b45a393e1089097e3b
2008-11-02 12:01:39 +00:00
Matt Johnston
c2bd79131a
- Get rid of blowfish and twofish CTR since they weren't likely
...
to be that useful
--HG--
extra : convert_revision : e16bd265bb6e8093b3488993dffc86662a2a7a62
2008-09-29 14:30:47 +00:00
Matt Johnston
511f6555c9
- Add Counter Mode support
...
--HG--
extra : convert_revision : 5225162bdf32d70b58b6d3ae375a290326c59f3a
2008-09-29 13:53:31 +00:00
Matt Johnston
049fcf1ac5
Add support for zlib@openssh.com delayed compression.
...
Are still advertising 'zlib' for the server, need to allow
delayed-only as an option
--HG--
extra : convert_revision : 319df675cc3c9b35a10b7d8357c94f33fdab1a46
2008-09-29 02:23:04 +00:00
Matt Johnston
e674c73ee6
propagate from branch 'au.asn.ucc.matt.dropbear' (head 4fb35083f0f46ea667e7043e7d4314aecd3df46c)
...
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 833d0adef6cdbf43ea75283524c665e70b0ee1ee)
--HG--
branch : agent-client
extra : convert_revision : 6bbab8364de17bd9ecb1dee5ffb796e48c0380d2
2008-09-23 16:05:04 +00:00
Matt Johnston
90f8c1fd51
Split options.h out into sysoptions.h for options that aren't usually
...
user-changed
--HG--
extra : convert_revision : 4fb35083f0f46ea667e7043e7d4314aecd3df46c
2008-09-23 16:02:51 +00:00
Matt Johnston
729aa017d3
merge of '6fd2597077a4e2421bf45388e058d15606f6dd74'
...
and 'c7b916e6c522f16f06fe1bd52815ba13aa88b90b'
--HG--
extra : convert_revision : dd53ba272725a189d596cf96532ea165c847265c
2008-09-23 15:57:32 +00:00
Matt Johnston
efe45cddbe
- Enable -s for specifying a subsystem (such as sftp)
...
--HG--
extra : convert_revision : c7b916e6c522f16f06fe1bd52815ba13aa88b90b
2008-09-23 15:57:26 +00:00
Matt Johnston
6fe6393acb
propagate from branch 'au.asn.ucc.matt.dropbear.pubkey-options' (head 537a6ebebb46424b967ffe787f0f8560e5f447e8)
...
to branch 'au.asn.ucc.matt.dropbear' (head 10b2f286b9886364db39dfbb4f8f46e49e345d87)
--HG--
extra : convert_revision : 6fd2597077a4e2421bf45388e058d15606f6dd74
2008-09-23 13:16:22 +00:00
Matt Johnston
b98d13effb
Don't send anything in response to a SSH_MSG_CHANNEL_REQUEST if we have
...
already sent a SSH_MSG_CHANNEL_CLOSE. This fixes a bug triggered by more
recent versions of putty with tcp fowarding and window adjustment request
messages.
--HG--
extra : convert_revision : 10b2f286b9886364db39dfbb4f8f46e49e345d87
2008-09-23 12:03:01 +00:00
Matt Johnston
299d26dab7
- Work around rsync and scp parsing and modifying the user@host argument,
...
which break's dbclient's multihop syntax
--HG--
extra : convert_revision : cf704125a4785278aeb79f62bf025638e1b28e4c
2008-09-22 15:47:35 +00:00
Matt Johnston
643626d546
Replace calls to strtoul() with a helper m_str_to_uint()
...
--HG--
extra : convert_revision : 1f8643c5ba7fe789c120b503c396281ac45f9730
2008-09-22 14:13:44 +00:00
Matt Johnston
e1a8bf0240
Remove an unused variable
...
--HG--
extra : convert_revision : 63f95bd7b4b15b61cd13cdcc86cdeef2681ce6e7
2008-09-22 14:13:14 +00:00
Matt Johnston
d54f38caf2
- Improve DNS failure message to include lookup host
...
--HG--
extra : convert_revision : c0555e457f4da6b618b87f2cf4bf5c4c4d0f9e28
2008-09-18 16:34:18 +00:00
Matt Johnston
d981ff2c8d
- Allow specifying a port with host/port.
...
- Rearrange multihop hostname parsing
--HG--
extra : convert_revision : 0594a6cbca9edc235c325e02dc927060c4324741
2008-09-18 16:01:59 +00:00
Matt Johnston
bece6ddcc2
Print "Login for user@host" for keyboard interactive, since it probably
...
isn't clear from the remote host's prompt
--HG--
extra : convert_revision : cabaf758875b341354e57def5bad3581a7da56e3
2008-09-18 16:01:02 +00:00
Matt Johnston
f4aacaa74c
Add multihop 'onion-forwarding' mode. Needs refinement, works.
...
--HG--
extra : convert_revision : 877947ce24297781438a75e7e9c64ba86f0dce93
2008-09-18 14:47:02 +00:00
Matt Johnston
66e2f59c7b
propagate from branch 'au.asn.ucc.matt.dropbear.dbclient-netcat-alike' (head b02ba6628cf2095017c60d202ac630f231e6b553)
...
to branch 'au.asn.ucc.matt.dropbear' (head 636506b73e973b004cc058b07e6f36a25ff902f8)
--HG--
extra : convert_revision : eb8e95a8227df7802d79007d4dd89098759fa76b
2008-09-17 14:49:12 +00:00
Matt Johnston
af00c78e21
Rework netcat-alike to be a proper mode, with -B argument.
...
--HG--
branch : dbclient-netcat-alike
extra : convert_revision : b02ba6628cf2095017c60d202ac630f231e6b553
2008-09-17 14:36:49 +00:00
Matt Johnston
c7bd9ccd85
Don't capture stderr from spawned processes in proxycommand mode
...
--HG--
extra : convert_revision : 636506b73e973b004cc058b07e6f36a25ff902f8
2008-09-17 14:35:36 +00:00
Matt Johnston
e44aa503f0
- "-J 'nc localhost 22'" kind of works, needs fixing hostkeys, ptys etc.
...
--HG--
extra : convert_revision : 45069dd007ebf414330e0a7abf4fb7e0727049c3
2008-09-15 14:40:30 +00:00
Matt Johnston
12929e8cf0
- Add run_shell_command() function to run a "sh -c" command, handling
...
lots of the work that exechild did (and can be shared by client -J option)
--HG--
extra : convert_revision : a15dfd8017af8212b3b227f18ce2539dd471f7f6
2008-09-15 14:04:55 +00:00
Matt Johnston
7ac24b10b9
- Generalise spawn_command function
...
--HG--
extra : convert_revision : 9927a5fe084c8053c747a40515f0213141ef8139
2008-09-15 13:41:18 +00:00
Matt Johnston
d7c1e58217
- Get rid of some ugly #defines
...
--HG--
extra : convert_revision : 4cfa02494ded17cdb068ec66581b720a5a0fd70b
2008-09-15 13:06:40 +00:00
Matt Johnston
b619e88f54
- Split main socket var into ses.sock_in/ses.sock_out in preparation
...
for -J proxy_cmd option (and some prelim options for that)
--HG--
extra : convert_revision : 47cdea9a7d66c553c6f5eec43b899821939d4e4c
2008-09-15 12:51:50 +00:00
Matt Johnston
1c72a35ddb
propagate from branch 'au.asn.ucc.matt.dropbear' (head f21045c791002d81fc6b8dde6537ea481e513eb2)
...
to branch 'au.asn.ucc.matt.dropbear.dbclient-netcat-alike' (head d1f69334581dc4c35f9ca16aa5355074c9dd315d)
--HG--
branch : dbclient-netcat-alike
extra : convert_revision : 22bbe895accc3995b48f07b556e45d546ff1ce5d
2008-09-14 06:47:51 +00:00
Matt Johnston
460bf43822
Remove workaround forcing rsa mpint to exactly a 8 bits multiple for putty (see
...
http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/rsa-non8mult-verify-fail.html ,
was fixed in 2004)
--HG--
extra : convert_revision : f21045c791002d81fc6b8dde6537ea481e513eb2
2008-09-12 17:48:33 +00:00
Matt Johnston
31fa5e605b
- Rework pubkey options to be more careful about buffer lengths. Needs review.
...
--HG--
branch : pubkey-options
extra : convert_revision : 537a6ebebb46424b967ffe787f0f8560e5f447e8
2008-09-12 17:23:56 +00:00
Matt Johnston
c0ce2a6a97
* Patch from Frédéric Moulins adding options to authorized_keys.
...
Needs review.
--HG--
branch : pubkey-options
extra : convert_revision : 26872f944d79ddacff1070aab32115a6d726392c
2008-09-08 15:14:02 +00:00
Matt Johnston
f90f64b5c1
fill_passwd() doesn't have a return value
...
--HG--
extra : convert_revision : ee6ec7346a5b4e7330f462ec9e4815f73038e8d0
2008-07-12 17:00:30 +00:00
Matt Johnston
96bda2af8e
Forgot to bump actual version number
...
--HG--
extra : convert_revision : 2f31bc0e5d1c701ad8c03176bbb5722852c0c11d
2008-03-27 13:34:34 +00:00
Matt Johnston
a97603d003
Add SSH_ASKPASS and DROPBEAR_PASSWORD to the dbclient manpage
...
--HG--
extra : convert_revision : ecc0009ef2a41ba548230efd0fbb1ea74e973f1b
2008-03-27 13:25:02 +00:00
Matt Johnston
77892be79c
0.51
...
--HG--
extra : convert_revision : 52beef2562914a31aa2351bcd0e1178fbf2be718
2008-03-27 13:17:08 +00:00
Matt Johnston
3e29368cbc
merge of '9879f7138f243bb2077a06e4c9ea925fa34abe2b'
...
and 'e28650f207028a45182fc2de545b7bd218d13077'
--HG--
extra : convert_revision : f6be8d819a89338780799d813f64be24d4b8ad84
2008-03-27 10:19:36 +00:00
Matt Johnston
b91874cedc
Update to debian 0.50-4 diff
...
--HG--
extra : convert_revision : e28650f207028a45182fc2de545b7bd218d13077
2008-03-27 10:19:28 +00:00
Matt Johnston
acd18ce243
Mention 0.51-test2 changes
...
--HG--
extra : convert_revision : 9879f7138f243bb2077a06e4c9ea925fa34abe2b
2008-03-01 02:01:35 +00:00
Matt Johnston
6c9d2abc75
Don't return until the shell has quit. This will ensure that an exit status
...
is always returned.
--HG--
extra : convert_revision : 32fc88053016994100eb0ef17f75592881c90d97
2008-02-21 14:46:15 +00:00
Matt Johnston
e277059339
fix up after merge
...
--HG--
extra : convert_revision : 6107b89c1188975d0c60f50621afe593cb6e554f
2008-01-13 04:02:08 +00:00
Matt Johnston
a3b5d3c8b3
merge of '295b11312e327fe6c4f33512674ea4a1a9790344'
...
and '426d7aeea950d007ed7ef9f03f9f40b138a769cb'
--HG--
extra : convert_revision : d9cc9067a1a17f312a7349781f2dbbaf2890d5a6
2008-01-13 04:01:46 +00:00
Matt Johnston
bb0548b3b0
Make a copy of passwd fields since getpwnam()'s retval isn't safe to keep
...
--HG--
extra : convert_revision : 295b11312e327fe6c4f33512674ea4a1a9790344
2008-01-13 03:55:59 +00:00
Matt Johnston
bb84e33d99
propagate from branch 'au.asn.ucc.matt.dropbear' (head fb7080ca6e254faaf7cfaee93b0ab6ab6de4ed59)
...
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 78d02301ae8310efa2639f15da0ea62dea110e4b)
--HG--
branch : agent-client
extra : convert_revision : 833d0adef6cdbf43ea75283524c665e70b0ee1ee
2007-11-29 11:38:06 +00:00
Matt Johnston
b2ac4eb29b
Actually use ~/.hushlogin rather than ~/hushlogin to ignore motd.
...
--HG--
extra : convert_revision : 426d7aeea950d007ed7ef9f03f9f40b138a769cb
2007-11-02 15:03:16 +00:00
Matt Johnston
25554bc331
Fix to allow building from a separate directory, patch from Ricardo Martins
...
--HG--
extra : convert_revision : fb7080ca6e254faaf7cfaee93b0ab6ab6de4ed59
2007-10-18 12:18:44 +00:00
Matt Johnston
a018260fe9
Add support for SSH_ASKPASS_ALWAYS env variable for dbclient. If it
...
(and also SSH_ASKPASS) is set then dbclient will use an external askpass
program regardless of whether DISPLAY is set or stdin is a TTY. Suggested
by Davyd Madeley for handheld devices.
--HG--
extra : convert_revision : c62bdee8427eb452cca38d188affe881d9fadee8
2007-09-14 00:19:44 +00:00
Matt Johnston
9a2cdc299f
Make sure declarations of variables are at the top of function,
...
pointed out by Alexey Rusakov.
--HG--
extra : convert_revision : 6c4d376f9c88f94c3c9b23e32f9135c132e26fa8
2007-09-11 12:00:18 +00:00
Matt Johnston
e41452afeb
propagate from branch 'au.asn.ucc.matt.dropbear' (head 8a7db1e2fdc5636abb338adb636babc32f465739)
...
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head d82c25da2f7e4fb6da510d806c64344e80bb270d)
--HG--
branch : agent-client
extra : convert_revision : 78d02301ae8310efa2639f15da0ea62dea110e4b
2007-08-16 13:34:37 +00:00
Matt Johnston
58296a95f1
Make dropbearkey only generate 1024 bit keys
...
--HG--
extra : convert_revision : 8a7db1e2fdc5636abb338adb636babc32f465739
2007-08-08 15:57:50 +00:00
Matt Johnston
ddb61adcc9
Fix delayed packet queue handling
...
--HG--
extra : convert_revision : 53b349938dfae2256e23799fae66edd5fc3e97ee
2007-08-08 15:48:52 +00:00
Matt Johnston
790cdadace
Prepare for 0.50 release
...
--HG--
extra : convert_revision : 72385623360b49c08f42496eb163fc702c8a0b3e
2007-08-08 15:27:41 +00:00
Matt Johnston
75ec4d6510
- Add -K keepalive flag for dropbear and dbclient
...
- Try to reduce the frequency of select() timeouts
- Add a max receive window size of 1MB
--HG--
extra : convert_revision : 9aa22036cb511cddb35fbc0e09ad05acb39b64d1
2007-08-08 15:12:06 +00:00
Matt Johnston
a7649c250f
Stop scp passing arguments that dbclient doesn't understand
...
--HG--
extra : convert_revision : 8b1f7f73b80da98007864ca665f99c58d6f88382
2007-07-28 08:59:24 +00:00
Matt Johnston
57ae0bfedf
Prevent invalid packets being sent during key-exchange, instead queue
...
them until afterwards. This could sometimes terminate connections
after 8 hours if (for example) a new TCP forwarded connection
was sent at the KEX timeout.
--HG--
extra : convert_revision : 48426bd66b8f5ba50045f7ba190d1672745132e2
2007-07-27 17:13:42 +00:00
Matt Johnston
993f58900d
Add default argument for receive window
...
--HG--
extra : convert_revision : 83535bcee65d8f58becbb75153cf0063c57a48dc
2007-07-25 16:20:57 +00:00
Matt Johnston
876e7b99d4
Use the -W <windowsize> argument in startup scripts, with a default of 64kB
...
--HG--
extra : convert_revision : bbc5073267b8af362e59a46bc8328c03cfd4bd4c
2007-07-25 15:44:50 +00:00
Matt Johnston
e3e4445dc1
Add -W <windowsize> argument and document it.
...
--HG--
extra : convert_revision : 98d4c0f15480bf749c451034cbc565d7e9d3b8dc
2007-07-25 15:44:25 +00:00
Matt Johnston
2d4d9627a2
Rearrange the channel buffer sizes into three neat use-editable values in
...
options.h. Increasing RECV_MAX_WINDOW gives big network performance
increases - even with the present buffers (which haven't changed) it
performs a lot better.
Next step is to make the window size a cmdline option.
--HG--
extra : convert_revision : 24c7cb47fb56cf5b82e3bc0859b45ea83038eab0
2007-07-24 15:40:23 +00:00
Matt Johnston
762e9973ff
Patch from Nicolai Ehemann to try binding before going to the background,
...
so that if it exits early (because something's already listening etc)
then it will return an exitcode of 1.
--HG--
extra : convert_revision : 4e68851f89a773bc502b30dec2b8f6edaa36d473
2007-07-19 15:54:18 +00:00
Matt Johnston
b04e2d14ef
Just use /dev/urandom since that's what everyone ends up using anyway.
...
Make -u a nop.
--HG--
extra : convert_revision : ef0615311b43c8bfe1985df64a4a95ce4ec0d8e6
2007-07-19 15:47:32 +00:00
Matt Johnston
456b500902
"backgrounding" is more user-understandable than "forking"
...
--HG--
extra : convert_revision : 53a3f244adf908dac18f2fa7e1d94309497da790
2007-07-19 14:08:24 +00:00
Matt Johnston
0b72cf1ed2
uClinux ifdef was accidentally inverted
...
--HG--
extra : convert_revision : 0b32300bc2ad5a96be40f0e2b9815a8824c2c729
2007-07-19 14:08:01 +00:00
Matt Johnston
4639844208
Fix spelling typo
...
--HG--
extra : convert_revision : 3080d6d5d0bf6772752e5fd8e28657817b41c748
2007-07-19 14:07:41 +00:00
Matt Johnston
77c33e7750
Add -u option to specify /dev/urandom instead
...
--HG--
extra : convert_revision : 6925cd3fd7727fbc69db9883675aa90f594f58a0
2007-04-16 13:39:50 +00:00
Matt Johnston
a4130263bd
Allow reading dbclient password from an environment var
...
--HG--
extra : convert_revision : 9a5277c058af96e8fb7a3ade558dd1aeeafa1d3a
2007-03-17 06:30:11 +00:00
Matt Johnston
0ffc17e481
Remove a newline from the kex prompt question, from FreeWRT
...
--HG--
extra : convert_revision : 98745fb712b04634b0682fe9ee0dc904ea528f10
2007-02-25 09:48:13 +00:00
Matt Johnston
62d792fbdc
Fix a stupid bug s/readfd/errfd/ affecting channel close on child exit
...
--HG--
extra : convert_revision : 16dd04147563e91faaa44de193dece0f4056ec7a
2007-02-22 16:17:09 +00:00
Matt Johnston
7aefd496f1
Document -p [address:]port
...
--HG--
extra : convert_revision : d2f4cea9ad411a132cc799d5428b87a70126620b
2007-02-22 15:51:15 +00:00
Matt Johnston
70a2281823
0.49 probably done
...
--HG--
extra : convert_revision : 61cdf48863b44c54cf8abe33d263f7c1d57a27df
2007-02-22 15:46:57 +00:00
Matt Johnston
c077f22fb4
Improve known_hosts checking.
...
--HG--
extra : convert_revision : b7933fa29cbedeb53b79a0b60aaa0f049e003cb2
2007-02-22 15:29:32 +00:00
Matt Johnston
b01a74a9d7
merge of 'a9b0496634cdd25647b65e585cc3240f3fa699ee'
...
and 'c22be8b8f570b48e9662dac32c7b3e7148a42206'
--HG--
extra : convert_revision : 066f6aef2791d54b9ec6a0c3033fd28fa946251f
2007-02-22 14:53:49 +00:00
Matt Johnston
66643fa5c7
Add -p [address:]port option for binding to addresses, patch from
...
Max-Gerd Retzlaff
--HG--
extra : convert_revision : a9b0496634cdd25647b65e585cc3240f3fa699ee
2007-02-22 14:52:46 +00:00
Matt Johnston
7f12251fbb
Fix for -pedantic -ansi compilation, change // to /**/, plus some signedness
...
and trailing-comma-in-array issues
--HG--
extra : convert_revision : c22be8b8f570b48e9662dac32c7b3e7148a42206
2007-02-16 14:42:08 +00:00
Matt Johnston
41fd735d4b
Make sure the #includes for pam only get hit if PAM is enabled.
...
--HG--
extra : convert_revision : f9c35e0ebbcb2d5821d871db343ec2041cdb6ef3
2007-02-13 10:30:02 +00:00
Matt Johnston
4941c43429
Quote some message in configure
...
--HG--
extra : convert_revision : 7446145ab71b78c7e0df3a567b4fd00bb7848b21
2007-02-12 15:50:21 +00:00
Matt Johnston
f5e9b12b60
Changes for 0.49test1
...
--HG--
extra : convert_revision : 991ba7f3e93d0fa35937c9378c3b5b7fecb4ac5a
2007-02-12 15:02:48 +00:00
Matt Johnston
6c081b4e7c
propagate from branch 'au.asn.ucc.matt.dropbear' (head 6cb7793493d92968e09b5dea21d71ded5811d21f)
...
to branch 'au.asn.ucc.matt.dropbear.channel-fix' (head 275bf5c6b71ca286c29733b9e38bac40eeb06a40)
--HG--
branch : channel-fix
extra : convert_revision : fc57c8943826cc2c844cc3c452f477c85ded72f2
2007-02-12 13:38:18 +00:00
Matt Johnston
769076f2ae
Turn off DEBUG_TRACE
...
--HG--
branch : channel-fix
extra : convert_revision : 275bf5c6b71ca286c29733b9e38bac40eeb06a40
2007-02-12 13:37:58 +00:00
Matt Johnston
7c1d4d1903
Revert to default sigchld handler after forking, don't exit
...
on error writing to the signal_pipe.
--HG--
branch : channel-fix
extra : convert_revision : 1d7826f7be07ee728abb42b6a9826d8ea7142fbe
2007-02-12 13:32:30 +00:00
Matt Johnston
c3941698cd
Don't erase every buffer, it's too time consuming.
...
On systems where it matters encrypted swap should be enabled anyway.
--HG--
extra : convert_revision : 6cb7793493d92968e09b5dea21d71ded5811d21f
2007-02-12 10:44:47 +00:00
Matt Johnston
47e76de56a
Disable core dumps
...
--HG--
extra : convert_revision : ba8ebf724630561c6b9285247be7574a33853a17
2007-02-12 10:43:44 +00:00
Matt Johnston
519ff96bcd
merge of 'c387cf9d6b7b1a951efd19476e81a2c2d7ca09a0'
...
and 'ed68ea8963f7d1fa600f81479e7e211efc5a31bc'
--HG--
branch : channel-fix
extra : convert_revision : cc1d98a965fefe904648b988fc9b00857f6a7bd3
2007-02-12 10:39:34 +00:00
Matt Johnston
22440a6fb2
- Fix bug in child-exit handling where the wrong pid was being matched.
...
- Also wait for errfd to close before closing the channel
--HG--
branch : channel-fix
extra : convert_revision : ed68ea8963f7d1fa600f81479e7e211efc5a31bc
2007-02-12 10:39:22 +00:00
Matt Johnston
164ea75fa6
Ignore "exit-signal" request rather than returning failure
...
--HG--
branch : channel-fix
extra : convert_revision : 493d563a48aecc55015ba6d2820da223b3b013b7
2007-02-12 10:37:35 +00:00
Matt Johnston
4c8797c9ac
propagate from branch 'au.asn.ucc.matt.dropbear' (head eac2a177021cfa0cbf365d5821fe6c8a0a5dc758)
...
to branch 'au.asn.ucc.matt.dropbear.channel-fix' (head be0d837816e2e985c7b2d80614d5df3496028e94)
--HG--
branch : channel-fix
extra : convert_revision : c387cf9d6b7b1a951efd19476e81a2c2d7ca09a0
2007-02-11 10:46:57 +00:00
Matt Johnston
433d5511e1
Remove double-free due to the same "fix" for a leak getting merged in
...
twice.
--HG--
extra : convert_revision : eac2a177021cfa0cbf365d5821fe6c8a0a5dc758
2007-02-11 10:46:44 +00:00
Matt Johnston
674b4d013d
propagate from branch 'au.asn.ucc.matt.dropbear' (head 924b731b50d4147eed8e9382c98a2573259a6cad)
...
to branch 'au.asn.ucc.matt.dropbear.channel-fix' (head e73ee8f7ae404a9355685c30828a0ad4524031bc)
--HG--
branch : channel-fix
extra : convert_revision : be0d837816e2e985c7b2d80614d5df3496028e94
2007-02-11 09:55:00 +00:00
Matt Johnston
cd0a08896c
Add '-y' option to dbclient to accept the host key without checking
...
- patch from Luciano Miguel Ferreira Rocha.
--HG--
extra : convert_revision : 924b731b50d4147eed8e9382c98a2573259a6cad
2007-02-11 08:50:21 +00:00
Matt Johnston
fc0e723805
Avoid using a comma in a message, since I can't be bothered
...
looking up escaping rules
--HG--
extra : convert_revision : d54373c24f26f372daacf83cfc56d78c381bf661
2007-02-09 10:55:20 +00:00
Matt Johnston
f5ad5c1553
Improve behaviour when flushing out after a process has exited.
...
--HG--
branch : channel-fix
extra : convert_revision : e73ee8f7ae404a9355685c30828a0ad4524031bc
2007-02-09 10:43:16 +00:00
Matt Johnston
cda7af7ca2
merge of '73fe066c5d9e2395354ba74756124d45c978a04d'
...
and 'f5014cc84558f1e8eba42dbecf9f72f94bfe6134'
--HG--
branch : channel-fix
extra : convert_revision : cc6095ce978e5f9e51ece6f1717499bc73594bcc
2007-02-06 16:00:18 +00:00
Matt Johnston
d199e0b119
disapproval of revision '1dfbc5ef92391d01b576c8506061927869a89887'
...
--HG--
branch : channel-fix
extra : convert_revision : 73fe066c5d9e2395354ba74756124d45c978a04d
2007-02-06 15:59:54 +00:00
Matt Johnston
b121787336
propagate from branch 'au.asn.ucc.matt.dropbear' (head 3d683afab1940779612505721e67bd9c98df057e)
...
to branch 'au.asn.ucc.matt.dropbear.channel-fix' (head dec459c955c306f9ecddc3b4e04a963f3f264a0f)
--HG--
branch : channel-fix
extra : convert_revision : f5014cc84558f1e8eba42dbecf9f72f94bfe6134
2007-02-04 13:26:04 +00:00
Matt Johnston
e9bc9e6bd7
merge of '691c56da3db2685f58ea53540a73c1b79e7df9cd'
...
and 'e0efd546c3cdb2828971e41af2afe43e850c641d'
--HG--
extra : convert_revision : 3d683afab1940779612505721e67bd9c98df057e
2007-02-04 10:44:12 +00:00
Matt Johnston
55ed5531b5
Revert bogus fix, make a note that the var is meant to 'leak'
...
--HG--
extra : convert_revision : e0efd546c3cdb2828971e41af2afe43e850c641d
2007-02-04 10:44:07 +00:00
Matt Johnston
fd304d763a
merge of 'b1dd3b94e60a07a176dba2b035ac79968595990a'
...
and 'bcb33fce2fad01a7626598209d43af3571bd86f0'
--HG--
extra : convert_revision : 691c56da3db2685f58ea53540a73c1b79e7df9cd
2007-02-04 10:32:59 +00:00
Matt Johnston
60d4cd5996
Add comments about requiring keysize <= 2*SHA1_HASH_SIZE
...
--HG--
extra : convert_revision : bcb33fce2fad01a7626598209d43af3571bd86f0
2007-02-04 10:31:48 +00:00
Matt Johnston
16517e6760
Fix failure-handling in dropbear_listen() when errstring is unset
...
(this codepath isn't used)
--HG--
extra : convert_revision : d29f3665a91c4bf71a2d8bd99b33348a0317e605
2007-02-03 13:57:35 +00:00
Matt Johnston
d2f292b3ad
Fix another leak found by Klocwork
...
--HG--
extra : convert_revision : f6ffa6544086d7088a04d6e94b3bfb1bfc67908d
2007-02-03 13:50:47 +00:00
Matt Johnston
d4bc0aec5d
Fix leak of keybuf in recv_msg_userauth_pk_ok, courtesy of Klocwork
...
--HG--
extra : convert_revision : 9c39c3f447a47f61606df5d4bee364a449f12e18
2007-02-03 13:31:01 +00:00
Matt Johnston
d0533106a8
Remove extraneous tests in random mpint generation,
...
courtesy of Klocwork
--HG--
extra : convert_revision : 2b5e1d92fd1ce08361e69155a525fca481e79fe4
2007-02-03 13:23:18 +00:00
Matt Johnston
28f1026de8
Fix potential null pointer dereference found by Klokwork
...
--HG--
extra : convert_revision : ef7030b29eca0944e6fbbdcdd776aafe39197ffa
2007-02-03 09:58:14 +00:00
Matt Johnston
85f22c9f09
Fix free() of null pointer found by Klocwork
...
--HG--
extra : convert_revision : 8084d31816a059cc07c6180b6fd5aa86770845cb
2007-02-03 09:42:22 +00:00
Matt Johnston
0f707bad11
propagate from branch 'au.asn.ucc.matt.dropbear' (head b1dd3b94e60a07a176dba2b035ac79968595990a)
...
to branch 'au.asn.ucc.matt.dropbear.channel-fix' (head fc77c3dea87a7c0f374e738d055f0b455495cbc3)
--HG--
branch : channel-fix
extra : convert_revision : dec459c955c306f9ecddc3b4e04a963f3f264a0f
2007-02-03 08:22:58 +00:00
Matt Johnston
ede9a990f4
merge of '7ac513addd924cd0391e7db26c067024c3c257f6'
...
and 'b24757c764465a206a258bae27ac0509fc56cd16'
--HG--
branch : channel-fix
extra : convert_revision : fc77c3dea87a7c0f374e738d055f0b455495cbc3
2007-02-03 08:20:47 +00:00
Matt Johnston
4eb0f51e42
merge of '1dfbc5ef92391d01b576c8506061927869a89887'
...
and '275426b7a4b94a0507c78327f86bcd2cd0b0f985'
--HG--
branch : channel-fix
extra : convert_revision : 7ac513addd924cd0391e7db26c067024c3c257f6
2007-02-03 08:20:45 +00:00
Matt Johnston
d9aeb2773e
merge of '5fdf69ca60d1683cdd9f4c2595134bed26394834'
...
and '6b61c50f4cf888bea302ac8fcf5dbb573b443251'
--HG--
extra : convert_revision : b1dd3b94e60a07a176dba2b035ac79968595990a
2007-02-03 08:20:34 +00:00
Matt Johnston
c5fd7dd554
merge of '1250b8af44b62d8f4fe0f8d9fc7e7a1cc34e7e1c'
...
and '7f8670ac3bb975f40967f3979d09d2199b7e90c8'
--HG--
extra : convert_revision : 6b61c50f4cf888bea302ac8fcf5dbb573b443251
2007-02-03 08:20:30 +00:00
Matt Johnston
5acf7a6aaa
disapproval of revision '1250b8af44b62d8f4fe0f8d9fc7e7a1cc34e7e1c'
...
--HG--
branch : channel-fix
extra : convert_revision : 275426b7a4b94a0507c78327f86bcd2cd0b0f985
2007-02-03 08:10:09 +00:00
Matt Johnston
5092e30605
disapproval of revision '2186a678a5f79ef432f6593a10e3e13df2a313d5'
...
--HG--
extra : convert_revision : 1250b8af44b62d8f4fe0f8d9fc7e7a1cc34e7e1c
2007-02-03 08:09:55 +00:00
Matt Johnston
41bfa93058
disapproval of revision '5fdf69ca60d1683cdd9f4c2595134bed26394834'
...
--HG--
branch : channel-fix
extra : convert_revision : b24757c764465a206a258bae27ac0509fc56cd16
2007-02-03 08:09:22 +00:00
Matt Johnston
056b92bd4c
disapproval of revision '332f709a4cb39cde4cedab7c3be89e05f3023067'
...
--HG--
extra : convert_revision : 5fdf69ca60d1683cdd9f4c2595134bed26394834
2007-02-03 08:08:47 +00:00
Matt Johnston
4a5208512b
Update to latest
...
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
and
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
--HG--
extra : convert_revision : 7f8670ac3bb975f40967f3979d09d2199b7e90c8
2007-02-02 10:11:31 +00:00
Matt Johnston
c88f3eb2a4
fix missing endif
...
--HG--
extra : convert_revision : 03bf5b3717b0209ac382c00e291b741d755cbc1f
2007-01-11 06:03:09 +00:00
Matt Johnston
943636c3e1
propagate from branch 'au.asn.ucc.matt.ltc.dropbear' (head c1db4398d56c56c6d06ae1e20c1e0d04dbb598ed)
...
to branch 'au.asn.ucc.matt.dropbear' (head d26d5eb2837f46b56a33fb0e7573aa0201abd4d5)
--HG--
extra : convert_revision : 7a0ae6de81402591a789486070007238169fafca
2007-01-11 04:29:08 +00:00
Matt Johnston
0a60ef26bd
Replace // with /* */
...
--HG--
branch : libtomcrypt-dropbear
extra : convert_revision : c1db4398d56c56c6d06ae1e20c1e0d04dbb598ed
2007-01-11 04:28:09 +00:00
Matt Johnston
9d5ed350a7
propagate from branch 'au.asn.ucc.matt.ltm.dropbear' (head 2af95f00ebd5bb7a28b3817db1218442c935388e)
...
to branch 'au.asn.ucc.matt.dropbear' (head ecd779509ef23a8cdf64888904fc9b31d78aa933)
--HG--
extra : convert_revision : d26d5eb2837f46b56a33fb0e7573aa0201abd4d5
2007-01-11 03:14:55 +00:00
Matt Johnston
ca52f070ae
%s/ranlib/$(RANLIB)/
...
--HG--
branch : libtommath-dropbear
extra : convert_revision : 2af95f00ebd5bb7a28b3817db1218442c935388e
2007-01-11 03:13:43 +00:00
Matt Johnston
9e9858b81c
propagate from branch 'au.asn.ucc.matt.ltm.orig' (head 1c2b7d389d0682caf980235dad97493e3206389c)
...
to branch 'au.asn.ucc.matt.ltm.dropbear' (head 40ab3795de3a6157f34e52ed3f0be3eebe9a2eaa)
--HG--
branch : libtommath-dropbear
extra : convert_revision : 66d004add153781b5e2b5e7af247aa69bbf363b6
2007-01-11 03:13:04 +00:00
Matt Johnston
058b2bec22
Refer to local headers locally with #include "" not #include <>.
...
Required now that we've got rid of the libtomcrypt variants that were
'accidentally' being included in the -I path
--HG--
branch : libtommath-dropbear
extra : convert_revision : 40ab3795de3a6157f34e52ed3f0be3eebe9a2eaa
2007-01-11 03:09:09 +00:00
Matt Johnston
5ea605d8de
propagate from branch 'au.asn.ucc.matt.ltc.dropbear' (head ffd1015238ffcc959f6cd95176d96fcd0945a397)
...
to branch 'au.asn.ucc.matt.dropbear' (head 52ccb0ad0587a62bc64aecb939adbb76546aac16)
--HG--
extra : convert_revision : ecd779509ef23a8cdf64888904fc9b31d78aa933
2007-01-11 03:05:30 +00:00
Matt Johnston
7f0dd15bab
Fix up some slight changes.
...
Hack out the RSA code in tomcrypt_math.h fairly crudely, as LTC's rsa_key
collide's with Dropbear's rsa_key
--HG--
branch : libtomcrypt-dropbear
extra : convert_revision : ffd1015238ffcc959f6cd95176d96fcd0945a397
2007-01-11 03:04:55 +00:00
Matt Johnston
a938f4cfe1
propagate from branch 'au.asn.ucc.matt.ltc.dropbear' (head 2af22fb4e878750b88f80f90d439b316d229796f)
...
to branch 'au.asn.ucc.matt.dropbear' (head 02c413252c90e9de8e03d91e9939dde3029f5c0a)
--HG--
extra : convert_revision : 52ccb0ad0587a62bc64aecb939adbb76546aac16
2007-01-11 02:41:05 +00:00
Matt Johnston
28ad393b00
propagate from branch 'au.asn.ucc.matt.ltc.orig' (head 52840647ac7f5c707c3bd158d119a15734a7ef28)
...
to branch 'au.asn.ucc.matt.ltc.dropbear' (head 20dccfc09627970a312d77fb41dc2970b62689c3)
--HG--
branch : libtomcrypt-dropbear
extra : convert_revision : 2af22fb4e878750b88f80f90d439b316d229796f
2007-01-11 02:39:21 +00:00
Matt Johnston
f3b834d536
Update to LibTomCrypt 1.16
...
--HG--
branch : libtomcrypt-orig
extra : convert_revision : 52840647ac7f5c707c3bd158d119a15734a7ef28
2007-01-11 02:22:00 +00:00
Matt Johnston
692d737a82
Load hostkeys before daemon(), since daemon()'s chdir("/") will prevent us
...
finding keys in $PWD.
--HG--
extra : convert_revision : 02c413252c90e9de8e03d91e9939dde3029f5c0a
2007-01-04 02:01:09 +00:00
Matt Johnston
d5897b9a5d
merge of '182c2d8dbd5321ef4d1df8758936f4dc7127015f'
...
and '31dcd7a22983ef19d6c63248e415e71d292dd0ec'
--HG--
extra : convert_revision : e84f66826c7ee6ebe99ef92cc0f6c22ecf638d01
2006-12-06 13:11:41 +00:00
Matt Johnston
7b780efb42
- Include netinet/in.h before arpa/inet.h for FreeBSD
...
- Update Copyright year
--HG--
extra : convert_revision : 182c2d8dbd5321ef4d1df8758936f4dc7127015f
2006-12-06 13:09:32 +00:00
Matt Johnston
4e09d27c6f
Add some code for testing whether a writefd is closed (by read()ing from it)
...
--HG--
branch : channel-fix
extra : convert_revision : 1dfbc5ef92391d01b576c8506061927869a89887
2006-12-05 15:23:06 +00:00
Matt Johnston
e1d3a8a6e9
- Add some extra tracing.
...
- Be clearer about errfd be used for read versus write with
ERRFD_IS_READ and ERRFD_IS_WRITE macros
--HG--
branch : channel-fix
extra : convert_revision : 8778af05d9573c68b0d859feb7079502b46ed769
2006-12-05 14:42:03 +00:00
Matt Johnston
235ac72a06
merge of 'a94c5265558121fe936519b5d9a5eb27f95e9d9d'
...
and 'd348546b80847bc0d42a7b5208bb31a54f1fdfaf'
--HG--
branch : channel-fix
extra : convert_revision : a144a771379fa1f0204f81ac3182d045f884be19
2006-12-05 13:28:44 +00:00
Matt Johnston
dd06653e53
Tidy up behaviour when select() is interrupted. We follow normal
...
codepaths, just with no FDs set.
--HG--
branch : channel-fix
extra : convert_revision : d348546b80847bc0d42a7b5208bb31a54f1fdfaf
2006-12-05 13:27:59 +00:00
Matt Johnston
7eee3ceb70
comment about putenv() leaking malloced variables
...
--HG--
extra : convert_revision : 80deca87cb2af2dde457882170b9095eeb9c2edb
2006-11-02 16:52:59 +00:00
Matt Johnston
19b89a0e19
Fix memory leak found by Klocwork
...
--HG--
extra : convert_revision : 4b40828a0c3781bacfb2b92af639e88065bcc61a
2006-11-02 16:45:43 +00:00
Matt Johnston
a0aefb3d3f
Make sure that we clean up key parts if we fail during reading a rsa key
...
(from Klocwork)
--HG--
extra : convert_revision : fbcb5f84b48c3c2f04bba5516abbf101aec49a14
2006-11-02 16:10:18 +00:00
Matt Johnston
20fb9ea351
make code clearer and more robust (from Klocwork)
...
--HG--
extra : convert_revision : 397b243ca9ec623ded7b5b93e115dc460527acca
2006-11-02 14:55:17 +00:00
Matt Johnston
ee6f01918c
Free x component of DSS key upon failure to load
...
(found by Klocwork)
--HG--
extra : convert_revision : 8dd57944c592d5d74680657e437fca8803680bd0
2006-11-02 14:49:20 +00:00
Matt Johnston
71e25058c1
propagate from branch 'au.asn.ucc.matt.dropbear' (head 31dcd7a22983ef19d6c63248e415e71d292dd0ec)
...
to branch 'au.asn.ucc.matt.dropbear.channel-fix' (head 7559a8cc4f6abe2338636f2aced3a395a79c172c)
--HG--
branch : channel-fix
extra : convert_revision : a94c5265558121fe936519b5d9a5eb27f95e9d9d
2006-10-12 03:01:10 +00:00
Matt Johnston
35bcc463e5
Fix up separate-directory building for libtomcrypt
...
Use $CC rather than $LD for linking
--HG--
extra : convert_revision : 31dcd7a22983ef19d6c63248e415e71d292dd0ec
2006-10-11 16:00:50 +00:00
Matt Johnston
5b8a26f1d1
Remove accidentally removed block (making sure to close the channel).
...
Other minor cleanups.
--HG--
branch : channel-fix
extra : convert_revision : 7559a8cc4f6abe2338636f2aced3a395a79c172c
2006-10-11 14:44:00 +00:00
Matt Johnston
cc340d9cdc
Passes most test cases now
...
--HG--
branch : channel-fix
extra : convert_revision : 5a5f398411a7a3baa9472daa80fea0574fbd8a9a
2006-10-09 16:31:00 +00:00
Matt Johnston
786ea39ac4
Rearranged (and hopefully simplified) channel close/eof handling
...
--HG--
branch : channel-fix
extra : convert_revision : d44aac5fec50b1d20515da77d410d3c511f16277
2006-10-07 17:48:55 +00:00
Matt Johnston
df57eb3824
Rearranged some more bits, marked some areas that need work.
...
* send_msg_channel_data() no longer allocates a separate buffer
* getchannel() handles unknown channels so callers don't have to
--HG--
branch : channel-fix
extra : convert_revision : 3db645581be0fbb0d2ac8d218fbd55e096cbbbe5
2006-10-02 16:34:06 +00:00
Matt Johnston
3301bad391
Comment cleanups
...
--HG--
branch : insecure-nocrypto
extra : convert_revision : 0ca38a1cf349f7426ac9de34ebe4c3e3735effab
2006-10-02 06:40:51 +00:00
Matt Johnston
f5d75b099b
explicit merge of '0501e6f661b5415eb76f3b312d183c3adfbfb712'
...
and '2b954d406290e6a2be8eb4a262d3675ac95ac544'
--HG--
branch : insecure-nocrypto
extra : convert_revision : 9bd1d83f67b428efb0f0e8f55c6efc4749f635d9
2006-10-02 06:39:32 +00:00
Matt Johnston
7e04c5e277
just shuffle some variables names about, a brief comment
...
about the "bad writefd" problem
--HG--
branch : channel-fix
extra : convert_revision : f0b407c3d3e047ed83174e6f4ebd85a19352df5b
2006-10-01 16:35:13 +00:00
Matt Johnston
33a182674a
Forgot variable declaration.
...
--HG--
extra : convert_revision : 08a0ab6d3e7efefaa07f3d428e9fe8a503f670ac
2006-09-11 11:22:52 +00:00
Matt Johnston
14a790891f
Handle failure reading a file (such as a key file)
...
--HG--
extra : convert_revision : 3219ab5642c86615c6ffb30eb93f573a73415d2f
2006-08-20 12:16:13 +00:00
Matt Johnston
d1daf6531a
merge of '9a4e042fd565f46141e81e0c1ab90260303348fe'
...
and 'bea3887a5875cf3ab8a1331e15e698b37b61fe37'
--HG--
extra : convert_revision : d05a6820ef6a95047d07edf66390e03afa32d556
2006-08-07 13:41:23 +00:00
Matt Johnston
e89b40e9c9
Add (disabled by default) LOG_COMMANDS option to log the commands executed
...
by clients.
--HG--
extra : convert_revision : bea3887a5875cf3ab8a1331e15e698b37b61fe37
2006-08-07 13:41:16 +00:00
Matt Johnston
afb651821b
Just use the normal "remote closed" handler when reading ident stings
...
--HG--
extra : convert_revision : 9a4e042fd565f46141e81e0c1ab90260303348fe
2006-07-27 01:24:39 +00:00
Matt Johnston
92cf98c77b
CHECKCLEARTOWRITE() can normally be defined blank
...
--HG--
extra : convert_revision : b59d9b3648d8fc72e8702a1013a1c6926d46ab2e
2006-07-09 14:58:19 +00:00
Matt Johnston
60797cb25f
From Erik Hovland
...
- Check for valid cipher independently to starting encryption
- Use failure-checking m_mp_init for initialising mpint value
--HG--
extra : convert_revision : a72c49d2d031aa3b6fe34b61fd5ce0315f35ec72
2006-07-07 09:28:32 +00:00
Matt Johnston
c9319fbef5
Make flow of execution clearer for getting process exit status
...
--HG--
extra : convert_revision : 9a15e5205a3fd8ac4d23118f1857db9fa9d58a90
2006-07-07 09:18:05 +00:00
Matt Johnston
4cb673b644
Fixes from Erik Hovland:
...
cli-authpubkey.c:
fix leak of keybuf
cli-kex.c:
fix leak of fingerprint fp
cli-service.c:
remove commented out code
dropbearkey.c:
don't attepmt to free NULL key on failure
common-kex.c:
only free key if it is initialised
keyimport.c:
remove dead encrypted-key code
don't leak a FILE* loading OpenSSH keys
rsa.c, dss.c:
check return values for some libtommath functions
svr-kex.c:
check return value retrieving DH kex mpint
svr-tcpfwd.c:
fix null-dereference if remote tcp forward request fails
tcp-accept.c:
don't incorrectly free the tcpinfo var
--HG--
extra : convert_revision : 640a55bc710cbaa6d212453c750026c770e19193
2006-07-07 09:17:18 +00:00
Matt Johnston
cee2ec1680
BUG: The strings 'name' and 'instruction' are always allocated
...
but are only freed if the length of the string is greater then
zero. They should always be freed.
FIX: take the m_free(<string>) out of the conditional
From Erik Hovland
--HG--
extra : convert_revision : 13227a7365411821cb194fb45ccb23a9b9fb98cc
2006-07-07 07:00:10 +00:00
Matt Johnston
934a6d417d
BUG: mp_div_2d returns status and it isn't checked.
...
FIX: Check and return status.
From Erik Hovland
--HG--
extra : convert_revision : 5ffd8cbe12baca17918527c8e8e626600849ad10
2006-07-07 06:43:55 +00:00
Matt Johnston
d6ee29f5ae
0.49 is close to done.
...
--HG--
extra : convert_revision : 4c32ad8064e93b83c6d635d193b34d5f9112d1ae
2006-06-12 16:05:09 +00:00
Matt Johnston
c5e5dc832c
Can't check for ss_family without #including sys/socket.h
...
--HG--
extra : convert_revision : a047eadc375aecf23fc72659d4ae19a7a572bcda
2006-06-12 16:03:52 +00:00
Matt Johnston
ac2b546a13
Another stab at getting ss_family happy on older glibc
...
--HG--
extra : convert_revision : 7a1e9b08a576d794c28275e1bf54cb603372a4a6
2006-06-12 15:57:14 +00:00
Matt Johnston
d0537c7506
Make the dbclient password prompt more useful
...
--HG--
extra : convert_revision : 3bcfb35f7a6065dafbd695d943b95d64efff1c99
2006-06-12 14:41:32 +00:00
Matt Johnston
a0ed2ca71b
mention a command in the help
...
--HG--
extra : convert_revision : 27696753417cda4b57875adab53c0b3c12d341b8
2006-06-12 03:51:40 +00:00
Matt Johnston
4313157666
fix accidentally changed == vs != operators
...
--HG--
extra : convert_revision : a2345a9e53fcb35bde9f3701406e285c1ef80481
2006-06-11 16:37:46 +00:00
Matt Johnston
e8fa3ce478
progress towards exiting on writefd closure rather than
...
on process exit - dbclient hangs with scp, so requires work.
--HG--
extra : convert_revision : 2186a678a5f79ef432f6593a10e3e13df2a313d5
2006-06-11 16:19:32 +00:00
Matt Johnston
c9d3c0bc90
merge of 332f709a4cb39cde4cedab7c3be89e05f3023067
...
and ca4ca78b82c5d430c69ce01bf794e8886ce81431
--HG--
extra : convert_revision : 74020525425a1de06739c6c3bed9ef35e4ad867e
2006-06-10 16:39:40 +00:00
Matt Johnston
94d86427ff
disapproval of revision 'a4c1a9be4db326f8f7adcf30f876fadedf87b203'
...
--HG--
extra : convert_revision : 332f709a4cb39cde4cedab7c3be89e05f3023067
2006-06-10 16:39:37 +00:00
Matt Johnston
3b0e6a2969
increase the size of listening sockets if the port count increases
...
--HG--
extra : convert_revision : ca4ca78b82c5d430c69ce01bf794e8886ce81431
2006-06-10 15:59:38 +00:00
Matt Johnston
64bdc502ad
Bring in changes from Debian 0.48.1-1
...
--HG--
extra : convert_revision : 3f4f459f96e821b16461b85b98a3cfd81c916786
2006-06-07 16:04:14 +00:00
Matt Johnston
c81e058bb0
add -f background option to dbclient
...
--HG--
extra : convert_revision : 5ef61c30c0a634ac0da22a8c694ce235690e8170
2006-06-07 15:47:04 +00:00
Matt Johnston
be2b7d9725
Add -N "no remote command" dbclient option.
...
Document -N in dbclient.1 and -P in dropbear.8
--HG--
extra : convert_revision : 7cada79bf8f61e09a72e5d492170bd10ab0acee3
2006-06-07 15:01:20 +00:00
Matt Johnston
1428c01a5f
Include user@host in the pubkey line, since it's sometimes very useful
...
--HG--
extra : convert_revision : c3d6444f31a3b583e6405e1b99e666d020e89eac
2006-06-07 14:48:35 +00:00
Matt Johnston
4aafeb0da2
Add -P pidfile patch from Swen Schillig
...
--HG--
extra : convert_revision : 2dd1bf9162d8fc4c14b33c5b3c6ca3cbe2ecd587
2006-06-07 14:10:21 +00:00
Matt Johnston
32af5c267e
Look at HOME before /etc/passwd when looking for ~/.ssh/known_hosts
...
file, so people can workaround broken /etc/passwds. Print
the full path in error messages.
--HG--
extra : convert_revision : d777688369ee21011625a3f1fe79ddbe3d5b5c93
2006-06-07 13:41:19 +00:00
Matt Johnston
ba7513fdf3
change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
...
--HG--
extra : convert_revision : a3ca1bfef7f4fb65d0d82fce1dff6a19add68f46
2006-06-07 13:37:03 +00:00
Matt Johnston
1e26b86f15
propagate from branch 'au.asn.ucc.matt.dropbear' (head 138a11bc1e2babcd8b1182e6cb2a85d4e9404b11)
...
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 12b2f59db65e7339d340e95ac67d6d9ddb193c2b)
--HG--
branch : agent-client
extra : convert_revision : d82c25da2f7e4fb6da510d806c64344e80bb270d
2006-06-06 15:40:09 +00:00
Matt Johnston
b6b96f8841
Include CPPFLAGS in CFLAGS
...
--HG--
extra : convert_revision : 138a11bc1e2babcd8b1182e6cb2a85d4e9404b11
2006-04-18 01:33:30 +00:00
Matt Johnston
c1b602145f
don't fail fatally if the client can't get homedir from getpwuid(), fallback
...
to $HOME.
--HG--
extra : convert_revision : 279bd16a3e639764df14dce868fdeea7d6a0f317
2006-04-12 05:51:32 +00:00
Matt Johnston
719b47e3aa
send success message for successful window change request
...
--HG--
extra : convert_revision : 2a6c9eb6a9c0f8a0b7b479aaf075c8a195339fcd
2006-03-27 15:13:48 +00:00
Matt Johnston
d57a56407b
A few more fixups, make sure that variable declarations are the
...
first thing in a function
--HG--
extra : convert_revision : 5e475ab869513f9ce5baff42838a656f99300487
2006-03-26 09:26:43 +00:00
Matt Johnston
3cee7b6378
merge of 6ace12c71fc2773210f2f3d374c96622ca54fe48
...
and 84eb6fedc6df0666f8053b9018bf16635dbfb257
--HG--
extra : convert_revision : 11034278bd1917bebcbdc69cf53b1891ce9db121
2006-03-25 12:57:44 +00:00
Matt Johnston
1e03393b68
Some cleanups/fixes for various TRACE statements
...
--HG--
extra : convert_revision : 84eb6fedc6df0666f8053b9018bf16635dbfb257
2006-03-25 12:57:37 +00:00
Matt Johnston
dde673f8d7
minor cleanups for some warnings
...
--HG--
extra : convert_revision : 6ace12c71fc2773210f2f3d374c96622ca54fe48
2006-03-22 05:12:18 +00:00
Matt Johnston
f7caf6f5c6
propagate from branch 'au.asn.ucc.matt.dropbear' (head 0501e6f661b5415eb76f3b312d183c3adfbfb712)
...
to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 01038174ec27245b51bd43a66c01ad930880f67b)
--HG--
branch : agent-client
extra : convert_revision : 12b2f59db65e7339d340e95ac67d6d9ddb193c2b
2006-03-21 16:20:59 +00:00
Matt Johnston
cdbe853595
A hack to make dbclient to tcp forwarding netcat style.
...
eg
./dbclient -i testkey -L 1234:remotehost:remoteport tunnelhost
will ssh to tunnelhost (using testkey, there's no way to ask for a password)
and then tcpfwd to remotehost:remoteport on stdin/stdout.
There's no way to give a cmdline password, so -i for a keyfile will have to do.
Yet another reason for agent forwarding.
The 1234 is a dummy var, I think it has to be a valid portnumber though.
--HG--
branch : dbclient-netcat-alike
extra : convert_revision : d1f69334581dc4c35f9ca16aa5355074c9dd315d
2006-03-21 16:16:41 +00:00
Matt Johnston
3f49fc5f2c
0.48.1
...
--HG--
extra : convert_revision : 0501e6f661b5415eb76f3b312d183c3adfbfb712
2006-03-11 14:59:34 +00:00
Matt Johnston
c517ff57ca
put back the TIMEVAL_TO_TIMESPEC and timersub macros for Linux
...
--HG--
extra : convert_revision : 8036b55441ef217824185b87697c3d68c849fe7a
2006-03-11 14:57:12 +00:00
Matt Johnston
ba869e5601
propagate from branch 'au.asn.ucc.matt.dropbear' (head 7ad1775ed65e75dbece27fe6b65bf1a234db386a)
...
to branch 'au.asn.ucc.matt.dropbear.insecure-nocrypto' (head 88ed2b94d9bfec9a4f661caf592ed01da5eb3b6a)
--HG--
branch : insecure-nocrypto
extra : convert_revision : 2b954d406290e6a2be8eb4a262d3675ac95ac544
2006-03-10 06:30:52 +00:00
Matt Johnston
46d53c37fa
0.48 bump
...
--HG--
extra : convert_revision : 7ad1775ed65e75dbece27fe6b65bf1a234db386a
2006-03-09 15:03:22 +00:00
Matt Johnston
94b28e420c
0.48 progress
...
--HG--
extra : convert_revision : 23abf9a27f91b8191c12b24a8b2557e5e8750c21
2006-03-09 12:37:38 +00:00
Matt Johnston
9368e4db33
code was untested and wrong.
...
--HG--
extra : convert_revision : bd8c4eb7071bb69f5cf17715072ae625a5267324
2006-03-08 15:46:24 +00:00
Matt Johnston
ae15e644b1
removed some large informational files
...
--HG--
extra : convert_revision : 0f28afbb0c45c95898886ac570b8d29e4333fbd2
2006-03-08 15:07:52 +00:00
Matt Johnston
3a5c4b68bb
Update to scp from OpenSSH portable 4.3p2
...
--HG--
extra : convert_revision : e2bccdd6ba49edd575b1d0272c7dfee5f9f7acf6
2006-03-08 14:20:24 +00:00
Matt Johnston
a7a5365af2
some minor cleanups to the uClinux parts
...
--HG--
extra : convert_revision : cc8371d4710386987a5e587e4d4ea7f379398b4b
2006-03-08 13:48:05 +00:00
Matt Johnston
6ae3a09ef3
propagate from branch 'au.asn.ucc.matt.ltc.dropbear' (head 20dccfc09627970a312d77fb41dc2970b62689c3)
...
to branch 'au.asn.ucc.matt.dropbear' (head fdf4a7a3b97ae5046139915de7e40399cceb2c01)
--HG--
extra : convert_revision : dc4809882e1b9f2dcd3f8bbe38c74a0a52c39ce4
2006-03-08 13:23:58 +00:00
Matt Johnston
8608a8e64c
propagate from branch 'au.asn.ucc.matt.ltm.dropbear' (head 6c790cad5a7fa866ad062cb3a0c279f7ba788583)
...
to branch 'au.asn.ucc.matt.dropbear' (head fff0894a0399405a9410ea1c6d118f342cf2aa64)
--HG--
extra : convert_revision : fdf4a7a3b97ae5046139915de7e40399cceb2c01
2006-03-08 13:23:49 +00:00
Matt Johnston
2481693cf2
* Changes imported from Dropbear 0.47.
...
* bn_mp_clear.c is changed so that some vars are volatile,
so that the compiler won't optimise away
--HG--
branch : libtommath-dropbear
extra : convert_revision : 6c790cad5a7fa866ad062cb3a0c279f7ba788583
2006-03-08 13:22:52 +00:00
Matt Johnston
33defd1f9b
Just import the Dropbear 0.47 libtomcrypt changes
...
--HG--
branch : libtomcrypt-dropbear
extra : convert_revision : 20dccfc09627970a312d77fb41dc2970b62689c3
2006-03-08 13:02:58 +00:00
Matt Johnston
c57e1d8def
Re-import libtomcrypt 1.05 for cleaner propagating.
...
From crypt-1.05.tar.bz2, SHA1 of 88250202bb51570dc64f7e8f1c943cda9479258f
--HG--
branch : libtomcrypt-orig
extra : convert_revision : 5c0c50e93111636ccf8deb758a689ad713797baf
2006-03-08 12:58:00 +00:00
Matt Johnston
882a9ced90
merge of 4c883eb469d2d251ee8abddbc11ae4005db6da17
...
and bed6155e95a293c9fce7e889d283b5958f3035dc
--HG--
extra : convert_revision : fff0894a0399405a9410ea1c6d118f342cf2aa64
2006-03-08 12:53:11 +00:00
Matt Johnston
e4697de175
merge of 4cbdd6e0a0d8c061075b9ed7609a06c4547f67d3
...
and 5d396842815593611f0d61762440145d1fc74d5a
--HG--
extra : convert_revision : 4c883eb469d2d251ee8abddbc11ae4005db6da17
2006-03-08 12:53:09 +00:00
Matt Johnston
422f4f2b41
* Per-IP connection unauthed connection limits
...
* m_close() exits fatally on failure
* other cleanups
--HG--
extra : convert_revision : bed6155e95a293c9fce7e889d283b5958f3035dc
2006-03-08 12:41:27 +00:00
Matt Johnston
1dc0652444
Stomp on some minor warnings
...
--HG--
extra : convert_revision : 4cbdd6e0a0d8c061075b9ed7609a06c4547f67d3
2006-03-08 12:09:02 +00:00
Matt Johnston
b598996497
Exit with a message if the ssh protocol version is incompatible
...
--HG--
extra : convert_revision : 5d396842815593611f0d61762440145d1fc74d5a
2006-03-04 08:22:16 +00:00
Matt Johnston
a5a56874af
merge of 50848a51c2f9867bc10e81826190dbc326ea16b9
...
and 84e3597daa468534c4a34231ae8761f841a0f5ae
--HG--
extra : convert_revision : 11ad05bc47809dbfe9510b78805f6ce52896d884
2006-02-28 04:04:27 +00:00
Matt Johnston
af485f89cd
Merge of the uClinux-dist patch, should work in inetd mode
...
--HG--
extra : convert_revision : 976bfa569f133be97d6f57c89bffa0311a142be3
2006-02-28 04:03:49 +00:00
Matt Johnston
1eb9209afe
Only read /dev/random once when the program starts
...
rather than for every connection, to "conserve entropy".
--HG--
extra : convert_revision : 21df240b71c0af8454725dec9abb428dd4bb97a2
2006-02-11 15:15:37 +00:00
Matt Johnston
fcba907998
Fix up #ifdefs for tcp forwarding
...
--HG--
extra : convert_revision : a2d35689310c70ea6eaab017d8c38b8fb6044c2b
2006-02-01 09:05:13 +00:00
Matt Johnston
096ac021a9
merge of c9dc9c734d4724866a86987356e6aedeed1c93dd
...
and fe38e5c38c2e7d5a4bb76aee511d345f1c2d5ac2
--HG--
extra : convert_revision : 8f25eab3ed6221e164894808fbb8bc461b5cbdaf
2006-01-25 17:14:32 +00:00
Matt Johnston
b05ab854ae
Check that the output circular buffer is actually empty before
...
closing the channel (thanks to Tomas Vanek for his help).
--HG--
extra : convert_revision : 7fb3ca52f21072127c9615a5bdbc054c24669e51
2006-01-25 17:13:38 +00:00
Matt Johnston
fd0f873a36
Cancel a dbclient password prompt if the user presses ctrl-c.
...
Enter still has to be pressed since glibc blocks ctrl-c in getpass()
--HG--
extra : convert_revision : 1c8128fba89431f2460dd5914f0614850d529b76
2006-01-15 06:43:24 +00:00
Matt Johnston
d8e61e51de
* svr-tcpfwd.c: should be MAX_NAME_LEN not MAXNAMLEN
...
--HG--
extra : convert_revision : f3f6f865b6d723add601feabf155a1fcc084b0aa
2006-01-15 06:39:48 +00:00
Matt Johnston
bf045a0564
* options.h: bump the version number
...
--HG--
extra : convert_revision : dd57a0c1e42c1680a9572bdec9d6eed04fa970c5
2005-12-09 06:10:27 +00:00
Matt Johnston
cec27b5bb4
* Update changelogs for 0.47 release
...
--HG--
extra : convert_revision : b16d02c98cac64d67e300b9beca3b61b49ce4ae3
2005-12-08 11:54:18 +00:00
Matt Johnston
a75c71299b
* fix incorrect array sizing
...
--HG--
extra : convert_revision : e1322d52370db709625e024975f7c97fb8ed58c7
2005-12-08 11:45:33 +00:00
Matt Johnston
187a7dcfdc
* Update to debian 0.46-2
...
--HG--
extra : convert_revision : 0ab0820424fd8636ca4aa120bce2ff6f0d5e9fa0
2005-12-08 08:17:42 +00:00
Matt Johnston
9a07b93cb3
* workaround for systems such as glibc 2.1 that have
...
sockaddr_storage.__ss_family rather than sockaddr_storage.ss_family
--HG--
extra : convert_revision : 702c67055040d451a946e8c6aadbb6f7af1d3999
2005-12-06 17:49:59 +00:00
Matt Johnston
a4bf09e7b9
* common-channel.c: get rid of the read()-from-writefd code
...
which caused problems when redirecting to or from /dev/null
--HG--
extra : convert_revision : a4c1a9be4db326f8f7adcf30f876fadedf87b203
2005-12-06 17:32:53 +00:00
Matt Johnston
6c56271e8c
* fix -L forwarding on the client, broke last rev
...
--HG--
extra : convert_revision : 826db75f8001f7da7b0b8c91dcf66a44bf107b49
2005-12-06 16:51:55 +00:00
Matt Johnston
a673d60963
* add -g (dbclient) and -a (dropbear) options for allowing non-local
...
hosts to connect to forwarded ports. Rearranged various some of the
tcp listening code.
* changed to /* */ style brackets in svr-authpam.c
--HG--
extra : convert_revision : c1e04e648867db464fe9818c4910e4320cd50c32
2005-12-04 16:13:11 +00:00
Matt Johnston
736f370dce
* options.h, common-kex.c: fix support of 4096 byte host keys
...
--HG--
extra : convert_revision : 096f29c430c23f0140f0cf272942a13046483ec6
2005-11-30 10:11:24 +00:00
Matt Johnston
4a4e1b49ec
* keyimport.c: fclose() the key file to make sure data gets written
...
--HG--
extra : convert_revision : 54840316c94733a793222ad54331ab207b4097e5
2005-11-30 06:32:26 +00:00
Matt Johnston
0314b2cf45
* common-algo.c: use zlib for dbclient
...
--HG--
extra : convert_revision : 71c8d2ac84129e8aa204e7e35a44066fd1bea584
2005-11-08 11:35:52 +00:00
Matt Johnston
f1d36b1970
* include netinet/in_systm.h if available before netinet/ip.h, since
...
netbsd seems to require it for some reason. hooray for many unices.
--HG--
extra : convert_revision : 762eefb16551bf355cbaffb85453a34221c7a2ff
2005-10-31 07:49:57 +00:00
Matt Johnston
b131f74533
* rename infd/outfd to writefd/readfd, to avoid confusion
...
--HG--
extra : convert_revision : e3e7dc2cf75ad60c83a5b4307c210fee2fe90434
2005-10-20 16:53:12 +00:00
Matt Johnston
1632bd4a18
- a hack for grahame to run dropbear with "none" cipher.
...
DO NOT USE IF YOU DON'T KNOW THE CONSEQUENCES
Here is your noose. Use it wisely.
--HG--
branch : insecure-nocrypto
extra : convert_revision : 88ed2b94d9bfec9a4f661caf592ed01da5eb3b6a
2005-09-23 16:29:19 +00:00
Matt Johnston
a2d343b108
- new function to set "low delay" for a packet, set the ip TOS bit
...
(can help significantly over some links)
--HG--
extra : convert_revision : 685c1004b66533aebbd45810533de698a786a4ea
2005-09-21 15:58:19 +00:00
Matt Johnston
a43af44e9c
Forgot to revert echo flag
...
--HG--
extra : convert_revision : edab4eafef0717badd628115fac4f4e2793ba22d
2005-09-20 17:36:32 +00:00
Matt Johnston
876b7081d8
added keyboard-interactive client support
...
--HG--
extra : convert_revision : 3df738e42f4fc8b7f0f3ff9ca767386f54edb1ea
2005-09-20 17:35:21 +00:00
Matt Johnston
cb2cb15916
Log when pubkey auth fails because of bad pubkey perms/ownership
...
--HG--
extra : convert_revision : 43e1a0c8365776577acd814d708027fcddcb02ef
2005-09-20 08:59:46 +00:00
Matt Johnston
3510531683
add note about compiling for 386
...
--HG--
extra : convert_revision : 1928fd3c473e77b946eab289a1f4209d20a59af2
2005-09-06 04:04:51 +00:00
Matt Johnston
744268f388
- add explicit check that correct keytype exists for pubkey verification
...
--HG--
extra : convert_revision : 8d86185c9b7efcedc1d640208c03bb1b377cc502
2005-09-06 03:57:21 +00:00
Matt Johnston
18b082955b
* ensure that we only handle open confirmation/failure
...
for channels where it is expected
--HG--
extra : convert_revision : acc1ba014aae08ecb3159282fe87defe67899a40
2005-09-05 17:10:32 +00:00
Matt Johnston
70438b7715
merge of da30137eaac417f50a323f9ddd29999ec21261e0
...
and fb45ddf51e20f0ff007eb8abc737de3c024f45cc
--HG--
extra : convert_revision : 2b620b0819e95e4181aa50b645a94e3a7f4d4840
2005-09-05 15:16:52 +00:00
Matt Johnston
53681cbdb6
* use own assertions which should get logged properly
...
--HG--
extra : convert_revision : 3dc365619f0840ab5781660b1257a9f22c05d3fe
2005-09-05 15:16:10 +00:00
Matt Johnston
e7f579b75d
common session initialiser doesn't need to call
...
chansessioninnitialise(), fix up header definition
--HG--
extra : convert_revision : 580bc5e6e1413daf46156a181259c244ce1ab174
2005-09-05 12:13:44 +00:00
Matt Johnston
21c4cd7cb2
add a missing freeaddrinfo()
...
--HG--
extra : convert_revision : 861515d7429c76542803c49a1fc972cba6a760b4
2005-09-05 12:12:55 +00:00
Matt Johnston
5a6404712c
use a buffer rather than raw char array for creating
...
the comma-seperated algorithm lists
--HG--
extra : convert_revision : bd00bc1e914dc1a816e9a2cca38c7bd3b6865dd0
2005-09-02 15:35:18 +00:00
Matt Johnston
b332e4aaf9
merge of 57902417ad22502b79c63fcabb7f4a8c8449e682
...
and 92bb4dd3f6f212342a5c991f738b987d7a07a6b2
--HG--
extra : convert_revision : f4bf35030bf75c46ab649774ebaf7bcf8e545b04
2005-09-02 15:33:45 +00:00
Matt Johnston
cff00f43c2
disapproval of revision ac41ae96770156bca2c0193b500ee07ee8d9a027
...
--HG--
extra : convert_revision : f90dd77112802d0d9252e4c124a14d0f4fcd9011
2005-09-02 15:33:09 +00:00
Matt Johnston
1cf8d6b631
Change the preferred algorithm order
...
--HG--
extra : convert_revision : ae8391fa550707447ac60d661eb07bab82e4b53f
2005-09-02 07:43:42 +00:00
Matt Johnston
f724ece386
Increase algorithm list buffer length
...
--HG--
extra : convert_revision : c821fb2723909e932bb390b2eb46a9e0c6f28c30
2005-09-02 07:14:50 +00:00
Matt Johnston
aba295323e
bytes/bits in a comment.
...
--HG--
extra : convert_revision : e21a3d00c4ec3bede096484bb813940fe68cc259
2005-08-30 18:00:11 +00:00
Matt Johnston
c804883350
trans, not recv for macsize
...
--HG--
extra : convert_revision : 39c4f7320b3a10ef7ef5a41406fe014cc9040ee9
2005-08-30 17:56:53 +00:00
Matt Johnston
cebbc4e2b7
- register AES and Twofish even if just the 256 bit key variants are used
...
--HG--
extra : convert_revision : 6a05bc31e3e23ebb4c75cc18c69af7a4977e2313
2005-08-30 17:46:34 +00:00
Matt Johnston
77f4520207
- "twofish-cbc" is an alias for "twofish256-cbc"
...
- increase the maximum key length constant
--HG--
extra : convert_revision : 8e534d4002dc8572041e6c7091ca3c694ce680fa
2005-08-30 17:30:39 +00:00
Matt Johnston
ca77392bd1
- Fixed twofish algorithm naming so it actually works.
...
- Added support for aes256, twofish256 and sha1-96
- Fixed some debugging statements
--HG--
extra : convert_revision : 598835dadaddb1e95d4ac99f8a1be4ba51639000
2005-08-30 16:58:57 +00:00
Matt Johnston
71c07ed930
Make a variables static
...
- Patch from Andreas Mohr
--HG--
extra : convert_revision : de230e99968203f63995d49e9123b3ac45feab71
2005-08-24 16:43:29 +00:00
Matt Johnston
20ceb493b6
channel.h: make definition extern
...
svr-authpam.c: be smarter comparing pam prompts
--HG--
extra : convert_revision : 6962b52a31b14eb017c838d5242f476e1726f84c
2005-07-29 05:37:20 +00:00
Matt Johnston
e444f0cfe6
- progress towards client agent forwarding
...
(incomplete and does not compile)
--HG--
branch : agent-client
extra : convert_revision : 01038174ec27245b51bd43a66c01ad930880f67b
2005-07-18 14:32:52 +00:00
Matt Johnston
b8e28df43a
* ... and a bit more for the CHANGES
...
--HG--
extra : convert_revision : 872862335240c15a3ea844cc799224ae1c826cfd
2005-07-08 19:20:10 +00:00
Matt Johnston
2ed6c25c80
* 0.46 CHANGES done
...
--HG--
extra : convert_revision : 1e0a4afd5e8b0193aaee2aff003deadcf76188e6
2005-07-08 19:17:09 +00:00
Matt Johnston
5002c95048
* close a file descriptor after we've shutdown() both sides, to avoid a leak
...
--HG--
extra : convert_revision : 06fda32c634cf16a4c75797441ec2bd533f571c6
2005-07-08 15:04:06 +00:00
Matt Johnston
9888ffd8d1
* preparing for 0.46 release
...
--HG--
extra : convert_revision : 26128a06f1c223f8bd4a26bcdf2f34c9103cab5e
2005-07-08 14:28:21 +00:00
Matt Johnston
aaa0b1ec3c
merge of 9522146cb07d4576f161fc4567c2c2fbd6f61fbb
...
and b11630c15bc4d0649dba51c3572cac6f44e0ab0e
--HG--
extra : convert_revision : e0686662cdbee8c0b06e72e6105a390ea4f4c007
2005-07-08 13:28:03 +00:00
Matt Johnston
03731c723b
* patch up to date with debian 0.45-3 diff
...
--HG--
extra : convert_revision : d0935a5d91dac334274693f8d9cd7ae6fd8c2c31
2005-07-08 13:27:28 +00:00
Matt Johnston
215a369c2b
merge of 197e1bd25c1741218fbe0d73a1e37d4082054216
...
and 4dc12a3e22d2e0c63f65a9d48b07b37db7567899
--HG--
extra : convert_revision : dda1c40ce86d3ab6f27279669a5174c945eb7eed
2005-07-08 13:19:20 +00:00
Matt Johnston
8f75480ebc
* move RSA_BLINDING to options.h
...
--HG--
extra : convert_revision : e3f32a86aafc1d806b2bee9405020368f9706d85
2005-07-08 13:19:10 +00:00
Matt Johnston
fb1fd7f6f4
rename PubkeyList to SignKeyList for clarity
...
--HG--
extra : convert_revision : 838e354daf3ae9a1dce710526c37fec9859ee6d1
2005-07-08 11:32:09 +00:00
Matt Johnston
109b87d2a3
Change the format of for loops, gcc4 produces incorrect binaries with
...
the previous code.
--HG--
extra : convert_revision : 560fb575d3fa53924774c7db897e304b35ba07e3
2005-07-08 11:30:54 +00:00
Matt Johnston
975b94c5f2
* fix off-by-one closing open FDs
...
--HG--
extra : convert_revision : cb23685eb24523d372c07830faea3a96e7c37917
2005-06-02 22:53:18 +00:00
Matt Johnston
d92ca4d9d1
merge of 72b0db220b7fc6b4fb6079d6b82c843186bab5a7
...
and feb4fdd2cc17783a3cd158d06be59a57382b398d
--HG--
extra : convert_revision : afb17b22815dff550c33fc158fcf0f6233b6d330
2005-06-02 16:21:58 +00:00
Matt Johnston
83f6c8cddb
* defined USING_LISTENERS when tcp forwarding is enabled but not
...
X11 or agent forwarding
--HG--
extra : convert_revision : dd6af3f334c72903101869859512faa88ed49e6c
2005-06-01 16:15:38 +00:00
Matt Johnston
3d58025805
merge of 7d53fee744460df7d2297614c9a4a8a6722eb277
...
and cc783df3845d0779e2407f0a83fbb605c12efa7d
--HG--
extra : convert_revision : 7494f62a22beadfca8acdf77d8916f36245db04f
2005-05-27 16:37:58 +00:00
Matt Johnston
a8785cf719
Seperate out exit errors from setgid()/initgroups(), and errors from setuid(),
...
to make debugging a bit easier
--HG--
extra : convert_revision : ea1f23ab2f94d0416e0bac38f63c9850396184c4
2005-05-27 16:34:57 +00:00
Matt Johnston
0f0a8472d7
* add a "label" argument to printhex()
...
* make some vars static in random.c
--HG--
extra : convert_revision : ef941a918e42e8af23b132946f44e6836a327e71
2005-05-10 17:02:05 +00:00
Matt Johnston
e48e25a548
* change include path for libtomcrypt 1.02
...
--HG--
extra : convert_revision : 77a587ebc40afe3a2ac02db1676dfc01044c618a
2005-05-10 17:01:16 +00:00
Matt Johnston
7b403dc57f
Switching to libtomcrypt 1.02
...
(still has problems)
--HG--
extra : convert_revision : 4dfd70544ed9a766876ddda9f6ac3f26054eb3db
2005-05-09 09:32:33 +00:00
Matt Johnston
eb741b9cc9
Preparing for 0.46
...
--HG--
extra : convert_revision : 7f9d2401cc4f49955f59327a6e8213b1911784bf
2005-05-09 09:31:49 +00:00
Matt Johnston
68445e1e34
merge of 6b56bdff53b47ae7366d93b496ce353d9e3753dc
...
and b68c53583ba80ad14fd0ba70ff26ea3dbd8e8823
--HG--
extra : convert_revision : 0a69485db882269664dcd5ec88e66b8ea9570855
2005-05-05 04:00:10 +00:00
Matt Johnston
cf585ba1de
- refactored random mp_int generation and byte->mp_int code
...
- added RSA blinding
--HG--
extra : convert_revision : 5d5b4657a24a1c8f53c6fc45d5ec29ddb85fb45a
2005-05-05 03:58:21 +00:00
Matt Johnston
298a5717bc
compile fix when TRACE debugging is enabled
...
--HG--
extra : convert_revision : 7844ac7e5a24b88231de2af7520c49e56820a87c
2005-05-04 15:31:17 +00:00
Matt Johnston
347e8bd839
Fix memory leak (reported by Boris Berezovsky)
...
--HG--
extra : convert_revision : 22fe832906de79fb9c641451acce4551bbce9a0c
2005-05-04 15:22:40 +00:00
Matt Johnston
b952231df1
* warn if we seem to be blocking on /dev/random
...
--HG--
extra : convert_revision : a160efd238030ac4f7fd8304c5a87928145feccc
2005-04-24 15:56:36 +00:00
Matt Johnston
51be125ff9
- allocate correct buffer size for channel info, rather than sizeof(pointer).
...
--HG--
extra : convert_revision : 0f2848d140f76a1dabbe5930e9b0a5d4f282f90b
2005-04-24 10:30:33 +00:00
Matt Johnston
8bc7b0ff5a
- note that we should warn if blocking on read from /dev/random
...
--HG--
extra : convert_revision : 7c8e187cbcbdf25e2a2cdd8ee5176a913df44e32
2005-04-22 14:52:27 +00:00
Matt Johnston
4ef72ddc16
merge of 954df0829153a81396cf111410fae269457c3ad6
...
and d7e8c6af971415504a2b626bf6dc1a4d50cdc5d7
--HG--
extra : convert_revision : e99d4659762ca919e4c925aa2c7173a7faad1715
2005-03-13 16:23:19 +00:00
Matt Johnston
a1fd2da0f9
* Add references in the manpages to the dbclient manpage
...
* Fix multiple typos in client usage information
--HG--
extra : convert_revision : 6b29d70d3c4b1933d3c8f6b3e63692db76ffb51f
2005-03-13 16:23:15 +00:00
Matt Johnston
269ee62cd4
Merge in Debian package changes from 0.45-3, grab the dbclient manpage
...
--HG--
extra : convert_revision : 63530dac218f507c8650b544ef635d03fbc5f270
2005-03-13 16:22:36 +00:00
Matt Johnston
f45eafe342
* fix longstanding bug with connections being closed on failure to
...
connect to auth socket (server)
* differentiate between get_byte and get_bool
* get rid of some // comments
* general tidying
--HG--
extra : convert_revision : fb8d188ce33b6b45804a5ce51b9f601f83bdf3d7
2005-03-13 13:58:14 +00:00
Matt Johnston
a68755af2b
propagate from branch 'au.asn.ucc.matt.dropbear.nonblock-stdout-stderr' (head 0aee4615c96aea0526736b394455958c1fbb47c9)
...
to branch 'au.asn.ucc.matt.dropbear' (head dff46fd69e33acd167e41dfd18b948a82c5489d1)
--HG--
extra : convert_revision : c172bcef0275446df75226095369a971cea38ac7
2005-03-13 12:03:27 +00:00
Matt Johnston
e903109d9f
* fix comment style in options.h
...
* bump debian version
--HG--
extra : convert_revision : d815305b19d789fe97890c3fdedb55df2e9cf324
2005-03-07 04:25:43 +00:00
Matt Johnston
a3bb3137ac
changes for 0.45
...
--HG--
extra : convert_revision : ced3f1d1fe81c6cc53ca2c15ac71a84d894971d8
2005-03-07 03:57:26 +00:00
Matt Johnston
074d8f0a26
* Reset the non-blocking status of stdout and stderr as well on exit
...
--HG--
branch : nonblock-stdout-stderr
extra : convert_revision : b33adcc19cf4616e1ec529da774659530dd551f4
2005-03-02 04:14:26 +00:00
Matt Johnston
2d28663f53
* don't add a 'static' prefix to binary names
...
--HG--
extra : convert_revision : 7d2393b48b6b8ed87d3bed5685cf598356eada8d
2005-03-02 04:13:01 +00:00
Matt Johnston
4127be0a95
* add SSH_ASKPASS support (based on patch from Paul Whittaker
...
* don't exit if setnonblocking() fails with "not supported by device"
(allows redirection from /dev/null)
--HG--
extra : convert_revision : 02fb18acdb680a868b2bfbd6452b2ccdb4cdde99
2005-02-28 13:01:00 +00:00
Matt Johnston
03d78bbb31
* respect DO_HOST_LOOKUP config option
...
--HG--
extra : convert_revision : ab193dd162b03bdd935759fa667ff394a5e29734
2005-02-28 10:15:16 +00:00
Matt Johnston
6013d993b9
put back 'return;' on empty terminal mode strings which was erroneously
...
removed in 3a6c6eeefe450a64e244ee39030938ddaacb8987
--HG--
extra : convert_revision : 75ed8083a683ebdb2fceca4a856d803fdeeb60af
2005-01-19 11:41:04 +00:00
Matt Johnston
b7dbb29e68
Read "y/n" response for fingerprints from /dev/tty directly so that dbclient
...
will work with scp.
--HG--
extra : convert_revision : 1ec067604618a314ad36464920f08c7113d09aa3
2005-01-11 16:17:03 +00:00
Matt Johnston
37da919b7d
Removed obselete (and incorrect) comment.
...
--HG--
extra : convert_revision : 79bdca55540f5a7e2ffbad4481668066185bf10a
2005-01-07 16:39:48 +00:00
Matt Johnston
9d4ef36e09
Version number needs munging so that comparison works correctly
...
--HG--
extra : convert_revision : 332396ccd4bc43741eb0bed94e5b55a04dd2af0e
2005-01-03 10:01:23 +00:00
Matt Johnston
c0ddf3df0c
Forgot to increment the version number
...
--HG--
extra : convert_revision : fc84f73954840b0ed9b52225b4874c1aacb47c19
2005-01-03 09:33:05 +00:00
Matt Johnston
74055a3884
Make debian/rules executable
...
--HG--
extra : convert_revision : 99b61ecb1e074f6e384c6548aedc8186770c2318
2005-01-03 09:23:22 +00:00
Matt Johnston
8c1a429c44
Fixed DEBUG_TRACE macro so that we don't get semicolons left about the place
...
--HG--
extra : convert_revision : d928bc851e32be7bd429bf7504b148c0e4bf7e2f
2005-01-02 20:25:56 +00:00
Matt Johnston
b5bd8591e7
0.44 release changes
...
--HG--
extra : convert_revision : 47d6b5589a4eaf707ed1c3685d9ef49306af18d8
2005-01-02 17:08:27 +00:00
Matt Johnston
e6c957caaa
Fix so that getnameinfo() is passed the address-specific structure size. This
...
lets it work on Solaris (and probably other platforms)
--HG--
extra : convert_revision : b486b773f163af8462b0ef6565ac4285a54708eb
2005-01-02 12:04:45 +00:00
Matt Johnston
6d75298284
random.c: fix missed instance of DROPBEAR_EGD_SOCKET
...
--HG--
extra : convert_revision : 0be7aaee2230fa65f252b2e74deee7102558ceb6
2004-12-27 16:38:44 +00:00
Matt Johnston
9d43183704
Log the IP along with auth success/fail attempts
...
--HG--
extra : convert_revision : 25eab43bd46e931fd4afecec49c22b9311062099
2004-12-23 17:00:15 +00:00
Matt Johnston
e7677a5e8d
Rearrange preprocessor parts so that compilation with various options
...
disabled works OK.
--HG--
extra : convert_revision : cc92f744e34125062d052b757967e167f19d6db5
2004-12-22 15:37:50 +00:00
Matt Johnston
7dfb2bfcda
loginrec.c: replaced erroneously removed function definition
...
--HG--
extra : convert_revision : b433b5f38ae275c058addac9897f221edd4e32f8
2004-12-20 14:46:12 +00:00
Matt Johnston
34445aa819
Cleaning out various dead wood found with -dead_strip
...
bignum.c: mptobytes now resides in dss.c
loginrec.c: remove lastlog code since it isn't used.
dbutil.c: removed obselete usingsyslog variable
channel.h: client channel type only defined for client compile
common-algo.c: s/rijndael/aes/
--HG--
extra : convert_revision : 411ea4e70506ecb0202376f94bcf2d330603d042
2004-12-20 14:24:57 +00:00
Matt Johnston
42c691a051
Cleaned up the random code, use /dev/random by default,
...
and remove the addrandom() function which wasn't used.
--HG--
extra : convert_revision : d560d214ad20001f8ef5d5494ff3c97e6184d9cc
2004-12-20 13:11:15 +00:00
Matt Johnston
8b32e8a08c
includes.h: include mycrypt.h rather than mycrypt_custom.h
...
--HG--
extra : convert_revision : 63ea0f9a911a31bd88913afdfc31582240b0acfb
2004-12-19 16:28:08 +00:00
Matt Johnston
37ff2eaf2a
configure.in: fix a status message
...
--HG--
extra : convert_revision : 14dde9c1d5a1f0d631336b82a9ff830b4e25a54a
2004-12-19 07:46:16 +00:00
Matt Johnston
27aa148e02
atomicio.c: one less compile warning
...
--HG--
extra : convert_revision : 25808b4e64822230283602dee93b85d9d4fa6507
2004-12-19 07:43:37 +00:00
Matt Johnston
8f14a1cc38
Pristine compilation works.
...
--HG--
extra : convert_revision : 64faed12a3a33720986786db602714dfaa4bc599
2004-12-17 06:26:55 +00:00
Matt Johnston
3e53f28f6e
- Fixed a couple of compile warnings
...
- First public monotone import
--HG--
extra : convert_revision : 79e029a8b3adf823f0b6f7d6b1b5c4b9ab868eaa
2004-11-27 19:58:34 +00:00
Matt Johnston
96823c424d
Initialise the outgoing packet queue
...
--HG--
extra : convert_revision : d9981dbae7bf47d3bd6d1bcf4e602e7bf682082f
2004-11-03 13:47:44 +00:00
Matt Johnston
08cb903731
-i works with scp now.
...
--HG--
extra : convert_revision : 0d1ed055bb2e8b8eca60cbf1cb8cab81688dbead
2004-10-17 10:35:19 +00:00
Matt Johnston
5c6e8b833e
Initialise the "lastexit" variable so that we don't get session channels
...
terminating prematurely.
--HG--
extra : convert_revision : 5cb8d5a7c8fe405fa4d49906f66a61590ae4a087
2004-10-17 08:19:47 +00:00
Matt Johnston
028e79ddda
use inst_ rather than inst, so it doesn't try to install "all".
...
--HG--
extra : convert_revision : 17b3eab398414e4bd5e77289bcc73f6185c4c43f
2004-09-21 12:14:20 +00:00
Matt Johnston
5ebfa4aaed
strdup() variables correctly for the PAM conversation function
...
--HG--
branch : private-rez
extra : convert_revision : 706adc0b1c61920dc70b6b203b2033e27bc46c64
2004-09-21 11:42:03 +00:00
Matt Johnston
c2af67efd3
propagate of 82bb923d0154750ef716b66b498561f882891946 and f51a272341ee12268fe7028bc2f2bad66c603069 from branch 'matt.dbclient.work' to 'matt.dbclient.rez'
...
--HG--
branch : private-rez
extra : convert_revision : 440ee4177122c8a873ebf8984a90f96a9bd8a56a
2004-09-21 10:08:21 +00:00
Matt Johnston
6766dfae26
merge of cc7d47b52fc39dc6940ea8fff5b782fbd44a2f6c
...
and f697d6be3bdf1a59bfd78dc1239ea417d52904a7
--HG--
extra : convert_revision : b1cb6d6bba496c942d1850d0f6ca5d71c0deaf1f
2004-09-16 06:19:39 +00:00
Matt Johnston
199b67a68c
Added dropbear.8 and dropbearkey.8 back in
...
--HG--
extra : convert_revision : dda3a93a5b9fb3338ea7fc45c45da6b76e3850f0
2004-09-14 15:26:50 +00:00
Matt Johnston
644488a5f3
put the #ifdefs back in for authpam
...
--HG--
extra : convert_revision : 93ad501313c213d77753d57def15f2c8cf5db8d7
2004-09-14 14:36:42 +00:00
Matt Johnston
1ace08645a
Oops, PAM was on by default in options.h
...
--HG--
extra : convert_revision : 8f9d07675e82e64ef083bbdb833d0b2dbfe4d187
2004-09-14 13:47:10 +00:00
Matt Johnston
636b041b9b
0.44test4 probably
...
also bumped the channel recv window sizing
--HG--
extra : convert_revision : 2ab172def950d852426cf2c2e066c29aa50e2de9
2004-09-14 13:22:32 +00:00
Matt Johnston
a41f9dc036
calloc memory rather than mallocing it - can't hurt too much, and is
...
probably a bit safer
--HG--
extra : convert_revision : bbd2edbb1410ea8fd7bee089f60154f76d2a0ab7
2004-09-14 13:18:16 +00:00
Matt Johnston
448a05ae2c
propagate of f51a272341ee12268fe7028bc2f2bad66c603069 and ab35ee4292ea910d4871c3609d6100fe34300720 from branch 'matt.dbclient.rez' to 'matt.dbclient.work'
...
--HG--
branch : private-rez
extra : convert_revision : 23e9cf6a5b5e33f172b7b8505c0731ce9c0b93df
2004-09-14 13:09:29 +00:00
Matt Johnston
099c9a3232
PAM improvements
...
--HG--
branch : private-rez
extra : convert_revision : c8f9300c5d598fe6003fcf19c831f5982620ec98
2004-09-14 12:51:16 +00:00
Matt Johnston
2575e227a5
Don't need to burn the payload buffer since process-packet.c does it
...
--HG--
extra : convert_revision : 12619953d6d88a1b8b0afc4dd5f6e0e2f8b324a0
2004-09-12 05:53:48 +00:00
Matt Johnston
fa26b59b0c
propagate of 08347df3bca787bd3621602fe2b466c85c9dc3e2 and 717950f4061f1123659ee87c7c168805af920ab7 from branch 'matt.dbclient.rez' to 'matt.dbclient.authpam'
...
--HG--
branch : private-rez
extra : convert_revision : 555c429bf4e557ea5fd0af9db3987166d8217d8b
2004-09-12 05:52:36 +00:00
Matt Johnston
c23ffe4bc1
propagate of 717950f4061f1123659ee87c7c168805af920ab7 and 839f98f136788cc1466e4641bf796f96040a085d from branch 'matt.dbclient.authpam' to 'matt.dbclient.rez'
...
--HG--
branch : private-rez
extra : convert_revision : d58a4ff37f9784978a07df6a944f7dbae8196f6d
2004-09-12 04:56:50 +00:00
Matt Johnston
7ed5870ed9
Read the last line of a file without a finishing '\n' correctly
...
--HG--
branch : private-rez
extra : convert_revision : f64591461a40d54a2bd2e12493253ec76eab1ff2
2004-09-02 18:36:11 +00:00
Matt Johnston
8559be015a
Check for non-matching algos properly
...
--HG--
extra : convert_revision : 20ab9edd3f3f714ecc4630bb97912185d88aa376
2004-09-02 15:24:17 +00:00
Matt Johnston
cb0657bdf3
WCOREDUMP finally
...
--HG--
extra : convert_revision : 12aa4fdb328febedfd3fd50d1dae783d8a0dab14
2004-08-31 08:52:41 +00:00
Matt Johnston
15fb479e94
Leak found with MallocDebug - it's kinda useful
...
--HG--
extra : convert_revision : 43fdd8b10616b9d5e11f677d16763c7a876a5ec3
2004-08-30 15:02:45 +00:00
Matt Johnston
0378cffafc
Load the hostkeys for inetd too - oops
...
--HG--
extra : convert_revision : 815f75b9a450396fd5a9cca286803a91f0edc1a9
2004-08-30 13:26:42 +00:00
Matt Johnston
51fb224ef8
options.h
...
--HG--
extra : convert_revision : 10b3693ebf2d3f713a16aedf214e26bc8a04b9e6
2004-08-27 17:01:18 +00:00
Matt Johnston
a4516b4261
merge of 00b67a11e33c3ed390556805ed6d1078528bee70
...
and a3e68842a71eaba22c23468ff95fded952acb973
--HG--
extra : convert_revision : 51e1bd8be97b4591773adef1b4955f60100f09dd
2004-09-04 14:19:19 +00:00
Matt Johnston
a952d23781
Add help text that a symlink to "ssh" works
...
--HG--
extra : convert_revision : afa6de30e7e296599bde7f5f8082da551c7a997a
2004-08-27 15:20:47 +00:00
Matt Johnston
69282617fd
merge of 50be59810e462f9f44f55e421227d6aa0b31982b
...
and 69b007796063cb5f042be7cca2d479e90db869c3
--HG--
extra : convert_revision : 5d0dfaa8c0ee6c728a3b4f0f0855199ba729db83
2004-08-27 14:39:01 +00:00
Matt Johnston
51a74b4799
- added circular buffering for channels
...
- added stderr support for the client
- cleaned up a bunch of "unused" warnings, duplicated header definitions
- added exit-status support for the client
--HG--
extra : convert_revision : 5bdf806d8b440c87f7235414662f4189195618f4
2004-08-26 13:16:40 +00:00
Matt Johnston
2dcd6b22d9
Nasty.
...
--HG--
extra : convert_revision : e1229cd01c3007206d2937ea390ad4966c289a5a
2004-08-24 18:12:18 +00:00
Matt Johnston
857dfdeb9e
Fix if the first write fails
...
--HG--
extra : convert_revision : 5a12aa1aa66c9cfd5d0097acea235cd3cd7658ab
2004-08-24 07:22:36 +00:00
Matt Johnston
70b7c24cb0
Fix for "-l" scp option
...
--HG--
extra : convert_revision : 700ba4c9a06b892fa9742bc8f3b6fe73a32f94f7
2004-08-24 05:05:48 +00:00
Matt Johnston
e089ee4d85
Default port is now set as a string
...
--HG--
extra : convert_revision : c57157250f3c9339a1401b802b6c6e58748f4097
2004-08-24 04:12:08 +00:00
Matt Johnston
d254e0191d
Allow leading lines before the ident banner when connecting
...
--HG--
extra : convert_revision : ae4b1bdb29e60927c032674800f0258fc5966807
2004-08-24 04:10:37 +00:00
Matt Johnston
0ab18bd14c
merge of 5c31199418631253a3d311fe3b1ff87351e1c9ca
...
and c84edf4a78416c5c3172871d3c74d7fd64afab2d
--HG--
extra : convert_revision : 37d06b8560f822a1636a17e8f4739f6ab68f20ce
2004-08-24 04:07:41 +00:00
Matt Johnston
aaac206345
Change the way we load keys/ports so we don't print error messages into our
...
socket.
--HG--
extra : convert_revision : b830e790bd08933685502f36d8e7838f143f2f2f
2004-08-23 05:27:34 +00:00
Matt Johnston
f3761a3eda
oops, the fcntl() was commented out
...
--HG--
extra : convert_revision : 83838fc3cc5ef5a89614c05222cab621ede5cd4e
2004-08-23 02:46:24 +00:00
Matt Johnston
aba8a3e2d4
Move the revert-to-non-blocking-stdin code to cli-session so it
...
always gets hit.
--HG--
extra : convert_revision : 3eb50d87fa6439d336b2238926fbed5066302d30
2004-08-22 09:23:59 +00:00
Matt Johnston
545ce7d8bf
Fix for printing out things with inetd mode when we have DEBUG_TRACE
...
compiled in but no -v: we don't want to print messages out since it
goes to the socket (and over the wire - bad).
--HG--
extra : convert_revision : f18a0cff74b01ad04543718db6aac12857851b3c
2004-08-22 09:23:11 +00:00
Matt Johnston
3840a482c7
Remove obselete documentation
...
--HG--
extra : convert_revision : c4ca3b12cdef1ae3b4ce36e36b4a2f4a77b167f6
2004-08-19 15:27:47 +00:00
Matt Johnston
4dd70c433e
Mention the race condition between setting the childpid entry, and
...
the child exiting.
--HG--
extra : convert_revision : 0acd2d97675d6a45fa1664790b4b9c891461de10
2004-08-18 16:42:08 +00:00
Matt Johnston
abf66aa7a1
Don't try to remove non-eixtant listeners
...
--HG--
extra : convert_revision : 87058f74626cd6795ecd495cc22779618c70eaa8
2004-08-18 16:31:05 +00:00
Matt Johnston
1e94425015
DEBUG_TRACE now only triggers with -v on the cmdline
...
--HG--
extra : convert_revision : 91ef4ca657cd116dba148a50a90c8bcc5d206d4b
2004-08-18 15:48:25 +00:00
Matt Johnston
a69e355a06
Don't leave the stdin FD non-blocking on exit - busybox doesn't like it.
...
--HG--
extra : convert_revision : 9c2b10bf10f9d38f62490346b53268a07afa0c3a
2004-08-18 12:42:21 +00:00
Matt Johnston
e17d27d91d
Auth doesn't timeout after 5 minutes.
...
--HG--
extra : convert_revision : d7df458117bc7af1d7c748c52e06cf8ca03113c1
2004-08-18 09:14:43 +00:00
Matt Johnston
cc1860bc86
Stupid DSS hostkey bug fixed.
...
--HG--
extra : convert_revision : f8c94ac62bf0766d4b468c3ef88db8a11c5f75f4
2004-08-18 09:14:30 +00:00
Matt Johnston
f3c8bb2bce
merge of 00b67a11e33c3ed390556805ed6d1078528bee70
...
and 42c7bdf484b16e279a0f68604a4346d8fa5ed70c
--HG--
extra : convert_revision : edf8bd9174de26de093d842aa4bd9cb43c2e257b
2004-09-04 14:19:17 +00:00
Matt Johnston
ee23b01f0b
Some small fixes for unused vars, and old messages
...
--HG--
extra : convert_revision : 83d9a25ee973ab65fa64dcf8595838b160c21663
2004-08-17 11:14:13 +00:00
Matt Johnston
3cacc54b78
Small fixes
...
--HG--
extra : convert_revision : 7f568ec9a453957b16efab56c215a4914f0cebf3
2004-08-17 10:40:31 +00:00
Matt Johnston
4657ed1446
#ifdef for PENDIN
...
--HG--
extra : convert_revision : a9c59907d9b02918f78f5d0f9e7bc67be0b7ca6f
2004-08-17 10:29:04 +00:00
Matt Johnston
4a52217ed4
default initialisers for mp_ints
...
--HG--
extra : convert_revision : af69bacb50a31523e383e8f73844d04681f9e394
2004-08-17 10:20:20 +00:00
Matt Johnston
954a8dce0f
fix for AIX not having WCOREDUMP
...
--HG--
extra : convert_revision : 9a728aa6db6d1105267c377fa3d5448ee5f5a4ca
2004-08-17 09:56:23 +00:00
Matt Johnston
6ec8183750
do the symlinks for multi-binary compiles
...
--HG--
extra : convert_revision : 1a0ab43c58435f03b261ef322d24fbb5c91e8abd
2004-08-17 04:35:01 +00:00
Matt Johnston
eb1f647c9c
dbclient works as "ssh" too
...
--HG--
extra : convert_revision : 4bf3c662e114ad16c54afdf923f2852e511f77eb
2004-08-16 14:53:49 +00:00
Matt Johnston
029ae35058
create known_hosts properly
...
--HG--
extra : convert_revision : 3f808121bb4c3b4e0ce32db12525c63d692f1dbd
2004-08-16 14:46:13 +00:00
Matt Johnston
fdfc95df8b
- don't crash when trying to add to known_hosts if it doesn't exist
...
- comments
--HG--
extra : convert_revision : ffafd48c7494fee17a98d901e30c3372e1a092e9
2004-08-16 08:59:11 +00:00
Matt Johnston
6d93048fe9
Added changelog entry
...
--HG--
extra : convert_revision : d9e9d844478aff8411b696c6c3b752e6da1cfc90
2004-08-15 10:42:23 +00:00
Matt Johnston
5f07d1c5a4
filelist.txt
...
--HG--
extra : convert_revision : c563653d136496269b2ff0de84f9397bd9e6baa4
2004-08-14 18:06:28 +00:00
Matt Johnston
d866ad671a
- It'll be called 0.44test1
...
- Debian stuff
--HG--
extra : convert_revision : 76d20e3ad43f56e58800b463ddf0cc1064defe71
2004-08-14 18:03:36 +00:00
Matt Johnston
9ab4bbc7ff
Some documentation touchups
...
--HG--
extra : convert_revision : d428137d689eb015db1bd4168614516eb7f29c41
2004-08-14 17:59:42 +00:00
Matt Johnston
703c9a7370
License boilerplate etc, add Mihnea as an author to some of the files
...
--HG--
extra : convert_revision : 75c02f80c4ed25bd4697e7f17ffac6eded54c148
2004-08-14 17:54:20 +00:00
Matt Johnston
403c18a300
Dropbearkey can now print out pubkey portions
...
--HG--
extra : convert_revision : 2d897b12ba8710efe0b042b36b1fd31b2469eb15
2004-08-14 17:35:28 +00:00
Matt Johnston
85748aec15
Some doc changes
...
--HG--
extra : convert_revision : a80e122e2d3b0598d2eac61d35e285134985937b
2004-08-13 10:58:51 +00:00
Matt Johnston
084bddf1c5
adding inetd mode back from 0.43
...
--HG--
extra : convert_revision : 8f98bb3056d06b721b437ac8d9fe0a71e40acd9a
2004-08-12 17:18:53 +00:00
Matt Johnston
8e1ec24f55
Merging in the changes from 0.41-0.43 main Dropbear tree
...
--HG--
extra : convert_revision : 4c3428781bc8faf0fd7cadd7099fbd7f4ea386e7
2004-08-12 16:41:58 +00:00
Matt Johnston
538bc5a09e
Simple text changes
...
--HG--
extra : convert_revision : 3e9897a609f03cef43230c22d3c1d085850057a8
2004-08-12 15:41:36 +00:00
Matt Johnston
d7575f95f0
cleaning up the pubkey defines
...
--HG--
extra : convert_revision : 149ce7a9a9cc5fe670994d6789b40be49895c595
2004-08-12 14:56:22 +00:00
Matt Johnston
96a0f77bb4
fake-rfc stuff
...
--HG--
extra : convert_revision : 796008def04e47dc990703134c9fe013f1919190
2004-08-12 14:39:17 +00:00
Matt Johnston
986a932636
Some more sanity-checking of args, and just warn and ignore OpenSSH args
...
--HG--
extra : convert_revision : 94cf58a3a50848156aaaf757d0a72163c0355406
2004-08-12 14:19:05 +00:00
Matt Johnston
9ea7c3bfcf
Oops, forgot to call the actual code.
...
--HG--
extra : convert_revision : 1394bf640a0721eb3851fdb9e534c5a65c8bc0f6
2004-08-12 13:54:31 +00:00
Matt Johnston
e1057cd477
TCP forwarding works.
...
--HG--
extra : convert_revision : 57dfb36d0d482ad84f31506904eb67863bd303ab
2004-08-12 13:48:42 +00:00
Matt Johnston
453261a042
- A nice cleaner structure for tcp (acceptor) forwarding.
...
- still a checkpoint-ish commit
- sorted out listening on localhost only
--HG--
extra : convert_revision : c030ac0a3950dba81f2324e2ba9d4b77fc8f8149
2004-08-11 17:26:47 +00:00
Matt Johnston
a712baa8e5
just checkpointing
...
--HG--
extra : convert_revision : fbbf404290f3fea3dfa9f6f53eba9389057e9044
2004-08-10 17:09:52 +00:00
Matt Johnston
254e8e3452
Write the correct termcodes length
...
--HG--
extra : convert_revision : 820649664926ee4346c564fc4d9c8e211d541092
2004-08-09 08:18:37 +00:00
Matt Johnston
5a053fb6fc
Just a test for merging heads
...
--HG--
extra : convert_revision : ede585c846c166007394decf3d57c24c42682160
2004-08-09 08:08:42 +00:00
Matt Johnston
baae2d8703
add new entries to known_hosts
...
--HG--
extra : convert_revision : b663974e3364274a5b94664e97683e18ab2a2579
2004-08-09 08:06:57 +00:00
Matt Johnston
41f5e21044
merge of 3b1edf7489e1de452e30aaaec37d647db44e4328
...
and 6cdb6b2c0e0e0a600eeb5975e499c9303fe2d4d4
--HG--
extra : convert_revision : 6bf41e419b773e153b574b15005ab1e498643400
2004-08-09 03:21:20 +00:00
Matt Johnston
3238bed9c9
svr-authpam code merged and works. needs tidying a log
...
--HG--
branch : authpam
extra : convert_revision : abeb2807b88fbd8b95d92b760a209a0816cbaea9
2004-08-08 16:57:37 +00:00
Matt Johnston
8edc352393
newlines which weren't there
...
--HG--
extra : convert_revision : edef8ed42b61a7c69ed7c51c33e87f53b0614200
2004-08-08 16:57:00 +00:00
Matt Johnston
b8ae152c4b
add cli-authpubkey
...
--HG--
extra : convert_revision : fb7a0272b88cd9cbc53004d0ba6184bc3098c9f2
2004-08-08 16:55:03 +00:00
Matt Johnston
2a2fdc168c
burn the buffer a bit earlier
...
--HG--
extra : convert_revision : 1f069f6a8a2ecee6f2e22b51751b73982606accb
2004-08-08 16:44:11 +00:00
Matt Johnston
418f3b4042
Be a bit safer with reentrant pw_name
...
--HG--
extra : convert_revision : 6fa26817a93baeff5beb430be4e7e8127e1fd491
2004-08-08 16:41:26 +00:00
Matt Johnston
c3169d49d3
Forgot dbutil.h with the last commit (added buf_get_line)
...
--HG--
extra : convert_revision : 9e0629e5018dc4c6950a852c57e850c5f4ddf32a
2004-08-08 16:18:03 +00:00
Matt Johnston
39dce00980
- Hostkey checking is mostly there, just aren't appending yet.
...
- Rearranged various bits of the fingerprint/base64 type code, so it
can be shared between versions
--HG--
extra : convert_revision : 6b8ab4ec5a6c99733fff584231b81ad9636ff15e
2004-08-08 16:17:05 +00:00
Matt Johnston
333eac7f9a
Should be dropbearkey, rather than dropbearmulti, for the default targets
...
--HG--
extra : convert_revision : bed848ac745ab66a9f4df57c3bc27e5e39c41d9a
2004-08-07 15:50:58 +00:00
Matt Johnston
4936c9a3f3
Remove unused printbuf which prevented large DSS keys from being generated.
...
--HG--
extra : convert_revision : 6971cb6630c289a03a9f28c36c6797c7744ff9a1
2004-08-06 16:37:59 +00:00
Matt Johnston
0bbe2fa862
- client pubkey auth works
...
- rearrange the runopts code for client and server (hostkey reading is needed
by both (if the client is doing pubkey auth. otherwise....))
--HG--
extra : convert_revision : 5420858803bfff1e27dfe7fa877ba6fdd747e0c5
2004-08-06 16:18:01 +00:00
Matt Johnston
68f816e8cf
Filled out a bit, with commandline support etc
...
--HG--
extra : convert_revision : 588496938ac3e4df1fab53f724be00afa9fadeab
2004-08-06 02:51:17 +00:00
Matt Johnston
7cdad3c200
Pubkey auth is mostly there for the client. Something strange with
...
remote hostkey verification though.
--HG--
extra : convert_revision : 8635abe49e499e16d44a8ee79d474dc35257e9cc
2004-08-03 17:26:56 +00:00
Matt Johnston
7a854cb1f8
Improved signkey code
...
--HG--
extra : convert_revision : fcf64cb4d2e273f80bf8c5f1d2dd00a0f4dc1acf
2004-08-03 15:51:55 +00:00
Matt Johnston
9c91ea1caf
Banner printing
...
--HG--
extra : convert_revision : a38558944355bb9b4c8e9e22147c1f2d8d327775
2004-08-02 04:25:05 +00:00
Matt Johnston
0a60e4536d
Remove some unused commented-out code
...
--HG--
extra : convert_revision : bfac723600adde37a06e9b4f6309ab7cef39738e
2004-08-01 11:02:44 +00:00
Matt Johnston
55c9b45649
added window-size change handling
...
--HG--
extra : convert_revision : 93a39c7b76f478035046b9c6f88af54612cce36f
2004-08-01 09:41:37 +00:00
Matt Johnston
051b7454f8
- Added terminal mode handling etc for the client, and window change
...
- Refactored the terminal-mode handling for the server
- Improved session closing for the client
--HG--
extra : convert_revision : 9d19b4f22c39798af5f3f24c2022f8caec4919e8
2004-08-01 08:54:01 +00:00
Matt Johnston
cb071834da
tty raw mode support works mostly
...
adding cli-{chansession,runopts}.c which were missing
--HG--
extra : convert_revision : ca970fb1e3fdbf0a72750e4af8f45ad308e77368
2004-07-30 12:29:53 +00:00
Matt Johnston
225452befc
get rid of the substitution... We want a fixed identifier
...
--HG--
extra : convert_revision : d6b70dbcc1713663608033cb41cde196d44d4f2c
2004-07-30 11:27:52 +00:00
Matt Johnston
b601f68cda
we're nearly there yet
...
--HG--
extra : convert_revision : ab7e63234f2c134c2321406598ae67038e0ca576
2004-07-30 03:02:19 +00:00
Matt Johnston
bf785cbcec
Handle differing c2s and s2c algorithms properly
...
--HG--
extra : convert_revision : 5a8d0e105df84e50bc3e9d80486d6986634ff900
2004-07-29 15:43:26 +00:00
Matt Johnston
e1491b8ec6
set the isserver flag (oops)
...
fix password auth for the server
--HG--
extra : convert_revision : 234eb604aabaef9ed0dd496ff8db8ecc212ca18c
2004-07-29 02:19:03 +00:00
Matt Johnston
2d82f73484
Client mostly works up to password auth
...
Need to rework algo-choosing etc, since server is now broken.
--HG--
extra : convert_revision : 458dc4eed0e885e7c91633d4781d3348213a0e19
2004-07-28 16:44:16 +00:00
Matt Johnston
a76b1ba068
Progressing client support
...
--HG--
extra : convert_revision : 48946be1cef774d1c33b0f78689962b18720c627
2004-07-27 16:30:46 +00:00
Matt Johnston
052bf7df93
forgot to include libtomcrypt dir
...
--HG--
extra : convert_revision : c936c6ac2910e212338966955bc0fb337b31f915
2004-07-27 15:12:29 +00:00
Matt Johnston
d244f750fc
removed some test targets
...
--HG--
extra : convert_revision : 955ad253022493b8edc121802529f014b9aac505
2004-07-27 14:54:25 +00:00
Matt Johnston
8b6ddcb066
Switching to the magical new Makefile, and new dbmulti style
...
--HG--
extra : convert_revision : 3f8efcdd56aab197d30a1ea81527c37dfee2f928
2004-07-27 14:44:43 +00:00
Matt Johnston
58baa046d2
Totally reworked Makefile.in
...
Doesn't totally work, but getting there
--HG--
extra : convert_revision : 517f94c41885417c1040a6a6cf14aa2248334f26
2004-07-27 13:32:54 +00:00
Matt Johnston
187317c2c9
Mention that autoheader should also be run
...
--HG--
extra : convert_revision : 89ffd01cd93f8ce6e35f312e8f363c16ba72fe1b
2004-07-27 09:19:12 +00:00
Matt Johnston
471d28bd10
- Rename common-packet.c to packet.c
...
- buf_burn the unencrypted read/write payload buffers after use to avoid
sensitive contents sitting in memory for too long
--HG--
extra : convert_revision : 19227d63bda554e819ae7df919bfd18911d5b4a0
2004-07-27 02:14:42 +00:00
Matt Johnston
a9c38fb37f
snapshot of stuff
...
--HG--
extra : convert_revision : 2903853ba24669d01547710986ad531357602633
2004-07-26 02:44:20 +00:00
Matt Johnston
f6fce0981d
Rename cli_algo.c to cli-algo.c for consistency
...
--HG--
extra : convert_revision : 347c6511090f530bafebc18c171367d19ffbfd1a
2004-07-20 12:06:37 +00:00
Matt Johnston
62aab2227c
switching to global vars
...
--HG--
extra : convert_revision : 800073097767c2ac153ab834cbcf0121cb765118
2004-07-20 12:05:00 +00:00
Matt Johnston
9c676d0ddd
Makefile.in
...
--HG--
extra : convert_revision : 95173a527ef15143d4cbb8c574dff59076120f68
2004-06-23 07:24:22 +00:00
Matt Johnston
09b50641ff
merge of abac2150ee4f4031a98016241fbd136d24fed127
...
and ffa047425729e478a5b49b1ab0f8ec71c08a1421
--HG--
extra : convert_revision : e9b7d4eda64d70aff736f48cc8dea680b153139b
2004-06-23 07:14:16 +00:00
Matt Johnston
18bfb4dd48
- Port restriction code back in
...
- Remove bad strerror() logging
--HG--
extra : convert_revision : 8ad0c90d041d667876641822a5d870e2e73059c6
2004-06-22 10:47:16 +00:00
Matt Johnston
8977fbbd97
Don't bother printing errno in exit messages (the code wasn't valid anyway)
...
--HG--
extra : convert_revision : 84b4b2b17c096faebd10975a08e91954e2014d82
2004-06-07 11:36:07 +00:00
Matt Johnston
ae1b0b07cf
Fixed stupid agentfwd error (using the listening FD, not the accepted on. gah)
...
--HG--
extra : convert_revision : 27e793a6395dbf5f2c0aa130d37fad2e4ef67e01
2004-06-03 18:08:34 +00:00
Matt Johnston
9847cfe73d
merge of a585c2284e9ad17bfe6c6fd8f18b1c5042b2df47
...
and e3f735bb16fbd5cfb6bcad70885550c1b79b874c
--HG--
extra : convert_revision : d6dc5dca7b7982493c6d43b19439f4e64f6dc99e
2004-06-03 17:29:17 +00:00
Matt Johnston
9f369bc42f
Mostly done with the listener changeover
...
--HG--
extra : convert_revision : 1a4dca8836a2a04a21fb675c718a549a8d445d25
2004-06-03 17:22:48 +00:00
Matt Johnston
790726519e
- renaming x11fwd.c to svr-x11fwd.c, to testing monotone
...
--HG--
extra : convert_revision : b5f7a97c08fd454f31a546a9ac9d3a4a5768a2ac
2004-06-03 17:15:02 +00:00
Matt Johnston
444dbb5364
- Reworked non-channel fd handling to listener.c
...
- More channel cleaning up
--HG--
extra : convert_revision : 385ec76d0304b93e277d1cc193383db5fd773703
2004-06-03 16:45:53 +00:00
Matt Johnston
513f947d62
Chantype handling is sorted
...
--HG--
extra : convert_revision : 807efead6ecf690f147fd8145aa9d78ff894cdb2
2004-06-02 04:59:49 +00:00
Matt Johnston
6152263045
Sorted out the first channel init issues.
...
--HG--
extra : convert_revision : 67676f36b78efac878c11943d78a5de827498d05
2004-06-01 10:48:46 +00:00
Matt Johnston
40cb39d00c
syntactical fixups - it compiles, but channel handling code requires fixing.
...
--HG--
extra : convert_revision : 6f8be81d5486f3499fde596d8e86df2630b24442
2004-06-01 04:20:12 +00:00
Matt Johnston
674a607488
Makefile.in contains updated files required
...
--HG--
extra : convert_revision : cc8a8c49dc70e632c352853a39801089b08149be
2004-06-01 02:46:09 +00:00