PK11_HasAttributeSet on object that cannot possibly have attribute

RESOLVED FIXED

Status

RESOLVED FIXED
18 years ago
18 years ago

People

(Reporter: ddawson, Assigned: rrelyea)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

18 years ago
In the Pairwise consistency check in pk11skey.c, on line 1497, I saw the 
following line when I was browsing the code looking for a solution to my 
problem. 

1497     canSignVerify = PK11_HasAttributeSet ( privKey->pkcs11Slot, 
1498                                           privKey->pkcs11ID, CKA_VERIFY);

Private keys don't have a CKA_VERIFY attribute, either check the public key for 
it, or look for CKA_SIGN.

That said, I am a lost wanderer in the Mozilla code (though quite at home in 
PKCS 11), so feel free to brush this one off if I'm just not seeing the big 
picture.

The relevant sections in the cryptoki spec seem to be in Table 32, section 10.9 
in the v2.10 version.
status to new to get this looked at.
Status: UNCONFIRMED → NEW
Ever confirmed: true
(Assignee)

Comment 2

18 years ago
Fixed on the tip.
Status: NEW → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.