Created src/misc.[ch],ssh.[ch],pinentry.[ch].
[libpwmd.git] / src / ssh.h
blobc53204b4552c26bc972b6d5c2c39633d68532fc4
1 /* vim:tw=78:ts=8:sw=4:set ft=c: */
2 /*
3 Copyright (C) 2006-2009 Ben Kibbey <bjk@luxsci.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02110-1301 USA
19 #ifndef SSH_H
20 #define SSH_H
22 #include "types.h"
24 void _free_tcp_conn(pwmd_tcp_conn_t *conn)
25 __attribute__ ((visibility ("internal")));
27 gpg_error_t _do_pwmd_tcp_connect_async(pwm_t *pwm, const char *host,
28 int port, const char *identity, const char *user,
29 const char *known_hosts, pwmd_async_cmd_t which)
30 __attribute__ ((visibility ("internal")));
32 gpg_error_t _setup_tcp_session(pwm_t *pwm)
33 __attribute__ ((visibility ("internal")));
35 gpg_error_t _do_pwmd_tcp_connect(pwm_t *pwm, const char *host, int port,
36 const char *identity, const char *user, const char *known_hosts,
37 int get)
38 __attribute__ ((visibility ("internal")));
40 int _parse_ssh_url(char *str, char **host, int *port, char **user,
41 char **identity, char **known_hosts)
42 __attribute__ ((visibility ("internal")));
44 #endif