Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

Defines | Functions

base64.h File Reference

Base64 encoding and decoding functions. More...

#include <sofia-sip/su_types.h>
Include dependency graph for base64.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define BASE64_MINSIZE(n)   ((n * 4 + 2) / 3)
#define BASE64_SIZE(n)   ((((n) + 2) / 3) * 4)

Functions

SOFIA_BEGIN_DECLS SOFIAPUBFUN
isize_t 
base64_d (char buf[], isize_t bsiz, char const *b64s)
SOFIAPUBFUN isize_t base64_e (char buf[], isize_t bsiz, void *data, isize_t dsiz)

Detailed Description

Base64 encoding and decoding functions.

This module contains base64 encoding and decoding functions. Base64 encodes arbitrary octet strings as strings containing characters [A-Za-z0-9+/=]. Base64 is defined as part of MIME mail format, but it is used widely by other text-based protocols as well.

See also:
RFC 2045, "Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies", N. Freed, N. Borenstein, November 1996.
Author:
Pekka Pessi <Pekka.Pessi@nokia.com>

Definition in file base64.h.


Generated by  Doxygen 1.6.0   Back to index