7 #ifndef _STRING_FUNCS_H
8 #define _STRING_FUNCS_H
10 #include <sys/types.h>
18 void strip_char (
char *buf,
char ch);
30 my_append(
char **target,
44 my_strncpy(
char *destination,
46 size_t destination_length);
54 my_snprintf(
const char *format, ...);
63 my_vsnprintf(
const char *format,
75 copy_file(
const char *source,
87 buffer_from_file(
const char *path,
88 unsigned char **pbuffer,
99 make_path(
char *path);
109 b64_encode(
const char *input,
long inlen,
char **output);
119 b64_decode(
const char *input,
char **output);
134 get_trusted_certs_path();
141 get_trusted_file_path(
char *filename);
147 get_user_credential_filenames(
char **certfile,
char **keyfile );
153 get_host_credential_filenames(
char **certfile,
char **keyfile );
162 sterilize_string(
char *
string);
169 setenv(
const char *var,
const char *value,
int override);
172 #ifndef HAVE_UNSETENV
177 unsetenv(
const char *var);
186 add_entry(
char **entries,
const char *entry);
189 free_array_list(
char ***listp);
192 join_array(
char **target,
char *array[],
const char *sep);