mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +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 {
|
pub fn pddb_key(&self) -> String {
|
||||||
let subject = match std::str::from_utf8(&self.subject) {
|
let subject = self.subject();
|
||||||
Ok(subject) => subject,
|
|
||||||
Err(e) => {
|
|
||||||
log::warn!("failed to extract ota.subject: {e}");
|
|
||||||
""
|
|
||||||
}
|
|
||||||
};
|
|
||||||
let begin = match subject.find("CN=") {
|
let begin = match subject.find("CN=") {
|
||||||
Some(begin) => Some(begin),
|
Some(begin) => Some(begin),
|
||||||
None => subject.find("OU="),
|
None => subject.find("OU="),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue