pub fn config() -> YubihsmConfig {
    let kms_config = app_config();
    let yubihsm_configs = &kms_config.providers.yubihsm;

    if yubihsm_configs.len() != 1 {
        status_err!(
            "expected one [yubihsm.provider] in config, found: {}",
            yubihsm_configs.len()
        );
        process::exit(1);
    }

    yubihsm_configs[0].clone()
}
/// Get the YubiHSM-related configuration
Get the YubiHSM-related configuration
Get the YubiHSM - related configuration
pub fn config() -> YubihsmConfig {
    let kms_config = app_config();
    let yubihsm_configs = &kms_config.providers.yubihsm;
    if yubihsm_configs.len() != 1 {
        status_err!(
            "expected one [yubihsm.provider] in config, found: {}",
            yubihsm_configs.len()
        );
        process::exit(1);
    }
    yubihsm_configs[0].clone()
}
pub fn config ( ) -> YubihsmConfig { let kms_config = app_config ( ) ; let yubihsm_configs = & kms_config . providers . yubihsm ; if yubihsm_configs . len ( ) != 1 { status_err ! ( " " yubihsm_configs len ( ) ) ; process :: exit ( 1 ) ; } yubihsm_configs [ 0 ] . clone ( ) }
Get the YubiHSM-related configuration
Get the YubiHSM - related configuration