View lcov test coverage results on http://www.ufoot.org/liquidwar/v6/doc/coverage/src/lib/glb/index.html.
sys_context: global system context
buf: the data to encode
size: the size of data to encode
Encodes data into base64. Memory allocation is done automatically.
Return value: newly allocated string.
sys_context: global system context
size: the size of the decoded data
base64_str: the string to decode
Decodes data from base64. Memory allocation is done automatically. Note that this function only works for strings, other data might not be handled correctly.
Return value: newly allocated pointer, NULL on error.
sys_context: global system context
str: the string to encode
Encodes a string into base64.
Return value: newly allocated string.
sys_context: global system context
str: the string to decode
Decodes a string from base64.
Return value: newly allocated string, NULL on error.
sys_context: global system context
buf: the data to encode
size: the size of data to encode
prefix: a prefix string
Encodes data into base64. Memory allocation is done
automatically. The encoded string will
be prefixed with prefix
.
Return value: newly allocated string.
sys_context: global system context
size: the size of the decoded data
base64_str: the string to decode
prefix: a prefix string
Decodes data from base64. Memory allocation is done
automatically. Note that this function only works for
strings, other data might not be handled correctly.
The encoded is expected
to start with prefix prefix
and then contain base64 data.
Return value: newly allocated pointer, NULL on error.
sys_context: global system context
str: the string to encode
prefix: a prefix string
Encodes a string into base64. The encoded string will
be prefixed with prefix
.
Return value: newly allocated string.
sys_context: global system context
str: the string to decode
prefix: a prefix string
Decodes a string from base64. The encoded is expected
to start with prefix prefix
and then contain base64 data.
Return value: newly allocated string, NULL on error.
sys_context: global system context
key: the key buffer
key_size
buf: the data to analyse
buf_size: the size of data to analyse
Calculates an SHA-1 sum of buffer, using key to seed calc.
Return value: newly allocated string, containing 20 chars checksum.
sys_context: global system context
key: a key (string)
str: the string to calculate the checksum for
Calculates an SHA-1 sum of a string, using key to seed calc.
Return value: newly allocated string, containing 20 chars checksum.
sys_context: global system context
key: the key buffer
key_size: the key buffer size
buf: the data to analyse
buf_size: the size of data to analyse
Calculates an SHA-1 sum of buffer, using key to seed calc.
Return value: a 32-bit unsigned integer
sys_context: global system context
key: a key (string)
str: the string to calculate the checksum for
Calculates an SHA-1 sum of a string, using key to seed calc.
Return value: a 32-bit unsigned integer
sys_context: global system context
mode: test mode (bitmask)
Registers all tests for the libglb module.
Return value: 1 if test is successfull, 0 on error.
sys_context: global system context
mode: test mode (bitmask)
Runs the glb
module test suite, testing most (if not all...)
functions.
Return value: 1 if test is successfull, 0 on error.