diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-04-20 06:58:00 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-04-20 06:58:00 +0000 |
commit | 3eb5042e9c24ec09ee36029db5d1badd85fad39f (patch) | |
tree | acc5682d00355c2e0ed4be0db7b86430e591fa8e /src/libstrongswan/chunk.h | |
parent | 4f4ae2f465fadc4bc99965f9778bdda3cd7e78de (diff) | |
download | strongswan-3eb5042e9c24ec09ee36029db5d1badd85fad39f.tar.bz2 strongswan-3eb5042e9c24ec09ee36029db5d1badd85fad39f.tar.xz |
migrated write_chunk() to chunk_write()
Diffstat (limited to 'src/libstrongswan/chunk.h')
-rw-r--r-- | src/libstrongswan/chunk.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/libstrongswan/chunk.h b/src/libstrongswan/chunk.h index 37cbebfc5..f88e95ed3 100644 --- a/src/libstrongswan/chunk.h +++ b/src/libstrongswan/chunk.h @@ -86,8 +86,14 @@ void chunk_split(chunk_t chunk, const char *mode, ...); /** * Write the binary contents of a chunk_t to a file - */ -bool chunk_write(chunk_t chunk, char *path, mode_t mask, bool force); + * + * @param path path where file is written to + * @param label label specifying file type + * @param mask file mode creation mask + * @param force overwrite existing file by force + * @return TRUE if write operation was successful + */ +bool chunk_write(chunk_t chunk, char *path, char *label, mode_t mask, bool force); /** * Convert a chunk of data to hex encoding. @@ -95,7 +101,6 @@ bool chunk_write(chunk_t chunk, char *path, mode_t mask, bool force); * The resulting string is '\\0' terminated, but the chunk does not include * the '\\0'. If buf is supplied, it must hold at least (chunk.len * 2 + 1). * - * @param chunk data to convert * @param buf buffer to write to, NULL to malloc * @param uppercase TRUE to use uppercase letters * @return chunk of encoded data |