Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / net / third_party / nss / ssl / sslinit.c
blobbb9df255f35d6cd89a363c94f65625232b1264d0
1 /*
2 * NSS utility functions
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #include "prtypes.h"
9 #include "prinit.h"
10 #include "seccomon.h"
11 #include "secerr.h"
12 #include "ssl.h"
13 #include "sslimpl.h"
15 static int ssl_inited = 0;
17 SECStatus
18 ssl_Init(void)
20 if (!ssl_inited) {
21 if (ssl_InitializePRErrorTable() != SECSuccess) {
22 PORT_SetError(SEC_ERROR_NO_MEMORY);
23 return (SECFailure);
26 #ifdef DEBUG
27 ssl3_CheckCipherSuiteOrderConsistency();
28 #endif
30 ssl_inited = 1;
32 return SECSuccess;