ClientHello constructor

ClientHello({
  1. required int legacyVersion,
  2. required Uint8List sessionId,
  3. required Uint8List random,
  4. required List<int> cipherSuites,
  5. required Uint8List compressionMethods,
  6. required List<TlsExtension> extensions,
  7. required String type,
  8. String? sni,
  9. List<ParsedKeyShare>? keyShares,
  10. List<int>? supportedVersions,
  11. List<int>? supportedGroups,
  12. List<int>? signatureAlgorithms,
  13. List<String>? alpn,
  14. int? maxFragmentLength,
  15. Uint8List? padding,
  16. Uint8List? cookie,
  17. List<int>? pskKeyExchangeModes,
  18. Uint8List? preSharedKey,
  19. Uint8List? renegotiationInfo,
  20. Uint8List? quicTransportParametersRaw,
  21. 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);