mirror of https://github.com/apache/cloudstack.git
If encryption is already initialized we don't need to do it again.(cherry picked from commit b28f3addfc)
Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
This commit is contained in:
parent
17212984c9
commit
6287d4512e
|
|
@ -71,6 +71,11 @@ public class EncryptionSecretKeyChecker extends AdapterBase implements SystemInt
|
|||
if(encryptionType == null || encryptionType.equals("none")){
|
||||
return;
|
||||
}
|
||||
|
||||
if (s_useEncryption) {
|
||||
s_logger.warn("Encryption already enabled, is check() called twice?");
|
||||
return;
|
||||
}
|
||||
|
||||
s_encryptor.setAlgorithm("PBEWithMD5AndDES");
|
||||
String secretKey = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue