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

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

Issue 75663004: net: boost AES-GCM ciphers if the machine has AES-NI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 7 years 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 * This Source Code Form is subject to the terms of the Mozilla Public 4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 7
8 #ifndef __ssl_h_ 8 #ifndef __ssl_h_
9 #define __ssl_h_ 9 #define __ssl_h_
10 10
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 #endif 256 #endif
257 257
258 /* New function names */ 258 /* New function names */
259 SSL_IMPORT SECStatus SSL_CipherPrefSet(PRFileDesc *fd, PRInt32 cipher, PRBool en abled); 259 SSL_IMPORT SECStatus SSL_CipherPrefSet(PRFileDesc *fd, PRInt32 cipher, PRBool en abled);
260 SSL_IMPORT SECStatus SSL_CipherPrefGet(PRFileDesc *fd, PRInt32 cipher, PRBool *e nabled); 260 SSL_IMPORT SECStatus SSL_CipherPrefGet(PRFileDesc *fd, PRInt32 cipher, PRBool *e nabled);
261 SSL_IMPORT SECStatus SSL_CipherPrefSetDefault(PRInt32 cipher, PRBool enabled); 261 SSL_IMPORT SECStatus SSL_CipherPrefSetDefault(PRInt32 cipher, PRBool enabled);
262 SSL_IMPORT SECStatus SSL_CipherPrefGetDefault(PRInt32 cipher, PRBool *enabled); 262 SSL_IMPORT SECStatus SSL_CipherPrefGetDefault(PRInt32 cipher, PRBool *enabled);
263 SSL_IMPORT SECStatus SSL_CipherPolicySet(PRInt32 cipher, PRInt32 policy); 263 SSL_IMPORT SECStatus SSL_CipherPolicySet(PRInt32 cipher, PRInt32 policy);
264 SSL_IMPORT SECStatus SSL_CipherPolicyGet(PRInt32 cipher, PRInt32 *policy); 264 SSL_IMPORT SECStatus SSL_CipherPolicyGet(PRInt32 cipher, PRInt32 *policy);
265 265
266 /* SSL_CipherOrderSet sets the cipher suite preference order from |ciphers|,
267 * which must be an array of cipher suite ids of length |len|. All the given
268 * cipher suite ids must appear in the array that is returned by
269 * |SSL_GetImplementedCiphers| and may only appear once, at most. */
270 SSL_IMPORT SECStatus SSL_CipherOrderSet(PRFileDesc *fd, const PRUint16 *ciphers,
271 unsigned int len);
272
266 /* SSLChannelBindingType enumerates the types of supported channel binding 273 /* SSLChannelBindingType enumerates the types of supported channel binding
267 * values. See RFC 5929. */ 274 * values. See RFC 5929. */
268 typedef enum SSLChannelBindingType { 275 typedef enum SSLChannelBindingType {
269 SSL_CHANNEL_BINDING_TLS_UNIQUE = 1, 276 SSL_CHANNEL_BINDING_TLS_UNIQUE = 1,
270 } SSLChannelBindingType; 277 } SSLChannelBindingType;
271 278
272 /* SSL_GetChannelBinding copies the requested channel binding value, as defined 279 /* SSL_GetChannelBinding copies the requested channel binding value, as defined
273 * in RFC 5929, into |out|. The full length of the binding value is written 280 * in RFC 5929, into |out|. The full length of the binding value is written
274 * into |*outLen|. 281 * into |*outLen|.
275 * 282 *
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 * should continue using the connection. If the application passes a non-zero 1139 * should continue using the connection. If the application passes a non-zero
1133 * value for second argument (error), or if SSL_AuthCertificateComplete returns 1140 * value for second argument (error), or if SSL_AuthCertificateComplete returns
1134 * anything other than SECSuccess, then the application should close the 1141 * anything other than SECSuccess, then the application should close the
1135 * connection. 1142 * connection.
1136 */ 1143 */
1137 SSL_IMPORT SECStatus SSL_AuthCertificateComplete(PRFileDesc *fd, 1144 SSL_IMPORT SECStatus SSL_AuthCertificateComplete(PRFileDesc *fd,
1138 PRErrorCode error); 1145 PRErrorCode error);
1139 SEC_END_PROTOS 1146 SEC_END_PROTOS
1140 1147
1141 #endif /* __ssl_h_ */ 1148 #endif /* __ssl_h_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698