Home | History | Annotate | Download | only in openssh

Lines Matching refs:ssh

50 #include "ssh-gss.h"
61 kexgex_server(struct ssh *ssh)
63 ssh_dispatch_set(ssh, SSH2_MSG_KEX_DH_GEX_REQUEST,
72 struct ssh *ssh = ctxt;
73 struct kex *kex = ssh->kex;
78 if ((r = sshpkt_get_u32(ssh, &min)) != 0 ||
79 (r = sshpkt_get_u32(ssh, &nbits)) != 0 ||
80 (r = sshpkt_get_u32(ssh, &max)) != 0 ||
81 (r = sshpkt_get_end(ssh)) != 0)
100 sshpkt_disconnect(ssh, "no matching DH grp found");
105 if ((r = sshpkt_start(ssh, SSH2_MSG_KEX_DH_GEX_GROUP)) != 0 ||
106 (r = sshpkt_put_bignum2(ssh, kex->dh->p)) != 0 ||
107 (r = sshpkt_put_bignum2(ssh, kex->dh->g)) != 0 ||
108 (r = sshpkt_send(ssh)) != 0)
116 ssh_dispatch_set(ssh, SSH2_MSG_KEX_DH_GEX_INIT, &input_kex_dh_gex_init);
125 struct ssh *ssh = ctxt;
126 struct kex *kex = ssh->kex;
141 kex->hostkey_nid, ssh);
143 kex->hostkey_nid, ssh);
154 if ((r = sshpkt_get_bignum2(ssh, dh_client_pub)) != 0 ||
155 (r = sshpkt_get_end(ssh)) != 0)
172 sshpkt_disconnect(ssh, "bad client public DH value");
224 &signature, &slen, hash, hashlen, ssh->compat)) < 0)
230 if ((r = sshpkt_start(ssh, SSH2_MSG_KEX_DH_GEX_REPLY)) != 0 ||
231 (r = sshpkt_put_string(ssh, server_host_key_blob, sbloblen)) != 0 ||
232 (r = sshpkt_put_bignum2(ssh, kex->dh->pub_key)) != 0 || /* f */
233 (r = sshpkt_put_string(ssh, signature, slen)) != 0 ||
234 (r = sshpkt_send(ssh)) != 0)
237 if ((r = kex_derive_keys_bn(ssh, hash, hashlen, shared_secret)) == 0)
238 r = kex_send_newkeys(ssh);