summaryrefslogtreecommitdiff
path: root/source/libsmb/clikrb5.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-07-16 20:44:51 +0000
committerGerald Carter <jerry@samba.org>2003-07-16 20:44:51 +0000
commit8571de64e25a4060933b963be1abe0b0beae3063 (patch)
treecbe12c2c6d972029fd428d393c294b46cf22e130 /source/libsmb/clikrb5.c
parent51821cff389c1a87cc705825f326cfff73a6341a (diff)
downloadsamba-8571de64e25a4060933b963be1abe0b0beae3063.tar.gz
last syncs from 3.0
Diffstat (limited to 'source/libsmb/clikrb5.c')
-rw-r--r--source/libsmb/clikrb5.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/libsmb/clikrb5.c b/source/libsmb/clikrb5.c
index fd5dd91325a..ba8ba11368a 100644
--- a/source/libsmb/clikrb5.c
+++ b/source/libsmb/clikrb5.c
@@ -388,6 +388,19 @@ failed:
return ret;
}
+
+
+#if defined(HAVE_KRB5_PRINCIPAL_GET_COMP_STRING) && !defined(HAVE_KRB5_PRINC_COMPONENT)
+ const krb5_data *krb5_princ_component(krb5_context context, krb5_principal principal, int i )
+{
+ static krb5_data kdata;
+
+ kdata.data = krb5_principal_get_comp_string(context, principal, i);
+ kdata.length = strlen(kdata.data);
+ return &kdata;
+}
+#endif
+
#else /* HAVE_KRB5 */
/* this saves a few linking headaches */
DATA_BLOB cli_krb5_get_ticket(const char *principal, time_t time_offset)