}
}
-short pgp_canencrypt (unsigned char type)
+bool pgp_canencrypt (unsigned char type)
{
switch (type)
{
case 2:
case 16:
case 20:
- return 1;
+ return true;
default:
- return 0;
+ return false;
}
}
-short pgp_cansign (unsigned char type)
+bool pgp_cansign (unsigned char type)
{
switch (type)
{
case 3:
case 17:
case 20:
- return 1;
+ return true;
default:
- return 0;
+ return false;
}
}
pgp_key_t pgp_remove_key(pgp_key_t *klist, pgp_key_t key);
pgp_uid_t *pgp_copy_uids(pgp_uid_t *up, pgp_key_t parent);
-short pgp_canencrypt(unsigned char type);
-short pgp_cansign(unsigned char type);
+bool pgp_canencrypt(unsigned char type);
+bool pgp_cansign(unsigned char type);
short pgp_get_abilities(unsigned char type);
void pgp_free_key(pgp_key_t *kpp);