public bool Equals(MQSSLConfigOptions obj)
        {
            bool flag = true;

            if (obj == null)
            {
                return(false);
            }
            return((((((((((((flag && (this.StructMQSCO.AuthInfoRecCount == obj.StructMQSCO.AuthInfoRecCount)) && (this.StructMQSCO.AuthInfoRecOffset == obj.StructMQSCO.AuthInfoRecOffset)) && (this.StructMQSCO.AuthInfoRecPtr == obj.StructMQSCO.AuthInfoRecPtr)) && (this.StructMQSCO.CertificateValPolicy == obj.StructMQSCO.CertificateValPolicy)) && (this.StructMQSCO.FipsRequired == obj.StructMQSCO.FipsRequired)) && (this.StructMQSCO.KeyResetCount == obj.StructMQSCO.KeyResetCount)) && (this.StructMQSCO.Version == obj.StructMQSCO.Version)) && Compare(this.StructMQSCO.CertificateLabel, obj.StructMQSCO.CertificateLabel)) && Compare(this.StructMQSCO.CryptoHardware, obj.StructMQSCO.CryptoHardware)) && Compare(this.StructMQSCO.EncryptionPolicySuiteB, obj.StructMQSCO.EncryptionPolicySuiteB)) && Compare(this.StructMQSCO.KeyRepository, obj.StructMQSCO.KeyRepository)) && (this.CertRevocationCheck == obj.CertRevocationCheck));
        }
Esempio n. 2
0
 internal MQTCPConnection(NmqiEnvironment nmqiEnv, MQConnectionSpecification spec, MQFAP fap, MQChannelDefinition mqcd, MQSSLConfigOptions sslConfigOptions, int options) : base(nmqiEnv, spec.MQChannelDef.Clone())
 {
     this.timeout             = 0x1d4c0;
     this.timeoutChanged      = true;
     this.maxTransmissionSize = 0x7ff6;
     this.Lock = new object();
     base.TrConstructor("%Z% %W%  %I% %E% %U%");
     this.conname = mqcd.ConnectionName;
     this.nextHeartBeatSendTime = DateTime.Now.AddSeconds((double)this.timeout);
     this.localAddr             = mqcd.LocalAddress;
     cfg                       = base.env.Cfg;
     this.mqcd                 = mqcd;
     this.sslConfigOptions     = sslConfigOptions;
     base.fap                  = fap;
     base.remoteConnectionSpec = spec;
     base.connectOptions       = options;
     base.nmqiFlags            = spec.NmqiFlags;
     base.commsBufferPool      = fap.CommsBufferPool;
 }