From 7145c949f040f394477e3d5d7954e8cfa654b14e Mon Sep 17 00:00:00 2001 From: HelloOO7 Date: Sat, 22 Aug 2026 00:13:05 +0200 Subject: [PATCH] Add missing __cplusplus guard to oid.h Signed-off-by: HelloOO7 --- include/mbedtls/oid.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/mbedtls/oid.h b/include/mbedtls/oid.h index d769ff2180..dc70d32674 100644 --- a/include/mbedtls/oid.h +++ b/include/mbedtls/oid.h @@ -265,6 +265,10 @@ * ecdsa-with-SHA2(3) 4 } */ #define MBEDTLS_OID_ECDSA_SHA512 MBEDTLS_OID_ANSI_X9_62_SIG_SHA2 "\x04" +#ifdef __cplusplus +extern "C" { +#endif + #if defined(MBEDTLS_X509_USE_C) /** * \brief Translate an ASN.1 OID into its numeric representation @@ -301,4 +305,8 @@ int mbedtls_oid_get_numeric_string(char *buf, size_t size, const mbedtls_asn1_bu int mbedtls_oid_from_numeric_string(mbedtls_asn1_buf *oid, const char *oid_str, size_t size); #endif /* MBEDTLS_X509_CREATE_C */ +#ifdef __cplusplus +} +#endif + #endif /* oid.h */