From 92ff7f21ad0b167f8d742a9d7b5f93704a57619c Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Thu, 24 Apr 2008 02:02:49 +0000 Subject: 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. --- client/remctl.c | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) (limited to 'client/remctl.c') 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 -** 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 + * Copyright 2007 Board of Trustees, Leland Stanford Jr. University + * + * See LICENSE for licensing terms. + */ #include -#include +#include #include @@ -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) -- cgit v1.2.3