Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20240614-WOLFSSL_MSG-code-points #7647

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

douzzer
Copy link
Contributor

@douzzer douzzer commented Jun 15, 2024

add --debug-code-points and WOLFSSL_DEBUG_CODEPOINTS,

add file_name and line_number args to wolfssl_log(),

and inside WOLFSSL_DEBUG_CODEPOINTS gates,

add WOLFSSL_MSG_EX2(), WOLFSSL_MSG2(), WOLFSSL_ENTER2(), and WOLFSSL_LEAVE2(), each with file and line args,

and add wrapper macros for WOLFSSL_MSG, WOLFSSL_MSG_EX, WOLFSSL_ENTER, and WOLFSSL_LEAVE, that pass in file and line.

example output, from unit.test -test_wolfSSL_SESSION:

starting unit tests...
 Begin API Tests
[src/ssl.c L 5594] wolfSSL Entering wolfSSL_Init
[wolfcrypt/src/wc_port.c L 146] wolfSSL Entering wolfCrypt_Init
[wolfcrypt/src/random.c L 2249] RNG_HEALTH_TEST_CHECK_SIZE = 128
[wolfcrypt/src/random.c L 2251] sizeof(seedB_data)         = 128
[wolfcrypt/src/random.c L 3995] opened /dev/urandom.
[wolfcrypt/src/random.c L 4009] rnd read...
   643: test_wolfSSL_SESSION                                :[src/tls.c L 15280] wolfSSL Entering TLSv1_2_client_method_ex
[src/ssl.c L 1031] wolfSSL Entering wolfSSL_CTX_new_ex
[./src/ssl_certman.c L 91] wolfSSL Entering wolfSSL_CertManagerNew
[./src/ssl_certman.c L 93] heap param is null
[./src/ssl_certman.c L 99] DYNAMIC_TYPE_CERT_MANAGER Allocating = 368 bytes
[...]

add file_name and line_number args to wolfssl_log(),

and inside WOLFSSL_DEBUG_CODEPOINTS gates,

add WOLFSSL_MSG_EX2(), WOLFSSL_MSG2(), WOLFSSL_ENTER2(), and WOLFSSL_LEAVE2(), each with file and line args,

and add wrapper macros for WOLFSSL_MSG, WOLFSSL_MSG_EX, WOLFSSL_ENTER, and WOLFSSL_LEAVE, that pass in file and line.
@douzzer douzzer self-assigned this Jun 15, 2024
@douzzer
Copy link
Contributor Author

douzzer commented Jun 15, 2024

retest this please

@douzzer douzzer assigned wolfSSL-Bot and unassigned douzzer Jun 17, 2024
wolfcrypt/src/logging.c Outdated Show resolved Hide resolved
wolfcrypt/src/logging.c Outdated Show resolved Hide resolved
wolfcrypt/src/logging.c Show resolved Hide resolved
@douzzer douzzer requested a review from SparkiDev June 18, 2024 04:37
@douzzer douzzer removed their assignment Jun 18, 2024
@SparkiDev SparkiDev merged commit 1eea372 into wolfSSL:master Jun 18, 2024
117 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants