C# Class Zoompf.SPDYAnalysis.TlsHandshaker

Afficher le fichier Open project: zoompf/SPDYCheck

Méthodes publiques

Méthode Description
ExchangeHellos ( string hostname, int port, SslProtocols protocol, int mSecTimeout = 8000 ) : ServerHello

Méthodes protégées

Méthode Description
buildALPNExtension ( ) : byte[]
buildDateTimeBytes ( ) : byte[]

Gets the CTime bytes in proper endian-ness for use in random parameter of Client Hello

buildNPNExtension ( ) : byte[]
buildRandomBytes ( ) : byte[]
buildSNIRecord ( string hostname ) : byte[]

Builds the SNI extension bytes for a hostname (SNI is the length of the hostname + 9 bytes)

readAsInt ( byte array, int offset, int len ) : int
removeWhitespace ( string s ) : string
toInt16 ( int num ) : byte[]

Private Methods

Méthode Description
createTLSClientHello ( String hostname, SslProtocols protocol ) : byte[]

Method Details

ExchangeHellos() public static méthode

public static ExchangeHellos ( string hostname, int port, SslProtocols protocol, int mSecTimeout = 8000 ) : ServerHello
hostname string
port int
protocol SslProtocols
mSecTimeout int
Résultat ServerHello

buildALPNExtension() protected static méthode

protected static buildALPNExtension ( ) : byte[]
Résultat byte[]

buildDateTimeBytes() protected static méthode

Gets the CTime bytes in proper endian-ness for use in random parameter of Client Hello
protected static buildDateTimeBytes ( ) : byte[]
Résultat byte[]

buildNPNExtension() protected static méthode

protected static buildNPNExtension ( ) : byte[]
Résultat byte[]

buildRandomBytes() protected static méthode

protected static buildRandomBytes ( ) : byte[]
Résultat byte[]

buildSNIRecord() protected static méthode

Builds the SNI extension bytes for a hostname (SNI is the length of the hostname + 9 bytes)
protected static buildSNIRecord ( string hostname ) : byte[]
hostname string
Résultat byte[]

readAsInt() protected static méthode

protected static readAsInt ( byte array, int offset, int len ) : int
array byte
offset int
len int
Résultat int

removeWhitespace() protected static méthode

protected static removeWhitespace ( string s ) : string
s string
Résultat string

toInt16() protected static méthode

protected static toInt16 ( int num ) : byte[]
num int
Résultat byte[]