コード例 #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);
     }
 }
コード例 #2
0
 noCert(Ice.Current current)
 {
     try
     {
         IceSSL.ConnectionInfo info = (IceSSL.ConnectionInfo)current.Connection.getInfo();
         test(info.certs == null);
     }
     catch (Ice.LocalException)
     {
         test(false);
     }
 }
コード例 #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);
     }
 }
コード例 #4
0
 public bool verify(IceSSL.ConnectionInfo info)
 {
     _hadCert = info.certs != null;
     _invoked = true;
     return(_returnValue);
 }