src/blacklist.h
author Volker Birk <vb@pep-project.org>
Wed, 16 Mar 2016 11:20:52 +0100
changeset 507 288496838ffb
parent 506 66b92bca4133
child 1513 e7f7e42385b5
permissions -rw-r--r--
adding get_binary_path() to Message API
     1 #pragma once
     2 
     3 #include "pEpEngine.h"
     4 
     5 #ifdef __cplusplus
     6 extern "C" {
     7 #endif
     8 
     9 // blacklist_add() - add to blacklist
    10 //
    11 //  parameters:
    12 //      session (in)        session to use
    13 //      fpr (in)            fingerprint of key to blacklist
    14 
    15 DYNAMIC_API PEP_STATUS blacklist_add(PEP_SESSION session, const char *fpr);
    16 
    17 
    18 // blacklist_delete() - delete from blacklist
    19 //
    20 //  parameters:
    21 //      session (in)        session to use
    22 //      fpr (in)            fingerprint of key to blacklist
    23 
    24 DYNAMIC_API PEP_STATUS blacklist_delete(PEP_SESSION session, const char *fpr);
    25 
    26 
    27 // blacklist_is_listed() - is_listed from blacklist
    28 //
    29 //  parameters:
    30 //      session (in)        session to use
    31 //      fpr (in)            fingerprint of key to blacklist
    32 //      bool (out)          flags if key is blacklisted
    33 
    34 DYNAMIC_API PEP_STATUS blacklist_is_listed(
    35         PEP_SESSION session,
    36         const char *fpr,
    37         bool *listed
    38     );
    39 
    40 
    41 // blacklist_retrieve() - retrieve full blacklist of key fingerprints
    42 //
    43 //  parameters:
    44 //      session (in)        session to use
    45 //      blacklist (out)     copy of blacklist
    46 //
    47 //  caveat:
    48 //      the ownership of the copy of blacklist goes to the caller
    49 
    50 DYNAMIC_API PEP_STATUS blacklist_retrieve(
    51         PEP_SESSION session,
    52         stringlist_t **blacklist
    53     );
    54 
    55 
    56 #ifdef __cplusplus
    57 }
    58 #endif
    59