Difference between revisions of "NSS Upstream Development"

From Dogtag
Jump to: navigation, search
m
m
 
Line 1: Line 1:
 
= Overview =
 
= Overview =
  
NSS source code is stored Mercurial repository at https://hg.mozilla.org/projects/nss.
+
This page is being moved to https://github.com/dogtagpki/nss/wiki/Building-NSS.
 
 
A Git mirror is available at https://github.com/nss-dev/nss.
 
 
 
= Prerequisites =
 
 
 
<pre>
 
$ dnf install mercurial git-remote-hg
 
$ dnf install nss-softokn-devel nss-util-devel sqlite-devel xmlto
 
$ dnf install clang
 
</pre>
 
 
 
= Getting Source Code =
 
 
 
Create a folder called 'sandbox':
 
 
 
<pre>
 
$ mkdir sandbox
 
$ cd sandbox
 
</pre>
 
 
 
To checkout NSS source:
 
 
 
<pre>
 
$ hg clone https://hg.mozilla.org/projects/nss
 
</pre>
 
 
 
or
 
 
 
<pre>
 
$ git clone hg::https://hg.mozilla.org/projects/nss
 
</pre>
 
 
 
or
 
 
 
<pre>
 
$ git clone https://github.com/nss-dev/nss.git
 
</pre>
 
  
 
= Formatting =
 
= Formatting =
Line 52: Line 15:
 
fprintf(stderr, message);
 
fprintf(stderr, message);
 
</pre>
 
</pre>
 
= Building NSS =
 
 
To create normal NSPR and NSS build, go to the 'nss' folder and execute the following:
 
 
<pre>
 
$ USE_64=1 make nss_build_all
 
</pre>
 
 
It will build the binaries in '../dist' folder.
 
 
To clean the system:
 
 
<pre>
 
$ USE_64=1 make nss_clean_all
 
</pre>
 
 
To run tests:
 
 
<pre>
 
$ cd tests
 
$ ./all.sh
 
</pre>
 
 
To run specific tests:
 
 
<pre>
 
$ cd tests/ssl_gtests
 
$ ./ssl_gtests.sh
 
</pre>
 
 
See also [[NSS Tests]].
 
  
 
= References =
 
= References =
  
 
* [[NSS Development]]
 
* [[NSS Development]]
 +
* [[NSS Tests]]
 
* [https://github.com/dogtagpki/nss/wiki/NSPR-Development NSPR Development]
 
* [https://github.com/dogtagpki/nss/wiki/NSPR-Development NSPR Development]

Latest revision as of 02:21, 23 July 2022

Overview

This page is being moved to https://github.com/dogtagpki/nss/wiki/Building-NSS.

Formatting

$ clang-format -i <filenames...>

Debug Methods

SSL_TRC();
fprintf(stderr, message);

References