summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/keytab/file
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-04-26 17:20:49 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-04-26 17:20:49 +0000
commit2687c16f28224b9949a57118bb16202dde16c61e (patch)
tree277d8cc209b73bfc00f39857f0c92ef4c36ee32c /src/lib/krb5/keytab/file
parentac50e7803b8379b5b0ea70ceaa197d52a9ae8558 (diff)
downloadkrb5-2687c16f28224b9949a57118bb16202dde16c61e.tar.gz
krb5-2687c16f28224b9949a57118bb16202dde16c61e.tar.xz
krb5-2687c16f28224b9949a57118bb16202dde16c61e.zip
add internal prototypes
add KTPRIVATE, KTFILEP, openf field of data, fix #include blocker name git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@597 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/keytab/file')
-rw-r--r--src/lib/krb5/keytab/file/ktfile.h27
1 files changed, 20 insertions, 7 deletions
diff --git a/src/lib/krb5/keytab/file/ktfile.h b/src/lib/krb5/keytab/file/ktfile.h
index 09cf3c707..1cc713fbc 100644
--- a/src/lib/krb5/keytab/file/ktfile.h
+++ b/src/lib/krb5/keytab/file/ktfile.h
@@ -14,8 +14,10 @@
#include <krb5/copyright.h>
-#ifndef __KTFILE__
-#define __KTFILE__
+#ifndef KRB5_KTFILE__
+#define KRB5_KTFILE__
+
+#include <stdio.h>
/*
* Constants
@@ -28,12 +30,15 @@
*/
typedef struct _krb5_ktfile_data {
char *name; /* Name of the file */
+ FILE *openf; /* open file, if any. */
} krb5_ktfile_data;
/*
* Macros
*/
+#define KTPRIVATE(id) ((krb5_ktfile_data *)(id)->data)
#define KTFILENAME(id) (((krb5_ktfile_data *)(id)->data)->name)
+#define KTFILEP(id) (((krb5_ktfile_data *)(id)->data)->openf)
extern struct _krb5_kt_ops krb5_ktf_ops;
krb5_error_code krb5_ktfile_resolve PROTOTYPE((char *,
@@ -42,10 +47,10 @@ krb5_error_code krb5_ktfile_get_name PROTOTYPE((krb5_keytab,
char *,
int));
krb5_error_code krb5_ktfile_close PROTOTYPE((krb5_keytab));
-krb5_error_code krb5_ktfile_get PROTOTYPE((krb5_keytab,
- krb5_principal,
- krb5_kvno,
- krb5_keytab_entry *));
+krb5_error_code krb5_ktfile_get_entry PROTOTYPE((krb5_keytab,
+ krb5_principal,
+ krb5_kvno,
+ krb5_keytab_entry *));
krb5_error_code krb5_ktfile_start_seq_get PROTOTYPE((krb5_keytab,
krb5_kt_cursor *));
krb5_error_code krb5_ktfile_get_next PROTOTYPE((krb5_keytab,
@@ -59,4 +64,12 @@ krb5_error_code krb5_ktfile_add PROTOTYPE((krb5_keytab,
krb5_error_code krb5_ktfile_remove PROTOTYPE((krb5_keytab,
krb5_keytab_entry *));
-#endif /* __KTFILE__ */
+krb5_error_code krb5_ktfileint_openr PROTOTYPE((krb5_keytab));
+krb5_error_code krb5_ktfileint_openw PROTOTYPE((krb5_keytab));
+krb5_error_code krb5_ktfileint_close PROTOTYPE((krb5_keytab));
+krb5_error_code krb5_ktfileint_read_entry PROTOTYPE((krb5_keytab,
+ krb5_keytab_entry **));
+krb5_error_code krb5_ktfileint_write_entry PROTOTYPE((krb5_keytab,
+ krb5_keytab_entry *));
+
+#endif /* KRB5_KTFILE__ */