Esempio n. 1
0
 public static void ReadClientHelloTls12(ReadableBuffer readable, ServerStateTls12 connectionState)
 {
     ReadClientHello(ref readable, connectionState);
     if (readable.Length > 0)
     {
         ExtensionsRead.ReadExtensionListTls(ref readable, connectionState);
     }
 }
Esempio n. 2
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);
 }