From 398c12afd36b72558f9fbfdda394cb7f90e31f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mali=C5=A1a=20Vu=C4=8Dini=C4=87?= Date: Fri, 7 Jul 2023 18:32:51 +0200 Subject: [PATCH] hotfix! EAD item None should return None --- ead/edhoc-ead-none/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ead/edhoc-ead-none/src/lib.rs b/ead/edhoc-ead-none/src/lib.rs index 3678b819..fd8538e9 100644 --- a/ead/edhoc-ead-none/src/lib.rs +++ b/ead/edhoc-ead-none/src/lib.rs @@ -4,7 +4,7 @@ use edhoc_consts::*; // initiator side pub fn i_prepare_ead_1() -> Option { - Some(EADItem::new()) + None } pub fn i_process_ead_2(ead_2: EADItem) -> Result<(), ()> { @@ -12,7 +12,7 @@ pub fn i_process_ead_2(ead_2: EADItem) -> Result<(), ()> { } pub fn i_prepare_ead_3() -> Option { - Some(EADItem::new()) + None } // responder side @@ -21,7 +21,7 @@ pub fn r_process_ead_1(ead_1: EADItem) -> Result<(), ()> { } pub fn r_prepare_ead_2() -> Option { - Some(EADItem::new()) + None } pub fn r_process_ead_3(ead_3: EADItem) -> Result<(), ()> {