Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: net/third_party/nss/ssl/sslimpl.h

Issue 23889028: Merge 221609 "Prefer to generate SHA-1 signatures for TLS 1.2 cl..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1599/src/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/third_party/nss/ssl/ssl3con.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 828 /* NOTE: On the client side, TLS 1.2 and later use |md5| as a backup
829 * for generating client auth signatures. Confusingly, the backup hash 829 * handshake hash for generating client auth signatures. Confusingly, the
830 * function is SHA-1. */ 830 * backup hash function is SHA-1. */
831 PK11Context * md5; 831 PK11Context * md5;
832 PK11Context * sha; 832 PK11Context * sha;
833 833
834 const ssl3KEADef * kea_def; 834 const ssl3KEADef * kea_def;
835 ssl3CipherSuite cipher_suite; 835 ssl3CipherSuite cipher_suite;
836 const ssl3CipherSuiteDef *suite_def; 836 const ssl3CipherSuiteDef *suite_def;
837 SSLCompressionMethod compression; 837 SSLCompressionMethod compression;
838 sslBuffer msg_body; /* protected by recvBufLock */ 838 sslBuffer msg_body; /* protected by recvBufLock */
839 /* partial handshake message from record layer */ 839 /* partial handshake message from record layer */
840 unsigned int header_bytes; 840 unsigned int header_bytes;
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
1922 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) 1922 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS)
1923 #define SSL_GETPID getpid 1923 #define SSL_GETPID getpid
1924 #elif defined(WIN32) 1924 #elif defined(WIN32)
1925 extern int __cdecl _getpid(void); 1925 extern int __cdecl _getpid(void);
1926 #define SSL_GETPID _getpid 1926 #define SSL_GETPID _getpid
1927 #else 1927 #else
1928 #define SSL_GETPID() 0 1928 #define SSL_GETPID() 0
1929 #endif 1929 #endif
1930 1930
1931 #endif /* __sslimpl_h_ */ 1931 #endif /* __sslimpl_h_ */
OLDNEW
« no previous file with comments | « net/third_party/nss/ssl/ssl3con.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698