Script Index


/var/lib/sorcery/modules/libgpg

Synopsis

Functions that verify gpg signatures


function gpg_verify_signature()

Parameters:

Returns:

stdout

message when gpg is not installed

Description

Low level routine for verifying a file given a signature and keyring. The keyring must contain the public key for the signature.


function gpg_get_sorcery_key()

Parameters:

Returns:

stdout

full path to sorcery key (if successful)

Description

Get the sorcery gpg key file associated with a branch


function gpg_get_grimoire_key()

Parameters:

Returns:

stdout

full path to grimoire key (if successful)

Description

Get the grimmoire gpg key file associated with a branch


function gpg_verify_grimoire()

Parameters:

Returns:

stdout

possibly a failure message depending on what happens (nothing is output on success)

Description

Verify a grimoire tarball's gpg signature


function gpg_verify_sorcery()

Parameters:

Returns:

stdout

possibly a failure message depending on what happens (nothing is output on success)

Description

Verify a sorcery tarball's gpg signature


function gpg_verify_common()

Parameters:

Returns:

stdout

possibly a failure message depending on what happens (nothing is output on success)

Description

Common code for verifying sorcery/grimoire tarballs


function gpg_user_query()

Parameters:

Returns:

stdout

Some message thats supposed to inform the user of whats going on, or possibly a query asking the user if they want to continue even though gpg verification failed.

Description

Handles interpriting the output of gpg_verify_sorcery or gpg_verify_grimoire.


function gpg_hashsum()

Parameters:

stdout

output is exactly the same format as md5sum/sha1sum, just with a different hashsum. "hashsumfilename". The hashsum is printed with all lowercase letters.

Description

This assumes that the caller has already verified that gpg is installed and supports the specified hash function.


function gpg_get_hashes()

Parameters:

stdout

All the hash algorithms supported by gpg, algorithms printed in lower case.

Description

This assumes the caller has already verified that gpg is installed.


function verify_against_manifest()

Parameters:

Description

Verify a tree against a manifest file


function verify_grimoire_against_manifest()

Parameters:

Description

Verify a grimoire tree and ignore files sorcery adds post-download


function grimoire_tree_user_query()

Parameters:

Description

Ask the user what they want to do if verification of a grimoire tree fails.