1/*
2 * This file is part of the SSH Library
3 *
4 * Copyright (c) 2013 by Aris Adamantiadis
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21#ifndef GSSAPI_H_
22#define GSSAPI_H_
23
24#include "config.h"
25#include "session.h"
26
27/* all OID begin with the tag identifier + length */
28#define SSH_OID_TAG 06
29
30typedef struct ssh_gssapi_struct *ssh_gssapi;
31
32#ifdef WITH_SERVER
33int ssh_gssapi_handle_userauth(ssh_session session, const char *user, uint32_t n_oid, ssh_string *oids);
34SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_token_server);
35SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_mic);
36#endif /* WITH_SERVER */
37
38SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_token);
39SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_token_client);
40SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_response);
41
42
43int ssh_gssapi_auth_mic(ssh_session session);
44
45#endif /* GSSAPI_H */
46