+2
-3
@@ -169,10 +169,9 @@ fn go_pem_decode(data: &[u8]) -> Option<(Vec<u8>, Vec<u8>, &[u8])> {
|
||||
loop {
|
||||
if rest.starts_with(&START[1..]) {
|
||||
rest = &rest[START.len() - 1..];
|
||||
} else if let Some(i) = find(rest, START) {
|
||||
rest = &rest[i + START.len()..];
|
||||
} else {
|
||||
return None;
|
||||
let i = find(rest, START)?;
|
||||
rest = &rest[i + START.len()..];
|
||||
}
|
||||
let (type_line, r) = get_line(rest);
|
||||
rest = r;
|
||||
|
||||
Reference in New Issue
Block a user