#include <gnutls_int.h>
#include <gnutls_errors.h>
#include <gnutls_num.h>
#include <gnutls_str.h>
Go to the source code of this file.
Defines | |
#define | MIN_CHUNK 256 |
Functions | |
void | MHD_gtls_str_cat (char *dest, size_t dest_tot_size, const char *src) |
void | MHD_gtls_str_cpy (char *dest, size_t dest_tot_size, const char *src) |
void | MHD_gtls_string_init (MHD_gtls_string *str, MHD_gnutls_alloc_function alloc_func, MHD_gnutls_realloc_function realloc_func, MHD_gnutls_free_function free_func) |
void | MHD_gtls_string_clear (MHD_gtls_string *str) |
int | MHD_gtls_string_append_data (MHD_gtls_string *dest, const void *data, size_t data_size) |
char * | MHD_gtls_bin2hex (const void *_old, size_t oldlen, char *buffer, size_t buffer_size) |
#define MIN_CHUNK 256 |
Definition at line 102 of file gnutls_str.c.
Referenced by MHD_gtls_string_append_data().
char* MHD_gtls_bin2hex | ( | const void * | _old, | |
size_t | oldlen, | |||
char * | buffer, | |||
size_t | buffer_size | |||
) |
Definition at line 143 of file gnutls_str.c.
References old.
Referenced by generate_normal_master(), MHD__gnutls_send_server_hello(), and MHD__gnutls_set_keys().
void MHD_gtls_str_cat | ( | char * | dest, | |
size_t | dest_tot_size, | |||
const char * | src | |||
) |
Definition at line 37 of file gnutls_str.c.
Referenced by MHD__gnutls_fbase64_decode(), MHD__gnutls_x509_crt_get_extension(), MHD__gnutls_x509_decode_octet_string(), MHD__gnutls_x509_get_pk_algorithm(), and MHD_gtls_io_write_buffered().
void MHD_gtls_str_cpy | ( | char * | dest, | |
size_t | dest_tot_size, | |||
const char * | src | |||
) |
Definition at line 57 of file gnutls_str.c.
Referenced by MHD__gnutls_fbase64_decode(), MHD__gnutls_x509_crt_get_extension(), MHD__gnutls_x509_decode_octet_string(), and MHD__gnutls_x509_get_pk_algorithm().
int MHD_gtls_string_append_data | ( | MHD_gtls_string * | dest, | |
const void * | data, | |||
size_t | data_size | |||
) |
Definition at line 106 of file gnutls_str.c.
References MHD_gtls_string::data, GNUTLS_E_MEMORY_ERROR, MHD_gtls_string::length, MHD_gtls_string::max_length, MHD_gnutls_assert, MIN_CHUNK, and MHD_gtls_string::realloc_func.
void MHD_gtls_string_clear | ( | MHD_gtls_string * | str | ) |
Definition at line 91 of file gnutls_str.c.
References MHD_gtls_string::data, MHD_gtls_string::free_func, MHD_gtls_string::length, and MHD_gtls_string::max_length.
void MHD_gtls_string_init | ( | MHD_gtls_string * | str, | |
MHD_gnutls_alloc_function | alloc_func, | |||
MHD_gnutls_realloc_function | realloc_func, | |||
MHD_gnutls_free_function | free_func | |||
) |
Definition at line 76 of file gnutls_str.c.
References MHD_gtls_string::alloc_func, MHD_gtls_string::data, MHD_gtls_string::free_func, MHD_gtls_string::length, MHD_gtls_string::max_length, and MHD_gtls_string::realloc_func.