yubihsm 0.17.3

Pure Rust client for YubiHSM2 devices
Documentation
//! Adapter for `yubihsm-connector` which communicates using HTTP.
//!
//! <https://developers.yubico.com/YubiHSM2/Component_Reference/yubihsm-connector/>

#[macro_use]
mod macros;

mod adapter;
mod config;
mod response;
mod status;

use self::response::ResponseReader;
pub use self::{adapter::HttpAdapter, config::HttpConfig, status::ConnectorStatus};

/// User-Agent string to supply
pub const USER_AGENT: &str = concat!("yubihsm.rs ", env!("CARGO_PKG_VERSION"));

/// Maximum size of the HTTP response from `yubihsm-connector`
pub const MAX_RESPONSE_SIZE: usize = 4096;