summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorBarry Jaspan <bjaspan@mit.edu>1990-01-20 16:42:06 +0000
committerBarry Jaspan <bjaspan@mit.edu>1990-01-20 16:42:06 +0000
commit8b444b766f51f110544611bb7c369ca957d2df7e (patch)
treef3fe17fd23f7c1796b1221cf551635017ca000b5 /src/include
parent9a34d39f5620d46b6cb9f1e058a6e310f01dd7e9 (diff)
downloadkrb5-8b444b766f51f110544611bb7c369ca957d2df7e.tar.gz
krb5-8b444b766f51f110544611bb7c369ca957d2df7e.tar.xz
krb5-8b444b766f51f110544611bb7c369ca957d2df7e.zip
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
Diffstat (limited to 'src/include')
-rw-r--r--src/include/krb5/ccache.h28
1 files changed, 15 insertions, 13 deletions
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 */