Klas Lindfors
0f26a7c1e3
refactor dump_hex to drop some redundant code
2015-03-18 15:09:32 +01:00
Klas Lindfors
f86ded25bf
rip input_ready() and call isatty() instead
...
should be more portable (work on windows)
relates to #12
2015-01-12 21:20:15 +01:00
Klas Lindfors
b1a673b1f9
try to discover if there is input waiting on stdin
...
otherwise give the user a hint
resolves #12
2015-01-12 16:27:13 +01:00
Klas Lindfors
36468219c2
check length of private key components before setting
...
the card functions only accepts key components of correct size
so here we add 0 before if they're shorter (usually one byte shorter)
thus fixing the issue where the card returned 6f00
2014-11-12 14:08:11 +01:00
Klas Lindfors
a7d5eb9d1c
start implementing signer
2014-09-26 16:00:18 +02:00
Klas Lindfors
c4d8492682
make get_length() take a const buffer
2014-06-25 15:10:56 +02:00
Klas Lindfors
d5222c10b7
add macros for piv objects
2014-06-24 14:07:15 +02:00
Klas Lindfors
33c71344de
let util.h include cmdline.h
...
since it's using declarations from it..
2014-06-24 10:42:50 +02:00
Klas Lindfors
81ddeb047f
let parse_name() take a const char* instead
2014-06-24 10:28:45 +02:00
Klas Lindfors
92db159c4f
change internal.h to util.h
2014-06-24 10:28:45 +02:00
Klas Lindfors
ab3083dc1b
split out util functions from yubico-piv-tool.c
2014-06-24 09:43:27 +02:00