Add support for pkcs11 (#769)
parent
f5b3ab78a3
commit
57228536a6
|
@ -79,6 +79,7 @@ pdo_pgsql 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2
|
|||
pdo_sqlsrv 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2
|
||||
pgsql 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2
|
||||
php_trie 7.3 7.4 8.0 8.1 8.2
|
||||
pkcs11 7.4 8.0 8.1 8.2
|
||||
pq 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2
|
||||
propro 5.5 5.6 7.0 7.1 7.2 7.3 7.4
|
||||
protobuf 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2
|
||||
|
|
|
@ -1123,6 +1123,12 @@ buildRequiredPackageLists() {
|
|||
php_trie@alpine)
|
||||
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libstdc++"
|
||||
;;
|
||||
pkcs11@alpine)
|
||||
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent softhsm"
|
||||
;;
|
||||
pkcs11@debian)
|
||||
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libsofthsm2"
|
||||
;;
|
||||
pspell@alpine)
|
||||
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent aspell-libs $(expandASpellDictionaries)"
|
||||
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile aspell-dev"
|
||||
|
|
|
@ -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…
Reference in New Issue