src/openpgp_compat.h
author Volker Birk <vb@pep.foundation>
Thu, 01 Sep 2016 17:55:03 +0200
branchkeysync
changeset 1111 3c46dc58096d
parent 1061 6406a8b521e7
child 1118 df6c0c9aa76a
permissions -rw-r--r--
merging
     1 // openpgp_compat.h
     2 //
     3 // These functions are the exposure of non-generic PGP-specific functionality (largely related to PGP
     4 // keyrings) to adapters that need them without polluting the engine interface.
     5 //
     6 #pragma once
     7 
     8 #ifdef __cplusplus
     9 extern "C" {
    10 #endif
    11 
    12 #include <stddef.h>
    13 #include <stdint.h>
    14 #include <stdbool.h>
    15     
    16 #include "dynamic_api.h"
    17 #include "stringpair.h"    
    18 
    19 #ifdef USE_GPG
    20 #include "pgp_gpg.h"
    21 #else
    22 #ifdef USE_NETPGP
    23 #include "pgp_netpgp.h"
    24 #endif
    25 #endif    
    26     
    27 //  OpenPGP_list_keyinfo() - get a key/UID list for pattern matches in keyring (NULL
    28 //                           to return entire keyring)
    29 //
    30 //  parameters:
    31 //      session (in)          session handle
    32 //      show_revoked (in)     true if identities with revoked primary keys should also
    33 //                            be listed; false if only valid keys should be shown
    34 //      keyinfo_list (out)    list of identities for each available key 
    35 //
    36 //  caveat:
    37 //      keyinfo_list must be freed by the caller.
    38 DYNAMIC_API PEP_STATUS OpenPGP_list_keyinfo (
    39         PEP_SESSION session, const char* search_pattern, stringpair_list_t** keyinfo_list
    40     );
    41     
    42 #ifdef __cplusplus
    43 }
    44 #endif
    45