Open Bug 289976 Opened 20 years ago Updated 2 years ago

NSS public functions that take nicknames should declare them as const

Categories

(NSS :: Libraries, defect, P2)

x86
Windows XP

Tracking

(Not tracked)

People

(Reporter: timeless, Unassigned)

Details

 
timeless, you are right.  Is this bug affecting your app?

I took a quick look at this and found that fixing this
requires fixing several functions PK11_FindCertFromNickname
passes the nickname argument to.  Nelson, is there anyone
at Sun who you can assign this bug to?
Priority: -- → P2
Target Milestone: --- → 3.11
This bug was originally about function PK11_FindCertFromNickname, but
it really should apply to all NSS public functions that take nickname
strings as input arguments.  

Function PK11_FindCertFromNickname starts by making a strdup of the
nickname string, so it is not really necessary to force the const
qualifier down to all the functions that it calls.  But that's probably
a good idea anyway.
Assignee: wtchang → alexei.volkov.bugs
Summary: PK11_FindCertFromNickname should not require a non const nickname → NSS public functions that take nicknames should declare them as const
we have poor code because of this, and it's preventing us from providing decent
patches to mozilla.org.
QA Contact: bishakhabanerjee → jason.m.reid
QA Contact: jason.m.reid → libraries
Target Milestone: 3.11 → 3.11.1
Target Milestone: 3.11.1 → 3.12
Unsetting target milestone in unresolved bugs whose targets have passed.
Target Milestone: 3.12 → ---

The bug assignee is inactive on Bugzilla, and this bug has priority 'P2'.
:beurdouche, could you have a look please?

For more information, please visit auto_nag documentation.

Assignee: alvolkov.bgs → nobody
Flags: needinfo?(bbeurdouche)
Severity: normal → S3

We have modified the bot to only consider P1 as high priority, so I'm cancelling the needinfo here.

Flags: needinfo?(bbeurdouche)
You need to log in before you can comment on or make changes to this bug.