From 831147fcf4d0800a1f9543d7251321d72bd0b5a2 Mon Sep 17 00:00:00 2001 From: Brett Nicholas Date: Wed, 17 May 2023 15:32:26 -0600 Subject: [PATCH 1/2] added WOLFSSL_ASN_TEMPLATE description --- wolfSSL/src/chapter02.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wolfSSL/src/chapter02.md b/wolfSSL/src/chapter02.md index f465edfa..27610d76 100644 --- a/wolfSSL/src/chapter02.md +++ b/wolfSSL/src/chapter02.md @@ -453,6 +453,8 @@ Enables encrypt-then-mac support to perform mac after encryption with block ciph Required if using Chacha20/Poly1305 with TLS v1.2 for setting up Poly authentication. This is on by default with ChaCha20/Poly1305 if using `./configure`, but needs to be manually defined if building with `WOLFSSL_USER_SETTINGS`. +#### WOLFSSL_ASN_TEMPLATE +Enables newer version of ASN parsing code for most internal ASN operations. This is on by default if using `./configure`, but needs to be manually defined if building with `WOLFSSL_USER_SETTINGS`. ### Enabling Features Disabled by Default From bdf5bcbebed9c484d2299c83653c5a913f8344e6 Mon Sep 17 00:00:00 2001 From: Brett Nicholas Date: Wed, 17 May 2023 16:19:44 -0600 Subject: [PATCH 2/2] added missing asn template macros and refined sentence --- wolfSSL/src/chapter02.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wolfSSL/src/chapter02.md b/wolfSSL/src/chapter02.md index 27610d76..59cae6ee 100644 --- a/wolfSSL/src/chapter02.md +++ b/wolfSSL/src/chapter02.md @@ -454,7 +454,13 @@ Enables encrypt-then-mac support to perform mac after encryption with block ciph Required if using Chacha20/Poly1305 with TLS v1.2 for setting up Poly authentication. This is on by default with ChaCha20/Poly1305 if using `./configure`, but needs to be manually defined if building with `WOLFSSL_USER_SETTINGS`. #### WOLFSSL_ASN_TEMPLATE -Enables newer version of ASN parsing code for most internal ASN operations. This is on by default if using `./configure`, but needs to be manually defined if building with `WOLFSSL_USER_SETTINGS`. +Enables the new version of ASN parsing code that uses template-based ASN.1 processing. This parsing adheres to standard ASN.1 rules and uses a template structure to dictate encoding and decoding, allowing the parser code to generalize across templates. This is on by default if using `./configure`, but needs to be manually defined if building with `WOLFSSL_USER_SETTINGS`. + +#### WOLFSSL_DEBUG_ASN_TEMPLATE +Enables debugging output when using ASN.1 templates. Only relevant when used with `WOLFSSL_ASN_TEMPLATE`. + +#### WOLFSSL_ASN_TEMPLATE_TYPE_CHECK +Use ASN functions to better test compiler type issues for testing. Only relevant when used with `WOLFSSL_ASN_TEMPLATE` ### Enabling Features Disabled by Default