Add support for pkcs11 (#769)

pull/772/head
Michele Locati 2023-06-26 18:00:24 +02:00 committed by GitHub
parent f5b3ab78a3
commit 57228536a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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"

13
scripts/tests/pkcs11 Executable file
View 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");
}