OLD | NEW |
1 /* | 1 /* |
2 * This file is PRIVATE to SSL and should be the first thing included by | 2 * This file is PRIVATE to SSL and should be the first thing included by |
3 * any SSL implementation file. | 3 * any SSL implementation file. |
4 * | 4 * |
5 * ***** BEGIN LICENSE BLOCK ***** | 5 * ***** BEGIN LICENSE BLOCK ***** |
6 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 6 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
7 * | 7 * |
8 * The contents of this file are subject to the Mozilla Public License Version | 8 * The contents of this file are subject to the Mozilla Public License Version |
9 * 1.1 (the "License"); you may not use this file except in compliance with | 9 * 1.1 (the "License"); you may not use this file except in compliance with |
10 * the License. You may obtain a copy of the License at | 10 * the License. You may obtain a copy of the License at |
(...skipping 1708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1719 extern int ssl_MapLowLevelError(int hiLevelError); | 1719 extern int ssl_MapLowLevelError(int hiLevelError); |
1720 | 1720 |
1721 extern PRUint32 ssl_Time(void); | 1721 extern PRUint32 ssl_Time(void); |
1722 | 1722 |
1723 extern void SSL_AtomicIncrementLong(long * x); | 1723 extern void SSL_AtomicIncrementLong(long * x); |
1724 | 1724 |
1725 SECStatus SSL_DisableDefaultExportCipherSuites(void); | 1725 SECStatus SSL_DisableDefaultExportCipherSuites(void); |
1726 SECStatus SSL_DisableExportCipherSuites(PRFileDesc * fd); | 1726 SECStatus SSL_DisableExportCipherSuites(PRFileDesc * fd); |
1727 PRBool SSL_IsExportCipherSuite(PRUint16 cipherSuite); | 1727 PRBool SSL_IsExportCipherSuite(PRUint16 cipherSuite); |
1728 | 1728 |
| 1729 SECStatus ssl3_TLSPRFWithMasterSecret( |
| 1730 ssl3CipherSpec *spec, const char *label, |
| 1731 unsigned int labelLen, const unsigned char *val, |
| 1732 unsigned int valLen, unsigned char *out, |
| 1733 unsigned int outLen); |
| 1734 |
1729 /********************** FNV hash *********************/ | 1735 /********************** FNV hash *********************/ |
1730 | 1736 |
1731 void FNV1A64_Init(PRUint64 *digest); | 1737 void FNV1A64_Init(PRUint64 *digest); |
1732 void FNV1A64_Update(PRUint64 *digest, const unsigned char *data, | 1738 void FNV1A64_Update(PRUint64 *digest, const unsigned char *data, |
1733 unsigned int length); | 1739 unsigned int length); |
1734 void FNV1A64_Final(PRUint64 *digest); | 1740 void FNV1A64_Final(PRUint64 *digest); |
1735 | 1741 |
1736 #ifdef TRACE | 1742 #ifdef TRACE |
1737 #define SSL_TRACE(msg) ssl_Trace msg | 1743 #define SSL_TRACE(msg) ssl_Trace msg |
1738 #else | 1744 #else |
1739 #define SSL_TRACE(msg) | 1745 #define SSL_TRACE(msg) |
1740 #endif | 1746 #endif |
1741 | 1747 |
1742 void ssl_Trace(const char *format, ...); | 1748 void ssl_Trace(const char *format, ...); |
1743 | 1749 |
1744 SEC_END_PROTOS | 1750 SEC_END_PROTOS |
1745 | 1751 |
1746 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) | 1752 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) |
1747 #define SSL_GETPID getpid | 1753 #define SSL_GETPID getpid |
1748 #elif defined(_WIN32_WCE) | 1754 #elif defined(_WIN32_WCE) |
1749 #define SSL_GETPID GetCurrentProcessId | 1755 #define SSL_GETPID GetCurrentProcessId |
1750 #elif defined(WIN32) | 1756 #elif defined(WIN32) |
1751 extern int __cdecl _getpid(void); | 1757 extern int __cdecl _getpid(void); |
1752 #define SSL_GETPID _getpid | 1758 #define SSL_GETPID _getpid |
1753 #else | 1759 #else |
1754 #define SSL_GETPID() 0 | 1760 #define SSL_GETPID() 0 |
1755 #endif | 1761 #endif |
1756 | 1762 |
1757 #endif /* __sslimpl_h_ */ | 1763 #endif /* __sslimpl_h_ */ |
OLD | NEW |