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__
2024-05-11 03:38:21 +03:00
# include "system/gssapi.h"
# include "system/kerberos.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 ) ;
2023-12-21 12:25:25 +03: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 04:04:23 +03:00
bool previous ,
2023-12-21 12:25:25 +03:00
DATA_BLOB * key_blob ) ;
2016-07-21 16:08:32 +03:00
2007-12-17 06:56:54 +03:00
# endif /* __CREDENTIALS_KRB5_H__ */