mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-15 10:02:27 +01:00
If encryption is already initialized we don't need to do it again.
This commit is contained in:
parent
b1d70f7fe3
commit
b28f3addfc
@ -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…
x
Reference in New Issue
Block a user