Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Titanium-Web-Proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Titanium-Web-Proxy
Commits
2b5bfef9
Commit
2b5bfef9
authored
May 23, 2017
by
justcoding121
Committed by
justcoding121
May 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused file
parent
b0a96db5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
54 deletions
+0
-54
BufferWrapper.cs
Titanium.Web.Proxy/Network/WinAuth/Security/BufferWrapper.cs
+0
-21
Common.cs
Titanium.Web.Proxy/Network/WinAuth/Security/Common.cs
+0
-32
Titanium.Web.Proxy.csproj
Titanium.Web.Proxy/Titanium.Web.Proxy.csproj
+0
-1
No files found.
Titanium.Web.Proxy/Network/WinAuth/Security/BufferWrapper.cs
deleted
100644 → 0
View file @
b0a96db5
namespace
Titanium.Web.Proxy.Network.WinAuth.Security
{
using
System
;
internal
struct
BufferWrapper
{
internal
byte
[]
Buffer
;
internal
Common
.
SecurityBufferType
BufferType
;
internal
BufferWrapper
(
byte
[]
buffer
,
Common
.
SecurityBufferType
bufferType
)
{
if
(
buffer
==
null
||
buffer
.
Length
==
0
)
{
throw
new
ArgumentException
(
"buffer cannot be null or 0 length"
);
}
Buffer
=
buffer
;
BufferType
=
bufferType
;
}
};
}
Titanium.Web.Proxy/Network/WinAuth/Security/Common.cs
View file @
2b5bfef9
...
@@ -175,38 +175,6 @@
...
@@ -175,38 +175,6 @@
Marshal
.
StructureToPtr
(
ThisSecBuffer
,
pBuffers
,
false
);
Marshal
.
StructureToPtr
(
ThisSecBuffer
,
pBuffers
,
false
);
}
}
internal
SecurityBufferDesciption
(
BufferWrapper
[]
secBufferBytesArray
)
{
if
(
secBufferBytesArray
==
null
||
secBufferBytesArray
.
Length
==
0
)
{
throw
new
ArgumentException
(
"secBufferBytesArray cannot be null or 0 length"
);
}
ulVersion
=
(
int
)
SecurityBufferType
.
SECBUFFER_VERSION
;
cBuffers
=
secBufferBytesArray
.
Length
;
//Allocate memory for SecBuffer Array....
pBuffers
=
Marshal
.
AllocHGlobal
(
Marshal
.
SizeOf
(
typeof
(
Buffer
))
*
cBuffers
);
for
(
int
Index
=
0
;
Index
<
secBufferBytesArray
.
Length
;
Index
++)
{
//Super hack: Now allocate memory for the individual SecBuffers
//and just copy the bit values to the SecBuffer array!!!
Common
.
SecurityBuffer
ThisSecBuffer
=
new
Common
.
SecurityBuffer
(
secBufferBytesArray
[
Index
].
Buffer
,
secBufferBytesArray
[
Index
].
BufferType
);
//We will write out bits in the following order:
//int cbBuffer;
//int BufferType;
//pvBuffer;
//Note that we won't be releasing the memory allocated by ThisSecBuffer until we
//are disposed...
int
CurrentOffset
=
Index
*
Marshal
.
SizeOf
(
typeof
(
Buffer
));
Marshal
.
WriteInt32
(
pBuffers
,
CurrentOffset
,
ThisSecBuffer
.
cbBuffer
);
Marshal
.
WriteInt32
(
pBuffers
,
CurrentOffset
+
Marshal
.
SizeOf
(
ThisSecBuffer
.
cbBuffer
),
ThisSecBuffer
.
cbBufferType
);
Marshal
.
WriteIntPtr
(
pBuffers
,
CurrentOffset
+
Marshal
.
SizeOf
(
ThisSecBuffer
.
cbBuffer
)
+
Marshal
.
SizeOf
(
ThisSecBuffer
.
cbBufferType
),
ThisSecBuffer
.
pvBuffer
);
}
}
public
void
Dispose
()
public
void
Dispose
()
{
{
if
(
pBuffers
!=
IntPtr
.
Zero
)
if
(
pBuffers
!=
IntPtr
.
Zero
)
...
...
Titanium.Web.Proxy/Titanium.Web.Proxy.csproj
View file @
2b5bfef9
...
@@ -106,7 +106,6 @@
...
@@ -106,7 +106,6 @@
<Compile
Include=
"Network\Tcp\TcpConnectionFactory.cs"
/>
<Compile
Include=
"Network\Tcp\TcpConnectionFactory.cs"
/>
<Compile
Include=
"Models\HttpHeader.cs"
/>
<Compile
Include=
"Models\HttpHeader.cs"
/>
<Compile
Include=
"Http\HttpWebClient.cs"
/>
<Compile
Include=
"Http\HttpWebClient.cs"
/>
<Compile
Include=
"Network\WinAuth\Security\BufferWrapper.cs"
/>
<Compile
Include=
"Network\WinAuth\Security\Common.cs"
/>
<Compile
Include=
"Network\WinAuth\Security\Common.cs"
/>
<Compile
Include=
"Network\WinAuth\Security\WinAuthEndPoint.cs"
/>
<Compile
Include=
"Network\WinAuth\Security\WinAuthEndPoint.cs"
/>
<Compile
Include=
"Network\WinAuth\Security\LittleEndian.cs"
/>
<Compile
Include=
"Network\WinAuth\Security\LittleEndian.cs"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment