| 71 | |
| 72 | |
| 73 | int 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 | |
| 104 | char* LocalNegotiator::returnType2(unsigned long* outbuffer_len) { |
| 105 | *outbuffer_len = secServerBuffer.cbBuffer; |
no test coverage detected