Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

rpmio/base64.c File Reference

More...

#include "system.h"
#include "base64.h"
#include "debug.h"

Go to the source code of this file.

Functions

int B64decode (const char *s, void **datap, size_t *lenp)
 Decode chunks of 4 bytes of base64 input into 3 bytes of binary output. More...

char* B64encode (const void *str, size_t ns)
 Encode chunks of 3 bytes of binary input into 4 bytes of base64 output. More...


Variables

int _debug = 0


Detailed Description

Definition in file base64.c.


Function Documentation

int B64decode ( const char * s,
void ** datap,
size_t * lenp )
 

Decode chunks of 4 bytes of base64 input into 3 bytes of binary output.

Parameters:
s   base64 string
Return values:
datap   address of (malloc'd) binary data
lenp   address of no. bytes of binary data
Returns:
0 on success

Definition at line 11 of file base64.c.

char * B64encode ( const void * data,
size_t ns )
 

Encode chunks of 3 bytes of binary input into 4 bytes of base64 output.

Parameters:
data   binary data
ns   no. bytes of data (0 uses strlen(data))
Returns:
(malloc'd) base64 string

Definition at line 76 of file base64.c.


Variable Documentation

int _debug = 0 [static]
 

Definition at line 5 of file base64.c.


Generated at Thu Sep 6 11:25:46 2001 for rpm by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001