src/openpgp_compat.c
author Krista Bennett <krista@pep-project.org>
Tue, 14 Aug 2018 13:45:34 +0200
branchENGINE-451
changeset 2826 07c080d73a63
parent 2458 2dfe65bd3613
permissions -rw-r--r--
ENGINE-451: abandoning branch - config files to be dealt with using gpgme (and hotfix will be external to engine
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
}