From: Barry Jaspan Date: Sat, 20 Jan 1990 16:42:06 +0000 (+0000) Subject: a krb5_ccache as an argument and return an error condition (as we X-Git-Tag: krb5-1.0-alpha2~1227 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8b444b766f51f110544611bb7c369ca957d2df7e;p=krb5.git a krb5_ccache as an argument and return an error condition (as we agreed in meeting). I also changed the return type from int to krb5_error_code. bjaspan: changed type of resolve and gen_new so that they take git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@156 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/ccache.h b/src/include/krb5/ccache.h index ee4f32c79..70125fe38 100644 --- a/src/include/krb5/ccache.h +++ b/src/include/krb5/ccache.h @@ -25,23 +25,25 @@ typedef struct _krb5_ccache { typedef struct _krb5_cc_ops { char *prefix; - krb5_ccache (*resolve) PROTOTYPE((char *residual)); - krb5_ccache (*gen_new) PROTOTYPE((void)); char *(*get_name) PROTOTYPE((krb5_ccache)); - int (*init) PROTOTYPE((krb5_ccache, krb5_principal)); - int (*destroy) PROTOTYPE((krb5_ccache)); - int (*close) PROTOTYPE((krb5_ccache)); - int (*store) PROTOTYPE((krb5_ccache, krb5_creds *)); - int (*retrieve) PROTOTYPE((krb5_ccache, krb5_flags, + krb5_error_code (*resolve) PROTOTYPE((krb5_ccache, char *)); + krb5_error_code (*gen_new) PROTOTYPE((krb5_ccache)); + krb5_error_code (*init) PROTOTYPE((krb5_ccache, krb5_principal)); + krb5_error_code (*destroy) PROTOTYPE((krb5_ccache)); + krb5_error_code (*close) PROTOTYPE((krb5_ccache)); + krb5_error_code (*store) PROTOTYPE((krb5_ccache, krb5_creds *)); + krb5_error_code (*retrieve) PROTOTYPE((krb5_ccache, krb5_flags, krb5_creds *, krb5_creds *)); - int (*get_princ) PROTOTYPE((krb5_ccache, krb5_principal *)); - int (*get_first) PROTOTYPE((krb5_ccache, krb5_cc_cursor *)); - int (*get_next) PROTOTYPE((krb5_ccache, krb5_cc_cursor *, + krb5_error_code (*get_princ) PROTOTYPE((krb5_ccache, + krb5_principal *)); + krb5_error_code (*get_first) PROTOTYPE((krb5_ccache, + krb5_cc_cursor *)); + krb5_error_code (*get_next) PROTOTYPE((krb5_ccache, krb5_cc_cursor *, krb5_creds *)); - int (*end_get) PROTOTYPE((krb5_ccache, krb5_cc_cursor *)); - int (*remove_cred) PROTOTYPE((krb5_ccache, krb5_flags, + krb5_error_code (*end_get) PROTOTYPE((krb5_ccache, krb5_cc_cursor *)); + krb5_error_code (*remove_cred) PROTOTYPE((krb5_ccache, krb5_flags, krb5_creds *)); - int (*set_flags) PROTOTYPE((krb5_ccache, krb5_flags)); + krb5_error_code (*set_flags) PROTOTYPE((krb5_ccache, krb5_flags)); } krb5_cc_ops; /* for retrieve_cred */