Chromium Code Reviews

Issue 2958001: Added RSA key generator for register_host.py (Closed)

Created:
10 years, 5 months ago by Sergey Ulanov
Modified:
9 years, 7 months ago
Reviewers:
awong, Alpha Left Google
CC:
chromium-reviews, Alpha Left Google, dmac, pam+watch_chromium.org, awong, garykac
Visibility:
Public.

Description

Added RSA key generator for register_host.py TEST=None BUG=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52406

Patch Set 1 #

Patch Set 2 : removed public key from the config (it can be generated from private key struct) #

Patch Set 3 : removed todo #

Patch Set 4 : - #

Total comments: 8
Unified diffs Side-by-side diffs Stats (+87 lines, -14 lines)
M remoting/host/host_config.h View 1 chunk +2 lines, -4 lines 2 comments
M remoting/host/host_config.cc View 1 chunk +1 line, -1 line 2 comments
A remoting/host/keygen_main.cc View 1 chunk +36 lines, -0 lines 4 comments
M remoting/remoting.gyp View 1 chunk +13 lines, -0 lines 0 comments
A remoting/tools/keygen.py View 1 chunk +27 lines, -0 lines 0 comments
M remoting/tools/register_host.py View 3 chunks +8 lines, -9 lines 0 comments

Messages

Total messages: 4 (0 generated)
Sergey Ulanov
10 years, 5 months ago (2010-07-08 22:08:14 UTC) #1
Sergey Ulanov
ping
10 years, 5 months ago (2010-07-12 19:24:42 UTC) #2
awong
LGTM with a couple of nits, and assuming there's no standard RSA key generation in ...
10 years, 5 months ago (2010-07-14 19:36:32 UTC) #3
Sergey Ulanov
10 years, 5 months ago (2010-07-14 19:56:55 UTC) #4
http://codereview.chromium.org/2958001/diff/9001/10001
File remoting/host/host_config.cc (right):

http://codereview.chromium.org/2958001/diff/9001/10001#newcode9
remoting/host/host_config.cc:9: const std::wstring
kXmppLoginConfigPath(L"xmpp_login");
On 2010/07/14 19:36:32, awong wrote:
> Ack.  We're not supposed to have wstrings/string/etc., as globals.  Can't we
use
> char[]?
Yes, my bad. Will make another CL to fix this.

http://codereview.chromium.org/2958001/diff/9001/10002
File remoting/host/host_config.h (right):

http://codereview.chromium.org/2958001/diff/9001/10002#newcode28
remoting/host/host_config.h:28: extern const std::wstring kPrivateKeyConfigPath;
On 2010/07/14 19:36:32, awong wrote:
> Tangential note, why are these all wstrings?  Should we use stirng16s?

DictionaryValue works with wstring path only.

http://codereview.chromium.org/2958001/diff/9001/10003
File remoting/host/keygen_main.cc (right):

http://codereview.chromium.org/2958001/diff/9001/10003#newcode5
remoting/host/keygen_main.cc:5: // This is a tool used by register_host.py to
generate RSA keypair. It just
On 2010/07/14 19:36:32, awong wrote:
> ...doesn't python have a rsa key generator?
It does, but only in 2.6, i.e. it wouldn't work on Mac and Windows.

http://codereview.chromium.org/2958001/diff/9001/10003#newcode11
remoting/host/keygen_main.cc:11: #include <cstdio>
On 2010/07/14 19:36:32, awong wrote:
> stdio.h is more common.
> 
> Also C includes go before C++ ones.
> 
>
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Names_and_Orde...

Done.

Powered by Google App Engine