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

Side by Side Diff: remoting/host/verify_config_window_win.cc

Issue 12092117: Merged all Chromoting Host code into remoting_core.dll (Windows). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 10 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 | « remoting/host/verify_config_window_win.h ('k') | remoting/host/video_scheduler.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 "remoting/host/verify_config_window_win.h" 5 #include "remoting/host/verify_config_window_win.h"
6 6
7 #include <atlbase.h> 7 #include <atlbase.h>
8 #include <atlwin.h> 8 #include <atlwin.h>
9 #include <windows.h> 9 #include <windows.h>
10 10
11 #include "base/base64.h" 11 #include "base/base64.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/utf_string_conversions.h" 14 #include "base/utf_string_conversions.h"
15 #include "remoting/host/pin_hash.h" 15 #include "remoting/host/pin_hash.h"
16 #include "remoting/host/win/elevated_controller_resource.h" 16 #include "remoting/host/win/core_resource.h"
17 #include "remoting/protocol/authentication_method.h" 17 #include "remoting/protocol/authentication_method.h"
18 18
19 namespace remoting { 19 namespace remoting {
20 20
21 VerifyConfigWindowWin::VerifyConfigWindowWin(const std::string& email, 21 VerifyConfigWindowWin::VerifyConfigWindowWin(const std::string& email,
22 const std::string& host_id, const std::string& host_secret_hash) 22 const std::string& host_id, const std::string& host_secret_hash)
23 : email_(email), 23 : email_(email),
24 host_id_(host_id), 24 host_id_(host_id),
25 host_secret_hash_(host_secret_hash) { 25 host_secret_hash_(host_secret_hash) {
26 } 26 }
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 scoped_array<char16> pin(new char16[pin_length + 1]); 130 scoped_array<char16> pin(new char16[pin_length + 1]);
131 131
132 // Get the PIN making sure it is NULL terminated even if an error occurs. 132 // Get the PIN making sure it is NULL terminated even if an error occurs.
133 int result = pin_edit.GetWindowText(pin.get(), pin_length + 1); 133 int result = pin_edit.GetWindowText(pin.get(), pin_length + 1);
134 pin[std::min(result, pin_length)] = 0; 134 pin[std::min(result, pin_length)] = 0;
135 135
136 return VerifyHostPinHash(host_secret_hash_, host_id_, UTF16ToUTF8(pin.get())); 136 return VerifyHostPinHash(host_secret_hash_, host_id_, UTF16ToUTF8(pin.get()));
137 } 137 }
138 138
139 } // namespace remoting 139 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/verify_config_window_win.h ('k') | remoting/host/video_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698