OpenVPN
|
Go to the source code of this file.
Macros | |
#define | OPENVPN_BASE64_LENGTH(binary_length) ((((8 * binary_length) / 6) + 3) & ~3) |
Compute resulting base64 length. More... | |
#define | OPENVPN_BASE64_DECODED_LENGTH(base64_length) ((base64_length / 4) * 3) |
Compute the maximal number of bytes encoded in a base64 string. More... | |
Functions | |
int | openvpn_base64_encode (const void *data, int size, char **str) |
int | openvpn_base64_decode (const char *str, void *data, int size) |
#define OPENVPN_BASE64_DECODED_LENGTH | ( | base64_length | ) | ((base64_length / 4) * 3) |
#define OPENVPN_BASE64_LENGTH | ( | binary_length | ) | ((((8 * binary_length) / 6) + 3) & ~3) |
int openvpn_base64_decode | ( | const char * | str, |
void * | data, | ||
int | size | ||
) |
Definition at line 158 of file base64.c.
References base64_chars, DECODE_ERROR, and token_decode().
Referenced by generate_auth_token(), get_sig_from_man(), ntlm_phase_3(), parse_auth_challenge(), set_auth_token_user(), test_pkcs11_ids(), tls_crypt_v2_write_client_key_file(), and verify_auth_token().
int openvpn_base64_encode | ( | const void * | data, |
int | size, | ||
char ** | str | ||
) |
Definition at line 52 of file base64.c.
References base64_chars.
Referenced by generate_auth_token(), get_sig_from_man(), get_user_pass_cr(), and make_base64_string2().