Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #12 from nodes-php/analysis-XWlDxE
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
Casperhr authored Sep 6, 2017
2 parents 6e2a3bf + 8e73eb8 commit 7ce75bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/Core/Nemid52Compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public static function myRsaShaEncode($data, $keyId, $signatureAlgorithmLong)
// Hash
$digest = hash($signatureAlgorithm, $data, true);


$temp = self::sequence(self::sequence(self::s2oid($oid)."\x05\x00").self::octetstring($digest));
$psLen = $pInfo['bits'] / 8 - (strlen($temp) + 3);

Expand Down
1 change: 0 additions & 1 deletion src/Webservice/PidCprMatch/PidCprMatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public function pidCprRequest($pid, $cpr)
'cpr' => $cpr,
];


$element = $xp->query('/method/request')
->item(0);
$element->setAttribute('id', uniqid());
Expand Down
9 changes: 5 additions & 4 deletions test.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?php
require __DIR__ . '/vendor/autoload.php';

$config = include __DIR__ . '/config/nemid.php';
require __DIR__.'/vendor/autoload.php';

$config = include __DIR__.'/config/nemid.php';

$config['test'] = true;
$config['login']['testSettings']['privateKeyPassword'] = 'Test1234';
$config['login']['testSettings']['privateKeyLocation'] = __DIR__ . '/testcertificates/test_private.pem';
$config['login']['testSettings']['certificateLocation'] = __DIR__ . '/testcertificates/test_public.pem';
$config['login']['testSettings']['privateKeyLocation'] = __DIR__.'/testcertificates/test_private.pem';
$config['login']['testSettings']['certificateLocation'] = __DIR__.'/testcertificates/test_public.pem';

$login = new \Nodes\NemId\Login\Login($config);
$parameters = [];
Expand Down

0 comments on commit 7ce75bc

Please sign in to comment.