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
9a3924c4
Commit
9a3924c4
authored
Jul 06, 2017
by
justcoding121
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update StreamExtended package
parent
ea32f147
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
TcpConnectionFactory.cs
Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs
+2
-2
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+5
-5
Titanium.Web.Proxy.Standard.csproj
Titanium.Web.Proxy/Titanium.Web.Proxy.Standard.csproj
+1
-1
Titanium.Web.Proxy.csproj
Titanium.Web.Proxy/Titanium.Web.Proxy.csproj
+2
-2
packages.config
Titanium.Web.Proxy/packages.config
+1
-1
No files found.
Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs
View file @
9a3924c4
...
...
@@ -106,8 +106,8 @@ namespace Titanium.Web.Proxy.Network.Tcp
if
(
isHttps
)
{
var
alpnStream
=
ProxyServer
.
AlpnEnabled
?
(
Stream
)
new
ClientHelloAlpnAdderStream
(
stream
)
:
stream
;
var
sslStream
=
new
SslStream
(
alpnS
tream
,
false
,
server
.
ValidateServerCertificate
,
server
.
SelectClientCertificate
);
var
sslStream
=
new
SslStream
(
s
tream
,
false
,
server
.
ValidateServerCertificate
,
server
.
SelectClientCertificate
);
stream
=
new
CustomBufferedStream
(
sslStream
,
server
.
BufferSize
);
await
sslStream
.
AuthenticateAsClientAsync
(
remoteHostName
,
null
,
server
.
SupportedSslProtocols
,
server
.
CheckCertificateRevocation
);
...
...
Titanium.Web.Proxy/RequestHandler.cs
View file @
9a3924c4
...
...
@@ -110,7 +110,7 @@ namespace Titanium.Web.Proxy
connectArgs
.
WebSession
.
Response
=
ConnectResponse
.
CreateSuccessfullConnectResponse
(
version
);
await
clientStreamWriter
.
WriteResponseAsync
(
connectArgs
.
WebSession
.
Response
);
var
clientHelloInfo
=
await
SslTools
.
GetClientHelloInf
o
(
clientStream
);
var
clientHelloInfo
=
await
SslTools
.
PeekClientHell
o
(
clientStream
);
bool
isClientHello
=
clientHelloInfo
!=
null
;
if
(
isClientHello
)
{
...
...
@@ -132,8 +132,8 @@ namespace Titanium.Web.Proxy
try
{
var
alpnStream
=
AlpnEnabled
?
(
Stream
)
new
ServerHelloAlpnAdderStream
(
clientStream
)
:
clientStream
;
sslStream
=
new
SslStream
(
alpn
Stream
);
sslStream
=
new
SslStream
(
client
Stream
);
string
certName
=
HttpHelper
.
GetWildCardDomainName
(
httpRemoteUri
.
Host
);
...
...
@@ -175,7 +175,7 @@ namespace Titanium.Web.Proxy
await
connection
.
Stream
.
FlushAsync
();
}
var
serverHelloInfo
=
await
SslTools
.
GetServerHelloInf
o
(
connection
.
Stream
);
var
serverHelloInfo
=
await
SslTools
.
PeekServerHell
o
(
connection
.
Stream
);
((
ConnectResponse
)
connectArgs
.
WebSession
.
Response
).
ServerHelloInfo
=
serverHelloInfo
;
}
...
...
@@ -224,7 +224,7 @@ namespace Titanium.Web.Proxy
{
if
(
endPoint
.
EnableSsl
)
{
var
clientSslHelloInfo
=
await
SslTools
.
GetClientHelloInf
o
(
clientStream
);
var
clientSslHelloInfo
=
await
SslTools
.
PeekClientHell
o
(
clientStream
);
if
(
clientSslHelloInfo
!=
null
)
{
...
...
Titanium.Web.Proxy/Titanium.Web.Proxy.Standard.csproj
View file @
9a3924c4
...
...
@@ -34,7 +34,7 @@
<ItemGroup>
<PackageReference Include="Portable.BouncyCastle" Version="1.8.1.2" />
<PackageReference Include="StreamExtended" Version="1.0.1
7
" />
<PackageReference Include="StreamExtended" Version="1.0.1
8
" />
<PackageReference Include="System.Net.NameResolution" Version="4.3.0" />
<PackageReference Include="System.Net.Security" Version="4.3.1" />
<PackageReference Include="System.Runtime.Serialization.Formatters" Version="4.3.0" />
...
...
Titanium.Web.Proxy/Titanium.Web.Proxy.csproj
View file @
9a3924c4
...
...
@@ -50,8 +50,8 @@
<HintPath>
..\packages\BouncyCastle.1.8.1\lib\BouncyCastle.Crypto.dll
</HintPath>
<Private>
True
</Private>
</Reference>
<Reference
Include=
"StreamExtended, Version=1.0.
0
.0, Culture=neutral, PublicKeyToken=bbfa0f1d54f50043, processorArchitecture=MSIL"
>
<HintPath>
..\packages\StreamExtended.1.0.1
7
\lib\net45\StreamExtended.dll
</HintPath>
<Reference
Include=
"StreamExtended, Version=1.0.
1
.0, Culture=neutral, PublicKeyToken=bbfa0f1d54f50043, processorArchitecture=MSIL"
>
<HintPath>
..\packages\StreamExtended.1.0.1
8
\lib\net45\StreamExtended.dll
</HintPath>
<Private>
True
</Private>
</Reference>
<Reference
Include=
"System"
/>
...
...
Titanium.Web.Proxy/packages.config
View file @
9a3924c4
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
packages
>
<
package
id
=
"BouncyCastle"
version
=
"1.8.1"
targetFramework
=
"net45"
/>
<
package
id
=
"StreamExtended"
version
=
"1.0.1
7
"
targetFramework
=
"net45"
/>
<
package
id
=
"StreamExtended"
version
=
"1.0.1
8
"
targetFramework
=
"net45"
/>
</
packages
>
\ No newline at end of file
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