src/blacklist.h
author fdik
Thu, 03 Mar 2016 19:27:46 +0100
changeset 494 ddf4130d00a0
child 506 66b92bca4133
permissions -rw-r--r--
Added blacklist
     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 
    33 DYNAMIC_API PEP_STATUS blacklist_is_listed(
    34         PEP_SESSION session,
    35         const char *fpr,
    36         bool *listed
    37     );
    38 
    39 
    40 // blacklist_retrieve() - retrieve full blacklist of key fingerprints
    41 //
    42 //  parameters:
    43 //      session (in)        session to use
    44 //      blacklist (out)     copy of blacklist
    45 //
    46 //  caveat:
    47 //      the ownership of the copy of blacklist goes to the caller
    48 
    49 DYNAMIC_API PEP_STATUS blacklist_retrieve(
    50         PEP_SESSION session,
    51         stringlist_t **blacklist
    52     );
    53 
    54 
    55 #ifdef __cplusplus
    56 }
    57 #endif
    58