summaryrefslogtreecommitdiffhomepage
path: root/src/object/ntapi_tt_sid.c
blob: d93775cb346e5f6f0c14197762c4169750085ace (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/********************************************************/
/*  ntapi: Native API core library                      */
/*  Copyright (C) 2013--2017  Z. Gilboa                 */
/*  Released under GPLv2 and GPLv3; see COPYING.NTAPI.  */
/********************************************************/

#include <psxtypes/psxtypes.h>
#include <ntapi/nt_object.h>
#include "ntapi_impl.h"

void __stdcall __ntapi_tt_sid_copy(
	__out	nt_sid *	dst,
	__in	const nt_sid *	src)
{
	int i;

	dst->revision             = src->revision;
	dst->sub_authority_count  = src->sub_authority_count;
	dst->identifier_authority = src->identifier_authority;

	for (i=0; i<src->sub_authority_count; i++)
		dst->sub_authority[i] = src->sub_authority[i];
}