ClientHello constructor
ClientHello({
- required int legacyVersion,
- required Uint8List sessionId,
- required Uint8List random,
- required List<
int> cipherSuites, - required Uint8List compressionMethods,
- required List<
TlsExtension> extensions, - required String type,
- String? sni,
- List<
int> ? supportedVersions, - List<
int> ? supportedGroups, - List<
int> ? signatureAlgorithms, - List<
String> ? alpn, - int? maxFragmentLength,
- Uint8List? padding,
- Uint8List? cookie,
- List<
int> ? pskKeyExchangeModes, - Uint8List? renegotiationInfo,
- Uint8List? quicTransportParametersRaw,
- required Uint8List rawData,
Implementation
ClientHello({
required this.legacyVersion,
required this.sessionId,
required this.random,
required this.cipherSuites,
required this.compressionMethods,
required this.extensions,
required String type, // kept for compatibility with existing call sites
this.sni,
this.keyShares,
this.supportedVersions,
this.supportedGroups,
this.signatureAlgorithms,
this.alpn,
this.maxFragmentLength,
this.padding,
this.cookie,
this.pskKeyExchangeModes,
this.preSharedKey,
this.renegotiationInfo,
this.quicTransportParametersRaw,
required this.rawData,
}) : super(0x01);