1 /* context.c Implementation of GSS-API Context functions.
2 * Copyright (C) 2003 Simon Josefsson
4 * This file is part of Shishi.
6 * Shishi is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * Shishi 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
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with Shishi; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 gss_init_sec_context (OM_uint32
* minor_status
,
26 const gss_cred_id_t initiator_cred_handle
,
27 gss_ctx_id_t
* context_handle
,
28 const gss_name_t target_name
,
29 const gss_OID mech_type
,
32 const gss_channel_bindings_t input_chan_bindings
,
33 const gss_buffer_t input_token
,
34 gss_OID
* actual_mech_type
,
35 gss_buffer_t output_token
,
36 OM_uint32
* ret_flags
, OM_uint32
* time_rec
)
41 gss_accept_sec_context (OM_uint32
* minor_status
,
42 gss_ctx_id_t
* context_handle
,
43 const gss_cred_id_t acceptor_cred_handle
,
44 const gss_buffer_t input_token_buffer
,
45 const gss_channel_bindings_t input_chan_bindings
,
46 gss_name_t
* src_name
,
48 gss_buffer_t output_token
,
49 OM_uint32
* ret_flags
,
51 gss_cred_id_t
* delegated_cred_handle
)
56 gss_delete_sec_context (OM_uint32
* minor_status
,
57 gss_ctx_id_t
* context_handle
,
58 gss_buffer_t output_token
)
63 gss_process_context_token (OM_uint32
* minor_status
,
64 const gss_ctx_id_t context_handle
,
65 const gss_buffer_t token_buffer
)
70 gss_context_time (OM_uint32
* minor_status
,
71 const gss_ctx_id_t context_handle
, OM_uint32
* time_rec
)
76 gss_inquire_context (OM_uint32
* minor_status
,
77 const gss_ctx_id_t context_handle
,
78 gss_name_t
* src_name
,
79 gss_name_t
* targ_name
,
80 OM_uint32
* lifetime_rec
,
82 OM_uint32
* ctx_flags
, int *locally_initiated
, int *open
)
87 gss_wrap_size_limit (OM_uint32
* minor_status
,
88 const gss_ctx_id_t context_handle
,
91 OM_uint32 req_output_size
, OM_uint32
* max_input_size
)
96 gss_export_sec_context (OM_uint32
* minor_status
,
97 gss_ctx_id_t
* context_handle
,
98 gss_buffer_t interprocess_token
)
103 gss_import_sec_context (OM_uint32
* minor_status
,
104 const gss_buffer_t interprocess_token
,
105 gss_ctx_id_t
* context_handle
)