summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-07-20 20:00:12 -0400
committerSimo Sorce <idra@samba.org>2010-07-20 20:02:09 -0400
commit26f1218a3678e648c73db3b34732703396ad48b2 (patch)
tree624bb38c1a620cd3e87af9a80b0a64556ff2d39c /source3/include
parent8137f2d7e7e69db66a5191c1a80e0bda52506528 (diff)
downloadsamba-26f1218a3678e648c73db3b34732703396ad48b2.tar.gz
samba-26f1218a3678e648c73db3b34732703396ad48b2.tar.bz2
samba-26f1218a3678e648c73db3b34732703396ad48b2.zip
s3-libsmb: Use data_blob_talloc to get krb5 ticket and session keys
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/krb5_protos.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/include/krb5_protos.h b/source3/include/krb5_protos.h
index b65fb17d9c..97e6871c89 100644
--- a/source3/include/krb5_protos.h
+++ b/source3/include/krb5_protos.h
@@ -46,7 +46,10 @@ krb5_error_code smb_krb5_locate_kdc(krb5_context ctx, const krb5_data *realm, st
krb5_error_code krb5_locate_kdc(krb5_context ctx, const krb5_data *realm, struct sockaddr **addr_pp, int *naddrs, int get_masters);
#endif
krb5_error_code get_kerberos_allowed_etypes(krb5_context context, krb5_enctype **enctypes);
-bool get_krb5_smb_session_key(krb5_context context, krb5_auth_context auth_context, DATA_BLOB *session_key, bool remote);
+bool get_krb5_smb_session_key(TALLOC_CTX *mem_ctx,
+ krb5_context context,
+ krb5_auth_context auth_context,
+ DATA_BLOB *session_key, bool remote);
krb5_error_code smb_krb5_kt_free_entry(krb5_context context, krb5_keytab_entry *kt_entry);
krb5_principal kerberos_fetch_salt_princ_for_host_princ(krb5_context context, krb5_principal host_princ, int enctype);
void kerberos_set_creds_enctype(krb5_creds *pcreds, int enctype);
@@ -141,9 +144,10 @@ char *smb_krb5_principal_get_realm(krb5_context context,
krb5_principal principal);
#endif /* HAVE_KRB5 */
-int cli_krb5_get_ticket(const char *principal, time_t time_offset,
+int cli_krb5_get_ticket(TALLOC_CTX *mem_ctx,
+ const char *principal, time_t time_offset,
DATA_BLOB *ticket, DATA_BLOB *session_key_krb5,
- uint32 extra_ap_opts, const char *ccname,
+ uint32_t extra_ap_opts, const char *ccname,
time_t *tgs_expire,
const char *impersonate_princ_s);