summaryrefslogtreecommitdiffstats
path: root/crypto/signature_creator_mac.cc
diff options
context:
space:
mode:
authorkushi.p@gmail.com <kushi.p@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-28 18:20:09 +0000
committerkushi.p@gmail.com <kushi.p@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-28 18:20:09 +0000
commit5e0be64ec9fa6b9255c70d8982c9469cab48e4d8 (patch)
tree05196e9f8920cfa7203e8fead723f6eeee446788 /crypto/signature_creator_mac.cc
parent961ac948a36146baafc52f957dfd187b19d2cd04 (diff)
downloadchromium_src-5e0be64ec9fa6b9255c70d8982c9469cab48e4d8.zip
chromium_src-5e0be64ec9fa6b9255c70d8982c9469cab48e4d8.tar.gz
chromium_src-5e0be64ec9fa6b9255c70d8982c9469cab48e4d8.tar.bz2
Improving logging in /app, /base, /crypto and /ipc. Updating plain DCHECK() usages for DCHECK_EQ/LE/GE() equivalents.
BUG=58409 TEST=None Review URL: http://codereview.chromium.org/6880166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83362 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto/signature_creator_mac.cc')
-rw-r--r--crypto/signature_creator_mac.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/signature_creator_mac.cc b/crypto/signature_creator_mac.cc
index fa0bded..544c9fb 100644
--- a/crypto/signature_creator_mac.cc
+++ b/crypto/signature_creator_mac.cc
@@ -45,7 +45,7 @@ SignatureCreator::~SignatureCreator() {
CSSM_RETURN crtn;
if (sig_handle_) {
crtn = CSSM_DeleteContext(sig_handle_);
- DCHECK(crtn == CSSM_OK);
+ DCHECK_EQ(CSSM_OK, crtn);
}
}
@@ -54,7 +54,7 @@ bool SignatureCreator::Update(const uint8* data_part, int data_part_len) {
data.Data = const_cast<uint8*>(data_part);
data.Length = data_part_len;
CSSM_RETURN crtn = CSSM_SignDataUpdate(sig_handle_, &data, 1);
- DCHECK(crtn == CSSM_OK);
+ DCHECK_EQ(CSSM_OK, crtn);
return true;
}