C# Class OpenSSL.SSL.SslStreamBase

Inheritance: Stream, IDisposable
Afficher le fichier Open project: langhuihui/csharprtmp Class Usage Examples

Protected Properties

Свойство Type Description
checkCertificateRevocationStatus bool
handShakeState HandshakeState
handshakeException OpenSSL.Core.OpenSslException
localCertificateSelectionCallback LocalCertificateSelectionHandler
remoteCertificateSelectionCallback RemoteCertificateValidationHandler

Private Properties

Свойство Type Description
AsyncHandshakeCallback void
AsyncHandshakeComplete void
BeginHandshake IAsyncResult
EndHandshake void
GetCipherString string
IDisposable void
InternalBeginRead void
InternalBeginWrite void
InternalReadCallback void
InternalWriteCallback void
RenegotiationWriteCallback void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
ProcessHandshake ( ) : bool

Override to implement client/server specific handshake processing

Private Methods

Méthode 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 méthode

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

BeginWrite() public méthode

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

Close() public méthode

public Close ( ) : void
Résultat void

EndRead() public méthode

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Résultat int

EndWrite() public méthode

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

ProcessHandshake() protected abstract méthode

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

Read() public méthode

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

Renegotiate() public méthode

Renegotiate session keys - calls SSL_renegotiate
public Renegotiate ( ) : void
Résultat void

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SendShutdownAlert() public méthode

public SendShutdownAlert ( ) : void
Résultat void

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

SslStreamBase() public méthode

public SslStreamBase ( Stream stream, bool ownStream ) : System
stream Stream
ownStream bool
Résultat System

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void

Property Details

checkCertificateRevocationStatus protected_oe property

protected bool checkCertificateRevocationStatus
Résultat bool

handShakeState protected_oe property

protected HandshakeState handShakeState
Résultat HandshakeState

handshakeException protected_oe property

protected OpenSslException,OpenSSL.Core handshakeException
Résultat OpenSSL.Core.OpenSslException

localCertificateSelectionCallback protected_oe property

protected LocalCertificateSelectionHandler localCertificateSelectionCallback
Résultat LocalCertificateSelectionHandler

remoteCertificateSelectionCallback protected_oe property

protected RemoteCertificateValidationHandler remoteCertificateSelectionCallback
Résultat RemoteCertificateValidationHandler