C# Class Iaik.Utils.Net.SslConnection

Inheritance: TcpSocketConnection
Exibir arquivo Open project: areiter/InMemoryFuzzing

Public Methods

Method Description
CertificateErrorCodeToMessage ( int errorCode ) : string
Connect ( ) : void
Read ( byte buffer, int offset, int length ) : int
SslConnection ( Socket socket, SslStreamBase stream ) : System
SslConnection ( string host, int port, X509Certificate2 clientCertificate ) : System
SslConnection ( string host, int port, X509Certificate2 clientCertificate, string overwriteAuthenticationTargetHost ) : System
Write ( byte buffer, int offset, int length ) : void

Private Methods

Method Description
SelectLocalCertificate ( X509CertificateCollection clientCertificates, X509Certificate serverCertificate, string targetHost, X509CertificateCollection serverRequestedCertificates ) : X509Certificate

Selects a certificate to authenticate with for the host

ValidateRemoteCertificate ( X509Certificate certificate, int certificateErrors ) : bool

Validates the certificate of the remote host

Method Details

CertificateErrorCodeToMessage() public static method

public static CertificateErrorCodeToMessage ( int errorCode ) : string
errorCode int
return string

Connect() public method

public Connect ( ) : void
return void

Read() public method

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

SslConnection() public method

public SslConnection ( Socket socket, SslStreamBase stream ) : System
socket System.Net.Sockets.Socket
stream Mono.Security.Protocol.Tls.SslStreamBase
return System

SslConnection() public method

public SslConnection ( string host, int port, X509Certificate2 clientCertificate ) : System
host string
port int
clientCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
return System

SslConnection() public method

public SslConnection ( string host, int port, X509Certificate2 clientCertificate, string overwriteAuthenticationTargetHost ) : System
host string
port int
clientCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
overwriteAuthenticationTargetHost string
return System

Write() public method

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