summaryrefslogtreecommitdiff
path: root/security/pam_krb5/files/patch-ah
blob: 8f62854e32d503514d2191fd72bbee01f62f1fea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- compat_heimdal.c.orig	Mon Nov  6 10:21:49 2000
+++ compat_heimdal.c	Mon Nov  6 10:48:37 2000
@@ -0,0 +1,21 @@
+#include <krb5.h>
+#include "krb5compat.h"
+
+const char *
+compat_princ_component(krb5_context context, krb5_principal princ, int n)
+{
+	return princ->name.name_string.val[n];
+}
+
+void
+compat_free_data_contents(krb5_context context, krb5_data *data)
+{
+	krb5_xfree(data);
+}
+
+krb5_error_code
+compat_cc_next_cred(krb5_context context, const krb5_ccache id, 
+    krb5_cc_cursor *cursor, krb5_creds *creds)
+{
+	return krb5_cc_next_cred(context, id, creds, cursor);
+}