1 // This file is under GNU General Public License 3.0
12 // blacklist_add() - add to blacklist
15 // session (in) session to use
16 // fpr (in) fingerprint of key to blacklist
19 // there is no point in blacklisting an own key; for any own
20 // identity, this will be ignored. The correct function to use
21 // for own keys in this event is "key_reset_trust".
22 // Also, this is only effective for OpenPGP-level trust. If
23 // this key is for a pEp user, the blacklist is ignored.
25 DYNAMIC_API PEP_STATUS blacklist_add(PEP_SESSION session, const char *fpr);
28 // blacklist_delete() - delete from blacklist
31 // session (in) session to use
32 // fpr (in) fingerprint of key to be removed from blacklist
34 DYNAMIC_API PEP_STATUS blacklist_delete(PEP_SESSION session, const char *fpr);
37 // blacklist_is_listed() - is_listed in blacklist
40 // session (in) session to use
41 // fpr (in) fingerprint of key to blacklist
42 // bool (out) flags if key is blacklisted
44 DYNAMIC_API PEP_STATUS blacklist_is_listed(
51 // blacklist_retrieve() - retrieve full blacklist of key fingerprints
54 // session (in) session to use
55 // blacklist (out) copy of blacklist
58 // the ownership of the copy of blacklist goes to the caller
60 DYNAMIC_API PEP_STATUS blacklist_retrieve(
62 stringlist_t **blacklist