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
fdik@494
     1
#pragma once
fdik@494
     2
fdik@494
     3
#include "pEpEngine.h"
fdik@494
     4
fdik@494
     5
#ifdef __cplusplus
fdik@494
     6
extern "C" {
fdik@494
     7
#endif
fdik@494
     8
fdik@494
     9
// blacklist_add() - add to blacklist
fdik@494
    10
//
fdik@494
    11
//  parameters:
fdik@494
    12
//      session (in)        session to use
fdik@494
    13
//      fpr (in)            fingerprint of key to blacklist
fdik@494
    14
fdik@494
    15
DYNAMIC_API PEP_STATUS blacklist_add(PEP_SESSION session, const char *fpr);
fdik@494
    16
fdik@494
    17
fdik@494
    18
// blacklist_delete() - delete from blacklist
fdik@494
    19
//
fdik@494
    20
//  parameters:
fdik@494
    21
//      session (in)        session to use
fdik@494
    22
//      fpr (in)            fingerprint of key to blacklist
fdik@494
    23
fdik@494
    24
DYNAMIC_API PEP_STATUS blacklist_delete(PEP_SESSION session, const char *fpr);
fdik@494
    25
fdik@494
    26
fdik@494
    27
// blacklist_is_listed() - is_listed from blacklist
fdik@494
    28
//
fdik@494
    29
//  parameters:
fdik@494
    30
//      session (in)        session to use
fdik@494
    31
//      fpr (in)            fingerprint of key to blacklist
vb@506
    32
//      bool (out)          flags if key is blacklisted
fdik@494
    33
fdik@494
    34
DYNAMIC_API PEP_STATUS blacklist_is_listed(
fdik@494
    35
        PEP_SESSION session,
fdik@494
    36
        const char *fpr,
fdik@494
    37
        bool *listed
fdik@494
    38
    );
fdik@494
    39
fdik@494
    40
fdik@494
    41
// blacklist_retrieve() - retrieve full blacklist of key fingerprints
fdik@494
    42
//
fdik@494
    43
//  parameters:
fdik@494
    44
//      session (in)        session to use
fdik@494
    45
//      blacklist (out)     copy of blacklist
fdik@494
    46
//
fdik@494
    47
//  caveat:
fdik@494
    48
//      the ownership of the copy of blacklist goes to the caller
fdik@494
    49
fdik@494
    50
DYNAMIC_API PEP_STATUS blacklist_retrieve(
fdik@494
    51
        PEP_SESSION session,
fdik@494
    52
        stringlist_t **blacklist
fdik@494
    53
    );
fdik@494
    54
fdik@494
    55
fdik@494
    56
#ifdef __cplusplus
fdik@494
    57
}
fdik@494
    58
#endif
fdik@494
    59