Skip to content

Commit

Permalink
Merge pull request #1138 from chu11/base64_documentation
Browse files Browse the repository at this point in the history
common/libutil: Fix base64 API documentation
  • Loading branch information
garlick committed Aug 4, 2017
2 parents 9e5af83 + e5bf5aa commit 38fed2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/libutil/base64.h
Expand Up @@ -104,15 +104,15 @@ int base64_cleanup (base64_ctx *x);

int base64_encode_block (void *dst, int *dstlen, const void *src, int srclen);
/*
* Base64-encodes [srclen] bytes from the contiguous [src] into [dst].
* If [dstlen] is not NULL, it will be set to the number of bytes written.
* Base64-encodes [srclen] bytes from the contiguous [src] into [dst] and
* sets [dstlen] to the number of bytes written.
* Returns 0 on success, or -1 on error.
*/

int base64_decode_block (void *dst, int *dstlen, const void *src, int srclen);
/*
* Base64-decodes [srclen] bytes from the contiguous [src] into [dst].
* If [dstlen] is not NULL, it will be set to the number of bytes written.
* Base64-decodes [srclen] bytes from the contiguous [src] into [dst] and
* sets [dstlen] to the number of bytes written.
* Returns 0 on success, or -1 on error.
*/

Expand Down

0 comments on commit 38fed2d

Please sign in to comment.