Skip to content
Snippets Groups Projects
Unverified Commit 91765e22 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Properly handle privatekey_pass set to null-value

parent f60ae7f4
No related branches found
No related tags found
No related merge requests found
......@@ -222,12 +222,9 @@ class Crypto
$ret = [
'PEM' => $data,
'password' => $metadata->getString($prefix . 'privatekey_pass', null),
];
if ($metadata->hasValue($prefix . 'privatekey_pass')) {
$ret['password'] = $metadata->getString($prefix . 'privatekey_pass');
}
return $ret;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment