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

Side by Side Diff: net/socket/nss_ssl_util.h

Issue 6804032: Add TLS-SRP (RFC 5054) support Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove "httpsv" scheme, minor NSS/OpenSSL changes Created 9 years, 8 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
« no previous file with comments | « net/net.gyp ('k') | net/socket/nss_ssl_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is only inclued in ssl_client_socket_nss.cc and 5 // This file is only inclued in ssl_client_socket_nss.cc and
6 // ssl_server_socket_nss.cc to share common functions of NSS. 6 // ssl_server_socket_nss.cc to share common functions of NSS.
7 7
8 #ifndef NET_SOCKET_NSS_SSL_UTIL_H_ 8 #ifndef NET_SOCKET_NSS_SSL_UTIL_H_
9 #define NET_SOCKET_NSS_SSL_UTIL_H_ 9 #define NET_SOCKET_NSS_SSL_UTIL_H_
10 10
11 #include <prerror.h> 11 #include <prerror.h>
12 #include <sslt.h>
12 13
13 namespace net { 14 namespace net {
14 15
15 class BoundNetLog; 16 class BoundNetLog;
16 17
17 // Initalize NSS SSL library. 18 // Initalize NSS SSL library.
18 void EnsureNSSSSLInit(); 19 void EnsureNSSSSLInit();
19 20
20 // Log a failed NSS funcion call. 21 // Log a failed NSS funcion call.
21 void LogFailedNSSFunction(const BoundNetLog& net_log, 22 void LogFailedNSSFunction(const BoundNetLog& net_log,
22 const char* function, 23 const char* function,
23 const char* param); 24 const char* param);
24 25
25 // Map network error code to NSS error code. 26 // Map network error code to NSS error code.
26 PRErrorCode MapErrorToNSS(int result); 27 PRErrorCode MapErrorToNSS(int result);
27 28
28 // Map NSS error code to network error code. 29 // Map NSS error code to network error code.
29 int MapNSSError(PRErrorCode err); 30 int MapNSSError(PRErrorCode err);
30 31
31 // Map NSS error code from the first SSL handshake to network error code. 32 // Map NSS error code from the first SSL handshake to network error code.
32 int MapNSSHandshakeError(PRErrorCode err); 33 int MapNSSHandshakeError(PRErrorCode err);
33 34
35 // Returns whether an NSS cipher's key exchange algorithm (KEA) uses SRP.
36 bool IsNSSCipherKEATypeSRP(SSLKEAType kea_type);
37
34 } // namespace net 38 } // namespace net
35 39
36 #endif // NET_SOCKET_NSS_SSL_UTIL_H_ 40 #endif // NET_SOCKET_NSS_SSL_UTIL_H_
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | net/socket/nss_ssl_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698