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

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

Issue 23545010: On Windows, prepare to generate SHA-1 signatures for TLS 1.2 client authentication. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Go back to the more conservative approach 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 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 const SECHashObject * sha_obj; 831 const SECHashObject * sha_obj;
832 /* The function prototype of sha_obj->clone() does not match the prototype 832 /* The function prototype of sha_obj->clone() does not match the prototype
833 * of the freebl <HASH>_Clone functions, so we need a dedicated function 833 * of the freebl <HASH>_Clone functions, so we need a dedicated function
834 * pointer for the <HASH>_Clone function. */ 834 * pointer for the <HASH>_Clone function. */
835 void (*sha_clone)(void *dest, void *src); 835 void (*sha_clone)(void *dest, void *src);
836 #endif 836 #endif
837 /* PKCS #11 mode: 837 /* PKCS #11 mode:
838 * SSL 3.0 - TLS 1.1 use both |md5| and |sha|. |md5| is used for MD5 and 838 * SSL 3.0 - TLS 1.1 use both |md5| and |sha|. |md5| is used for MD5 and
839 * |sha| for SHA-1. 839 * |sha| for SHA-1.
840 * TLS 1.2 and later use only |sha|, for SHA-256. */ 840 * TLS 1.2 and later use only |sha|, for SHA-256. */
841 /* NOTE: On Windows, TLS 1.2 and later use |md5| as a backup handshake hash
842 * for generating client auth signatures. Confusingly, the backup hash
843 * function is SHA-1. */
841 PK11Context * md5; 844 PK11Context * md5;
842 PK11Context * sha; 845 PK11Context * sha;
843 846
844 const ssl3KEADef * kea_def; 847 const ssl3KEADef * kea_def;
845 ssl3CipherSuite cipher_suite; 848 ssl3CipherSuite cipher_suite;
846 const ssl3CipherSuiteDef *suite_def; 849 const ssl3CipherSuiteDef *suite_def;
847 SSLCompressionMethod compression; 850 SSLCompressionMethod compression;
848 sslBuffer msg_body; /* protected by recvBufLock */ 851 sslBuffer msg_body; /* protected by recvBufLock */
849 /* partial handshake message from record layer */ 852 /* partial handshake message from record layer */
850 unsigned int header_bytes; 853 unsigned int header_bytes;
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) 1935 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS)
1933 #define SSL_GETPID getpid 1936 #define SSL_GETPID getpid
1934 #elif defined(WIN32) 1937 #elif defined(WIN32)
1935 extern int __cdecl _getpid(void); 1938 extern int __cdecl _getpid(void);
1936 #define SSL_GETPID _getpid 1939 #define SSL_GETPID _getpid
1937 #else 1940 #else
1938 #define SSL_GETPID() 0 1941 #define SSL_GETPID() 0
1939 #endif 1942 #endif
1940 1943
1941 #endif /* __sslimpl_h_ */ 1944 #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