diff options
author | Alex Dupre <ale@FreeBSD.org> | 2023-03-20 11:57:44 +0100 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2023-03-20 11:57:44 +0100 |
commit | 9cc717dde03b56b54335c961eed6002bb754cc87 (patch) | |
tree | 7a648f2d4805cf91144116d4e4e71d8e8b2ebe11 /security/opensc | |
parent | security/cryptlib: update to 3.4.6 release. (diff) |
security/opensc: another attempt to fix build on -CURRENT.
Diffstat (limited to 'security/opensc')
-rw-r--r-- | security/opensc/files/patch-src_tools_pkcs11-tool.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/security/opensc/files/patch-src_tools_pkcs11-tool.c b/security/opensc/files/patch-src_tools_pkcs11-tool.c new file mode 100644 index 000000000000..41f40d4461a8 --- /dev/null +++ b/security/opensc/files/patch-src_tools_pkcs11-tool.c @@ -0,0 +1,19 @@ +--- src/tools/pkcs11-tool.c.orig 2023-03-20 10:54:36 UTC ++++ src/tools/pkcs11-tool.c +@@ -7301,7 +7301,6 @@ static int test_random(CK_SESSION_HANDLE session) + CK_BYTE buf1[100], buf2[100]; + CK_BYTE seed1[100]; + CK_RV rv; +- int errors = 0; + + printf("C_SeedRandom() and C_GenerateRandom():\n"); + +@@ -7344,7 +7343,7 @@ static int test_random(CK_SESSION_HANDLE session) + + if (memcmp(buf1, buf2, 100) == 0) { + printf(" ERR: C_GenerateRandom returned twice the same value!!!\n"); +- errors++; ++ return 1; + } + + printf(" seems to be OK\n"); |