diff --git a/src/lib/coapcore/src/seccontext.rs b/src/lib/coapcore/src/seccontext.rs index 313f05d0f..61bf65b12 100644 --- a/src/lib/coapcore/src/seccontext.rs +++ b/src/lib/coapcore/src/seccontext.rs @@ -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 {