Misc PGP helper routines. More...
Include dependency graph for pgplib.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | PgpUid |
| PGP User ID. More... | |
| struct | PgpKeyInfo |
| Information about a PGP key. More... | |
Enumerations | |
| enum | ExpandoDataPgpKey { ED_PGK_DATE = 1 , ED_PGK_KEY_ALGORITHM , ED_PGK_KEY_CAPABILITIES , ED_PGK_KEY_FINGERPRINT , ED_PGK_KEY_FLAGS , ED_PGK_KEY_ID , ED_PGK_KEY_LENGTH , ED_PGK_PKEY_ALGORITHM , ED_PGK_PKEY_CAPABILITIES , ED_PGK_PKEY_FINGERPRINT , ED_PGK_PKEY_FLAGS , ED_PGK_PKEY_ID , ED_PGK_PKEY_LENGTH , ED_PGK_PROTOCOL } |
| Expando UIDs for PGP Keys. More... | |
Functions | |
| ARRAY_HEAD (PgpUidArray, struct PgpUid *) | |
| const char * | pgp_pkalgbytype (unsigned char type) |
| Get the name of the algorithm from its ID. | |
| struct PgpUid * | pgp_copy_uids (struct PgpUid *up, struct PgpKeyInfo *parent) |
| Copy a list of PGP UIDs. | |
| bool | pgp_canencrypt (unsigned char type) |
| Does this algorithm ID support encryption? | |
| bool | pgp_cansign (unsigned char type) |
| Does this algorithm ID support signing? | |
| void | pgp_key_free (struct PgpKeyInfo **kpp) |
| Free a PGP key info. | |
| struct PgpKeyInfo * | pgp_remove_key (struct PgpKeyInfo **klist, struct PgpKeyInfo *key) |
| Remove a PGP key from a list. | |
| struct PgpKeyInfo * | pgp_keyinfo_new (void) |
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.h.
| enum ExpandoDataPgpKey |
Expando UIDs for PGP Keys.
| Enumerator | |
|---|---|
| ED_PGK_DATE | |
| ED_PGK_KEY_ALGORITHM | |
| ED_PGK_KEY_CAPABILITIES | |
| ED_PGK_KEY_FINGERPRINT | |
| ED_PGK_KEY_FLAGS | PgpKeyInfo.kflags, pgp_flags() |
| ED_PGK_KEY_ID | |
| ED_PGK_KEY_LENGTH | |
| ED_PGK_PKEY_ALGORITHM | |
| ED_PGK_PKEY_CAPABILITIES | |
| ED_PGK_PKEY_FINGERPRINT | |
| ED_PGK_PKEY_FLAGS | pgp_principal_key(), PgpKeyInfo.kflags, pgp_flags() |
| ED_PGK_PKEY_ID | |
| ED_PGK_PKEY_LENGTH | |
| ED_PGK_PROTOCOL | |
Definition at line 67 of file pgplib.h.
| ARRAY_HEAD | ( | PgpUidArray | , |
| struct PgpUid * | ) |
| 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:| 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:| bool pgp_canencrypt | ( | unsigned char | type | ) |
| bool pgp_cansign | ( | unsigned char | type | ) |
| 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:| 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:| struct PgpKeyInfo * pgp_keyinfo_new | ( | void | ) |