git: 9cc717dde03b - main - security/opensc: another attempt to fix build on -CURRENT.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 20 Mar 2023 10:59:09 UTC
The branch main has been updated by ale:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9cc717dde03b56b54335c961eed6002bb754cc87
commit 9cc717dde03b56b54335c961eed6002bb754cc87
Author: Alex Dupre <ale@FreeBSD.org>
AuthorDate: 2023-03-20 10:57:44 +0000
Commit: Alex Dupre <ale@FreeBSD.org>
CommitDate: 2023-03-20 10:57:44 +0000
security/opensc: another attempt to fix build on -CURRENT.
---
security/opensc/files/patch-src_tools_pkcs11-tool.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
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");