2 Unix SMB/CIFS implementation.
3 kerberos authorization data (PAC) utility library
4 Copyright (C) Andrew Bartlett <abartlet@samba.org> 2011
5 Copyright (C) Simo Sorce 2010-2012
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
26 #include "lib/krb5_wrap/krb5_samba.h"
27 #include "lib/krb5_wrap/gss_samba.h"
29 struct PAC_SIGNATURE_DATA
;
31 struct PAC_LOGON_INFO
;
33 krb5_error_code
check_pac_checksum(DATA_BLOB pac_data
,
34 struct PAC_SIGNATURE_DATA
*sig
,
36 const krb5_keyblock
*keyblock
);
38 NTSTATUS
kerberos_decode_pac(TALLOC_CTX
*mem_ctx
,
39 DATA_BLOB pac_data_blob
,
41 const krb5_keyblock
*krbtgt_keyblock
,
42 const krb5_keyblock
*service_keyblock
,
43 krb5_const_principal client_principal
,
45 struct PAC_DATA
**pac_data_out
);
47 NTSTATUS
kerberos_pac_logon_info(TALLOC_CTX
*mem_ctx
,
50 const krb5_keyblock
*krbtgt_keyblock
,
51 const krb5_keyblock
*service_keyblock
,
52 krb5_const_principal client_principal
,
54 struct PAC_LOGON_INFO
**logon_info
);
59 struct PAC_DATA
*pac_data
;
62 struct auth4_context
*auth4_context_for_PAC_DATA_CTR(TALLOC_CTX
*mem_ctx
);
63 struct PAC_DATA_CTR
*auth4_context_get_PAC_DATA_CTR(struct auth4_context
*auth_ctx
,
66 NTSTATUS
gssapi_obtain_pac_blob(TALLOC_CTX
*mem_ctx
,
67 gss_ctx_id_t gssapi_context
,
68 gss_name_t gss_client_name
,
70 NTSTATUS
gssapi_get_session_key(TALLOC_CTX
*mem_ctx
,
71 gss_ctx_id_t gssapi_context
,
72 DATA_BLOB
*session_key
,
75 /* not the best place here, need to move to a more generic gssapi
77 char *gssapi_error_string(TALLOC_CTX
*mem_ctx
,
78 OM_uint32 maj_stat
, OM_uint32 min_stat
,
80 #endif /* HAVE_KRB5 */
81 #endif /* _PAC_UTILS_H */