Exemplo n.º 1
0
        public Option <TLSVersion> DecideVersion(TLSVersion maxSupportedVersion)
        {
            if (maxSupportedVersion != TLSVersion.TLS1_2)
            {
                return(Option.None <TLSVersion>());
            }

            return(Option.Some(TLSVersion.TLS1_2));
        }
Exemplo n.º 2
0
 public static void Write(this EndianBinaryWriter writer, TLSVersion version)
 {
     writer.Write(version.Major);
     writer.Write(version.Minor);
 }