YAZ  5.23.1
Functions
base64.h File Reference

Header for Base64 utilities. More...

#include <yaz/yconfig.h>

Go to the source code of this file.

Functions

void yaz_base64encode (const char *in, char *out)
 encodes Base64 string More...
 
int yaz_base64decode (const char *in, char *out)
 decodes Base64 string More...
 

Detailed Description

Header for Base64 utilities.

Definition in file base64.h.

Function Documentation

int yaz_base64decode ( const char *  in,
char *  out 
)

decodes Base64 string

Parameters
ininput Base64 encoded string
outresult string
Return values
0OK
-1invalid character

The out buffer should at least be of size:

strlen(in)

Definition at line 82 of file base64.c.

References next_char().

Referenced by base64_render(), and yaz_srw_decodeauth().

void yaz_base64encode ( const char *  in,
char *  out 
)

encodes Base64 string

Parameters
ininput string
outresulting Base64 string

The out buffer should at least be of size:

(strlen(in)*8) / 6 + 12

Definition at line 16 of file base64.c.

Referenced by connect_and_bind(), and z_HTTP_header_add_basic_auth().