1
0
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:
2025-09-16 08:25:03 +02:00
parent 7a47d30d54
commit 7d987dc91f

View File

@@ -53,7 +53,7 @@ fn asn1time(time: &SystemTime) -> Asn1Time {
.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() {
return Err("Invalid chain".to_owned());
}