Klas Lindfors
|
543af9de00
|
fix null dereferences
reported by coverity's free scanner
|
2014-03-11 10:53:49 +01:00 |
|
Klas Lindfors
|
63a9c1b322
|
actually do the full mutual auth with a challenge from the host
|
2014-02-14 10:36:58 +01:00 |
|
Klas Lindfors
|
29d2fb85bf
|
correct GUID offset
GUID was set one byte off resulting in invalid message
|
2014-02-13 08:42:50 +01:00 |
|
Klas Lindfors
|
90cfda0ba6
|
return at the end of main() and call EVP_cleanup() before
|
2014-02-12 08:15:43 +01:00 |
|
Klas Lindfors
|
77d6f3e5c1
|
make sure to initialize num_readers before using.
|
2014-02-11 13:42:46 +01:00 |
|
Klas Lindfors
|
8b0142088b
|
simplify selfsign and request, some stuff is already allocated.
|
2014-02-11 13:23:44 +01:00 |
|
Klas Lindfors
|
6eb9572056
|
use sign_data() from request_certificate()
|
2014-02-10 13:27:01 +01:00 |
|
Klas Lindfors
|
7c1b071e39
|
break out signing from selfsign to it's own function
|
2014-02-10 13:24:19 +01:00 |
|
Klas Lindfors
|
42faa7d0c8
|
add a selfsign-certificate action
|
2014-02-10 13:08:55 +01:00 |
|
Klas Lindfors
|
ef1013d8b1
|
move opening files to it's own function
|
2014-02-10 12:17:43 +01:00 |
|
Klas Lindfors
|
dcb230bf66
|
text
|
2014-02-10 10:19:52 +01:00 |
|
Klas Lindfors
|
0c178cce0e
|
properly dereference pointer before assigning
|
2014-02-10 09:51:56 +01:00 |
|
Klas Lindfors
|
2b1b70caa0
|
re-encode fasc
|
2014-02-10 08:56:56 +01:00 |
|
Klas Lindfors
|
95625a5c1c
|
make sure to zero-out apdu before use
|
2014-02-09 21:07:19 +01:00 |
|
Klas Lindfors
|
2c529eb108
|
more text about pin-retries
|
2014-02-09 20:31:51 +01:00 |
|
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
|
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
|
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 |
|