Commit Graph

1332 Commits

Author SHA1 Message Date
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
Alessio Di Mauro 6764639982 YKCS11: test session. 2015-11-27 15:43:31 +01:00
Alessio Di Mauro a0d4e9b887 YKCS11: test mechanisms. 2015-11-27 15:43:31 +01:00
Alessio Di Mauro 8566e50f0c Typo 2015-11-27 15:43:31 +01:00
Klas Lindfors 6f8541b438 openjdk -> OpenJDK 2015-11-25 12:57:21 +01:00
Klas Lindfors 856cf03009 formatting of blocks 2015-11-25 12:52:52 +01:00
Klas Lindfors e4a2b6c3de wording on list points 2015-11-25 11:13:49 +01:00
Klas Lindfors 7f826f3aab bind together what should be one block 2015-11-25 11:13:07 +01:00
Klas Lindfors 5a75c0383e shorten very long lines 2015-11-25 11:11:03 +01:00
Klas Lindfors 60a3186d1d add short doc on android code signing
fixes #20
2015-11-25 11:08:32 +01:00
Alessio Di Mauro 523ab1d365 More YKCS11 tests. 2015-11-24 18:56:43 +01:00
Alessio Di Mauro 262f5f4771 Make ykcs11 functions pointer global to all tests. 2015-11-24 17:02:02 +01:00
Alessio Di Mauro 0f1b05494a Add/fix some prints for tests. 2015-11-24 16:52:31 +01:00
Alessio Di Mauro 56415dbc2d Whitespace fix. 2015-11-24 16:50:27 +01:00
Alessio Di Mauro cc8cb59f8c Added infrastructure for hardware tests. 2015-11-24 15:30:35 +01:00
Alessio Di Mauro c0dfbb7377 Whitelist retired key IDs. 2015-11-24 14:29:38 +01:00
Alessio Di Mauro 8bf407e330 YKCS11: report correct version. 2015-11-24 14:06:37 +01:00
Alessio Di Mauro e236803bb1 Whitespace fix. 2015-11-24 13:13:14 +01:00
Alessio Di Mauro 71dde91fe2 Fix some comments. 2015-11-24 13:03:18 +01:00
Alessio Di Mauro d00150ac05 Add retired keys to Find operations. 2015-11-24 13:01:32 +01:00
Alessio Di Mauro 2d7b8fadc9 Capitalize. 2015-11-24 11:12:56 +01:00
Alessio Di Mauro c16aaaa7d0 Add retired keys in more places. 2015-11-24 11:05:21 +01:00
Alessio Di Mauro 7de6ab1450 Add OIDs for retired keys and rearrange. 2015-11-23 16:29:17 +01:00
Alessio Di Mauro 11a7d11e48 Start adding retired keys to ykcs11. 2015-11-20 17:39:33 +01: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
Alessio Di Mauro 3b81112aeb Change behavior of yubico-piv-tool -a status.
Status only prints information from populated slots. Additionally,
it is possible to explicitly choose a single slot and only print
information reagarding it.
2015-11-20 15:44:19 +01:00
Alessio Di Mauro fe56e288d9 Bump libtool version. 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 113c3e0b98 Whitespace cleanup. 2015-11-20 12:03:02 +01:00
Alessio Di Mauro abc94bc62a Refactor yubico-piv-tool to use import_private_key from libykpiv. 2015-11-20 11:49:30 +01:00
Alessio Di Mauro e39b203d66 Remove leftover print. 2015-11-20 11:45:35 +01:00
Alessio Di Mauro 8e3314ab42 Switch ykcs11 to use private key import from libykpiv. 2015-11-19 18:30:58 +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
Alessio Di Mauro b11dcfd14b YKCS11: accept EC keys that are 1 byte shorter. 2015-11-19 18:30:58 +01:00
Klas Lindfors 55351c0dc1 Merge pull request #36 from akgood/master
Use @loader_path rather than @executable_path for OS X dylib paths
2015-11-19 08:52:15 +01:00
Adam Goodman 87b461be99 except, continue using @executable_path for yubico-piv-tool itself 2015-11-18 10:24:18 -05:00