opensc/opensc-0.20.0-no-common.patch
Petr Šabata ce9358e941 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/opensc#1cf379355cad4b4b0abb1860d7f1ba944149c89b
2020-10-15 22:23:31 +02:00

28 lines
768 B
Diff

diff --git a/src/tests/p11test/p11test.c b/src/tests/p11test/p11test.c
index feecf6fb..a16282cb 100644
--- a/src/tests/p11test/p11test.c
+++ b/src/tests/p11test/p11test.c
@@ -34,6 +34,9 @@
#define DEFAULT_P11LIB "../../pkcs11/.libs/opensc-pkcs11.so"
+/* Global variable keeping information about token we are using */
+token_info_t token;
+
void display_usage() {
fprintf(stdout,
" Usage:\n"
diff --git a/src/tests/p11test/p11test_common.h b/src/tests/p11test/p11test_common.h
index 2f3b238d..9eb5cede 100644
--- a/src/tests/p11test/p11test_common.h
+++ b/src/tests/p11test/p11test_common.h
@@ -84,7 +84,7 @@ typedef struct {
size_t num_keygen_mechs;
} token_info_t;
-token_info_t token;
+extern token_info_t token;
#endif /* P11TEST_COMMON_H */