Open Bug 390374 Opened 17 years ago Updated 4 months ago

remove deprecated PBE functions

Categories

(NSS :: Libraries, enhancement, P5)

x86
Windows XP
enhancement

Tracking

(Not tracked)

People

(Reporter: glenbeasley, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [deprecation])

Attachments

(1 file, 2 obsolete files)

Deprecated PBE fucntions: PBE_CreateContext, PBE_GenerateBits, and PBE_DestroyContext, Use the PBE functions in pk11func.h

http://mxr.mozilla.org/security/source/security/nss/lib/pk11wrap/secpkcs5.h#72

http://mxr.mozilla.org/security/ident?i=PBE_CreateContext

These three deprecated functions are private. If we replace it's possible we could remove the old 
code.
Need to remove these lines?
https://dxr.mozilla.org/mozilla-central/source/security/nss/lib/pk11wrap/secpkcs5.h#49-57
Flags: needinfo?(glenbeasley)
QA Contact: franziskuskiefer
Flags: needinfo?(jjones)

you would remove
https://dxr.mozilla.org/mozilla-central/source/security/nss/lib/pk11wrap/secpkcs5.h#43-57
and
https://dxr.mozilla.org/mozilla-central/source/security/nss/lib/pk11wrap/pk11pbe.c#963-1082
to remove the dead code - I would hope after 12 years, there are no applications using that code.

Flags: needinfo?(glenbeasley)
Flags: needinfo?(jjones)
Assignee: nobody → 1991manish.kumar
Attached file Patch_Bug390374 (obsolete) —

Please review!

Thanks

Attachment #9038909 - Flags: review?(glenbeasley)
Attachment #9038949 - Attachment is obsolete: true
Attachment #9038909 - Attachment is obsolete: true
Attachment #9038909 - Flags: review?(glenbeasley)

The functions are exported in def files. IMO the ABI promise doesn't allow us to remove any exported functions in NSS 3.x releases. (They could be fully released if NSS ever migrates to a major new version 4.x)

Nobody might have noticed the code comments that declared the functions as deprecated. Has the intent to deprecate ever been announcement to the community?

If you believe there's a good reason to remove this code, I'd suggest to keep the functions, but remove their function bodies, and only return a failure, e.g. NULL.

Whiteboard: [deprecation]
Type: defect → task
Assignee: 1991manish.kumar → nobody
Blocks: 1648191
Severity: minor → N/A
Type: task → enhancement
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: