Crypt/AsymmetricKey: loading hidden custom key plugins didn't work

This commit is contained in:
terrafrost 2023-12-27 00:47:36 -06:00
parent d2cd758ecb
commit 4bdfec9c23

View File

@ -382,7 +382,7 @@ abstract class AsymmetricKey
$shortname = $meta->getShortName(); $shortname = $meta->getShortName();
self::$plugins[static::ALGORITHM]['Keys'][strtolower($shortname)] = $fullname; self::$plugins[static::ALGORITHM]['Keys'][strtolower($shortname)] = $fullname;
if ($meta->hasConstant('IS_INVISIBLE')) { if ($meta->hasConstant('IS_INVISIBLE')) {
self::$invisiblePlugins[static::ALGORITHM] = strtolower($name); self::$invisiblePlugins[static::ALGORITHM][] = strtolower($shortname);
} }
} }
} }