diff --git a/openpgp-card-sequoia/src/lib.rs b/openpgp-card-sequoia/src/lib.rs index 6928b23..d67fd25 100644 --- a/openpgp-card-sequoia/src/lib.rs +++ b/openpgp-card-sequoia/src/lib.rs @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2021-2022 Heiko Schaefer +// SPDX-FileCopyrightText: 2021-2023 Heiko Schaefer // SPDX-License-Identifier: MIT OR Apache-2.0 //! This crate offers ergonomic abstractions to use @@ -207,6 +207,14 @@ impl Card { Card::::new(opt) } + + /// Get the internal `CardBackend`. + /// + /// This is useful to perform operations on the card with a different crate, + /// e.g. `yubikey-management`. + pub fn into_card(self) -> Box { + self.state.pgp.into_card() + } } impl<'a> Card> {