Indent.
[shishi.git] / gss / context.c
blobdee3e9f19a558851a75e9d3d9314c42ab3b93a19
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
22 #include "internal.h"
24 OM_uint32
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,
30 OM_uint32 req_flags,
31 OM_uint32 time_req,
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)
40 OM_uint32
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,
47 gss_OID * mech_type,
48 gss_buffer_t output_token,
49 OM_uint32 * ret_flags,
50 OM_uint32 * time_rec,
51 gss_cred_id_t * delegated_cred_handle)
55 OM_uint32
56 gss_delete_sec_context (OM_uint32 * minor_status,
57 gss_ctx_id_t * context_handle,
58 gss_buffer_t output_token)
62 OM_uint32
63 gss_process_context_token (OM_uint32 * minor_status,
64 const gss_ctx_id_t context_handle,
65 const gss_buffer_t token_buffer)
69 OM_uint32
70 gss_context_time (OM_uint32 * minor_status,
71 const gss_ctx_id_t context_handle, OM_uint32 * time_rec)
75 OM_uint32
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,
81 gss_OID * mech_type,
82 OM_uint32 * ctx_flags, int *locally_initiated, int *open)
86 OM_uint32
87 gss_wrap_size_limit (OM_uint32 * minor_status,
88 const gss_ctx_id_t context_handle,
89 int conf_req_flag,
90 gss_qop_t qop_req,
91 OM_uint32 req_output_size, OM_uint32 * max_input_size)
95 OM_uint32
96 gss_export_sec_context (OM_uint32 * minor_status,
97 gss_ctx_id_t * context_handle,
98 gss_buffer_t interprocess_token)
102 OM_uint32
103 gss_import_sec_context (OM_uint32 * minor_status,
104 const gss_buffer_t interprocess_token,
105 gss_ctx_id_t * context_handle)