Chromium Code Reviews| 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 * ***** 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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 942 /* used by server. trusted CAs for this socket. */ | 942 /* used by server. trusted CAs for this socket. */ |
| 943 PRBool initialized; | 943 PRBool initialized; |
| 944 SSL3HandshakeState hs; | 944 SSL3HandshakeState hs; |
| 945 ssl3CipherSpec specs[2]; /* one is current, one is pending. */ | 945 ssl3CipherSpec specs[2]; /* one is current, one is pending. */ |
| 946 | 946 |
| 947 /* In a client: if the server supports Next Protocol Negotiation, then | 947 /* In a client: if the server supports Next Protocol Negotiation, then |
| 948 * this is the protocol that was negotiated. | 948 * this is the protocol that was negotiated. |
| 949 */ | 949 */ |
| 950 SECItem nextProto; | 950 SECItem nextProto; |
| 951 SSLNextProtoState nextProtoState; | 951 SSLNextProtoState nextProtoState; |
| 952 SSLClientChannelIDCallback channelIDCallback; | |
| 953 void * channelIDCallbackArg; | |
| 952 | 954 |
| 953 PRUint16 mtu; /* Our estimate of the MTU */ | 955 PRUint16 mtu; /* Our estimate of the MTU */ |
| 954 }; | 956 }; |
| 955 | 957 |
| 956 #define DTLS_MAX_MTU 1500 /* Ethernet MTU but without subtracting the | 958 #define DTLS_MAX_MTU 1500 /* Ethernet MTU but without subtracting the |
| 957 * headers, so slightly larger than expected */ | 959 * headers, so slightly larger than expected */ |
| 958 #define IS_DTLS(ss) (ss->protocolVariant == ssl_variant_datagram) | 960 #define IS_DTLS(ss) (ss->protocolVariant == ssl_variant_datagram) |
| 959 | 961 |
| 960 typedef struct { | 962 typedef struct { |
| 961 SSL3ContentType type; | 963 SSL3ContentType type; |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1190 void *getPlatformClientAuthDataArg; | 1192 void *getPlatformClientAuthDataArg; |
| 1191 #endif /* NSS_PLATFORM_CLIENT_AUTH */ | 1193 #endif /* NSS_PLATFORM_CLIENT_AUTH */ |
| 1192 SSLSNISocketConfig sniSocketConfig; | 1194 SSLSNISocketConfig sniSocketConfig; |
| 1193 void *sniSocketConfigArg; | 1195 void *sniSocketConfigArg; |
| 1194 SSLBadCertHandler handleBadCert; | 1196 SSLBadCertHandler handleBadCert; |
| 1195 void *badCertArg; | 1197 void *badCertArg; |
| 1196 SSLHandshakeCallback handshakeCallback; | 1198 SSLHandshakeCallback handshakeCallback; |
| 1197 void *handshakeCallbackData; | 1199 void *handshakeCallbackData; |
| 1198 void *pkcs11PinArg; | 1200 void *pkcs11PinArg; |
| 1199 SSLNextProtoCallback nextProtoCallback; | 1201 SSLNextProtoCallback nextProtoCallback; |
| 1200 void *nextProtoArg; | 1202 void *nextProtoArg; |
|
wtc
2012/05/31 00:36:32
channelIDCallback and its argument should be added
agl
2012/05/31 17:19:53
Done.
| |
| 1201 | 1203 |
| 1202 PRIntervalTime rTimeout; /* timeout for NSPR I/O */ | 1204 PRIntervalTime rTimeout; /* timeout for NSPR I/O */ |
| 1203 PRIntervalTime wTimeout; /* timeout for NSPR I/O */ | 1205 PRIntervalTime wTimeout; /* timeout for NSPR I/O */ |
| 1204 PRIntervalTime cTimeout; /* timeout for NSPR I/O */ | 1206 PRIntervalTime cTimeout; /* timeout for NSPR I/O */ |
| 1205 | 1207 |
| 1206 PZLock * recvLock; /* lock against multiple reader threads. */ | 1208 PZLock * recvLock; /* lock against multiple reader threads. */ |
| 1207 PZLock * sendLock; /* lock against multiple sender threads. */ | 1209 PZLock * sendLock; /* lock against multiple sender threads. */ |
| 1208 | 1210 |
| 1209 PZMonitor * recvBufLock; /* locks low level recv buffers. */ | 1211 PZMonitor * recvBufLock; /* locks low level recv buffers. */ |
| 1210 PZMonitor * xmitBufLock; /* locks low level xmit buffers. */ | 1212 PZMonitor * xmitBufLock; /* locks low level xmit buffers. */ |
| (...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1896 #elif defined(_WIN32_WCE) | 1898 #elif defined(_WIN32_WCE) |
| 1897 #define SSL_GETPID GetCurrentProcessId | 1899 #define SSL_GETPID GetCurrentProcessId |
| 1898 #elif defined(WIN32) | 1900 #elif defined(WIN32) |
| 1899 extern int __cdecl _getpid(void); | 1901 extern int __cdecl _getpid(void); |
| 1900 #define SSL_GETPID _getpid | 1902 #define SSL_GETPID _getpid |
| 1901 #else | 1903 #else |
| 1902 #define SSL_GETPID() 0 | 1904 #define SSL_GETPID() 0 |
| 1903 #endif | 1905 #endif |
| 1904 | 1906 |
| 1905 #endif /* __sslimpl_h_ */ | 1907 #endif /* __sslimpl_h_ */ |
| OLD | NEW |