diff options
| author | bnewbold <bnewbold@robocracy.org> | 2016-05-30 01:49:18 -0400 | 
|---|---|---|
| committer | bnewbold <bnewbold@robocracy.org> | 2016-05-30 01:49:24 -0400 | 
| commit | 3a51fef71337f9e6683a3fe972e69cee92e1c097 (patch) | |
| tree | 347a800b1519be2b79157e13708f5bef1d2c917f /src/main.rs | |
| parent | 37fb8945fad0a034d1565bc4f79f9ab524587fc0 (diff) | |
| download | ucp-3a51fef71337f9e6683a3fe972e69cee92e1c097.tar.gz ucp-3a51fef71337f9e6683a3fe972e69cee92e1c097.zip  | |
BROKEN: initial implementation of crypto
I think it's going to be necessary to implement buffered reading after all.
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index b5a9123..a1002c2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,10 +4,13 @@  extern crate getopts;  extern crate utp; +extern crate sodiumoxide; +extern crate rustc_serialize;  mod client;  mod server;  mod common; +mod crypto;  use std::str;  use std::env; @@ -23,6 +26,7 @@ fn usage(opts: Options) {  fn main() {      let args: Vec<String> = env::args().collect(); +    sodiumoxide::init();      // First check for "hidden" server and client modes      if args.len() > 1 && args[1] == "server" {  | 
