ConnectionState

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.crypto.tls

 

constructor

 

constructor

 

ConnectionState()

 

init()

constructor (ConnectionState)

 

constructor(value: ConnectionState)

 

ConnectionState(ConnectionState value)

 

init(_ value: ConnectionState)

Parameters:

  • value:

 

constructor(aVersion: uint16; aHandshakeComplete: bool; aDidResume: bool; aCipherSuite: uint16; aNegotiatedProtocol: string; aNegotiatedProtocolIsMutual: bool; aServerName: string; aPeerCertificates: Slice<Reference<Certificate>>; aVerifiedChains: Slice<Slice<Reference<Certificate>>>; aSignedCertificateTimestamps: Slice<Slice<Byte>>; aOCSPResponse: Slice<Byte>; aekm: Func<string, Slice<Byte>, int, tuple of (Slice<Byte>, error)>; aTLSUnique: Slice<Byte>)

 

ConnectionState(uint16 aVersion, bool aHandshakeComplete, bool aDidResume, uint16 aCipherSuite, string aNegotiatedProtocol, bool aNegotiatedProtocolIsMutual, string aServerName, Slice<Reference<Certificate>> aPeerCertificates, Slice<Slice<Reference<Certificate>>> aVerifiedChains, Slice<Slice<Byte>> aSignedCertificateTimestamps, Slice<Byte> aOCSPResponse, Func<string, Slice<Byte>, int, (Slice<Byte>, error)> aekm, Slice<Byte> aTLSUnique)

 

init(_ aVersion: uint16, _ aHandshakeComplete: bool, _ aDidResume: bool, _ aCipherSuite: uint16, _ aNegotiatedProtocol: string, _ aNegotiatedProtocolIsMutual: bool, _ aServerName: string, _ aPeerCertificates: Slice<Reference<Certificate>>, _ aVerifiedChains: Slice<Slice<Reference<Certificate>>>, _ aSignedCertificateTimestamps: Slice<Slice<Byte>>, _ aOCSPResponse: Slice<Byte>, _ aekm: Func<string, Slice<Byte>, int, (Slice<Byte>, error)>, _ aTLSUnique: Slice<Byte>)

Parameters:

  • aVersion:
  • aHandshakeComplete:
  • aDidResume:
  • aCipherSuite:
  • aNegotiatedProtocol:
  • aNegotiatedProtocolIsMutual:
  • aServerName:
  • aPeerCertificates:
  • aVerifiedChains:
  • aSignedCertificateTimestamps:
  • aOCSPResponse:
  • aekm:
  • aTLSUnique:

 

constructor(aVersion: UInt16; aHandshakeComplete: Boolean; aDidResume: Boolean; aCipherSuite: UInt16; aNegotiatedProtocol: string; aNegotiatedProtocolIsMutual: Boolean; aServerName: string; aPeerCertificates: Slice<Reference<Certificate>>; aVerifiedChains: Slice<Slice<Reference<Certificate>>>; aSignedCertificateTimestamps: Slice<Slice<Byte>>; aOCSPResponse: Slice<Byte>; aekm: Func<string, Slice<Byte>, Int64, tuple of (Slice<Byte>, error)>; aTLSUnique: Slice<Byte>)

 

ConnectionState(UInt16 aVersion, Boolean aHandshakeComplete, Boolean aDidResume, UInt16 aCipherSuite, string aNegotiatedProtocol, Boolean aNegotiatedProtocolIsMutual, string aServerName, Slice<Reference<Certificate>> aPeerCertificates, Slice<Slice<Reference<Certificate>>> aVerifiedChains, Slice<Slice<Byte>> aSignedCertificateTimestamps, Slice<Byte> aOCSPResponse, Func<string, Slice<Byte>, Int64, (Slice<Byte>, error)> aekm, Slice<Byte> aTLSUnique)

 

init(_ aVersion: UInt16, _ aHandshakeComplete: Boolean, _ aDidResume: Boolean, _ aCipherSuite: UInt16, _ aNegotiatedProtocol: string, _ aNegotiatedProtocolIsMutual: Boolean, _ aServerName: string, _ aPeerCertificates: Slice<Reference<Certificate>>, _ aVerifiedChains: Slice<Slice<Reference<Certificate>>>, _ aSignedCertificateTimestamps: Slice<Slice<Byte>>, _ aOCSPResponse: Slice<Byte>, _ aekm: Func<string, Slice<Byte>, Int64, (Slice<Byte>, error)>, _ aTLSUnique: Slice<Byte>)

 

ConnectionState(UInt16 aVersion, Boolean aHandshakeComplete, Boolean aDidResume, UInt16 aCipherSuite, string aNegotiatedProtocol, Boolean aNegotiatedProtocolIsMutual, string aServerName, Slice<Reference<Certificate>> aPeerCertificates, Slice<Slice<Reference<Certificate>>> aVerifiedChains, Slice<Slice<Byte>> aSignedCertificateTimestamps, Slice<Byte> aOCSPResponse, Func4<string, Slice<Byte>, Int64, Tuple2<Slice<Byte>, error>> aekm, Slice<Byte> aTLSUnique)

Parameters:

  • aVersion:
  • aHandshakeComplete:
  • aDidResume:
  • aCipherSuite:
  • aNegotiatedProtocol:
  • aNegotiatedProtocolIsMutual:
  • aServerName:
  • aPeerCertificates:
  • aVerifiedChains:
  • aSignedCertificateTimestamps:
  • aOCSPResponse:
  • aekm:
  • aTLSUnique:

 

constructor(aVersion: UInt16; aHandshakeComplete: Boolean; aDidResume: Boolean; aCipherSuite: UInt16; aNegotiatedProtocol: string; aNegotiatedProtocolIsMutual: Boolean; aServerName: string; aPeerCertificates: Slice<Reference<Certificate>>; aVerifiedChains: Slice<Slice<Reference<Certificate>>>; aSignedCertificateTimestamps: Slice<Slice<Byte>>; aOCSPResponse: Slice<Byte>; aekm: Func<string, Slice<Byte>, Int64, ValueTuple<Slice<Byte>, error>>; aTLSUnique: Slice<Byte>)

 

ConnectionState(UInt16 aVersion, Boolean aHandshakeComplete, Boolean aDidResume, UInt16 aCipherSuite, string aNegotiatedProtocol, Boolean aNegotiatedProtocolIsMutual, string aServerName, Slice<Reference<Certificate>> aPeerCertificates, Slice<Slice<Reference<Certificate>>> aVerifiedChains, Slice<Slice<Byte>> aSignedCertificateTimestamps, Slice<Byte> aOCSPResponse, Func<string, Slice<Byte>, Int64, ValueTuple<Slice<Byte>, error>> aekm, Slice<Byte> aTLSUnique)

 

init(_ aVersion: UInt16, _ aHandshakeComplete: Boolean, _ aDidResume: Boolean, _ aCipherSuite: UInt16, _ aNegotiatedProtocol: string, _ aNegotiatedProtocolIsMutual: Boolean, _ aServerName: string, _ aPeerCertificates: Slice<Reference<Certificate>>, _ aVerifiedChains: Slice<Slice<Reference<Certificate>>>, _ aSignedCertificateTimestamps: Slice<Slice<Byte>>, _ aOCSPResponse: Slice<Byte>, _ aekm: Func<string, Slice<Byte>, Int64, ValueTuple<Slice<Byte>, error>>, _ aTLSUnique: Slice<Byte>)

 

ConnectionState(UInt16 aVersion, Boolean aHandshakeComplete, Boolean aDidResume, UInt16 aCipherSuite, string aNegotiatedProtocol, Boolean aNegotiatedProtocolIsMutual, string aServerName, Slice<Reference<Certificate>> aPeerCertificates, Slice<Slice<Reference<Certificate>>> aVerifiedChains, Slice<Slice<Byte>> aSignedCertificateTimestamps, Slice<Byte> aOCSPResponse, Func4<string, Slice<Byte>, Int64, ValueTuple<Slice<Byte>, error>> aekm, Slice<Byte> aTLSUnique)

Parameters:

  • aVersion:
  • aHandshakeComplete:
  • aDidResume:
  • aCipherSuite:
  • aNegotiatedProtocol:
  • aNegotiatedProtocolIsMutual:
  • aServerName:
  • aPeerCertificates:
  • aVerifiedChains:
  • aSignedCertificateTimestamps:
  • aOCSPResponse:
  • aekm:
  • aTLSUnique:

CipherSuite

 

var CipherSuite: uint16;

 

uint16 CipherSuite

 

var CipherSuite: uint16

 

CipherSuite uint16

DidResume

 

var DidResume: bool;

 

bool DidResume

 

var DidResume: bool

 

DidResume bool

ExportKeyingMaterial

 

// .NET, Island
method ExportKeyingMaterial(label: string; context: Slice<Byte>; length: int): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
method ExportKeyingMaterial(label: string; context: Slice<Byte>; length: int): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
(Slice<Byte>, error) ExportKeyingMaterial(string label, Slice<Byte> context, int length)
// .NET Standard 2.0
ValueTuple<Slice<Byte>, error> ExportKeyingMaterial(string label, Slice<Byte> context, int length)

 

// .NET, Island
func ExportKeyingMaterial(_ label: string, _ context: Slice<Byte>, _ length: int) -> (Slice<Byte>, error)
// .NET Standard 2.0
func ExportKeyingMaterial(_ label: string, _ context: Slice<Byte>, _ length: int) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func ExportKeyingMaterial(label string, context Slice<Byte>, length int) (Slice<Byte>, error)
// .NET Standard 2.0
func ExportKeyingMaterial(label string, context Slice<Byte>, length int) ValueTuple<Slice<Byte>, error>

Parameters:

  • label:
  • context:
  • length:

HandshakeComplete

 

var HandshakeComplete: bool;

 

bool HandshakeComplete

 

var HandshakeComplete: bool

 

HandshakeComplete bool

NegotiatedProtocol

 

var NegotiatedProtocol: string;

 

string NegotiatedProtocol

 

var NegotiatedProtocol: string

 

NegotiatedProtocol string

NegotiatedProtocolIsMutual

 

var NegotiatedProtocolIsMutual: bool;

 

bool NegotiatedProtocolIsMutual

 

var NegotiatedProtocolIsMutual: bool

 

NegotiatedProtocolIsMutual bool

OCSPResponse

 

var OCSPResponse: Slice<Byte>;

 

Slice<Byte> OCSPResponse

 

var OCSPResponse: Slice<Byte>

 

OCSPResponse Slice<Byte>

PeerCertificates

 

var PeerCertificates: Slice<Reference<Certificate>>;

 

Slice<Reference<Certificate>> PeerCertificates

 

var PeerCertificates: Slice<Reference<Certificate>>

 

PeerCertificates Slice<Reference<Certificate>>

ServerName

 

var ServerName: string;

 

string ServerName

 

var ServerName: string

 

ServerName string

SignedCertificateTimestamps

 

var SignedCertificateTimestamps: Slice<Slice<Byte>>;

 

Slice<Slice<Byte>> SignedCertificateTimestamps

 

var SignedCertificateTimestamps: Slice<Slice<Byte>>

 

SignedCertificateTimestamps Slice<Slice<Byte>>

TLSUnique

 

var TLSUnique: Slice<Byte>;

 

Slice<Byte> TLSUnique

 

var TLSUnique: Slice<Byte>

 

TLSUnique Slice<Byte>

VerifiedChains

 

var VerifiedChains: Slice<Slice<Reference<Certificate>>>;

 

Slice<Slice<Reference<Certificate>>> VerifiedChains

 

var VerifiedChains: Slice<Slice<Reference<Certificate>>>

 

VerifiedChains Slice<Slice<Reference<Certificate>>>

Version

 

var Version: uint16;

 

uint16 Version

 

var Version: uint16

 

Version uint16

 

CipherSuite

 

var CipherSuite: uint16;

 

uint16 CipherSuite

 

var CipherSuite: uint16

 

CipherSuite uint16

DidResume

 

var DidResume: bool;

 

bool DidResume

 

var DidResume: bool

 

DidResume bool

HandshakeComplete

 

var HandshakeComplete: bool;

 

bool HandshakeComplete

 

var HandshakeComplete: bool

 

HandshakeComplete bool

NegotiatedProtocol

 

var NegotiatedProtocol: string;

 

string NegotiatedProtocol

 

var NegotiatedProtocol: string

 

NegotiatedProtocol string

NegotiatedProtocolIsMutual

 

var NegotiatedProtocolIsMutual: bool;

 

bool NegotiatedProtocolIsMutual

 

var NegotiatedProtocolIsMutual: bool

 

NegotiatedProtocolIsMutual bool

OCSPResponse

 

var OCSPResponse: Slice<Byte>;

 

Slice<Byte> OCSPResponse

 

var OCSPResponse: Slice<Byte>

 

OCSPResponse Slice<Byte>

PeerCertificates

 

var PeerCertificates: Slice<Reference<Certificate>>;

 

Slice<Reference<Certificate>> PeerCertificates

 

var PeerCertificates: Slice<Reference<Certificate>>

 

PeerCertificates Slice<Reference<Certificate>>

ServerName

 

var ServerName: string;

 

string ServerName

 

var ServerName: string

 

ServerName string

SignedCertificateTimestamps

 

var SignedCertificateTimestamps: Slice<Slice<Byte>>;

 

Slice<Slice<Byte>> SignedCertificateTimestamps

 

var SignedCertificateTimestamps: Slice<Slice<Byte>>

 

SignedCertificateTimestamps Slice<Slice<Byte>>

TLSUnique

 

var TLSUnique: Slice<Byte>;

 

Slice<Byte> TLSUnique

 

var TLSUnique: Slice<Byte>

 

TLSUnique Slice<Byte>

VerifiedChains

 

var VerifiedChains: Slice<Slice<Reference<Certificate>>>;

 

Slice<Slice<Reference<Certificate>>> VerifiedChains

 

var VerifiedChains: Slice<Slice<Reference<Certificate>>>

 

VerifiedChains Slice<Slice<Reference<Certificate>>>

Version

 

var Version: uint16;

 

uint16 Version

 

var Version: uint16

 

Version uint16

 

constructor

 

constructor

 

ConnectionState()

 

init()

constructor (ConnectionState)

 

constructor(value: ConnectionState)

 

ConnectionState(ConnectionState value)

 

init(_ value: ConnectionState)

Parameters:

  • value:

 

constructor(aVersion: uint16; aHandshakeComplete: bool; aDidResume: bool; aCipherSuite: uint16; aNegotiatedProtocol: string; aNegotiatedProtocolIsMutual: bool; aServerName: string; aPeerCertificates: Slice<Reference<Certificate>>; aVerifiedChains: Slice<Slice<Reference<Certificate>>>; aSignedCertificateTimestamps: Slice<Slice<Byte>>; aOCSPResponse: Slice<Byte>; aekm: Func<string, Slice<Byte>, int, tuple of (Slice<Byte>, error)>; aTLSUnique: Slice<Byte>)

 

ConnectionState(uint16 aVersion, bool aHandshakeComplete, bool aDidResume, uint16 aCipherSuite, string aNegotiatedProtocol, bool aNegotiatedProtocolIsMutual, string aServerName, Slice<Reference<Certificate>> aPeerCertificates, Slice<Slice<Reference<Certificate>>> aVerifiedChains, Slice<Slice<Byte>> aSignedCertificateTimestamps, Slice<Byte> aOCSPResponse, Func<string, Slice<Byte>, int, (Slice<Byte>, error)> aekm, Slice<Byte> aTLSUnique)

 

init(_ aVersion: uint16, _ aHandshakeComplete: bool, _ aDidResume: bool, _ aCipherSuite: uint16, _ aNegotiatedProtocol: string, _ aNegotiatedProtocolIsMutual: bool, _ aServerName: string, _ aPeerCertificates: Slice<Reference<Certificate>>, _ aVerifiedChains: Slice<Slice<Reference<Certificate>>>, _ aSignedCertificateTimestamps: Slice<Slice<Byte>>, _ aOCSPResponse: Slice<Byte>, _ aekm: Func<string, Slice<Byte>, int, (Slice<Byte>, error)>, _ aTLSUnique: Slice<Byte>)

Parameters:

  • aVersion:
  • aHandshakeComplete:
  • aDidResume:
  • aCipherSuite:
  • aNegotiatedProtocol:
  • aNegotiatedProtocolIsMutual:
  • aServerName:
  • aPeerCertificates:
  • aVerifiedChains:
  • aSignedCertificateTimestamps:
  • aOCSPResponse:
  • aekm:
  • aTLSUnique:

 

constructor(aVersion: UInt16; aHandshakeComplete: Boolean; aDidResume: Boolean; aCipherSuite: UInt16; aNegotiatedProtocol: string; aNegotiatedProtocolIsMutual: Boolean; aServerName: string; aPeerCertificates: Slice<Reference<Certificate>>; aVerifiedChains: Slice<Slice<Reference<Certificate>>>; aSignedCertificateTimestamps: Slice<Slice<Byte>>; aOCSPResponse: Slice<Byte>; aekm: Func<string, Slice<Byte>, Int64, tuple of (Slice<Byte>, error)>; aTLSUnique: Slice<Byte>)

 

ConnectionState(UInt16 aVersion, Boolean aHandshakeComplete, Boolean aDidResume, UInt16 aCipherSuite, string aNegotiatedProtocol, Boolean aNegotiatedProtocolIsMutual, string aServerName, Slice<Reference<Certificate>> aPeerCertificates, Slice<Slice<Reference<Certificate>>> aVerifiedChains, Slice<Slice<Byte>> aSignedCertificateTimestamps, Slice<Byte> aOCSPResponse, Func<string, Slice<Byte>, Int64, (Slice<Byte>, error)> aekm, Slice<Byte> aTLSUnique)

 

init(_ aVersion: UInt16, _ aHandshakeComplete: Boolean, _ aDidResume: Boolean, _ aCipherSuite: UInt16, _ aNegotiatedProtocol: string, _ aNegotiatedProtocolIsMutual: Boolean, _ aServerName: string, _ aPeerCertificates: Slice<Reference<Certificate>>, _ aVerifiedChains: Slice<Slice<Reference<Certificate>>>, _ aSignedCertificateTimestamps: Slice<Slice<Byte>>, _ aOCSPResponse: Slice<Byte>, _ aekm: Func<string, Slice<Byte>, Int64, (Slice<Byte>, error)>, _ aTLSUnique: Slice<Byte>)

 

ConnectionState(UInt16 aVersion, Boolean aHandshakeComplete, Boolean aDidResume, UInt16 aCipherSuite, string aNegotiatedProtocol, Boolean aNegotiatedProtocolIsMutual, string aServerName, Slice<Reference<Certificate>> aPeerCertificates, Slice<Slice<Reference<Certificate>>> aVerifiedChains, Slice<Slice<Byte>> aSignedCertificateTimestamps, Slice<Byte> aOCSPResponse, Func4<string, Slice<Byte>, Int64, Tuple2<Slice<Byte>, error>> aekm, Slice<Byte> aTLSUnique)

Parameters:

  • aVersion:
  • aHandshakeComplete:
  • aDidResume:
  • aCipherSuite:
  • aNegotiatedProtocol:
  • aNegotiatedProtocolIsMutual:
  • aServerName:
  • aPeerCertificates:
  • aVerifiedChains:
  • aSignedCertificateTimestamps:
  • aOCSPResponse:
  • aekm:
  • aTLSUnique:

 

constructor(aVersion: UInt16; aHandshakeComplete: Boolean; aDidResume: Boolean; aCipherSuite: UInt16; aNegotiatedProtocol: string; aNegotiatedProtocolIsMutual: Boolean; aServerName: string; aPeerCertificates: Slice<Reference<Certificate>>; aVerifiedChains: Slice<Slice<Reference<Certificate>>>; aSignedCertificateTimestamps: Slice<Slice<Byte>>; aOCSPResponse: Slice<Byte>; aekm: Func<string, Slice<Byte>, Int64, ValueTuple<Slice<Byte>, error>>; aTLSUnique: Slice<Byte>)

 

ConnectionState(UInt16 aVersion, Boolean aHandshakeComplete, Boolean aDidResume, UInt16 aCipherSuite, string aNegotiatedProtocol, Boolean aNegotiatedProtocolIsMutual, string aServerName, Slice<Reference<Certificate>> aPeerCertificates, Slice<Slice<Reference<Certificate>>> aVerifiedChains, Slice<Slice<Byte>> aSignedCertificateTimestamps, Slice<Byte> aOCSPResponse, Func<string, Slice<Byte>, Int64, ValueTuple<Slice<Byte>, error>> aekm, Slice<Byte> aTLSUnique)

 

init(_ aVersion: UInt16, _ aHandshakeComplete: Boolean, _ aDidResume: Boolean, _ aCipherSuite: UInt16, _ aNegotiatedProtocol: string, _ aNegotiatedProtocolIsMutual: Boolean, _ aServerName: string, _ aPeerCertificates: Slice<Reference<Certificate>>, _ aVerifiedChains: Slice<Slice<Reference<Certificate>>>, _ aSignedCertificateTimestamps: Slice<Slice<Byte>>, _ aOCSPResponse: Slice<Byte>, _ aekm: Func<string, Slice<Byte>, Int64, ValueTuple<Slice<Byte>, error>>, _ aTLSUnique: Slice<Byte>)

 

ConnectionState(UInt16 aVersion, Boolean aHandshakeComplete, Boolean aDidResume, UInt16 aCipherSuite, string aNegotiatedProtocol, Boolean aNegotiatedProtocolIsMutual, string aServerName, Slice<Reference<Certificate>> aPeerCertificates, Slice<Slice<Reference<Certificate>>> aVerifiedChains, Slice<Slice<Byte>> aSignedCertificateTimestamps, Slice<Byte> aOCSPResponse, Func4<string, Slice<Byte>, Int64, ValueTuple<Slice<Byte>, error>> aekm, Slice<Byte> aTLSUnique)

Parameters:

  • aVersion:
  • aHandshakeComplete:
  • aDidResume:
  • aCipherSuite:
  • aNegotiatedProtocol:
  • aNegotiatedProtocolIsMutual:
  • aServerName:
  • aPeerCertificates:
  • aVerifiedChains:
  • aSignedCertificateTimestamps:
  • aOCSPResponse:
  • aekm:
  • aTLSUnique:

ExportKeyingMaterial

 

// .NET, Island
method ExportKeyingMaterial(label: string; context: Slice<Byte>; length: int): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
method ExportKeyingMaterial(label: string; context: Slice<Byte>; length: int): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
(Slice<Byte>, error) ExportKeyingMaterial(string label, Slice<Byte> context, int length)
// .NET Standard 2.0
ValueTuple<Slice<Byte>, error> ExportKeyingMaterial(string label, Slice<Byte> context, int length)

 

// .NET, Island
func ExportKeyingMaterial(_ label: string, _ context: Slice<Byte>, _ length: int) -> (Slice<Byte>, error)
// .NET Standard 2.0
func ExportKeyingMaterial(_ label: string, _ context: Slice<Byte>, _ length: int) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func ExportKeyingMaterial(label string, context Slice<Byte>, length int) (Slice<Byte>, error)
// .NET Standard 2.0
func ExportKeyingMaterial(label string, context Slice<Byte>, length int) ValueTuple<Slice<Byte>, error>

Parameters:

  • label:
  • context:
  • length: