Ejemplo n.º 1
0
 checkCipher(string cipher, Ice.Current current)
 {
     try
     {
         IceSSL.ConnectionInfo info = (IceSSL.ConnectionInfo)current.Connection.getInfo();
         test(info.cipher.Equals(cipher));
     }
     catch (Ice.LocalException)
     {
         test(false);
     }
 }
Ejemplo n.º 2
0
 noCert(Ice.Current current)
 {
     try
     {
         IceSSL.ConnectionInfo info = (IceSSL.ConnectionInfo)current.Connection.getInfo();
         test(info.certs == null);
     }
     catch (Ice.LocalException)
     {
         test(false);
     }
 }
Ejemplo n.º 3
0
 checkCert(string subjectDN, string issuerDN, Ice.Current current)
 {
     try
     {
         IceSSL.ConnectionInfo info = (IceSSL.ConnectionInfo)current.Connection.getInfo();
         test(info.verified);
         test(info.certs.Length == 2 &&
              info.certs[0].Subject.Equals(subjectDN) &&
              info.certs[0].Issuer.Equals(issuerDN));
     }
     catch (Ice.LocalException)
     {
         test(false);
     }
 }
Ejemplo n.º 4
0
 public bool verify(IceSSL.ConnectionInfo info)
 {
     _hadCert = info.certs != null;
     _invoked = true;
     return(_returnValue);
 }