iceman1001
4db1627e1d
coverit #373451
2022-01-29 10:23:21 +01:00
iceman1001
c5e9201dd8
fix cppcheck shadowing
2022-01-29 10:05:26 +01:00
Matt Moran
750fd646c1
Shorten command help text, reorder changelog
2022-01-17 23:38:00 +13:00
Matt Moran
072e97998f
Fix wasn't freeing arg ctx, improve comments
2022-01-15 14:40:40 +13:00
Matt Moran
4c9d167966
Update styles to match changes
2022-01-15 14:02:46 +13:00
Matt Moran
f057184ee3
Fix styles (missing braces)
2022-01-15 13:16:34 +13:00
Matt Moran
a6280e2978
Merge remote-tracking branch 'upstream/master' into feat/hf-gallagher-remove-aid-limits
2022-01-15 12:11:12 +13:00
Matt Moran
aa6b74a08d
Fix was attempting to credential file when --noappcreate was passed
2022-01-13 21:06:21 +13:00
Philippe Teuwen
5a4584358c
make style
2022-01-09 14:10:26 +01:00
iceman1001
5ff043e5ab
null key fix
2022-01-08 15:28:36 +01:00
iceman1001
eaf968092c
coverity fixes
2022-01-08 13:14:53 +01:00
iceman1001
256565f820
coverity fixes for mem leaks. added a macro for freeing cliparser context too
2022-01-08 13:08:51 +01:00
iceman1001
8cd19d7c87
textual / style
2022-01-08 13:01:10 +01:00
Philippe Teuwen
5a0dda6bb0
Make HFGAL_* macros available to all as PM3_* macros
2022-01-08 12:00:54 +01:00
Matt Moran
cb6a1db852
Continue reading credentials if one fails (e.g. when using different site keys)
2022-01-08 18:13:29 +13:00
Philippe Teuwen
30aa7aa7d1
Adapting license headers, WIP
2022-01-08 00:40:52 +01:00
Matt Moran
1f8217ec2e
Use DesfireGetAIDList
to find an available AID
...
... and check that user-specified AID is available (before writing to the CAD)
2022-01-08 00:36:59 +13:00
Matt Moran
b3dc6f62ab
Refactor, adds select_aid_and_auth_with_key
2022-01-07 23:59:46 +13:00
Matt Moran
beefc97995
Add ability to use custom CAD key, add ability to skip some actions
...
For cloning & deleting:
- Add ability to use custom Card Application Directory key (`--cadkey`)
- Add ability to skip updating the CAD (`--noupdatecad`)
- Add ability to skip creating/deleting the app and only update the CAD (`--nocreateapp`, `--nodeleteapp`)
2022-01-07 23:57:47 +13:00
Matt Moran
69049a6621
Remove incorrect AID validation
2022-01-07 19:31:36 +13:00
iceman1001
6dbde61c4e
cppcheck fixes
2022-01-06 21:08:22 +01:00
Matt Moran
533b31bc6d
Format code/strings
2022-01-07 01:03:43 +13:00
Matt Moran
6f510db9fb
Fix incorrect CAD was written when removing credentials
2022-01-07 00:30:25 +13:00
Matt Moran
84ff84ffd0
Add hf gallagher diversify
2022-01-07 00:05:38 +13:00
Matt Moran
82cd44e99f
Reorder function definitions
...
Order is roughly:
- exported helpers
- helpers
- read -> create -> delete
- exported commands
2022-01-06 00:11:30 +13:00
Matt Moran
caebfdca62
Update license from LGPL to GPL
2022-01-05 23:54:18 +13:00
Matt Moran
8ecfc4af34
Make variables & function names snake_case
2022-01-05 23:53:03 +13:00
Matt Moran
fad30294aa
Format styles
2022-01-05 23:08:10 +13:00
Matt Moran
81da8a1317
Add hf gallagher delete
command
2022-01-05 00:22:34 +13:00
Matt Moran
28437f018b
Check if facility already exists in CAD
...
Disallow duplicate credentials for the same facility (because readers won't handle it properly - I assume they'll just use the first entry?)
2022-01-04 22:38:30 +13:00
Matt Moran
d7989caad0
Automatically choose an new valid Gallagher AID
2022-01-04 22:15:00 +13:00
Matt Moran
d3da798517
Move GallagherDiversifyKey
to top of file
2022-01-04 21:14:18 +13:00
Matt Moran
28844756d9
Add default MIFARE Site Key
2022-01-04 18:19:42 +13:00
Matt Moran
f395b28643
Extract cadAidUintToByte
and cadAidByteToUint
2022-01-04 18:06:02 +13:00
Matt Moran
21b080e49a
Extract selectAid
and authenticate
commands
2022-01-04 17:42:05 +13:00
Matt Moran
1e3ed42f54
Extract CAD_AID to a constant
2022-01-04 17:04:05 +13:00
Matt Moran
863cf16015
Add comments and logging
2022-01-04 16:59:59 +13:00
Matt Moran
aed687cb96
Add basic cloning support
2022-01-03 17:02:56 +13:00
Matt Moran
13ff8d50cf
Add hf gallagher reader
command
2022-01-01 22:22:57 +13:00
Matt Moran
a1db683673
Add basic structure for hf gallagher
2021-12-29 23:42:06 +13:00