Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(261)

Issue 19380043: Correctly identify PEM files generated from PKCS12 files in oauth2client.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by zwilt
Modified:
11 years, 6 months ago
Reviewers:
jcgregorio_google
Visibility:
Public.

Description

Correctly identify PEM files generated from PKCS12 files in oauth2client.

Patch Set 1 #

Patch Set 2 : Correcting diff #

Total comments: 2

Patch Set 3 : Only search string once #

Total comments: 2

Patch Set 4 : Addressed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -6 lines) Patch
M oauth2client/crypt.py View 1 2 3 4 chunks +24 lines, -5 lines 0 comments Download
M tests/data/create-private-keys.sh View 1 chunk +4 lines, -0 lines 0 comments Download
A tests/data/pem_from_pkcs12.pem View 1 chunk +32 lines, -0 lines 0 comments Download
M tests/test_oauth2client_jwt.py View 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 8
zwilt
Hi Joe, This is the patch I mentioned by email earlier, which addresses https://code.google.com/p/google-api-python-client/issues/detail?id=291. Please ...
11 years, 6 months ago (2013-10-29 18:50:15 UTC) #1
jcgregorio_google
https://codereview.appspot.com/19380043/diff/20001/oauth2client/crypt.py File oauth2client/crypt.py (right): https://codereview.appspot.com/19380043/diff/20001/oauth2client/crypt.py#newcode274 oauth2client/crypt.py:274: return raw_key_input[raw_key_input.find(pem_key_delimiter):] This does the string search twice, instead ...
11 years, 6 months ago (2013-10-29 18:55:51 UTC) #2
zwilt
Thanks; PTAL https://codereview.appspot.com/19380043/diff/20001/oauth2client/crypt.py File oauth2client/crypt.py (right): https://codereview.appspot.com/19380043/diff/20001/oauth2client/crypt.py#newcode274 oauth2client/crypt.py:274: return raw_key_input[raw_key_input.find(pem_key_delimiter):] On 2013/10/29 18:55:51, jcgregorio_google wrote: ...
11 years, 6 months ago (2013-10-29 19:05:32 UTC) #3
jcgregorio_google
https://codereview.appspot.com/19380043/diff/40001/oauth2client/crypt.py File oauth2client/crypt.py (right): https://codereview.appspot.com/19380043/diff/40001/oauth2client/crypt.py#newcode272 oauth2client/crypt.py:272: pem_key_delimiter = '-----BEGIN ' pem_key_delimeter is now only used ...
11 years, 6 months ago (2013-10-29 19:09:42 UTC) #4
zwilt
PTAL https://codereview.appspot.com/19380043/diff/40001/oauth2client/crypt.py File oauth2client/crypt.py (right): https://codereview.appspot.com/19380043/diff/40001/oauth2client/crypt.py#newcode272 oauth2client/crypt.py:272: pem_key_delimiter = '-----BEGIN ' On 2013/10/29 19:09:42, jcgregorio_google ...
11 years, 6 months ago (2013-10-29 19:51:04 UTC) #5
jcgregorio_google
On 2013/10/29 19:51:04, zwilt wrote: > PTAL > > https://codereview.appspot.com/19380043/diff/40001/oauth2client/crypt.py > File oauth2client/crypt.py (right): > ...
11 years, 6 months ago (2013-10-29 19:55:37 UTC) #6
jcgregorio_google
On 2013/10/29 19:55:37, jcgregorio_google wrote: > On 2013/10/29 19:51:04, zwilt wrote: > > PTAL > ...
11 years, 6 months ago (2013-10-29 20:03:46 UTC) #7
zwilt
11 years, 6 months ago (2013-10-29 20:37:50 UTC) #8
Excellent, thanks Joe.


On Tue, Oct 29, 2013 at 1:03 PM, <jcgregorio@google.com> wrote:

> On 2013/10/29 19:55:37, jcgregorio_google wrote:
>
>> On 2013/10/29 19:51:04, zwilt wrote:
>> > PTAL
>> >
>> >
>>
> https://codereview.appspot.**com/19380043/diff/40001/**
>
oauth2client/crypt.py<https://codereview.appspot.com/19380043/diff/40001/oauth2client/crypt.py>
>
>> > File oauth2client/crypt.py (right):
>> >
>> >
>>
>
> https://codereview.appspot.**com/19380043/diff/40001/**
>
oauth2client/crypt.py#**newcode272<https://codereview.appspot.com/19380043/diff/40001/oauth2client/crypt.py#newcode272>
>
>> > oauth2client/crypt.py:272: pem_key_delimiter = '-----BEGIN '
>> > On 2013/10/29 19:09:42, jcgregorio_google wrote:
>> > > pem_key_delimeter is now only used once, it can be removed and you
>>
> can just
>
>> > use
>> > > the '-----BEGIN' string in the line below.
>> >
>> > Done.
>>
>
>  LGTM
>>
>
> Committed in
> https://code.google.com/p/**google-api-python-client/**source/detail?r=**
>
186e2bb7794bfdf62f06c39cf66628**8fa6bf452f<https://code.google.com/p/google-api-python-client/source/detail?r=186e2bb7794bfdf62f06c39cf666288fa6bf452f>
>
>
https://codereview.appspot.**com/19380043/<https://codereview.appspot.com/193...
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b