summaryrefslogtreecommitdiff
path: root/cifs.upcall.c
diff options
context:
space:
mode:
authorLars Mueller <lmuelle@suse.com>2012-04-20 07:59:06 -0400
committerJeff Layton <jlayton@samba.org>2012-04-20 07:59:06 -0400
commite5f124c10fa8e582c5df61017d6f6c2b10c397dc (patch)
treeed9a63cd586a11ac2a378c205a50c47d492a7015 /cifs.upcall.c
parentbe5b954e35858c09dfaeee33bf06bb0dc76a86f9 (diff)
downloadcifs-utils-e5f124c10fa8e582c5df61017d6f6c2b10c397dc.tar.gz
cifs-utils-e5f124c10fa8e582c5df61017d6f6c2b10c397dc.tar.bz2
cifs-utils-e5f124c10fa8e582c5df61017d6f6c2b10c397dc.zip
cifs.upcall: missing prototype for krb5_auth_con_set_req_cksumtype in MIT
krb5 < 1.7 products coming with MIT krb5 < 1.7 (like SUSE Linux Enterprise 11 SP 1 or SP 2) suffer from the same issue as described by https://bugzilla.samba.org/show_bug.cgi?id=6918 The declaration of krb5_auth_con_set_req_cksumtype is missing. Inspiration: https://bugzilla.samba.org/show_bug.cgi?id=6918 Acked-by: Suresh Jayaraman <sjayaraman@suse.com> Signed-off-by: Lars Mueller <lmuelle@suse.com>
Diffstat (limited to 'cifs.upcall.c')
-rw-r--r--cifs.upcall.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cifs.upcall.c b/cifs.upcall.c
index 9e7f7e2..4f9fe21 100644
--- a/cifs.upcall.c
+++ b/cifs.upcall.c
@@ -415,6 +415,14 @@ cifs_krb5_get_req(const char *host, const char *ccname,
*/
in_data.data = discard_const_p(char, gss_cksum);
in_data.length = 24;
+
+ /* MIT krb5 < 1.7 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
ret = krb5_auth_con_set_req_cksumtype(context, auth_context, 0x8003);
if (ret) {
syslog(LOG_DEBUG, "%s: unable to set 0x8003 checksum",