/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#ifndef _SMBSRV_SMB_KRB_H
#define _SMBSRV_SMB_KRB_H
#include <kerberosv5/krb5.h>
#include <kt_solaris.h>
#ifdef __cplusplus
extern "C" {
#endif
boolean_t smb_krb5_ccache_exist(const char *);
void smb_krb5_ccache_remove(const char *);
boolean_t smb_krb5_ccache_isvalid(const char *, char *);
/* Service principals that are required for Kerberos user authentication */
/*
* Service principals that are required when server's extended security is
* disabled
*/
/* Assign an identifier for each principal name format */
typedef enum smb_krb5_pn_id {
/*
* A principal name can be constructed based on the following:
*
* p_id - identifier for a principal name.
* p_svc - service with which the principal is associated.
* p_flags - usage of the principal is identified - whether it can be used as a
*/
typedef struct smb_krb5_pn {
char *p_svc;
/*
* A set of principal names
*
* ps_cnt - the number of principal names in the array.
* ps_set - An array of principal names terminated with a NULL pointer.
*/
typedef struct smb_krb5_pn_set {
char **s_pns;
void smb_krb5_free_pn_set(smb_krb5_pn_set_t *);
char *smb_krb5_kt_getpath(void);
int smb_krb5_setpwd(const char *, char *);
#ifdef __cplusplus
}
#endif
#endif /* _SMBSRV_SMB_KRB_H */