-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
helper.h
26 lines (18 loc) · 774 Bytes
/
helper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once
#include "globals.h"
typedef char ASN1char_t;
typedef struct ASN1encoding_s* ASN1encoding_t;
typedef struct {
unsigned short length;
unsigned char* value;
} OssEncodedOID;
extern ASN1_PUBLIC BOOL ASN1API ASN1BERDotVal2Eoid(__in ASN1encoding_t pEncoderInfo, __in const ASN1char_t* dotOID, __out OssEncodedOID* encodedOID);
BOOL asn1_init();
void asn1_term();
BOOL DotVal2Eoid(__in const ASN1char_t* dotOID, __out OssEncodedOID* encodedOID);
void freeEnc(void* pBuf);
void print_msg(PCWCHAR format, ...);
BOOL string_copy(LPWSTR* dst, LPCWSTR src);
BOOL getSidDomainFromName(PCWSTR pName, PSID* pSid, PWSTR* pDomain, PSID_NAME_USE pSidNameUse, LPCWSTR system);
void displaySID(IN PSID pSid);
void wprintf_hex(LPCVOID lpData, DWORD cbData, DWORD flags);