Share via


4 Protocol Examples

In this scenario, the protocol client calls the RemoteGetMasterSecret method on a protocol server whose URL contains "server.example.com". The protocol client originates the binding information that the protocol server uses to authenticate the protocol client. The protocol client allocates MAX_MASTER_SECRET_BYTES bytes for the pbSecret parameter before calling the remote method.

 RemoteGetMasterSecret([in] handle_t hBinding, 
 [in, out] unsigned long * pcbSecret, 
 [out] BYTE * pbSecret);
  

On receiving this request the protocol server executes the method locally and returns:

 Return value is: ERROR_SUCCESS(an error_status_t value)
 RemoteGetMasterSecret([in] handle_t hBinding, 
 [in, out] unsigned long * pcbSecret,
 [ out] BYTE * pbSecret);