Ignore private keylist output of import_key recently added to pEpEngine, so that adapters builds again stable
authorEdouard Tisserant
Mon, 20 Jun 2016 15:23:33 +0200
branchstable
changeset 106b6a749e94a2d
parent 105 2b8dfa092e20
child 109 8df335509e5c
child 122 f4335bbf6d76
Ignore private keylist output of import_key recently added to pEpEngine, so that adapters builds again
CpEpEngine.cpp
     1.1 --- a/CpEpEngine.cpp	Mon Jun 20 15:01:00 2016 +0200
     1.2 +++ b/CpEpEngine.cpp	Mon Jun 20 15:23:33 2016 +0200
     1.3 @@ -625,7 +625,7 @@
     1.4  
     1.5      string _key_data = utf8_string(key_data);
     1.6  
     1.7 -    PEP_STATUS status = ::import_key(get_session(), _key_data.c_str(), _key_data.length());
     1.8 +    PEP_STATUS status = ::import_key(get_session(), _key_data.c_str(), _key_data.length(), NULL);
     1.9      assert(status != PEP_OUT_OF_MEMORY);
    1.10      if (status == PEP_OUT_OF_MEMORY)
    1.11          return E_OUTOFMEMORY;
    1.12 @@ -643,7 +643,7 @@
    1.13      if (key_data == NULL)
    1.14          return E_INVALIDARG;
    1.15  
    1.16 -    ::PEP_STATUS status = ::import_key(get_session(), (const char *) key_data->pvData, key_data->rgsabound[0].cElements);
    1.17 +    ::PEP_STATUS status = ::import_key(get_session(), (const char *) key_data->pvData, key_data->rgsabound[0].cElements, NULL);
    1.18      assert(status != ::PEP_OUT_OF_MEMORY);
    1.19      if (status == ::PEP_OUT_OF_MEMORY)
    1.20          return E_OUTOFMEMORY;