Fix issue while converting public key 70/156770/5
authorJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 20 Oct 2017 01:36:49 +0000 (10:36 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Fri, 20 Oct 2017 07:30:23 +0000 (07:30 +0000)
commit9c245b4807ef1660bbe0579869a7e8d1e93e330b
tree7bfa643ade9d9fb54fcae9c3c96743ceb2576562
parent8917dcc9625efd2fcb4f314ae4e53c02eedceb5e
Fix issue while converting public key

- PublicKey is retrieved as unsigned character and some of its value
  is missed during converting into const char due to some hexdata such as 0x00.
- It would cause security issue such as one application could access
  shared/trusted of other non-trusted application.
- Fix codes to convert unsigned character value properly.

Change-Id: Iaca2f7c0fa60677d7aa5852725bb5b120ed54a09
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/common/certificate_validation.cc
src/common/utils/base64.cc
src/common/utils/base64.h