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

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

Issue 7685040: Remove DisableOCSP(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comments Created 9 years, 4 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/socket/ssl_client_socket_nss.cc ('k') | remoting/protocol/jingle_stream_connector.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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 void* arg) { 755 void* arg) {
756 // TODO(hclam): Implement. 756 // TODO(hclam): Implement.
757 } 757 }
758 758
759 int SSLServerSocketNSS::Init() { 759 int SSLServerSocketNSS::Init() {
760 // Initialize the NSS SSL library in a threadsafe way. This also 760 // Initialize the NSS SSL library in a threadsafe way. This also
761 // initializes the NSS base library. 761 // initializes the NSS base library.
762 EnsureNSSSSLInit(); 762 EnsureNSSSSLInit();
763 if (!NSS_IsInitialized()) 763 if (!NSS_IsInitialized())
764 return ERR_UNEXPECTED; 764 return ERR_UNEXPECTED;
765 #if !defined(OS_MACOSX) && !defined(OS_WIN)
766 // We must call EnsureOCSPInit() here, on the IO thread, to get the IO loop
767 // by MessageLoopForIO::current().
768 // X509Certificate::Verify() runs on a worker thread of CertVerifier.
769 EnsureOCSPInit();
770 #endif
771 765
772 return OK; 766 return OK;
773 } 767 }
774 768
775 } // namespace net 769 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_nss.cc ('k') | remoting/protocol/jingle_stream_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698