OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/api/cast_channel/cast_auth_util.h" | 5 #include "extensions/browser/api/cast_channel/cast_auth_util.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "extensions/browser/api/cast_channel/cast_message_util.h" | 10 #include "extensions/browser/api/cast_channel/cast_message_util.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 if (!result.success()) { | 94 if (!result.success()) { |
95 return result; | 95 return result; |
96 } | 96 } |
97 | 97 |
98 const AuthResponse& response = auth_message.response(); | 98 const AuthResponse& response = auth_message.response(); |
99 result = VerifyCredentials(response, peer_cert); | 99 result = VerifyCredentials(response, peer_cert); |
100 if (!result.success()) { | 100 if (!result.success()) { |
101 return result; | 101 return result; |
102 } | 102 } |
103 | 103 |
104 return AuthResult(); | 104 result.client_auth_certificate = response.client_auth_certificate(); |
| 105 return result; |
105 } | 106 } |
106 | 107 |
107 } // namespace cast_channel | 108 } // namespace cast_channel |
108 } // namespace core_api | 109 } // namespace core_api |
109 } // namespace extensions | 110 } // namespace extensions |
OLD | NEW |