Go to the source code of this file.
Defines | |
#define | B64SIZE(data_size) ((data_size%3==0)?((data_size*4)/3):(4+((data_size/3)*4))) |
#define | HEADSIZE(hsize) |
#define | B64FSIZE(hsize, dsize) |
Functions | |
int | MHD__gnutls_fbase64_encode (const char *msg, const uint8_t *data, int data_size, uint8_t **result) |
int | MHD__gnutls_base64_decode (const uint8_t *data, size_t data_size, uint8_t **result) |
int | MHD__gnutls_fbase64_decode (const char *header, const uint8_t *data, size_t data_size, uint8_t **result) |
#define B64FSIZE | ( | hsize, | |||
dsize | ) |
Value:
(B64SIZE(dsize) + HEADSIZE(hsize) + /*newlines*/ \ B64SIZE(dsize)/64 + (((B64SIZE(dsize) % 64) > 0) ? 1 : 0))
Definition at line 41 of file x509_b64.h.
Referenced by MHD__gnutls_fbase64_encode().
#define B64SIZE | ( | data_size | ) | ((data_size%3==0)?((data_size*4)/3):(4+((data_size/3)*4))) |
Definition at line 32 of file x509_b64.h.
#define HEADSIZE | ( | hsize | ) |
Value:
sizeof("-----BEGIN ")-1+sizeof("-----")-1+ \ sizeof("\n-----END ")-1+sizeof("-----\n")-1+hsize+hsize
Definition at line 37 of file x509_b64.h.
int MHD__gnutls_base64_decode | ( | const uint8_t * | data, | |
size_t | data_size, | |||
uint8_t ** | result | |||
) |
Definition at line 262 of file x509_b64.c.
References decode(), GNUTLS_E_MEMORY_ERROR, MHD_gnutls_free, and MHD_gnutls_malloc.
Referenced by MHD__gnutls_fbase64_decode().
int MHD__gnutls_fbase64_decode | ( | const char * | header, | |
const uint8_t * | data, | |||
size_t | data_size, | |||
uint8_t ** | result | |||
) |
int MHD__gnutls_fbase64_encode | ( | const char * | msg, | |
const uint8_t * | data, | |||
int | data_size, | |||
uint8_t ** | result | |||
) |
Definition at line 156 of file x509_b64.c.
References B64FSIZE, encode(), GNUTLS_E_BASE64_ENCODING_ERROR, GNUTLS_E_MEMORY_ERROR, INCR, MHD_gnutls_assert, MHD_gnutls_calloc, and MHD_gnutls_free.
Referenced by MHD__gnutls_x509_export_int().