Commit Graph

1179 Commits

Author SHA1 Message Date
Trevor Bentley 06f2e777ba Backport from minidriver: 11788a4a36bf83a01104700f171774336086e9b4
commit 11788a4a36bf83a01104700f171774336086e9b4
Author: Dave Pate <dpate@yubico.com>
Date:   Tue Jul 18 18:28:48 2017 -0700

    Fixes #114 - jump to cleanup section in ykpiv_util_write_mscmap on invalid size
2017-10-23 16:22:18 +02:00
Trevor Bentley 16d0a519c4 Continuing unit tests and minor bug fixes
* Support unit tests on Yubikey NEO
* Test ykpiv_get_version
* Test ykpiv_import_private_key
* Test ykpiv_sign_data
* Test ykpiv_decipher_data
* Test ykpiv_change_pin
* Test ykpiv_change_puk
* Test ykpiv_get_pin_retries
* Test ykpiv_set_pin_retries
* Test ykpiv_verify
* Fix segfault when |tries| is NULL
* Fix segfault when import_private_key algorithm is wrong
2017-10-23 16:22:14 +02:00
Trevor Bentley 89e8e7864e Tests for ykpiv_list_readers and ykpiv_set_mgmkey 2017-10-23 16:22:11 +02:00
Trevor Bentley 2ea0e4cbdd Port custom allocator from minidriver, and add test case for it. 2017-10-23 16:22:08 +02:00
Trevor Bentley bfafb926a3 Added tests for authenticate and reset. Fixed bug in reset (always returned success). 2017-10-23 16:22:04 +02:00
Trevor Bentley cffe862bbc Test cases for ykpiv_util_* functions 2017-10-23 16:22:01 +02:00
Trevor Bentley 6c5d5545bf WIP port minidriver ykpiv_util_* functions 2017-10-23 16:21:57 +02:00
Trevor Bentley 86a0e72dbe Port fix from ykpiv-minidriver:
commit 79ae87153c2be06e8193a491e26b799e3b5ba028
Author: Oscar K So JR <oscar@yubico.com>
Date:   Mon Jan 30 22:08:29 2017 +0000

    Fixed Issue #78 - P2 Bug: MXCT352 - Importing PKCS#12 with key size 4096 bits crashed CertUtil.exe
2017-10-23 16:21:54 +02:00
Trevor Bentley 0d2b85fcef Switch test cases to use libcheck framework
This keeps the test logic the same, but moves most of them into the libcheck
test suite framework.  It gives better control over grouping related tests,
running them in parallel, and reporting on multiple failures.

Running in parallel also brings problems, so libykcs11 tests are left
untouched.  Parallel access to a single hardware DUT does not make sense,
and pcsc-lite doesn't work after a fork() in OS X 10.11+, so it can't run
in libcheck's tests anyway.
2017-10-23 16:21:50 +02:00
Trevor Bentley ba7d256ecf Fix test cases: uninitialized memory and non-terminated string compare 2017-10-23 16:21:46 +02:00
Emil Lundberg d5283fffae Explicitly link "Vagrant VM" to GitHub 2017-10-18 11:41:24 +02:00
Emil Lundberg 4fab1c8f77 Revert "Rewrite vagrant/development/README to asciidoc"
This reverts commit 558dcc1a2d.
2017-10-18 11:40:30 +02:00
Emil Lundberg 558dcc1a2d Rewrite vagrant/development/README to asciidoc 2017-10-18 11:01:39 +02:00
Klas Lindfors 7114410f36 bump version after release 2017-10-17 14:11:38 +02:00
Klas Lindfors 1d65419ac9 NEWS for 1.4.4 2017-10-17 13:43:03 +02:00
Klas Lindfors bf9c09f9e8 ykcs11: disable rsa keygeneration for yk4 < 4.3.5
see https://yubi.co/ysa201701/
relates #127
2017-10-17 12:51:48 +02:00
Klas Lindfors b666922eda try to find correct packages for travis 2017-10-17 10:18:42 +02:00
Klas Lindfors 6435a4fa35 Merge branch 'pr-128' 2017-10-17 10:06:29 +02:00
edent ea00678314 http->https 2017-10-17 08:02:02 +01:00
Emil Lundberg de61b83b4c Fix Vagrant VM link in README 2017-10-16 16:59:26 +02:00
Emil Lundberg 73dfa7b48b Add Vagrant VM for development 2017-10-16 16:52:25 +02:00
Klas Lindfors cd11196535 disable rsa keygen for yubikey4 before 4.3.5
point at https://yubi.co/ysa201701/
2017-10-16 15:32:25 +02:00
Klas Lindfors 82cd15db50 change _change_pin_internal to change_pin_internal to match style
all other internal functions have plain names
2017-05-30 13:05:24 +02:00
Klas Lindfors 0db87e8721 drop unused variable 2017-05-30 13:05:00 +02:00
Klas Lindfors 37a2f778dc Merge branch 'pr-115' 2017-05-30 13:03:36 +02:00
emersonl d1db8eb282 Improve the style based on comments from Klas 2017-05-30 13:02:49 +02:00
emersonl 6882bc5c7c Fix issue #116 2017-05-30 12:59:08 +02:00
emersonl c05d879968 Fix issue #88 and #102 2017-05-30 12:56:25 +02:00
Emerson Lin 729c70385b bump openssl to 1.0.2l
OpenSSL just released a new version and 1.0.2k no longer works
2017-05-30 12:55:58 +02:00
Klas Lindfors 8614d227cb touch-policy and pin-policy is only available on YubiKey 4 2017-04-24 08:27:58 +02:00
Klas Lindfors 6304a6c799 add a line about slot f9 to help output 2017-04-19 14:23:59 +02:00
Klas Lindfors 60e32d53c5 let help2adoc use the h2m file as extra include 2017-04-19 14:16:44 +02:00
Klas Lindfors 9dfe04cd06 update documentation and help output for how to specify secrets on stdin
also update all examples to have no space after short option.
2017-04-19 14:15:24 +02:00
Klas Lindfors a7ef1315f4 bump verions after release 2017-04-18 13:23:58 +02:00
Klas Lindfors b426c588be NEWS for 1.4.3 2017-04-18 13:10:09 +02:00
Klas Lindfors 6495a8fedc bump openssl to 1.0.2k 2017-04-18 13:05:27 +02:00
Klas Lindfors e6a7517050 add a new hidden flag --stdin-input for straight stdin input 2017-04-18 13:05:27 +02:00
Alessio Di Mauro d17aff4e0d Merge PR/113, fixup for PSS 2017-03-30 09:40:00 +02:00
Hannes Mehnert 03849d9722 alias RSA type, call openssl functions only in openssl_utils.c 2017-03-29 23:01:17 +01:00
Hannes Mehnert 847b0b4267 fix PSS signing support 2017-03-26 19:13:07 +02:00
Klas Lindfors 8e91c8ea2f drop dropped docs from dist sources 2016-11-29 14:40:11 +01:00
Dain Nilsson 627df69c43 Correct size of stored objects. 2016-11-03 11:09:25 +01:00
Dain Nilsson 20aa39ec21 Updated docs. 2016-10-19 15:40:54 +02:00
Alessio Di Mauro 127227fe4c Better approximation for signature size
Relates to #98.
2016-10-05 16:39:58 +02:00
Alessio Di Mauro af78e18151 Always set number of slots
Relates to #98.
2016-10-05 16:39:58 +02:00
Alessio Di Mauro 7b7c798ef6 Return correct modulus
When asked for CKA_MODULUS on a private key return only n and not the
whole key

Relates to #98.
2016-10-05 16:39:54 +02:00
Klas Lindfors 091e657a78 drop la files and pkgconfig files for mac and windows builds
since the location in these wont make sense anyways
2016-10-04 10:22:28 +02:00
Alessio Di Mauro ae63ca7ce8 Fix AsciiDoc issue 2016-10-03 15:33:12 +02:00
Alessio Di Mauro a2d602e767 Whitespace cleanup 2016-10-03 15:19:40 +02:00
Alessio Di Mauro 2e6702c5bb Merge pull request #90 from acdha/patch-1
Improve SSH with PIV and PKCS11 instructions
2016-10-03 15:18:04 +02:00