C# Class OpenSSL.SSL.SslStreamBase

Inheritance: Stream, IDisposable
Show file Open project: langhuihui/csharprtmp Class Usage Examples

Protected Properties

Property Type Description
checkCertificateRevocationStatus bool
handShakeState HandshakeState
handshakeException OpenSSL.Core.OpenSslException
localCertificateSelectionCallback LocalCertificateSelectionHandler
remoteCertificateSelectionCallback RemoteCertificateValidationHandler

Private Properties

Property Type Description
AsyncHandshakeCallback void
AsyncHandshakeComplete void
BeginHandshake IAsyncResult
EndHandshake void
GetCipherString string
IDisposable void
InternalBeginRead void
InternalBeginWrite void
InternalReadCallback void
InternalWriteCallback void
RenegotiationWriteCallback void

Public Methods

Method Description
BeginRead ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
BeginWrite ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
Close ( ) : void
EndRead ( IAsyncResult asyncResult ) : int
EndWrite ( IAsyncResult asyncResult ) : void
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
Renegotiate ( ) : void

Renegotiate session keys - calls SSL_renegotiate

Seek ( long offset, SeekOrigin origin ) : long
SendShutdownAlert ( ) : void
SetLength ( long value ) : void
SslStreamBase ( Stream stream, bool ownStream ) : System
Write ( byte buffer, int offset, int count ) : void

Protected Methods

Method Description
ProcessHandshake ( ) : bool

Override to implement client/server specific handshake processing

Private Methods

Method Description
AsyncHandshakeCallback ( IAsyncResult asyncResult ) : void
AsyncHandshakeComplete ( IAsyncResult asyncResult ) : void
BeginHandshake ( InternalAsyncResult readwriteAsyncResult ) : IAsyncResult
EndHandshake ( IAsyncResult asyncResult ) : void
GetCipherString ( bool FIPSmode, SslProtocols sslProtocols, SslStrength sslStrength ) : string
IDisposable ( ) : void
InternalBeginRead ( InternalAsyncResult asyncResult ) : void
InternalBeginWrite ( InternalAsyncResult asyncResult ) : void
InternalReadCallback ( IAsyncResult asyncResult ) : void
InternalWriteCallback ( IAsyncResult asyncResult ) : void
RenegotiationWriteCallback ( IAsyncResult asyncResult ) : void

Method Details

BeginRead() public method

public BeginRead ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
buffer byte
offset int
count int
asyncCallback AsyncCallback
asyncState object
return IAsyncResult

BeginWrite() public method

public BeginWrite ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
buffer byte
offset int
count int
asyncCallback AsyncCallback
asyncState object
return IAsyncResult

Close() public method

public Close ( ) : void
return void

EndRead() public method

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
return int

EndWrite() public method

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
return void

Flush() public method

public Flush ( ) : void
return void

ProcessHandshake() protected abstract method

Override to implement client/server specific handshake processing
protected abstract ProcessHandshake ( ) : bool
return bool

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

Renegotiate() public method

Renegotiate session keys - calls SSL_renegotiate
public Renegotiate ( ) : void
return void

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SendShutdownAlert() public method

public SendShutdownAlert ( ) : void
return void

SetLength() public method

public SetLength ( long value ) : void
value long
return void

SslStreamBase() public method

public SslStreamBase ( Stream stream, bool ownStream ) : System
stream Stream
ownStream bool
return System

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void

Property Details

checkCertificateRevocationStatus protected property

protected bool checkCertificateRevocationStatus
return bool

handShakeState protected property

protected HandshakeState handShakeState
return HandshakeState

handshakeException protected property

protected OpenSslException,OpenSSL.Core handshakeException
return OpenSSL.Core.OpenSslException

localCertificateSelectionCallback protected property

protected LocalCertificateSelectionHandler localCertificateSelectionCallback
return LocalCertificateSelectionHandler

remoteCertificateSelectionCallback protected property

protected RemoteCertificateValidationHandler remoteCertificateSelectionCallback
return RemoteCertificateValidationHandler