New test function inject_client_content_on_the_wire()

Not used for real stuff so far, just getting the tooling in place.

Signed-off-by: Manuel Pégourié-Gonnard <[email protected]>
This commit is contained in:
Manuel Pégourié-Gonnard
2025-03-14 09:22:09 +01:00
parent c4dd970386
commit 6637ef798f
4 changed files with 117 additions and 0 deletions
+13
View File
@@ -28,9 +28,22 @@ void mbedtls_test_ssl_log_analyzer(void *ctx, int level,
{
mbedtls_test_ssl_log_pattern *p = (mbedtls_test_ssl_log_pattern *) ctx;
/* Change 0 to 1 for debugging of test cases that use this function. */
#if 0
const char *q, *basename;
/* Extract basename from file */
for (q = basename = file; *q != '\0'; q++) {
if (*q == '/' || *q == '\\') {
basename = q + 1;
}
}
printf("%s:%04d: |%d| %s",
basename, line, level, str);
#else
(void) level;
(void) line;
(void) file;
#endif
if (NULL != p &&
NULL != p->pattern &&