commit | 7056ce8872c073cf82fdd7943e3af90ebe9eed91 | [log] [tgz] |
---|---|---|
author | Yingdi Yu <yuyingdi@gmail.com> | Mon Feb 03 12:55:49 2014 -0800 |
committer | Yingdi Yu <yuyingdi@gmail.com> | Mon Feb 03 12:55:49 2014 -0800 |
tree | f9a55f767966302dd6f44c3984f184ce2928e5ef | |
parent | 9a33535f137e900e14c6d114933622740f90557b [diff] [blame] |
security: Fix a bug in generating new key id. Change-Id: Ibfae7249bea1e2cfefc66cf35e0d75b50867e4b3
diff --git a/src/security/sec-public-info.hpp b/src/security/sec-public-info.hpp index 37afd5d..aa35ff9 100644 --- a/src/security/sec-public-info.hpp +++ b/src/security/sec-public-info.hpp
@@ -331,8 +331,8 @@ else oss << "dsk-"; - oss << static_cast<int>(getNow()); - + oss << getNow(); + Name keyName = Name(identityName).append(oss.str()); if (doesPublicKeyExist(keyName))