diff options
| author | Michael Brown | 2010-05-28 02:17:22 +0200 |
|---|---|---|
| committer | Michael Brown | 2010-05-28 13:44:23 +0200 |
| commit | dfcce165a58dc3be7d1c6c1bdf80dd6a28d50d7f (patch) | |
| tree | 202eb2047d2c7da2f8e7a0ea71daa6f35c03a4c5 /src/include/ipxe | |
| parent | [doc] Re-add README file (diff) | |
| download | ipxe-dfcce165a58dc3be7d1c6c1bdf80dd6a28d50d7f.tar.gz ipxe-dfcce165a58dc3be7d1c6c1bdf80dd6a28d50d7f.tar.xz ipxe-dfcce165a58dc3be7d1c6c1bdf80dd6a28d50d7f.zip | |
[base64] Allow base64_encode() to handle arbitrary data
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
| -rw-r--r-- | src/include/ipxe/base64.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/ipxe/base64.h b/src/include/ipxe/base64.h index 129594154..88c91563e 100644 --- a/src/include/ipxe/base64.h +++ b/src/include/ipxe/base64.h @@ -12,15 +12,15 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <stdint.h> /** - * Calculate length of base64-encoded string + * Calculate length of base64-encoded data * - * @v raw_len Raw string length (excluding NUL) + * @v raw_len Raw data length * @ret encoded_len Encoded string length (excluding NUL) */ static inline size_t base64_encoded_len ( size_t raw_len ) { return ( ( ( raw_len + 3 - 1 ) / 3 ) * 4 ); } -extern void base64_encode ( const char *raw, char *encoded ); +extern void base64_encode ( const uint8_t *raw, size_t len, char *encoded ); #endif /* _IPXE_BASE64_H */ |
