From 946720aac5995c8905dbdb70c3afca6cf5d47677 Mon Sep 17 00:00:00 2001 From: Jan Bruckner Date: Mon, 9 Oct 2023 16:26:35 +0200 Subject: [PATCH] Fix C++ build issue when MBEDTLS_ASN1_PARSE_C is not enabled Signed-off-by: Jan Bruckner --- ChangeLog.d/fix-cpp-compilation-error.txt | 3 +++ include/mbedtls/asn1.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 ChangeLog.d/fix-cpp-compilation-error.txt diff --git a/ChangeLog.d/fix-cpp-compilation-error.txt b/ChangeLog.d/fix-cpp-compilation-error.txt new file mode 100644 index 0000000000..32d86dceda --- /dev/null +++ b/ChangeLog.d/fix-cpp-compilation-error.txt @@ -0,0 +1,3 @@ +Bugfix + * Fix compilation error in C++ programs when MBEDTLS_ASN1_PARSE_C is + disabled. diff --git a/include/mbedtls/asn1.h b/include/mbedtls/asn1.h index c7aae0ff87..a044543af6 100644 --- a/include/mbedtls/asn1.h +++ b/include/mbedtls/asn1.h @@ -644,10 +644,10 @@ void mbedtls_asn1_free_named_data_list_shallow(mbedtls_asn1_named_data *name); /** \} name Functions to parse ASN.1 data structures */ /** \} addtogroup asn1_module */ +#endif /* MBEDTLS_ASN1_PARSE_C */ + #ifdef __cplusplus } #endif -#endif /* MBEDTLS_ASN1_PARSE_C */ - #endif /* asn1.h */