1
0
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:
Ted John
2020-02-02 15:35:41 +00:00
parent 1dc7bc2466
commit 5dbd3c7c0c
3 changed files with 34 additions and 4 deletions

View File

@@ -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();