mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-09 07:13:43 -05:00
Support elliptic-curve Diffie-Hellman GSS KEX.
This is surprisingly simple, because it wasn't necessary to touch the GSS parts at all. Nothing changes about the message formats between integer DH and ECDH in GSS KEX, except that the mpints sent back and forth as part of integer DH are replaced by the opaque strings used in ECDH. So I've invented a new KEXTYPE and made it control a bunch of small conditionals in the middle of the GSS KEX code, leaving the rest unchanged.
This commit is contained in:
@ -223,20 +223,6 @@ static const ssh_kex *const gex_list[] = {
|
||||
|
||||
const ssh_kexes ssh_diffiehellman_gex = { lenof(gex_list), gex_list };
|
||||
|
||||
/*
|
||||
* Suffix on GSSAPI SSH protocol identifiers that indicates Kerberos 5
|
||||
* as the mechanism.
|
||||
*
|
||||
* This suffix is the base64-encoded MD5 hash of the byte sequence
|
||||
* 06 09 2A 86 48 86 F7 12 01 02 02, which in turn is the ASN.1 DER
|
||||
* encoding of the object ID 1.2.840.113554.1.2.2 which designates
|
||||
* Kerberos v5.
|
||||
*
|
||||
* (The same encoded OID, minus the two-byte DER header, is defined in
|
||||
* ssh/pgssapi.c as GSS_MECH_KRB5.)
|
||||
*/
|
||||
#define GSS_KRB5_OID_HASH "toWM5Slw5Ew8Mqkay+al2g=="
|
||||
|
||||
static const ssh_kex ssh_gssk5_diffiehellman_gex_sha1 = {
|
||||
.name = "gss-gex-sha1-" GSS_KRB5_OID_HASH,
|
||||
.groupname = NULL,
|
||||
|
Reference in New Issue
Block a user