mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix tls::ota.pddb_key()
This commit is contained in:
parent
2cc0052d7d
commit
bb2b7f05e7
1 changed files with 1 additions and 7 deletions
|
|
@ -28,13 +28,7 @@ impl OwnedTrustAnchor {
|
|||
}
|
||||
|
||||
pub fn pddb_key(&self) -> String {
|
||||
let subject = match std::str::from_utf8(&self.subject) {
|
||||
Ok(subject) => subject,
|
||||
Err(e) => {
|
||||
log::warn!("failed to extract ota.subject: {e}");
|
||||
""
|
||||
}
|
||||
};
|
||||
let subject = self.subject();
|
||||
let begin = match subject.find("CN=") {
|
||||
Some(begin) => Some(begin),
|
||||
None => subject.find("OU="),
|
||||
|
|
|
|||
Loading…
Reference in a new issue