| Index: net/http/mock_sspi_library_win.cc
|
| ===================================================================
|
| --- net/http/mock_sspi_library_win.cc (revision 59119)
|
| +++ net/http/mock_sspi_library_win.cc (working copy)
|
| @@ -50,6 +50,10 @@
|
| uint8* buf = reinterpret_cast<uint8 *>(out_buffer->pvBuffer);
|
| buf[0] = 0xAB;
|
| buf[1] = 0xBA;
|
| +
|
| + // Fill in phNewContext with arbitrary value if it's invalid.
|
| + if (phNewContext != phContext)
|
| + phNewContext->dwLower = phNewContext->dwUpper = ((ULONG_PTR) ((INT_PTR)0));
|
| return SEC_E_OK;
|
| }
|
|
|
| @@ -75,8 +79,10 @@
|
| }
|
|
|
| SECURITY_STATUS MockSSPILibrary::DeleteSecurityContext(PCtxtHandle phContext) {
|
| - ADD_FAILURE();
|
| - return ERROR_CALL_NOT_IMPLEMENTED;
|
| + EXPECT_TRUE(phContext->dwLower == ((ULONG_PTR) ((INT_PTR) 0)));
|
| + EXPECT_TRUE(phContext->dwLower == ((ULONG_PTR) ((INT_PTR) 0)));
|
| + SecInvalidateHandle(phContext);
|
| + return SEC_E_OK;
|
| }
|
|
|
| SECURITY_STATUS MockSSPILibrary::FreeContextBuffer(PVOID pvContextBuffer) {
|
|
|
| Property changes on: net\http\mock_sspi_library_win.cc
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|