Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions source/perflib/perfhelper.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,3 @@ char *perflib_mk_file_path(const char *dir, const char *file)

return full_file;
}

/*
* Glue an array of strings together and return it as an allocated string.
* Optionally return the whole length of this string in |out_len|
*/
char *perflib_glue_strings(const char *list[], size_t *out_len)
{
size_t len = 0;
char *p, *ret;
int i;

for (i = 0; list[i] != NULL; i++)
len += strlen(list[i]);

if (out_len != NULL)
*out_len = len;

ret = p = OPENSSL_malloc(len + 1);
if (p == NULL)
return NULL;

for (i = 0; list[i] != NULL; i++)
p += strlen(strcpy(p, list[i]));

return ret;
}
1 change: 0 additions & 1 deletion source/perflib/perflib.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ int perflib_wait_for_thread(thread_t thread);
int perflib_run_multi_thread_test(void (*f)(size_t), size_t threadcount,
OSSL_TIME *duration);
char *perflib_mk_file_path(const char *dir, const char *file);
char *perflib_glue_strings(const char *list[], size_t *out_len);

int perflib_create_ssl_ctx_pair(const SSL_METHOD *sm, const SSL_METHOD *cm,
int min_proto_version, int max_proto_version,
Expand Down