static struct krb5_rc_typelist *typehead = &krb5_rc_typelist_dfl;
static k5_mutex_t rc_typelist_lock = K5_MUTEX_PARTIAL_INITIALIZER;
-int krb5int_rc_finish_init(void)
+int
+krb5int_rc_finish_init(void)
{
return k5_mutex_finish_init(&rc_typelist_lock);
}
-void krb5int_rc_terminate(void)
+
+void
+krb5int_rc_terminate(void)
{
struct krb5_rc_typelist *t, *t_next;
k5_mutex_destroy(&rc_typelist_lock);
}
}
-krb5_error_code krb5_rc_register_type(krb5_context context,
- const krb5_rc_ops *ops)
+krb5_error_code
+krb5_rc_register_type(krb5_context context, const krb5_rc_ops *ops)
{
struct krb5_rc_typelist *t;
krb5_error_code err;
return 0;
}
-krb5_error_code krb5_rc_resolve_type(krb5_context context, krb5_rcache *idptr,
- char *type)
+krb5_error_code
+krb5_rc_resolve_type(krb5_context context, krb5_rcache *idptr, char *type)
{
struct krb5_rc_typelist *t;
krb5_error_code err;
return id->ops->type;
}
-char * krb5_rc_default_type(krb5_context context)
+char *
+krb5_rc_default_type(krb5_context context)
{
char *s;
if ((s = getenv("KRB5RCACHETYPE")))
return "dfl";
}
-char * krb5_rc_default_name(krb5_context context)
+char *
+krb5_rc_default_name(krb5_context context)
{
char *s;
if ((s = getenv("KRB5RCACHENAME")))
}
-krb5_error_code krb5_rc_resolve_full(krb5_context context, krb5_rcache *idptr,
- char *string_name)
+krb5_error_code
+krb5_rc_resolve_full(krb5_context context, krb5_rcache *idptr,
+ char *string_name)
{
char *type;
char *residual;
#include "k5-int.h"
-static void usage(const char *progname)
+static void
+usage(const char *progname)
{
fprintf(stderr, "%s: Usage:\n", progname);
fprintf(stderr, " %s dump <filename>\n", progname);
exit(1);
}
-static char *read_counted_string(FILE *fp)
+static char *
+read_counted_string(FILE *fp)
{
unsigned int len;
char *str;
return str;
}
-static void dump_rcache(const char *filename)
+static void
+dump_rcache(const char *filename)
{
FILE *fp;
krb5_deltat lifespan;
}
}
-static void store(krb5_context ctx, char *rcspec, char *client, char *server,
- char *msg, krb5_timestamp timestamp, krb5_int32 usec,
- krb5_timestamp now_timestamp, krb5_int32 now_usec)
+static void
+store(krb5_context ctx, char *rcspec, char *client, char *server, char *msg,
+ krb5_timestamp timestamp, krb5_int32 usec, krb5_timestamp now_timestamp,
+ krb5_int32 now_usec)
{
krb5_rcache rc = NULL;
krb5_error_code retval = 0;
free(hash);
}
-static void expunge(krb5_context ctx, char *rcspec,
- krb5_timestamp now_timestamp, krb5_int32 now_usec)
+static void
+expunge(krb5_context ctx, char *rcspec, krb5_timestamp now_timestamp,
+ krb5_int32 now_usec)
{
krb5_rcache rc = NULL;
krb5_error_code retval = 0;
krb5_rc_close(ctx, rc);
}
-int main(int argc, char **argv)
+int
+main(int argc, char **argv)
{
krb5_context ctx;
krb5_error_code retval;