Lines Matching refs:ssh
58 kexgex_client(struct ssh *ssh)
60 struct kex *kex = ssh->kex;
72 if ((r = sshpkt_start(ssh, SSH2_MSG_KEX_DH_GEX_REQUEST)) != 0 ||
73 (r = sshpkt_put_u32(ssh, kex->min)) != 0 ||
74 (r = sshpkt_put_u32(ssh, kex->nbits)) != 0 ||
75 (r = sshpkt_put_u32(ssh, kex->max)) != 0 ||
76 (r = sshpkt_send(ssh)) != 0)
84 ssh_dispatch_set(ssh, SSH2_MSG_KEX_DH_GEX_GROUP,
94 struct ssh *ssh = ctxt;
95 struct kex *kex = ssh->kex;
106 if ((r = sshpkt_get_bignum2(ssh, p)) != 0 ||
107 (r = sshpkt_get_bignum2(ssh, g)) != 0 ||
108 (r = sshpkt_get_end(ssh)) != 0)
123 (r = sshpkt_start(ssh, SSH2_MSG_KEX_DH_GEX_INIT)) != 0 ||
124 (r = sshpkt_put_bignum2(ssh, kex->dh->pub_key)) != 0 ||
125 (r = sshpkt_send(ssh)) != 0)
134 ssh_dispatch_set(ssh, SSH2_MSG_KEX_DH_GEX_GROUP, NULL);
135 ssh_dispatch_set(ssh, SSH2_MSG_KEX_DH_GEX_REPLY, &input_kex_dh_gex_reply);
148 struct ssh *ssh = ctxt;
149 struct kex *kex = ssh->kex;
163 if ((r = sshpkt_get_string(ssh, &server_host_key_blob,
178 if (kex->verify_host_key(server_host_key, ssh) == -1) {
188 if ((r = sshpkt_get_bignum2(ssh, dh_server_pub)) != 0 ||
189 (r = sshpkt_get_string(ssh, &signature, &slen)) != 0 ||
190 (r = sshpkt_get_end(ssh)) != 0)
199 sshpkt_disconnect(ssh, "bad server public DH value");
218 if (ssh->compat & SSH_OLD_DHGEX)
239 hashlen, ssh->compat)) != 0)
253 if ((r = kex_derive_keys_bn(ssh, hash, hashlen, shared_secret)) == 0)
254 r = kex_send_newkeys(ssh);