summaryrefslogtreecommitdiff
path: root/libcli/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-01-05 11:30:22 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-01-10 21:50:07 +0100
commit0c6af1e2da4619634c3806b5c0ee022bef935bb5 (patch)
tree1fa3517cf31153a9c7aefce29a434b92840d84d8 /libcli/auth
parent39d73e2420be17cc7db16353e1a51a5d2123f9f1 (diff)
downloadsamba-0c6af1e2da4619634c3806b5c0ee022bef935bb5.tar.gz
samba-0c6af1e2da4619634c3806b5c0ee022bef935bb5.tar.bz2
samba-0c6af1e2da4619634c3806b5c0ee022bef935bb5.zip
krb5: Require krb5_principal_compare_any_realm be available to build with krb5
Diffstat (limited to 'libcli/auth')
-rw-r--r--libcli/auth/krb5_wrap.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/libcli/auth/krb5_wrap.c b/libcli/auth/krb5_wrap.c
index 8bd17670bb..a16a7cdffa 100644
--- a/libcli/auth/krb5_wrap.c
+++ b/libcli/auth/krb5_wrap.c
@@ -187,35 +187,7 @@ krb5_error_code smb_krb5_unparse_name(TALLOC_CTX *mem_ctx,
krb5_const_principal princ1,
krb5_const_principal princ2)
{
-#ifdef HAVE_KRB5_PRINCIPAL_COMPARE_ANY_REALM
-
return krb5_principal_compare_any_realm(context, princ1, princ2);
-
-/* krb5_princ_size is a macro in MIT */
-#elif defined(HAVE_KRB5_PRINC_SIZE) || defined(krb5_princ_size)
-
- int i, len1, len2;
- const krb5_data *p1, *p2;
-
- len1 = krb5_princ_size(context, princ1);
- len2 = krb5_princ_size(context, princ2);
-
- if (len1 != len2)
- return False;
-
- for (i = 0; i < len1; i++) {
-
- p1 = krb5_princ_component(context, (krb5_principal)discard_const(princ1), i);
- p2 = krb5_princ_component(context, (krb5_principal)discard_const(princ2), i);
-
- if (p1->length != p2->length || memcmp(p1->data, p2->data, p1->length))
- return False;
- }
-
- return True;
-#else
-#error NO_SUITABLE_PRINCIPAL_COMPARE_FUNCTION
-#endif
}
void smb_krb5_checksum_from_pac_sig(krb5_checksum *cksum,