Update base64 dependency to 0.10

0.10 has zero unsafe
This commit is contained in:
Joseph Birr-Pixton 2018-10-31 20:22:06 +00:00
parent 56787f74a1
commit 3695715b57
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ categories = ["network-programming", "cryptography"]
[dependencies]
untrusted = "0.6.2"
base64 = "0.9"
base64 = "0.10"
log = { version = "0.4.0", optional = true }
ring = { version = "0.13.2", features = ["rsa_signing"] }
webpki = "0.18.1"

View File

@ -32,7 +32,7 @@ fn extract<A>(rd: &mut io::BufRead,
if line.starts_with(end_mark) {
take_base64 = false;
let der = base64::decode_config(&b64buf, base64::MIME)
let der = base64::decode(&b64buf)
.map_err(|_| ())?;
ders.push(f(der));
b64buf = String::new();