Spring cleaning
[platform/core/test/security-tests.git] / src / ckm / ckm-common.cpp
index 714fa64..c50f2d6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2000 - 2019 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2000-2020 Samsung Electronics Co., Ltd. All rights reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -383,7 +383,7 @@ void check_alias_list(const CKM::AliasVector& expected)
 }
 
 void check_alias_info_list_helper(const CKM::AliasPwdVector& expected, const CKM::AliasPwdVector& actual,
-        const std::string userSmackLabel)
+        const std::string &userSmackLabel)
 {
     std::string errorLogMsg;
     std::unordered_map<std::string, bool> aliasPwdMap;
@@ -421,7 +421,7 @@ void check_alias_info_list_helper(const CKM::AliasPwdVector& expected, const CKM
     }
 }
 
-void check_alias_info_list(const CKM::AliasPwdVector& expected, const std::string& userSmackLabel)
+void check_alias_info_list(const CKM::AliasPwdVector& expected)
 {
     ckmc_alias_info_list_s *aliasInfoList = NULL;
     int ret = ckmc_get_data_alias_info_list(&aliasInfoList);
@@ -447,7 +447,7 @@ void check_alias_info_list(const CKM::AliasPwdVector& expected, const std::strin
         it++;
     }
     ckmc_alias_info_list_all_free(aliasInfoList);
-    check_alias_info_list_helper(expected, actual, userSmackLabel);
+    check_alias_info_list_helper(expected, actual);
 }
 
 size_t count_aliases(alias_type_ type, size_t minimum_initial_element_count)