libssh: /build/libssh/src/libssh-0.8.3/include/libssh/gssapi.h Source File

libssh 0.8.3 The SSH library

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
30 typedef struct ssh_gssapi_struct *ssh_gssapi;
31
32 #ifdef WITH_SERVER
33 int ssh_gssapi_handle_userauth(ssh_session session, const char *user, uint32_t n_oid, ssh_string *oids);
34 SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_token_server);
35 SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_mic);
36 #endif /* WITH_SERVER */
37
38 SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_token);
39 SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_token_client);
40 SSH_PACKET_CALLBACK(ssh_packet_userauth_gssapi_response);
41
42
43 int ssh_gssapi_auth_mic(ssh_session session);
44
45 #endif /* GSSAPI_H */
ssh_session_struct
Definition: session.h:102
ssh_gssapi_struct
Definition: gssapi.c:48
ssh_string_struct
Definition: string.h:29
SSH_PACKET_CALLBACK
#define SSH_PACKET_CALLBACK(name)
This macro declares a packet callback handler.
Definition: callbacks.h:527