Commit Graph

13 Commits

Author SHA1 Message Date
Klas Lindfors 9db6d3d45a replace EVP_MD_CTX_verify() stuff with RSA_verify()/ECDSA_verify()
since the EVP_MD_CTX stuff doesn't seem to exist on osx at all.
2015-03-20 14:04:26 +01:00
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 368b527fa1 add DER format for certificate import 2014-12-05 11:10:33 +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 8d8257583e make util.h header more self-contained 2014-09-26 15:18:40 +02:00
Klas Lindfors 07d831c50c drop apdu structure from tool 2014-06-25 15:44:21 +02:00
Klas Lindfors c4d8492682 make get_length() take a const buffer 2014-06-25 15:10:56 +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