diff --git a/utils/opensc/Makefile b/utils/opensc/Makefile index 61dece7385..04fabe5e8a 100644 --- a/utils/opensc/Makefile +++ b/utils/opensc/Makefile @@ -8,9 +8,9 @@ include $(TOPDIR)/rules.mk PKG_NAME:=opensc -PKG_VERSION:=0.24.0 +PKG_VERSION:=0.25.1 PKG_RELEASE:=1 -PKG_HASH:=24d03c69287291da32a30c4c38a304ad827f56cb85d83619e1f5403ab6480ef8 +PKG_HASH:=23cbaae8bd7c8eb589b68c0a961dfb0d02007bea3165a3fc5efe2621d549b37b PKG_LICENSE:=LGPL-2.1-or-later PKG_LICENSE_FILES:=COPYING @@ -108,6 +108,7 @@ TOOLS:= \ cardos-tool \ cryptoflex-tool \ dnie-tool \ + dtrust-tool \ egk-tool \ eidenv \ gids-tool \ @@ -115,8 +116,9 @@ TOOLS:= \ iasecc-tool \ netkey-tool \ openpgp-tool \ - opensc-tool \ + opensc-asn1 \ opensc-explorer:+libncurses:+libreadline \ + opensc-tool \ piv-tool \ pkcs11-register \ pkcs11-tool \ @@ -135,7 +137,6 @@ PROFILES:= \ epass2003 \ flex \ gids \ - gpk \ ias_adele_admin1 \ ias_adele_admin2 \ ias_adele_common \ @@ -143,7 +144,6 @@ PROFILES:= \ iasecc_generic_oberthur \ iasecc_generic_pki \ iasecc \ - incrypto34 \ isoApplet \ muscle \ myeid \ @@ -155,8 +155,7 @@ PROFILES:= \ rutoken \ sc-hsm \ setcos \ - starcos \ - westcos + starcos $(foreach file,$(TOOLS),$(eval $(call ToolGen,$(file)))) $(foreach file,$(PROFILES),$(eval $(call ProfileGen,$(file)))) diff --git a/utils/opensc/patches/001-fix-build.patch b/utils/opensc/patches/001-fix-build.patch new file mode 100644 index 0000000000..8624aed4b9 --- /dev/null +++ b/utils/opensc/patches/001-fix-build.patch @@ -0,0 +1,36 @@ +--- a/src/libopensc/pkcs15-din-66291.c ++++ b/src/libopensc/pkcs15-din-66291.c +@@ -23,12 +23,12 @@ + #include + #endif + ++#include ++#include + #include "internal.h" + #include "common/compat_strlcpy.h" + #include "log.h" + #include "pkcs15.h" +-#include +-#include + + static const unsigned char aid_CIA[] = {0xE8, 0x28, 0xBD, 0x08, 0x0F, + 0xA0, 0x00, 0x00, 0x01, 0x67, 0x45, 0x53, 0x49, 0x47, 0x4E}; +--- a/src/libopensc/pkcs15-starcos-esign.c ++++ b/src/libopensc/pkcs15-starcos-esign.c +@@ -23,14 +23,14 @@ + #include + #endif + ++#include ++#include + #include "common/compat_strlcpy.h" + #include "internal.h" + #include "log.h" + #include "pkcs15.h" + #include "cards.h" + +-#include +-#include + + /* compile time option: define ENABLE_ESIGN_ISSUER_CONTAINERS to enable containers holding the issuer certificates */ +