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

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

Issue 18332012: Reland r209278 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | « 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
95 /* 90 /*
96 ** Format of a cache entry in the shared memory. 91 ** Format of a cache entry in the shared memory.
97 */ 92 */
98 struct sidCacheEntryStr { 93 struct sidCacheEntryStr {
99 /* 16 */ PRIPv6Addr addr; /* client's IP address */ 94 /* 16 */ PRIPv6Addr addr; /* client's IP address */
100 /* 4 */ PRUint32 creationTime; 95 /* 4 */ PRUint32 creationTime;
101 /* 4 */ PRUint32 lastAccessTime; 96 /* 4 */ PRUint32 lastAccessTime;
102 /* 4 */ PRUint32 expirationTime; 97 /* 4 */ PRUint32 expirationTime;
103 /* 2 */ PRUint16 version; 98 /* 2 */ PRUint16 version;
104 /* 1 */ PRUint8 valid; 99 /* 1 */ PRUint8 valid;
(...skipping 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after
2210 } 2205 }
2211 2206
2212 SECStatus 2207 SECStatus
2213 SSL_SetMaxServerCacheLocks(PRUint32 maxLocks) 2208 SSL_SetMaxServerCacheLocks(PRUint32 maxLocks)
2214 { 2209 {
2215 PR_ASSERT(!"SSL servers are not supported on this platform. (SSL_SetMaxServe rCacheLocks)"); 2210 PR_ASSERT(!"SSL servers are not supported on this platform. (SSL_SetMaxServe rCacheLocks)");
2216 return SECFailure; 2211 return SECFailure;
2217 } 2212 }
2218 2213
2219 #endif /* XP_UNIX || XP_WIN32 */ 2214 #endif /* XP_UNIX || XP_WIN32 */
OLDNEW
« no previous file with comments | « 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