Exemple #1
0
 /*
  * Record a certificate sent by a SSLv2 server. The certificate
  * is alone.
  */
 internal void SetSSLv2Certificate(byte[] ssl2Cert)
 {
     if (ssl2Cert == null)
     {
         ssl2Chain = null;
     }
     else
     {
         ssl2Chain = X509Chain.Make(
             new byte[][] { ssl2Cert }, true);
     }
 }
Exemple #2
0
    /*
     * Record a new certificate chain sent by the server. Duplicates
     * are merged.
     */
    internal void AddServerChain(byte[][] chain)
    {
        X509Chain xc = X509Chain.Make(chain, true);

        chains[xc.Hash] = xc;
    }