Skip to content

Commit cd0b997

Browse files
KloolKFlavio Ceolin
authored andcommitted
Fix C++ build issue when MBEDTLS_ASN1_PARSE_C is not enabled
Signed-off-by: Jan Bruckner <[email protected]> (cherry picked from commit 946720a) Signed-off-by: Markus Swarowsky <[email protected]>
1 parent 7d7a2d6 commit cd0b997

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Bugfix
2+
* Fix compilation error in C++ programs when MBEDTLS_ASN1_PARSE_C is
3+
disabled.

include/mbedtls/asn1.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,10 +632,10 @@ void mbedtls_asn1_free_named_data_list_shallow(mbedtls_asn1_named_data *name);
632632
/** \} name Functions to parse ASN.1 data structures */
633633
/** \} addtogroup asn1_module */
634634

635+
#endif /* MBEDTLS_ASN1_PARSE_C */
636+
635637
#ifdef __cplusplus
636638
}
637639
#endif
638640

639-
#endif /* MBEDTLS_ASN1_PARSE_C */
640-
641641
#endif /* asn1.h */

0 commit comments

Comments
 (0)