Indent.
[shishi.git] / gss / obsolete.c
blob3334f22a16647b3f603d0c4aa0fcce6f15627724
1 /* obsolete.c Obsolete GSS-API v1 compatibility mappings.
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_sign (OM_uint32 * minor_status,
26 gss_ctx_id_t context_handle,
27 int qop_req,
28 gss_buffer_t message_buffer, gss_buffer_t message_token)
30 return gss_get_mic (minor_status, context_handle,
31 qop_req, message_buffer, message_token);
35 OM_uint32
36 gss_verify (OM_uint32 * minor_status,
37 gss_ctx_id_t context_handle,
38 gss_buffer_t message_buffer,
39 gss_buffer_t token_buffer, int *qop_state)
41 return gss_verify_mic (minor_status, context_handle, message_buffer,
42 token_buffer, qop_state);
45 OM_uint32
46 gss_seal (OM_uint32 * minor_status,
47 gss_ctx_id_t context_handle,
48 int conf_req_flag,
49 int qop_req,
50 gss_buffer_t input_message_buffer,
51 int *conf_state, gss_buffer_t output_message_buffer)
53 return gss_wrap (minor_status, context_handle, conf_req_flag, qop_req,
54 input_message_buffer, conf_state, output_message_buffer);
58 OM_uint32
59 gss_unseal (OM_uint32 * minor_status,
60 gss_ctx_id_t context_handle,
61 gss_buffer_t input_message_buffer,
62 gss_buffer_t output_message_buffer,
63 int *conf_state, int *qop_state)
65 return gss_unwrap (minor_status, context_handle, input_message_buffer,
66 output_message_buffer, conf_state, qop_state);