Commit Graph

11 Commits

Author SHA1 Message Date
Tony Arcieri c30cf5b83a Test YubiKey::verify_pin (--ignored)
Adds an off-by-default test that the `YubiKey::verify_pin` function
works, and removes it from `untested` gating.
2019-12-07 08:44:12 -08:00
Tony Arcieri 9ce2ffe938 readers: Use Reader to connect to YubiKey
Removes the legacy API inherited from `yubico-piv-tool` and uses
the `reader` module exclusively for selecting and opening the PC/SC
reader.
2019-12-02 10:11:58 -08:00
Tony Arcieri fd77e9f844 tests: Initial connect test and docs
Adds an extremely basic initial test to ensure that we are able to
connect to a YubiKey.

The test is marked `#[ignore]` in the hope that we can eventually start
adding tests which run in CI, e.g. against a mock card.

This also includes a fix for calculating the APDU size, since the ones
we were sending originally were overly long.
2019-11-25 10:00:56 -08:00
Tony Arcieri 29fe670896 oxidize: Factor into standard Rust crate structure
- Adds initial `Cargo.toml` (and `Cargo.lock` to `.gitignore`)
- Deletes `tool` (it seems hard to `corrode`)
- Moves `lib/tests` => `tests` (we should figure out how to translate them)
- Moves `lib` => `src` to match Rust conventions
- Renames `lib/ykpiv.rs` => `src/lib.rs` to match Rust conventions
- Adds copyright from `ykpiv.h` to the top of all `*.rs` files
2019-08-10 14:49:48 -07:00
Klas Lindfors b048ea85e5 move lib tests under lib 2014-06-24 09:52:10 +02:00
Klas Lindfors 72f271ae73 move basic.sh test to subdir of tool 2014-06-24 09:50:11 +02:00
Klas Lindfors 9d0d163f62 some tests for the library 2014-06-17 10:34:51 +02:00
Klas Lindfors 2d2f14b9f1 fix the test with new directory structure 2014-06-17 08:31:58 +02:00
Klas Lindfors 4362c3085c use TESTS_ENVIRONMENT instead of AM_TESTS_ENVIRONMENT
since automake 1.11 (shipped with precise) doesn't support
AM_TESTS_ENVIRONMENT
2014-02-11 09:58:06 +01:00
Klas Lindfors 6123f65158 windows fixes for selftest 2014-02-10 14:36:16 +01:00
Klas Lindfors 966fe2387c add a very simple selftest 2014-02-10 14:15:05 +01:00