version 1.15, 2013/05/17 00:13:13 |
version 1.16, 2013/07/19 07:37:48 |
|
|
if (server_host_public == NULL) |
if (server_host_public == NULL) |
fatal("Unsupported hostkey type %d", kex->hostkey_type); |
fatal("Unsupported hostkey type %d", kex->hostkey_type); |
server_host_private = kex->load_host_private_key(kex->hostkey_type); |
server_host_private = kex->load_host_private_key(kex->hostkey_type); |
if (server_host_private == NULL) |
|
fatal("Missing private key for hostkey type %d", |
|
kex->hostkey_type); |
|
|
|
|
|
type = packet_read(); |
type = packet_read(); |
switch (type) { |
switch (type) { |
case SSH2_MSG_KEX_DH_GEX_REQUEST: |
case SSH2_MSG_KEX_DH_GEX_REQUEST: |
|
|
} |
} |
|
|
/* sign H */ |
/* sign H */ |
if (PRIVSEP(key_sign(server_host_private, &signature, &slen, hash, |
kex->sign(server_host_private, server_host_public, &signature, &slen, |
hashlen)) < 0) |
hash, hashlen); |
fatal("kexgex_server: key_sign failed"); |
|
|
|
/* destroy_sensitive_data(); */ |
/* destroy_sensitive_data(); */ |
|
|