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