src/blacklist.h
author Krista Grothoff <krista@pep-project.org>
Mon, 13 Feb 2017 22:13:48 +0100
branchenigmail-color-tests
changeset 1582 7dd855780eef
parent 1513 e7f7e42385b5
child 2061 578476d90c0f
permissions -rw-r--r--
closing branch
     1 // This file is under GNU General Public License 3.0
     2 // see LICENSE.txt
     3 
     4 #pragma once
     5 
     6 #include "pEpEngine.h"
     7 
     8 #ifdef __cplusplus
     9 extern "C" {
    10 #endif
    11 
    12 // blacklist_add() - add to blacklist
    13 //
    14 //  parameters:
    15 //      session (in)        session to use
    16 //      fpr (in)            fingerprint of key to blacklist
    17 
    18 DYNAMIC_API PEP_STATUS blacklist_add(PEP_SESSION session, const char *fpr);
    19 
    20 
    21 // blacklist_delete() - delete from blacklist
    22 //
    23 //  parameters:
    24 //      session (in)        session to use
    25 //      fpr (in)            fingerprint of key to blacklist
    26 
    27 DYNAMIC_API PEP_STATUS blacklist_delete(PEP_SESSION session, const char *fpr);
    28 
    29 
    30 // blacklist_is_listed() - is_listed from blacklist
    31 //
    32 //  parameters:
    33 //      session (in)        session to use
    34 //      fpr (in)            fingerprint of key to blacklist
    35 //      bool (out)          flags if key is blacklisted
    36 
    37 DYNAMIC_API PEP_STATUS blacklist_is_listed(
    38         PEP_SESSION session,
    39         const char *fpr,
    40         bool *listed
    41     );
    42 
    43 
    44 // blacklist_retrieve() - retrieve full blacklist of key fingerprints
    45 //
    46 //  parameters:
    47 //      session (in)        session to use
    48 //      blacklist (out)     copy of blacklist
    49 //
    50 //  caveat:
    51 //      the ownership of the copy of blacklist goes to the caller
    52 
    53 DYNAMIC_API PEP_STATUS blacklist_retrieve(
    54         PEP_SESSION session,
    55         stringlist_t **blacklist
    56     );
    57 
    58 
    59 #ifdef __cplusplus
    60 }
    61 #endif
    62