Correct next file in the compile list
diff --git a/src/Encrypt.c b/src/Encrypt.c
index f74aa85..7be414d 100644
--- a/src/Encrypt.c
+++ b/src/Encrypt.c
@@ -193,12 +193,12 @@
if (pRecipients == NULL) goto error;
#ifdef USE_ARRAY
if (!_COSE_array_replace(&pcose->m_message, pRecipients, INDEX_RECIPIENTS, CBOR_CONTEXT_PARAM_COMMA NULL)) {
- cn_cbor_free(pRecipients, context);
+ CN_CBOR_FREE(pRecipients, context);
goto error;
}
#else
if (!cn_cbor_mapput_int(pcose->m_message.m_cbor, COSE_Header_Recipients, pRecipients, CBOR_CONTEXT_PARAM_COMMA NULL)) {
- cn_cbor_free(pRecipients, context);
+ CN_CBOR_FREE(pRecipients, context);
goto error;
}
#endif
@@ -233,7 +233,9 @@
const cn_cbor * cn = NULL;
byte * pbKey = pbKeyIn;
+#ifdef USE_CBOR_CONTEXT
cn_cbor_context * context;
+#endif
byte * pbAuthData = NULL;
ssize_t cbAuthData;
cn_cbor * pAuthData = NULL;
@@ -384,7 +386,9 @@
cn_cbor * pAuthData = NULL;
cn_cbor * ptmp = NULL;
size_t cbitKey;
+#ifdef USE_CBOR_CONTEXT
cn_cbor_context * context = NULL;
+#endif
COSE_Encrypt * pcose = (COSE_Encrypt *) h;
cn_cbor_errback cbor_error;