Change only the main label when private_key set 01/109601/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Wed, 11 Jan 2017 01:07:47 +0000 (10:07 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Wed, 11 Jan 2017 01:49:38 +0000 (10:49 +0900)
Change-Id: I2f6bd0f4623674bbfdc8083cc7c0ea21528c6246

scl/sclresourcecache.cpp

index 633796d..7317eab 100644 (file)
@@ -326,7 +326,6 @@ CSCLResourceCache::copy_from_privatekeyproperties(const SclPrivateKeyProperties*
     sclint inner_loop;
     if (privProperties && coordinate) {
         /* Copy customizing-allowed properties only if those properties are valid */
-        coordinate->label_count = privProperties->label_count;
         for (loop = 0;loop < SCL_SHIFT_STATE_MAX;loop++) {
             for (inner_loop = 0;inner_loop < MAX_SIZE_OF_LABEL_FOR_ONE;inner_loop++) {
                 if (!(privProperties->label[loop][inner_loop].empty())) {
@@ -1606,7 +1605,6 @@ CSCLResourceCache::set_private_key(const sclchar* custom_id, sclchar* label, scl
         privProperties.label[SCL_SHIFT_STATE_LOCK][0] = label;
         privProperties.label[SCL_SHIFT_STATE_ON][0] = label;
         privProperties.label[SCL_SHIFT_STATE_OFF][0] = label;
-        privProperties.label_count = 1;
     }
     if (key_value) {
         privProperties.key_value[SCL_SHIFT_STATE_LOCK][0] = privProperties.key_value[SCL_SHIFT_STATE_ON][0] =