xref: /freebsd/crypto/openssh/sshconnect.h (revision e0fbb1d2de5da5201d80ec05cf2aee2d90e3f1b0)
1b66f2d16SKris Kennaway /*
2b66f2d16SKris Kennaway  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
3b66f2d16SKris Kennaway  *
4b66f2d16SKris Kennaway  * Redistribution and use in source and binary forms, with or without
5b66f2d16SKris Kennaway  * modification, are permitted provided that the following conditions
6b66f2d16SKris Kennaway  * are met:
7b66f2d16SKris Kennaway  * 1. Redistributions of source code must retain the above copyright
8b66f2d16SKris Kennaway  *    notice, this list of conditions and the following disclaimer.
9b66f2d16SKris Kennaway  * 2. Redistributions in binary form must reproduce the above copyright
10b66f2d16SKris Kennaway  *    notice, this list of conditions and the following disclaimer in the
11b66f2d16SKris Kennaway  *    documentation and/or other materials provided with the distribution.
12b66f2d16SKris Kennaway  *
13b66f2d16SKris Kennaway  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14b66f2d16SKris Kennaway  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15b66f2d16SKris Kennaway  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
16b66f2d16SKris Kennaway  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17b66f2d16SKris Kennaway  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18b66f2d16SKris Kennaway  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19b66f2d16SKris Kennaway  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20b66f2d16SKris Kennaway  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21b66f2d16SKris Kennaway  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22b66f2d16SKris Kennaway  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2309958426SBrian Feldman  *
2409958426SBrian Feldman  * $FreeBSD$
25b66f2d16SKris Kennaway  */
26a04a10f8SKris Kennaway #ifndef SSHCONNECT_H
27a04a10f8SKris Kennaway #define SSHCONNECT_H
28a04a10f8SKris Kennaway 
29a04a10f8SKris Kennaway void
30a04a10f8SKris Kennaway check_host_key(char *host, struct sockaddr *hostaddr, Key *host_key,
31a04a10f8SKris Kennaway     const char *user_hostfile, const char *system_hostfile);
32a04a10f8SKris Kennaway 
33a04a10f8SKris Kennaway void	ssh_kex(char *host, struct sockaddr *hostaddr);
34a04a10f8SKris Kennaway void
35a04a10f8SKris Kennaway ssh_userauth(const char* local_user, const char* server_user, char *host,
36a04a10f8SKris Kennaway     int host_key_valid, RSA *own_host_key);
37a04a10f8SKris Kennaway 
38a04a10f8SKris Kennaway void	ssh_kex2(char *host, struct sockaddr *hostaddr);
39a04a10f8SKris Kennaway void	ssh_userauth2(const char *server_user, char *host);
40a04a10f8SKris Kennaway 
41e0fbb1d2SBrian Feldman void	ssh_put_password(char *password);
42e0fbb1d2SBrian Feldman 
43a04a10f8SKris Kennaway #endif
44