mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-27 23:09:08 +01:00
Test the PKCS#11 build against SoftHSM in CI and warn once where the build has no driver
This commit is contained in:
@@ -121,6 +121,11 @@ type module struct {
|
||||
cSign func(session ulong, data *byte, dataLen ulong, signature *byte, signatureLen *ulong) ulong
|
||||
}
|
||||
|
||||
// Supported reports whether this build can load PKCS#11 modules.
|
||||
func Supported() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func load(path string) (driver, error) {
|
||||
lib, err := purego.Dlopen(path, purego.RTLD_NOW|purego.RTLD_LOCAL)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user