base64.c File Reference

#include <config.h>
#include <isc/base64.h>
#include <isc/buffer.h>
#include <isc/region.h>
#include <isc/result.h>
#include <isccc/base64.h>
#include <isccc/result.h>
#include <isccc/util.h>

Go to the source code of this file.

Functions

isc_result_t isccc_base64_encode (isccc_region_t *source, int wordlength, const char *wordbreak, isccc_region_t *target)
 Convert data into base64 encoded text.
isc_result_t isccc_base64_decode (const char *cstr, isccc_region_t *target)
 Decode a null-terminated base64 string.


Detailed Description

Definition in file base64.c.


Function Documentation

isc_result_t isccc_base64_encode ( isccc_region_t source,
int  wordlength,
const char *  wordbreak,
isccc_region_t target 
)

Convert data into base64 encoded text.

Notes:

Requires:

Definition at line 48 of file base64.c.

References isc_region::base, isc_base64_totext(), isc_buffer_init, isc_buffer_used, ISC_R_SUCCESS, isc_region::length, isccc_region::rend, and isccc_region::rstart.

Referenced by sign(), and verify().

isc_result_t isccc_base64_decode ( const char *  cstr,
isccc_region_t target 
)

Decode a null-terminated base64 string.

Requires:

Returns:

Definition at line 69 of file base64.c.

References isc_base64_decodestring(), isc_buffer_init, isc_buffer_used, ISC_R_SUCCESS, isccc_region::rend, and isccc_region::rstart.

Referenced by parse_config().


Generated on Tue Apr 28 17:41:14 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha