Commit graph

125 commits

Author SHA1 Message Date
Henryk Plötz
20a0124255 Add test for ReadCard, add CloseCardSession command 2019-08-23 15:43:49 +02:00
Henryk Plötz
9a0e9c7d64 Fix WriteFileBase for new logging/transmission API 2019-07-10 15:57:03 +02:00
Henryk Plötz
24538d496a Re-do logging again 2019-07-09 17:13:51 +02:00
Henryk Plötz
b642a6a886 Redo logging, change API boundary between transmission and transport 2019-07-09 02:43:44 +02:00
Henryk Plötz
73d7b1181f Redo logging 2019-07-09 01:39:33 +02:00
Henryk Plötz
1d621911fa Make sure that WriteFiles is not used in parsing 2019-07-08 17:21:32 +02:00
Henryk Plötz
73783a9eec Implement file upload to terminal 2019-07-08 16:56:39 +02:00
Henryk Plötz
e70bea78de Improve performance. Allow file upload 2019-07-05 14:14:55 +02:00
Henryk Plötz
2fa18b11e8 Add append_ API allowing duplicate Tags in a container 2019-07-05 01:19:55 +02:00
Henryk Plötz
28eaf8da2d wait_for_completion after setting terminal id 2019-07-04 22:35:09 +02:00
Henryk Plötz
0d55b72797 Add SetTerminalID command 2019-07-04 21:21:37 +02:00
Henryk Plötz
518fc7f04c Some more tag types 2019-07-04 20:09:45 +02:00
Henryk Plötz
82d01e18bf Improve TLV repr 2019-07-03 19:22:31 +02:00
Henryk Plötz
234147f4a8 Change name of TLVItem to TLV 2019-07-03 18:40:13 +02:00
Henryk Plötz
1f3bc5fcb2 Properly decode FEIG extended error messages
Some unfinished code paths
2019-07-03 11:49:11 +02:00
Henryk Plötz
b97db0ca88 Fix TLVItem.__repr__ 2019-07-02 14:40:07 +02:00
Henryk Plötz
f9af39fe5e Add FEIG cVEND TLV vendor quirk 2019-07-02 14:37:58 +02:00
Henryk Plötz
3e6d8b5cf5 Fix Context.get 2019-07-02 14:37:38 +02:00
Henryk Plötz
8636f8017d Add ChangePTConfiguration packet 2019-07-02 14:37:22 +02:00
Henryk Plötz
57cc50bc3f Cleaner rewrite of TLV infrastructure 2019-07-02 14:02:05 +02:00
Henryk Plötz
374de48769 Add infrastructure to handle text encoding
(Encoding for text fields may be set in local context)
2019-07-02 00:17:11 +02:00
Henryk Plötz
1687ecf2ff Add tools to mange (thread-local) context information 2019-07-01 22:25:33 +02:00
Henryk Plötz
6e28db0f6c Allow easier access to TLV items and TLV containers.
All tags exist implicitly (are created on access), but will only be realized when assigned a value
2019-06-30 21:39:02 +02:00
Henryk Plötz
166853a029 Add a currency code data type 2019-06-30 03:58:24 +02:00
Henryk Plötz
a939374705 Implement Enum flag field types, remove flag construction helpers 2019-06-30 03:34:24 +02:00
Henryk Plötz
ad28f4abcf Add data content validation 2019-06-30 03:02:28 +02:00
Henryk Plötz
6a052e3caf Improve test coverage 2019-06-30 01:44:10 +02:00
Henryk Plötz
b066948705 Add OVERRIDE_BITMAPS function 2019-06-29 19:40:23 +02:00
Henryk Plötz
79302c5153 Add a raw bytes field type 2019-06-29 19:29:32 +02:00
Henryk Plötz
782e59df5b Temporary fix EOD packet processing 2019-06-29 16:51:50 +02:00
Henryk Plötz
d00914258f Fix TLV output 2019-06-29 16:51:30 +02:00
Henryk Plötz
5b15fcaefc Fix long packets 2019-06-29 13:31:44 +02:00
Henryk Plötz
fe491571c1 Consolidate payment_type/status_byte/card_type as status_byte 2019-06-29 12:48:25 +02:00
Henryk Plötz
3cac36262e Add "get()" helper 2019-06-29 12:48:18 +02:00
Henryk Plötz
05fde9b351 Nicer TLV tag output 2019-06-29 12:45:32 +02:00
Henryk Plötz
08753a98f7 Fix parsing of LLLVar 2019-06-29 12:44:53 +02:00
Henryk Plötz
3bbb02e2cd Fix parsing of the SUPER CURSED Completion packet by breaking the parser some more
Will now 'detect' optional fields by retrying the parse without the field
2019-06-29 11:55:36 +02:00
Henryk Plötz
660a404bc9 Make parsing/serializing in socket protocol work 2019-06-29 11:34:11 +02:00
Henryk Plötz
77f1762ece Easier ByteField representation 2019-06-29 11:28:07 +02:00
Henryk Plötz
48aa86598e Completely revamp the APDU parser and serializer
Breaks API, but all tests are ok now (except for the super cursed completion packet)
2019-06-29 00:42:41 +02:00
Henryk Plötz
3f6f49b8d4 Fix some bugs 2019-06-27 20:45:05 +02:00
Henryk Plötz
db35a2b428 Add roundtrip parsing-serializing-compare test (fails) 2019-06-27 19:59:01 +02:00
Henryk Plötz
482624b4ae Fix invalid regex literal 2019-06-27 17:42:11 +02:00
Henryk Plötz
f506d69f86 Make order of arguments stable (kwargs wasn't sorted, at least on Python 3.5) 2019-06-27 17:38:49 +02:00
Henryk Plötz
c1a4a03bed Merge remote-tracking branch 'karolyi/master' into py3 2019-06-27 17:25:29 +02:00
Henryk Plötz
ffece753de
Update ecr.py
Send empty TLV for payment
2019-06-27 11:23:22 +02:00
Henryk Plötz
3d99011e62
Update base_packets.py
Allow tlv on Authorisation packet
2019-06-27 11:22:10 +02:00
e884bcfe7c
Bumping version + pythonizing 2019-02-24 11:27:00 +01:00
Raphael Michel
28c187d9a0
Workaround for ingenico timeouts 2019-02-24 11:27:00 +01:00
101798737b
Fix flake8 error 2018-12-31 11:58:01 +01:00