Hi everyone,
I’ve been trying to integrate liboscore, but I’m having issues with the client. As the server I’m using the plugtest-server demo. Here’s my client code: https://github.com/sssemil/riot_app/blob/master/src/coap_oscore/client/main.c#L233
The issue is that the OSCORE option is created with length 0 (so it’s just 0x90), and hence results in an unauthorized error or a no security context found error in logs.
If you would like to run the code, clone the repo with recurse submodules, run ./setup_iface.sh
, and after that in src/coap_oscore/{plugtest-server, client}
run make all -j16; PORT=tap0 make term
and make all -j16; PORT=tap1 make term
.
Any idea on what I’m doing wrong? Thanks.
CC @chrysn