version 1.7, 2001/09/17 19:27:15 |
version 1.8, 2001/12/27 18:22:16 |
|
|
fatal("server_host_key verification failed"); |
fatal("server_host_key verification failed"); |
|
|
/* DH paramter f, server public DH key */ |
/* DH paramter f, server public DH key */ |
dh_server_pub = BN_new(); |
if ((dh_server_pub = BN_new()) == NULL) |
if (dh_server_pub == NULL) |
|
fatal("dh_server_pub == NULL"); |
fatal("dh_server_pub == NULL"); |
packet_get_bignum2(dh_server_pub, &dlen); |
packet_get_bignum2(dh_server_pub, &dlen); |
|
|
|
|
#ifdef DEBUG_KEXDH |
#ifdef DEBUG_KEXDH |
dump_digest("shared secret", kbuf, kout); |
dump_digest("shared secret", kbuf, kout); |
#endif |
#endif |
shared_secret = BN_new(); |
if ((shared_secret = BN_new()) == NULL) |
|
fatal("kexdh_client: BN_new failed"); |
BN_bin2bn(kbuf, kout, shared_secret); |
BN_bin2bn(kbuf, kout, shared_secret); |
memset(kbuf, 0, klen); |
memset(kbuf, 0, klen); |
xfree(kbuf); |
xfree(kbuf); |
|
|
fatal("Unsupported hostkey type %d", kex->hostkey_type); |
fatal("Unsupported hostkey type %d", kex->hostkey_type); |
|
|
/* key, cert */ |
/* key, cert */ |
dh_client_pub = BN_new(); |
if ((dh_client_pub = BN_new()) == NULL) |
if (dh_client_pub == NULL) |
|
fatal("dh_client_pub == NULL"); |
fatal("dh_client_pub == NULL"); |
packet_get_bignum2(dh_client_pub, &dlen); |
packet_get_bignum2(dh_client_pub, &dlen); |
|
|
|
|
#ifdef DEBUG_KEXDH |
#ifdef DEBUG_KEXDH |
dump_digest("shared secret", kbuf, kout); |
dump_digest("shared secret", kbuf, kout); |
#endif |
#endif |
shared_secret = BN_new(); |
if ((shared_secret = BN_new()) == NULL) |
|
fatal("kexdh_server: BN_new failed"); |
BN_bin2bn(kbuf, kout, shared_secret); |
BN_bin2bn(kbuf, kout, shared_secret); |
memset(kbuf, 0, klen); |
memset(kbuf, 0, klen); |
xfree(kbuf); |
xfree(kbuf); |