mirror of
https://github.com/pcvolkmer/cert-tools.git
synced 2025-09-17 20:22:51 +00:00
refactor: replace Vec with slice
This commit is contained in:
@@ -53,7 +53,7 @@ fn asn1time(time: &SystemTime) -> Asn1Time {
|
|||||||
.unwrap()
|
.unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn save_p12_file(path: &Path, password: &str, certs: &Vec<Certificate>, private_key: Option<PrivateKey>) -> Result<(), String> {
|
pub fn save_p12_file(path: &Path, password: &str, certs: &[Certificate], private_key: Option<PrivateKey>) -> Result<(), String> {
|
||||||
if certs.is_empty() {
|
if certs.is_empty() {
|
||||||
return Err("Invalid chain".to_owned());
|
return Err("Invalid chain".to_owned());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user