aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-02-08 16:04:56 +0000
committerMario <mario@mariovavti.com>2021-02-08 16:04:56 +0000
commit1bcf84f27510e9afe20a3c6a509ca7062aba0aa9 (patch)
tree813a1ca06a0df63c955e75fc3aefcccdb0639aec /tests
parenta8e0bd1f122ecfc35d7834f73d2fff9b276ace29 (diff)
downloadvolse-hubzilla-1bcf84f27510e9afe20a3c6a509ca7062aba0aa9.tar.gz
volse-hubzilla-1bcf84f27510e9afe20a3c6a509ca7062aba0aa9.tar.bz2
volse-hubzilla-1bcf84f27510e9afe20a3c6a509ca7062aba0aa9.zip
fix test
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/Lib/KeyutilsTest.php8
1 files 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);