Rename PLUGIN_NAME to BINARY_NAME

This commit is contained in:
Jack Grigg
2021-04-12 22:31:46 +12:00
parent 771cad885a
commit 63c8d6c303
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ mod yubikey;
use error::Error;
const PLUGIN_NAME: &str = "age-plugin-yubikey";
const BINARY_NAME: &str = "age-plugin-yubikey";
const RECIPIENT_PREFIX: &str = "age1yubikey";
const IDENTITY_PREFIX: &str = "age-plugin-yubikey-";
const STANZA_TAG: &str = "piv-p256";
@@ -157,7 +157,7 @@ fn identity(opts: PluginOptions) -> Result<(), Error> {
.as_ref()
.and_then(|cert| cert.subject().iter_organization().next())
{
Some(org) => org.as_str() == Ok(PLUGIN_NAME),
Some(org) => org.as_str() == Ok(BINARY_NAME),
_ => false,
}
});