summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-16 10:40:50 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-16 10:40:50 +1100
commita6e4cb500b4162cae1d906a1762507370b4ee89e (patch)
tree1734c8172b15e9fc2f05c22ccae422c1aec80c4c /source3/libsmb
parent70b020ca7698c30f3c0647f620d690aba7674022 (diff)
downloadsamba-a6e4cb500b4162cae1d906a1762507370b4ee89e.tar.gz
samba-a6e4cb500b4162cae1d906a1762507370b4ee89e.tar.bz2
samba-a6e4cb500b4162cae1d906a1762507370b4ee89e.zip
s3: fixed krb5 build problem on ubuntu karmic
Karmic has MIT krb5 1.7-beta3, which has the symbol krb5_auth_con_set_req_cksumtype but no prototype for it. See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531635
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clikrb5.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c
index 152c23bd15..145e30beb3 100644
--- a/source3/libsmb/clikrb5.c
+++ b/source3/libsmb/clikrb5.c
@@ -1858,6 +1858,15 @@ static krb5_error_code ads_krb5_get_fwd_ticket( krb5_context context,
char *pChksum = NULL;
char *p = NULL;
+/* MIT krb5 1.7beta3 (in Ubuntu Karmic) is missing the prototype,
+ but still has the symbol */
+#if !HAVE_DECL_KRB5_AUTH_CON_SET_REQ_CKSUMTYPE
+krb5_error_code krb5_auth_con_set_req_cksumtype(
+ krb5_context context,
+ krb5_auth_context auth_context,
+ krb5_cksumtype cksumtype);
+#endif
+
ZERO_STRUCT(fwdData);
ZERO_STRUCTP(authenticator);