Closed Bug 627806 Opened 13 years ago Closed 13 years ago

Unimplemented CERT_DecodeCertificate should be removed from cert.h

Categories

(NSS :: Libraries, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: elio.maldonado.batiz, Assigned: elio.maldonado.batiz)

Details

Attachments

(1 file)

CERT_DecodeCertificate is declared in cert.h. A search in MXR
http://mxr.mozilla.org/security/source/security/nss/lib/certdb/cert.h#528
it can't be found. I can't find it the source tree either
$grep -r CERT_DecodeCertificate mozilla/security/
mozilla/security/nss/lib/nss/nss.def:CERT_DecodeCertificatePoliciesExtension;
mozilla/security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_cert.c:        PKIX_CERT_DEBUG("\t\tCERT_DecodeCertificatePoliciesExtension).\n");
mozilla/security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_cert.c:        certPol = CERT_DecodeCertificatePoliciesExtension
mozilla/security/nss/lib/libpkix/include/pkix_errorstrings.h:PKIX_ERRORENTRY(CERTDECODECERTIFICATEPOLICIESEXTENSIONFAILED,CERT_DecodeCertificatePoliciesExtension failed,0),
mozilla/security/nss/lib/certdb/polcyxtn.c:CERT_DecodeCertificatePoliciesExtension(SECItem *extnValue)
mozilla/security/nss/lib/certdb/polcyxtn.c:    policies = CERT_DecodeCertificatePoliciesExtension(&policyItem);
mozilla/security/nss/lib/certdb/cert.h:CERT_DecodeCertificatePoliciesExtension(SECItem *extnValue);

The declaration should be removed or we should implement it.
Attachment #505871 - Flags: review?(rrelyea)
Comment on attachment 505871 [details] [diff] [review]
Remove non-existent CERT_DecodeCertificate

Agreed.
Attachment #505871 - Flags: review?(rrelyea) → review+
Assignee: nobody → emaldona
OS: Linux → All
Priority: -- → P2
Severity: normal → trivial
Status: NEW → ASSIGNED
Target Milestone: --- → 3.13
Fixed on NSS trunk (NSS 3.13) by Elio.

cert.h,v 1.83 2011/01/29 16:49:31 emaldona%redhat.com
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: