From ee3702a65e2ae88823d34f80b5ed3853108ae394 Mon Sep 17 00:00:00 2001 From: "Tony Arcieri (iqlusion)" Date: Tue, 15 Aug 2023 18:29:22 -0700 Subject: [PATCH] yubikey v0.8.0 (#518) --- CHANGELOG.md | 32 ++++++++++++++++++++++++++++---- Cargo.lock | 4 ++-- Cargo.toml | 2 +- cli/Cargo.toml | 4 ++-- 4 files changed, 33 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d497f1..a4a3df4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,11 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased +## 0.8.0 (2023-08-15) ### Added -- `YubiKey::disconnect` -- `impl Debug for {Context, YubiKey}` -- `Error::AppletNotFound` +- `impl Debug for {Context, YubiKey}` ([#457]) +- `YubiKey::disconnect` ([#462]) +- `Error::AppletNotFound` ([#476]) ### Changed - `Reader::open` now returns `Error::AppletNotFound` instead of `Error::Generic` @@ -18,11 +18,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `Reader::open` now avoids resetting the card if an error occurs (equivalent to calling `YubiKey::disconnect(pcsc::Disposition::LeaveCard)` if `Reader::open` succeeds). +- Raise minimum `pcsc` version to 2.3.1 and remove workaround ([#478]) +- Bump asymmetric crypto dependencies; MSRV 1.65 ([#490]) + - `elliptic-curve` v0.13 + - `k256` v0.13 + - `p256` v0.13 + - `p384` v0.13 + - `pbkdf2` v0.12 + - `rsa` v0.9 ([#502]) + - `signature` v2 +- Use `x509-cert` certificate builder ([#495]) +- Make `RsaKeyData::new` fallible ([#517]) ### Fixed - `StatusWords::code` now returns the correct code (including embedded `tries` count) for `StatusWords::VerifyFailError`. Previously the returned code lost information and was not round-trip compatible with `StatusWords::from(u16)`. +- Parsing of serial numbers ([#466]) +- Make `YubiKey::open()` more robust ([#504]) + +[#457]: https://github.com/iqlusioninc/yubikey.rs/pull/457 +[#462]: https://github.com/iqlusioninc/yubikey.rs/pull/462 +[#466]: https://github.com/iqlusioninc/yubikey.rs/pull/466 +[#476]: https://github.com/iqlusioninc/yubikey.rs/pull/476 +[#478]: https://github.com/iqlusioninc/yubikey.rs/pull/478 +[#490]: https://github.com/iqlusioninc/yubikey.rs/pull/490 +[#495]: https://github.com/iqlusioninc/yubikey.rs/pull/495 +[#502]: https://github.com/iqlusioninc/yubikey.rs/pull/502 +[#504]: https://github.com/iqlusioninc/yubikey.rs/pull/504 +[#517]: https://github.com/iqlusioninc/yubikey.rs/pull/517 ## 0.7.0 (2022-11-14) ### Added diff --git a/Cargo.lock b/Cargo.lock index e7cfe6d..4b52a0c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1036,7 +1036,7 @@ dependencies = [ [[package]] name = "yubikey" -version = "0.8.0-pre.0" +version = "0.8.0" dependencies = [ "base16ct", "der", @@ -1069,7 +1069,7 @@ dependencies = [ [[package]] name = "yubikey-cli" -version = "0.7.0" +version = "0.8.0-pre" dependencies = [ "base16ct", "clap", diff --git a/Cargo.toml b/Cargo.toml index 249841b..1b56e0b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yubikey" -version = "0.8.0-pre.0" +version = "0.8.0" description = """ Pure Rust cross-platform host-side driver for YubiKey devices from Yubico with support for hardware-backed public-key decryption and digital signatures using diff --git a/cli/Cargo.toml b/cli/Cargo.toml index e23197e..385522f 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yubikey-cli" -version = "0.7.0" +version = "0.8.0-pre" description = """ Command-line interface for performing encryption and signing using RSA/ECC keys stored on YubiKey devices. @@ -23,4 +23,4 @@ once_cell = "1" sha2 = "0.10" termcolor = "1" x509-cert.workspace = true -yubikey = { version = "0.8.0-pre.0", path = ".." } +yubikey = { version = "0.8", path = ".." }