mirror of
https://github.com/mlocati/docker-php-extension-installer
synced 2025-05-09 00:22:40 +00:00
Add support for pkcs11 (#769)
This commit is contained in:
parent
f5b3ab78a3
commit
57228536a6
3 changed files with 20 additions and 0 deletions
13
scripts/tests/pkcs11
Executable file
13
scripts/tests/pkcs11
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/_bootstrap.php';
|
||||
|
||||
$module = new Pkcs11\Module('/usr/lib/softhsm/libsofthsm2.so');
|
||||
$moduleInfo = $module->getInfo();
|
||||
if (!is_array($moduleInfo)) {
|
||||
fwrite(STDERR, "Pkcs11\\Module::getInfo() should return an array\n");
|
||||
}
|
||||
if (!isset($moduleInfo['manufacturerID']) || $moduleInfo['manufacturerID'] !== 'SoftHSM') {
|
||||
fwrite(STDERR, "Unexpected return value of Pkcs11\\Module::getInfo()\n");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue