Commit 2048460346 for openssl.org
commit 204846034642a3136c01225a3f56987857a54fcd
Author: Eugene Syromiatnikov <esyr@openssl.org>
Date: Mon Apr 13 14:11:49 2026 +0200
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 <esyr@openssl.org>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
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 e136de04dc..d00b95c781 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 <openssl/x509.h>
#include <openssl/pem.h>
+#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