remove unused param sync
authorVolker Birk <vb@pep-project.org>
Fri, 03 May 2019 12:41:43 +0200
branchsync
changeset 3614fef7884ea3ae
parent 3612 2084f4779e1b
child 3615 37782ea8068a
remove unused param
src/message_api.c
     1.1 --- a/src/message_api.c	Fri May 03 12:40:18 2019 +0200
     1.2 +++ b/src/message_api.c	Fri May 03 12:41:43 2019 +0200
     1.3 @@ -2896,14 +2896,13 @@
     1.4  }
     1.5  
     1.6  static PEP_STATUS import_priv_keys_from_decrypted_msg(PEP_SESSION session,
     1.7 -                                                      message* src, 
     1.8                                                        message* msg,
     1.9                                                        bool* imported_keys,
    1.10                                                        bool* imported_private,
    1.11                                                        identity_list** private_il)
    1.12  {
    1.13 -    assert(src && msg && imported_keys && imported_private);
    1.14 -    if (!(src && msg && imported_keys && imported_private))
    1.15 +    assert(msg && imported_keys && imported_private);
    1.16 +    if (!(msg && imported_keys && imported_private))
    1.17          return PEP_ILLEGAL_VALUE;
    1.18  
    1.19      PEP_STATUS status = PEP_STATUS_OK;
    1.20 @@ -3437,7 +3436,7 @@
    1.21                  //
    1.22                  // We are importing from the decrypted outermost message now.
    1.23                  //
    1.24 -                status = import_priv_keys_from_decrypted_msg(session, src, msg,
    1.25 +                status = import_priv_keys_from_decrypted_msg(session, msg,
    1.26                                                               &imported_keys,
    1.27                                                               &imported_private_key_address,
    1.28                                                               private_il);
    1.29 @@ -3564,7 +3563,7 @@
    1.30                                              private_il = NULL;
    1.31                                              
    1.32                                              // import keys from decrypted INNER source
    1.33 -                                            status = import_priv_keys_from_decrypted_msg(session, src, inner_message,
    1.34 +                                            status = import_priv_keys_from_decrypted_msg(session, inner_message,
    1.35                                                                                           &imported_keys,
    1.36                                                                                           &imported_private_key_address,
    1.37                                                                                           private_il);