Skip to content

Commit

Permalink
style: Typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Jun 27, 2024
1 parent a1d21bd commit 6e804d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/coap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This application is a work in progress demo of running CoAP with OSCORE/EDHOC se

## Running

* Run on any board with networking, eg. `laze build -b particlex-xenon run`.
* Run on any board with networking, eg. `laze build -b particle-xenon run`.
* [Set up networking](../README.md).
* Run `pipx run coap-console coap://10.42.0.61 --credentials client.diag`,
which establishes a secure CoAP connection using EDHOC and OSCORE,
Expand Down
2 changes: 1 addition & 1 deletion examples/coap/src/oluru.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub trait PriorityLevel {
///
/// The level should not change due to global effects (or internal mutability, if shared access
/// is later implemented). If it does, the ordering of an [`OrderedPool`] containing it may become
/// arbitrary, even after the elemnt whose level changed has been removed.
/// arbitrary, even after the element whose level changed has been removed.
fn level(&self) -> usize;
}

Expand Down
6 changes: 3 additions & 3 deletions examples/coap/src/seccontext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl Into<lakers::ConnId> for COwn {
/// [*path], Tperm = u32).
///
/// FIXME: At the moment, this always represents an authorization that allows everything, and only
/// has runtime information about whether or not stdout is allowd. On the long run, this will
/// has runtime information about whether or not stdout is allowed. On the long run, this will
/// likely be a CBOR item with pre-verified structure.
#[derive(Debug)]
struct AifStaticRest {
Expand Down Expand Up @@ -196,13 +196,13 @@ impl core::fmt::Display for SecContextState {
const LEVEL_ADMIN: usize = 0;
const LEVEL_AUTHENTICATED: usize = 1;
const LEVEL_ONGOING: usize = 2;
const LEVEL_EMTPY: usize = 3;
const LEVEL_EMPTY: usize = 3;
const LEVEL_COUNT: usize = 4;

impl crate::oluru::PriorityLevel for SecContextState {
fn level(&self) -> usize {
match &self.protocol_stage {
SecContextStage::Empty => LEVEL_EMTPY,
SecContextStage::Empty => LEVEL_EMPTY,
SecContextStage::EdhocResponderProcessedM1 { .. } => {
// If this is ever tested, means we're outbound message limited, so let's try to
// get one through rather than pointlessly sending errors
Expand Down

0 comments on commit 6e804d3

Please sign in to comment.