public Option <TLSVersion> DecideVersion(TLSVersion maxSupportedVersion) { if (maxSupportedVersion != TLSVersion.TLS1_2) { return(Option.None <TLSVersion>()); } return(Option.Some(TLSVersion.TLS1_2)); }
public static void Write(this EndianBinaryWriter writer, TLSVersion version) { writer.Write(version.Major); writer.Write(version.Minor); }