diff --git a/man/coap_oscore.txt.in b/man/coap_oscore.txt.in index 42108e0bea..3523f6547d 100644 --- a/man/coap_oscore.txt.in +++ b/man/coap_oscore.txt.in @@ -269,7 +269,7 @@ setup_client_session (struct in_addr ip_address) { /* Try creating it */ oscore_seq_num_fp = fopen(oscore_seq_save_file, "w+"); if (oscore_seq_num_fp == NULL) { - coap_log(LOG_ERR, "OSCORE save restart info file error: %s\n", + coap_log(COAP_LOG_ERR, "OSCORE save restart info file error: %s\n", oscore_seq_save_file); return NULL; } @@ -349,7 +349,7 @@ setup_context (void) { /* Try creating it */ oscore_seq_num_fp = fopen(oscore_seq_save_file, "w+"); if (oscore_seq_num_fp == NULL) { - coap_log(LOG_ERR, "OSCORE save restart info file error: %s\n", + coap_log(COAP_LOG_ERR, "OSCORE save restart info file error: %s\n", oscore_seq_save_file); return 0; } diff --git a/src/coap_oscore.c b/src/coap_oscore.c index bd1b8473c9..07a47e98d5 100644 --- a/src/coap_oscore.c +++ b/src/coap_oscore.c @@ -311,7 +311,7 @@ coap_oscore_new_pdu_encrypted(coap_session_t *session, doing_observe = 1; coap_log_debug("PDU to encrypt\n"); - coap_show_pdu(LOG_DEBUG, pdu); + coap_show_pdu(COAP_LOG_DEBUG, pdu); osc_pdu = coap_pdu_init(pdu->type == COAP_MESSAGE_NON && session->b_2_step != COAP_OSCORE_B_2_NONE ? COAP_MESSAGE_CON : pdu->type, @@ -1548,7 +1548,7 @@ coap_oscore_decrypt_pdu(coap_session_t *session, if (sent_pdu) { coap_send_ack(session, pdu); coap_log_debug("PDU requesting re-transmit\n"); - coap_show_pdu(LOG_DEBUG, decrypt_pdu); + coap_show_pdu(COAP_LOG_DEBUG, decrypt_pdu); coap_log_oscore("RFC9175 retransmit pdu\n"); if (coap_retransmit_oscore_pdu(session, sent_pdu, opt) == COAP_INVALID_MID) diff --git a/src/net.c b/src/net.c index 5ae1ac7dba..46224a51b5 100644 --- a/src/net.c +++ b/src/net.c @@ -3357,7 +3357,7 @@ coap_dispatch(coap_context_t *context, coap_session_t *session, pdu = dec_pdu; } coap_log_debug("Decrypted PDU\n"); - coap_show_pdu(LOG_DEBUG, pdu); + coap_show_pdu(COAP_LOG_DEBUG, pdu); } } #endif /* HAVE_OSCORE */ diff --git a/src/oscore/oscore.c b/src/oscore/oscore.c index 0a2a36fdf8..d95271e122 100644 --- a/src/oscore/oscore.c +++ b/src/oscore/oscore.c @@ -402,7 +402,7 @@ oscore_validate_sender_seq(oscore_recipient_ctx_t *ctx, cose_encrypt0_t *cose) { if (shift > ctx->osc_ctx->replay_window_size || shift > 63) { coap_log( - LOG_WARNING, + COAP_LOG_WARN, "OSCORE: Replay protection, SEQ outside of replay window (%lu %lu)\n", ctx->last_seq, incoming_seq);