p11kit: switch to dlopen()

This commit is contained in:
Luca Boccassi
2022-12-19 14:49:01 +01:00
parent 5ac1e0eff3
commit da035a3a24
7 changed files with 202 additions and 60 deletions
+3 -1
View File
@@ -76,7 +76,9 @@ tests += [
[],
core_includes],
[files('test-dlopen-so.c')],
[files('test-dlopen-so.c'),
[],
libp11kit_cflags],
[files('test-job-type.c'),
[libcore,
+5
View File
@@ -11,6 +11,7 @@
#include "macro.h"
#include "main-func.h"
#include "pcre2-util.h"
#include "pkcs11-util.h"
#include "pwquality-util.h"
#include "qrcode-util.h"
#include "tests.h"
@@ -60,6 +61,10 @@ static int run(int argc, char **argv) {
assert_se(dlopen_pcre2() >= 0);
#endif
#if HAVE_P11KIT
assert_se(dlopen_p11kit() >= 0);
#endif
return 0;
}