version 1.25, 2019/01/21 09:54:11 |
version 1.26, 2019/01/21 09:55:52 |
|
|
kex->hostkey_alg, ssh->compat)) != 0) |
kex->hostkey_alg, ssh->compat)) != 0) |
goto out; |
goto out; |
|
|
/* save session id */ |
|
if (kex->session_id == NULL) { |
|
kex->session_id_len = hashlen; |
|
kex->session_id = malloc(kex->session_id_len); |
|
if (kex->session_id == NULL) { |
|
r = SSH_ERR_ALLOC_FAIL; |
|
goto out; |
|
} |
|
memcpy(kex->session_id, hash, kex->session_id_len); |
|
} |
|
|
|
if ((r = kex_derive_keys_bn(ssh, hash, hashlen, shared_secret)) == 0) |
if ((r = kex_derive_keys_bn(ssh, hash, hashlen, shared_secret)) == 0) |
r = kex_send_newkeys(ssh); |
r = kex_send_newkeys(ssh); |
out: |
out: |