| OLD | NEW |
| 1 Index: mozilla/security/nss/lib/ssl/ssl.h | 1 Index: mozilla/security/nss/lib/ssl/ssl.h |
| 2 =================================================================== | 2 =================================================================== |
| 3 RCS file: /cvsroot/mozilla/security/nss/lib/ssl/ssl.h,v | 3 RCS file: /cvsroot/mozilla/security/nss/lib/ssl/ssl.h,v |
| 4 retrieving revision 1.38 | 4 retrieving revision 1.38 |
| 5 diff -p -u -8 -r1.38 ssl.h | 5 diff -p -u -8 -r1.38 ssl.h |
| 6 --- mozilla/security/nss/lib/ssl/ssl.h 17 Feb 2010 02:29:07 -0000 1.38 | 6 --- mozilla/security/nss/lib/ssl/ssl.h 17 Feb 2010 02:29:07 -0000 1.38 |
| 7 +++ mozilla/security/nss/lib/ssl/ssl.h» 16 Feb 2011 02:40:21 -0000 | 7 +++ mozilla/security/nss/lib/ssl/ssl.h» 16 Feb 2011 23:30:37 -0000 |
| 8 @@ -275,16 +275,49 @@ typedef SECStatus (PR_CALLBACK *SSLGetCl | 8 @@ -275,16 +275,49 @@ typedef SECStatus (PR_CALLBACK *SSLGetCl |
| 9 * and certificate. | 9 * and certificate. |
| 10 * fd - the file descriptor for the connection in question | 10 * fd - the file descriptor for the connection in question |
| 11 * f - the application's callback that delivers the key and cert | 11 * f - the application's callback that delivers the key and cert |
| 12 * a - application specific data | 12 * a - application specific data |
| 13 */ | 13 */ |
| 14 SSL_IMPORT SECStatus SSL_GetClientAuthDataHook(PRFileDesc *fd, | 14 SSL_IMPORT SECStatus SSL_GetClientAuthDataHook(PRFileDesc *fd, |
| 15 SSLGetClientAuthData f, void *a); | 15 SSLGetClientAuthData f, void *a); |
| 16 | 16 |
| 17 +/* | 17 +/* |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 ** Upon this callback invocation, application is responsible to reconfigure the | 54 ** Upon this callback invocation, application is responsible to reconfigure the |
| 55 ** socket with the data for a particular server name. | 55 ** socket with the data for a particular server name. |
| 56 ** There are three potential outcomes of this function invocation: | 56 ** There are three potential outcomes of this function invocation: |
| 57 ** * application does not recognize the name or the type and wants the | 57 ** * application does not recognize the name or the type and wants the |
| 58 Index: mozilla/security/nss/lib/ssl/ssl3con.c | 58 Index: mozilla/security/nss/lib/ssl/ssl3con.c |
| 59 =================================================================== | 59 =================================================================== |
| 60 RCS file: /cvsroot/mozilla/security/nss/lib/ssl/ssl3con.c,v | 60 RCS file: /cvsroot/mozilla/security/nss/lib/ssl/ssl3con.c,v |
| 61 retrieving revision 1.142 | 61 retrieving revision 1.142 |
| 62 diff -p -u -8 -r1.142 ssl3con.c | 62 diff -p -u -8 -r1.142 ssl3con.c |
| 63 --- mozilla/security/nss/lib/ssl/ssl3con.c 24 Jun 2010 19:53:20 -0000
1.142 | 63 --- mozilla/security/nss/lib/ssl/ssl3con.c 24 Jun 2010 19:53:20 -0000
1.142 |
| 64 +++ mozilla/security/nss/lib/ssl/ssl3con.c» 16 Feb 2011 02:40:21 -0000 | 64 +++ mozilla/security/nss/lib/ssl/ssl3con.c» 16 Feb 2011 23:30:37 -0000 |
| 65 @@ -2007,16 +2007,19 @@ ssl3_ComputeRecordMAC( | 65 @@ -2007,16 +2007,19 @@ ssl3_ComputeRecordMAC( |
| 66 rv = SECFailure; | 66 rv = SECFailure; |
| 67 ssl_MapLowLevelError(SSL_ERROR_MAC_COMPUTATION_FAILURE); | 67 ssl_MapLowLevelError(SSL_ERROR_MAC_COMPUTATION_FAILURE); |
| 68 } | 68 } |
| 69 return rv; | 69 return rv; |
| 70 } | 70 } |
| 71 | 71 |
| 72 static PRBool | 72 static PRBool |
| 73 ssl3_ClientAuthTokenPresent(sslSessionID *sid) { | 73 ssl3_ClientAuthTokenPresent(sslSessionID *sid) { |
| 74 +#ifdef NSS_PLATFORM_CLIENT_AUTH | 74 +#ifdef NSS_PLATFORM_CLIENT_AUTH |
| (...skipping 12 matching lines...) Expand all Loading... |
| 87 (PK11_NeedLogin(slot) && !PK11_IsLoggedIn(slot, NULL))) { | 87 (PK11_NeedLogin(slot) && !PK11_IsLoggedIn(slot, NULL))) { |
| 88 isPresent = PR_FALSE; | 88 isPresent = PR_FALSE; |
| 89 } | 89 } |
| 90 if (slot) { | 90 if (slot) { |
| 91 PK11_FreeSlot(slot); | 91 PK11_FreeSlot(slot); |
| 92 } | 92 } |
| 93 return isPresent; | 93 return isPresent; |
| 94 +#endif /* NSS_PLATFORM_CLIENT_AUTH */ | 94 +#endif /* NSS_PLATFORM_CLIENT_AUTH */ |
| 95 } | 95 } |
| 96 | 96 |
| 97 static SECStatus | 97 SECStatus |
| 98 ssl3_CompressMACEncryptRecord(sslSocket * ss, | 98 ssl3_CompressMACEncryptRecord(sslSocket * ss, |
| 99 SSL3ContentType type, | 99 SSL3ContentType type, |
| 100 const SSL3Opaque * pIn, | 100 const SSL3Opaque * pIn, |
| 101 PRUint32 contentLen) | 101 PRUint32 contentLen) |
| 102 { | 102 { |
| 103 @@ -4812,40 +4816,41 @@ ssl3_SendCertificateVerify(sslSocket *ss | 103 @@ -4812,40 +4816,41 @@ ssl3_SendCertificateVerify(sslSocket *ss |
| 104 ssl_GetSpecReadLock(ss); | 104 ssl_GetSpecReadLock(ss); |
| 105 rv = ssl3_ComputeHandshakeHashes(ss, ss->ssl3.pwSpec, &hashes, 0); | 105 rv = ssl3_ComputeHandshakeHashes(ss, ss->ssl3.pwSpec, &hashes, 0); |
| 106 ssl_ReleaseSpecReadLock(ss); | 106 ssl_ReleaseSpecReadLock(ss); |
| 107 if (rv != SECSuccess) { | 107 if (rv != SECSuccess) { |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 if (ss->ssl3.clientCertChain != NULL) { | 418 if (ss->ssl3.clientCertChain != NULL) { |
| 419 CERT_DestroyCertificateList(ss->ssl3.clientCertChain); | 419 CERT_DestroyCertificateList(ss->ssl3.clientCertChain); |
| 420 ss->ssl3.clientCertChain = NULL; | 420 ss->ssl3.clientCertChain = NULL; |
| 421 } | 421 } |
| 422 Index: mozilla/security/nss/lib/ssl/ssl3ext.c | 422 Index: mozilla/security/nss/lib/ssl/ssl3ext.c |
| 423 =================================================================== | 423 =================================================================== |
| 424 RCS file: /cvsroot/mozilla/security/nss/lib/ssl/ssl3ext.c,v | 424 RCS file: /cvsroot/mozilla/security/nss/lib/ssl/ssl3ext.c,v |
| 425 retrieving revision 1.14 | 425 retrieving revision 1.14 |
| 426 diff -p -u -8 -r1.14 ssl3ext.c | 426 diff -p -u -8 -r1.14 ssl3ext.c |
| 427 --- mozilla/security/nss/lib/ssl/ssl3ext.c 3 Apr 2010 19:19:07 -0000
1.14 | 427 --- mozilla/security/nss/lib/ssl/ssl3ext.c 3 Apr 2010 19:19:07 -0000
1.14 |
| 428 +++ mozilla/security/nss/lib/ssl/ssl3ext.c» 16 Feb 2011 02:40:21 -0000 | 428 +++ mozilla/security/nss/lib/ssl/ssl3ext.c» 16 Feb 2011 23:30:37 -0000 |
| 429 @@ -41,18 +41,18 @@ | 429 @@ -41,18 +41,18 @@ |
| 430 * ***** END LICENSE BLOCK ***** */ | 430 * ***** END LICENSE BLOCK ***** */ |
| 431 | 431 |
| 432 /* TLS extension code moved here from ssl3ecc.c */ | 432 /* TLS extension code moved here from ssl3ecc.c */ |
| 433 /* $Id: ssl3ext.c,v 1.14 2010/04/03 19:19:07 nelson%bolyard.com Exp $ */ | 433 /* $Id: ssl3ext.c,v 1.14 2010/04/03 19:19:07 nelson%bolyard.com Exp $ */ |
| 434 | 434 |
| 435 #include "nssrenam.h" | 435 #include "nssrenam.h" |
| 436 #include "nss.h" | 436 #include "nss.h" |
| 437 #include "ssl.h" | 437 #include "ssl.h" |
| 438 -#include "sslproto.h" | 438 -#include "sslproto.h" |
| 439 #include "sslimpl.h" | 439 #include "sslimpl.h" |
| 440 +#include "sslproto.h" | 440 +#include "sslproto.h" |
| 441 #include "pk11pub.h" | 441 #include "pk11pub.h" |
| 442 #include "blapi.h" | 442 #include "blapi.h" |
| 443 #include "prinit.h" | 443 #include "prinit.h" |
| 444 | 444 |
| 445 static unsigned char key_name[SESS_TICKET_KEY_NAME_LEN]; | 445 static unsigned char key_name[SESS_TICKET_KEY_NAME_LEN]; |
| 446 static PK11SymKey *session_ticket_enc_key_pkcs11 = NULL; | 446 static PK11SymKey *session_ticket_enc_key_pkcs11 = NULL; |
| 447 static PK11SymKey *session_ticket_mac_key_pkcs11 = NULL; | 447 static PK11SymKey *session_ticket_mac_key_pkcs11 = NULL; |
| 448 | 448 |
| 449 Index: mozilla/security/nss/lib/ssl/sslauth.c | 449 Index: mozilla/security/nss/lib/ssl/sslauth.c |
| 450 =================================================================== | 450 =================================================================== |
| 451 RCS file: /cvsroot/mozilla/security/nss/lib/ssl/sslauth.c,v | 451 RCS file: /cvsroot/mozilla/security/nss/lib/ssl/sslauth.c,v |
| 452 retrieving revision 1.16 | 452 retrieving revision 1.16 |
| 453 diff -p -u -8 -r1.16 sslauth.c | 453 diff -p -u -8 -r1.16 sslauth.c |
| 454 --- mozilla/security/nss/lib/ssl/sslauth.c 20 Apr 2006 00:20:45 -0000
1.16 | 454 --- mozilla/security/nss/lib/ssl/sslauth.c 20 Apr 2006 00:20:45 -0000
1.16 |
| 455 +++ mozilla/security/nss/lib/ssl/sslauth.c» 16 Feb 2011 02:40:21 -0000 | 455 +++ mozilla/security/nss/lib/ssl/sslauth.c» 16 Feb 2011 23:30:37 -0000 |
| 456 @@ -204,16 +204,38 @@ SSL_GetClientAuthDataHook(PRFileDesc *s, | 456 @@ -204,16 +204,38 @@ SSL_GetClientAuthDataHook(PRFileDesc *s, |
| 457 return SECFailure; | 457 return SECFailure; |
| 458 } | 458 } |
| 459 | 459 |
| 460 ss->getClientAuthData = func; | 460 ss->getClientAuthData = func; |
| 461 ss->getClientAuthDataArg = arg; | 461 ss->getClientAuthDataArg = arg; |
| 462 return SECSuccess; | 462 return SECSuccess; |
| 463 } | 463 } |
| 464 | 464 |
| 465 +#ifdef NSS_PLATFORM_CLIENT_AUTH | 465 +#ifdef NSS_PLATFORM_CLIENT_AUTH |
| (...skipping 25 matching lines...) Expand all Loading... |
| 491 sslSocket *ss; | 491 sslSocket *ss; |
| 492 | 492 |
| 493 ss = ssl_FindSocket(s); | 493 ss = ssl_FindSocket(s); |
| 494 if (!ss) { | 494 if (!ss) { |
| 495 Index: mozilla/security/nss/lib/ssl/sslimpl.h | 495 Index: mozilla/security/nss/lib/ssl/sslimpl.h |
| 496 =================================================================== | 496 =================================================================== |
| 497 RCS file: /cvsroot/mozilla/security/nss/lib/ssl/sslimpl.h,v | 497 RCS file: /cvsroot/mozilla/security/nss/lib/ssl/sslimpl.h,v |
| 498 retrieving revision 1.77 | 498 retrieving revision 1.77 |
| 499 diff -p -u -8 -r1.77 sslimpl.h | 499 diff -p -u -8 -r1.77 sslimpl.h |
| 500 --- mozilla/security/nss/lib/ssl/sslimpl.h 10 Feb 2010 00:33:50 -0000
1.77 | 500 --- mozilla/security/nss/lib/ssl/sslimpl.h 10 Feb 2010 00:33:50 -0000
1.77 |
| 501 +++ mozilla/security/nss/lib/ssl/sslimpl.h» 16 Feb 2011 02:40:21 -0000 | 501 +++ mozilla/security/nss/lib/ssl/sslimpl.h» 16 Feb 2011 23:30:37 -0000 |
| 502 @@ -60,16 +60,25 @@ | 502 @@ -60,16 +60,25 @@ |
| 503 #if defined(XP_UNIX) || defined(XP_BEOS) | 503 #if defined(XP_UNIX) || defined(XP_BEOS) |
| 504 #include "unistd.h" | 504 #include "unistd.h" |
| 505 #endif | 505 #endif |
| 506 #include "nssrwlk.h" | 506 #include "nssrwlk.h" |
| 507 #include "prthread.h" | 507 #include "prthread.h" |
| 508 | 508 |
| 509 #include "sslt.h" /* for some formerly private types, now public */ | 509 #include "sslt.h" /* for some formerly private types, now public */ |
| 510 | 510 |
| 511 +#ifdef NSS_PLATFORM_CLIENT_AUTH | 511 +#ifdef NSS_PLATFORM_CLIENT_AUTH |
| 512 +#if defined(XP_WIN32) | 512 +#if defined(XP_WIN32) |
| 513 +#include <windows.h> | 513 +#include <windows.h> |
| 514 +#include <wincrypt.h> | 514 +#include <wincrypt.h> |
| 515 +#elif defined(XP_MACOSX) | 515 +#elif defined(XP_MACOSX) |
| 516 +#include <Security/Security.h> | 516 +#include <Security/Security.h> |
| 517 +#endif | 517 +#endif |
| 518 +#endif | 518 +#endif |
| 519 + | 519 + |
| 520 /* to make some of these old enums public without namespace pollution, | 520 /* to make some of these old enums public without namespace pollution, |
| 521 ** it was necessary to prepend ssl_ to the names. | 521 ** it was necessary to prepend ssl_ to the names. |
| 522 ** These #defines preserve compatibility with the old code here in libssl. | 522 ** These #defines preserve compatibility with the old code here in libssl. |
| 523 */ | 523 */ |
| 524 typedef SSLKEAType SSL3KEAType; | 524 typedef SSLKEAType SSL3KEAType; |
| 525 typedef SSLMACAlgorithm SSL3MACAlgorithm; | 525 typedef SSLMACAlgorithm SSL3MACAlgorithm; |
| 526 typedef SSLSignType SSL3SignType; | 526 typedef SSLSignType SSL3SignType; |
| 527 | 527 |
| 528 @@ -782,16 +791,25 @@ const ssl3CipherSuiteDef *suite_def; | 528 @@ -450,16 +459,26 @@ typedef SECStatus (*SSLCipher)(void * |
| 529 » SSL3Hashes sFinished[2]; | 529 typedef SECStatus (*SSLCompressor)(void * context, |
| 530 » SSL3Opaque data[72]; | 530 unsigned char * out, |
| 531 } finishedMsgs; | 531 int * outlen, |
| 532 #ifdef NSS_ENABLE_ECC | 532 int maxout, |
| 533 PRUint32 negotiatedECCurves; /* bit mask */ | 533 const unsigned char *in, |
| 534 #endif /* NSS_ENABLE_ECC */ | 534 int inlen); |
| 535 } SSL3HandshakeState; | 535 typedef SECStatus (*SSLDestroy)(void *context, PRBool freeit); |
| 536 | 536 |
| 537 +#ifdef NSS_PLATFORM_CLIENT_AUTH | 537 +#ifdef NSS_PLATFORM_CLIENT_AUTH |
| 538 +#if defined(XP_WIN32) | 538 +#if defined(XP_WIN32) |
| 539 +typedef PCERT_KEY_CONTEXT PlatformKey; | 539 +typedef PCERT_KEY_CONTEXT PlatformKey; |
| 540 +#elif defined(XP_MACOSX) | 540 +#elif defined(XP_MACOSX) |
| 541 +typedef SecKeyRef PlatformKey; | 541 +typedef SecKeyRef PlatformKey; |
| 542 +#else | 542 +#else |
| 543 +typedef void *PlatformKey; | 543 +typedef void *PlatformKey; |
| 544 +#endif | 544 +#endif |
| 545 +#endif | 545 +#endif |
| 546 + |
| 546 | 547 |
| 547 | 548 |
| 548 /* | 549 /* |
| 549 ** This is the "ssl3" struct, as in "ss->ssl3". | 550 ** ssl3State and CipherSpec structs |
| 550 ** note: | 551 */ |
| 551 ** usually, crSpec == cwSpec and prSpec == pwSpec. | 552 |
| 552 ** Sometimes, crSpec == pwSpec and prSpec == cwSpec. | 553 /* The SSL bulk cipher definition */ |
| 553 ** But there are never more than 2 actual specs. | 554 typedef enum { |
| 554 @@ -805,16 +823,19 @@ struct ssl3StateStr { | 555 @@ -805,16 +824,19 @@ struct ssl3StateStr { |
| 555 */ | 556 */ |
| 556 ssl3CipherSpec * crSpec; /* current read spec. */ | 557 ssl3CipherSpec * crSpec; /* current read spec. */ |
| 557 ssl3CipherSpec * prSpec; /* pending read spec. */ | 558 ssl3CipherSpec * prSpec; /* pending read spec. */ |
| 558 ssl3CipherSpec * cwSpec; /* current write spec. */ | 559 ssl3CipherSpec * cwSpec; /* current write spec. */ |
| 559 ssl3CipherSpec * pwSpec; /* pending write spec. */ | 560 ssl3CipherSpec * pwSpec; /* pending write spec. */ |
| 560 | 561 |
| 561 CERTCertificate * clientCertificate; /* used by client */ | 562 CERTCertificate * clientCertificate; /* used by client */ |
| 562 SECKEYPrivateKey * clientPrivateKey; /* used by client */ | 563 SECKEYPrivateKey * clientPrivateKey; /* used by client */ |
| 563 +#ifdef NSS_PLATFORM_CLIENT_AUTH | 564 +#ifdef NSS_PLATFORM_CLIENT_AUTH |
| 564 + PlatformKey platformClientKey; /* used by client */ | 565 + PlatformKey platformClientKey; /* used by client */ |
| 565 +#endif /* NSS_PLATFORM_CLIENT_AUTH */ | 566 +#endif /* NSS_PLATFORM_CLIENT_AUTH */ |
| 566 CERTCertificateList *clientCertChain; /* used by client */ | 567 CERTCertificateList *clientCertChain; /* used by client */ |
| 567 PRBool sendEmptyCert; /* used by client */ | 568 PRBool sendEmptyCert; /* used by client */ |
| 568 | 569 |
| 569 int policy; | 570 int policy; |
| 570 /* This says what cipher suites we can do, and should | 571 /* This says what cipher suites we can do, and should |
| 571 * be either SSL_ALLOWED or SSL_RESTRICTED | 572 * be either SSL_ALLOWED or SSL_RESTRICTED |
| 572 */ | 573 */ |
| 573 PRArenaPool * peerCertArena; | 574 PRArenaPool * peerCertArena; |
| 574 @@ -1045,16 +1066,20 @@ const unsigned char * preferredCipher; | 575 @@ -1045,16 +1067,20 @@ const unsigned char * preferredCipher; |
| 575 | 576 |
| 576 ssl3KeyPair * stepDownKeyPair; /* RSA step down keys */ | 577 ssl3KeyPair * stepDownKeyPair; /* RSA step down keys */ |
| 577 | 578 |
| 578 /* Callbacks */ | 579 /* Callbacks */ |
| 579 SSLAuthCertificate authCertificate; | 580 SSLAuthCertificate authCertificate; |
| 580 void *authCertificateArg; | 581 void *authCertificateArg; |
| 581 SSLGetClientAuthData getClientAuthData; | 582 SSLGetClientAuthData getClientAuthData; |
| 582 void *getClientAuthDataArg; | 583 void *getClientAuthDataArg; |
| 583 +#ifdef NSS_PLATFORM_CLIENT_AUTH | 584 +#ifdef NSS_PLATFORM_CLIENT_AUTH |
| 584 + SSLGetPlatformClientAuthData getPlatformClientAuthData; | 585 + SSLGetPlatformClientAuthData getPlatformClientAuthData; |
| 585 + void *getPlatformClientAuthDataArg; | 586 + void *getPlatformClientAuthDataArg; |
| 586 +#endif /* NSS_PLATFORM_CLIENT_AUTH */ | 587 +#endif /* NSS_PLATFORM_CLIENT_AUTH */ |
| 587 SSLSNISocketConfig sniSocketConfig; | 588 SSLSNISocketConfig sniSocketConfig; |
| 588 void *sniSocketConfigArg; | 589 void *sniSocketConfigArg; |
| 589 SSLBadCertHandler handleBadCert; | 590 SSLBadCertHandler handleBadCert; |
| 590 void *badCertArg; | 591 void *badCertArg; |
| 591 SSLHandshakeCallback handshakeCallback; | 592 SSLHandshakeCallback handshakeCallback; |
| 592 void *handshakeCallbackData; | 593 void *handshakeCallbackData; |
| 593 void *pkcs11PinArg; | 594 void *pkcs11PinArg; |
| 594 | 595 |
| 595 @@ -1587,16 +1612,36 @@ extern SECStatus SSL3_ShutdownServerCach | 596 @@ -1587,16 +1613,36 @@ extern SECStatus SSL3_ShutdownServerCach |
| 596 extern SECStatus ssl_InitSymWrapKeysLock(void); | 597 extern SECStatus ssl_InitSymWrapKeysLock(void); |
| 597 | 598 |
| 598 extern SECStatus ssl_FreeSymWrapKeysLock(void); | 599 extern SECStatus ssl_FreeSymWrapKeysLock(void); |
| 599 | 600 |
| 600 extern SECStatus ssl_InitSessionCacheLocks(PRBool lazyInit); | 601 extern SECStatus ssl_InitSessionCacheLocks(PRBool lazyInit); |
| 601 | 602 |
| 602 extern SECStatus ssl_FreeSessionCacheLocks(void); | 603 extern SECStatus ssl_FreeSessionCacheLocks(void); |
| 603 | 604 |
| 604 +/***************** platform client auth ****************/ | 605 +/***************** platform client auth ****************/ |
| 605 + | 606 + |
| (...skipping 22 matching lines...) Expand all Loading... |
| 628 | 629 |
| 629 extern PRUint32 ssl_Time(void); | 630 extern PRUint32 ssl_Time(void); |
| 630 | 631 |
| 631 extern void SSL_AtomicIncrementLong(long * x); | 632 extern void SSL_AtomicIncrementLong(long * x); |
| 632 Index: mozilla/security/nss/lib/ssl/sslsock.c | 633 Index: mozilla/security/nss/lib/ssl/sslsock.c |
| 633 =================================================================== | 634 =================================================================== |
| 634 RCS file: /cvsroot/mozilla/security/nss/lib/ssl/sslsock.c,v | 635 RCS file: /cvsroot/mozilla/security/nss/lib/ssl/sslsock.c,v |
| 635 retrieving revision 1.67 | 636 retrieving revision 1.67 |
| 636 diff -p -u -8 -r1.67 sslsock.c | 637 diff -p -u -8 -r1.67 sslsock.c |
| 637 --- mozilla/security/nss/lib/ssl/sslsock.c 25 Apr 2010 23:37:38 -0000
1.67 | 638 --- mozilla/security/nss/lib/ssl/sslsock.c 25 Apr 2010 23:37:38 -0000
1.67 |
| 638 +++ mozilla/security/nss/lib/ssl/sslsock.c» 16 Feb 2011 02:40:21 -0000 | 639 +++ mozilla/security/nss/lib/ssl/sslsock.c» 16 Feb 2011 23:30:37 -0000 |
| 639 @@ -329,16 +329,20 @@ ssl_DupSocket(sslSocket *os) | 640 @@ -329,16 +329,20 @@ ssl_DupSocket(sslSocket *os) |
| 640 /* | 641 /* |
| 641 * XXX the preceding CERT_ and SECKEY_ functions can fail and return NULL. | 642 * XXX the preceding CERT_ and SECKEY_ functions can fail and return NULL. |
| 642 * XXX We should detect this, and not just march on with NULL pointers. | 643 * XXX We should detect this, and not just march on with NULL pointers. |
| 643 */ | 644 */ |
| 644 ss->authCertificate = os->authCertificate; | 645 ss->authCertificate = os->authCertificate; |
| 645 ss->authCertificateArg = os->authCertificateArg; | 646 ss->authCertificateArg = os->authCertificateArg; |
| 646 ss->getClientAuthData = os->getClientAuthData; | 647 ss->getClientAuthData = os->getClientAuthData; |
| 647 ss->getClientAuthDataArg = os->getClientAuthDataArg; | 648 ss->getClientAuthDataArg = os->getClientAuthDataArg; |
| 648 +#ifdef NSS_PLATFORM_CLIENT_AUTH | 649 +#ifdef NSS_PLATFORM_CLIENT_AUTH |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 + ss->getPlatformClientAuthDataArg = NULL; | 695 + ss->getPlatformClientAuthDataArg = NULL; |
| 695 +#endif /* NSS_PLATFORM_CLIENT_AUTH */ | 696 +#endif /* NSS_PLATFORM_CLIENT_AUTH */ |
| 696 ss->handleBadCert = NULL; | 697 ss->handleBadCert = NULL; |
| 697 ss->badCertArg = NULL; | 698 ss->badCertArg = NULL; |
| 698 ss->pkcs11PinArg = NULL; | 699 ss->pkcs11PinArg = NULL; |
| 699 | 700 |
| 700 ssl_ChooseOps(ss); | 701 ssl_ChooseOps(ss); |
| 701 ssl2_InitSocketPolicy(ss); | 702 ssl2_InitSocketPolicy(ss); |
| 702 ssl3_InitSocketPolicy(ss); | 703 ssl3_InitSocketPolicy(ss); |
| 703 | 704 |
| OLD | NEW |