Ejemplo n.º 1
0
 public static void ReadClientHelloTls12(ReadableBuffer readable, ServerStateTls12 connectionState)
 {
     ReadClientHello(ref readable, connectionState);
     if (readable.Length > 0)
     {
         ExtensionsRead.ReadExtensionListTls(ref readable, connectionState);
     }
 }
Ejemplo n.º 2
0
 public static void ReadClientHelloTls13(ReadableBuffer readable, IConnectionStateTls13 connectionState)
 {
     ReadClientHello(ref readable, connectionState);
     if (readable.Length == 0)
     {
         Alerts.AlertException.ThrowAlert(Alerts.AlertLevel.Fatal, Alerts.AlertDescription.protocol_version, "There is no extensions but we need them for Tls 1.3");
     }
     ExtensionsRead.ReadExtensionListTls13(ref readable, connectionState);
 }
Ejemplo n.º 3
0
 public static void ReadClientHelloTls12(ReadableBuffer readable, ServerStateTls12 connectionState)
 {
     ReadClientHello(ref readable, connectionState);
     if (readable.Length > 0)
     {
         ExtensionsRead.ReadExtensionListTls(ref readable, connectionState);
     }
     connectionState.SignatureScheme = (SignatureScheme)((ushort)connectionState.CipherSuite.HashType << 8 | (ushort)connectionState.CipherSuite.RequiredCertificateType);
     connectionState.Certificate     = connectionState.CertificateList.GetCertificate(null, connectionState.SignatureScheme);
     connectionState.SignatureScheme = connectionState.Certificate.ModifySignatureScheme(connectionState.SignatureScheme);
 }