summaryrefslogtreecommitdiff
path: root/source3/libnet/libnet_proto.h
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-07-17 00:53:13 +0200
committerMichael Adam <obnox@samba.org>2008-08-01 16:04:40 +0200
commit54d6ae09e268e169ee7f0f5ab02a465b030f4ba4 (patch)
treefcdb6505afd173acc3070aecbd35a3a5a7d48c47 /source3/libnet/libnet_proto.h
parent7bd3ea0b6f53ff90af4483d5a27bb4986e8e1209 (diff)
downloadsamba-54d6ae09e268e169ee7f0f5ab02a465b030f4ba4.tar.gz
samba-54d6ae09e268e169ee7f0f5ab02a465b030f4ba4.tar.bz2
samba-54d6ae09e268e169ee7f0f5ab02a465b030f4ba4.zip
libnet_keytab: add a libnet_keytab_search() function
that searches and fetches an entry from a keytab file by principal and kvno. This code is by metze. Michael (This used to be commit a51a60066b6703fc4e5db3536903abf1cdaca885)
Diffstat (limited to 'source3/libnet/libnet_proto.h')
-rw-r--r--source3/libnet/libnet_proto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libnet/libnet_proto.h b/source3/libnet/libnet_proto.h
index ddd730b1a8..65d37b0ab8 100644
--- a/source3/libnet/libnet_proto.h
+++ b/source3/libnet/libnet_proto.h
@@ -50,6 +50,10 @@ krb5_error_code libnet_keytab_init(TALLOC_CTX *mem_ctx,
const char *keytab_name,
struct libnet_keytab_context **ctx);
krb5_error_code libnet_keytab_add(struct libnet_keytab_context *ctx);
+
+struct libnet_keytab_entry *libnet_keytab_search(struct libnet_keytab_context *ctx,
+ const char *principal, int kvno,
+ TALLOC_CTX *mem_ctx);
#endif
/* The following definitions come from libnet/libnet_samsync.c */