summaryrefslogtreecommitdiff
path: root/cpputil
diff options
context:
space:
mode:
authorJ.C. Jones <jjones@mozilla.com>2017-05-11 15:10:00 -0700
committerJ.C. Jones <jjones@mozilla.com>2017-05-11 15:10:00 -0700
commite8fb158310d3c431b45195b2a9658460039a4adb (patch)
treea9eabfe984e4a28db920d5c956c2f1c13bb0441c /cpputil
parenta54061ccfb52bb42e7752eb8b7445fa88f758ea2 (diff)
downloadnss-hg-e8fb158310d3c431b45195b2a9658460039a4adb.tar.gz
Bug 1342137 - Permit unknown dotted-decimal X500 Principals r=franziskus,ttaubert
RFC 1485 permits principals with OIDs in either "1.2=Name" or "OID.1.2=Name" form. This patch permits such forms, for unknown OIDs. This patch adds disabled tests which should fail, but do not, and need further cleanup. Original patch courtesy of Miklos Vajna. Differential Revision: https://nss-review.dev.mozaws.net/D310
Diffstat (limited to 'cpputil')
-rw-r--r--cpputil/scoped_ptrs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpputil/scoped_ptrs.h b/cpputil/scoped_ptrs.h
index a2351984d..39a5e1f05 100644
--- a/cpputil/scoped_ptrs.h
+++ b/cpputil/scoped_ptrs.h
@@ -17,6 +17,7 @@ struct ScopedDelete {
void operator()(CERTCertificateList* list) {
CERT_DestroyCertificateList(list);
}
+ void operator()(CERTName* name) { CERT_DestroyName(name); }
void operator()(CERTCertList* list) { CERT_DestroyCertList(list); }
void operator()(CERTSubjectPublicKeyInfo* spki) {
SECKEY_DestroySubjectPublicKeyInfo(spki);
@@ -48,6 +49,7 @@ struct ScopedMaybeDelete {
SCOPED(CERTCertificate);
SCOPED(CERTCertificateList);
SCOPED(CERTCertList);
+SCOPED(CERTName);
SCOPED(CERTSubjectPublicKeyInfo);
SCOPED(PK11SlotInfo);
SCOPED(PK11SymKey);