summaryrefslogtreecommitdiff
path: root/libcli/auth/krb5_wrap.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-04-20 12:05:27 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-04-20 04:31:07 +0200
commitf28f5db15a4bcf4c838ee6e4c6ef82c6b9dbd938 (patch)
treec1f44a3613f01021cfa41be9e9cd44889b5241cb /libcli/auth/krb5_wrap.h
parent0e5482c791b9d99a44ca62323aa4dedbbf8d188e (diff)
downloadsamba-f28f5db15a4bcf4c838ee6e4c6ef82c6b9dbd938.tar.gz
samba-f28f5db15a4bcf4c838ee6e4c6ef82c6b9dbd938.tar.bz2
samba-f28f5db15a4bcf4c838ee6e4c6ef82c6b9dbd938.zip
libcli/auth Move PAC parsing and verification in common.
This uses the source3 PAC code (originally from Samba4) with some small changes to restore functionality needed by the torture tests, and to have a common API. Andrew Bartlett
Diffstat (limited to 'libcli/auth/krb5_wrap.h')
-rw-r--r--libcli/auth/krb5_wrap.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libcli/auth/krb5_wrap.h b/libcli/auth/krb5_wrap.h
index 3cdcedc971..4f333cc4b0 100644
--- a/libcli/auth/krb5_wrap.h
+++ b/libcli/auth/krb5_wrap.h
@@ -54,3 +54,18 @@ krb5_error_code smb_krb5_unparse_name(TALLOC_CTX *mem_ctx,
krb5_checksum *cksum,
uint8_t *data,
size_t length);
+
+krb5_error_code check_pac_checksum(TALLOC_CTX *mem_ctx,
+ DATA_BLOB pac_data,
+ struct PAC_SIGNATURE_DATA *sig,
+ krb5_context context,
+ const krb5_keyblock *keyblock);
+
+NTSTATUS kerberos_decode_pac(TALLOC_CTX *mem_ctx,
+ DATA_BLOB pac_data_blob,
+ krb5_context context,
+ const krb5_keyblock *krbtgt_keyblock,
+ const krb5_keyblock *service_keyblock,
+ krb5_const_principal client_principal,
+ time_t tgs_authtime,
+ struct PAC_DATA **pac_data_out);