From: sftcd Date: Mon, 13 Apr 2026 00:43:04 +0000 (+0100) Subject: include C++ extern in ech.h X-Git-Tag: openssl-4.0.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d6cc849d3ca4f4b67c65c2cc2f50d3a4952930b;p=thirdparty%2Fopenssl.git include C++ extern in ech.h Reviewed-by: Eugene Syromiatnikov Reviewed-by: Dmitry Belyavskiy Reviewed-by: Norbert Pocs Reviewed-by: Tim Hudson Reviewed-by: Nikola Pajkovsky MergeDate: Mon Apr 13 10:01:54 2026 (Merged from https://github.com/openssl/openssl/pull/30790) --- diff --git a/include/openssl/ech.h b/include/openssl/ech.h index 3e2c0ad2bc7..10417be60f2 100644 --- a/include/openssl/ech.h +++ b/include/openssl/ech.h @@ -15,6 +15,10 @@ #define OPENSSL_ECH_H #pragma once +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -122,5 +126,9 @@ int SSL_CTX_ech_set1_outer_alpn_protos(SSL_CTX *s, const unsigned char *protos, void SSL_CTX_ech_set_callback(SSL_CTX *ctx, SSL_ech_cb_func f); int SSL_set1_ech_config_list(SSL *ssl, const uint8_t *ecl, size_t ecl_len); +#ifdef __cplusplus +} +#endif + #endif #endif