From 64d74cb37c85decad253d601a0f88f006393447c Mon Sep 17 00:00:00 2001 From: aumetra Date: Sat, 14 May 2022 16:09:40 +0200 Subject: [PATCH] dsa: Use the OS native line ending --- dsa/tests/privatekey.rs | 2 +- dsa/tests/publickey.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dsa/tests/privatekey.rs b/dsa/tests/privatekey.rs index 837c2440..21055de5 100644 --- a/dsa/tests/privatekey.rs +++ b/dsa/tests/privatekey.rs @@ -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); diff --git a/dsa/tests/publickey.rs b/dsa/tests/publickey.rs index 5a9ad411..42703f28 100644 --- a/dsa/tests/publickey.rs +++ b/dsa/tests/publickey.rs @@ -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);