From 1dc6e95728d26d66e703cba150252d90daf7a6bc Mon Sep 17 00:00:00 2001 From: Ji-hoon Lee Date: Wed, 11 Jan 2017 10:07:47 +0900 Subject: [PATCH] Change only the main label when private_key set Change-Id: I2f6bd0f4623674bbfdc8083cc7c0ea21528c6246 --- scl/sclresourcecache.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/scl/sclresourcecache.cpp b/scl/sclresourcecache.cpp index 633796d..7317eab 100644 --- a/scl/sclresourcecache.cpp +++ b/scl/sclresourcecache.cpp @@ -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] = -- 2.7.4