Skip to content

Commit 7959621

Browse files
authored
Merge pull request #184 from LesnyRumcajs/LesnyRumcajs-patch-1
corrected parameter name for PEM-encoded cert
2 parents 93fb6ee + 2467e09 commit 7959621

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ impl Certificate {
193193
}
194194

195195
/// Parses a PEM-formatted X509 certificate.
196-
pub fn from_pem(der: &[u8]) -> Result<Certificate> {
197-
let cert = imp::Certificate::from_pem(der)?;
196+
pub fn from_pem(pem: &[u8]) -> Result<Certificate> {
197+
let cert = imp::Certificate::from_pem(pem)?;
198198
Ok(Certificate(cert))
199199
}
200200

0 commit comments

Comments
 (0)