src/openpgp_compat.c
author Roker <roker@pep-project.org>
Tue, 20 Sep 2016 15:54:57 +0200
branchroker-linux
changeset 1168 4d4e3ecbaf8b
parent 1032 b4004d33c2a2
child 1061 6406a8b521e7
permissions -rw-r--r--
merge "default" into my branch
krista@1030
     1
#include "pEp_internal.h"
krista@1030
     2
#include "dynamic_api.h"
krista@1030
     3
#include "openpgp_compat.h"
krista@1030
     4
krista@1030
     5
DYNAMIC_API PEP_STATUS OpenPGP_list_keyinfo (
krista@1032
     6
        PEP_SESSION session, const char* search_pattern, stringpair_list_t** keyinfo_list
krista@1032
     7
    )
krista@1030
     8
{
krista@1030
     9
    assert(session);
krista@1030
    10
    assert(keyinfo_list);
krista@1030
    11
krista@1030
    12
    if (!(session && keyinfo_list))
krista@1030
    13
        return PEP_ILLEGAL_VALUE;
krista@1030
    14
krista@1030
    15
    stringpair_list_t* _keyinfo_list = NULL;
krista@1030
    16
    
krista@1032
    17
    PEP_STATUS retval = pgp_list_keyinfo(session, search_pattern, &_keyinfo_list);
krista@1030
    18
        
krista@1030
    19
    if (retval == PEP_STATUS_OK)
krista@1030
    20
        *keyinfo_list = _keyinfo_list;
krista@1030
    21
    
krista@1030
    22
    return retval;
krista@1030
    23
}