diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-04-18 01:28:48 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-04-18 01:28:48 -0400 |
commit | 777b810db4675305854c373dcd57aedc40061e5d (patch) | |
tree | ed35c77e39416073fb5222aebdb5ef484c238dd3 /src/bin/rbw-agent/agent.rs | |
parent | 3babc8801c0d09b7868be9be7751f7cfdf32c8bb (diff) | |
download | rbw-777b810db4675305854c373dcd57aedc40061e5d.tar.gz rbw-777b810db4675305854c373dcd57aedc40061e5d.zip |
add encryption to the agent protocol
Diffstat (limited to 'src/bin/rbw-agent/agent.rs')
-rw-r--r-- | src/bin/rbw-agent/agent.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/rbw-agent/agent.rs b/src/bin/rbw-agent/agent.rs index 21600c3..e80e1c6 100644 --- a/src/bin/rbw-agent/agent.rs +++ b/src/bin/rbw-agent/agent.rs @@ -142,6 +142,10 @@ async fn handle_request( .await?; true } + rbw::protocol::Action::Encrypt { plaintext } => { + crate::actions::encrypt(sock, state.clone(), &plaintext).await?; + true + } rbw::protocol::Action::Quit => std::process::exit(0), }; |