Markus Friedl
ad4ef1067c
replace Kex typedef with 'struct kex'
2012-10-12 16:22:45 +02:00
Damien Miller
5020b06a6b
remove the last traces of the old buffer API
...
yay :)
2012-09-21 05:35:30 +10:00
Damien Miller
54c2c68956
This stated as a conversion of monitor*.[ch] to the new
...
buffer API, but it got away from me...
Includes a change from u_int -> size_t in the key API that
touches quite a few things
2012-09-20 01:22:35 +10:00
Markus Friedl
aac1adfc7b
replace global 'datafellows' with new ssh->compat flag
2012-03-04 21:19:21 +01:00
Markus Friedl
f25d6cdfc8
rename kex_finish() to kex_send_newkeys()
2012-03-04 21:19:19 +01:00
Markus Friedl
27e9f28bcd
kex: use ssh->datafellows instead of the global
2012-03-04 21:19:19 +01:00
Markus Friedl
6da9f87abc
add new error messages for protocol version and hostkey loading
2012-03-04 21:19:19 +01:00
Damien Miller
b65245d55a
finish conversion of kex.c
...
cleans up a few buffer_* calls and adjusts return values
2012-03-04 21:19:18 +01:00
Markus Friedl
9b8ff0770c
pass kex-setup errors back to kex_input_kexinit()
2012-01-17 14:44:19 +01:00
Markus Friedl
53217d6dcd
let kex_derive_keys() return an error code, too.
2012-01-17 14:44:19 +01:00
Markus Friedl
5f2f99f51e
let kex_finish() return an error code
2012-01-17 14:44:19 +01:00
Markus Friedl
6ec240ac5b
de-fatal kex-gex, add matching error codes, minimize diff to kex-dh
2012-01-17 14:44:18 +01:00
Markus Friedl
c037dfa962
deal with error-codes returned by dispatch function (fatal for now)
2012-01-17 14:37:27 +01:00
Markus Friedl
f63a37137d
de-fatal kex dh (test for de-fatal of packet.c)
2012-01-17 14:37:27 +01:00
Markus Friedl
585db2baab
move kex-specific states to struct kex and release states in kex_free()
2012-01-17 14:37:26 +01:00
Markus Friedl
0e69e20693
dispatch_fn() now returns an error code (int) instead of void
2012-01-17 14:37:26 +01:00
Damien Miller
ea5ceecdc2
first cut at merging disentangled buffer and library code. buffer_* continue
...
to exist as thin wrappers around sshbuf_*
doesn't yet pass regress (breakage in hostkey checking, probably related to
new sshkey_* return values)
2012-01-17 14:32:48 +01:00
Markus Friedl
c8197a3b42
change all protocol handlers from 'void *' to 'struct ssh *'
2012-01-17 14:32:48 +01:00
Markus Friedl
9cc85e2464
move packet state internals back from packet.h to packet.c
2012-01-17 14:32:46 +01:00
Markus Friedl
530367aafa
Move the key exchange state and other global variables into
...
a per connection state struct, add a initial API that could
be used for a proxy (see ssh-proxy.c)
Joint work with Matthias Pitzl, Stefan Rinkes, Bernhard Zaun and
Arne Becker.
2012-01-17 14:32:46 +01:00
Markus Friedl
a87828ec88
import openssh as of 2012/01/05
2012-01-05 12:08:12 +01:00