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

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

Issue 62103003: NSS: add `balloon' extension to when we might hit the F5 bug. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 * This Source Code Form is subject to the terms of the Mozilla Public 5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 8
9 #ifndef __sslimpl_h_ 9 #ifndef __sslimpl_h_
10 #define __sslimpl_h_ 10 #define __sslimpl_h_
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 } ssl3HelloExtensionHandler; 230 } ssl3HelloExtensionHandler;
231 231
232 extern SECStatus 232 extern SECStatus
233 ssl3_RegisterServerHelloExtensionSender(sslSocket *ss, PRUint16 ex_type, 233 ssl3_RegisterServerHelloExtensionSender(sslSocket *ss, PRUint16 ex_type,
234 ssl3HelloExtensionSenderFunc cb); 234 ssl3HelloExtensionSenderFunc cb);
235 235
236 extern PRInt32 236 extern PRInt32
237 ssl3_CallHelloExtensionSenders(sslSocket *ss, PRBool append, PRUint32 maxBytes, 237 ssl3_CallHelloExtensionSenders(sslSocket *ss, PRBool append, PRUint32 maxBytes,
238 const ssl3HelloExtensionSender *sender); 238 const ssl3HelloExtensionSender *sender);
239 239
240 extern PRInt32
241 ssl3_CalculateBalloonExtensionLength(int clientHelloLength);
wtc 2013/11/06 21:51:58 Should the argument be an unsigned int?
agl 2013/11/08 19:39:17 Done.
242
243 extern PRInt32
244 ssl3_AppendBalloonExtension(sslSocket *ss, int extensionLen, PRUint32 maxBytes);
245
240 /* Socket ops */ 246 /* Socket ops */
241 struct sslSocketOpsStr { 247 struct sslSocketOpsStr {
242 int (*connect) (sslSocket *, const PRNetAddr *); 248 int (*connect) (sslSocket *, const PRNetAddr *);
243 PRFileDesc *(*accept) (sslSocket *, PRNetAddr *); 249 PRFileDesc *(*accept) (sslSocket *, PRNetAddr *);
244 int (*bind) (sslSocket *, const PRNetAddr *); 250 int (*bind) (sslSocket *, const PRNetAddr *);
245 int (*listen) (sslSocket *, int); 251 int (*listen) (sslSocket *, int);
246 int (*shutdown)(sslSocket *, int); 252 int (*shutdown)(sslSocket *, int);
247 int (*close) (sslSocket *); 253 int (*close) (sslSocket *);
248 254
249 int (*recv) (sslSocket *, unsigned char *, int, int); 255 int (*recv) (sslSocket *, unsigned char *, int, int);
(...skipping 1692 matching lines...) Expand 10 before | Expand all | Expand 10 after
1942 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) 1948 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS)
1943 #define SSL_GETPID getpid 1949 #define SSL_GETPID getpid
1944 #elif defined(WIN32) 1950 #elif defined(WIN32)
1945 extern int __cdecl _getpid(void); 1951 extern int __cdecl _getpid(void);
1946 #define SSL_GETPID _getpid 1952 #define SSL_GETPID _getpid
1947 #else 1953 #else
1948 #define SSL_GETPID() 0 1954 #define SSL_GETPID() 0
1949 #endif 1955 #endif
1950 1956
1951 #endif /* __sslimpl_h_ */ 1957 #endif /* __sslimpl_h_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698