From: Eugene Syromiatnikov Date: Mon, 13 Apr 2026 12:11:49 +0000 (+0200) Subject: include/openssl/x509_acert.h.in: add extern "C" linkage specification for C++ X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=204846034642a3136c01225a3f56987857a54fcd;p=thirdparty%2Fopenssl.git include/openssl/x509_acert.h.in: add extern "C" linkage specification for C++ Fixes: dcee34c8f921 "Add RFC 5755 attribute certificate support" Signed-off-by: Eugene Syromiatnikov Reviewed-by: Nikola Pajkovsky Reviewed-by: Norbert Pocs MergeDate: Wed Apr 15 12:36:41 2026 (Merged from https://github.com/openssl/openssl/pull/30796) --- diff --git a/include/openssl/x509_acert.h.in b/include/openssl/x509_acert.h.in index e136de04dcf..d00b95c7818 100644 --- a/include/openssl/x509_acert.h.in +++ b/include/openssl/x509_acert.h.in @@ -23,6 +23,10 @@ use OpenSSL::stackhash qw(generate_stack_macros); #include #include +#ifdef __cplusplus +extern "C" { +#endif + typedef struct X509_acert_st X509_ACERT; typedef struct X509_acert_info_st X509_ACERT_INFO; typedef struct ossl_object_digest_info_st OSSL_OBJECT_DIGEST_INFO; @@ -206,4 +210,8 @@ DECLARE_ASN1_FUNCTIONS(OSSL_AUTHORITY_ATTRIBUTE_ID_SYNTAX) -} /* clang-format on */ +#ifdef __cplusplus +} +#endif + #endif