mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
re-introduce old nss im too tired for this
This commit is contained in:
parent
3c46be320d
commit
3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions
|
|
@ -879,7 +879,7 @@ lg_FindDSAPrivateKeyAttribute(NSSLOWKEYPrivateKey *key, CK_ATTRIBUTE_TYPE type,
|
|||
return lg_CopyAttributeSigned(attribute, type,
|
||||
key->u.dsa.params.base.data,
|
||||
key->u.dsa.params.base.len);
|
||||
case CKA_NSS_DB:
|
||||
case CKA_NETSCAPE_DB:
|
||||
return lg_CopyAttributeSigned(attribute, type,
|
||||
key->u.dsa.publicValue.data,
|
||||
key->u.dsa.publicValue.len);
|
||||
|
|
@ -919,7 +919,7 @@ lg_FindDHPrivateKeyAttribute(NSSLOWKEYPrivateKey *key, CK_ATTRIBUTE_TYPE type,
|
|||
case CKA_BASE:
|
||||
return lg_CopyAttributeSigned(attribute, type, key->u.dh.base.data,
|
||||
key->u.dh.base.len);
|
||||
case CKA_NSS_DB:
|
||||
case CKA_NETSCAPE_DB:
|
||||
return lg_CopyAttributeSigned(attribute, type,
|
||||
key->u.dh.publicValue.data,
|
||||
key->u.dh.publicValue.len);
|
||||
|
|
@ -957,7 +957,7 @@ lg_FindECPrivateKeyAttribute(NSSLOWKEYPrivateKey *key, CK_ATTRIBUTE_TYPE type,
|
|||
return lg_CopyAttributeSigned(attribute, type,
|
||||
key->u.ec.ecParams.DEREncoding.data,
|
||||
key->u.ec.ecParams.DEREncoding.len);
|
||||
case CKA_NSS_DB:
|
||||
case CKA_NETSCAPE_DB:
|
||||
return lg_CopyAttributeSigned(attribute, type,
|
||||
key->u.ec.publicValue.data,
|
||||
key->u.ec.publicValue.len);
|
||||
|
|
@ -1689,7 +1689,7 @@ lg_SetSingleAttribute(LGObjectCache *obj, const CK_ATTRIBUTE *attr,
|
|||
CK_ATTRIBUTE attribLocal;
|
||||
CK_RV crv;
|
||||
|
||||
if ((attr->type == CKA_NSS_DB) && (obj->objclass == CKO_PRIVATE_KEY)) {
|
||||
if ((attr->type == CKA_NETSCAPE_DB) && (obj->objclass == CKO_PRIVATE_KEY)) {
|
||||
*writePrivate = PR_TRUE;
|
||||
return CKR_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue