src/openpgp_compat.c
author Hernâni Marques <hernani@pep.foundation>
Wed, 27 Jun 2018 00:52:09 +0200
changeset 2771 b0c0d39f643d
parent 2458 2dfe65bd3613
child 4792 7056435ab9e7
permissions -rw-r--r--
typos (by reading for IETF)
     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 }