Misc PGP helper routines. More...
Include dependency graph for pgplib.c:Go to the source code of this file.
Functions | |
| const char * | pgp_pkalgbytype (unsigned char type) |
| Get the name of the algorithm from its ID. | |
| bool | pgp_canencrypt (unsigned char type) |
| Does this algorithm ID support encryption? | |
| bool | pgp_cansign (unsigned char type) |
| Does this algorithm ID support signing? | |
| static void | pgp_uid_free (struct PgpUid **upp) |
| Free a PGP UID. | |
| struct PgpUid * | pgp_copy_uids (struct PgpUid *up, struct PgpKeyInfo *parent) |
| Copy a list of PGP UIDs. | |
| static void | key_free (struct PgpKeyInfo **ptr) |
| Free a PGP Key info. | |
| struct PgpKeyInfo * | pgp_remove_key (struct PgpKeyInfo **klist, struct PgpKeyInfo *key) |
| Remove a PGP key from a list. | |
| void | pgp_key_free (struct PgpKeyInfo **kpp) |
| Free a PGP key info. | |
Misc PGP helper routines.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file pgplib.c.
| const char * pgp_pkalgbytype | ( | unsigned char | type | ) |
Get the name of the algorithm from its ID.
| type | Algorithm ID |
| ptr | Algorithm name |
Definition at line 42 of file pgplib.c.
Here is the caller graph for this function:| bool pgp_canencrypt | ( | unsigned char | type | ) |
| bool pgp_cansign | ( | unsigned char | type | ) |
|
static |
| struct PgpUid * pgp_copy_uids | ( | struct PgpUid * | up, |
| struct PgpKeyInfo * | parent ) |
Copy a list of PGP UIDs.
| up | List of PGP UIDs |
| parent | Parent PGP key |
| ptr | New list of PGP UIDs |
Definition at line 127 of file pgplib.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| struct PgpKeyInfo * pgp_remove_key | ( | struct PgpKeyInfo ** | klist, |
| struct PgpKeyInfo * | key ) |
Remove a PGP key from a list.
| [out] | klist | List of PGP Keys |
| [in] | key | Key to remove |
| ptr | Updated list of PGP Keys |
Definition at line 169 of file pgplib.c.
Here is the caller graph for this function:| void pgp_key_free | ( | struct PgpKeyInfo ** | kpp | ) |
Free a PGP key info.
| [out] | kpp | PGP key info to free |
Definition at line 201 of file pgplib.c.
Here is the call graph for this function:
Here is the caller graph for this function: