summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2012-05-04 11:02:48 -0400
committerSimo Sorce <idra@samba.org>2012-05-08 06:42:56 +0200
commit3ef95a0b59fa2a9ec5d01398d702bd107f290422 (patch)
treeeaa21d9d6ee10a15d912c20cb60ad57fbcf884f2 /lib
parent470cfb34aea693cdb774b648d51ceccda130f329 (diff)
downloadsamba-3ef95a0b59fa2a9ec5d01398d702bd107f290422.tar.gz
samba-3ef95a0b59fa2a9ec5d01398d702bd107f290422.tar.bz2
samba-3ef95a0b59fa2a9ec5d01398d702bd107f290422.zip
krb5samba: Add krb5_free_checksum_contents wrapper
Diffstat (limited to 'lib')
-rw-r--r--lib/krb5_wrap/krb5_samba.c7
-rw-r--r--lib/krb5_wrap/krb5_samba.h7
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/krb5_wrap/krb5_samba.c b/lib/krb5_wrap/krb5_samba.c
index ddebdd8ebd..cbfaa9c9fb 100644
--- a/lib/krb5_wrap/krb5_samba.c
+++ b/lib/krb5_wrap/krb5_samba.c
@@ -2175,6 +2175,13 @@ krb5_error_code smb_krb5_cc_get_lifetime(krb5_context context,
}
#endif /* HAVE_KRB5_CC_GET_LIFETIME */
+#if !defined(HAVE_KRB5_FREE_CHECKSUM_CONTENTS) && defined(HAVE_FREE_CHECKSUM)
+void smb_krb5_free_checksum_contents(krb5_context ctx, krb5_checksum *cksum)
+{
+ free_Checksum(cksum);
+}
+#endif
+
/*
* smb_krb5_principal_get_realm
*
diff --git a/lib/krb5_wrap/krb5_samba.h b/lib/krb5_wrap/krb5_samba.h
index f036e052b3..a164ea34a8 100644
--- a/lib/krb5_wrap/krb5_samba.h
+++ b/lib/krb5_wrap/krb5_samba.h
@@ -251,6 +251,13 @@ krb5_error_code smb_krb5_cc_get_lifetime(krb5_context context,
#error krb5_cc_get_lifetime not available
#endif
+#if defined(HAVE_KRB5_FREE_CHECKSUM_CONTENTS)
+#define smb_krb5_free_checksum_contents krb5_free_checksum_contents
+#elif defined (HAVE_FREE_CHECKSUM)
+void smb_krb5_free_checksum_contents(krb5_context ctx, krb5_checksum *cksum);
+#else
+#error krb5_free_checksum_contents/free_Checksum is not vailable
+#endif
char *smb_krb5_principal_get_realm(krb5_context context,
krb5_principal principal);