1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/ssl/sslinit.c Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 1.4 +/* 1.5 + * NSS utility functions 1.6 + * 1.7 + * This Source Code Form is subject to the terms of the Mozilla Public 1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.10 + 1.11 +#include "prtypes.h" 1.12 +#include "prinit.h" 1.13 +#include "seccomon.h" 1.14 +#include "secerr.h" 1.15 +#include "ssl.h" 1.16 +#include "sslimpl.h" 1.17 + 1.18 +static int ssl_inited = 0; 1.19 + 1.20 +SECStatus 1.21 +ssl_Init(void) 1.22 +{ 1.23 + if (!ssl_inited) { 1.24 + if (ssl_InitializePRErrorTable() != SECSuccess) { 1.25 + PORT_SetError(SEC_ERROR_NO_MEMORY); 1.26 + return (SECFailure); 1.27 + } 1.28 + 1.29 +#ifdef DEBUG 1.30 + ssl3_CheckCipherSuiteOrderConsistency(); 1.31 +#endif 1.32 + 1.33 + ssl_inited = 1; 1.34 + } 1.35 + return SECSuccess; 1.36 +}