1
0
mirror of https://github.com/pcvolkmer/cert-tools.git synced 2025-07-01 22:12:55 +00:00

refactor: create fixed chain using reference to certs

This commit is contained in:
2025-01-21 09:48:50 +01:00
parent 3e19abd4db
commit 41ba88c0b6
2 changed files with 6 additions and 6 deletions

View File

@ -104,7 +104,7 @@ impl Ui {
_ => None,
};
self.fixed_chain = match &self.chain {
Some(chain) => match Chain::fixed_from(chain.certs().to_vec()) {
Some(chain) => match Chain::create_fixed(chain.certs()) {
Ok(chain) => Some(chain),
_ => None,
},
@ -130,7 +130,7 @@ impl Ui {
_ => None,
};
self.fixed_chain = match &self.chain {
Some(chain) => match Chain::fixed_from(chain.certs().to_vec()) {
Some(chain) => match Chain::create_fixed(chain.certs()) {
Ok(chain) => Some(chain),
_ => None,
},
@ -156,7 +156,7 @@ impl Ui {
_ => None,
};
self.fixed_chain = match &self.chain {
Some(chain) => match Chain::fixed_from(chain.certs().to_vec()) {
Some(chain) => match Chain::create_fixed(chain.certs()) {
Ok(chain) => Some(chain),
_ => None,
},