Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: mozilla/security/nss/lib/pk11wrap/pk11merge.c

Issue 12197027: Merge NSS_3_14_2_RTM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mozilla/security/nss/lib/pk11wrap/pk11cert.c ('k') | mozilla/security/nss/lib/pkcs7/certread.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mozilla/security/nss/lib/pk11wrap/pk11merge.c
===================================================================
--- mozilla/security/nss/lib/pk11wrap/pk11merge.c (revision 180567)
+++ mozilla/security/nss/lib/pk11wrap/pk11merge.c (working copy)
@@ -429,6 +429,7 @@
SECItem *sourceOutput = NULL;
SECItem *targetOutput = NULL;
SECItem *param = NULL;
+ int blockSize;
SECItem input;
CK_OBJECT_HANDLE targetKeyID;
CK_FLAGS flags;
@@ -491,11 +492,12 @@
/* set up the input test */
input.data = (unsigned char *)testString;
- input.len = PK11_GetBlockSize(cryptoMechType, NULL);
- if (input.len < 0) {
+ blockSize = PK11_GetBlockSize(cryptoMechType, NULL);
+ if (blockSize < 0) {
rv = SECFailure;
goto done;
}
+ input.len = blockSize;
if (input.len == 0) {
input.len = sizeof (testString);
}
« no previous file with comments | « mozilla/security/nss/lib/pk11wrap/pk11cert.c ('k') | mozilla/security/nss/lib/pkcs7/certread.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698