Turn off counter signatures for now
diff --git a/src/Encrypt.c b/src/Encrypt.c
index 0dce2f2..408bdcc 100644
--- a/src/Encrypt.c
+++ b/src/Encrypt.c
@@ -554,10 +554,12 @@
const cn_cbor * cbProtected = _COSE_encode_protected(&pcose->m_message, perr);
if (cbProtected == NULL) goto errorReturn;
+#ifdef USE_COUNTER_SIGNATURES
// Setup Counter Signatures
if (!_COSE_CountSign_create(&pcose->m_message, NULL, CBOR_CONTEXT_PARAM_COMMA perr)) {
goto errorReturn;
}
+#endif
// Build authenticated data
@@ -858,6 +860,7 @@
return (HCOSE_RECIPIENT)p;
}
+#ifdef USE_COUNTER_SIGNATURES
bool COSE_Enveloped_AddCounterSigner(HCOSE_ENCRYPT hEnv, HCOSE_COUNTERSIGN hSign, cose_errback * perr)
{
CHECK_CONDITION(IsValidEncryptHandle(hEnv), COSE_ERR_INVALID_HANDLE);
@@ -875,3 +878,4 @@
errorReturn:
return NULL;
}
+#endif
diff --git a/src/configure.h b/src/configure.h
index d701386..183ca31 100644
--- a/src/configure.h
+++ b/src/configure.h
@@ -92,4 +92,4 @@
#define USE_OPEN_SSL 1
#define USE_BCRYPT 0
-#define USE_COUNTER_SIGNATURES
+//#define USE_COUNTER_SIGNATURES