OLD | NEW |
---|---|
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 Loading... | |
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 unsigned int | 240 extern PRInt32 |
241 ssl3_CalculatePaddingExtensionLength(unsigned int clientHelloLength); | 241 ssl3_CalculatePaddingExtensionLength(unsigned int clientHelloLength); |
242 | 242 |
243 extern unsigned int | 243 extern unsigned int |
244 ssl3_AppendPaddingExtension(sslSocket *ss, unsigned int extensionLen, | 244 ssl3_AppendPaddingExtension(sslSocket *ss, unsigned int extensionLen, |
245 PRUint32 maxBytes); | 245 PRUint32 maxBytes); |
wtc
2013/11/11 21:50:33
I may have made a mistake in my previous comment.
| |
246 | 246 |
247 /* Socket ops */ | 247 /* Socket ops */ |
248 struct sslSocketOpsStr { | 248 struct sslSocketOpsStr { |
249 int (*connect) (sslSocket *, const PRNetAddr *); | 249 int (*connect) (sslSocket *, const PRNetAddr *); |
250 PRFileDesc *(*accept) (sslSocket *, PRNetAddr *); | 250 PRFileDesc *(*accept) (sslSocket *, PRNetAddr *); |
251 int (*bind) (sslSocket *, const PRNetAddr *); | 251 int (*bind) (sslSocket *, const PRNetAddr *); |
252 int (*listen) (sslSocket *, int); | 252 int (*listen) (sslSocket *, int); |
253 int (*shutdown)(sslSocket *, int); | 253 int (*shutdown)(sslSocket *, int); |
254 int (*close) (sslSocket *); | 254 int (*close) (sslSocket *); |
255 | 255 |
(...skipping 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1949 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) | 1949 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) |
1950 #define SSL_GETPID getpid | 1950 #define SSL_GETPID getpid |
1951 #elif defined(WIN32) | 1951 #elif defined(WIN32) |
1952 extern int __cdecl _getpid(void); | 1952 extern int __cdecl _getpid(void); |
1953 #define SSL_GETPID _getpid | 1953 #define SSL_GETPID _getpid |
1954 #else | 1954 #else |
1955 #define SSL_GETPID() 0 | 1955 #define SSL_GETPID() 0 |
1956 #endif | 1956 #endif |
1957 | 1957 |
1958 #endif /* __sslimpl_h_ */ | 1958 #endif /* __sslimpl_h_ */ |
OLD | NEW |