Open Bug 1382539 Opened 8 years ago Updated 2 years ago

PK11_CopyKey passing NULL template to C_CopyObject

Categories

(NSS :: Libraries, defect, P3)

3.30.2

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: jernej.turnsek, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36 Steps to reproduce: We are using mod_nss module with NSS and SoftHSMv2 library. When using Server-Cert from SoftHSMv2, NSS calls function PK11_CopyKey, where NULL is passed for template argument to function C_CopyObject. Latter is returning error value for bad argument due to template parameter check. Actual results: Function C_CopyObject from SoftHSMv2 returning CKR_ARGUMENTS_BAD, when called from PK11_CopyKey with NULL template argument. Expected results: Template argument passed to C_CopyObject should be populated with proper template.
Blocks: 1399364
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.