2006-11-07 03:48:36 +03: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 06:07:03 +04:00
the Free Software Foundation ; either version 3 of the License , or
2006-11-07 03:48:36 +03: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 06:07:03 +04:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2006-11-07 03:48:36 +03:00
*/
2007-12-17 06:56:54 +03:00
# ifndef __CREDENTIALS_KRB5_H__
# define __CREDENTIALS_KRB5_H__
2007-04-19 21:55:52 +04:00
# include <gssapi/gssapi.h>
2009-03-25 13:17:17 +03:00
# include <gssapi/gssapi_krb5.h>
2007-12-16 17:33:58 +03:00
# include <krb5.h>
2006-11-07 03:48:36 +03:00
struct gssapi_creds_container {
gss_cred_id_t creds ;
} ;
2008-03-17 07:22:52 +03: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 08:16:33 +03:00
enum credentials_obtained obtained ,
const char * * error_string ) ;
2008-03-17 07:22:52 +03:00
2016-07-21 16:08:32 +03:00
struct cli_credentials * cli_credentials_shallow_copy ( TALLOC_CTX * mem_ctx ,
struct cli_credentials * src ) ;
2007-12-17 06:56:54 +03:00
# endif /* __CREDENTIALS_KRB5_H__ */