src/openpgp_compat.c
author Edouard Tisserant <edouard@pep-project.org>
Fri, 09 Jun 2017 15:11:11 +0200
changeset 1844 415b5ea8bfd1
parent 1513 e7f7e42385b5
child 2416 448d74f8eb90
permissions -rw-r--r--
Tests : use $HOME to sandbox test`s management DB and keyrings
     1 // This file is under GNU General Public License 3.0
     2 // see LICENSE.txt
     3 
     4 #include "pEp_internal.h"
     5 #include "dynamic_api.h"
     6 #include "openpgp_compat.h"
     7 
     8 DYNAMIC_API PEP_STATUS OpenPGP_list_keyinfo (
     9         PEP_SESSION session, const char* search_pattern, stringpair_list_t** keyinfo_list
    10     )
    11 {
    12     assert(session);
    13     assert(keyinfo_list);
    14 
    15     if (!(session && keyinfo_list))
    16         return PEP_ILLEGAL_VALUE;
    17 
    18     stringpair_list_t* _keyinfo_list = NULL;
    19     
    20     PEP_STATUS retval = pgp_list_keyinfo(session, search_pattern, &_keyinfo_list);
    21         
    22     if (retval == PEP_STATUS_OK)
    23         *keyinfo_list = _keyinfo_list;
    24     
    25     return retval;
    26 }
    27