src/openpgp_compat.c
author Krista 'DarthMama' Bennett <krista@pep.foundation>
Wed, 27 Jan 2021 17:13:24 +0100
branchmime-integrate
changeset 5281 2eeac2d5d012
parent 4792 7056435ab9e7
permissions -rw-r--r--
push before migration
     1 /** @file */
     2 /** @brief File description for doxygen missing. FIXME */
     3 
     4 // This file is under GNU General Public License 3.0
     5 // see LICENSE.txt
     6 
     7 #include "pEp_internal.h"
     8 #include "dynamic_api.h"
     9 #include "openpgp_compat.h"
    10 
    11 DYNAMIC_API PEP_STATUS OpenPGP_list_keyinfo (
    12         PEP_SESSION session, const char* search_pattern, stringpair_list_t** keyinfo_list
    13     )
    14 {
    15     assert(session);
    16     assert(keyinfo_list);
    17 
    18     if (!(session && keyinfo_list))
    19         return PEP_ILLEGAL_VALUE;
    20 
    21     stringpair_list_t* _keyinfo_list = NULL;
    22     
    23     PEP_STATUS retval = pgp_list_keyinfo(session, search_pattern, &_keyinfo_list);
    24         
    25     if (retval == PEP_STATUS_OK)
    26         *keyinfo_list = _keyinfo_list;
    27     
    28     return retval;
    29 }