[Title] If decryption/ encryption fails, it continues with not encrypted/decrypted...
authorho.namkoong <ho.namkoong@samsung.com>
Mon, 10 Dec 2012 11:01:41 +0000 (20:01 +0900)
committerho.namkoong <ho.namkoong@samsung.com>
Mon, 10 Dec 2012 11:01:41 +0000 (20:01 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#] 7432
[Problem]
[Cause]
[Solution]
[TestCase]

Change-Id: Ib7a47dcf531733e0252592bc5e21b62487f16aa6

org.tizen.common.sign/src/org/tizen/common/sign/util/SigningProfileUtil.java

index cadae17..4a359a8 100644 (file)
@@ -133,7 +133,6 @@ public class SigningProfileUtil
             tempPass = CipherUtil.getDecryptedString(tempPass);
         } catch (Exception e) {
             logger.error("Exception occurred while decrypting signing password", e);
-            return null;
         }
                final String pass = tempPass;
                logger.trace( "item - key :{}, author :{}, ca :{}, rootca :{}, pass {}", new Object[] { key, author, ca, rootca, pass} );
@@ -376,7 +375,6 @@ public class SigningProfileUtil
             pass = CipherUtil.getEncryptedString(pass);
         } catch (Exception e) {
             logger.error("Exception occurred while encrypting signing password", e);
-            return null;
         }
         passAttr.setNodeValue(pass);
         Attr authorAttr = document.createAttribute(SigningProfileUtil.ITEM_ATTR_AUTHOR); //$NON-NLS-1$
@@ -433,7 +431,6 @@ public class SigningProfileUtil
                                     pass = CipherUtil.getDecryptedString(pass);
                                 } catch (Exception e) {
                                     logger.error("Exception occurred while decrypting signing password", e);
-                                    return null;
                                 }
                                 profileItem.setPassword(pass.toCharArray());
                                 String rootCA = profileItemElement.getAttribute(SigningProfileUtil.ITEM_ATTR_ROOTCA);