summaryrefslogtreecommitdiffstats
path: root/src/include/k5-int.h
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2000-07-14 22:15:28 +0000
committerKen Raeburn <raeburn@mit.edu>2000-07-14 22:15:28 +0000
commit43b1bb6dae838a46c2a292166bd57b2588277646 (patch)
tree12644e2bfc0872b54c0a8752927b7d8954e62bdd /src/include/k5-int.h
parent06727e2f263c66725e8234d507e4b522d062cfea (diff)
downloadkrb5-43b1bb6dae838a46c2a292166bd57b2588277646.tar.gz
krb5-43b1bb6dae838a46c2a292166bd57b2588277646.tar.xz
krb5-43b1bb6dae838a46c2a292166bd57b2588277646.zip
* krb5.hin (krb5_cc_*): Replace macro definitions with function declarations.
(struct _krb5_ccache, struct _krb5_cc_ops): Declare only; move definitions... * k5-int.h: To here. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12543 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/k5-int.h')
-rw-r--r--src/include/k5-int.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index c1a5dc42e5..3aae51a3dd 100644
--- a/src/include/k5-int.h
+++ b/src/include/k5-int.h
@@ -1539,4 +1539,44 @@ int krb5_seteuid KRB5_PROTOTYPE((int));
/* to keep lint happy */
#define krb5_xfree(val) free((char FAR *)(val))
+/* temporary -- this should be under lib/krb5/ccache somewhere */
+
+struct _krb5_ccache {
+ krb5_magic magic;
+ struct _krb5_cc_ops FAR *ops;
+ krb5_pointer data;
+};
+
+struct _krb5_cc_ops {
+ krb5_magic magic;
+ char FAR *prefix;
+ char FAR * (KRB5_CALLCONV *get_name) KRB5_NPROTOTYPE((krb5_context, krb5_ccache));
+ krb5_error_code (KRB5_CALLCONV *resolve) KRB5_NPROTOTYPE((krb5_context, krb5_ccache FAR *,
+ const char FAR *));
+ krb5_error_code (KRB5_CALLCONV *gen_new) KRB5_NPROTOTYPE((krb5_context, krb5_ccache FAR *));
+ krb5_error_code (KRB5_CALLCONV *init) KRB5_NPROTOTYPE((krb5_context, krb5_ccache,
+ krb5_principal));
+ krb5_error_code (KRB5_CALLCONV *destroy) KRB5_NPROTOTYPE((krb5_context, krb5_ccache));
+ krb5_error_code (KRB5_CALLCONV *close) KRB5_NPROTOTYPE((krb5_context, krb5_ccache));
+ krb5_error_code (KRB5_CALLCONV *store) KRB5_NPROTOTYPE((krb5_context, krb5_ccache,
+ krb5_creds FAR *));
+ krb5_error_code (KRB5_CALLCONV *retrieve) KRB5_NPROTOTYPE((krb5_context, krb5_ccache,
+ krb5_flags, krb5_creds FAR *,
+ krb5_creds FAR *));
+ krb5_error_code (KRB5_CALLCONV *get_princ) KRB5_NPROTOTYPE((krb5_context, krb5_ccache,
+ krb5_principal FAR *));
+ krb5_error_code (KRB5_CALLCONV *get_first) KRB5_NPROTOTYPE((krb5_context, krb5_ccache,
+ krb5_cc_cursor FAR *));
+ krb5_error_code (KRB5_CALLCONV *get_next) KRB5_NPROTOTYPE((krb5_context, krb5_ccache,
+ krb5_cc_cursor FAR *, krb5_creds FAR *));
+ krb5_error_code (KRB5_CALLCONV *end_get) KRB5_NPROTOTYPE((krb5_context, krb5_ccache,
+ krb5_cc_cursor FAR *));
+ krb5_error_code (KRB5_CALLCONV *remove_cred) KRB5_NPROTOTYPE((krb5_context, krb5_ccache,
+ krb5_flags, krb5_creds FAR *));
+ krb5_error_code (KRB5_CALLCONV *set_flags) KRB5_NPROTOTYPE((krb5_context, krb5_ccache,
+ krb5_flags));
+};
+
+extern krb5_cc_ops *krb5_cc_dfl_ops;
+
#endif /* _KRB5_INT_H */