Commit Graph

1069 Commits

Author SHA1 Message Date
Klas Lindfors 1c2d98b16d use top_builddir for relations between dirs 2015-12-14 12:54:25 +01:00
Klas Lindfors fc4443aca7 add configure.ac as a dependency of the yubico-piv-tool binary
since if version number changes it should be rebuilt
relates #53
2015-12-14 12:53:18 +01:00
Klas Lindfors 35c449e374 change multiplication of minor to 10 so we don't overflow
possibly temporary fix..
2015-12-14 12:48:28 +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
Klas Lindfors a4ee5725b8 add generic write and read object actions for the tool
this take in/out hex dump of the data
2015-12-14 10:55:32 +01:00
Alessio Di Mauro 63b8b43bef Bump LT version. 2015-12-11 12:18:23 -08:00
Alessio Di Mauro f3520c44c5 Fixup ykpiv exports and untabify. 2015-12-11 12:17:57 -08:00
Alessio Di Mauro 48ac9bb156 Merge pull request #51 from denisenkom/misc-bugfixes
Implement explicit pin management in libykpiv and expose it through C_SetPIN in ykcs11.
2015-12-11 12:11:47 -08:00
Mikhail Denisenko 6042a2140e Implemented C_SetPIN 2015-12-11 13:23:38 -05:00
Alessio Di Mauro fb28d56a07 Merge pull request #50 from denisenkom/misc-bugfixes
Fixed extraction of RSA modulus and exponent
2015-12-10 10:34:49 -08:00
Mikhail Denisenko 5a60faf779 Fixed extraction of RSA modulus and exponent 2015-12-09 13:13:24 -05:00
Alessio Di Mauro 2bbe710559 Merge pull request #49 from Jakuje/master
Get rid of warnings about unused functions when running without HW_TESTS
2015-12-08 09:50:14 -08:00
Klas Lindfors 3e920d11b3 bump next version to 1.2.3 2015-12-08 14:22:39 +01:00
Klas Lindfors 98c0b34699 NEWS for 1.2.2 2015-12-08 14:13:38 +01:00
Klas Lindfors e7d53ceb45 fix an old overflow bug
we need to do 8 - new_len, not 16 - new_len which overflows the indata
buffer
2015-12-08 14:12:29 +01:00
Jakub Jelen b784f0ea8d Get rid of warnings about unused functions when running without HW_TESTS 2015-12-08 13:27:04 +01:00
Klas Lindfors 1f1b61bcf9 bump versions to 1.2.2 2015-12-08 13:20:56 +01:00
Klas Lindfors 895e6216b1 NEWS for 1.2.1 2015-12-08 10:38:01 +01:00
Klas Lindfors a1d6007375 increase buffer sizes when building the status view
otherwise data buffer will be to small after loading a big certificate
2015-12-07 19:53:43 +01:00
Klas Lindfors 6f6490f023 add cflags for mac build 2015-12-07 12:27:23 +01:00
Klas Lindfors a03181757d change around windows layout, include libssl, drop all pkgconfig 2015-12-07 12:08:50 +01:00
Klas Lindfors 337931fae7 bump versions 2015-12-07 09:41:07 +01:00
Klas Lindfors 16be345e8b next version is 1.2.0, also NEWS for it 2015-12-07 09:37:14 +01:00
Klas Lindfors dcdc42ad4c bump openssl to 1.0.1q for windows and mac builds 2015-12-07 09:37:14 +01:00
Klas Lindfors 75f9ccd064 add Android code signing doc for dist 2015-12-07 09:37:14 +01:00
Klas Lindfors ebbb002068 don't overfill the buffer on cert import 2015-12-07 09:24:19 +01:00
Alessio Di Mauro 67fc8f705c Merge pull request #46 from denisenkom/getattr-fix
Return CKR_ATTRIBUTE_TYPE_INVALID instead of CKR_FUNCTION_FAILED for unsupported attributes.
2015-12-03 18:01:37 -08:00
Mikhail Denisenko 8297815622 Return CKR_ATTRIBUTE_TYPE_INVALID instead of CKR_FUNCTION_FAILED on unsupported attributes.
This result works better with Java IaikPkcs11 wrapper, and possibly others.
2015-12-03 18:04:44 -05:00
Alessio Di Mauro bfda53303c YKCS11: update cert buffer size. 2015-12-03 10:47:49 -08:00
Alessio Di Mauro 94cd489efd YKCS11: allow key generation for retired keys slots. 2015-12-03 10:24:02 -08:00
Alessio Di Mauro ebdb9f7f5f YKCS11: Fix RSA2048 key generation template. 2015-12-03 10:10:38 -08:00
Alessio Di Mauro b660837909 Merge pull request #38 from denisenkom/patch-1
Return CKR_SESSION_READ_ONLY_EXISTS only when trying to log in SO.
2015-12-03 09:43:02 -08:00
Alessio Di Mauro 3b0152a0e3 Merge pull request #40 from denisenkom/pin-bug-fix
Fixed bug #39, better solution would be to handle #45
2015-12-03 08:58:00 -08:00
Klas Lindfors baae5fa464 difference between CHUID and CCC in success message. 2015-12-03 14:53:10 +01:00
Klas Lindfors 70e181a860 add a new action set-ccc
change aroudn so set_chuid() becomes set_dataobject() and a bit more
generic
fixes #33
2015-12-03 08:18:27 +01:00
Mikhail Denisenko 36972ebc6f Securely dispose of pin copy 2015-12-01 16:45:09 -05:00
Mikhail Denisenko 1a533ea0dc Fixed bug #39
C_Login fails with CKR_PIN_INCORRECT when pin and pinLen are valid but pin is not null terminated
2015-12-01 16:24:38 -05:00
denisenkom 9d4ff79dd6 Update ykcs11.c
According to PKCS11 spec CKR_SESSION_READ_ONLY_EXISTS should only be returned by C_Login when SO user is logging in.

From spec:
If the application calling C_Login has a R/O session open with the token, then it will be unable to log the SO into a session (see [PKCS11-UG] for further details).  An attempt to do this will result in the error code CKR_SESSION_READ_ONLY_EXISTS.
2015-12-01 13:26:33 -05:00
Alessio Di Mauro e949618ec2 YKCS11: started adding RSA test. 2015-11-27 17:13:54 +01:00
Alessio Di Mauro 72a5137e9d More memcpy. 2015-11-27 15:43:32 +01:00
Alessio Di Mauro 4e8f818e82 YKCS11: add more tests. 2015-11-27 15:43:32 +01:00
Alessio Di Mauro 669997b2dc Minor fix. 2015-11-27 15:43:32 +01:00
Alessio Di Mauro 0a93217dbc Minor fix. 2015-11-27 15:43:32 +01:00
Alessio Di Mauro 968348a4c2 YKCS11: use memcpy. 2015-11-27 15:43:32 +01:00
Alessio Di Mauro 721ad03e35 Fix parameter check in SignInit. 2015-11-27 15:43:32 +01:00
Alessio Di Mauro 8b0ed073d3 YKCS11: Return the object handler after importing certs/keys. 2015-11-27 15:43:32 +01:00
Alessio Di Mauro 59faa09c7a YKCS11: started test on key import and signatures. 2015-11-27 15:43:32 +01:00
Alessio Di Mauro ef81317183 YKCS11: Test logins. 2015-11-27 15:43:32 +01:00
Alessio Di Mauro ab92c90071 Report disabled hw test in the logfile of the test. 2015-11-27 15:43:32 +01:00
Alessio Di Mauro a5387c12e7 YKCS11: Add more to session tests. 2015-11-27 15:43:31 +01:00