*/
-static void kpasswd_sendto_msg_cleanup (void* callback_context, krb5_data* message)
+static void
+kpasswd_sendto_msg_cleanup (void* callback_context, krb5_data* message)
{
struct sendto_callback_context *ctx = callback_context;
krb5_free_data_contents(ctx->context, message);
}
-static int kpasswd_sendto_msg_callback(struct conn_state *conn, void *callback_context, krb5_data* message)
+static int
+kpasswd_sendto_msg_callback(struct conn_state *conn, void *callback_context,
+ krb5_data *message)
{
krb5_error_code code = 0;
struct sockaddr_storage local_addr;
/*
* krb5int_dns_expand - wrapper for dn_expand()
*/
-int krb5int_dns_expand(struct krb5int_dns_state *ds,
- const unsigned char *p,
- char *buf, int len)
+int
+krb5int_dns_expand(struct krb5int_dns_state *ds, const unsigned char *p,
+ char *buf, int len)
{
#if HAVE_NS_NAME_UNCOMPRESS
* Lookup a KDC via DNS SRV records
*/
-void krb5int_free_srv_dns_data (struct srv_dns_entry *p)
+void
+krb5int_free_srv_dns_data (struct srv_dns_entry *p)
{
struct srv_dns_entry *next;
while (p) {
void printaddr (struct sockaddr *);
-void printaddr (struct sockaddr *sa)
+void
+printaddr(struct sockaddr *sa)
/*@modifies fileSystem@*/
{
char buf[NI_MAXHOST];
#include <ifaddrs.h>
#ifdef DEBUG
-void printifaddr (struct ifaddrs *ifp)
+void
+printifaddr(struct ifaddrs *ifp)
{
printf ("%p={\n", ifp);
/* printf ("\tnext=%p\n", ifp->ifa_next); */
}
#define free_list krb5int_free_addrlist
-static int translate_ai_error (int err)
+static int
+translate_ai_error (int err)
{
switch (err) {
case 0:
}
#include <stdarg.h>
-static inline void Tprintf(const char *fmt, ...)
+static inline void
+Tprintf(const char *fmt, ...)
{
#ifdef TEST
va_list ap;
static inline void print_addrlist(const struct addrlist *a) { }
#endif
-static int add_addrinfo_to_list (struct addrlist *lp, struct addrinfo *a,
- void (*freefn)(void *), void *data)
+static int
+add_addrinfo_to_list(struct addrlist *lp, struct addrinfo *a,
+ void (*freefn)(void *), void *data)
{
int err;
#define add_host_to_list krb5int_add_host_to_list
-static void call_freeaddrinfo(void *data)
+static void
+call_freeaddrinfo(void *data)
{
/* Strict interpretation of the C standard says we can't assume
that the ABI for f(void*) and f(struct foo *) will be
return errcode;
}
-static krb5_sigtype intrfunc(int sig)
+static krb5_sigtype
+intrfunc(int sig)
{
got_int = 1;
}
int *pwd_size_return;
} pwd_params;
-void center_dialog(HWND hwnd)
+void
+center_dialog(HWND hwnd)
{
int scrwidth, scrheight;
int dlgwidth, dlgheight;
int krb5int_debug_sendto_kdc = 0;
#define debug krb5int_debug_sendto_kdc
-static void default_debug_handler (const void *data, size_t len)
+static void
+default_debug_handler (const void *data, size_t len)
{
#if 0
static FILE *logfile;
void (*krb5int_sendtokdc_debug_handler) (const void *, size_t) = default_debug_handler;
-static void put(const void *ptr, size_t len)
+static void
+put(const void *ptr, size_t len)
{
(*krb5int_sendtokdc_debug_handler)(ptr, len);
}
-static void putstr(const char *str)
+static void
+putstr(const char *str)
{
put(str, strlen(str));
}
#include "cm.h"
-static int getcurtime (struct timeval *tvp)
+static int
+getcurtime (struct timeval *tvp)
{
#ifdef _WIN32
struct _timeb tb;
#define INIT 0xc3
-int main (void) {
+int
+main(void)
+{
char buffer[2048];
int i, sock, t, olen = -9, omod = -9;
struct ifconf ifc;
struct addrlist al;
-static void kfatal (krb5_error_code err)
+static void
+kfatal (krb5_error_code err)
{
com_err (prog, err, "- exiting");
exit (1);
}
-static const char *stypename (int stype)
+static const char *
+stypename (int stype)
{
static char buf[20];
switch (stype) {
}
}
-static void print_addrs (void)
+static void
+print_addrs (void)
{
int i;
}
}
-int main (int argc, char *argv[])
+int
+main (int argc, char *argv[])
{
char *p, *realmname;
krb5_data realm;
#include <stdio.h>
-void test_realm_iterator(int ctx)
+void
+test_realm_iterator(int ctx)
{
krb5_error_code retval;
char *realm;
}
}
-int main(int argc, char **argv)
+int
+main(int argc, char **argv)
{
krb5_context ctx;
krb5_error_code retval;
#include "os-proto.h"
-static void test_get_default_realm(krb5_context ctx)
+static void
+test_get_default_realm(krb5_context ctx)
{
char *realm;
krb5_error_code retval;
free(realm);
}
-static void test_set_default_realm(krb5_context ctx, char *realm)
+static void
+test_set_default_realm(krb5_context ctx, char *realm)
{
krb5_error_code retval;
printf("krb5_set_default_realm(%s)\n", realm);
}
-static void test_get_default_ccname(krb5_context ctx)
+static void
+test_get_default_ccname(krb5_context ctx)
{
const char *ccname;
printf("krb5_cc_default_name() returned NULL\n");
}
-static void test_set_default_ccname(krb5_context ctx, char *ccname)
+static void
+test_set_default_ccname(krb5_context ctx, char *ccname)
{
krb5_error_code retval;
printf("krb5_set_default_ccname(%s)\n", ccname);
}
-static void test_get_krbhst(krb5_context ctx, char *realm)
+static void
+test_get_krbhst(krb5_context ctx, char *realm)
{
char **hostlist, **cpp;
krb5_data rlm;
printf("\n");
}
-static void test_locate_kdc(krb5_context ctx, char *realm)
+static void
+test_locate_kdc(krb5_context ctx, char *realm)
{
struct addrlist addrs;
int i;
printf("\n");
}
-static void test_get_host_realm(krb5_context ctx, char *host)
+static void
+test_get_host_realm(krb5_context ctx, char *host)
{
char **realms, **cpp;
krb5_error_code retval;
printf("\n");
}
-static void test_get_realm_domain(krb5_context ctx, char *realm)
+static void
+test_get_realm_domain(krb5_context ctx, char *realm)
{
krb5_error_code retval;
char *domain;
free(domain);
}
-static void usage(char *progname)
+static void
+usage(char *progname)
{
fprintf(stderr, "%s: Usage: %s [-dc] [-k realm] [-r host] [-C ccname] [-D realm]\n",
progname, progname);
exit(1);
}
-int main(int argc, char **argv)
+int
+main(int argc, char **argv)
{
int c;
krb5_context ctx;