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
48278e629e
remove remaining calls to packet_*
2012-09-21 12:07:07 +02:00
Damien Miller
d01ff4fdfa
remove legacy packet_ calls from ttymodes.c
2012-09-21 19:59:25 +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
Damien Miller
75875617b2
convert clientloop.c to new buffer API
2012-09-21 04:26:38 +10:00
Markus Friedl
fbd7e0b979
feedback djm@: no need to protect free(); fix typo
2012-09-20 11:15:46 +02:00
Markus Friedl
02c95ed3ec
clientloop.c: cleanup and return error in the dispatch functions
2012-09-20 11:15:45 +02:00
Markus Friedl
0159ba24d4
ssh_packet_check_eom -> sshpkt_get_end
2012-09-20 11:15:45 +02:00
Markus Friedl
69fe69f28d
PACKET_SKIP_COMPAT for clientloop.c
2012-09-20 11:15:45 +02:00
Markus Friedl
fa8ee9ffc4
remove DISPATCH_COMPAT
2012-09-19 11:57:54 +02:00
Damien Miller
449fa4049d
Convert auth-options.c auth.c auth2-pubkey.c and channels code to new
...
buffer API
2012-09-19 18:40:19 +10:00
Markus Friedl
fbbec84071
sync to cvs as of 2012-09-14
2012-09-14 18:59:11 +02:00
Markus Friedl
e3403f3457
update to openssh-6.1
2012-07-30 20:41:29 +02:00
Damien Miller
2c25fb2ede
refactor agent client code
...
removed fatal()
buffer_ => sshbuf_
changed lookup of identies to return a fully-deserialised list of keys
removed AuthenticationConnection abstration; all operations now use plain socket
2012-03-26 23:10:27 +11:00
Markus Friedl
b039f2339c
don't make packet.c depend on the channels.c code
2012-03-04 21:19:23 +01:00
Markus Friedl
f8339e5505
de-fatal state serialisation and remove obsolete state-functions
2012-03-04 21:19:23 +01:00
Markus Friedl
aac1adfc7b
replace global 'datafellows' with new ssh->compat flag
2012-03-04 21:19:21 +01:00
Markus Friedl
ee43f74f13
clientloop.c: packet_ -> ssh_packet, dispatch_ -> ssh_dispatch_
2012-03-04 21:19:21 +01:00
Damien Miller
df7bb23744
defatal kex_send_kexinit
2012-01-17 14:45:06 +01:00
Markus Friedl
0e69e20693
dispatch_fn() now returns an error code (int) instead of void
2012-01-17 14:37:26 +01:00
Markus Friedl
36bd2a3bbd
remove the last argument from ssh_dispatch_run()
...
since it's always the same as the first...
2012-01-17 14:32:48 +01:00
Markus Friedl
e38108317d
generate the compat dispatch API only if requested
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
c44b8a2397
active_state declaration already in packet.h
2012-01-17 14:32:47 +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