YAZ
5.34.0
|
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... | |
Header for Base64 utilities.
Definition in file base64.h.
int yaz_base64decode | ( | const char * | in, |
char * | out | ||
) |
decodes Base64 string
in | input Base64 encoded string |
out | result string |
0 | OK |
-1 | invalid 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
in | input string |
out | resulting 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().