mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Allow tests to work with CRLF test data
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
*****************************************************************************/
|
||||
|
||||
#include "TestData.h"
|
||||
#include "helpers/StringHelpers.hpp"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <openrct2/core/Crypt.h>
|
||||
@@ -153,7 +154,7 @@ TEST_F(CryptTests, RSA_VerifyWithPublic)
|
||||
|
||||
TEST_F(CryptTests, RSAKey_GetPublic)
|
||||
{
|
||||
auto inPem = File::ReadAllText(GetTestPublicKeyPath());
|
||||
auto inPem = NormaliseLineEndings(File::ReadAllText(GetTestPublicKeyPath()));
|
||||
auto publicKey = Crypt::CreateRSAKey();
|
||||
publicKey->SetPublic(inPem);
|
||||
auto outPem = publicKey->GetPublic();
|
||||
|
||||
Reference in New Issue
Block a user