| 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 * This Source Code Form is subject to the terms of the Mozilla Public | 5 * This Source Code Form is subject to the terms of the Mozilla Public |
| 6 * License, v. 2.0. If a copy of the MPL was not distributed with this | 6 * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 8 | 8 |
| 9 #ifndef __sslimpl_h_ | 9 #ifndef __sslimpl_h_ |
| 10 #define __sslimpl_h_ | 10 #define __sslimpl_h_ |
| (...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 const SECHashObject * sha_obj; | 818 const SECHashObject * sha_obj; |
| 819 /* The function prototype of sha_obj->clone() does not match the prototype | 819 /* The function prototype of sha_obj->clone() does not match the prototype |
| 820 * of the freebl <HASH>_Clone functions, so we need a dedicated function | 820 * of the freebl <HASH>_Clone functions, so we need a dedicated function |
| 821 * pointer for the <HASH>_Clone function. */ | 821 * pointer for the <HASH>_Clone function. */ |
| 822 void (*sha_clone)(void *dest, void *src); | 822 void (*sha_clone)(void *dest, void *src); |
| 823 #endif | 823 #endif |
| 824 /* PKCS #11 mode: | 824 /* PKCS #11 mode: |
| 825 * SSL 3.0 - TLS 1.1 use both |md5| and |sha|. |md5| is used for MD5 and | 825 * SSL 3.0 - TLS 1.1 use both |md5| and |sha|. |md5| is used for MD5 and |
| 826 * |sha| for SHA-1. | 826 * |sha| for SHA-1. |
| 827 * TLS 1.2 and later use only |sha|, for SHA-256. */ | 827 * TLS 1.2 and later use only |sha|, for SHA-256. */ |
| 828 /* NOTE: On Windows, TLS 1.2 and later use |md5| as a backup handshake hash |
| 829 * for generating client auth signatures. Confusingly, the backup hash |
| 830 * function is SHA-1. */ |
| 828 PK11Context * md5; | 831 PK11Context * md5; |
| 829 PK11Context * sha; | 832 PK11Context * sha; |
| 830 | 833 |
| 831 const ssl3KEADef * kea_def; | 834 const ssl3KEADef * kea_def; |
| 832 ssl3CipherSuite cipher_suite; | 835 ssl3CipherSuite cipher_suite; |
| 833 const ssl3CipherSuiteDef *suite_def; | 836 const ssl3CipherSuiteDef *suite_def; |
| 834 SSLCompressionMethod compression; | 837 SSLCompressionMethod compression; |
| 835 sslBuffer msg_body; /* protected by recvBufLock */ | 838 sslBuffer msg_body; /* protected by recvBufLock */ |
| 836 /* partial handshake message from record layer */ | 839 /* partial handshake message from record layer */ |
| 837 unsigned int header_bytes; | 840 unsigned int header_bytes; |
| (...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1919 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) | 1922 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) |
| 1920 #define SSL_GETPID getpid | 1923 #define SSL_GETPID getpid |
| 1921 #elif defined(WIN32) | 1924 #elif defined(WIN32) |
| 1922 extern int __cdecl _getpid(void); | 1925 extern int __cdecl _getpid(void); |
| 1923 #define SSL_GETPID _getpid | 1926 #define SSL_GETPID _getpid |
| 1924 #else | 1927 #else |
| 1925 #define SSL_GETPID() 0 | 1928 #define SSL_GETPID() 0 |
| 1926 #endif | 1929 #endif |
| 1927 | 1930 |
| 1928 #endif /* __sslimpl_h_ */ | 1931 #endif /* __sslimpl_h_ */ |
| OLD | NEW |