Пример #1
0
 public virtual void NotifyFallback(bool isFallback)
 {
     /*
      * RFC 7507 3. If TLS_FALLBACK_SCSV appears in ClientHello.cipher_suites and the highest
      * protocol version supported by the server is higher than the version indicated in
      * ClientHello.client_version, the server MUST respond with a fatal inappropriate_fallback
      * alert [..].
      */
     if (isFallback && MaximumVersion.IsLaterVersionOf(mClientVersion))
     {
         throw new TlsFatalAlert(AlertDescription.inappropriate_fallback);
     }
 }
Пример #2
0
 public virtual void NotifyFallback(bool isFallback)
 {
     /*
      * draft-ietf-tls-downgrade-scsv-00 3. If TLS_FALLBACK_SCSV appears in
      * ClientHello.cipher_suites and the highest protocol version supported by the server is
      * higher than the version indicated in ClientHello.client_version, the server MUST respond
      * with an inappropriate_fallback alert.
      */
     if (isFallback && MaximumVersion.IsLaterVersionOf(mClientVersion))
     {
         throw new TlsFatalAlert(AlertDescription.inappropriate_fallback);
     }
 }