private void SetCipherSuites(DicomNet scu) { // Zero out the CipherSuite list scu.SetTlsCipherSuiteByIndex(0, DicomTlsCipherSuiteType.None); // Add the new CipherSuites in order of priority int cipherCount = 0; foreach (CipherSuiteItem cipherSuiteItem in _mySettings.CipherSuites.ItemList) { if (cipherSuiteItem.IsChecked) { scu.SetTlsCipherSuiteByIndex(cipherCount, cipherSuiteItem.Cipher); cipherCount++; } } }
public static void SetCiphers(DicomNet dicomNet) { if (_dicomSecurityCiphersAgent == null) { return; } int index = 0; foreach (DicomTlsCipherSuiteType cipher in _dicomSecurityCiphersAgent.CipherSuiteList) { dicomNet.SetTlsCipherSuiteByIndex(index, cipher); index++; } }