From fe56c09a7feeb2d1c9cd699fda07e145c4c354a2 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Fri, 5 Oct 2007 01:24:06 +0000 Subject: 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. --- client/internal.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'client/internal.h') 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 #include +/* 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. */ -- cgit v1.2.3