src/openpgp_compat.c
branchENGINE-73
changeset 1030 4354451338cd
child 1032 b4004d33c2a2
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/openpgp_compat.c	Thu Aug 18 13:23:15 2016 +0200
     1.3 @@ -0,0 +1,23 @@
     1.4 +#include "pEp_internal.h"
     1.5 +#include "dynamic_api.h"
     1.6 +#include "openpgp_compat.h"
     1.7 +
     1.8 +DYNAMIC_API PEP_STATUS OpenPGP_list_keyinfo (
     1.9 +        PEP_SESSION session, stringpair_list_t** keyinfo_list, char* search_pattern
    1.10 +    );
    1.11 +{
    1.12 +    assert(session);
    1.13 +    assert(keyinfo_list);
    1.14 +
    1.15 +    if (!(session && keyinfo_list))
    1.16 +        return PEP_ILLEGAL_VALUE;
    1.17 +
    1.18 +    stringpair_list_t* _keyinfo_list = NULL;
    1.19 +    
    1.20 +    PEP_STATUS retval = pgp_list_keyinfo(session, _keyinfo_list, search_pattern);
    1.21 +        
    1.22 +    if (retval == PEP_STATUS_OK)
    1.23 +        *keyinfo_list = _keyinfo_list;
    1.24 +    
    1.25 +    return retval;
    1.26 +}
    1.27 \ No newline at end of file