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

Side by Side Diff: net/third_party/nss/ssl/sslimpl.h

Issue 10539144: Always initialize session cache locks lazily. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
OLDNEW
1 /* 1 /*
2 * This file is PRIVATE to SSL and should be the first thing included by 2 * This file is PRIVATE to SSL and should be the first thing included by
3 * any SSL implementation file. 3 * any SSL implementation file.
4 * 4 *
5 * ***** BEGIN LICENSE BLOCK ***** 5 * ***** BEGIN LICENSE BLOCK *****
6 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 6 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
7 * 7 *
8 * The contents of this file are subject to the Mozilla Public License Version 8 * The contents of this file are subject to the Mozilla Public License Version
9 * 1.1 (the "License"); you may not use this file except in compliance with 9 * 1.1 (the "License"); you may not use this file except in compliance with
10 * the License. You may obtain a copy of the License at 10 * the License. You may obtain a copy of the License at
(...skipping 1356 matching lines...) Expand 10 before | Expand all | Expand 10 after
1367 extern SECStatus ssl2_HandleClientHelloMessage(sslSocket *ss); 1367 extern SECStatus ssl2_HandleClientHelloMessage(sslSocket *ss);
1368 extern SECStatus ssl2_HandleServerHelloMessage(sslSocket *ss); 1368 extern SECStatus ssl2_HandleServerHelloMessage(sslSocket *ss);
1369 extern int ssl2_StartGatherBytes(sslSocket *ss, sslGather *gs, 1369 extern int ssl2_StartGatherBytes(sslSocket *ss, sslGather *gs,
1370 unsigned int count); 1370 unsigned int count);
1371 1371
1372 extern SECStatus ssl_CreateSecurityInfo(sslSocket *ss); 1372 extern SECStatus ssl_CreateSecurityInfo(sslSocket *ss);
1373 extern SECStatus ssl_CopySecurityInfo(sslSocket *ss, sslSocket *os); 1373 extern SECStatus ssl_CopySecurityInfo(sslSocket *ss, sslSocket *os);
1374 extern void ssl_ResetSecurityInfo(sslSecurityInfo *sec, PRBool doMemset); 1374 extern void ssl_ResetSecurityInfo(sslSecurityInfo *sec, PRBool doMemset);
1375 extern void ssl_DestroySecurityInfo(sslSecurityInfo *sec); 1375 extern void ssl_DestroySecurityInfo(sslSecurityInfo *sec);
1376 1376
1377 extern sslSocket * ssl_DupSocket(sslSocket *old);
1378
1379 extern void ssl_PrintBuf(sslSocket *ss, const char *msg, const void *cp, int len); 1377 extern void ssl_PrintBuf(sslSocket *ss, const char *msg, const void *cp, int len);
1380 extern void ssl_DumpMsg(sslSocket *ss, unsigned char *bp, unsigned len); 1378 extern void ssl_DumpMsg(sslSocket *ss, unsigned char *bp, unsigned len);
1381 1379
1382 extern int ssl_SendSavedWriteData(sslSocket *ss); 1380 extern int ssl_SendSavedWriteData(sslSocket *ss);
1383 extern SECStatus ssl_SaveWriteData(sslSocket *ss, 1381 extern SECStatus ssl_SaveWriteData(sslSocket *ss,
1384 const void* p, unsigned int l); 1382 const void* p, unsigned int l);
1385 extern SECStatus ssl2_BeginClientHandshake(sslSocket *ss); 1383 extern SECStatus ssl2_BeginClientHandshake(sslSocket *ss);
1386 extern SECStatus ssl2_BeginServerHandshake(sslSocket *ss); 1384 extern SECStatus ssl2_BeginServerHandshake(sslSocket *ss);
1387 extern int ssl_Do1stHandshake(sslSocket *ss); 1385 extern int ssl_Do1stHandshake(sslSocket *ss);
1388 1386
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
1812 extern PRBool 1810 extern PRBool
1813 ssl_SetWrappingKey(SSLWrappedSymWrappingKey *wswk); 1811 ssl_SetWrappingKey(SSLWrappedSymWrappingKey *wswk);
1814 1812
1815 /* get rid of the symmetric wrapping key references. */ 1813 /* get rid of the symmetric wrapping key references. */
1816 extern SECStatus SSL3_ShutdownServerCache(void); 1814 extern SECStatus SSL3_ShutdownServerCache(void);
1817 1815
1818 extern SECStatus ssl_InitSymWrapKeysLock(void); 1816 extern SECStatus ssl_InitSymWrapKeysLock(void);
1819 1817
1820 extern SECStatus ssl_FreeSymWrapKeysLock(void); 1818 extern SECStatus ssl_FreeSymWrapKeysLock(void);
1821 1819
1822 extern SECStatus ssl_InitSessionCacheLocks(PRBool lazyInit); 1820 extern SECStatus ssl_InitSessionCacheLocks(void);
1823
1824 extern SECStatus ssl_FreeSessionCacheLocks(void);
1825 1821
1826 /***************** platform client auth ****************/ 1822 /***************** platform client auth ****************/
1827 1823
1828 #ifdef NSS_PLATFORM_CLIENT_AUTH 1824 #ifdef NSS_PLATFORM_CLIENT_AUTH
1829 // Releases the platform key. 1825 // Releases the platform key.
1830 extern void ssl_FreePlatformKey(PlatformKey key); 1826 extern void ssl_FreePlatformKey(PlatformKey key);
1831 1827
1832 // Implement the client CertificateVerify message for SSL3/TLS1.0 1828 // Implement the client CertificateVerify message for SSL3/TLS1.0
1833 extern SECStatus ssl3_PlatformSignHashes(SSL3Hashes *hash, 1829 extern SECStatus ssl3_PlatformSignHashes(SSL3Hashes *hash,
1834 PlatformKey key, SECItem *buf, 1830 PlatformKey key, SECItem *buf,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
1913 #elif defined(_WIN32_WCE) 1909 #elif defined(_WIN32_WCE)
1914 #define SSL_GETPID GetCurrentProcessId 1910 #define SSL_GETPID GetCurrentProcessId
1915 #elif defined(WIN32) 1911 #elif defined(WIN32)
1916 extern int __cdecl _getpid(void); 1912 extern int __cdecl _getpid(void);
1917 #define SSL_GETPID _getpid 1913 #define SSL_GETPID _getpid
1918 #else 1914 #else
1919 #define SSL_GETPID() 0 1915 #define SSL_GETPID() 0
1920 #endif 1916 #endif
1921 1917
1922 #endif /* __sslimpl_h_ */ 1918 #endif /* __sslimpl_h_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698