| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 */ |
| OLD | NEW |