Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: nss/lib/util/errstrs.c

Issue 2078763002: Delete bundled copy of NSS and replace with README. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss@master
Patch Set: Delete bundled copy of NSS and replace with README. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « nss/lib/util/dertime.c ('k') | nss/lib/util/hasht.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 #include "prerror.h"
5 #include "secerr.h"
6 #include "secport.h"
7 #include "prinit.h"
8 #include "prprf.h"
9 #include "prtypes.h"
10 #include "prlog.h"
11 #include "plstr.h"
12 #include "nssutil.h"
13 #include <string.h>
14
15 #define ER3(name, value, str) {#name, str},
16
17 static const struct PRErrorMessage sectext[] = {
18 #include "SECerrs.h"
19 {0,0}
20 };
21
22 static const struct PRErrorTable sec_et = {
23 sectext, "secerrstrings", SEC_ERROR_BASE,
24 (sizeof sectext)/(sizeof sectext[0])
25 };
26
27 static PRStatus
28 nss_InitializePRErrorTableOnce(void) {
29 return PR_ErrorInstallTable(&sec_et);
30 }
31
32 static PRCallOnceType once;
33
34 SECStatus
35 NSS_InitializePRErrorTable(void)
36 {
37 return (PR_SUCCESS == PR_CallOnce(&once, nss_InitializePRErrorTableOnce))
38 ? SECSuccess : SECFailure;
39 }
40
OLDNEW
« no previous file with comments | « nss/lib/util/dertime.c ('k') | nss/lib/util/hasht.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698