David Ward
c18df66d4c
Fix "make dist" without "make all"
...
Fix prerequisites and Automake variables in the Makefiles, so that
running "make dist" does not fail if the program is not built. When
running help2man, have it execute "gengetopt --show-help" instead
of the built program to obtain the help message.
2020-04-11 10:09:27 -04:00
David Ward
5abc01cf70
Respect Automake silent mode in custom rules
2020-04-11 10:09:27 -04:00
Frank Morgner
c63cc40c34
fixed misuse of realloc
...
if called with size 0, realloc frees the buffer, which may eventually
lead to a double free corruption.
2019-01-17 15:04:35 +01:00
Frank Morgner
3209ef2261
nPA: fixed Python 2/3 incompatibilities
2019-01-15 14:33:54 +01:00
Rob
d40b203774
Fix cast of APDU res to byte array (aka string)
2018-10-26 13:00:32 +02:00
Frank Morgner
5082ab09d4
vicc: temporarily drop python3 compatibility for relay
...
fixes https://github.com/frankmorgner/vsmartcard/issues/129
2018-10-20 04:05:44 +02:00
Frank Morgner
04642a3bfc
fixed more Python 3 issues
...
also fixes the debug output
2018-05-03 22:55:10 +02:00
Frank Morgner
3b7c04c535
added more Python 3 compatibility
...
fixes https://github.com/frankmorgner/vsmartcard/issues/71
2018-05-03 16:30:08 +02:00
Frank Morgner
ae0d04f8b7
added some Python 3 compatibility
2018-05-02 16:21:44 +02:00
Dániel SÜTTŐ
a9482d9f99
Use at least two bytes for filesize in FCP template ( #116 )
...
* Fix length of filesize parameter in FCP template
'Number of data bytes in the file' parameters should be represented on
two bytes in FCP.
* Extendable length of filesize parameter in FCP
Increase length of filesize parameter in FCP template if can't be
represented on two bytes.
2018-01-10 23:07:08 +01:00
Dániel SÜTTŐ
b0783bd373
Fix selection by DF name ( #118 )
...
DF names shall be globally uniqe within a given card. Selecting by DF
name should be made on card level instead of current DF level.
A new list has been inroduced as a static attribute of MF in order to
track each named DF.
* Prevent prettyprint from infinite recursion
By adding a possible self-pointer to MF prettyprint_anything function
got into an infinite loop. Printing of named DFs has been cut off.
2018-01-10 23:01:56 +01:00
Daniel SUTTO
0f4e79db17
Fix SFID parameter in FCP template
...
In FCP SFID tag bits 8 to 4 encode the short EF identifier.
2018-01-08 13:03:32 +01:00
Daniel SUTTO
666294b313
Fix missing raise statement before SwError
2018-01-08 12:29:44 +01:00
Frank Morgner
377774fd65
vicc: catch ctrl-c via KeyboardInterrupt
...
... and ignore EINT in recv as it may be triggered for various other reasons
fixes https://github.com/frankmorgner/vsmartcard/issues/95
2017-04-05 12:20:20 +02:00
Nick Russler
de515d80d2
Add MSI installer for win32 virtualsmartcard.
...
Also ignore temporary VS artifacts and removes conflicting snprintf definition with standard definition
2016-11-12 00:16:36 +01:00
Frank Morgner
eb4c8a8103
fixed distcheck
2016-10-10 10:33:09 +02:00
Frank Morgner
fd8ae7c7c8
Merge pull request #78 from d0/no_serialization
...
Remove serialization support
2016-05-15 17:32:03 +02:00
Frank Morgner
0d1977fc1a
print QR code in case of reversed mode
2016-04-15 11:11:15 -04:00
Dominik
41bd7ab105
Remove serialization support
2016-04-10 19:31:24 +02:00
Dominik
de683869b4
Refactored the python files in the cards directory according to PEP8
2016-03-19 10:04:16 +01:00
Dominik
33dc00e175
Fix broken function SmartcardSAM.set_asym_cipher
2016-03-19 07:35:15 +01:00
Dominik
c0bea2cd25
Refactor code according to PEP8
2016-03-13 15:30:15 +01:00
Dominik
08f91685fc
Updated regression tests and simplified code a bit
2016-03-05 13:46:22 +01:00
Dominik
c8f27768a4
Added a regression test for strings generated by the old crypt() implementation
2016-03-03 22:06:08 +01:00
Dominik
82e924811e
Added a regression test for strings generated by the old protect_string() implementation
2016-03-03 21:33:07 +01:00
Dominik
36970a26d7
Replace PBKDF2 class by python stdlib implementation
...
hashlib.pbkdf2_hmac has been backported to Python 2.7 (see PEP 466). In
order to avoid reinventing the wheel and to include less third party
code we switch to the stdlib implementation.
2016-03-02 23:02:59 +01:00
Frank Morgner
76a4a601d8
use z modifier for printing size_t
2016-03-01 14:51:25 +01:00
Frank Morgner
29dfed5de9
Updated mail address
2015-12-15 16:58:28 +01:00
Erik Nellessen
e8076f0f38
Added missing import.
2015-09-28 15:49:45 +02:00
Frank Morgner
c3ba3ca4a3
Maps sleep to Sleep on Windows
2015-09-20 02:54:40 +02:00
Frank Morgner
d9dfc2c697
Checks for ssize_t
...
Works around the different typedef of ssize_t in MinGW
2015-09-20 02:54:40 +02:00
Frank Morgner
57d55c8776
Removes definition of BOOL which conflicts with mignw
2015-09-18 08:47:04 +02:00
Frank Morgner
a23913ff9c
Uses %Ix instead of %x
...
Fixes compiler warning about implicit type conversion on 64 bit machine
2015-09-18 15:22:40 +02:00
Frank Morgner
16ee860a66
Fixes windows warning about casting on x64
2015-09-18 15:22:35 +02:00
Frank Morgner
13307b950e
workaround for windows compiler without inet_ntop
2015-08-22 00:22:41 +02:00
Frank Morgner
f66c7834ba
fixed windows cross compilation of vpcd
2015-08-21 22:56:13 +02:00
Frank Morgner
e4b438e870
fixed windows cross compilation of vpcd-config
2015-08-21 04:34:48 +02:00
Frank Morgner
f0c0805679
vpcd-config: use the configured maximum number of slots
2015-08-21 03:48:19 +02:00
Frank Morgner
24dbde75b0
fixed dependency to pcsclite.h
...
regression of 1581c61e4b
2015-08-13 09:21:38 +02:00
Frank Morgner
799894c83a
don't print raw binary data
2015-08-13 09:21:38 +02:00
Frank Morgner
a7c0f04ec2
removed code duplication
...
regression of cde9393
2015-06-21 00:16:25 +02:00
Frank Morgner
470552da48
fixed missing import of sys
...
closes #55 #56 #57 #58
2015-06-20 00:36:50 +02:00
Frank Morgner
d471598380
Let SmartcardOS have only stubs
...
mf and SAM are implementations pecific to Iso7816OS
2015-05-21 22:04:44 +02:00
Frank Morgner
cbc8ab7ab9
implement reset() for relay card
...
fixes #48
2015-05-21 21:56:08 +02:00
Frank Morgner
ca7dbab716
moved HandlerTestOS to cards/HandlerTest.py
2015-05-20 02:17:55 +02:00
Frank Morgner
dbc8054813
moved NPAOS to nPA.py
2015-05-20 02:17:55 +02:00
Frank Morgner
cde9393e89
moved CryptoflexOS to cryptoflex.py
2015-05-20 02:17:55 +02:00
Frank Morgner
3277da7824
moved RelayOS into separate file
2015-05-20 02:17:55 +02:00
Frank Morgner
3f74291dc2
fixed pycrypto import
...
fixes regression from bca53f92f1
2015-05-18 08:43:37 +02:00
Frank Morgner
bca53f92f1
import Crypto only when needed
2015-05-18 07:55:18 +02:00