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

Side by Side Diff: trunk/src/net/third_party/nss/ssl/sslsnce.c

Issue 18414004: Revert 209515 "Reland http://crrev.com/209278" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 5 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 | « trunk/src/net/third_party/nss/ssl/bodge/secure_memcmp.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 /* This file implements the SERVER Session ID cache. 1 /* This file implements the SERVER Session ID cache.
2 * NOTE: The contents of this file are NOT used by the client. 2 * NOTE: The contents of this file are NOT used by the client.
3 * 3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public 4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 /* $Id$ */ 7 /* $Id$ */
8 8
9 /* Note: ssl_FreeSID() in sslnonce.c gets used for both client and server 9 /* Note: ssl_FreeSID() in sslnonce.c gets used for both client and server
10 * cache sids! 10 * cache sids!
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 #endif 80 #endif
81 81
82 #endif 82 #endif
83 #include <sys/types.h> 83 #include <sys/types.h>
84 84
85 #define SET_ERROR_CODE /* reminder */ 85 #define SET_ERROR_CODE /* reminder */
86 86
87 #include "nspr.h" 87 #include "nspr.h"
88 #include "sslmutex.h" 88 #include "sslmutex.h"
89 89
90 /* AES_256_KEY_LENGTH was added to blapit.h in NSS 3.12.10. */
91 #ifndef AES_256_KEY_LENGTH
92 #define AES_256_KEY_LENGTH 32 /* bytes */
93 #endif
94
90 /* 95 /*
91 ** Format of a cache entry in the shared memory. 96 ** Format of a cache entry in the shared memory.
92 */ 97 */
93 struct sidCacheEntryStr { 98 struct sidCacheEntryStr {
94 /* 16 */ PRIPv6Addr addr; /* client's IP address */ 99 /* 16 */ PRIPv6Addr addr; /* client's IP address */
95 /* 4 */ PRUint32 creationTime; 100 /* 4 */ PRUint32 creationTime;
96 /* 4 */ PRUint32 lastAccessTime; 101 /* 4 */ PRUint32 lastAccessTime;
97 /* 4 */ PRUint32 expirationTime; 102 /* 4 */ PRUint32 expirationTime;
98 /* 2 */ PRUint16 version; 103 /* 2 */ PRUint16 version;
99 /* 1 */ PRUint8 valid; 104 /* 1 */ PRUint8 valid;
(...skipping 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after
2205 } 2210 }
2206 2211
2207 SECStatus 2212 SECStatus
2208 SSL_SetMaxServerCacheLocks(PRUint32 maxLocks) 2213 SSL_SetMaxServerCacheLocks(PRUint32 maxLocks)
2209 { 2214 {
2210 PR_ASSERT(!"SSL servers are not supported on this platform. (SSL_SetMaxServe rCacheLocks)"); 2215 PR_ASSERT(!"SSL servers are not supported on this platform. (SSL_SetMaxServe rCacheLocks)");
2211 return SECFailure; 2216 return SECFailure;
2212 } 2217 }
2213 2218
2214 #endif /* XP_UNIX || XP_WIN32 */ 2219 #endif /* XP_UNIX || XP_WIN32 */
OLDNEW
« no previous file with comments | « trunk/src/net/third_party/nss/ssl/bodge/secure_memcmp.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698