2006-11-07 00:48:36 +00:00
/*
samba - - Unix SMB / CIFS implementation .
Client credentials structure
Copyright ( C ) Jelmer Vernooij 2004 - 2006
Copyright ( C ) Andrew Bartlett < abartlet @ samba . org > 2005
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
2007-07-10 02:07:03 +00:00
the Free Software Foundation ; either version 3 of the License , or
2006-11-07 00:48:36 +00:00
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
2007-07-10 02:07:03 +00:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2006-11-07 00:48:36 +00:00
*/
2007-12-17 04:56:54 +01:00
# ifndef __CREDENTIALS_KRB5_H__
# define __CREDENTIALS_KRB5_H__
2007-04-19 17:55:52 +00:00
# include <gssapi/gssapi.h>
2009-03-25 11:17:17 +01:00
# include <gssapi/gssapi_krb5.h>
2007-12-16 15:33:58 +01:00
# include <krb5.h>
2006-11-07 00:48:36 +00:00
struct gssapi_creds_container {
gss_cred_id_t creds ;
} ;
2008-03-17 15:22:52 +11:00
/* Manually prototyped here to avoid needing gss headers in most callers */
int cli_credentials_set_client_gss_creds ( struct cli_credentials * cred ,
struct loadparm_context * lp_ctx ,
gss_cred_id_t gssapi_cred ,
2010-02-25 16:16:33 +11:00
enum credentials_obtained obtained ,
const char * * error_string ) ;
2008-03-17 15:22:52 +11:00
2016-07-21 15:08:32 +02:00
struct cli_credentials * cli_credentials_shallow_copy ( TALLOC_CTX * mem_ctx ,
struct cli_credentials * src ) ;
2023-12-21 22:25:25 +13:00
int cli_credentials_get_kerberos_key ( struct cli_credentials * cred ,
TALLOC_CTX * mem_ctx ,
struct loadparm_context * lp_ctx ,
krb5_enctype enctype ,
2023-12-21 14:04:23 +13:00
bool previous ,
2023-12-21 22:25:25 +13:00
DATA_BLOB * key_blob ) ;
2016-07-21 15:08:32 +02:00
2007-12-17 04:56:54 +01:00
# endif /* __CREDENTIALS_KRB5_H__ */