OLD | NEW |
1 # Debuggin SSL on Linux | 1 # Debuggin SSL on Linux |
2 | 2 |
3 To help anyone looking at the SSL code, here are a few tips I've found handy. | 3 To help anyone looking at the SSL code, here are a few tips I've found handy. |
4 | 4 |
5 [TOC] | 5 [TOC] |
6 | 6 |
7 ## Building your own NSS | 7 ## Building your own NSS |
8 | 8 |
9 In order to use a debugger with the NSS library, it helps to build NSS yourself. | 9 In order to use a debugger with the NSS library, it helps to build NSS yourself. |
10 Here's how I did it: | 10 Here's how I did it: |
11 | 11 |
12 First, read | 12 First, read |
13 http://www.mozilla.org/projects/security/pki/nss/nss-3.11.4/nss-3.11.4-build.htm
l | 13 [Network Security Services](http://www.mozilla.org/projects/security/pki/nss/nss
-3.11.4/nss-3.11.4-build.html) |
14 and/or | 14 and/or |
15 https://developer.mozilla.org/En/NSS_reference/Building_and_installing_NSS/Build
_instructions | 15 [Build instructions](https://developer.mozilla.org/En/NSS_reference/Building_and
_installing_NSS/Build_instructions). |
16 | 16 |
17 Then, to build the most recent source tarball: | 17 Then, to build the most recent source tarball: |
18 | 18 |
19 ```shell | 19 ```shell |
20 cd $HOME | 20 cd $HOME |
21 wget ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_RTM/sr
c/nss-3.12-with-nspr-4.7.tar.gz | 21 wget ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_RTM/sr
c/nss-3.12-with-nspr-4.7.tar.gz |
22 tar -xzvf nss-3.12-with-nspr-4.7.tar.gz | 22 tar -xzvf nss-3.12-with-nspr-4.7.tar.gz |
23 cd nss-3.12/ | 23 cd nss-3.12/ |
24 cd mozilla/security/nss/ | 24 cd mozilla/security/nss/ |
25 make nss_build_all | 25 make nss_build_all |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 If you get unsymbolized entries in NSS backtraces, try setting: | 130 If you get unsymbolized entries in NSS backtraces, try setting: |
131 | 131 |
132 export NSS_DISABLE_UNLOAD=1 | 132 export NSS_DISABLE_UNLOAD=1 |
133 | 133 |
134 (Note that if you use the Chromium valgrind scripts like | 134 (Note that if you use the Chromium valgrind scripts like |
135 `tools/valgrind/chrome_tests.sh` or `tools/valgrind/valgrind.sh` these will both | 135 `tools/valgrind/chrome_tests.sh` or `tools/valgrind/valgrind.sh` these will both |
136 be set automatically.) | 136 be set automatically.) |
137 | 137 |
138 ## Support forums | 138 ## Support forums |
139 | 139 |
140 If you have nonconfidential questions about NSS, check the newsgroup | 140 If you have nonconfidential questions about NSS, check |
141 http://groups.google.com/group/mozilla.dev.tech.crypto The NSS maintainer | 141 [the newsgroup](http://groups.google.com/group/mozilla.dev.tech.crypto). |
142 monitors that group and gives good answers. | 142 The NSS maintainer monitors that group and gives good answers. |
OLD | NEW |