Commit Graph

  • 93f2ac802a hide test invocation in regress Makefile Markus Friedl 2012-02-14 19:52:57 +01:00
  • bbbf3db186 allocate 'struct ssh' early, so we can store the compat flags Markus Friedl 2012-02-14 19:49:50 +01:00
  • 79db80bd04 unbreak AES by adding the lost negation for the compat flag back Markus Friedl 2012-02-14 19:47:00 +01:00
  • aac1adfc7b replace global 'datafellows' with new ssh->compat flag Markus Friedl 2012-02-12 18:41:25 +01:00
  • 509563f6c9 no need to modify the global datafellows flag from the agents, since we can pass the compat flag directly to sshkey_sign() Markus Friedl 2012-02-12 18:34:15 +01:00
  • ee43f74f13 clientloop.c: packet_ -> ssh_packet, dispatch_ -> ssh_dispatch_ Markus Friedl 2012-01-19 17:47:43 +01:00
  • ce73007d5b create struct ssh in ssh_connect() and pass it to ssh_login(), ssh_exchange_identification(), ssh_kex2() and ssh_userauth2() so we can avoid accessing the global connections state from there. Markus Friedl 2012-01-11 11:41:37 +01:00
  • d9fd38c3a2 unbreak privsep by resetting the rekeying flag after authentication for now Markus Friedl 2012-02-13 21:24:36 +01:00
  • dd6d702278 pass a struct sshkey to ssh_add_hostkey() (instead of a string) Markus Friedl 2012-02-09 13:28:17 +01:00
  • 2c632c1123 print full input buffer if packet size contains garbage (PACKET_DEBUG) Markus Friedl 2012-02-08 20:35:35 +01:00
  • 46d0ce1aea fix spaces in sshbuf hexdump Markus Friedl 2012-02-08 20:34:42 +01:00
  • 57cc6bbbe5 ssh_packet_send2() needs to queue pkts until initial kex is done. Markus Friedl 2012-02-08 20:30:56 +01:00
  • eddb17399b ssh_api.c: the client must not send anything before the protocol version Markus Friedl 2012-02-08 01:25:32 +01:00
  • 91fa188bfb ssh_packet_next(): after a kex callback has been called we need to get the next packet, too. otherwise we end up waiting for input even if there is a packet ready. the same applies to the proxy Markus Friedl 2012-02-07 23:54:56 +01:00
  • 1edbfe0a1b dump_digest(): wrap digest in sshbuf and use sshbuf_dump() Markus Friedl 2012-02-07 22:30:45 +01:00
  • 435af03a21 sshbuf_dump(): printable ASCII together hexdump Markus Friedl 2012-02-07 22:29:16 +01:00
  • 729e3e7b18 fix build with DEBUG_KEX Markus Friedl 2012-02-07 22:27:19 +01:00
  • 8545c8466d unbreak old GEX (interop w/putty) Markus Friedl 2012-02-07 22:26:31 +01:00
  • 03db90e6d7 compat.c: remove dependencies on xmalloc and Buffer Markus Friedl 2012-01-26 21:15:45 +01:00
  • 9608cea748 de-xmalloc ssh_api.c Markus Friedl 2012-01-26 21:08:23 +01:00
  • 53c9092076 Function to set a verify_host_key callback Matthias Pitzl 2012-02-02 10:13:28 +01:00
  • c628377460 typo in error message; noted by Arne Becker Markus Friedl 2012-01-23 16:00:50 +01:00
  • aec7620ee3 remove obsolete comment in kex_input_kexinit Markus Friedl 2012-01-20 00:50:19 +01:00
  • 50937afe60 whitespace fix Markus Friedl 2012-01-20 00:38:03 +01:00
  • 7806c429af kex no longer uses xmalloc.h Markus Friedl 2012-01-20 00:21:00 +01:00
  • f25d6cdfc8 rename kex_finish() to kex_send_newkeys() Markus Friedl 2012-01-20 00:19:24 +01:00
  • 27e9f28bcd kex: use ssh->datafellows instead of the global Markus Friedl 2012-01-20 00:10:03 +01:00
  • f0b07791e7 de-fatal dh_new_*(), used during kex DH/GEX Markus Friedl 2012-01-20 00:01:42 +01:00
  • c5b7f87669 missing de-fatal + remove blocking read from kex Markus Friedl 2012-01-19 21:04:29 +01:00
  • 6c462faff7 replace xstrdup with strdup in match_*() as its called during kex Markus Friedl 2012-01-19 20:57:12 +01:00
  • b14028ba52 fix whiteo in ssh_api.[ch] Markus Friedl 2012-01-19 11:05:38 +01:00
  • b995eab1b5 remove unused longjmp code from ssh-keyscan Markus Friedl 2012-01-19 09:52:39 +01:00
  • 6da9f87abc add new error messages for protocol version and hostkey loading Markus Friedl 2012-01-19 09:33:46 +01:00
  • 746db96b80 fix/move comment in ssh_packet_next Markus Friedl 2012-01-19 09:33:27 +01:00
  • 7c291f80f5 hide dispatch_run() unless DISPATCH_COMPAT is defined Markus Friedl 2012-01-19 09:32:55 +01:00
  • 695568fabc de-fatal ssh_dispatch_run and use it for a longjump-less ssh-keyscan Markus Friedl 2012-01-18 14:56:23 +01:00
  • ef6bdcc76d de-fatal input_kex_ecdh_reply() and input_kex_ecdh_init() Markus Friedl 2012-01-18 14:25:10 +01:00
  • 19a6ad8184 de-fatal kex_ecdh_name_to_nid() Markus Friedl 2012-01-18 14:24:46 +01:00
  • d04408425a de-fatal packet_close(): cipher_cleanup() send and receive context even if cleanup for the first fails Markus Friedl 2012-01-18 13:15:44 +01:00
  • f046133614 de-fatal ssh_api.c and change API to return ssh-error codes (err.h) Markus Friedl 2012-01-18 12:59:28 +01:00
  • 203046094a unbreak build after shared lib disable Markus Friedl 2012-01-19 15:51:13 +01:00
  • a5c8c737bb disable build of a shared libssh Markus Friedl 2012-01-19 15:31:03 +01:00
  • d4d7a3065f disable build of a shared libssh Markus Friedl 2012-01-19 15:31:03 +01:00
  • b345cb35c8 Enable build of shared library libssh. Matthias Pitzl 2012-01-19 08:15:23 +01:00
  • b65245d55a finish conversion of kex.c Damien Miller 2012-01-18 11:40:17 +11:00
  • 2828f179cc finish defatal of kex.c Damien Miller 2012-01-18 10:10:36 +11:00
  • 01f9f4bfb4 de-fatal ssh_packet_{send2_wrapped,read_poll2} Markus Friedl 2012-01-17 20:54:58 +01:00
  • b645f5761f defatal ssh_set_newkeys() & ssh_packet_enable_delayed_compress() Markus Friedl 2012-01-17 18:53:14 +01:00
  • 14d8f87192 de-fatal ssh_packet_{init,start}_compression() Markus Friedl 2012-01-17 18:44:09 +01:00
  • 4492816499 re-add clang to unittests/TODO Markus Friedl 2012-01-17 14:49:28 +01:00
  • df7bb23744 defatal kex_send_kexinit Damien Miller 2012-01-17 20:57:35 +11:00
  • dc2a16da9c add privsep/packet refactoring to the queue Damien Miller 2012-01-17 20:39:15 +11:00
  • f6bb12089e defatal compression code by merging it into packet.c Markus Friedl 2012-01-17 14:45:00 +01:00
  • 6e36bbb8ae de-fatal ssh_packet_{start,stop}_discard() Markus Friedl 2012-01-17 00:41:57 +01:00
  • d1a86a640e remove kex_kexinit_finish; unbreak kex-ecdh Markus Friedl 2012-01-17 00:40:58 +01:00
  • 9b8ff0770c pass kex-setup errors back to kex_input_kexinit() Markus Friedl 2012-01-16 00:54:54 +01:00
  • 53217d6dcd let kex_derive_keys() return an error code, too. Markus Friedl 2012-01-16 00:35:48 +01:00
  • 5f2f99f51e let kex_finish() return an error code Markus Friedl 2012-01-16 00:08:00 +01:00
  • ea6b0c14cf kexgexs.c: replace blocking ssh_packet_read() with callback Markus Friedl 2012-01-15 23:36:49 +01:00
  • d8b01951d3 de-fatal kex-ecdh Markus Friedl 2012-01-15 20:46:07 +01:00
  • b618c7766b packet_read_poll*: switch from ssh_packet_get to sshpkt_get + return codes Markus Friedl 2012-01-15 19:47:27 +01:00
  • 679bcc093b packet.c: {get,put}_u32 -> {PEEK,POKE}_U32 Markus Friedl 2012-01-15 19:16:41 +01:00
  • 6ec240ac5b de-fatal kex-gex, add matching error codes, minimize diff to kex-dh Markus Friedl 2012-01-15 18:06:05 +01:00
  • 22200296fd add simple way to locate test data in test_helper Damien Miller 2012-01-13 10:50:05 +11:00
  • 3ed152cd93 move cipher warning flag to session_state Damien Miller 2012-01-14 08:56:13 +11:00
  • 85054aaf18 merge "defatal mac.[ch]" from djm Markus Friedl 2012-01-17 14:43:39 +01:00
  • 568a12a63e defatal mac.[ch] Markus Friedl 2012-01-17 14:42:52 +01:00
  • ef0c2e123f defatal cipher.[ch] unbreak arcfour(128|256) Damien Miller 2012-01-13 22:59:45 +11:00
  • c037dfa962 deal with error-codes returned by dispatch function (fatal for now) Markus Friedl 2012-01-15 10:28:10 +01:00
  • f63a37137d de-fatal kex dh (test for de-fatal of packet.c) Markus Friedl 2012-01-15 01:49:29 +01:00
  • 52128ed203 packet.c: s/ret/r/g Markus Friedl 2012-01-15 00:09:30 +01:00
  • 43f038abce ssh_packet_read_poll/seqnr now return an error and no longer use xmalloc Markus Friedl 2012-01-14 13:35:04 +01:00
  • 9e254e24c5 new sshpkt API: {get,put} wraps ssh_packet_{get,put}, adds {get_end,disconnect} Markus Friedl 2012-01-15 10:44:50 +01:00
  • 54c5205bc4 switch packet.c from buffer_* to sshbuf_* and call fatal on failure Markus Friedl 2012-01-14 08:54:31 +01:00
  • 9662f3f978 replace Buffer with allocated 'struct sshbuf *' in session_state Markus Friedl 2012-01-13 14:22:07 +01:00
  • 7861f112ba disable SSHBUF_ABORT and fix compilation with it turned off Damien Miller 2012-01-13 22:13:54 +11:00
  • 44dce8d972 reinitialise compression buffers in postauth privsep child Damien Miller 2012-01-13 22:11:20 +11:00
  • b720702ef3 unbreak ssh_add_hostkey(): sshkey_read() returns 0 on sucess Markus Friedl 2012-01-13 16:04:02 +01:00
  • 585db2baab move kex-specific states to struct kex and release states in kex_free() Markus Friedl 2012-01-13 10:32:24 +01:00
  • 0e69e20693 dispatch_fn() now returns an error code (int) instead of void Markus Friedl 2012-01-13 10:04:55 +01:00
  • 4f48a68397 rename ssh_packet_get() to ssh_packet_next() and document resulting API Markus Friedl 2012-01-13 12:02:12 +01:00
  • c905073179 ssh_api.c: offer hostkey algorithms depending on registered keys Markus Friedl 2012-01-17 14:36:45 +01:00
  • eab08a3d52 add fingerprints to test data Damien Miller 2012-01-12 23:51:16 +11:00
  • 27d673a877 TODO for unittests Damien Miller 2012-01-12 23:30:43 +11:00
  • 0a106ab1a1 start regress tests for sshkey code Damien Miller 2012-01-12 23:05:51 +11:00
  • c79348e375 better parameter checking for RSA key generation Damien Miller 2012-01-12 16:22:44 +11:00
  • e60ae70c50 better name for the unit tests Damien Miller 2012-01-12 15:09:36 +11:00
  • 1cdc6a59ec add unittests for sshbuf in separate directory Damien Miller 2012-01-12 15:02:57 +11:00
  • c90c1905fd fix conversion of key types to "plain" (non-cert) names Damien Miller 2012-01-12 13:09:42 +11:00
  • 207b5422e6 fix ecdsa signatures from Markus Damien Miller 2012-01-12 12:47:18 +11:00
  • 97a2b75862 dump packet content to stderr if ssh-proxy is started with -D Markus Friedl 2012-01-11 17:15:49 +01:00
  • 7be80648ac autodetect obj dirs for make regress Markus Friedl 2012-01-11 14:46:49 +01:00
  • 79762ba77d fix reading/writing of pubic keys Markus Friedl 2012-01-11 21:21:42 +01:00
  • e339f7589e key_verify now returns 0 on success and < 0 on error Markus Friedl 2012-01-11 18:36:56 +01:00
  • ea5ceecdc2 first cut at merging disentangled buffer and library code. buffer_* continue to exist as thin wrappers around sshbuf_* Damien Miller 2012-01-11 22:08:58 +11:00
  • 7c423254e3 add ssh_free() to API and use it in the proxy Markus Friedl 2012-01-10 23:54:34 +01:00
  • 81e3938108 add a libevent based ssh proxy Markus Friedl 2012-01-10 22:51:05 +01:00
  • c714b85e60 do not send service request/accept during rekeying Markus Friedl 2012-01-10 22:38:50 +01:00
  • 9f176fa427 don't forget to send the packet Markus Friedl 2012-01-10 19:48:35 +01:00
  • e7792bcbe2 use ssh_packet_* in dispatch.c Markus Friedl 2012-01-10 19:48:19 +01:00