| Index: net/socket/ssl_client_socket.cc
|
| ===================================================================
|
| --- net/socket/ssl_client_socket.cc (revision 111993)
|
| +++ net/socket/ssl_client_socket.cc (working copy)
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -24,6 +24,20 @@
|
| }
|
| }
|
|
|
| +// static
|
| +const char* SSLClientSocket::NextProtoStatusToString(
|
| + const SSLClientSocket::NextProtoStatus status) {
|
| + switch (status) {
|
| + case kNextProtoUnsupported:
|
| + return "Unsupported";
|
| + case kNextProtoNegotiated:
|
| + return "Negotiated";
|
| + case kNextProtoNoOverlap:
|
| + return "No overlap";
|
| + }
|
| + return NULL;
|
| +}
|
| +
|
| bool SSLClientSocket::IgnoreCertError(int error, int load_flags) {
|
| if (error == OK || load_flags & LOAD_IGNORE_ALL_CERT_ERRORS)
|
| return true;
|
|
|