MCPcopy Create free account
hub / github.com/antonioCoco/RogueWinRM / handleType3

Method handleType3

LocalNegotiator.cpp:73–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72
73int LocalNegotiator::handleType3(char* ntlmBytes, int len)
74{
75 //printf("\n--handleType3 start --\n");
76
77 InitTokenContextBuffer(&secClientBufferDesc, &secClientBuffer);
78 InitTokenContextBuffer(&secServerBufferDesc, &secServerBuffer);
79
80 secClientBuffer.cbBuffer = static_cast<unsigned long>(len);
81 secClientBuffer.pvBuffer = ntlmBytes;
82
83 ULONG fContextAttr;
84 TimeStamp tsContextExpiry;
85 int status = AcceptSecurityContext(
86 &hCred,
87 phContext,
88 &secClientBufferDesc,
89 ASC_REQ_ALLOCATE_MEMORY | ASC_REQ_CONNECTION,
90 //STANDARD_CONTEXT_ATTRIBUTES,
91 SECURITY_NATIVE_DREP,
92 phContext,
93 &secServerBufferDesc,
94 &fContextAttr,
95 &tsContextExpiry);
96
97 authResult = status;
98
99 //printf("\n-- Result of AcceptSecurityContext() = status: 0x%x--\n", status);
100 //printf("\n--handleType3 end --\n");
101 return status;
102}
103
104char* LocalNegotiator::returnType2(unsigned long* outbuffer_len) {
105 *outbuffer_len = secServerBuffer.cbBuffer;

Callers 1

processNtlmBytesFunction · 0.80

Calls 1

InitTokenContextBufferFunction · 0.85

Tested by

no test coverage detected