summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrelyea%netscape.com <devnull@localhost>2002-06-25 23:00:59 +0000
committerrelyea%netscape.com <devnull@localhost>2002-06-25 23:00:59 +0000
commitd739d330a1c31b64d7bb69bd7629ea09a6fa6811 (patch)
treebdb87bdfeeee44f3e8608a1268a30b46a0be8e1c
parent06fb2744ad26989ab5722adddc6c847c9ff3ed26 (diff)
downloadnss-hg-d739d330a1c31b64d7bb69bd7629ea09a6fa6811.tar.gz
Initialize type field to clear off purify warnings.
-rw-r--r--security/nss/lib/pk11wrap/pk11skey.c1
-rw-r--r--security/nss/lib/pk11wrap/pk11slot.c1
-rw-r--r--security/nss/lib/softoken/keydb.c1
-rw-r--r--security/nss/lib/ssl/ssl3con.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/security/nss/lib/pk11wrap/pk11skey.c b/security/nss/lib/pk11wrap/pk11skey.c
index da0804eaf..83ac619cb 100644
--- a/security/nss/lib/pk11wrap/pk11skey.c
+++ b/security/nss/lib/pk11wrap/pk11skey.c
@@ -3563,6 +3563,7 @@ PK11_CreateDigestContext(SECOidTag hashAlg)
/* maybe should really be PK11_GenerateNewParam?? */
param.data = NULL;
param.len = 0;
+ param.type = 0;
context = pk11_CreateNewContextInSlot(type, slot, CKA_DIGEST, NULL, &param);
PK11_FreeSlot(slot);
diff --git a/security/nss/lib/pk11wrap/pk11slot.c b/security/nss/lib/pk11wrap/pk11slot.c
index 7511f465b..bea6fdd9c 100644
--- a/security/nss/lib/pk11wrap/pk11slot.c
+++ b/security/nss/lib/pk11wrap/pk11slot.c
@@ -3190,6 +3190,7 @@ PK11_ParamFromIV(CK_MECHANISM_TYPE type,SECItem *iv)
if (param == NULL) return NULL;
param->data = NULL;
param->len = 0;
+ param->type = 0;
switch (type) {
case CKM_AES_ECB:
case CKM_DES_ECB:
diff --git a/security/nss/lib/softoken/keydb.c b/security/nss/lib/softoken/keydb.c
index 47c6a4c8b..21add55d1 100644
--- a/security/nss/lib/softoken/keydb.c
+++ b/security/nss/lib/softoken/keydb.c
@@ -2200,6 +2200,7 @@ nsslowkey_CheckKeyDBPassword(NSSLOWKEYDBHandle *handle, SECItem *pwitem)
/* make a secitem of the encrypted check string */
encstring.len = dbkey->derPK.len - ( oid.len + 1 );
encstring.data = &dbkey->derPK.data[oid.len+1];
+ encstring.type = 0;
switch(algorithm)
{
diff --git a/security/nss/lib/ssl/ssl3con.c b/security/nss/lib/ssl/ssl3con.c
index 2a12b596c..5b1d1d4a1 100644
--- a/security/nss/lib/ssl/ssl3con.c
+++ b/security/nss/lib/ssl/ssl3con.c
@@ -1105,6 +1105,7 @@ const ssl3BulkCipherDef *cipher_def;
mac_param.data = (unsigned char *)&macLength;
mac_param.len = sizeof(macLength);
+ mac_param.type = 0;
mac_mech = pwSpec->mac_def->mmech;
if (cipher_def->calg == calg_null) {