Commit Graph

1234 Commits

Author SHA1 Message Date
Klas Lindfors e8d0a6f265 refactor import_key() to use transfer_data() instead of own chaining. 2014-02-09 20:30:18 +01:00
Klas Lindfors dd9be8f82a let import_cert() use transfer_data() instead of own chaining 2014-02-09 20:26:11 +01:00
Klas Lindfors 7ae105c7d1 better error messages for verify pin 2014-02-08 22:42:48 +01:00
Klas Lindfors e50075534b successfull -> successful 2014-02-08 22:39:35 +01:00
Klas Lindfors 64f4d4a29a drop verbose print of digest 2014-02-08 22:38:57 +01:00
Klas Lindfors b8fd17fadc setup the ec pub key properly when doing generate key 2014-02-08 22:20:42 +01:00
Klas Lindfors d3b4574ec7 switch to sha256 for cert requests and fix for ec csr 2014-02-08 22:11:59 +01:00
Klas Lindfors cc6283f618 add unblock-pin action and more text and checks to change- 2014-02-08 21:33:36 +01:00
Klas Lindfors b603840066 make sure to set ret to false before goto 2014-02-08 21:18:33 +01:00
Klas Lindfors b19655496d properly initialize memory to 0 2014-02-08 21:16:37 +01:00
Klas Lindfors f2c7fb4497 check the new key before setting it 2014-02-08 21:08:19 +01:00
Klas Lindfors aa25c6fc16 more help on actions 2014-02-07 23:17:16 +01:00
Klas Lindfors f984081349 implement change-pin 2014-02-07 23:13:44 +01:00
Klas Lindfors 4c1a692838 let generate use chaining with transfer_data() 2014-02-07 17:11:56 +01:00
Klas Lindfors 4a51550f4b break out looped sending from request-cert to own function 2014-02-07 16:58:29 +01:00
Klas Lindfors 0e054bd61c fix bug with continued data in request cert 2014-02-07 16:15:15 +01:00
Klas Lindfors d419d425b0 drop debug prints 2014-02-07 16:12:02 +01:00
Klas Lindfors e26a595361 correct certificate length text 2014-02-07 15:25:41 +01:00
Klas Lindfors 1f9b7ffca0 remove usage of strtok_r so it builds on windows again 2014-02-07 15:19:54 +01:00
Klas Lindfors 164812abfc reorder includes so openssl includes fix X509_NAME on windows 2014-02-07 15:19:47 +01:00
Klas Lindfors 37b7da60f2 some support for ecc key import 2014-02-07 13:45:24 +01:00
Klas Lindfors c96caa9ceb refactor send_len to calculate the send_len internally 2014-02-07 11:29:32 +01:00
Klas Lindfors 85a9dc4252 fix warnings and variable names 2014-02-07 11:24:56 +01:00
Klas Lindfors 8141e44161 add some code for ecc CSR 2014-02-07 11:18:28 +01:00
Klas Lindfors 823afda92e more help for subject, and generate man page from detailed-help 2014-02-07 11:12:25 +01:00
Klas Lindfors 26499f11ca Merge branch 'devel/request_cert' 2014-02-07 10:55:04 +01:00
Klas Lindfors 4b64a5c800 working certificate-requests 2014-02-07 10:52:56 +01:00
Klas Lindfors cfbb702068 more work on request, try to sign digest 2014-02-06 10:20:50 +01:00
Klas Lindfors ca45b6a565 add a verify-pin action (needed for signing request) 2014-02-06 10:20:37 +01:00
Klas Lindfors 71cb66e5bf refactor so we get algorithm from a function. 2014-02-06 09:54:29 +01:00
Klas Lindfors d9507f0787 open output for writing.. 2014-02-06 09:31:32 +01:00
Klas Lindfors be9211dc5b more work on request 2014-02-06 09:30:59 +01:00
Klas Lindfors a7d5f1ed0a start on request certificate action 2014-02-06 09:06:09 +01:00
Klas Lindfors e601a08e52 print verbose information about found key 2014-02-06 09:04:19 +01:00
Klas Lindfors 8f58430e1a print sizes in a more stable fashion 2014-02-06 09:04:19 +01:00
Klas Lindfors d0f7a291b2 don't print password
instead remind the user the password might be wrong.
2014-02-06 09:04:18 +01:00
Klas Lindfors f3f89d8f48 remove debug prints. 2014-02-06 09:04:18 +01:00
Klas Lindfors 24c7f22022 rework get_length() and fix bug(s) 2014-02-06 09:04:18 +01:00
Klas Lindfors 3657cc5000 more text 2014-02-06 09:04:18 +01:00
Klas Lindfors 1466163db6 use sizeof(aid) instead of constant 2014-02-06 09:04:18 +01:00
Klas Lindfors d9e2bbb26b chuid comments.. 2014-02-06 09:04:18 +01:00
Klas Lindfors 1032f7009f add code for setting CHUID 2014-02-06 09:04:18 +01:00
Klas Lindfors 7f75184552 small tool to build the fasc 2014-02-06 09:04:11 +01:00
Klas Lindfors 7af2439f45 change around and let send_data() take a pointer to APDU 2014-02-06 09:03:46 +01:00
Klas Lindfors bfe8f2d376 ignore more 2014-02-06 09:03:46 +01:00
Klas Lindfors 7fc8dd8c7c add a config.rpath 2014-02-06 09:03:46 +01:00
Klas Lindfors ead674dce8 add a windows.mk 2014-02-06 09:03:42 +01:00
Klas Lindfors 708a9cb5a4 pcsc for platforms fixes 2014-02-06 09:03:01 +01:00
Klas Lindfors 711f24a846 add password for private keys 2014-02-06 09:03:01 +01:00
Klas Lindfors 73589efb13 add certificate import 2014-02-06 09:03:01 +01:00