Open Bug 268526 Opened 20 years ago Updated 2 years ago

two subsequent C_DigestFinal calls are made on the same session during SSL

Categories

(NSS :: Libraries, defect, P3)

3.9.3

Tracking

(Not tracked)

People

(Reporter: julien.pierre, Unassigned)

Details

The following PKCS#11 trace was taken from selfserv running in single-threaded
mode. As you can see, C_DigestFinal gets called twice with the same hSession =
0x47 . The first call succeeds, but the second one fails with rv = 0x91,
CKR_OPERATION_NOT_INITIALIZED . I haven't looked yet where the failing call is
made from, but we should fix this sequence.

This invalid sequence is happening 11 times for each SSL full handshake in my
PKCS#11 server logs.

2[54da50]: C_DigestFinal
2[54da50]:   hSession = 0x47
2[54da50]:   pDigest = 0xfffffd7ffeb546d4
2[54da50]:   pulDigestLen = 0xfffffd7ffeb54300
2[54da50]:   rv = 0x0
2[54da50]: C_DigestUpdate
2[54da50]:   hSession = 0x48
2[54da50]:   pPart = 0xfffffd7ffeb54690
2[54da50]:   ulPartLen = 4
2[54da50]:   rv = 0x0
2[54da50]: C_DigestKey
2[54da50]:   hSession = 0x48
2[54da50]:   rv = 0x0
2[54da50]: C_DigestUpdate
2[54da50]:   hSession = 0x48
2[54da50]:   pPart = 0xfffffd7fff37ee98
2[54da50]:   ulPartLen = 40
2[54da50]:   rv = 0x0
2[54da50]: C_DigestFinal
2[54da50]:   hSession = 0x48
2[54da50]:   pDigest = 0xfffffd7ffeb54694
2[54da50]:   pulDigestLen = 0xfffffd7ffeb54300
2[54da50]:   rv = 0x0
2[54da50]: C_DigestFinal
2[54da50]:   hSession = 0x47
2[54da50]:   pDigest = 0x0
2[54da50]:   pulDigestLen = 0xfffffd7ffeb54138
2[54da50]:   rv = 0x91
Assignee: wtchang → saul.edwards.bugs
QA Contact: bishakhabanerjee → jason.m.reid
QA Contact: jason.m.reid → libraries
Assignee: saul.edwards.bugs → nobody
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.