OpenBSD CVS

CVS log for src/usr.bin/ssh/kexgex.c


[BACK] Up to [local] / src / usr.bin / ssh

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.32 / (download) - annotate - [select for diffs], Wed Jan 23 00:30:41 2019 UTC (5 years, 3 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, HEAD
Changes since 1.31: +9 -9 lines
Diff to previous 1.31 (colored)

pass most arguments to the KEX hash functions as sshbuf rather
than pointer+length; ok markus@

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jan 21 10:03:37 2019 UTC (5 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

factor out kex_dh_compute_key() - it's shared between plain DH KEX and
DH GEX in both the client and server implementations

from markus@ ok djm@

Revision 1.30 / (download) - annotate - [select for diffs], Thu Dec 27 03:25:25 2018 UTC (5 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored)

move client/server SSH-* banners to buffers under ssh->kex and factor
out the banner exchange. This eliminates some common code from the
client and server.

Also be more strict about handling \r characters - these should only
be accepted immediately before \n (pointed out by Jann Horn).

Inspired by a patch from Markus Schmidt.
(lots of) feedback and ok markus@

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jan 19 20:16:15 2015 UTC (9 years, 3 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.28: +53 -52 lines
Diff to previous 1.28 (colored)

adapt kex to sshbuf and struct ssh; ok djm@

Revision 1.28 / (download) - annotate - [select for diffs], Thu Jan 9 23:20:00 2014 UTC (10 years, 4 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.27: +12 -12 lines
Diff to previous 1.27 (colored)

Introduce digest API and use it to perform all hashing operations
rather than calling OpenSSL EVP_Digest* directly. Will make it easier
to build a reduced-feature OpenSSH without OpenSSL in future;
feedback, ok markus@

Revision 1.23.12.3 / (download) - annotate - [select for diffs], Wed Nov 8 00:44:05 2006 UTC (17 years, 6 months ago) by brad
Branch: OPENBSD_3_8
Changes since 1.23.12.2: +0 -0 lines
Diff to previous 1.23.12.2 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

upgrade to OpenSSH 4.5

Revision 1.24.2.2 / (download) - annotate - [select for diffs], Wed Nov 8 00:17:14 2006 UTC (17 years, 6 months ago) by brad
Branch: OPENBSD_3_9
Changes since 1.24.2.1: +0 -0 lines
Diff to previous 1.24.2.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

upgrade to OpenSSH 4.5

Revision 1.23.12.2 / (download) - annotate - [select for diffs], Fri Oct 6 03:19:32 2006 UTC (17 years, 7 months ago) by brad
Branch: OPENBSD_3_8
Changes since 1.23.12.1: +5 -3 lines
Diff to previous 1.23.12.1 (colored) to branchpoint 1.23 (colored)

upgrade to OpenSSH 4.4

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Sat Sep 30 04:06:50 2006 UTC (17 years, 7 months ago) by brad
Branch: OPENBSD_3_9
Changes since 1.24: +5 -3 lines
Diff to previous 1.24 (colored)

upgrade to OpenSSH 4.4

Revision 1.27 / (download) - annotate - [select for diffs], Thu Aug 3 03:34:42 2006 UTC (17 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.26: +5 -3 lines
Diff to previous 1.26 (colored)

almost entirely get rid of the culture of ".h files that include .h files"
ok djm, sort of ok stevesk
makes the pain stop in one easy step

Revision 1.26 / (download) - annotate - [select for diffs], Sat Mar 25 13:17:02 2006 UTC (18 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.25: +1 -0 lines
Diff to previous 1.25 (colored)

Put $OpenBSD$ tags back (as comments) to replace the RCSID()s that
Theo nuked - our scripts to sync -portable need them in the files

Revision 1.25 / (download) - annotate - [select for diffs], Sun Mar 19 18:51:18 2006 UTC (18 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.24: +0 -1 lines
Diff to previous 1.24 (colored)

RCSID() can die

Revision 1.23.12.1 / (download) - annotate - [select for diffs], Fri Feb 3 03:01:56 2006 UTC (18 years, 3 months ago) by brad
Branch: OPENBSD_3_8
Changes since 1.23: +9 -7 lines
Diff to previous 1.23 (colored)

upgrade to OpenSSH 4.3

Revision 1.23.10.1 / (download) - annotate - [select for diffs], Fri Feb 3 02:53:44 2006 UTC (18 years, 3 months ago) by brad
Branch: OPENBSD_3_7
Changes since 1.23: +9 -7 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

upgrade to OpenSSH 4.3

Revision 1.24 / (download) - annotate - [select for diffs], Fri Nov 4 05:15:59 2005 UTC (18 years, 6 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE
Branch point for: OPENBSD_3_9
Changes since 1.23: +9 -7 lines
Diff to previous 1.23 (colored)

remove hardcoded hash lengths in key exchange code, allowing
implementation of KEX methods with different hashes (e.g. SHA-256);
ok markus@ dtucker@ stevesk@

Revision 1.22.4.2 / (download) - annotate - [select for diffs], Tue Sep 16 21:20:26 2003 UTC (20 years, 8 months ago) by brad
Branch: OPENBSD_3_2
Changes since 1.22.4.1: +0 -0 lines
Diff to previous 1.22.4.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

upgrade to OpenSSH 3.7

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Thu Apr 3 22:35:17 2003 UTC (21 years, 1 month ago) by miod
Branch: OPENBSD_3_1
Changes since 1.22: +3 -325 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Merge OpenSSH 3.6.1

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Tue Apr 1 00:12:13 2003 UTC (21 years, 1 month ago) by margarida
Branch: OPENBSD_3_2
Changes since 1.22: +3 -325 lines
Diff to previous 1.22 (colored)

Update to OpenSSH 3.6

Revision 1.23 / (download) - annotate - [select for diffs], Sun Feb 16 17:09:57 2003 UTC (21 years, 3 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_7_BASE, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3
Branch point for: OPENBSD_3_8, OPENBSD_3_7
Changes since 1.22: +3 -325 lines
Diff to previous 1.22 (colored)

split kex into client and server code, no need to link
server code into the client; ok provos@

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Sun Jun 2 22:56:10 2002 UTC (21 years, 11 months ago) by miod
Branch: OPENBSD_2_9
Changes since 1.5.2.2: +7 -4 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Upgrade to OpenSSH 3.2.3.

Except for improbable compilation error fixes, this should be the last
commit made to the 2.9-STABLE branche. Have fun upgrading.

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Fri May 17 00:03:23 2002 UTC (22 years ago) by miod
Branch: OPENBSD_3_0
Changes since 1.9.2.1: +7 -4 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Update OpenSSH to version 3.2.2.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Mar 24 17:27:03 2002 UTC (22 years, 1 month ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_1_BASE
Branch point for: OPENBSD_3_2, OPENBSD_3_1
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

typo; ok markus@

Revision 1.21 / (download) - annotate - [select for diffs], Mon Mar 18 17:50:31 2002 UTC (22 years, 2 months ago) by provos
Branch: MAIN
Changes since 1.20: +6 -3 lines
Diff to previous 1.20 (colored)

integrate privilege separated openssh; its turned off by default for now.
work done by me and markus@

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Sat Mar 9 00:20:44 2002 UTC (22 years, 2 months ago) by miod
Branch: OPENBSD_2_9
Changes since 1.5.2.1: +29 -27 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored)

Merge OpenSSH 3.1, keeping /etc as configuration files directory.
(i.e. OpenSSH 3.1 + openbsd29_3.1.patch)

Revision 1.5.4.3 / (download) - annotate - [select for diffs], Fri Mar 8 17:04:42 2002 UTC (22 years, 2 months ago) by brad
Branch: OPENBSD_2_8
Changes since 1.5.4.2: +29 -27 lines
Diff to previous 1.5.4.2 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Merge OpenSSH 3.1.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Thu Mar 7 17:37:46 2002 UTC (22 years, 2 months ago) by jason
Branch: OPENBSD_3_0
Changes since 1.9: +29 -27 lines
Diff to previous 1.9 (colored)

Update to OpenSSH-3.1 on 3.0-stable branch

Revision 1.20 / (download) - annotate - [select for diffs], Thu Feb 28 15:46:33 2002 UTC (22 years, 2 months ago) by markus
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

add some const EVP_MD for openssl-0.9.7

Revision 1.19 / (download) - annotate - [select for diffs], Sun Feb 24 19:14:59 2002 UTC (22 years, 2 months ago) by markus
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

signed vs. unsigned: make size arguments u_int, ok stevesk@

Revision 1.18 / (download) - annotate - [select for diffs], Sat Feb 23 17:59:02 2002 UTC (22 years, 2 months ago) by markus
Branch: MAIN
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

don't allow garbage after payload.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jan 31 13:35:11 2002 UTC (22 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored)

cross check announced key type and type from key blob

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jan 25 22:07:40 2002 UTC (22 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

use EVP_MD_size(evp_md) and not evp_md->md_size; ok steveks@

Revision 1.15 / (download) - annotate - [select for diffs], Fri Dec 28 14:50:54 2001 UTC (22 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.14: +7 -7 lines
Diff to previous 1.14 (colored)

packet_read* no longer return the packet length, since it's not used.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Dec 28 13:57:33 2001 UTC (22 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.13: +7 -7 lines
Diff to previous 1.13 (colored)

packet_get_bignum* no longer returns a size

Revision 1.13 / (download) - annotate - [select for diffs], Fri Dec 28 12:14:27 2001 UTC (22 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

s/packet_done/packet_check_eom/ (end-of-message); ok djm@

Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 27 19:37:23 2001 UTC (22 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

always use BN_clear_free instead of BN_free

Revision 1.11 / (download) - annotate - [select for diffs], Thu Dec 27 18:22:16 2001 UTC (22 years, 4 months ago) by markus
Branch: MAIN
Changes since 1.10: +7 -7 lines
Diff to previous 1.10 (colored)

call fatal() for openssl allocation failures

Revision 1.10 / (download) - annotate - [select for diffs], Wed Dec 5 10:06:12 2001 UTC (22 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

minor KNF

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Thu Sep 27 19:03:54 2001 UTC (22 years, 7 months ago) by jason
Branch: OPENBSD_2_9
Changes since 1.5: +15 -14 lines
Diff to previous 1.5 (colored)

Pull in OpenSSH-2.9.9

Revision 1.5.4.2 / (download) - annotate - [select for diffs], Thu Sep 27 00:15:42 2001 UTC (22 years, 7 months ago) by miod
Branch: OPENBSD_2_8
Changes since 1.5.4.1: +15 -14 lines
Diff to previous 1.5.4.1 (colored) to branchpoint 1.5 (colored)

Pull in OpenSSH 2.9.9 to the 2.8 branch.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Sep 17 19:27:15 2001 UTC (22 years, 8 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE
Branch point for: OPENBSD_3_0
Changes since 1.8: +6 -6 lines
Diff to previous 1.8 (colored)

u_char*/char* cleanup; ok markus@

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jun 23 15:12:19 2001 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)

more strict prototypes.  raise warning level in Makefile.inc.  markus ok'ed
TODO; cleanup headers

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jun 23 02:34:29 2001 UTC (22 years, 10 months ago) by markus
Branch: MAIN
Changes since 1.6: +5 -4 lines
Diff to previous 1.6 (colored)

get rid of known_hosts2, use it for hostkey lookup, but do not modify.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jun 7 20:23:04 2001 UTC (22 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

use xxx_put_cstring()

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Mon May 7 21:09:30 2001 UTC (23 years ago) by jason
Branch: OPENBSD_2_8
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (colored)

Pull in OpenSSH-2.9 to 2.8 branch.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Apr 5 10:42:50 2001 UTC (23 years, 1 month ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE
Branch point for: OPENBSD_2_9, OPENBSD_2_8
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

fix whitespace: unexpand + trailing spaces.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Apr 4 22:04:35 2001 UTC (23 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

parse full kexinit packet.
make server-side more robust, too.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Apr 4 09:48:34 2001 UTC (23 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.2: +7 -10 lines
Diff to previous 1.2 (colored)

don't sent multiple kexinit-requests.
send newkeys, block while waiting for newkeys.
fix comments.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 3 23:32:12 2001 UTC (23 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.1: +68 -137 lines
Diff to previous 1.1 (colored)

undo parts of recent my changes: main part of keyexchange does not
need dispatch-callbacks, since application data is delayed until
the keyexchange completes (if i understand the drafts correctly).

add some infrastructure for re-keying.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Apr 3 19:53:29 2001 UTC (23 years, 1 month ago) by markus
Branch: MAIN

move kex to kex*.c, used dispatch_set() callbacks for kex. should
make rekeying easier.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.