libssh  0.10.90
The SSH library
Loading...
Searching...
No Matches
gssapi.h
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 __cplusplus
33extern "C" {
34#endif
35
36#ifdef WITH_SERVER
37int ssh_gssapi_handle_userauth(ssh_session session, const char *user, uint32_t n_oid, ssh_string *oids);
38SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_token_server);
39SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_mic);
40#endif /* WITH_SERVER */
41
42SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_token);
43SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_token_client);
44SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_response);
45
46
47int ssh_gssapi_auth_mic(ssh_session session);
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif /* GSSAPI_H */
#define SSH_PACKET_CALLBACK(name)
This macro declares a packet callback handler.
Definition callbacks.h:558