michael@0: /* michael@0: * NSS utility functions michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "prtypes.h" michael@0: #include "prinit.h" michael@0: #include "seccomon.h" michael@0: #include "secerr.h" michael@0: #include "ssl.h" michael@0: #include "sslimpl.h" michael@0: michael@0: static int ssl_inited = 0; michael@0: michael@0: SECStatus michael@0: ssl_Init(void) michael@0: { michael@0: if (!ssl_inited) { michael@0: if (ssl_InitializePRErrorTable() != SECSuccess) { michael@0: PORT_SetError(SEC_ERROR_NO_MEMORY); michael@0: return (SECFailure); michael@0: } michael@0: michael@0: #ifdef DEBUG michael@0: ssl3_CheckCipherSuiteOrderConsistency(); michael@0: #endif michael@0: michael@0: ssl_inited = 1; michael@0: } michael@0: return SECSuccess; michael@0: }