Struct sequoia_openpgp::policy::NullPolicy [−][src]
pub struct NullPolicy {}
Expand description
The Null Policy.
Danger, here be dragons.
This policy imposes no additional policy, i.e., accepts everything. This includes the MD5 hash algorithm, and SED packets.
The Null policy has a limited set of valid use cases, e.g., packet statistics.
For other purposes, it is more advisable to use the StandardPolicy
and
adjust it by selectively allowing items considered insecure by default, e.g.,
via StandardPolicy::accept_hash
function. If this is still too inflexible
consider creating a specialized policy based on the StandardPolicy
as
the example for StandardPolicy
illustrates.