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

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

Issue 10833013: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Created 8 years, 5 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/disk_cache/sparse_control.cc ('k') | ppapi/shared_impl/ppb_input_event_shared.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 return new SSLServerSocketNSS(socket, cert, key, ssl_config); 85 return new SSLServerSocketNSS(socket, cert, key, ssl_config);
86 } 86 }
87 87
88 SSLServerSocketNSS::SSLServerSocketNSS( 88 SSLServerSocketNSS::SSLServerSocketNSS(
89 StreamSocket* transport_socket, 89 StreamSocket* transport_socket,
90 scoped_refptr<X509Certificate> cert, 90 scoped_refptr<X509Certificate> cert,
91 crypto::RSAPrivateKey* key, 91 crypto::RSAPrivateKey* key,
92 const SSLConfig& ssl_config) 92 const SSLConfig& ssl_config)
93 : transport_send_busy_(false), 93 : transport_send_busy_(false),
94 transport_recv_busy_(false), 94 transport_recv_busy_(false),
95 user_read_buf_len_(0),
96 user_write_buf_len_(0),
95 nss_fd_(NULL), 97 nss_fd_(NULL),
96 nss_bufs_(NULL), 98 nss_bufs_(NULL),
97 transport_socket_(transport_socket), 99 transport_socket_(transport_socket),
98 ssl_config_(ssl_config), 100 ssl_config_(ssl_config),
99 cert_(cert), 101 cert_(cert),
100 next_handshake_state_(STATE_NONE), 102 next_handshake_state_(STATE_NONE),
101 completed_handshake_(false) { 103 completed_handshake_(false) {
102 ssl_config_.false_start_enabled = false; 104 ssl_config_.false_start_enabled = false;
103 ssl_config_.version_min = SSL_PROTOCOL_VERSION_SSL3; 105 ssl_config_.version_min = SSL_PROTOCOL_VERSION_SSL3;
104 ssl_config_.version_max = SSL_PROTOCOL_VERSION_TLS1_1; 106 ssl_config_.version_max = SSL_PROTOCOL_VERSION_TLS1_1;
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 // initializes the NSS base library. 805 // initializes the NSS base library.
804 EnsureNSSSSLInit(); 806 EnsureNSSSSLInit();
805 if (!NSS_IsInitialized()) 807 if (!NSS_IsInitialized())
806 return ERR_UNEXPECTED; 808 return ERR_UNEXPECTED;
807 809
808 EnableSSLServerSockets(); 810 EnableSSLServerSockets();
809 return OK; 811 return OK;
810 } 812 }
811 813
812 } // namespace net 814 } // namespace net
OLDNEW
« no previous file with comments | « net/disk_cache/sparse_control.cc ('k') | ppapi/shared_impl/ppb_input_event_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698