Markus Friedl
05dfdd5f54
sync cvs as of 2012-12-14 (cipher-ctr.c removal)
2012-12-30 09:09:57 +01:00
Markus Friedl
011c12f689
sync cvs as of 2012-12-14 (keep cipher-ctr.c)
2012-12-30 09:09:52 +01:00
Markus Friedl
88d1ce29a9
sync cvs as of 2012-11-10
2012-11-10 16:26:54 +01:00
Markus Friedl
6ac14552ea
stop exporting the_authctxt from sshd.c
2012-10-12 18:24:19 +02:00
Markus Friedl
029f8f3db8
mm_newkeys_to/from_blob no longer exist
2012-10-12 18:09:09 +02:00
Markus Friedl
976812280c
packet.h: remove include of cipher.h
2012-10-12 18:05:47 +02:00
Markus Friedl
575e4cb99d
replace CipherContext typedef with 'struct sshcipher_ctx'
2012-10-12 18:02:59 +02:00
Markus Friedl
337493a508
replace Cipher typedef with 'struct sshcipher'
2012-10-12 17:58:02 +02:00
Markus Friedl
7e29b55734
packet.h: replace include of key.h with forward declaration
2012-10-12 17:53:18 +02:00
Markus Friedl
d2a7c923d7
authfd.c and mac.c do not need kex.h
2012-10-12 17:49:55 +02:00
Markus Friedl
2033d3b5ba
packet.h: replace include of kex.h with forward declaration
2012-10-12 17:48:29 +02:00
Markus Friedl
b8e501f9e3
ssh->current_keys is redundant, replace with ssh->kex->newkeys
2012-10-12 17:36:33 +02:00
Markus Friedl
12f57cf093
replace Comp typedef with 'struct sshcomp'
2012-10-12 16:56:40 +02:00
Markus Friedl
62dfdae606
replace Enc typedef with 'struct sshenc'
2012-10-12 16:51:58 +02:00
Markus Friedl
94db174dc6
replace Mac typedef with 'struct sshmac'
2012-10-12 16:45:42 +02:00
Markus Friedl
e92ff3d5b1
replace Newkeys typedef with 'struct newkeys'
2012-10-12 16:32:27 +02:00
Markus Friedl
ad4ef1067c
replace Kex typedef with 'struct kex'
2012-10-12 16:22:45 +02:00
Markus Friedl
cfee790064
ssh_api: add copyright
2012-10-12 16:06:03 +02:00
Markus Friedl
cf692277d7
remove remaining PACKET_SKIP_COMPAT* defines
2012-10-11 00:14:26 +02:00
Markus Friedl
f72f4b214f
replace sshbuf_new/sshbuf_put with sshbuf_from.
2012-10-10 23:49:31 +02:00
Markus Friedl
185e7749a3
mux.c: replace sshbuf_get_stringb with sshbuf_froms
2012-10-10 23:16:31 +02:00
Markus Friedl
472fc6a429
packet.c: convert to sshbuf_froms()
2012-10-10 23:04:56 +02:00
Markus Friedl
eab15ba6bf
ssh-keygen: missing s/sshbuf_get_stringb/sshbuf_froms/
2012-10-10 23:01:40 +02:00
Markus Friedl
21f1618b17
sshbuf_fixed: the parent buf is not mutable
2012-10-10 20:36:20 +02:00
Markus Friedl
371a869f0a
unittests: sshbuf_ptr not returns const
2012-10-10 15:49:54 +02:00
Markus Friedl
c0624b12c7
check sshbuf_mutable_ptr return value, or convert to sshbuf_ptr
2012-10-10 01:25:20 +02:00
Markus Friedl
b33c381086
s/get_cstring/get_string/ since ssh1 pads passwords with zero
2012-10-10 01:16:00 +02:00
Markus Friedl
9d8cfbd2cb
umac128_update() now takes a const input
2012-10-10 00:08:40 +02:00
Damien Miller
8f73555808
protect sshbuf_from[bs] children by refusing modification of the parent buffers
...
This adds a reference mechanism to struct sshbuf, making parent buffers to
those created with buffer_froms() and buffer_fromb() read-only until the
child buffer is freed. It also delays freeing of the parent buffer until
all child buffers have freed.
2012-10-09 23:22:54 +02:00
Damien Miller
fa6c75e284
remove sshbuf_reset() made redundant by RO buffer code
2012-10-09 23:22:54 +02:00
Damien Miller
b305993cea
deprecate the buffer_init() sshbuf entrypoint.
...
Allows making struct sshbuf opaque
2012-10-09 23:22:53 +02:00
Damien Miller
25ba47881f
re-enable tests that I turned off while debugging RO buffers
2012-10-09 23:22:53 +02:00
Damien Miller
60cb7a627f
new functions for read-only buffers with external storage
...
This adds some new functions: sshbuf_from(), sshbuf_fromb() and sshbuf_froms()
that create new buffers from a read-only blob, the contents of a buffer and
the contents of a string in a buffer respectively. In all cases the memory
contents are not copied - the new buffer, which is read-only, just refers to
the original location in memory.
2012-10-09 23:22:53 +02:00
Markus Friedl
a59dfd6051
monitor.c: missing p -> username conversion (use-after-free)
2012-10-07 21:15:20 +02:00
Markus Friedl
96b8844e9e
sync cvs as of 2012-10-05
2012-10-05 14:40:20 +02:00
Markus Friedl
48278e629e
remove remaining calls to packet_*
2012-09-21 12:07:07 +02:00
Markus Friedl
dcdd40541b
replace some active_state with ssh
2012-09-21 12:04:08 +02:00
Markus Friedl
78acd9ffb3
convert ssh_put_passwd to ssh_err
2012-09-21 12:04:08 +02:00
Damien Miller
6a728b6af8
remove ktrace that snuck in before my SSD melts
2012-09-21 19:59:25 +10:00
Damien Miller
2ae5891148
unbreak test_kex (needs sshbuf.h)
2012-09-21 19:59:25 +10:00
Damien Miller
d01ff4fdfa
remove legacy packet_ calls from ttymodes.c
2012-09-21 19:59:25 +10:00
Markus Friedl
09db263ce7
unbreak auth w/o privsep
2012-09-21 11:58:29 +02:00
Markus Friedl
d37e40e233
fix roaming, feedback djm@
2012-09-21 01:06:40 +02:00
Markus Friedl
7ce2b783cb
roaming: PACKET_SKIP_COMPAT
2012-09-21 00:58:36 +02:00
Markus Friedl
fcd631d4b0
channel.c: PACKET_SKIP_COMPAT
2012-09-21 00:58:36 +02:00
Markus Friedl
48ca6d1326
remove old packet code from session.c, and pass 'ssh' around....
2012-09-21 00:58:36 +02:00
Markus Friedl
0a153a1e28
ssh.c: PACKET_SKIP_COMPAT
2012-09-21 00:58:36 +02:00
Damien Miller
d3255259ea
... and remove packet_send()
2012-09-21 08:52:07 +10:00
Damien Miller
065694672e
actually remove packet_get_int()
2012-09-21 08:49:35 +10:00
Damien Miller
6526ead4fe
remove last compat packet_ function from mux.c
...
add ssh argument to global confirm callbacks. We'll need to put
the head of this list under struct ssh at some time in the future.
2012-09-21 08:15:59 +10:00