summaryrefslogtreecommitdiff
path: root/client/remctl.c
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2008-04-24 02:02:49 +0000
committerRuss Allbery <rra@stanford.edu>2008-04-24 02:02:49 +0000
commit92ff7f21ad0b167f8d742a9d7b5f93704a57619c (patch)
tree7adae5f227b6463e07d5cd0f1dab82b7f1c6be47 /client/remctl.c
parent34c58f9471b3df4fa8b719b3c3534940ba5cfe1b (diff)
Major coding style cleanup. Updated all shared code from my other
projects. The configure option requesting AFS kaserver support (and thus building kasetkey) is now --with-kaserver instead of --with-afs. If KRB5_CONFIG was explicitly set in the environment, don't use a different krb5-config based on --with-krb4 or --with-krb5. If krb5-config isn't executable, don't use it. This allows one to force library probing by setting KRB5_CONFIG to point to a nonexistent file. Sanity-check the results of krb5-config before proceeding and error out in configure if they don't work. Stop setting Stanford-specific compile-time defaults for the wallet server and port.
Diffstat (limited to 'client/remctl.c')
-rw-r--r--client/remctl.c43
1 files changed, 21 insertions, 22 deletions
diff --git a/client/remctl.c b/client/remctl.c
index 74e2cf5..8b9702a 100644
--- a/client/remctl.c
+++ b/client/remctl.c
@@ -1,15 +1,15 @@
-/* $Id$
-**
-** remctl interface for the wallet client.
-**
-** Written by Russ Allbery <rra@stanford.edu>
-** Copyright 2007 Board of Trustees, Leland Stanford Jr. University
-**
-** See LICENSE for licensing terms.
-*/
+/* $Id$
+ *
+ * remctl interface for the wallet client.
+ *
+ * Written by Russ Allbery <rra@stanford.edu>
+ * Copyright 2007 Board of Trustees, Leland Stanford Jr. University
+ *
+ * See LICENSE for licensing terms.
+ */
#include <config.h>
-#include <system.h>
+#include <portable/system.h>
#include <remctl.h>
@@ -18,13 +18,12 @@
/*
-** Given a remctl connection and a command, run the command.
-**
-** If data is non-NULL, save the output in it and return the length in
-** length. Otherwise, send any output to stdout. Either way, send error
-** output to stderr, and return the exit status (or 255 if there is an
-** error).
-*/
+ * Given a remctl connection and a command, run the command.
+ *
+ * If data is non-NULL, save the output in it and return the length in length.
+ * Otherwise, send any output to stdout. Either way, send error output to
+ * stderr, and return the exit status (or 255 if there is an error).
+ */
int
run_command(struct remctl *r, const char **command, char **data,
size_t *length)
@@ -75,9 +74,9 @@ run_command(struct remctl *r, const char **command, char **data,
/*
-** Check whether an object exists using the exists wallet interface. Returns
-** true if it does, false if it doesn't, and dies on remctl errors.
-*/
+ * Check whether an object exists using the exists wallet interface. Returns
+ * true if it does, false if it doesn't, and dies on remctl errors.
+ */
int
object_exists(struct remctl *r, const char *prefix, const char *type,
const char *name)
@@ -101,8 +100,8 @@ object_exists(struct remctl *r, const char *prefix, const char *type,
/*
-** Attempt autocreation of an object. Dies if autocreation fails.
-*/
+ * Attempt autocreation of an object. Dies if autocreation fails.
+ */
void
object_autocreate(struct remctl *r, const char *prefix, const char *type,
const char *name)