svn_base64.h File Reference

Base64 encoding and decoding functions. More...

#include <apr_md5.h>
#include "svn_io.h"

Go to the source code of this file.

Functions

svn_stream_tsvn_base64_encode (svn_stream_t *output, apr_pool_t *pool)
 Return a writable generic stream which will encode binary data in base64 format and write the encoded data to output.
svn_stream_tsvn_base64_decode (svn_stream_t *output, apr_pool_t *pool)
 Return a writable generic stream which will decode base64-encoded data and write the decoded data to output.
const svn_string_tsvn_base64_encode_string (const svn_string_t *str, apr_pool_t *pool)
 Encode an svn_stringbuf_t into base64.
const svn_string_tsvn_base64_decode_string (const svn_string_t *str, apr_pool_t *pool)
 Decode an svn_stringbuf_t from base64.
svn_stringbuf_tsvn_base64_from_md5 (unsigned char digest[], apr_pool_t *pool)
 Return a base64-encoded checksum for finalized digest.


Detailed Description

Base64 encoding and decoding functions.

Definition in file svn_base64.h.


Function Documentation

svn_stream_t* svn_base64_decode ( svn_stream_t output,
apr_pool_t *  pool 
)

Return a writable generic stream which will decode base64-encoded data and write the decoded data to output.

The stream is allocated in pool.

const svn_string_t* svn_base64_decode_string ( const svn_string_t str,
apr_pool_t *  pool 
)

Decode an svn_stringbuf_t from base64.

A simple interface for decoding base64 data assuming we have all of it present at once. The returned string will be allocated from pool.

svn_stream_t* svn_base64_encode ( svn_stream_t output,
apr_pool_t *  pool 
)

Return a writable generic stream which will encode binary data in base64 format and write the encoded data to output.

Be sure to close the stream when done writing in order to squeeze out the last bit of encoded data. The stream is allocated in pool.

const svn_string_t* svn_base64_encode_string ( const svn_string_t str,
apr_pool_t *  pool 
)

Encode an svn_stringbuf_t into base64.

A simple interface for encoding base64 data assuming we have all of it present at once. The returned string will be allocated from pool.

svn_stringbuf_t* svn_base64_from_md5 ( unsigned char  digest[],
apr_pool_t *  pool 
)

Return a base64-encoded checksum for finalized digest.

digest contains APR_MD5_DIGESTSIZE bytes of finalized data. Allocate the returned checksum in pool.


Generated on Fri Nov 10 17:03:14 2006 for Subversion by  doxygen 1.4.7