src/openpgp_compat.c
author Volker Birk <vb@pep.foundation>
Tue, 23 Aug 2016 11:58:59 +0200
branchkeysync
changeset 1061 6406a8b521e7
parent 1032 b4004d33c2a2
child 1513 e7f7e42385b5
permissions -rw-r--r--
adding line endings
     1 #include "pEp_internal.h"
     2 #include "dynamic_api.h"
     3 #include "openpgp_compat.h"
     4 
     5 DYNAMIC_API PEP_STATUS OpenPGP_list_keyinfo (
     6         PEP_SESSION session, const char* search_pattern, stringpair_list_t** keyinfo_list
     7     )
     8 {
     9     assert(session);
    10     assert(keyinfo_list);
    11 
    12     if (!(session && keyinfo_list))
    13         return PEP_ILLEGAL_VALUE;
    14 
    15     stringpair_list_t* _keyinfo_list = NULL;
    16     
    17     PEP_STATUS retval = pgp_list_keyinfo(session, search_pattern, &_keyinfo_list);
    18         
    19     if (retval == PEP_STATUS_OK)
    20         *keyinfo_list = _keyinfo_list;
    21     
    22     return retval;
    23 }
    24