source: vendor/current/auth/kerberos/gssapi_helper.h

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 2.0 KB
Line 
1/*
2 Unix SMB/CIFS implementation.
3 GSSAPI helper functions
4
5 Copyright (C) Stefan Metzmacher 2008,2015
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef AUTH_KERBEROS_GSSAPI_HELPER_H
22#define AUTH_KERBEROS_GSSAPI_HELPER_H 1
23
24size_t gssapi_get_sig_size(gss_ctx_id_t gssapi_context,
25 const gss_OID mech,
26 uint32_t gss_want_flags,
27 size_t data_size);
28NTSTATUS gssapi_seal_packet(gss_ctx_id_t gssapi_context,
29 const gss_OID mech,
30 bool hdr_signing, size_t sig_size,
31 uint8_t *data, size_t length,
32 const uint8_t *whole_pdu, size_t pdu_length,
33 TALLOC_CTX *mem_ctx,
34 DATA_BLOB *sig);
35NTSTATUS gssapi_unseal_packet(gss_ctx_id_t gssapi_context,
36 const gss_OID mech,
37 bool hdr_signing,
38 uint8_t *data, size_t length,
39 const uint8_t *whole_pdu, size_t pdu_length,
40 const DATA_BLOB *sig);
41NTSTATUS gssapi_sign_packet(gss_ctx_id_t gssapi_context,
42 const gss_OID mech,
43 bool hdr_signing,
44 const uint8_t *data, size_t length,
45 const uint8_t *whole_pdu, size_t pdu_length,
46 TALLOC_CTX *mem_ctx,
47 DATA_BLOB *sig);
48NTSTATUS gssapi_check_packet(gss_ctx_id_t gssapi_context,
49 const gss_OID mech,
50 bool hdr_signing,
51 const uint8_t *data, size_t length,
52 const uint8_t *whole_pdu, size_t pdu_length,
53 const DATA_BLOB *sig);
54
55#endif /* AUTH_KERBEROS_GSSAPI_HELPER_H */
Note: See TracBrowser for help on using the repository browser.