diff options
Diffstat (limited to 'client/internal.h')
| -rw-r--r-- | client/internal.h | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/client/internal.h b/client/internal.h index 64fad04..e55f2b8 100644 --- a/client/internal.h +++ b/client/internal.h @@ -90,6 +90,14 @@ void write_file(const char *name, const void *data, size_t length);  void write_srvtab(krb5_context, const char *srvtab, const char *principal,                    const char *keytab); +/* + * Read all of a file into memory and return the contents as a newly allocated + * string.  Handles a file name of "-" to mean standard input.  Dies on any + * failure.  This will need modification later when we want to handle nul + * characters. + */ +char *read_file(const char *); +  END_DECLS  #endif /* !CLIENT_INTERNAL_H */ | 
