Skip to content

Commit

Permalink
dsa: Use the OS native line ending
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed May 14, 2022
1 parent c2187f7 commit 64d74cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dsa/tests/privatekey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn decode_encode_openssl_private_key() {
assert!(private_key.is_valid());

let reencoded_private_key = private_key
.to_pkcs8_pem(LineEnding::LF)
.to_pkcs8_pem(LineEnding::default())
.expect("Failed to encode private key into PEM representation");

assert_eq!(*reencoded_private_key, OPENSSL_PEM_PRIVATE_KEY);
Expand Down
2 changes: 1 addition & 1 deletion dsa/tests/publickey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn decode_encode_openssl_public_key() {
assert!(public_key.is_valid());

let reencoded_public_key = public_key
.to_public_key_pem(LineEnding::LF)
.to_public_key_pem(LineEnding::default())
.expect("Failed to encode public key into PEM representation");

assert_eq!(reencoded_public_key, OPENSSL_PEM_PUBLIC_KEY);
Expand Down

0 comments on commit 64d74cb

Please sign in to comment.