0001-pkcs11-tool-disable-wrap-unwrap-test-until-OpenSC-17.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From 768c9bfcd91206f0d85cd4757fde48e00850a014 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  3. Date: Mon, 6 Jan 2025 22:36:10 +0100
  4. Subject: [PATCH] pkcs11-tool: disable wrap/unwrap test until OpenSC#1796 is
  5. resolved
  6. Similar to ab74fae4d71d1705b77b9459141987a95dcfc91e ("pkcs11-tool:
  7. disable wrap/unwrap test until OpenSC#1796 is resolved"), but for
  8. 0.26, since OpenSC#1796 is still open.
  9. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  10. Upstream: https://github.com/OpenSC/OpenSC/pull/3303
  11. ---
  12. src/tools/pkcs11-tool.c | 4 ++--
  13. 1 file changed, 2 insertions(+), 2 deletions(-)
  14. diff --git a/src/tools/pkcs11-tool.c b/src/tools/pkcs11-tool.c
  15. index d701d76d6..871a39977 100644
  16. --- a/src/tools/pkcs11-tool.c
  17. +++ b/src/tools/pkcs11-tool.c
  18. @@ -7681,7 +7681,7 @@ static int test_verify(CK_SESSION_HANDLE sess)
  19. return errors;
  20. }
  21. -#if OPENSC_VERSION_MAJOR == 0 && OPENSC_VERSION_MINOR <= 25
  22. +#if OPENSC_VERSION_MAJOR == 0 && OPENSC_VERSION_MINOR <= 26
  23. #else
  24. #ifdef ENABLE_OPENSSL
  25. static int wrap_unwrap(CK_SESSION_HANDLE session,
  26. @@ -7805,7 +7805,7 @@ static int wrap_unwrap(CK_SESSION_HANDLE session,
  27. */
  28. static int test_unwrap(CK_SESSION_HANDLE sess)
  29. {
  30. -#if OPENSC_VERSION_MAJOR == 0 && OPENSC_VERSION_MINOR <= 25
  31. +#if OPENSC_VERSION_MAJOR == 0 && OPENSC_VERSION_MINOR <= 26
  32. /* temporarily disable test, see https://github.com/OpenSC/OpenSC/issues/1796 */
  33. return 0;
  34. #else
  35. --
  36. 2.47.1