mirror of
https://github.com/topotam/PetitPotam
synced 2026-06-08 17:52:16 +00:00
Call RpcBindingSetAuthInfo to auth against RPC endpoint.
This commit is contained in:
@@ -68,6 +68,13 @@ handle_t Bind(wchar_t* target)
|
||||
return(0);
|
||||
}
|
||||
|
||||
RpcStatus = RpcBindingSetAuthInfoW(BindingHandle, (RPC_WSTR)target, RPC_C_AUTHN_LEVEL_PKT_PRIVACY, RPC_C_AUTHN_GSS_NEGOTIATE, NULL, RPC_C_AUTHZ_NONE);
|
||||
|
||||
if (RpcStatus != RPC_S_OK) {
|
||||
wprintf(L"Error in RpcBindingSetAuthInfoW\n");
|
||||
return(0);
|
||||
}
|
||||
|
||||
return(BindingHandle);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user