Closed Bug 469615 Opened 17 years ago Closed 16 years ago

Fix HASH_GetHMACOidTagByHashOidTag

Categories

(NSS :: Libraries, defect, P2)

3.12
defect

Tracking

(Not tracked)

RESOLVED FIXED
3.12.7

People

(Reporter: nelson, Assigned: shailen.n.jain)

Details

(Keywords: coverity)

Attachments

(1 file, 1 obsolete file)

Coverity caught this one. CID 1258 file nss/lib/cryptohi/sechash.c Function HASH_GetHMACOidTagByHashOidTag ignores its input argument and produces a constant output. It always sets error SEC_ERROR_INVALID_ALGORITHM and returns SEC_OID_UNKNOWN. Clearly it has never been tested. Is it used? Is it really needed? If not, let's get rid of it.
Summary: HASH_GetHMACOidTagByHashOidTag obviously untested - do we need it? → Remove HASH_GetHMACOidTagByHashOidTag
Attached patch remove it (obsolete) — Splinter Review
Assignee: rrelyea → timeless
Status: NEW → ASSIGNED
Attachment #430930 - Flags: review?(rrelyea)
Comment on attachment 430930 [details] [diff] [review] remove it r=nelson
Attachment #430930 - Flags: review+
Comment on attachment 430930 [details] [diff] [review] remove it r- I actually needed this function recently. It's supposed to be exported. bob
Attachment #430930 - Flags: review?(rrelyea) → review-
the first 2 instances of hmacoid should be hashoid.
Attachment #430930 - Attachment is obsolete: true
Assignee: timeless → rrelyea
Status: ASSIGNED → NEW
Summary: Remove HASH_GetHMACOidTagByHashOidTag → Fix HASH_GetHMACOidTagByHashOidTag
Priority: -- → P2
Attached patch Patch V 1Splinter Review
Hi Bob, Can you please review this patch? Thanks, Shailendra
Attachment #436458 - Flags: review?(rrelyea)
Attachment #436458 - Flags: review?(rrelyea) → review+
Comment on attachment 436458 [details] [diff] [review] Patch V 1 r=nelson
Bug 469615: Fix HASH_GetHMACOidTagByHashOidTag Patch contributed by Shailendra Jain <shailen.n.jain@gmail.com>, r=rrelyea Checking in cryptohi/sechash.c; new revision: 1.10; previous revision: 1.9
Assignee: rrelyea → shailen.n.jain
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.12.7
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: