aboutsummaryrefslogtreecommitdiff
path: root/client/internal.h
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-10-05 01:24:06 +0000
committerRuss Allbery <rra@stanford.edu>2007-10-05 01:24:06 +0000
commitfe56c09a7feeb2d1c9cd699fda07e145c4c354a2 (patch)
treee0e1f0570ef13d801b5a5bcb5920bb2e12180635 /client/internal.h
parentdbe948ca3ebdad97f4f2096f6074623fc2a8e3c8 (diff)
Pull keytab handling in the client into a separate file for later
expansion. Use the fine-grained remctl API instead of the simple one since in some cases we'll be running multiple commands.
Diffstat (limited to 'client/internal.h')
-rw-r--r--client/internal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/client/internal.h b/client/internal.h
index 186d83f..092240e 100644
--- a/client/internal.h
+++ b/client/internal.h
@@ -14,6 +14,9 @@
#include <sys/types.h>
#include <util/util.h>
+/* Forward declarations to avoid unnecessary includes. */
+struct remctl;
+
/* Temporary until we have some real configuration. */
#ifndef SERVER
# define SERVER "wallet.stanford.edu"
@@ -24,6 +27,12 @@
BEGIN_DECLS
+/* Given a remctl object, the type for the wallet interface, the name of a
+ keytab object, and a file name, call the correct wallet commands to
+ download a keytab and write it to that file. */
+void get_keytab(struct remctl *, const char *type, const char *name,
+ const char *file);
+
/* Given a filename, some data, and a length, write that data to the given
file safely and atomically by creating file.new, writing the data, linking
file to file.bak, and then renaming file.new to file. */