mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-20 22:39:05 +03:00
OSCORE: Fix logging entries
This commit is contained in:
1 parent
2f4b8843cd
commit
71b84f550c
2 files changed
+5
-5
No files matched your search
+2
-2
@@ -1213,7 +1213,7 @@ coap_oscore_decrypt_pdu(coap_session_t *session,
|
||||
cose_encrypt0_set_nonce(cose, &nonce);
|
||||
}
|
||||
#ifdef OSCORE_EXTRA_DEBUG
|
||||
dump_cose(cose, "!req post nonce");
|
||||
dump_cose(cose, "!req post set nonce");
|
||||
#endif /* OSCORE_EXTRA_DEBUG */
|
||||
/*
|
||||
* 8.4 Step 3.
|
||||
@@ -1265,7 +1265,7 @@ coap_oscore_decrypt_pdu(coap_session_t *session,
|
||||
assert(aad.length < AAD_BUF_LEN);
|
||||
cose_encrypt0_set_aad(cose, &aad);
|
||||
#ifdef OSCORE_EXTRA_DEBUG
|
||||
dump_cose(cose, "!req pre nonce");
|
||||
dump_cose(cose, "!req post set aad");
|
||||
#endif /* OSCORE_EXTRA_DEBUG */
|
||||
}
|
||||
|
||||
|
||||
@@ -339,10 +339,10 @@ oscore_build_key(oscore_ctx_t *osc_ctx,
|
||||
|
||||
static void
|
||||
oscore_log_context(oscore_ctx_t *osc_ctx, const char *heading) {
|
||||
#if COAP_MAX_LOG_LEVEL < _COAP_LOG_OSCORE
|
||||
#if COAP_MAX_LOGGING_LEVEL < _COAP_LOG_OSCORE
|
||||
(void)osc_ctx;
|
||||
(void)heading;
|
||||
#else /* COAP_MAX_LOG_LEVEL >= _COAP_LOG_OSCORE */
|
||||
#else /* COAP_MAX_LOGGING_LEVEL >= _COAP_LOG_OSCORE */
|
||||
if (coap_get_log_level() >= COAP_LOG_OSCORE) {
|
||||
char buffer[30];
|
||||
oscore_recipient_ctx_t *next = osc_ctx->recipient_chain;
|
||||
@@ -380,7 +380,7 @@ oscore_log_context(oscore_ctx_t *osc_ctx, const char *heading) {
|
||||
next = next->next_recipient;
|
||||
}
|
||||
}
|
||||
#endif /* COAP_MAX_LOG_LEVEL >= _COAP_LOG_OSCORE */
|
||||
#endif /* COAP_MAX_LOGGING_LEVEL >= _COAP_LOG_OSCORE */
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in new issue
Block a user