Order ciphers according to strength and always exclude ADH (OpenSSL).

This commit is contained in:
Vincent Richard 2013-09-23 13:33:31 +02:00
parent be3ee805e1
commit e749c5d784

View File

@ -60,23 +60,23 @@ void TLSProperties::setCipherSuite(const GenericCipherSuite cipherSuite)
{ {
case CIPHERSUITE_HIGH: case CIPHERSUITE_HIGH:
setCipherSuite("HIGH"); setCipherSuite("HIGH:!ADH:@STRENGTH");
break; break;
case CIPHERSUITE_MEDIUM: case CIPHERSUITE_MEDIUM:
setCipherSuite("MEDIUM"); setCipherSuite("MEDIUM:!ADH:@STRENGTH");
break; break;
case CIPHERSUITE_LOW: case CIPHERSUITE_LOW:
setCipherSuite("LOW"); setCipherSuite("LOW:!ADH:@STRENGTH");
break; break;
default: default:
case CIPHERSUITE_DEFAULT: case CIPHERSUITE_DEFAULT:
setCipherSuite("DEFAULT"); setCipherSuite("DEFAULT:!ADH:@STRENGTH");
break; break;
} }
} }