mirror of
https://github.com/espressif/mbedtls.git
synced 2026-10-24 17:43:46 +00:00
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:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user