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

Side by Side Diff: net/socket/ssl_server_socket_nss.cc

Issue 9005015: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Created 9 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
« no previous file with comments | « net/socket/ssl_client_socket_nss.cc ('k') | net/socket/transport_client_socket_pool.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "net/socket/ssl_server_socket_nss.h" 5 #include "net/socket/ssl_server_socket_nss.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <winsock2.h> 8 #include <winsock2.h>
9 #endif 9 #endif
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 return new SSLServerSocketNSS(socket, cert, key, ssl_config); 53 return new SSLServerSocketNSS(socket, cert, key, ssl_config);
54 } 54 }
55 55
56 SSLServerSocketNSS::SSLServerSocketNSS( 56 SSLServerSocketNSS::SSLServerSocketNSS(
57 StreamSocket* transport_socket, 57 StreamSocket* transport_socket,
58 scoped_refptr<X509Certificate> cert, 58 scoped_refptr<X509Certificate> cert,
59 crypto::RSAPrivateKey* key, 59 crypto::RSAPrivateKey* key,
60 const SSLConfig& ssl_config) 60 const SSLConfig& ssl_config)
61 : transport_send_busy_(false), 61 : transport_send_busy_(false),
62 transport_recv_busy_(false), 62 transport_recv_busy_(false),
63 user_handshake_callback_(NULL),
63 nss_fd_(NULL), 64 nss_fd_(NULL),
64 nss_bufs_(NULL), 65 nss_bufs_(NULL),
65 transport_socket_(transport_socket), 66 transport_socket_(transport_socket),
66 ssl_config_(ssl_config), 67 ssl_config_(ssl_config),
67 cert_(cert), 68 cert_(cert),
68 next_handshake_state_(STATE_NONE), 69 next_handshake_state_(STATE_NONE),
69 completed_handshake_(false) { 70 completed_handshake_(false) {
70 ssl_config_.false_start_enabled = false; 71 ssl_config_.false_start_enabled = false;
71 ssl_config_.ssl3_enabled = true; 72 ssl_config_.ssl3_enabled = true;
72 ssl_config_.tls1_enabled = true; 73 ssl_config_.tls1_enabled = true;
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 // Initialize the NSS SSL library in a threadsafe way. This also 763 // Initialize the NSS SSL library in a threadsafe way. This also
763 // initializes the NSS base library. 764 // initializes the NSS base library.
764 EnsureNSSSSLInit(); 765 EnsureNSSSSLInit();
765 if (!NSS_IsInitialized()) 766 if (!NSS_IsInitialized())
766 return ERR_UNEXPECTED; 767 return ERR_UNEXPECTED;
767 768
768 return OK; 769 return OK;
769 } 770 }
770 771
771 } // namespace net 772 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_nss.cc ('k') | net/socket/transport_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698