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/. */
10 #define ER3(name, value, str) {#name, str},
12 static const struct PRErrorMessage ssltext
[] = {
17 static const struct PRErrorTable ssl_et
= {
18 ssltext
, "sslerr", SSL_ERROR_BASE
,
19 (sizeof ssltext
)/(sizeof ssltext
[0])
23 ssl_InitializePRErrorTableOnce(void) {
24 return PR_ErrorInstallTable(&ssl_et
);
27 static PRCallOnceType once
;
30 ssl_InitializePRErrorTable(void)
32 return (PR_SUCCESS
== PR_CallOnce(&once
, ssl_InitializePRErrorTableOnce
))
33 ? SECSuccess
: SECFailure
;