SHA256
1
0
forked from pool/pcsc-eco5000

6 Commits

Author SHA256 Message Date
fcef1b8e04 Accepting request 1291594 from security:chipcard
OBS-URL: https://build.opensuse.org/request/show/1291594
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pcsc-eco5000?expand=0&rev=18
2025-07-10 20:12:18 +00:00
Wolfgang Rosenauer
859672d25d - Fix build with gcc15:
* Remove bool typedef as not needed and not used in the code
  * Add pcsc-eco5000-fix-compile-gcc15.patch

OBS-URL: https://build.opensuse.org/package/show/security:chipcard/pcsc-eco5000?expand=0&rev=11
2025-07-10 05:40:00 +00:00
b4580ff54b Accepting request 1278345 from security:chipcard
OBS-URL: https://build.opensuse.org/request/show/1278345
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pcsc-eco5000?expand=0&rev=17
2025-05-20 07:38:39 +00:00
f17c9679d5 Use %make_build instead of %jobs (boo#1237231)
note: similar change is needed for other pcsc-* packages

OBS-URL: https://build.opensuse.org/package/show/security:chipcard/pcsc-eco5000?expand=0&rev=9
2025-05-19 08:17:41 +00:00
b1293d5e5e Accepting request 1226626 from security:chipcard
OBS-URL: https://build.opensuse.org/request/show/1226626
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pcsc-eco5000?expand=0&rev=16
2024-11-27 21:11:19 +00:00
03576dcadd - Fix compilationo with gcc14 and fix some warnings
* Added pcsc-eco5000-fix-compile-gcc14.patch
  * Added pcsc-eco5000-clean-warnings.patch

OBS-URL: https://build.opensuse.org/package/show/security:chipcard/pcsc-eco5000?expand=0&rev=7
2024-11-26 16:50:52 +00:00
5 changed files with 179 additions and 15 deletions

View File

@@ -0,0 +1,50 @@
Index: eco5000-1.2.0/ifd_handler.c
===================================================================
--- eco5000-1.2.0.orig/ifd_handler.c
+++ eco5000-1.2.0/ifd_handler.c
@@ -71,7 +71,6 @@ int IFDGetATR (struct eco5000_t *ctx)
{
int response;
- int prot;
memset(ctx->ATR, 0, sizeof(ctx->ATR)); /* Clear parts of the context */
memset(ctx->HCC, 0, sizeof(ctx->HCC));
@@ -90,7 +89,6 @@ int IFDGetATR (struct eco5000_t *ctx)
ctx->Type = ASYNC_ICC;
- prot = ctx->Protocol;
}
return 0;
@@ -316,7 +314,6 @@ RESPONSECODE IFDHGetCapabilities ( DWORD
int rc;
struct eco5000_t *ctx;
- struct memorycard_t *pt;
rc = LookupLun(Lun);
Index: eco5000-1.2.0/ecotools.c
===================================================================
--- eco5000-1.2.0.orig/ecotools.c
+++ eco5000-1.2.0/ecotools.c
@@ -3,7 +3,7 @@
* |.**> <**.| CardContact
* |* *| Software & System Consulting
* |* *| Minden, Germany
- * |<7C>**> <**<2A>| Copyright (c) 1999. All rights reserved
+ * |<7C>**> <**<2A>| Copyright (c) 1999. All rights reserved
* ---------
*
* See file LICENSE for details on licensing
@@ -169,7 +169,7 @@ int ecoChangeBaudrate(struct eco5000_t *
buff = 0xFF - 14318000 / (32 * baudrate); /* 115200 = 0xFC */
- if ((rc = ecoCommand(ctx, SET_BAUDRATE, 1, &buff, 0, NULL)) < 0)
+ if ((rc = ecoCommand(ctx, SET_BAUDRATE, 1, (unsigned char *) &buff, 0, NULL)) < 0)
return rc;
rs232Mode(ctx->fh, baudrate, 0, -1, -1, -1);

View File

@@ -0,0 +1,67 @@
Index: eco5000-1.2.0/ifd_handler.c
===================================================================
--- eco5000-1.2.0.orig/ifd_handler.c
+++ eco5000-1.2.0/ifd_handler.c
@@ -26,6 +26,7 @@
#include "pcscdefines.h"
#include "ifd_handler.h"
+#include "atr.h"
#include "defines.h"
#include "ctapi.h"
#include "sercom.h"
Index: eco5000-1.2.0/atr.h
===================================================================
--- eco5000-1.2.0.orig/atr.h
+++ eco5000-1.2.0/atr.h
@@ -3,7 +3,7 @@
* |.**> <**.| CardContact
* |* *| Software & System Consulting
* |* *| Minden, Germany
- * |<7C>**> <**<2A>| Copyright (c) 1999. All rights reserved
+ * |<7C>**> <**<2A>| Copyright (c) 1999. All rights reserved
* ---------
*
* See file LICENSE for details on licensing
@@ -19,6 +19,7 @@
#ifndef _ATR_H_
#define _ATR_H_
+#include "eco5000.h"
int GetATR(struct eco5000_t *ctx);
/* GetATR - fills structure vars (HCC, ATR, ...) */
@@ -29,4 +30,7 @@ int ASync_GetATR(struct eco5000_t *ctx);
int Sync_GetATR(struct eco5000_t *ctx);
+int PerformPPS(struct eco5000_t *ctx, unsigned char PPS0,
+ unsigned char PPS1, unsigned char PPS2, unsigned char PPS3);
+
#endif
Index: eco5000-1.2.0/ctbcs.h
===================================================================
--- eco5000-1.2.0.orig/ctbcs.h
+++ eco5000-1.2.0/ctbcs.h
@@ -53,6 +53,8 @@ int GetStatus (struct eco5000_t *ctx,
unsigned int *lr,
unsigned char *rsp);
+int InstallHandler (struct eco5000_t *ctx);
+
#endif
Index: eco5000-1.2.0/ctbcs.c
===================================================================
--- eco5000-1.2.0.orig/ctbcs.c
+++ eco5000-1.2.0/ctbcs.c
@@ -19,6 +19,8 @@
#include <stdio.h>
#include <string.h>
#include <string.h>
+#include <unistd.h>
+
#include "eco5000.h"
#include "ctbcs.h"
#include "ctapi.h"

View File

@@ -0,0 +1,14 @@
Index: eco5000-1.2.0/defines.h
===================================================================
--- eco5000-1.2.0.orig/defines.h
+++ eco5000-1.2.0/defines.h
@@ -78,7 +78,8 @@
#ifndef bool
- typedef int bool;
+/* typedef int bool; */
+#include <stdbool.h>
#endif

View File

@@ -1,3 +1,22 @@
-------------------------------------------------------------------
Wed Jul 9 10:46:16 UTC 2025 - Pedro Monreal <pmonreal@suse.com>
- Fix build with gcc15:
* Remove bool typedef as not needed and not used in the code
* Add pcsc-eco5000-fix-compile-gcc15.patch
-------------------------------------------------------------------
Wed May 14 16:39:32 UTC 2025 - Bernhard Wiedemann <bwiedemann@suse.com>
- Use %make_build instead of %jobs (boo#1237231)
-------------------------------------------------------------------
Tue Nov 26 09:48:30 UTC 2024 - Angel Yankov <angel.yankov@suse.com>
- Fix compilationo with gcc14 and fix some warnings
* Added pcsc-eco5000-fix-compile-gcc14.patch
* Added pcsc-eco5000-clean-warnings.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Nov 20 06:27:40 UTC 2011 - coolo@suse.com Sun Nov 20 06:27:40 UTC 2011 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package pcsc-eco5000 # spec file for package pcsc-eco5000
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,23 +12,25 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
# norootforbuild
Name: pcsc-eco5000 Name: pcsc-eco5000
%define _name eco5000 %define _name eco5000
BuildRequires: libtool pcsc-lite-devel pkg-config BuildRequires: libtool
BuildRequires: pcsc-lite-devel
BuildRequires: pkg-config
Version: 1.2.0 Version: 1.2.0
Release: 66 Release: 0
Group: Productivity/Security Group: Productivity/Security
License: GPL-2.0+ License: GPL-2.0-or-later
Url: http://www.cardcontact.de/download/driverdownload.html URL: http://www.cardcontact.de/download/driverdownload.html
Summary: PC/SC IFD Handler for the ECO 5000 Serial Smart Card Reader Summary: PC/SC IFD Handler for the ECO 5000 Serial Smart Card Reader
Source: %{_name}-%{version}.tar.bz2 Source: %{_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build Patch0: pcsc-eco5000-fix-compile-gcc14.patch
Patch1: pcsc-eco5000-clean-warnings.patch
Patch2: pcsc-eco5000-fix-compile-gcc15.patch
Requires: pcsc-lite Requires: pcsc-lite
%define ifddir %(pkg-config --variable=usbdropdir libpcsclite) %define ifddir %(pkg-config --variable=usbdropdir libpcsclite)
@@ -52,6 +54,13 @@ This driver only works with the serial interface version of the ECO
5000. ORGA also sells a USB version, that is incompatible with the 5000. ORGA also sells a USB version, that is incompatible with the
serial version. This driver will not work with the USB version! serial version. This driver will not work with the USB version!
%package devel
Summary: PC/SC IFD Handler for the ECO 5000 Serial Smart Card Reader
Group: Productivity/Security
Requires: %{name} = %{version}
%description devel
Driver for the ECO 5000 Serial Smart Card Reader.
Authors: Authors:
@@ -60,14 +69,14 @@ Authors:
Andreas Schwier <andreas.schwier@cardcontact.de> Andreas Schwier <andreas.schwier@cardcontact.de>
%prep %prep
%setup -q -n %{_name}-%{version} %autosetup -p1 -n %{_name}-%{version}
%build %build
autoreconf -f -i autoreconf -f -i
%configure\ %configure\
--libdir=%{ifddir}\ --libdir=%{ifddir}\
--disable-static --disable-static
make %{?jobs:-j%jobs} %make_build
%install %install
%makeinstall %makeinstall
@@ -76,12 +85,17 @@ rm $RPM_BUILD_ROOT%{ifddir}/*.la
rm $RPM_BUILD_ROOT%{_includedir}/ctapi.h rm $RPM_BUILD_ROOT%{_includedir}/ctapi.h
rmdir $RPM_BUILD_ROOT%{_includedir} rmdir $RPM_BUILD_ROOT%{_includedir}
%clean %check
rm -rf $RPM_BUILD_ROOT %make_build check
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README README.html %doc AUTHORS ChangeLog NEWS README README.html
%{ifddir}/* %license COPYING
%{ifddir}/libcteco5000.so.0.0.0
%{ifddir}/libcteco5000.so.0
%files devel
%{ifddir}/libcteco5000.so
%changelog %changelog