OID as_raw #12

Merged
drahnr merged 3 commits from master into master 2019-12-14 09:59:47 -08:00
Showing only changes of commit ab7616a86c - Show all commits

View File

@@ -339,11 +339,11 @@ impl Error for ASN1DecodeErr {
} }
} }
fn cause(&self) -> Option<&Error> { fn cause(&self) -> Option<&dyn Error> {
None None
} }
fn source(&self) -> Option<&(Error + 'static)> { fn source(&self) -> Option<&(dyn Error + 'static)> {
None None
} }
} }
@@ -374,11 +374,11 @@ impl Error for ASN1EncodeErr {
} }
} }
fn cause(&self) -> Option<&Error> { fn cause(&self) -> Option<& dyn Error> {
None None
} }
fn source(&self) -> Option<&(Error + 'static)> { fn source(&self) -> Option<&(dyn Error + 'static)> {
None None
} }
} }
@@ -523,7 +523,7 @@ fn from_der_(i: &[u8], start_offset: usize)
// PRINTABLE STRING // PRINTABLE STRING
Some(0x13) => { Some(0x13) => {
let mut res = String::new(); let mut res = String::new();
let mut val = body.iter().map(|x| *x as char); let val = body.iter().map(|x| *x as char);
for c in val { for c in val {
if PRINTABLE_CHARS.contains(c) { if PRINTABLE_CHARS.contains(c) {