src/pEpEngine.c
branchENGINE-633
changeset 4071 68f242584e18
parent 4065 7f0cf93bc2af
child 4079 da3b0627a59c
     1.1 --- a/src/pEpEngine.c	Tue Sep 10 15:04:36 2019 +0200
     1.2 +++ b/src/pEpEngine.c	Fri Sep 20 11:14:36 2019 +0200
     1.3 @@ -4543,7 +4543,7 @@
     1.4          PEP_SESSION session,
     1.5          const char *key_data,
     1.6          size_t size,
     1.7 -        identity_list **private_idents
     1.8 +        identity_list **private_keys
     1.9      )
    1.10  {
    1.11      assert(session);
    1.12 @@ -4552,26 +4552,22 @@
    1.13      if (!(session && key_data))
    1.14          return PEP_ILLEGAL_VALUE;
    1.15  
    1.16 -    return _import_key_with_fpr_return(session, key_data,
    1.17 -            size, private_idents, NULL);
    1.18 +    return session->cryptotech[PEP_crypt_OpenPGP]._import_key_with_fpr_return(
    1.19 +                                                        session, key_data,
    1.20 +                                                        size, private_keys, NULL);
    1.21  }
    1.22  
    1.23  PEP_STATUS _import_key_with_fpr_return(
    1.24          PEP_SESSION session,
    1.25          const char *key_data,
    1.26          size_t size,
    1.27 -        identity_list **private_idents,
    1.28 +        identity_list **private_keys,
    1.29          stringlist_t** imported_keys
    1.30      )
    1.31  {
    1.32 -    assert(session);
    1.33 -    assert(key_data);
    1.34 -
    1.35 -    if (!(session && key_data))
    1.36 -        return PEP_ILLEGAL_VALUE;
    1.37 -
    1.38 -    return session->cryptotech[PEP_crypt_OpenPGP]._import_key_with_fpr_return(session, key_data,
    1.39 -            size, private_idents, imported_keys);    
    1.40 +    return session->cryptotech[PEP_crypt_OpenPGP]._import_key_with_fpr_return(
    1.41 +                                                        session, key_data,
    1.42 +                                                        size, private_keys, imported_keys);    
    1.43  }    
    1.44  
    1.45  DYNAMIC_API PEP_STATUS recv_key(PEP_SESSION session, const char *pattern)