From c16fa1c1e05f2586e2deca8faf32e519a9b50670 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 2 May 2020 19:35:39 -0400 Subject: expand the protocol to allow decrypting with organization keys not implemented yet, just changing the interface --- src/protocol.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/protocol.rs') diff --git a/src/protocol.rs b/src/protocol.rs index 2ef99cd..0ab594c 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -1,4 +1,4 @@ -pub const VERSION: u32 = 1; +pub const VERSION: u32 = 2; #[derive(serde::Serialize, serde::Deserialize, Debug)] pub struct Request { @@ -13,8 +13,14 @@ pub enum Action { Unlock, Lock, Sync, - Decrypt { cipherstring: String }, - Encrypt { plaintext: String }, + Decrypt { + cipherstring: String, + org_id: Option, + }, + Encrypt { + plaintext: String, + org_id: Option, + }, Quit, Version, } -- cgit v1.2.3-54-g00ecf