NSS/C++

From MozillaWiki
< NSS
Revision as of 09:03, 10 October 2018 by Franziskus (talk | contribs) (Created page with "With [https://searchfox.org/nss/source/lib/mozpkix MozPkix in NSS] C++ is officially allowed in NSS. This page collects a number of rules for C++ code in NSS. === Dependencie...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

With MozPkix in NSS C++ is officially allowed in NSS. This page collects a number of rules for C++ code in NSS.

Dependencies

The code MUST NOT depend on anything other than libstdc++.

APIs

All public facing APIs must be C APIs, wrapping the C++ code.

Target Compiler

All C++ must be compilable with GCC 4.4.x. Note that this requirement changes depending on RHEL's default compiler. Also note that GCC 4.4.x tests are limited on CI and mozpkix does not adhere to this requirement at this point. The list of supported C++11 features in GCC 4.4.x can be found here.