Skip to content

20240614-WOLFSSL_MSG-code-points#7647

Merged
SparkiDev merged 2 commits intowolfSSL:masterfrom
douzzer:20240614-WOLFSSL_MSG-code-points
Jun 18, 2024
Merged

20240614-WOLFSSL_MSG-code-points#7647
SparkiDev merged 2 commits intowolfSSL:masterfrom
douzzer:20240614-WOLFSSL_MSG-code-points

Conversation

@douzzer
Copy link
Copy Markdown
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 requested review from dgarske and julek-wolfssl June 15, 2024 06:03
@douzzer douzzer self-assigned this Jun 15, 2024
@douzzer
Copy link
Copy Markdown
Contributor Author

douzzer commented Jun 15, 2024

retest this please

@douzzer douzzer assigned wolfSSL-Bot and unassigned douzzer Jun 17, 2024
Comment thread wolfcrypt/src/logging.c Outdated
Comment thread wolfcrypt/src/logging.c Outdated
Comment thread wolfcrypt/src/logging.c
@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
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