| 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 * ***** BEGIN LICENSE BLOCK ***** | 4 * ***** BEGIN LICENSE BLOCK ***** |
| 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 6 * | 6 * |
| 7 * The contents of this file are subject to the Mozilla Public License Version | 7 * The contents of this file are subject to the Mozilla Public License Version |
| 8 * 1.1 (the "License"); you may not use this file except in compliance with | 8 * 1.1 (the "License"); you may not use this file except in compliance with |
| 9 * the License. You may obtain a copy of the License at | 9 * the License. You may obtain a copy of the License at |
| 10 * http://www.mozilla.org/MPL/ | 10 * http://www.mozilla.org/MPL/ |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 to->u.ssl3.masterSlotID = (CK_SLOT_ID)-1; /* invalid value */ | 631 to->u.ssl3.masterSlotID = (CK_SLOT_ID)-1; /* invalid value */ |
| 632 to->u.ssl3.masterWrapIndex = 0; | 632 to->u.ssl3.masterWrapIndex = 0; |
| 633 to->u.ssl3.masterWrapSeries = 0; | 633 to->u.ssl3.masterWrapSeries = 0; |
| 634 to->u.ssl3.masterValid = PR_FALSE; | 634 to->u.ssl3.masterValid = PR_FALSE; |
| 635 | 635 |
| 636 to->u.ssl3.clAuthModuleID = (SECMODModuleID)-1; /* invalid value */ | 636 to->u.ssl3.clAuthModuleID = (SECMODModuleID)-1; /* invalid value */ |
| 637 to->u.ssl3.clAuthSlotID = (CK_SLOT_ID)-1; /* invalid value */ | 637 to->u.ssl3.clAuthSlotID = (CK_SLOT_ID)-1; /* invalid value */ |
| 638 to->u.ssl3.clAuthSeries = 0; | 638 to->u.ssl3.clAuthSeries = 0; |
| 639 to->u.ssl3.clAuthValid = PR_FALSE; | 639 to->u.ssl3.clAuthValid = PR_FALSE; |
| 640 | 640 |
| 641 #ifdef NSS_PLATFORM_CLIENT_AUTH | |
| 642 ssl_InitPlatformAuthInfo(&to->u.ssl3.clPlatformAuthInfo); | |
| 643 to->u.ssl3.clPlatformAuthValid = PR_FALSE; | |
| 644 #endif /* NSS_PLATFORM_CLIENT_AUTH */ | |
| 645 | |
| 646 if (from->u.ssl3.certIndex != -1 && pcce) { | 641 if (from->u.ssl3.certIndex != -1 && pcce) { |
| 647 SECItem derCert; | 642 SECItem derCert; |
| 648 | 643 |
| 649 derCert.len = pcce->certLength; | 644 derCert.len = pcce->certLength; |
| 650 derCert.data = pcce->cert; | 645 derCert.data = pcce->cert; |
| 651 | 646 |
| 652 to->peerCert = CERT_NewTempCertificate(dbHandle, &derCert, NULL, | 647 to->peerCert = CERT_NewTempCertificate(dbHandle, &derCert, NULL, |
| 653 PR_FALSE, PR_TRUE); | 648 PR_FALSE, PR_TRUE); |
| 654 if (to->peerCert == NULL) | 649 if (to->peerCert == NULL) |
| 655 goto loser; | 650 goto loser; |
| (...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2158 } | 2153 } |
| 2159 | 2154 |
| 2160 SECStatus | 2155 SECStatus |
| 2161 SSL_SetMaxServerCacheLocks(PRUint32 maxLocks) | 2156 SSL_SetMaxServerCacheLocks(PRUint32 maxLocks) |
| 2162 { | 2157 { |
| 2163 PR_ASSERT(!"SSL servers are not supported on this platform. (SSL_SetMaxServe
rCacheLocks)"); | 2158 PR_ASSERT(!"SSL servers are not supported on this platform. (SSL_SetMaxServe
rCacheLocks)"); |
| 2164 return SECFailure; | 2159 return SECFailure; |
| 2165 } | 2160 } |
| 2166 | 2161 |
| 2167 #endif /* XP_UNIX || XP_WIN32 */ | 2162 #endif /* XP_UNIX || XP_WIN32 */ |
| OLD | NEW |