Forwarded: https://github.com/kaoh/globalplatform/pull/89
From: Simon Josefsson <simon@josefsson.org>
Date: Tue, 19 Dec 2023 10:56:04 +0100
Subject: [PATCH] gpshell: dlopen gppcscconnectionplugin.so.1.

Signed-off-by: Simon Josefsson <simon@josefsson.org>
---
 gpshell/src/gpshell.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gpshell/src/gpshell.c b/gpshell/src/gpshell.c
index a41638c..ffb06e9 100644
--- a/gpshell/src/gpshell.c
+++ b/gpshell/src/gpshell.c
@@ -1028,6 +1028,8 @@ static int handleCommands(FILE *fd)
                 // Establish context
                 _tcsncpy(cardContext.libraryName, _T("gppcscconnectionplugin"),
                          _tcslen(_T("gppcscconnectionplugin"))+1);
+                _tcsncpy(cardContext.libraryVersion, _T("1"),
+                         _tcslen(_T("1"))+1);
                 status = OPGP_establish_context(&cardContext);
                 if (OPGP_ERROR_CHECK(status))
                 {
-- 
2.34.1

