extern const struct _krb5_kt_ops krb5_ktf_ops;
extern const struct _krb5_kt_ops krb5_ktf_writable_ops;
-krb5_error_code KRB5_CALLCONV krb5_ktfile_resolve
+static krb5_error_code KRB5_CALLCONV krb5_ktfile_resolve
(krb5_context,
const char *,
krb5_keytab *);
-krb5_error_code KRB5_CALLCONV krb5_ktfile_wresolve
+static krb5_error_code KRB5_CALLCONV krb5_ktfile_wresolve
(krb5_context,
const char *,
krb5_keytab *);
-krb5_error_code KRB5_CALLCONV krb5_ktfile_get_name
+static krb5_error_code KRB5_CALLCONV krb5_ktfile_get_name
(krb5_context,
krb5_keytab,
char *,
unsigned int);
-krb5_error_code KRB5_CALLCONV krb5_ktfile_close
+static krb5_error_code KRB5_CALLCONV krb5_ktfile_close
(krb5_context,
krb5_keytab);
-krb5_error_code KRB5_CALLCONV krb5_ktfile_get_entry
+static krb5_error_code KRB5_CALLCONV krb5_ktfile_get_entry
(krb5_context,
krb5_keytab,
krb5_const_principal,
krb5_enctype,
krb5_keytab_entry *);
-krb5_error_code KRB5_CALLCONV krb5_ktfile_start_seq_get
+static krb5_error_code KRB5_CALLCONV krb5_ktfile_start_seq_get
(krb5_context,
krb5_keytab,
krb5_kt_cursor *);
-krb5_error_code KRB5_CALLCONV krb5_ktfile_get_next
+static krb5_error_code KRB5_CALLCONV krb5_ktfile_get_next
(krb5_context,
krb5_keytab,
krb5_keytab_entry *,
krb5_kt_cursor *);
-krb5_error_code KRB5_CALLCONV krb5_ktfile_end_get
+static krb5_error_code KRB5_CALLCONV krb5_ktfile_end_get
(krb5_context,
krb5_keytab,
krb5_kt_cursor *);
/* routines to be included on extended version (write routines) */
-krb5_error_code KRB5_CALLCONV krb5_ktfile_add
+static krb5_error_code KRB5_CALLCONV krb5_ktfile_add
(krb5_context,
krb5_keytab,
krb5_keytab_entry *);
-krb5_error_code KRB5_CALLCONV krb5_ktfile_remove
+static krb5_error_code KRB5_CALLCONV krb5_ktfile_remove
(krb5_context,
krb5_keytab,
krb5_keytab_entry *);
-krb5_error_code krb5_ktfileint_openr
+static krb5_error_code krb5_ktfileint_openr
(krb5_context,
krb5_keytab);
-krb5_error_code krb5_ktfileint_openw
+static krb5_error_code krb5_ktfileint_openw
(krb5_context,
krb5_keytab);
-krb5_error_code krb5_ktfileint_close
+static krb5_error_code krb5_ktfileint_close
(krb5_context,
krb5_keytab);
-krb5_error_code krb5_ktfileint_read_entry
+static krb5_error_code krb5_ktfileint_read_entry
(krb5_context,
krb5_keytab,
krb5_keytab_entry *);
-krb5_error_code krb5_ktfileint_write_entry
+static krb5_error_code krb5_ktfileint_write_entry
(krb5_context,
krb5_keytab,
krb5_keytab_entry *);
-krb5_error_code krb5_ktfileint_delete_entry
+static krb5_error_code krb5_ktfileint_delete_entry
(krb5_context,
krb5_keytab,
krb5_int32);
-krb5_error_code krb5_ktfileint_internal_read_entry
+static krb5_error_code krb5_ktfileint_internal_read_entry
(krb5_context,
krb5_keytab,
krb5_keytab_entry *,
krb5_int32 *);
-krb5_error_code krb5_ktfileint_size_entry
+static krb5_error_code krb5_ktfileint_size_entry
(krb5_context,
krb5_keytab_entry *,
krb5_int32 *);
-krb5_error_code krb5_ktfileint_find_slot
+static krb5_error_code krb5_ktfileint_find_slot
(krb5_context,
krb5_keytab,
krb5_int32 *,
* initialized with file keytab routines.
*/
-krb5_error_code KRB5_CALLCONV
+static krb5_error_code KRB5_CALLCONV
krb5_ktfile_resolve(krb5_context context, const char *name, krb5_keytab *id)
{
krb5_ktfile_data *data;
* free memory hidden in the structures.
*/
-krb5_error_code KRB5_CALLCONV
+static krb5_error_code KRB5_CALLCONV
krb5_ktfile_close(krb5_context context, krb5_keytab id)
/*
* This routine is responsible for freeing all memory allocated
* an error.
*/
-krb5_error_code KRB5_CALLCONV
+static krb5_error_code KRB5_CALLCONV
krb5_ktfile_get_entry(krb5_context context, krb5_keytab id,
krb5_const_principal principal, krb5_kvno kvno,
krb5_enctype enctype, krb5_keytab_entry *entry)
* Get the name of the file containing a file-based keytab.
*/
-krb5_error_code KRB5_CALLCONV
+static krb5_error_code KRB5_CALLCONV
krb5_ktfile_get_name(krb5_context context, krb5_keytab id, char *name, unsigned int len)
/*
* This routine returns the name of the name of the file associated with
* krb5_ktfile_start_seq_get()
*/
-krb5_error_code KRB5_CALLCONV
+static krb5_error_code KRB5_CALLCONV
krb5_ktfile_start_seq_get(krb5_context context, krb5_keytab id, krb5_kt_cursor *cursorp)
{
krb5_error_code retval;
* krb5_ktfile_get_next()
*/
-krb5_error_code KRB5_CALLCONV
+static krb5_error_code KRB5_CALLCONV
krb5_ktfile_get_next(krb5_context context, krb5_keytab id, krb5_keytab_entry *entry, krb5_kt_cursor *cursor)
{
long *fileoff = (long *)*cursor;
* krb5_ktfile_end_get()
*/
-krb5_error_code KRB5_CALLCONV
+static krb5_error_code KRB5_CALLCONV
krb5_ktfile_end_get(krb5_context context, krb5_keytab id, krb5_kt_cursor *cursor)
{
krb5_error_code kerror;
* initialized with file keytab routines.
*/
-krb5_error_code KRB5_CALLCONV
+static krb5_error_code KRB5_CALLCONV
krb5_ktfile_wresolve(krb5_context context, const char *name, krb5_keytab *id)
{
krb5_ktfile_data *data;
* krb5_ktfile_add()
*/
-krb5_error_code KRB5_CALLCONV
+static krb5_error_code KRB5_CALLCONV
krb5_ktfile_add(krb5_context context, krb5_keytab id, krb5_keytab_entry *entry)
{
krb5_error_code retval;
* krb5_ktfile_remove()
*/
-krb5_error_code KRB5_CALLCONV
+static krb5_error_code KRB5_CALLCONV
krb5_ktfile_remove(krb5_context context, krb5_keytab id, krb5_keytab_entry *entry)
{
krb5_keytab_entry cur_entry;
return 0;
}
-krb5_error_code
+static krb5_error_code
krb5_ktfileint_openr(krb5_context context, krb5_keytab id)
{
return krb5_ktfileint_open(context, id, KRB5_LOCKMODE_SHARED);
}
-krb5_error_code
+static krb5_error_code
krb5_ktfileint_openw(krb5_context context, krb5_keytab id)
{
return krb5_ktfileint_open(context, id, KRB5_LOCKMODE_EXCLUSIVE);
}
-krb5_error_code
+static krb5_error_code
krb5_ktfileint_close(krb5_context context, krb5_keytab id)
{
krb5_error_code kerror;
return kerror;
}
-krb5_error_code
+static krb5_error_code
krb5_ktfileint_delete_entry(krb5_context context, krb5_keytab id, krb5_int32 delete_point)
{
krb5_int32 size;
return 0;
}
-krb5_error_code
+static krb5_error_code
krb5_ktfileint_internal_read_entry(krb5_context context, krb5_keytab id, krb5_keytab_entry *ret_entry, krb5_int32 *delete_point)
{
krb5_octet vno;
return error;
}
-krb5_error_code
+static krb5_error_code
krb5_ktfileint_read_entry(krb5_context context, krb5_keytab id, krb5_keytab_entry *entryp)
{
krb5_int32 delete_point;
return krb5_ktfileint_internal_read_entry(context, id, entryp, &delete_point);
}
-krb5_error_code
+static krb5_error_code
krb5_ktfileint_write_entry(krb5_context context, krb5_keytab id, krb5_keytab_entry *entry)
{
krb5_octet vno;
* Determine the size needed for a file entry for the given
* keytab entry.
*/
-krb5_error_code
+static krb5_error_code
krb5_ktfileint_size_entry(krb5_context context, krb5_keytab_entry *entry, krb5_int32 *size_needed)
{
krb5_int16 count;
* to commit the write, but that this field must indicate the size of the
* block in the file rather than the size of the actual entry)
*/
-krb5_error_code
+static krb5_error_code
krb5_ktfileint_find_slot(krb5_context context, krb5_keytab id, krb5_int32 *size_needed, krb5_int32 *commit_point)
{
krb5_int32 size;