From 1bcf84f27510e9afe20a3c6a509ca7062aba0aa9 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 8 Feb 2021 16:04:56 +0000 Subject: fix test --- tests/unit/Lib/KeyutilsTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/unit/Lib/KeyutilsTest.php b/tests/unit/Lib/KeyutilsTest.php index 67b71d70e..162b2b279 100644 --- a/tests/unit/Lib/KeyutilsTest.php +++ b/tests/unit/Lib/KeyutilsTest.php @@ -49,7 +49,9 @@ W2xGFku1h9fT+kNCi0YnTZlbmXEQKo2/Qha/nMCvA+idfDcHw9DVZNIMpH5kk3JC GxBR2GGV8LISqKpZqZ+9AzZeqt8aCSC2/h8nq5nCWLVMTtJIiV/1GE5aEe2fR9GS Az76YS3wXMqvWx19XE+v74sBNqhtxrZfQRfeHalDv1nUkcBkaYglQmggZ2jd+p6d soJHIKiLs/8fMzRqLyrqZwIDAQAB - -----END PUBLIC KEY-----'; +-----END PUBLIC KEY-----'; + + $orig_key = str_replace(["\r", "\n"], "\r\n", $orig_key); Keyutils::pemToMe($orig_key, $m, $e); $gen_key = Keyutils::meToPem($m, $e); @@ -71,7 +73,9 @@ W2xGFku1h9fT+kNCi0YnTZlbmXEQKo2/Qha/nMCvA+idfDcHw9DVZNIMpH5kk3JC GxBR2GGV8LISqKpZqZ+9AzZeqt8aCSC2/h8nq5nCWLVMTtJIiV/1GE5aEe2fR9GS Az76YS3wXMqvWx19XE+v74sBNqhtxrZfQRfeHalDv1nUkcBkaYglQmggZ2jd+p6d soJHIKiLs/8fMzRqLyrqZwIDAQAB - -----END PUBLIC KEY-----'; +-----END PUBLIC KEY-----'; + + $orig_key = str_replace(["\r", "\n"], "\r\n", $orig_key); Keyutils::pemToMe($orig_key, $m, $e); -- cgit v1.2.3