2 writes to m_Worker
System (2)
net\System\Net\_TLSstream.cs (2)
76
m_Worker
= new SslState(networkStream, initiatingRequest is HttpWebRequest, SettingsSectionInternal.Section.EncryptionPolicy);
117
m_Worker
= null;
56 references to m_Worker
System (56)
net\System\Net\_TLSstream.cs (56)
82
m_Worker
.SetCertValidationDelegate(certValidationCallback);
114
m_Worker
.Close();
128
return
m_Worker
.DataAvailable || base.DataAvailable;
136
GlobalLog.Print("TlsStream#" + ValidationHelper.HashString(this) + "::Read() SecureWorker#" + ValidationHelper.HashString(
m_Worker
) + " offset:" + offset.ToString() + " size:" + size.ToString());
138
if (!
m_Worker
.IsAuthenticated)
142
return
m_Worker
.SecureStream.Read(buffer, offset, size);
146
if (
m_Worker
.IsCertValidationFailed) {
149
else if (
m_Worker
.LastSecurityStatus != SecurityStatus.OK) {
162
GlobalLog.Print("TlsStream#" + ValidationHelper.HashString(this) + "::BeginRead() SecureWorker#" + ValidationHelper.HashString(
m_Worker
) + " offset:" + offset.ToString() + " size:" + size.ToString());
164
if (!
m_Worker
.IsAuthenticated)
172
return
m_Worker
.SecureStream.BeginRead(buffer, offset, size, asyncCallback, asyncState);
175
if (
m_Worker
.IsCertValidationFailed) {
178
else if (
m_Worker
.LastSecurityStatus != SecurityStatus.OK) {
202
return
m_Worker
.SecureStream.EndRead(asyncResult);
213
if (
m_Worker
.IsCertValidationFailed) {
216
else if (
m_Worker
.LastSecurityStatus != SecurityStatus.OK) {
231
GlobalLog.Print("TlsStream#" + ValidationHelper.HashString(this) + "::Write() SecureWorker#" + ValidationHelper.HashString(
m_Worker
) + " offset:" + offset.ToString() + " size:" + size.ToString());
233
if (!
m_Worker
.IsAuthenticated)
237
m_Worker
.SecureStream.Write(buffer, offset, size);
242
if (
m_Worker
.IsCertValidationFailed) {
245
else if (
m_Worker
.LastSecurityStatus != SecurityStatus.OK) {
270
GlobalLog.Print("TlsStream#" + ValidationHelper.HashString(this) + "::BeginWrite() SecureWorker#" + ValidationHelper.HashString(
m_Worker
) + " offset:" + offset.ToString() + " size:" + size.ToString());
271
if (!
m_Worker
.IsAuthenticated)
279
return
m_Worker
.SecureStream.BeginWrite(buffer, offset, size, asyncCallback, asyncState);
282
if (
m_Worker
.IsCertValidationFailed) {
285
else if (
m_Worker
.LastSecurityStatus != SecurityStatus.OK) {
310
m_Worker
.SecureStream.EndWrite(asyncResult);
329
if (
m_Worker
.IsCertValidationFailed) {
332
else if (
m_Worker
.LastSecurityStatus != SecurityStatus.OK) {
343
GlobalLog.Print("TlsStream#" + ValidationHelper.HashString(this) + "::MultipleWrite() SecureWorker#" + ValidationHelper.HashString(
m_Worker
) + " buffers.Length:" + buffers.Length.ToString());
345
if (!
m_Worker
.IsAuthenticated)
349
m_Worker
.SecureStream.Write(buffers);
359
if (
m_Worker
.IsCertValidationFailed) {
362
else if (
m_Worker
.LastSecurityStatus != SecurityStatus.OK) {
373
GlobalLog.Print("TlsStream#" + ValidationHelper.HashString(this) + "::BeginMultipleWrite() SecureWorker#" + ValidationHelper.HashString(
m_Worker
) + " buffers.Length:" + buffers.Length.ToString());
374
if (!
m_Worker
.IsAuthenticated)
382
return
m_Worker
.SecureStream.BeginWrite(buffers, callback, state);
385
if (
m_Worker
.IsCertValidationFailed) {
388
else if (
m_Worker
.LastSecurityStatus != SecurityStatus.OK) {
412
return
m_Worker
.InternalLocalCertificate;
423
return
m_Worker
.GetChannelBinding(kind);
443
if (
m_Worker
.IsAuthenticated)
467
m_Worker
.ValidateCreateContext(false,
480
handshakeResult = new LazyAsyncResult(
m_Worker
, null, new AsyncCallback(WakeupPendingIO));
495
m_Worker
.ProcessAuthentication(handshakeResult);
531
if (
m_Worker
.IsCertValidationFailed) {
534
else if (
m_Worker
.LastSecurityStatus != SecurityStatus.OK) {
550
m_Worker
.ProcessAuthentication((LazyAsyncResult)state);
568
m_Worker
.EndProcessAuthentication(ar);
576
if (
m_Worker
.IsCertValidationFailed) {
579
else if (
m_Worker
.LastSecurityStatus != SecurityStatus.OK) {
649
result =
m_Worker
.SecureStream.BeginWrite(bufferResult.Buffers, _CompleteIOCallback, bufferResult);
651
result =
m_Worker
.SecureStream.BeginWrite(bufferResult.Buffer, bufferResult.Offset, bufferResult.Count, _CompleteIOCallback, bufferResult);
655
result =
m_Worker
.SecureStream.BeginRead(bufferResult.Buffer, bufferResult.Offset, bufferResult.Count, _CompleteIOCallback, bufferResult);
697
((TlsStream)bufferResult.AsyncObject).
m_Worker
.SecureStream.EndWrite(result);
699
readBytes = ((TlsStream)bufferResult.AsyncObject).
m_Worker
.SecureStream.EndRead(result);