OLD | NEW |
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ | 1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 /* | 2 /* |
3 * This file is PRIVATE to SSL and should be the first thing included by | 3 * This file is PRIVATE to SSL and should be the first thing included by |
4 * any SSL implementation file. | 4 * any SSL implementation file. |
5 * | 5 * |
6 * This Source Code Form is subject to the terms of the Mozilla Public | 6 * This Source Code Form is subject to the terms of the Mozilla Public |
7 * License, v. 2.0. If a copy of the MPL was not distributed with this | 7 * License, v. 2.0. If a copy of the MPL was not distributed with this |
8 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 8 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
9 | 9 |
10 #ifndef __sslimpl_h_ | 10 #ifndef __sslimpl_h_ |
(...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1767 PRInt32 bytes, SSL3Opaque **b, PRUint32 *length); | 1767 PRInt32 bytes, SSL3Opaque **b, PRUint32 *length); |
1768 extern PRBool ssl3_IsSupportedSignatureAlgorithm( | 1768 extern PRBool ssl3_IsSupportedSignatureAlgorithm( |
1769 const SSLSignatureAndHashAlg *alg); | 1769 const SSLSignatureAndHashAlg *alg); |
1770 extern SECStatus ssl3_CheckSignatureAndHashAlgorithmConsistency( | 1770 extern SECStatus ssl3_CheckSignatureAndHashAlgorithmConsistency( |
1771 sslSocket *ss, const SSLSignatureAndHashAlg *sigAndHash, | 1771 sslSocket *ss, const SSLSignatureAndHashAlg *sigAndHash, |
1772 CERTCertificate* cert); | 1772 CERTCertificate* cert); |
1773 extern SECStatus ssl3_ConsumeSignatureAndHashAlgorithm( | 1773 extern SECStatus ssl3_ConsumeSignatureAndHashAlgorithm( |
1774 sslSocket *ss, SSL3Opaque **b, PRUint32 *length, | 1774 sslSocket *ss, SSL3Opaque **b, PRUint32 *length, |
1775 SSLSignatureAndHashAlg *out); | 1775 SSLSignatureAndHashAlg *out); |
1776 extern SECStatus ssl3_SignHashes(SSL3Hashes *hash, SECKEYPrivateKey *key,· | 1776 extern SECStatus ssl3_SignHashes(SSL3Hashes *hash, SECKEYPrivateKey *key,· |
1777 » » » SECItem *buf, PRBool isTLS); | 1777 » » » SECItem *buf, SSL3ProtocolVersion version); |
1778 extern SECStatus ssl3_VerifySignedHashes(SSL3Hashes *hash,· | 1778 extern SECStatus ssl3_VerifySignedHashes(SSL3Hashes *hash,· |
1779 » » » CERTCertificate *cert, SECItem *buf, PRBool isTLS, | 1779 » » » CERTCertificate *cert, SECItem *buf, |
1780 » » » void *pwArg); | 1780 » » » SSL3ProtocolVersion version, void *pwArg); |
1781 extern SECStatus ssl3_CacheWrappedMasterSecret(sslSocket *ss, | 1781 extern SECStatus ssl3_CacheWrappedMasterSecret(sslSocket *ss, |
1782 sslSessionID *sid, ssl3CipherSpec *spec, | 1782 sslSessionID *sid, ssl3CipherSpec *spec, |
1783 SSL3KEAType effectiveExchKeyType); | 1783 SSL3KEAType effectiveExchKeyType); |
1784 | 1784 |
1785 /* Functions that handle ClientHello and ServerHello extensions. */ | 1785 /* Functions that handle ClientHello and ServerHello extensions. */ |
1786 extern SECStatus ssl3_HandleServerNameXtn(sslSocket * ss, | 1786 extern SECStatus ssl3_HandleServerNameXtn(sslSocket * ss, |
1787 PRUint16 ex_type, SECItem *data); | 1787 PRUint16 ex_type, SECItem *data); |
1788 extern SECStatus ssl3_HandleSupportedCurvesXtn(sslSocket * ss, | 1788 extern SECStatus ssl3_HandleSupportedCurvesXtn(sslSocket * ss, |
1789 PRUint16 ex_type, SECItem *data); | 1789 PRUint16 ex_type, SECItem *data); |
1790 extern SECStatus ssl3_HandleSupportedPointFormatsXtn(sslSocket * ss, | 1790 extern SECStatus ssl3_HandleSupportedPointFormatsXtn(sslSocket * ss, |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1967 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) | 1967 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) |
1968 #define SSL_GETPID getpid | 1968 #define SSL_GETPID getpid |
1969 #elif defined(WIN32) | 1969 #elif defined(WIN32) |
1970 extern int __cdecl _getpid(void); | 1970 extern int __cdecl _getpid(void); |
1971 #define SSL_GETPID _getpid | 1971 #define SSL_GETPID _getpid |
1972 #else | 1972 #else |
1973 #define SSL_GETPID() 0 | 1973 #define SSL_GETPID() 0 |
1974 #endif | 1974 #endif |
1975 | 1975 |
1976 #endif /* __sslimpl_h_ */ | 1976 #endif /* __sslimpl_h_ */ |
OLD | NEW |