diff --git a/src/lib.rs b/src/lib.rs index 75eceda..c6d0dda 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -53,7 +53,7 @@ fn asn1time(time: &SystemTime) -> Asn1Time { .unwrap() } -pub fn save_p12_file(path: &Path, password: &str, certs: &Vec, private_key: Option) -> Result<(), String> { +pub fn save_p12_file(path: &Path, password: &str, certs: &[Certificate], private_key: Option) -> Result<(), String> { if certs.is_empty() { return Err("Invalid chain".to_owned()); }