Lines Matching defs:ssh

50 #include "ssh.h"
77 #include "ssh-gss.h"
96 verify_host_key_callback(Key *hostkey, struct ssh *ssh)
367 struct ssh *ssh = active_state;
382 authctxt.service = "ssh-connection"; /* service name */
394 if ((r = sshpkt_start(ssh, SSH2_MSG_SERVICE_REQUEST)) != 0 ||
395 (r = sshpkt_put_cstring(ssh, "ssh-userauth")) != 0 ||
396 (r = sshpkt_send(ssh)) != 0)
399 ssh_dispatch_init(ssh, &input_userauth_error);
400 ssh_dispatch_set(ssh, SSH2_MSG_EXT_INFO, &input_userauth_ext_info);
401 ssh_dispatch_set(ssh, SSH2_MSG_SERVICE_ACCEPT, &input_userauth_service_accept);
402 ssh_dispatch_run(ssh, DISPATCH_BLOCK, &authctxt.success, &authctxt); /* loop until success */
405 ssh_dispatch_range(ssh, SSH2_MSG_USERAUTH_MIN, SSH2_MSG_USERAUTH_MAX, NULL);
415 struct ssh *ssh = active_state;
418 if (ssh_packet_remaining(ssh) > 0) {
421 if ((r = sshpkt_get_cstring(ssh, &reply, NULL)) != 0)
428 if ((r = sshpkt_get_end(ssh)) != 0)
435 ssh_dispatch_set(ssh, SSH2_MSG_EXT_INFO, &input_userauth_error);
436 ssh_dispatch_set(ssh, SSH2_MSG_USERAUTH_SUCCESS, &input_userauth_success);
437 ssh_dispatch_set(ssh, SSH2_MSG_USERAUTH_FAILURE, &input_userauth_failure);
438 ssh_dispatch_set(ssh, SSH2_MSG_USERAUTH_BANNER, &input_userauth_banner);
999 struct ssh *ssh = active_state;
1002 switch (ssh->kex->rsa_sha2) {
1077 "ssh-userauth" :
1678 struct ssh *ssh = active_state;
1753 service = datafellows & SSH_BUG_HBSERVICE ? "ssh-userauth" :
1792 if ((r = sshpkt_start(ssh, SSH2_MSG_USERAUTH_REQUEST)) != 0 ||
1793 (r = sshpkt_put_cstring(ssh, authctxt->server_user)) != 0 ||
1794 (r = sshpkt_put_cstring(ssh, authctxt->service)) != 0 ||
1795 (r = sshpkt_put_cstring(ssh, authctxt->method->name)) != 0 ||
1796 (r = sshpkt_put_cstring(ssh, key_ssh_name(private))) != 0 ||
1797 (r = sshpkt_put_string(ssh, keyblob, keylen)) != 0 ||
1798 (r = sshpkt_put_cstring(ssh, chost)) != 0 ||
1799 (r = sshpkt_put_cstring(ssh, authctxt->local_user)) != 0 ||
1800 (r = sshpkt_put_string(ssh, sig, siglen)) != 0 ||
1801 (r = sshpkt_send(ssh)) != 0) {