From ffb6c86663f8d1048b8bac4023c0e41d3ec5891d Mon Sep 17 00:00:00 2001 From: Pauli Date: Fri, 12 Jun 2020 08:48:06 +1000 Subject: [PATCH] Guard new header mac.h against C++isms. [extended tests] Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/12121) --- include/openssl/mac.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/openssl/mac.h b/include/openssl/mac.h index 4fb808525f..ecfb2eca27 100644 --- a/include/openssl/mac.h +++ b/include/openssl/mac.h @@ -17,6 +17,10 @@ # include # include +# ifdef __cplusplus +extern "C" { +# endif + EVP_MAC *EVP_MAC_fetch(OPENSSL_CTX *libctx, const char *algorithm, const char *properties); int EVP_MAC_up_ref(EVP_MAC *mac); @@ -49,4 +53,7 @@ void EVP_MAC_names_do_all(const EVP_MAC *mac, void (*fn)(const char *name, void *data), void *data); +# ifdef __cplusplus +} +# endif #endif /* OPENSSL_EVP_MAC_H */ -- 2.25.1