add internal prototypes
authorJohn Kohl <jtkohl@mit.edu>
Thu, 26 Apr 1990 17:20:49 +0000 (17:20 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 26 Apr 1990 17:20:49 +0000 (17:20 +0000)
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

src/lib/krb5/keytab/file/ktfile.h

index 09cf3c707b1fe3a579edf2e3c1b0f4f68fb67296..1cc713fbc300adfa6d8398fc68f2c1a58b27b694 100644 (file)
 
 #include <krb5/copyright.h>
 
-#ifndef __KTFILE__
-#define __KTFILE__
+#ifndef KRB5_KTFILE__
+#define KRB5_KTFILE__
+
+#include <stdio.h>
 
 /*
  * Constants
  */
 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__ */