Commit 5e0de8b5 authored by zelidrag@chromium.org's avatar zelidrag@chromium.org

Fixed slot selection in HMAC class to ensure that we are using softtoken instead of TPM slots.

BUG=chromium-os:21633
TEST=make sure that user signin works properly on Alex - we should not show Gaia signin screen on second login after system resote
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106881
Review URL: http://codereview.chromium.org/8373022

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106882 0039d316-1c4b-4281-b951-d872f2087c98
parent f55d1b01
...@@ -100,9 +100,6 @@ bool HMAC::Sign(const base::StringPiece& data, ...@@ -100,9 +100,6 @@ bool HMAC::Sign(const base::StringPiece& data,
if (PK11_DigestOp(context.get(), if (PK11_DigestOp(context.get(),
reinterpret_cast<const unsigned char*>(data.data()), reinterpret_cast<const unsigned char*>(data.data()),
data.length()) != SECSuccess) { data.length()) != SECSuccess) {
LOG(WARNING) << "PK11_DigestOp failed, error " << PORT_GetError()
<< ", slot name " << PK11_GetSlotName(plat_->slot_.get())
<< ", token name " << PK11_GetTokenName(plat_->slot_.get());
NOTREACHED(); NOTREACHED();
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment