src/openpgp_compat.c
author Krista Bennett <krista@pep-project.org>
Fri, 01 Jun 2018 10:30:19 +0200
branchENGINE-233
changeset 2727 b8b0443804da
parent 1513 e7f7e42385b5
child 2416 448d74f8eb90
permissions -rw-r--r--
close branch
vb@1513
     1
// This file is under GNU General Public License 3.0
vb@1513
     2
// see LICENSE.txt
vb@1513
     3
krista@1030
     4
#include "pEp_internal.h"
krista@1030
     5
#include "dynamic_api.h"
krista@1030
     6
#include "openpgp_compat.h"
krista@1030
     7
krista@1030
     8
DYNAMIC_API PEP_STATUS OpenPGP_list_keyinfo (
krista@1032
     9
        PEP_SESSION session, const char* search_pattern, stringpair_list_t** keyinfo_list
krista@1032
    10
    )
krista@1030
    11
{
krista@1030
    12
    assert(session);
krista@1030
    13
    assert(keyinfo_list);
krista@1030
    14
krista@1030
    15
    if (!(session && keyinfo_list))
krista@1030
    16
        return PEP_ILLEGAL_VALUE;
krista@1030
    17
krista@1030
    18
    stringpair_list_t* _keyinfo_list = NULL;
krista@1030
    19
    
krista@1032
    20
    PEP_STATUS retval = pgp_list_keyinfo(session, search_pattern, &_keyinfo_list);
krista@1030
    21
        
krista@1030
    22
    if (retval == PEP_STATUS_OK)
krista@1030
    23
        *keyinfo_list = _keyinfo_list;
krista@1030
    24
    
krista@1030
    25
    return retval;
vb@1061
    26
}
vb@1061
    27