Skip to main content

signature_path

Function signature_path 

Source
pub fn signature_path(pbo_path: &Path, key_name: &str) -> Result<PathBuf, Error>
Expand description

The default signature file of pbo_path: <pbo>.<key name>.bisign.

The key name is read from the (untrusted) key file, so it must be a plain file name part: Path::set_extension panics on a path separator, and a name must not steer the file elsewhere.

ยงErrors

Returns an error if the key name is empty or contains a path separator, : or a control character.