sshsrv_private.h revision 8e8dda8561e89276a891495ae84eefe2b2170193
/*
Authors:
Jan Cholasta <jcholast@redhat.com>
Copyright (C) 2012 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _SSHSRV_PRIVATE_H_
#define _SSHSRV_PRIVATE_H_
#include "responder/common/responder.h"
struct ssh_ctx {
struct sss_names_ctx *snctx;
bool hash_known_hosts;
int known_hosts_timeout;
char *ca_db;
};
struct ssh_cmd_ctx {
char *name;
char *alias;
char *domname;
bool is_user;
struct sss_domain_info *domain;
bool check_next;
char *fqdn;
struct ldb_message *result;
};
struct sss_cmd_table *get_ssh_cmds(void);
struct tevent_req *
struct sss_domain_info *dom,
bool fast_reply,
const char *name,
const char *alias);
struct tevent_req *req,
char **err_msg);
#endif /* _SSHSRV_PRIVATE_H_ */