Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidation of forks #87

Merged
merged 92 commits into from Nov 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
fce379f
add PIN verification for EMV
AdamLaurie Nov 5, 2015
e4a2a9f
tidy up - remove unecessary data conversion
AdamLaurie Nov 5, 2015
06ae160
usbserial support initial
Jan 25, 2016
befabb2
small fixes for memory initialization
nuschpl Jan 25, 2016
6ea860d
Merge branch 'master' into pl2303_china_reader_support
nuschpl Jan 25, 2016
997763e
added usbserial devices to Select card reader dialog
nuschpl Jan 25, 2016
6ad69e9
check for __unix__ define for unix only function
nuschpl Jan 25, 2016
cb8ca02
Fix small typo
c0dr Feb 9, 2016
68dc903
not functional commmit
nuschpl Mar 31, 2016
511f514
Add auto build script on Mac OS EI
FeitianSmartcardReader Jun 16, 2016
76ef1cb
Fix the 404 screenshot.
Mailaender Sep 25, 2016
7cb22c8
Add c250n64.lua, support for Montpellier (France) city
AndreMiras Oct 19, 2016
50d7595
[calypso] [c376] RavKav updates
arseny92 Mar 13, 2017
f8fd432
[calypso] [c376] RavKav updates
arseny92 Mar 19, 2017
344cbbf
[calypso] [c376] RavKav updates
arseny92 Mar 24, 2017
ee91ff5
[calypso] [c376] RavKav updates
arseny92 Mar 24, 2017
ea4022c
[calypso] [c376] RavKav updates
arseny92 Mar 24, 2017
ca5f406
[calypso] [c376] RavKav updates
arseny92 Mar 25, 2017
52117b4
[calypso] [c376] RavKav updates
arseny92 May 5, 2017
18c0c97
[calypso] [c376] RavKav updates
arseny92 May 14, 2017
8eb7006
[calypso] [c376] RavKav updates
arseny92 May 20, 2017
e3c53a5
e-passport: support other travel documents
Sep 2, 2017
9948fa2
e-passport: display signature image
Sep 2, 2017
990642c
e-passport: more generic jpeg processing
Sep 3, 2017
c7c4a84
e-passport: add more passport fields
Sep 3, 2017
25ab201
[calypso] [c376] RavKav updates
arseny92 Sep 9, 2017
7625184
Sync upstream to master
arseny92 Sep 9, 2017
fa66f45
Add script to read and interpret Thai National ID cards
dahanc Sep 17, 2017
42ed96d
Wrap a long line. Add a comment noting that some people may not have …
dahanc Sep 17, 2017
d3bb4f4
Add Ki string
lzubiaur Oct 5, 2017
ec27fa0
read ki on empty pin
lzubiaur Oct 6, 2017
c23bc2d
Increase Ki size
lzubiaur Oct 9, 2017
65fa973
Add debug log
lzubiaur Oct 9, 2017
6fa0e4f
[calypso] [c376] RavKav updates
arseny92 Oct 9, 2017
4fe0a15
[calypso] [c376] RavKav updates
arseny92 Nov 1, 2017
b14a286
[calypso] [c376] RavKav updates
arseny92 Mar 16, 2018
75b1c44
Create tar.gz in a reproducible way
bmwiedemann Jun 13, 2018
b9d8673
Add support to show CDCVM (Apple Pay / Google Pay) support and other …
uschindler Jul 11, 2018
74f145e
Merge pull request #1 from AdamLaurie/master
bllfr0g Jul 30, 2018
f83d991
[calypso] [c376] RavKav updates
arseny92 Oct 10, 2018
77e1f3c
[calypso] [c376] RavKav updates
arseny92 Oct 21, 2018
478a489
Merge branch 'e-passport-signature' of https://github.com/orymate/car…
Dec 11, 2018
81c961c
Merge branch 'patch-1' of https://github.com/Mailaender/cardpeek into…
Dec 11, 2018
29c0066
Merge branch 'master' of https://github.com/uschindler/cardpeek into dev
Dec 11, 2018
540041f
Merge branch 'KiString' of https://github.com/lzubiaur/cardpeek into dev
Dec 11, 2018
9955812
Merge branch 'master' of https://github.com/nuschpl/cardpeek into dev
Dec 11, 2018
20d9b8a
Fix typo and unnecessary debug message
Dec 11, 2018
764cfa4
Merge branch 'master' of https://github.com/dahanc/cardpeek into dev
Dec 11, 2018
a80c644
Merge branch 'master' of https://github.com/AdamLaurie/cardpeek into dev
Dec 11, 2018
803b333
Merge branch 'master' of https://github.com/arseny92/cardpeek into dev
Dec 11, 2018
01a845b
Fix call to buggy mingw g_fopen (glib2)
Dec 11, 2018
2ae9f9b
Add build instructions and helpers for Debian and Windows
Dec 11, 2018
0e11445
Update README
Dec 11, 2018
bfb65b3
Fix markdown format
Dec 11, 2018
1e3bef5
Adapt build scripts for msys2
Dec 12, 2018
1f65c1f
Fix typo in markdowns
Dec 12, 2018
92b5a37
Fix typo in markdowns
Dec 12, 2018
48faceb
Imported wiki
Dec 12, 2018
d5ff8de
Fix markdown typo
Dec 12, 2018
599de71
Remove unnecessary import of WinSCard.dll in deps
Dec 12, 2018
39f9cb4
Remove dangerous global date variable in en1545_DATE
Dec 13, 2018
41cf6f2
Add options to en1545 date/time mapping functions
Dec 13, 2018
296a6d6
Fix bug in en1545 date and time callbacks
Dec 14, 2018
7ff4cef
Simplify country names
Dec 14, 2018
91a8d78
Add network names
Dec 14, 2018
a82168f
Add support for empty bitmaps, big-endian bitmaps and fields "always …
Dec 14, 2018
7505ce8
Append en1545_REPEAT children under their parent in the node hierarchy
Dec 14, 2018
aca04fd
Add support for more complex conditions in en1545_map
Dec 14, 2018
3c0a851
Select Calypso contract type
Dec 14, 2018
0791eba
Initial WhiteSource configuration file
Mar 22, 2019
7af2237
Merge pull request #1 from orymate/e-passport-signature
tiker May 29, 2019
64c787b
Merge pull request #2 from AndreMiras/montpellier_transports
tiker May 30, 2019
d7ff654
[calypso] [c376] RavKav updates
arseny92 May 30, 2019
7a732ba
[calypso] [c376] RavKav updates
arseny92 Jun 1, 2019
6977265
Merge pull request #3 from Mailaender/patch-1
tiker Jun 2, 2019
043d1d8
Merge pull request #4 from uschindler/master
tiker Jun 2, 2019
311625b
Merge pull request #5 from lzubiaur/KiString
tiker Jun 2, 2019
51e0ee4
Merge pull request #6 from nuschpl/master
tiker Jun 2, 2019
8ac72f0
Merge pull request #7 from AdamLaurie/master
tiker Jun 2, 2019
16dba74
Merge pull request #8 from dahanc/master
tiker Jun 2, 2019
19aabbf
Merge pull request #9 from arseny92/master
tiker Jun 2, 2019
bb8ebc1
[calypso] [c376] RavKav updates
arseny92 Sep 16, 2019
b072ebe
Add Russian Federation driver cards support
iEvgeny Sep 17, 2019
3339ed8
Merge changes from ipamo/dev
arseny92 Oct 13, 2019
35d13fd
Merge changes from c0dr/master
arseny92 Oct 13, 2019
d382733
Merge changes from nuschpl/pl2303_china_reader_support
arseny92 Oct 13, 2019
ea21eee
Merge changes from FeitianSmartcardReader/master
arseny92 Oct 13, 2019
2fe4491
Merge changes from bmwiedemann/tar
arseny92 Oct 13, 2019
b70511e
Merge changes from bllfr0g/master
arseny92 Oct 13, 2019
e19e3a6
Merge changes from Guillerbr/master
arseny92 Oct 13, 2019
8a8e9b6
Merge changes from tiker/master
arseny92 Oct 13, 2019
a58a28d
Merge changes from iEvgeny/gost34005-2016
arseny92 Oct 13, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 16 additions & 1 deletion .gitignore
@@ -1,12 +1,27 @@
Makefile.in
Makefile
aclocal.m4
autom4te.cache/
autom4te.cache
compile
config.guess
config.sub
config.log
config.h
config.status
configure
stamp-h1
depcomp
install-sh
missing
*.o
*~
.deps
.dirstamp
dot_cardpeek.tar.gz
cardpeek
cardpeek.exe
cardpeek_resources.c
win32/libwinscard.a
deps
build
.vscode
8 changes: 8 additions & 0 deletions .whitesource
@@ -0,0 +1,8 @@
##########################################################
#### WhiteSource Integration configuration file ####
##########################################################

# Configuration #
#---------------#
ws.repo.scan=true
vulnerable.check.run.conclusion.level=failure
3 changes: 3 additions & 0 deletions INSTALL
@@ -1,3 +1,6 @@
(Note: this is the standard GNU documentation for installs. For more specific
documentation, please refer to README.md)

Installation Instructions
*************************

Expand Down
4 changes: 2 additions & 2 deletions Makefile.am
Expand Up @@ -76,7 +76,7 @@ OSX_EXTRA=osx/cardpeek-launcher.sh osx/cardpeek.bundle osx/generate_bundle.sh os

CLEANFILES=cardpeek_resources.c dot_cardpeek.tar.gz osx/cardpeek.icns

EXTRA_DIST=cardpeek_resources.gresource.xml cardpeek_resources.gresource $(DRIVERS) $(ICONS) dot_cardpeek_dir doc/cardpeek_ref.en.pdf doc/cardpeek_ref.en.odt update_dot_cardpeek_dir.sh script_version.h cardpeek.desktop cardpeek.appdata.xml $(OSX_ICONS) INSTALL.FreeBSD
EXTRA_DIST=cardpeek_resources.gresource.xml cardpeek_resources.gresource $(DRIVERS) $(ICONS) dot_cardpeek_dir doc/cardpeek_ref.en.pdf doc/cardpeek_ref.en.odt update_dot_cardpeek_dir.sh script_version.h cardpeek.desktop cardpeek.appdata.xml $(OSX_ICONS)

GLIB_COMPILE_RESOURCES=@GLIB_COMPILE_RESOURCES@

Expand All @@ -97,7 +97,7 @@ dist-hook:

dot_cardpeek.tar.gz: dot_cardpeek_dir
@echo " TAR $<"
$(AM_V_at)tar -c -z -f dot_cardpeek.tar.gz --directory $(srcdir)/dot_cardpeek_dir --exclude=.svn --exclude='\._*' .
$(AM_V_at)tar --help|grep -q sort= && taropts="--sort=name --clamp-mtime --format=gnu --owner=0 --group=0" ; tar -c $$taropts --directory $(srcdir)/dot_cardpeek_dir --exclude=.svn --exclude='\._*' . | gzip -cn9 > dot_cardpeek.tar.gz

cardpeek_resources.$(OBJEXT): dot_cardpeek.tar.gz $(ICONS) AUTHORS COPYING cardpeek_resources.gresource.xml
@echo " GLIB_COMPILE_RESOURCES cardpeek_resources.gresource.xml"
Expand Down
86 changes: 77 additions & 9 deletions Makefile.win32
@@ -1,4 +1,8 @@
CC = gcc
DEPS = /mingw32
TARGET = /C/Program Files (x86)/Cardpeek
MPLATFORM = mingw32

CC = $(CCPRE)gcc
GLIB_COMPILE_RESOURCES = glib-compile-resources

OBJECTS = asn1.o bytestring.o ui/gtk/gui_flexi_cell_renderer.o dyntree_model.o \
Expand All @@ -18,14 +22,18 @@ ICONS=icons/cardpeek-analyzer.png icons/cardpeek-item.png icons/cardpeek-record.
icons/cardpeek-application.png icons/cardpeek-file.png icons/cardpeek-block.png \
icons/cardpeek-atr.png icons/cardpeek-header.png icons/cardpeek-body.png

LIBS = `pkg-config --libs gtk+-3.0` -L/usr/local/lib -lcurl -L/usr/lib -lssl -lcrypto -llua -L./win32/ -lwinscard -liconv -lreadline -lncurses
export PKG_CONFIG_PATH=$(DEPS)/lib/pkgconfig
PKG_LIST = gtk+-3.0 lua openssl iconv libcurl
PKG_CFLAGS = `$(CCPRE)pkg-config --cflags $(PKG_LIST) | sed "s:-I/$(MPLATFORM):-I$(DEPS):g"`
PKG_LIBS = `$(CCPRE)pkg-config --libs $(PKG_LIST) | sed "s:-L/$(MPLATFORM):-L$(DEPS):g"`

CFLAGS = -Wall -pedantic -Wno-overlength-strings -Wno-long-long -DCURL_STATICLIB -D__USE_MINGW_ANSI_STDIO -I . -I /usr/include -I ./win32/ `pkg-config --cflags gtk+-3.0`
CFLAGS = -Wall -pedantic -Wno-overlength-strings -Wno-long-long -DCURL_STATICLIB -D__USE_MINGW_ANSI_STDIO -I . -I $(DEPS)/include -I ./win32/ $(PKG_CFLAGS)
LIBS = $(PKG_LIBS) -L$(DEPS)/bin -L./win32/ -lwinscard -lreadline -lncurses

all: cardpeek
build: cardpeek.exe

cardpeek: $(OBJECTS) win32/libwinscard.a
$(CC) -Wl,-subsystem,windows $(OBJECTS) $(LIBS) -o cardpeek
cardpeek.exe: $(OBJECTS) #win32/libwinscard.a
$(CC) -Wl,-subsystem,windows $(OBJECTS) $(LIBS) -o cardpeek.exe

dot_cardpeek.tar.gz: dot_cardpeek_dir
@echo " TAR $<"
Expand All @@ -37,11 +45,71 @@ cardpeek_resources.o: dot_cardpeek.tar.gz $(ICONS) AUTHORS COPYING cardpeek_reso
@echo "COMPILED RESOURCES"

win32/resource.o: win32/resource.rc
windres win32/resource.rc -O coff -o win32/resource.o
$(CCPRE)windres win32/resource.rc -O coff -o win32/resource.o

win32/libwinscard.a: win32/winscard.def win32/winscard.h
dlltool.exe -k -d win32/winscard.def -l win32/libwinscard.a c:/WINDOWS/system32/winscard.dll
#TODO: shouldn't be needed. To be confirmed. (It seems at least that it's not needed to compile)
#win32/libwinscard.a: win32/winscard.def win32/winscard.h
# $(CCPRE)dlltool -k -d win32/winscard.def -l win32/libwinscard.a win32/winscard.dll

clean:
rm -f $(OBJECTS) cardpeek.exe win32/libwinscard.a dot_cardpeek.tar.gz *~ cardpeek_resources.c

install: cardpeek.exe
mkdir -p "$(TARGET)"
cp -u cardpeek.exe "$(TARGET)/"
ifeq (mingw64, $(MPLATFORM))
cp -u $(DEPS)/bin/libgcc_s_seh-1.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libcrypto-1_1-x64.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libssl-1_1-x64.dll "$(TARGET)/"
else
ifneq (/mingw32, $(DEPS))
# not needed from msys2 - TODO: eliminate from debian too ()
cp -u $(DEPS)/bin/libgcc_s_sjlj-1.dll "$(TARGET)/"
endif
cp -u $(DEPS)/bin/libgcc_s_dw2-1.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libcrypto-1_1.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libssl-1_1.dll "$(TARGET)/"
endif
cp -u $(DEPS)/bin/libstdc++-6.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libatk-1.0-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libbrotlidec.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libbrotlicommon.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libbz2-1.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libcairo-2.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libcairo-gobject-2.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libcurl-4.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libdatrie-1.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libepoxy-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libexpat-1.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libffi-6.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libfontconfig-1.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libfreetype-6.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libfribidi-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libgdk-3-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libgdk_pixbuf-2.0-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libgio-2.0-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libglib-2.0-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libgmodule-2.0-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libgobject-2.0-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libgraphite2.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libgtk-3-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libharfbuzz-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libiconv-2.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libidn2-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libintl-8.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libnghttp2-14.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libpango-1.0-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libpangocairo-1.0-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libpangoft2-1.0-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libpangowin32-1.0-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libpcre-1.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libpixman-1-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libpng16-16.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libpsl-5.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libreadline7.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libtermcap-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libthai-0.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libunistring-2.dll "$(TARGET)/"
cp -u $(DEPS)/bin/libwinpthread-1.dll "$(TARGET)/"
cp -u $(DEPS)/bin/lua53.dll "$(TARGET)/"
cp -u $(DEPS)/bin/zlib1.dll "$(TARGET)/"
21 changes: 21 additions & 0 deletions README.fr.md
@@ -0,0 +1,21 @@
A propos de Cardpeek
====================

_([English version](README.md))_

Cardpeek est un outil de lecture de carte à puce avec une interface graphique basée sur GTK, fonctionnant sous GNU Linux/Windows/Mac OS X et extensible par le langage de programmation LUA.

Cardpeek est un outil qui a pour objectif de vous permettre d’accéder aux informations personnelles qui sont stockées dans vos carte à puce. Vous pouvez ainsi être mieux informé des données qui sont collectées sur vous.

Dans cette version, l’application est capable de lire le contenu des cartes suivantes :

* Les cartes à puce bancaires [EMV](doc/emv.fr.md), dont les cartes NFC - _[capture d'écran](doc/sample-emv.jpg)_
* Les cartes de transport de Paris / Île de France [Navigo](doc/navigo.fr.md), ainsi que MOBIB (Belgique) et RavKav (Israel) - _[capture d'écran](doc/sample-navigo.jpg)_
* Les cartes Monéo
* Les cartes Vitales 2
* Les passports électroniques/biométriques avec une sécurité BAC.
* La carte d'identité belge (eID)
* Les cartes SIM GSM (beta)
* Les cartes Mifare (beta)
* Les cartes conducteur tachygraphes
* Les cartes OpenPGP (beta)
52 changes: 23 additions & 29 deletions README.md
@@ -1,49 +1,43 @@
**The cardpeek homepage is located at http://pannetrat.com/Cardpeek/**
Cardpeek
========

About Cardpeek
==============
## About

Cardpeek is a Linux/Windows/Mac OS X tool to read the contents of ISO7816 smart cards. It features a GTK GUI to represent card data is a tree view, and is extendable with a scripting language (LUA).
_([Version française](README.fr.md))_

Cardpeek is a Linux/Windows/Mac OS X tool to read the contents of ISO7816 smart cards. It features a GTK GUI to represent card data in a tree view, and is extendable with a scripting language (LUA).

The goal of this project is to allow smart card owners to be better informed about what type of personal information is stored in these devices.

The tool currently reads the contents of :

* EMV Pin and Chip cards, including NFC ones.
* Navigo public transport cards, MOBIB and RavKav? cards.
* [EMV](doc/emv.md) Pin and Chip cards, including NFC ones - _[screenshot](doc/sample-emv.jpg)_
* [Navigo](doc/navigo.md) (Paris), MOBIB (Belgium), RavKav (Israel) and other public transport cards of the Calypso family - _[screenshot](doc/sample-navigo.jpg)_
* The French health card "Vitale 2"
* Electronic/Biometric passports in BAC security mode.
* Electronic/Biometric passports in BAC security mode
* GSM SIM cards (but not USIM data)
* The Belgian eID card
* Driver tachograph cards;
* OpenPGP cards (beta);
* Driver tachograph cards
* OpenPGP cards (beta)

It can also read the following cards with limited interpretation of data:
* Some Mifare cards (such as the Thalys card);
* Moneo, the French electronic purse;

More info here: http://pannetrat.com/Cardpeek/
* Some Mifare cards (such as the Thalys card)
* Moneo, the French electronic purse

A propos de Cardpeek
====================
## Build

Cardpeek est un outil de lecture de carte à puce avec une interface graphique basée sur GTK, fonctionnant sous GNU Linux/Windows/Mac OS X et extensible par le langage de programmation LUA.
**!!! Produced binaries do not run yet - See [issue #1](https://github.com/ipamo/cardpeek/issues/1) !!!**

Cardpeek est un outil qui a pour objectif de vous permettre d’accéder aux informations personnelles qui sont stockées dans vos carte à puce. Vous pouvez ainsi être mieux informé des données qui sont collectées sur vous.
- [Build instructions for Debian](doc/build-debian.md), either for the local Debian host, or for cross-compilation to Windows using mingw-w64.
- [Build instructions for Windows](doc/build-windows.md), using msys2.
- [Specific instructions for FreeBSD](doc/build-freebsd.md) in case of errors.

Dans cette version, l’application est capable de lire le contenu des cartes suivantes :
## Usage

* Les cartes à puce bancaires EMV, dont les cartes NFC.
* Les cartes de transport d'île de France Navigo, ainsi que MOBIB(Belgique) et RavKav?(Israel).
* Les cartes Monéo
* Les cartes Vitales 2
* Les passports électroniques/biométriques avec une sécurité BAC.
* La carte d'identité belge (eID).
* Les cartes SIM GSM (beta).
* Les cartes Mifare (beta).
* Les cartes conducteur tachygraphes.
* Les cartes OpenPGP (beta);
The [Reference Manual](doc/cardpeek_ref.en.pdf) provides detailed usage instructions.

Plus de détails ici : http://pannetrat.com/Cardpeek/
## Authors

Written initially by Alain Pannetrat under the [GNU General Public License, version 3](COPYING), with the additional exemption that compiling, linking, and/or using OpenSSL is allowed.

More info here: http://pannetrat.com/Cardpeek/
2 changes: 1 addition & 1 deletion a_string.c
Expand Up @@ -29,7 +29,7 @@

a_string_t* a_strnnew(unsigned n, const char* str)
{
a_string_t* cs = (a_string_t *)malloc(sizeof(a_string_t));
a_string_t* cs = malloc(sizeof(a_string_t)); //(a_string_t *)

if (n)
{
Expand Down
2 changes: 1 addition & 1 deletion cardpeek.appdata.xml
Expand Up @@ -30,7 +30,7 @@
</description>
<screenshots>
<screenshot type="default">
<image>http://cardpeek.googlecode.com/files/sample-emv.jpg</image>
<image>http://4.bp.blogspot.com/-iu2fS_ovwj8/UIqPFKy31lI/AAAAAAAAHx0/WM1qPUbUzxo/s1600/cardpeek+record.png</image>
<caption>Reading the content of a bank card.</caption>
</screenshot>
</screenshots>
Expand Down
2 changes: 1 addition & 1 deletion cardpeek_update.c
Expand Up @@ -540,7 +540,7 @@ int cardpeek_update_check(void)
}

switch (ui_question("Cardpeek is configured to check for script updates periodically.\n"
"Do you whish to perform this check now?",
"Do you wish to perform this check now?",
"Yes","No, ask me again later","No, always use the local copy",NULL))
{
case 0:
Expand Down
32 changes: 32 additions & 0 deletions clean.sh
@@ -0,0 +1,32 @@
#!/bin/bash
[ -f Makefile ] && make clean
make -f Makefile.win32 clean
for p in $(find -type f -name "*.o"); do
rm "$p"
done
for p in $(find -type f -name "*.dirstamp"); do
rm "$p"
done
for p in $(find -type d -name "*.deps"); do
rm -r "$p"
done
rm -f Makefile
rm -f Makefile.in
rm -f aclocal.m4
rm -f cardpeek
rm -f cardpeek.exe
rm -f cardpeek_resources.c
rm -f compile
rm -f config.guess
rm -f config.h
rm -f config.log
rm -f config.status
rm -f config.sub
rm -f configure
rm -f depcomp
rm -f install-sh
rm -f missing
rm -f stamp-h1
rm -f dot_cardpeek.tar.gz
rm -f win32/libwinscard.a
rm -rf autom4te.cache
37 changes: 37 additions & 0 deletions compile-cardpeek.sh
@@ -0,0 +1,37 @@
#!/usr/bin/env bash
# Created @ 13.01.2015 by Christian Mayer <http://fox21.at>


# You also need to install DBus:
# https://gist.github.com/TheFox/dc3f1b88757ba0a8a7a9
#1. Xcode 4.6.2 Command Line Tools.
#2. Homebrew (http://mxcl.github.io/homebrew/), used to install libgtk+, liblua and libssl.
#3. XQuartz (http://xquartz.macosforge.org/).

# Install 'gnome-icon-theme' for GTK+ 3.
brew install gnome-icon-theme
brew install openssl
brew link openssl --force
brew install glib
brew install gtk+3
brew install curl
brew install lua

# Check out the source.
pwd

# Create files for compiling.
autoreconf -fi

# './configure' may fail with
# Package 'xyz', required by 'abc', not found
# So we need to set the path for PkgConfig.
export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig
./configure

# Compile.
make

# Alternatively you can install
# cardpeek into your system.
#make install
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -239,7 +239,7 @@ if test "$HOST_TYPE" = "freebsd" -a ! "$ICONV_LIBS"; then
AC_MSG_WARN([
********

On FreeBSD, you may need to specify the environement variable ICONV_LIBS='-l iconv' before running 'configure', as detailed in INSTALL.FreeBSD. Otherwise 'make' may fail.
On FreeBSD, you may need to specify the environement variable ICONV_LIBS='-l iconv' before running 'configure', as detailed in doc/build-freebsd.md. Otherwise 'make' may fail.

********])
fi
Expand Down