Skip to content

Commit

Permalink
fixup! refactor(coap): adjust to Lakers' new features
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Nov 28, 2024
1 parent 8917935 commit c16029d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib/coapcore/src/seccontext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -606,10 +606,8 @@ impl<'a, H: coap_handler::Handler, Crypto: lakers::Crypto> coap_handler::Handler
use hexlit::hex;
const CRED_I: &[u8] = &hex!("A2027734322D35302D33312D46462D45462D33372D33322D333908A101A5010202412B2001215820AC75E9ECE3E50BFC8ED60399889522405C47BF16DF96660A41298CB4307F7EB62258206E5DE611388A4B8A8211334AC7D37ECB52A387D257E6DB3C2A93DF21FF3AFFC8");

cred_i = lakers::Credential::parse_ccs(
CRED_I.try_into().expect("Static credential is too large"),
)
.expect("Static credential is not processable");
cred_i = lakers::Credential::parse_ccs(CRED_I)
.expect("Static credential is not processable");

// FIXME: learn from CRED_I
authorization = AifStaticRest {
Expand Down

0 comments on commit c16029d

Please sign in to comment.