Commit Graph

116 Commits

Author SHA1 Message Date
Michael Scherer 6e4266c886 Add YKPIV_ALGO_TAG
Replace the magic constant 0x80 when sending a packet to the key
2016-05-05 01:11:18 +02:00
Klas Lindfors ebf31d73f8 Merge branch 'attestation2' 2016-05-03 09:24:14 +02:00
Klas Lindfors 60dbac235d unblock pin should unblock pin, not change puk 2016-04-18 21:43:34 +02:00
Klas Lindfors f5fab7e962 add ykpiv touchpolicy to ykpiv 2016-03-17 12:29:25 +01:00
Klas Lindfors 189fe723f1 add YKPIV_KEY_ATTESTATION to ykpiv_import_key() 2016-03-17 12:29:13 +01:00
Klas Lindfors 7aa6ac93e6 add touch-policy cached 2016-03-17 10:52:03 +01:00
Klas Lindfors bfc3185e9b Merge branch 'master' into attestation2 2016-03-10 15:34:25 +01:00
Alessio Di Mauro 39f5dbd119 Typo. 2016-01-11 12:49:58 +01:00
Alessio Di Mauro 8d29845b51 Remove unnecessary fields from ykpiv_state. 2016-01-11 12:44:43 +01:00
Klas Lindfors d3b271cd9e next version will be 1.3.0 since new interfaces where added
also fixup map file to show 1.2.0 correctly
2015-12-14 12:22:13 +01:00
Alessio Di Mauro f3520c44c5 Fixup ykpiv exports and untabify. 2015-12-11 12:17:57 -08:00
Mikhail Denisenko 6042a2140e Implemented C_SetPIN 2015-12-11 13:23:38 -05:00
Alessio Di Mauro 4849e494be Add retired key definitions to libykpiv.
Include retired keys in import_key's check.
2015-11-20 15:44:19 +01:00
Klas Lindfors ed38b96fe4 raise buffer sizes and remove a miss-leading error 2015-11-20 13:14:55 +01:00
Alessio Di Mauro e39b203d66 Remove leftover print. 2015-11-20 11:45:35 +01:00
Alessio Di Mauro 6269280578 Add import private key to libykpiv. 2015-11-19 18:30:58 +01:00
Alessio Di Mauro 9b16e20807 Export ykpiv_import_private_key globally. 2015-11-19 18:30:58 +01:00
Alessio Di Mauro b6d4238856 Initial work on doing padding internally 2015-11-19 18:30:58 +01:00
Klas Lindfors 32e66f4fc6 add attest action 2015-11-18 13:42:11 +01:00
Klas Lindfors 0dc8d13922 add f9 slot for attestation 2015-11-18 13:20:41 +01:00
Klas Lindfors 41b3b50613 always reset the context to SCARD_INVALID_CONTEXT after release 2015-11-11 15:02:55 +01:00
Alessio Di Mauro f2a3a3acc1 YKPIV: Make sure that context is established only if it is invalid. 2015-11-10 15:36:35 +01:00
Alessio Di Mauro d38df01c6c Change applet to application. 2015-11-06 13:14:52 +01:00
Alessio Di Mauro 651280ca8b Initialize context to -1 and always call establish context. 2015-11-03 09:56:27 +01:00
Klas Lindfors e4059a5995 Merge branch 'master' into development
Conflicts:
	NEWS
	configure.ac
2015-10-20 20:48:57 +02:00
Klas Lindfors 69326b868d actually run valgrind for the tests 2015-10-09 10:40:59 +02:00
Klas Lindfors 7640d34245 use 261 byte buffer for receive 2015-09-28 11:15:30 +02:00
Alessio Di Mauro d793f200bb Merge branch 'development' of gitlab.yubico.com:/Yubico/yubico-piv-tool into development
Conflicts:
	ykcs11/ykcs11.c
2015-09-08 18:04:45 +02:00
Alessio Di Mauro 99ebfdf37c Added support for CKU_CONTEXT_SPECIFIC. 2015-09-08 18:00:48 +02:00
Klas Lindfors 30ed311244 remove ykpiv_sign_data2() from map 2015-09-08 15:33:15 +02:00
Klas Lindfors 49eab7dbfa drop ykpiv_sign_data2() and change ykpiv_sign_data() to not pad 2015-09-08 15:29:10 +02:00
Klas Lindfors 4bbd888f97 let ykpiv_connect() call ykpiv_list_readers() 2015-09-08 12:29:07 +02:00
Klas Lindfors 8eb7595d42 add list-readers action to tool
also refactor ykpiv_list_readers() a bit
2015-09-08 12:26:42 +02:00
Klas Lindfors 1a9e62cec8 drop ykpiv_connect2() and add ykpiv_list_readers() 2015-09-07 15:54:57 +02:00
Klas Lindfors 984a124508 Merge branch 'master' into ykcs11
Conflicts:
	NEWS
	configure.ac
2015-09-07 14:34:34 +02:00
Klas Lindfors b770155cbb Merge branch 'devel/p384' into ykcs11
Conflicts:
	NEWS
	configure.ac
	lib/ykpiv.c
	lib/ykpiv.h
	tool/util.c
	tool/util.h
2015-09-07 14:32:37 +02:00
Klas Lindfors da29e6947c authentication failed is supposed to be 0x63cX not 0x630X
so mask everything but the low 4 bits for remaining tries
2015-08-24 08:28:49 +02:00
Klas Lindfors aabe4fb20e Merge branch 'master' into ykcs11
Conflicts:
	lib/ykpiv.c
	lib/ykpiv.h
2015-08-20 09:30:49 +02:00
Klas Lindfors 81f3b608fd continue looping over the readers if one fails during setup
also continues if a reader fails when selecting (no applet)
2015-08-20 09:25:18 +02:00
Alessio Di Mauro df2ff3cd51 Fixed pkcs1.5 padding 2015-08-12 15:41:58 +02:00
Alessio Di Mauro 7ce5ea4dc2 Added sign_data2 to libykpiv to disable padding. 2015-08-03 16:22:58 +02:00
Alessio Di Mauro de7e1ed000 Added basic version of login. 2015-07-14 16:51:08 +02:00
Alessio Di Mauro dae7297050 Major refactor and vendor abstraction. 2015-07-14 14:13:02 +02:00
Klas Lindfors fb0c437533 check result from get_length()
found with clang scan-build
2015-07-09 11:01:49 +02:00
Klas Lindfors 3fd716791b avoid copying data to NULL pointer
found by clang scan-build
2015-07-09 10:34:39 +02:00
Klas Lindfors 43ffb65462 don't do memcpy with NULL argument
found with clang scan-build
2015-07-09 10:28:21 +02:00
Klas Lindfors 2e91cd0f5b Merge branch 'master' into devel/p384 2015-07-08 15:09:11 +02:00
Klas Lindfors 103930daf9 add Requires.private on libcrypto 2015-07-08 14:50:43 +02:00
Alessio Di Mauro f95c6f2f2d Added basic multivendor support for token information. 2015-07-03 17:23:16 +02:00
Klas Lindfors 3b080dca45 relicense to 2-clause BSD license 2015-07-01 16:34:20 +02:00