From: John Kohl Date: Mon, 12 Feb 1990 10:53:26 +0000 (+0000) Subject: clean up the rcache ops functions X-Git-Tag: krb5-1.0-alpha2~1040 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7e554f6aa3c63219f6c3f51d6370d1180e4552dc;p=krb5.git clean up the rcache ops functions to return krb5_error_code, and to take sensible arguments git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@344 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/rcache.h b/src/include/krb5/rcache.h index 0c8c61eb6..7963a9204 100644 --- a/src/include/krb5/rcache.h +++ b/src/include/krb5/rcache.h @@ -23,25 +23,21 @@ typedef struct krb5_rc_st { typedef struct _krb5_rc_ops { char *prefix; - int (*resolve) PROTOTYPE((krb5_rcache *, - char *)); - int (*new) PROTOTYPE((krb5_rcache *, - struct _krb5_rc_ops *)); - char *(*get_name) PROTOTYPE((krb5_rcache)); - int (*init) PROTOTYPE((krb5_rcache, - krb5_timestamp)); - int (*recover) PROTOTYPE((krb5_rcache)); - int (*destroy) PROTOTYPE((krb5_rcache)); - int (*close) PROTOTYPE((krb5_rcache)); - int (*store) PROTOTYPE((krb5_rcache, - krb5_tkt_authent *, - krb5_boolean)); - int (*search) PROTOTYPE((krb5_rcache, - krb5_tkt_authent *)); - int (*get_span) PROTOTYPE((krb5_rcache)); - int (*remove_cred) PROTOTYPE((krb5_rcache, - krb5_tkt_authent *)); - int (*expunge) PROTOTYPE((krb5_rcache)); + krb5_error_code (*resolve) PROTOTYPE((krb5_rcache *, + char *)); + krb5_error_code (*new) PROTOTYPE((krb5_rcache *, + struct _krb5_rc_ops *)); + krb5_error_code (*get_name) PROTOTYPE((krb5_rcache, char *, int)); + krb5_error_code (*init) PROTOTYPE((krb5_rcache, + krb5_deltat)); + krb5_error_code (*recover) PROTOTYPE((krb5_rcache)); + krb5_error_code (*destroy) PROTOTYPE((krb5_rcache)); + krb5_error_code (*close) PROTOTYPE((krb5_rcache)); + krb5_error_code (*store) PROTOTYPE((krb5_rcache, + krb5_tkt_authent *, + krb5_boolean)); + krb5_error_code (*get_span) PROTOTYPE((krb5_rcache, krb5_deltat *)); + krb5_error_code (*expunge) PROTOTYPE((krb5_rcache)); } krb5_rc_ops;