Browse Source

update dependencies

master
Adrian Malacoda 2 years ago
parent
commit
21a081b826
3 changed files with 418 additions and 330 deletions
  1. 734
      Cargo.lock
  2. 7
      Cargo.toml
  3. 7
      src/model/key.rs

734
Cargo.lock
File diff suppressed because it is too large
View File

7
Cargo.toml

@ -20,12 +20,13 @@ handlebars = "0.32.0"
#jwt = "0.4.0"
jwt = { git = "https://github.com/peddermaster2/rust-jwt" }
rust-crypto = "0.2.36"
toml = "0.4.5"
derive_more = "0.8.0"
toml = "0.4.6"
derive_more = "0.10.0"
uuid = { version = "0.6.1", features = ["v4"] }
time = "0.1"
frank_jwt = "3.0.0"
openssl = "^0.9"
#openssl = "^0.9"
openssl = "0.10.7"
derive-error = "0.0.4"
base64 = "~0.9.0"
ldap = "0.2.0"

7
src/model/key.rs

@ -1,6 +1,7 @@
use std::path::{Path, PathBuf};
use openssl::rsa::Rsa;
use openssl::pkey::Private;
use openssl::error::ErrorStack;
use openssl::bn::BigNumRef;
@ -20,7 +21,7 @@ pub enum KeyError {
pub struct Key {
pub keyfile: PathBuf,
key: Rsa
key: Rsa<Private>
}
impl Key {
@ -58,11 +59,11 @@ impl Key {
}
pub fn e(&self) -> Option<String> {
self.key.e().map(base64_bignum)
Some(base64_bignum(self.key.e()))
}
pub fn n(&self) -> Option<String> {
self.key.n().map(base64_bignum)
Some(base64_bignum(self.key.n()))
}
}

Loading…
Cancel
Save