|
|
|
@ -4,7 +4,7 @@
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* The MIT License
|
|
|
|
* The MIT License
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 2012-2013 sta.blockhead
|
|
|
|
* Copyright (c) 2012-2014 sta.blockhead
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
@ -30,8 +30,8 @@ using System;
|
|
|
|
using System.Net.Security;
|
|
|
|
using System.Net.Security;
|
|
|
|
using System.Net.Sockets;
|
|
|
|
using System.Net.Sockets;
|
|
|
|
|
|
|
|
|
|
|
|
namespace WebSocketSharp.Net.Security {
|
|
|
|
namespace WebSocketSharp.Net.Security
|
|
|
|
|
|
|
|
{
|
|
|
|
internal class SslStream : System.Net.Security.SslStream
|
|
|
|
internal class SslStream : System.Net.Security.SslStream
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#region Public Constructors
|
|
|
|
#region Public Constructors
|
|
|
|
@ -49,8 +49,8 @@ namespace WebSocketSharp.Net.Security {
|
|
|
|
public SslStream (
|
|
|
|
public SslStream (
|
|
|
|
NetworkStream innerStream,
|
|
|
|
NetworkStream innerStream,
|
|
|
|
bool leaveInnerStreamOpen,
|
|
|
|
bool leaveInnerStreamOpen,
|
|
|
|
RemoteCertificateValidationCallback userCertificateValidationCallback
|
|
|
|
RemoteCertificateValidationCallback userCertificateValidationCallback)
|
|
|
|
) : base(innerStream, leaveInnerStreamOpen, userCertificateValidationCallback)
|
|
|
|
: base (innerStream, leaveInnerStreamOpen, userCertificateValidationCallback)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -58,13 +58,12 @@ namespace WebSocketSharp.Net.Security {
|
|
|
|
NetworkStream innerStream,
|
|
|
|
NetworkStream innerStream,
|
|
|
|
bool leaveInnerStreamOpen,
|
|
|
|
bool leaveInnerStreamOpen,
|
|
|
|
RemoteCertificateValidationCallback userCertificateValidationCallback,
|
|
|
|
RemoteCertificateValidationCallback userCertificateValidationCallback,
|
|
|
|
LocalCertificateSelectionCallback userCertificateSelectionCallback
|
|
|
|
LocalCertificateSelectionCallback userCertificateSelectionCallback)
|
|
|
|
) : base(
|
|
|
|
: base (
|
|
|
|
innerStream,
|
|
|
|
innerStream,
|
|
|
|
leaveInnerStreamOpen,
|
|
|
|
leaveInnerStreamOpen,
|
|
|
|
userCertificateValidationCallback,
|
|
|
|
userCertificateValidationCallback,
|
|
|
|
userCertificateSelectionCallback
|
|
|
|
userCertificateSelectionCallback)
|
|
|
|
)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|