extern const struct _krb5_kt_ops krb5_ktf_ops;
extern const struct _krb5_kt_ops krb5_ktf_writable_ops;
-static krb5_error_code KRB5_CALLCONV krb5_ktfile_resolve
-(krb5_context,
- const char *,
- krb5_keytab *);
-
-static krb5_error_code KRB5_CALLCONV krb5_ktfile_wresolve
-(krb5_context,
- const char *,
- krb5_keytab *);
-
-static krb5_error_code KRB5_CALLCONV krb5_ktfile_get_name
-(krb5_context,
- krb5_keytab,
- char *,
- unsigned int);
-
-static krb5_error_code KRB5_CALLCONV krb5_ktfile_close
-(krb5_context,
- krb5_keytab);
-
-static krb5_error_code KRB5_CALLCONV krb5_ktfile_get_entry
-(krb5_context,
- krb5_keytab,
- krb5_const_principal,
- krb5_kvno,
- krb5_enctype,
- krb5_keytab_entry *);
-
-static krb5_error_code KRB5_CALLCONV krb5_ktfile_start_seq_get
-(krb5_context,
- krb5_keytab,
- krb5_kt_cursor *);
-
-static krb5_error_code KRB5_CALLCONV krb5_ktfile_get_next
-(krb5_context,
- krb5_keytab,
- krb5_keytab_entry *,
- krb5_kt_cursor *);
-
-static krb5_error_code KRB5_CALLCONV krb5_ktfile_end_get
-(krb5_context,
- krb5_keytab,
- krb5_kt_cursor *);
+static krb5_error_code KRB5_CALLCONV
+krb5_ktfile_resolve(krb5_context, const char *, krb5_keytab *);
+
+static krb5_error_code KRB5_CALLCONV
+krb5_ktfile_wresolve(krb5_context, const char *, krb5_keytab *);
+
+static krb5_error_code KRB5_CALLCONV
+krb5_ktfile_get_name(krb5_context, krb5_keytab, char *, unsigned int);
+
+static krb5_error_code KRB5_CALLCONV
+krb5_ktfile_close(krb5_context, krb5_keytab);
+
+static krb5_error_code KRB5_CALLCONV
+krb5_ktfile_get_entry(krb5_context, krb5_keytab, krb5_const_principal,
+ krb5_kvno, krb5_enctype, krb5_keytab_entry *);
+
+static krb5_error_code KRB5_CALLCONV
+krb5_ktfile_start_seq_get(krb5_context, krb5_keytab, krb5_kt_cursor *);
+
+static krb5_error_code KRB5_CALLCONV
+krb5_ktfile_get_next(krb5_context, krb5_keytab, krb5_keytab_entry *,
+ krb5_kt_cursor *);
+
+static krb5_error_code KRB5_CALLCONV
+krb5_ktfile_end_get(krb5_context, krb5_keytab, krb5_kt_cursor *);
/* routines to be included on extended version (write routines) */
-static krb5_error_code KRB5_CALLCONV krb5_ktfile_add
-(krb5_context,
- krb5_keytab,
- krb5_keytab_entry *);
-
-static krb5_error_code KRB5_CALLCONV krb5_ktfile_remove
-(krb5_context,
- krb5_keytab,
- krb5_keytab_entry *);
-
-static krb5_error_code krb5_ktfileint_openr
-(krb5_context,
- krb5_keytab);
-
-static krb5_error_code krb5_ktfileint_openw
-(krb5_context,
- krb5_keytab);
-
-static krb5_error_code krb5_ktfileint_close
-(krb5_context,
- krb5_keytab);
-
-static krb5_error_code krb5_ktfileint_read_entry
-(krb5_context,
- krb5_keytab,
- krb5_keytab_entry *);
-
-static krb5_error_code krb5_ktfileint_write_entry
-(krb5_context,
- krb5_keytab,
- krb5_keytab_entry *);
-
-static krb5_error_code krb5_ktfileint_delete_entry
-(krb5_context,
- krb5_keytab,
- krb5_int32);
-
-static krb5_error_code krb5_ktfileint_internal_read_entry
-(krb5_context,
- krb5_keytab,
- krb5_keytab_entry *,
- krb5_int32 *);
-
-static krb5_error_code krb5_ktfileint_size_entry
-(krb5_context,
- krb5_keytab_entry *,
- krb5_int32 *);
-
-static krb5_error_code krb5_ktfileint_find_slot
-(krb5_context,
- krb5_keytab,
- krb5_int32 *,
- krb5_int32 *);
+static krb5_error_code KRB5_CALLCONV
+krb5_ktfile_add(krb5_context, krb5_keytab, krb5_keytab_entry *);
+
+static krb5_error_code KRB5_CALLCONV
+krb5_ktfile_remove(krb5_context, krb5_keytab, krb5_keytab_entry *);
+
+static krb5_error_code
+krb5_ktfileint_openr(krb5_context, krb5_keytab);
+
+static krb5_error_code
+krb5_ktfileint_openw(krb5_context, krb5_keytab);
+
+static krb5_error_code
+krb5_ktfileint_close(krb5_context, krb5_keytab);
+
+static krb5_error_code
+krb5_ktfileint_read_entry(krb5_context, krb5_keytab, krb5_keytab_entry *);
+
+static krb5_error_code
+krb5_ktfileint_write_entry(krb5_context, krb5_keytab, krb5_keytab_entry *);
+
+static krb5_error_code
+krb5_ktfileint_delete_entry(krb5_context, krb5_keytab, krb5_int32);
+
+static krb5_error_code
+krb5_ktfileint_internal_read_entry(krb5_context, krb5_keytab,
+ krb5_keytab_entry *, krb5_int32 *);
+
+static krb5_error_code
+krb5_ktfileint_size_entry(krb5_context, krb5_keytab_entry *, krb5_int32 *);
+
+static krb5_error_code
+krb5_ktfileint_find_slot(krb5_context, krb5_keytab, krb5_int32 *,
+ krb5_int32 *);
/*
* krb5_ktf_keytab_externalize();
* krb5_ktf_keytab_internalize();
*/
-static krb5_error_code krb5_ktf_keytab_size
-(krb5_context, krb5_pointer, size_t *);
-static krb5_error_code krb5_ktf_keytab_externalize
-(krb5_context, krb5_pointer, krb5_octet **, size_t *);
-static krb5_error_code krb5_ktf_keytab_internalize
-(krb5_context,krb5_pointer *, krb5_octet **, size_t *);
+static krb5_error_code
+krb5_ktf_keytab_size(krb5_context, krb5_pointer, size_t *);
+
+static krb5_error_code
+krb5_ktf_keytab_externalize(krb5_context, krb5_pointer, krb5_octet **,
+ size_t *);
+
+static krb5_error_code
+krb5_ktf_keytab_internalize(krb5_context,krb5_pointer *, krb5_octet **,
+ size_t *);
/*
* Serialization entry for this type.
extern const struct _krb5_kt_ops krb5_mkt_ops;
-krb5_error_code KRB5_CALLCONV krb5_mkt_resolve
-(krb5_context,
- const char *,
- krb5_keytab *);
-
-krb5_error_code KRB5_CALLCONV krb5_mkt_get_name
-(krb5_context,
- krb5_keytab,
- char *,
- unsigned int);
-
-krb5_error_code KRB5_CALLCONV krb5_mkt_close
-(krb5_context,
- krb5_keytab);
-
-krb5_error_code KRB5_CALLCONV krb5_mkt_get_entry
-(krb5_context,
- krb5_keytab,
- krb5_const_principal,
- krb5_kvno,
- krb5_enctype,
- krb5_keytab_entry *);
-
-krb5_error_code KRB5_CALLCONV krb5_mkt_start_seq_get
-(krb5_context,
- krb5_keytab,
- krb5_kt_cursor *);
-
-krb5_error_code KRB5_CALLCONV krb5_mkt_get_next
-(krb5_context,
- krb5_keytab,
- krb5_keytab_entry *,
- krb5_kt_cursor *);
-
-krb5_error_code KRB5_CALLCONV krb5_mkt_end_get
-(krb5_context,
- krb5_keytab,
- krb5_kt_cursor *);
+krb5_error_code KRB5_CALLCONV
+krb5_mkt_resolve(krb5_context, const char *, krb5_keytab *);
+
+krb5_error_code KRB5_CALLCONV
+krb5_mkt_get_name(krb5_context, krb5_keytab, char *, unsigned int);
+
+krb5_error_code KRB5_CALLCONV
+krb5_mkt_close(krb5_context, krb5_keytab);
+
+krb5_error_code KRB5_CALLCONV
+krb5_mkt_get_entry(krb5_context, krb5_keytab, krb5_const_principal, krb5_kvno,
+ krb5_enctype, krb5_keytab_entry *);
+
+krb5_error_code KRB5_CALLCONV
+krb5_mkt_start_seq_get(krb5_context, krb5_keytab, krb5_kt_cursor *);
+
+krb5_error_code KRB5_CALLCONV
+krb5_mkt_get_next(krb5_context, krb5_keytab, krb5_keytab_entry *,
+ krb5_kt_cursor *);
+
+krb5_error_code KRB5_CALLCONV
+krb5_mkt_end_get(krb5_context, krb5_keytab, krb5_kt_cursor *);
/* routines to be included on extended version (write routines) */
-krb5_error_code KRB5_CALLCONV krb5_mkt_add
-(krb5_context,
- krb5_keytab,
- krb5_keytab_entry *);
+krb5_error_code KRB5_CALLCONV
+krb5_mkt_add(krb5_context, krb5_keytab, krb5_keytab_entry *);
-krb5_error_code KRB5_CALLCONV krb5_mkt_remove
-(krb5_context,
- krb5_keytab,
- krb5_keytab_entry *);
+krb5_error_code KRB5_CALLCONV
+krb5_mkt_remove(krb5_context, krb5_keytab, krb5_keytab_entry *);
-int krb5int_mkt_initialize(void) {
+int
+krb5int_mkt_initialize(void)
+{
return k5_mutex_finish_init(&krb5int_mkt_mutex);
}
-void krb5int_mkt_finalize(void) {
+void
+krb5int_mkt_finalize(void)
+{
krb5_mkt_list_node *node, *next_node;
krb5_mkt_cursor cursor, next_cursor;
extern const struct _krb5_kt_ops krb5_kts_ops;
-static krb5_error_code KRB5_CALLCONV krb5_ktsrvtab_resolve
-(krb5_context,
- const char *,
- krb5_keytab *);
-
-static krb5_error_code KRB5_CALLCONV krb5_ktsrvtab_get_name
-(krb5_context,
- krb5_keytab,
- char *,
- unsigned int);
-
-static krb5_error_code KRB5_CALLCONV krb5_ktsrvtab_close
-(krb5_context,
- krb5_keytab);
-
-static krb5_error_code KRB5_CALLCONV krb5_ktsrvtab_get_entry
-(krb5_context,
- krb5_keytab,
- krb5_const_principal,
- krb5_kvno,
- krb5_enctype,
- krb5_keytab_entry *);
-
-static krb5_error_code KRB5_CALLCONV krb5_ktsrvtab_start_seq_get
-(krb5_context,
- krb5_keytab,
- krb5_kt_cursor *);
-
-static krb5_error_code KRB5_CALLCONV krb5_ktsrvtab_get_next
-(krb5_context,
- krb5_keytab,
- krb5_keytab_entry *,
- krb5_kt_cursor *);
-
-static krb5_error_code KRB5_CALLCONV krb5_ktsrvtab_end_get
-(krb5_context,
- krb5_keytab,
- krb5_kt_cursor *);
-
-static krb5_error_code krb5_ktsrvint_open
-(krb5_context,
- krb5_keytab);
-
-static krb5_error_code krb5_ktsrvint_close
-(krb5_context,
- krb5_keytab);
-
-static krb5_error_code krb5_ktsrvint_read_entry
-(krb5_context,
- krb5_keytab,
- krb5_keytab_entry *);
+static krb5_error_code KRB5_CALLCONV
+krb5_ktsrvtab_resolve(krb5_context, const char *, krb5_keytab *);
+
+static krb5_error_code KRB5_CALLCONV
+krb5_ktsrvtab_get_name(krb5_context, krb5_keytab, char *, unsigned int);
+
+static krb5_error_code KRB5_CALLCONV
+krb5_ktsrvtab_close(krb5_context, krb5_keytab);
+
+static krb5_error_code KRB5_CALLCONV
+krb5_ktsrvtab_get_entry(krb5_context, krb5_keytab, krb5_const_principal,
+ krb5_kvno, krb5_enctype, krb5_keytab_entry *);
+
+static krb5_error_code KRB5_CALLCONV
+krb5_ktsrvtab_start_seq_get(krb5_context, krb5_keytab, krb5_kt_cursor *);
+
+static krb5_error_code KRB5_CALLCONV
+krb5_ktsrvtab_get_next(krb5_context, krb5_keytab, krb5_keytab_entry *,
+ krb5_kt_cursor *);
+
+static krb5_error_code KRB5_CALLCONV
+krb5_ktsrvtab_end_get(krb5_context, krb5_keytab, krb5_kt_cursor *);
+
+static krb5_error_code
+krb5_ktsrvint_open(krb5_context, krb5_keytab);
+
+static krb5_error_code
+krb5_ktsrvint_close(krb5_context, krb5_keytab);
+
+static krb5_error_code
+krb5_ktsrvint_read_entry(krb5_context, krb5_keytab, krb5_keytab_entry *);
/*
* This is an implementation specific resolver. It returns a keytab id
exit(1); \
} else if(debug) printf("%s went ok\n", msg);
-static void test_misc(krb5_context context)
+static void
+test_misc(krb5_context context)
{
/* Tests for certain error returns */
krb5_error_code kret;
}
}
-static void kt_test(krb5_context context, const char *name)
+static void
+kt_test(krb5_context context, const char *name)
{
krb5_error_code kret;
krb5_keytab kt;
}
-static void do_test(krb5_context context, const char *prefix,
- krb5_boolean delete)
+static void
+do_test(krb5_context context, const char *prefix, krb5_boolean delete)
{
char *name, *filename;
}
int
-main (void)
+main(void)
{
krb5_context context;
krb5_error_code kret;