Factorise duplicated code.
[oweals/openssl.git] / test / testutil.h
index 8373bb8a0940206d0d6a67e293b8124ac9010854..2356786aa9b3baac9f19dc6d76432d7a7643dcd7 100644 (file)
@@ -440,4 +440,10 @@ int test_readstanza(STANZA *s);
  */
 void test_clearstanza(STANZA *s);
 
+/*
+ * 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 *glue_strings(const char *list[], size_t *out_len);
+
 #endif                          /* HEADER_TESTUTIL_H */