struct _krb5_rc_ops {
krb5_magic magic;
char *type;
- krb5_error_code (KRB5_CALLCONV *init)
- (krb5_context, krb5_rcache,krb5_deltat); /* create */
- krb5_error_code (KRB5_CALLCONV *recover)
- (krb5_context, krb5_rcache); /* open */
- krb5_error_code (KRB5_CALLCONV *recover_or_init)
- (krb5_context, krb5_rcache,krb5_deltat);
- krb5_error_code (KRB5_CALLCONV *destroy)
- (krb5_context, krb5_rcache);
- krb5_error_code (KRB5_CALLCONV *close)
- (krb5_context, krb5_rcache);
- krb5_error_code (KRB5_CALLCONV *store)
- (krb5_context, krb5_rcache,krb5_donot_replay *);
- krb5_error_code (KRB5_CALLCONV *expunge)
- (krb5_context, krb5_rcache);
- krb5_error_code (KRB5_CALLCONV *get_span)
- (krb5_context, krb5_rcache,krb5_deltat *);
- char *(KRB5_CALLCONV *get_name)
- (krb5_context, krb5_rcache);
- krb5_error_code (KRB5_CALLCONV *resolve)
- (krb5_context, krb5_rcache, char *);
+ krb5_error_code (KRB5_CALLCONV *init)(
+ krb5_context,
+ krb5_rcache,
+ krb5_deltat); /* create */
+ krb5_error_code (KRB5_CALLCONV *recover)(
+ krb5_context,
+ krb5_rcache); /* open */
+ krb5_error_code (KRB5_CALLCONV *recover_or_init)(
+ krb5_context,
+ krb5_rcache,
+ krb5_deltat);
+ krb5_error_code (KRB5_CALLCONV *destroy)(
+ krb5_context,
+ krb5_rcache);
+ krb5_error_code (KRB5_CALLCONV *close)(
+ krb5_context,
+ krb5_rcache);
+ krb5_error_code (KRB5_CALLCONV *store)(
+ krb5_context,
+ krb5_rcache,
+ krb5_donot_replay *);
+ krb5_error_code (KRB5_CALLCONV *expunge)(
+ krb5_context,
+ krb5_rcache);
+ krb5_error_code (KRB5_CALLCONV *get_span)(
+ krb5_context,
+ krb5_rcache,
+ krb5_deltat *);
+ char *(KRB5_CALLCONV *get_name)(
+ krb5_context,
+ krb5_rcache);
+ krb5_error_code (KRB5_CALLCONV *resolve)(
+ krb5_context,
+ krb5_rcache,
+ char *);
};
typedef struct _krb5_rc_ops krb5_rc_ops;
-krb5_error_code krb5_rc_register_type (krb5_context, const krb5_rc_ops *);
+krb5_error_code krb5_rc_register_type(krb5_context, const krb5_rc_ops *);
extern const krb5_rc_ops krb5_rc_dfl_ops;
extern const krb5_rc_ops krb5_rc_none_ops;
#ifndef KRB5_RC_DFL_H
#define KRB5_RC_DFL_H
-krb5_error_code KRB5_CALLCONV krb5_rc_dfl_init
-(krb5_context,
- krb5_rcache,
- krb5_deltat);
-krb5_error_code KRB5_CALLCONV krb5_rc_dfl_recover
-(krb5_context,
- krb5_rcache);
-krb5_error_code KRB5_CALLCONV krb5_rc_dfl_recover_or_init
-(krb5_context, krb5_rcache, krb5_deltat);
-krb5_error_code KRB5_CALLCONV krb5_rc_dfl_destroy
-(krb5_context,
- krb5_rcache);
-krb5_error_code KRB5_CALLCONV krb5_rc_dfl_close
-(krb5_context,
- krb5_rcache);
-krb5_error_code KRB5_CALLCONV krb5_rc_dfl_store
-(krb5_context,
- krb5_rcache,
- krb5_donot_replay *);
-krb5_error_code KRB5_CALLCONV krb5_rc_dfl_expunge
-(krb5_context,
- krb5_rcache);
-krb5_error_code KRB5_CALLCONV krb5_rc_dfl_get_span
-(krb5_context,
- krb5_rcache,
- krb5_deltat *);
-char * KRB5_CALLCONV krb5_rc_dfl_get_name
-(krb5_context,
- krb5_rcache);
-krb5_error_code KRB5_CALLCONV krb5_rc_dfl_resolve
-(krb5_context,
- krb5_rcache,
- char *);
-krb5_error_code krb5_rc_dfl_close_no_free
-(krb5_context,
- krb5_rcache);
-void krb5_rc_free_entry
-(krb5_context,
- krb5_donot_replay **);
+krb5_error_code KRB5_CALLCONV
+krb5_rc_dfl_init(krb5_context, krb5_rcache, krb5_deltat);
+
+krb5_error_code KRB5_CALLCONV
+krb5_rc_dfl_recover(krb5_context, krb5_rcache);
+
+krb5_error_code KRB5_CALLCONV
+krb5_rc_dfl_recover_or_init(krb5_context, krb5_rcache, krb5_deltat);
+
+krb5_error_code KRB5_CALLCONV
+krb5_rc_dfl_destroy(krb5_context, krb5_rcache);
+
+krb5_error_code KRB5_CALLCONV
+krb5_rc_dfl_close(krb5_context, krb5_rcache);
+
+krb5_error_code KRB5_CALLCONV
+krb5_rc_dfl_store(krb5_context, krb5_rcache, krb5_donot_replay *);
+
+krb5_error_code KRB5_CALLCONV
+krb5_rc_dfl_expunge(krb5_context, krb5_rcache);
+
+krb5_error_code KRB5_CALLCONV
+krb5_rc_dfl_get_span(krb5_context, krb5_rcache, krb5_deltat *);
+
+char * KRB5_CALLCONV
+krb5_rc_dfl_get_name(krb5_context, krb5_rcache);
+
+krb5_error_code KRB5_CALLCONV
+krb5_rc_dfl_resolve(krb5_context, krb5_rcache, char *);
+
+krb5_error_code krb5_rc_dfl_close_no_free(krb5_context, krb5_rcache);
+void krb5_rc_free_entry(krb5_context, krb5_donot_replay **);
#endif
#ifndef KRB5_RC_IO_H
#define KRB5_RC_IO_H
-typedef struct krb5_rc_iostuff
-{
+typedef struct krb5_rc_iostuff {
int fd;
#ifdef MSDOS_FILESYSTEM
long mark;
off_t mark; /* on newer systems, should be pos_t */
#endif
char *fn;
-}
- krb5_rc_iostuff;
+} krb5_rc_iostuff;
/* first argument is always iostuff for result file */
-krb5_error_code krb5_rc_io_creat
-(krb5_context,
- krb5_rc_iostuff *,
- char **);
-krb5_error_code krb5_rc_io_open
-(krb5_context,
- krb5_rc_iostuff *,
- char *);
-krb5_error_code krb5_rc_io_move
-(krb5_context,
- krb5_rc_iostuff *,
- krb5_rc_iostuff *);
-krb5_error_code krb5_rc_io_write
-(krb5_context,
- krb5_rc_iostuff *,
- krb5_pointer,
- unsigned int);
-krb5_error_code krb5_rc_io_read
-(krb5_context,
- krb5_rc_iostuff *,
- krb5_pointer,
- unsigned int);
-krb5_error_code krb5_rc_io_close
-(krb5_context,
- krb5_rc_iostuff *);
-krb5_error_code krb5_rc_io_destroy
-(krb5_context,
- krb5_rc_iostuff *);
-krb5_error_code krb5_rc_io_mark
-(krb5_context,
- krb5_rc_iostuff *);
-krb5_error_code krb5_rc_io_unmark
-(krb5_context,
- krb5_rc_iostuff *);
-krb5_error_code krb5_rc_io_sync
-(krb5_context,
- krb5_rc_iostuff *);
-long krb5_rc_io_size
-(krb5_context,
- krb5_rc_iostuff *);
+krb5_error_code
+krb5_rc_io_creat(krb5_context, krb5_rc_iostuff *, char **);
+
+krb5_error_code
+krb5_rc_io_open(krb5_context, krb5_rc_iostuff *, char *);
+
+krb5_error_code
+krb5_rc_io_move(krb5_context, krb5_rc_iostuff *, krb5_rc_iostuff *);
+
+krb5_error_code
+krb5_rc_io_write(krb5_context, krb5_rc_iostuff *, krb5_pointer, unsigned int);
+
+krb5_error_code
+krb5_rc_io_read(krb5_context, krb5_rc_iostuff *, krb5_pointer, unsigned int);
+
+krb5_error_code
+krb5_rc_io_close(krb5_context, krb5_rc_iostuff *);
+
+krb5_error_code
+krb5_rc_io_destroy(krb5_context, krb5_rc_iostuff *);
+
+krb5_error_code
+krb5_rc_io_mark(krb5_context, krb5_rc_iostuff *);
+
+krb5_error_code
+krb5_rc_io_unmark(krb5_context, krb5_rc_iostuff *);
+
+krb5_error_code
+krb5_rc_io_sync(krb5_context, krb5_rc_iostuff *);
+
+long
+krb5_rc_io_size(krb5_context, krb5_rc_iostuff *);
#endif
* krb5_rcache_externalize();
* krb5_rcache_internalize();
*/
-static krb5_error_code krb5_rcache_size
-(krb5_context, krb5_pointer, size_t *);
-static krb5_error_code krb5_rcache_externalize
-(krb5_context, krb5_pointer, krb5_octet **, size_t *);
-static krb5_error_code krb5_rcache_internalize
-(krb5_context,krb5_pointer *, krb5_octet **, size_t *);
+static krb5_error_code
+krb5_rcache_size(krb5_context, krb5_pointer, size_t *);
+
+static krb5_error_code
+krb5_rcache_externalize(krb5_context, krb5_pointer, krb5_octet **, size_t *);
+
+static krb5_error_code
+krb5_rcache_internalize(krb5_context,krb5_pointer *, krb5_octet **, size_t *);
/*
* Serialization entry for this type.