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

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

Issue 10777021: Cap the record layer version number of TLS ClientHello to TLS 1.0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Make the changes rsleevi suggested. Add the patch file. Created 8 years, 5 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
« no previous file with comments | « net/third_party/nss/ssl/ssl3con.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 287
288 int (*getpeername)(sslSocket *, PRNetAddr *); 288 int (*getpeername)(sslSocket *, PRNetAddr *);
289 int (*getsockname)(sslSocket *, PRNetAddr *); 289 int (*getsockname)(sslSocket *, PRNetAddr *);
290 }; 290 };
291 291
292 /* Flags interpreted by ssl send functions. */ 292 /* Flags interpreted by ssl send functions. */
293 #define ssl_SEND_FLAG_FORCE_INTO_BUFFER 0x40000000 293 #define ssl_SEND_FLAG_FORCE_INTO_BUFFER 0x40000000
294 #define ssl_SEND_FLAG_NO_BUFFER 0x20000000 294 #define ssl_SEND_FLAG_NO_BUFFER 0x20000000
295 #define ssl_SEND_FLAG_USE_EPOCH 0x10000000 /* DTLS only */ 295 #define ssl_SEND_FLAG_USE_EPOCH 0x10000000 /* DTLS only */
296 #define ssl_SEND_FLAG_NO_RETRANSMIT 0x08000000 /* DTLS only */ 296 #define ssl_SEND_FLAG_NO_RETRANSMIT 0x08000000 /* DTLS only */
297 #define ssl_SEND_FLAG_CAP_RECORD_VERSION \
298 0x04000000 /* TLS only */
297 #define ssl_SEND_FLAG_MASK 0x7f000000 299 #define ssl_SEND_FLAG_MASK 0x7f000000
298 300
299 /* 301 /*
300 ** A buffer object. 302 ** A buffer object.
301 */ 303 */
302 struct sslBufferStr { 304 struct sslBufferStr {
303 unsigned char * buf; 305 unsigned char * buf;
304 unsigned int len; 306 unsigned int len;
305 unsigned int space; 307 unsigned int space;
306 }; 308 };
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1407 1409
1408 extern void ssl3_SetAlwaysBlock(sslSocket *ss); 1410 extern void ssl3_SetAlwaysBlock(sslSocket *ss);
1409 1411
1410 extern SECStatus ssl_EnableNagleDelay(sslSocket *ss, PRBool enabled); 1412 extern SECStatus ssl_EnableNagleDelay(sslSocket *ss, PRBool enabled);
1411 1413
1412 extern PRBool ssl3_CanFalseStart(sslSocket *ss); 1414 extern PRBool ssl3_CanFalseStart(sslSocket *ss);
1413 extern SECStatus 1415 extern SECStatus
1414 ssl3_CompressMACEncryptRecord(ssl3CipherSpec * cwSpec, 1416 ssl3_CompressMACEncryptRecord(ssl3CipherSpec * cwSpec,
1415 PRBool isServer, 1417 PRBool isServer,
1416 PRBool isDTLS, 1418 PRBool isDTLS,
1419 PRBool capRecordVersion,
1417 SSL3ContentType type, 1420 SSL3ContentType type,
1418 const SSL3Opaque * pIn, 1421 const SSL3Opaque * pIn,
1419 PRUint32 contentLen, 1422 PRUint32 contentLen,
1420 sslBuffer * wrBuf); 1423 sslBuffer * wrBuf);
1421 extern PRInt32 ssl3_SendRecord(sslSocket *ss, DTLSEpoch epoch, 1424 extern PRInt32 ssl3_SendRecord(sslSocket *ss, DTLSEpoch epoch,
1422 SSL3ContentType type, 1425 SSL3ContentType type,
1423 const SSL3Opaque* pIn, PRInt32 nIn, 1426 const SSL3Opaque* pIn, PRInt32 nIn,
1424 PRInt32 flags); 1427 PRInt32 flags);
1425 1428
1426 #ifdef NSS_ENABLE_ZLIB 1429 #ifdef NSS_ENABLE_ZLIB
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
1918 #elif defined(_WIN32_WCE) 1921 #elif defined(_WIN32_WCE)
1919 #define SSL_GETPID GetCurrentProcessId 1922 #define SSL_GETPID GetCurrentProcessId
1920 #elif defined(WIN32) 1923 #elif defined(WIN32)
1921 extern int __cdecl _getpid(void); 1924 extern int __cdecl _getpid(void);
1922 #define SSL_GETPID _getpid 1925 #define SSL_GETPID _getpid
1923 #else 1926 #else
1924 #define SSL_GETPID() 0 1927 #define SSL_GETPID() 0
1925 #endif 1928 #endif
1926 1929
1927 #endif /* __sslimpl_h_ */ 1930 #endif /* __sslimpl_h_ */
OLDNEW
« no previous file with comments | « net/third_party/nss/ssl/ssl3con.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698