Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent Morselli committed Nov 22, 2016
1 parent f2f17ae commit 062d212
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Factory/JWKFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ public static function createECKey(array $values)
Assertion::keyExists($values, 'crv', 'The curve is not set.');
$curve = $values['crv'];
if (function_exists('openssl_get_curve_names')) {
$curve_name = self::getOpensslName($curve);
$args = [
'curve_name' => $curve_name,
'curve_name' => self::getOpensslName($curve),
'private_key_type' => OPENSSL_KEYTYPE_EC,
];
$key = openssl_pkey_new($args);
Expand All @@ -135,7 +134,6 @@ public static function createECKey(array $values)
$values,
$rsa->toArray()
);
var_dump('OpenSSL youpiiii!');

return new JWK($values);
} else {
Expand Down

0 comments on commit 062d212

Please sign in to comment.