From 281f12107a9b5e1afcf7331198ddfaab96a5c0ac Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Tue, 11 Apr 2023 11:06:38 +0100 Subject: [PATCH] coap_internal.h: Support builds with WebSockets and without OSCORE --- include/coap3/coap_internal.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/coap3/coap_internal.h b/include/coap3/coap_internal.h index 69c94ef4..581d0ef3 100644 --- a/include/coap3/coap_internal.h +++ b/include/coap3/coap_internal.h @@ -77,7 +77,7 @@ * Include all the header files that are for internal use only. */ -#if HAVE_OSCORE +#if defined(HAVE_OSCORE) || defined(COAP_WS_SUPPORT) /* Specific OSCORE general .h files */ typedef struct oscore_ctx_t oscore_ctx_t; #include "oscore/oscore.h" @@ -85,16 +85,16 @@ typedef struct oscore_ctx_t oscore_ctx_t; #include "oscore/oscore_cose.h" #include "oscore/oscore_context.h" #include "oscore/oscore_crypto.h" -#endif /* HAVE_OSCORE */ +#endif /* HAVE_OSCORE || COAP_WS_SUPPORT */ /* Specifically defined internal .h files */ #include "coap_asn1_internal.h" #include "coap_async_internal.h" #include "coap_block_internal.h" #include "coap_cache_internal.h" -#if HAVE_OSCORE +#if defined(HAVE_OSCORE) || defined(COAP_WS_SUPPORT) #include "coap_crypto_internal.h" -#endif /* HAVE_OSCORE */ +#endif /* HAVE_OSCORE || COAP_WS_SUPPORT */ #include "coap_dtls_internal.h" #include "coap_hashkey_internal.h" #include "coap_io_internal.h"