selftest: Move MIT Kerberos knownfails to separate files in their own directory
[Samba.git] / auth / credentials / credentials_krb5.h
bloba9c049c58dad574964fd79ed9d6b56e20ff00e38
1 /*
2 samba -- Unix SMB/CIFS implementation.
4 Client credentials structure
6 Copyright (C) Jelmer Vernooij 2004-2006
7 Copyright (C) Andrew Bartlett <abartlet@samba.org> 2005
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #ifndef __CREDENTIALS_KRB5_H__
24 #define __CREDENTIALS_KRB5_H__
26 #include "system/gssapi.h"
27 #include "system/kerberos.h"
29 struct gssapi_creds_container {
30 gss_cred_id_t creds;
33 /* Manually prototyped here to avoid needing gss headers in most callers */
34 int cli_credentials_set_client_gss_creds(struct cli_credentials *cred,
35 struct loadparm_context *lp_ctx,
36 gss_cred_id_t gssapi_cred,
37 enum credentials_obtained obtained,
38 const char **error_string);
40 struct cli_credentials *cli_credentials_shallow_copy(TALLOC_CTX *mem_ctx,
41 struct cli_credentials *src);
43 int cli_credentials_get_kerberos_key(struct cli_credentials *cred,
44 TALLOC_CTX *mem_ctx,
45 struct loadparm_context *lp_ctx,
46 krb5_enctype enctype,
47 bool previous,
48 DATA_BLOB *key_blob);
51 #endif /* __CREDENTIALS_KRB5_H__ */