mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 09:27:31 +09:00
Revert "Update NSS to 3.35-RTM"
This reverts commit f1a0f0a56fdd0fc39f255174ce08c06b91c66c94.
This commit is contained in:
parent
5f958910dd
commit
9e32522120
388 changed files with 24887 additions and 43210 deletions
|
|
@ -1137,10 +1137,12 @@ nsslowkey_KeyForCertExists(NSSLOWKEYDBHandle *handle, NSSLOWCERTCertificate *cer
|
|||
namekey.data = pubkey->u.dh.publicValue.data;
|
||||
namekey.size = pubkey->u.dh.publicValue.len;
|
||||
break;
|
||||
#ifndef NSS_DISABLE_ECC
|
||||
case NSSLOWKEYECKey:
|
||||
namekey.data = pubkey->u.ec.publicValue.data;
|
||||
namekey.size = pubkey->u.ec.publicValue.len;
|
||||
break;
|
||||
#endif /* NSS_DISABLE_ECC */
|
||||
default:
|
||||
/* XXX We don't do Fortezza or DH yet. */
|
||||
return PR_FALSE;
|
||||
|
|
@ -1465,10 +1467,12 @@ seckey_encrypt_private_key(PLArenaPool *permarena, NSSLOWKEYPrivateKey *pk,
|
|||
SECItem *der_item = NULL;
|
||||
SECItem *cipherText = NULL;
|
||||
SECItem *dummy = NULL;
|
||||
#ifndef NSS_DISABLE_ECC
|
||||
#ifdef EC_DEBUG
|
||||
SECItem *fordebug = NULL;
|
||||
#endif
|
||||
int savelen;
|
||||
#endif
|
||||
|
||||
temparena = PORT_NewArena(SEC_ASN1_DEFAULT_ARENA_SIZE);
|
||||
if (temparena == NULL)
|
||||
|
|
@ -1544,6 +1548,7 @@ seckey_encrypt_private_key(PLArenaPool *permarena, NSSLOWKEYPrivateKey *pk,
|
|||
goto loser;
|
||||
}
|
||||
break;
|
||||
#ifndef NSS_DISABLE_ECC
|
||||
case NSSLOWKEYECKey:
|
||||
lg_prepare_low_ec_priv_key_for_asn1(pk);
|
||||
/* Public value is encoded as a bit string so adjust length
|
||||
|
|
@ -1584,6 +1589,7 @@ seckey_encrypt_private_key(PLArenaPool *permarena, NSSLOWKEYPrivateKey *pk,
|
|||
#endif
|
||||
|
||||
break;
|
||||
#endif /* NSS_DISABLE_ECC */
|
||||
default:
|
||||
/* We don't support DH or Fortezza private keys yet */
|
||||
PORT_Assert(PR_FALSE);
|
||||
|
|
@ -1803,6 +1809,7 @@ seckey_decrypt_private_key(SECItem *epki,
|
|||
lg_nsslowkey_DHPrivateKeyTemplate,
|
||||
&newPrivateKey);
|
||||
break;
|
||||
#ifndef NSS_DISABLE_ECC
|
||||
case SEC_OID_ANSIX962_EC_PUBLIC_KEY:
|
||||
pk->keyType = NSSLOWKEYECKey;
|
||||
lg_prepare_low_ec_priv_key_for_asn1(pk);
|
||||
|
|
@ -1842,6 +1849,7 @@ seckey_decrypt_private_key(SECItem *epki,
|
|||
}
|
||||
|
||||
break;
|
||||
#endif /* NSS_DISABLE_ECC */
|
||||
default:
|
||||
rv = SECFailure;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue