Rename argument sync
authorThomas
Thu, 21 Feb 2019 13:25:55 +0100
branchsync
changeset 333e207e206341c
parent 332 54d5b01490d6
child 335 e451b820d247
Rename argument
CpEpEngine.cpp
pEpCOMServerAdapter.idl
     1.1 --- a/CpEpEngine.cpp	Fri Feb 08 12:04:46 2019 +0100
     1.2 +++ b/CpEpEngine.cpp	Thu Feb 21 13:25:55 2019 +0100
     1.3 @@ -654,7 +654,7 @@
     1.4      return S_OK;
     1.5  }
     1.6  
     1.7 -STDMETHODIMP CpEpEngine::KeyReset(BSTR keyId, struct pEpIdentity ident)
     1.8 +STDMETHODIMP CpEpEngine::KeyReset(BSTR fpr, struct pEpIdentity ident)
     1.9  {
    1.10  	::pEp_identity *_ident;
    1.11  
    1.12 @@ -668,9 +668,9 @@
    1.13  		return FAIL(ex.what());;
    1.14  	}
    1.15  
    1.16 -	string _keyId = utf8_string(keyId);
    1.17 +	string _fpr = utf8_string(fpr);
    1.18  
    1.19 -	PEP_STATUS status = ::key_reset(session(), _keyId.c_str(), _ident);
    1.20 +	PEP_STATUS status = ::key_reset(session(), _fpr.c_str(), _ident);
    1.21  
    1.22  	free_identity(_ident);
    1.23  
     2.1 --- a/pEpCOMServerAdapter.idl	Fri Feb 08 12:04:46 2019 +0100
     2.2 +++ b/pEpCOMServerAdapter.idl	Thu Feb 21 13:25:55 2019 +0100
     2.3 @@ -452,7 +452,7 @@
     2.4  	[id(44)] HRESULT GetKeyRatingForUser([in] BSTR userId, [in] BSTR fpr, [out, retval] pEpRating *rating);
     2.5  
     2.6  	// Resets the database status for a key
     2.7 -	[id(45)] HRESULT KeyReset([in] BSTR keyId, [in] struct pEpIdentity ident);
     2.8 +	[id(45)] HRESULT KeyReset([in] BSTR fpr, [in] struct pEpIdentity ident);
     2.9  };
    2.10  
    2.11  [