diff options
Diffstat (limited to 'client/internal.h')
-rw-r--r-- | client/internal.h | 9 |
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. */ |