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

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

Issue 7058049: Added client-side support for the TLS cached info extension. This feature is disabled by default ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Added Null pointer check Created 9 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 contains prototypes for the public SSL functions. 2 * This file contains prototypes for the public SSL functions.
3 * 3 *
4 * ***** BEGIN LICENSE BLOCK ***** 4 * ***** BEGIN LICENSE BLOCK *****
5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
6 * 6 *
7 * The contents of this file are subject to the Mozilla Public License Version 7 * The contents of this file are subject to the Mozilla Public License Version
8 * 1.1 (the "License"); you may not use this file except in compliance with 8 * 1.1 (the "License"); you may not use this file except in compliance with
9 * the License. You may obtain a copy of the License at 9 * the License. You may obtain a copy of the License at
10 * http://www.mozilla.org/MPL/ 10 * http://www.mozilla.org/MPL/
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 #define SSL_ENABLE_SNAP_START 23 /* Enable SSL snap start (off by */ 142 #define SSL_ENABLE_SNAP_START 23 /* Enable SSL snap start (off by */
143 /* default, applies only to */ 143 /* default, applies only to */
144 /* clients). Snap start is a way */ 144 /* clients). Snap start is a way */
145 /* of performing TLS handshakes with no round trips. The client's entire */ 145 /* of performing TLS handshakes with no round trips. The client's entire */
146 /* handshake is included in the first handshake message, along with */ 146 /* handshake is included in the first handshake message, along with */
147 /* optional application data. In order to do this, information from a */ 147 /* optional application data. In order to do this, information from a */
148 /* previous connection to the same server is required. See */ 148 /* previous connection to the same server is required. See */
149 /* SSL_GetPredictedServerHelloData, SSL_SetPredictedPeerCertificates and */ 149 /* SSL_GetPredictedServerHelloData, SSL_SetPredictedPeerCertificates and */
150 /* SSL_SetSnapStartApplicationData. */ 150 /* SSL_SetSnapStartApplicationData. */
151 #define SSL_ENABLE_OCSP_STAPLING 24 /* Request OCSP stapling (client) */ 151 #define SSL_ENABLE_OCSP_STAPLING 24 /* Request OCSP stapling (client) */
152 #define SSL_ENABLE_CACHED_INFO 25 /* Enable SSL cached information */
153 /* extension, off by default. */
152 154
153 #ifdef SSL_DEPRECATED_FUNCTION 155 #ifdef SSL_DEPRECATED_FUNCTION
154 /* Old deprecated function names */ 156 /* Old deprecated function names */
155 SSL_IMPORT SECStatus SSL_Enable(PRFileDesc *fd, int option, PRBool on); 157 SSL_IMPORT SECStatus SSL_Enable(PRFileDesc *fd, int option, PRBool on);
156 SSL_IMPORT SECStatus SSL_EnableDefault(int option, PRBool on); 158 SSL_IMPORT SECStatus SSL_EnableDefault(int option, PRBool on);
157 #endif 159 #endif
158 160
159 /* New function names */ 161 /* New function names */
160 SSL_IMPORT SECStatus SSL_OptionSet(PRFileDesc *fd, PRInt32 option, PRBool on); 162 SSL_IMPORT SECStatus SSL_OptionSet(PRFileDesc *fd, PRInt32 option, PRBool on);
161 SSL_IMPORT SECStatus SSL_OptionGet(PRFileDesc *fd, PRInt32 option, PRBool *on); 163 SSL_IMPORT SECStatus SSL_OptionGet(PRFileDesc *fd, PRInt32 option, PRBool *on);
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 ** Did the handshake with the peer negotiate the given extension? 754 ** Did the handshake with the peer negotiate the given extension?
753 ** Output parameter valid only if function returns SECSuccess 755 ** Output parameter valid only if function returns SECSuccess
754 */ 756 */
755 SSL_IMPORT SECStatus SSL_HandshakeNegotiatedExtension(PRFileDesc * socket, 757 SSL_IMPORT SECStatus SSL_HandshakeNegotiatedExtension(PRFileDesc * socket,
756 SSLExtensionType extId, 758 SSLExtensionType extId,
757 PRBool *yes); 759 PRBool *yes);
758 760
759 SEC_END_PROTOS 761 SEC_END_PROTOS
760 762
761 #endif /* __ssl_h_ */ 763 #endif /* __ssl_h_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698