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

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

Issue 91913002: net: boost AES-GCM ciphers if the machine has AES-NI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add new symbol to .def 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 #endif 258 #endif
259 259
260 /* New function names */ 260 /* New function names */
261 SSL_IMPORT SECStatus SSL_CipherPrefSet(PRFileDesc *fd, PRInt32 cipher, PRBool en abled); 261 SSL_IMPORT SECStatus SSL_CipherPrefSet(PRFileDesc *fd, PRInt32 cipher, PRBool en abled);
262 SSL_IMPORT SECStatus SSL_CipherPrefGet(PRFileDesc *fd, PRInt32 cipher, PRBool *e nabled); 262 SSL_IMPORT SECStatus SSL_CipherPrefGet(PRFileDesc *fd, PRInt32 cipher, PRBool *e nabled);
263 SSL_IMPORT SECStatus SSL_CipherPrefSetDefault(PRInt32 cipher, PRBool enabled); 263 SSL_IMPORT SECStatus SSL_CipherPrefSetDefault(PRInt32 cipher, PRBool enabled);
264 SSL_IMPORT SECStatus SSL_CipherPrefGetDefault(PRInt32 cipher, PRBool *enabled); 264 SSL_IMPORT SECStatus SSL_CipherPrefGetDefault(PRInt32 cipher, PRBool *enabled);
265 SSL_IMPORT SECStatus SSL_CipherPolicySet(PRInt32 cipher, PRInt32 policy); 265 SSL_IMPORT SECStatus SSL_CipherPolicySet(PRInt32 cipher, PRInt32 policy);
266 SSL_IMPORT SECStatus SSL_CipherPolicyGet(PRInt32 cipher, PRInt32 *policy); 266 SSL_IMPORT SECStatus SSL_CipherPolicyGet(PRInt32 cipher, PRInt32 *policy);
267 267
268 /* SSL_CipherOrderSet sets the cipher suite preference order from |ciphers|,
269 * which must be an array of cipher suite ids of length |len|. All the given
270 * cipher suite ids must appear in the array that is returned by
271 * |SSL_GetImplementedCiphers| and may only appear once, at most. */
272 SSL_IMPORT SECStatus SSL_CipherOrderSet(PRFileDesc *fd, const PRUint16 *ciphers,
273 unsigned int len);
274
268 /* SSLChannelBindingType enumerates the types of supported channel binding 275 /* SSLChannelBindingType enumerates the types of supported channel binding
269 * values. See RFC 5929. */ 276 * values. See RFC 5929. */
270 typedef enum SSLChannelBindingType { 277 typedef enum SSLChannelBindingType {
271 SSL_CHANNEL_BINDING_TLS_UNIQUE = 1, 278 SSL_CHANNEL_BINDING_TLS_UNIQUE = 1,
272 } SSLChannelBindingType; 279 } SSLChannelBindingType;
273 280
274 /* SSL_GetChannelBinding copies the requested channel binding value, as defined 281 /* SSL_GetChannelBinding copies the requested channel binding value, as defined
275 * in RFC 5929, into |out|. The full length of the binding value is written 282 * in RFC 5929, into |out|. The full length of the binding value is written
276 * into |*outLen|. 283 * into |*outLen|.
277 * 284 *
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 * should continue using the connection. If the application passes a non-zero 1158 * should continue using the connection. If the application passes a non-zero
1152 * value for second argument (error), or if SSL_AuthCertificateComplete returns 1159 * value for second argument (error), or if SSL_AuthCertificateComplete returns
1153 * anything other than SECSuccess, then the application should close the 1160 * anything other than SECSuccess, then the application should close the
1154 * connection. 1161 * connection.
1155 */ 1162 */
1156 SSL_IMPORT SECStatus SSL_AuthCertificateComplete(PRFileDesc *fd, 1163 SSL_IMPORT SECStatus SSL_AuthCertificateComplete(PRFileDesc *fd,
1157 PRErrorCode error); 1164 PRErrorCode error);
1158 SEC_END_PROTOS 1165 SEC_END_PROTOS
1159 1166
1160 #endif /* __ssl_h_ */ 1167 #endif /* __ssl_h_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698