LEFT | RIGHT |
(no file at all) | |
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 | 7 |
8 /* Note: ssl_FreeSID() in sslnonce.c gets used for both client and server | 8 /* Note: ssl_FreeSID() in sslnonce.c gets used for both client and server |
9 * cache sids! | 9 * cache sids! |
10 * | 10 * |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 PR_FALSE, PR_TRUE); | 535 PR_FALSE, PR_TRUE); |
536 if (to->peerCert == NULL) | 536 if (to->peerCert == NULL) |
537 goto loser; | 537 goto loser; |
538 } | 538 } |
539 to->certType.authType = from->authType; | 539 to->certType.authType = from->authType; |
540 switch (from->authType) { | 540 switch (from->authType) { |
541 case ssl_auth_ecdsa: | 541 case ssl_auth_ecdsa: |
542 case ssl_auth_ecdh_rsa: | 542 case ssl_auth_ecdh_rsa: |
543 case ssl_auth_ecdh_ecdsa: | 543 case ssl_auth_ecdh_ecdsa: |
544 to->certType.namedCurve = | 544 to->certType.namedCurve = |
545 ssl_LookupNamedGroup((SSLNamedGroup)from->u.ssl3.certTypeArgs); | 545 ssl_LookupNamedGroup(NULL, (SSLNamedGroup)from->u.ssl3.certTypeA
rgs); |
546 break; | 546 break; |
547 default: | 547 default: |
548 break; | 548 break; |
549 } | 549 } |
550 | 550 |
551 to->version = from->version; | 551 to->version = from->version; |
552 to->creationTime = from->creationTime; | 552 to->creationTime = from->creationTime; |
553 to->lastAccessTime = from->lastAccessTime; | 553 to->lastAccessTime = from->lastAccessTime; |
554 to->expirationTime = from->expirationTime; | 554 to->expirationTime = from->expirationTime; |
555 to->cached = in_server_cache; | 555 to->cached = in_server_cache; |
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2057 } | 2057 } |
2058 | 2058 |
2059 SECStatus | 2059 SECStatus |
2060 SSL_SetMaxServerCacheLocks(PRUint32 maxLocks) | 2060 SSL_SetMaxServerCacheLocks(PRUint32 maxLocks) |
2061 { | 2061 { |
2062 PR_ASSERT(!"SSL servers are not supported on this platform. (SSL_SetMaxServe
rCacheLocks)"); | 2062 PR_ASSERT(!"SSL servers are not supported on this platform. (SSL_SetMaxServe
rCacheLocks)"); |
2063 return SECFailure; | 2063 return SECFailure; |
2064 } | 2064 } |
2065 | 2065 |
2066 #endif /* XP_UNIX || XP_WIN32 */ | 2066 #endif /* XP_UNIX || XP_WIN32 */ |
LEFT | RIGHT |