Added more connect tests

This commit is contained in:
James Booth
2015-05-24 20:31:18 +01:00
parent 79ecff1c52
commit e295a474dc
8 changed files with 107 additions and 9 deletions

View File

@@ -57,6 +57,8 @@ struct curl_data_t
size_t size;
};
static unsigned long unique_id = 0;
static size_t _data_callback(void *ptr, size_t size, size_t nmemb, void *data);
// taken from glib 2.30.3
@@ -469,7 +471,6 @@ xdg_get_data_home(void)
char *
create_unique_id(char *prefix)
{
static unsigned long unique_id;
char *result = NULL;
GString *result_str = g_string_new("");
@@ -485,6 +486,12 @@ create_unique_id(char *prefix)
return result;
}
void
reset_unique_id(void)
{
unique_id = 0;
}
char *
p_sha1_hash(char *str)
{