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

Issue 9515015: Support reading PEM files in TLSLite (Closed)

Created:
8 years, 9 months ago by Ryan Sleevi
Modified:
8 years, 9 months ago
Reviewers:
agl, Nico, wtc
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, pam+watch_chromium.org, Chris Palmer, agl
Visibility:
Public.

Description

Support reading PEM files in TLSLite BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124637

Patch Set 1 #

Total comments: 8

Patch Set 2 : Review feedback #

Total comments: 1

Patch Set 3 : Review feedback #

Total comments: 3

Patch Set 4 : Add patch file #

Total comments: 1

Patch Set 5 : Fix pem blocks #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -4 lines) Patch
M net/tools/testserver/testserver.py View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/tlslite/README.chromium View 1 2 chunks +5 lines, -1 line 0 comments Download
A third_party/tlslite/patches/parse_chain.patch View 1 2 3 1 chunk +89 lines, -0 lines 0 comments Download
M third_party/tlslite/tlslite/X509.py View 1 1 chunk +1 line, -0 lines 1 comment Download
M third_party/tlslite/tlslite/X509CertChain.py View 1 2 3 4 2 chunks +61 lines, -0 lines 4 comments Download

Messages

Total messages: 14 (0 generated)
Ryan Sleevi
Nico, Would you mind reviewing this for Python-style and functionality? Note that I haven't included ...
8 years, 9 months ago (2012-02-29 00:27:01 UTC) #1
Nico
http://codereview.chromium.org/9515015/diff/1/third_party/tlslite/README.chromium File third_party/tlslite/README.chromium (right): http://codereview.chromium.org/9515015/diff/1/third_party/tlslite/README.chromium#newcode30 third_party/tlslite/README.chromium:30: - patches/parse_chain.patch: tlslite/X509.py and tlslite/X509CertChain.py were .patch file missing. ...
8 years, 9 months ago (2012-02-29 00:28:21 UTC) #2
Ryan Sleevi
On 2012/02/29 00:28:21, Nico wrote: > http://codereview.chromium.org/9515015/diff/1/third_party/tlslite/README.chromium > File third_party/tlslite/README.chromium (right): > > http://codereview.chromium.org/9515015/diff/1/third_party/tlslite/README.chromium#newcode30 > ...
8 years, 9 months ago (2012-02-29 00:29:46 UTC) #3
Nico
http://codereview.chromium.org/9515015/diff/1/third_party/tlslite/tlslite/X509CertChain.py File third_party/tlslite/tlslite/X509CertChain.py (right): http://codereview.chromium.org/9515015/diff/1/third_party/tlslite/tlslite/X509CertChain.py#newcode28 third_party/tlslite/tlslite/X509CertChain.py:28: def parseChain(self, s): Could use a basic unit test ...
8 years, 9 months ago (2012-02-29 00:33:34 UTC) #4
Nico
On 2012/02/29 00:29:46, Ryan Sleevi wrote: > On 2012/02/29 00:28:21, Nico wrote: > > > ...
8 years, 9 months ago (2012-02-29 00:34:11 UTC) #5
Ryan Sleevi
On 2012/02/29 00:34:11, Nico wrote: > On 2012/02/29 00:29:46, Ryan Sleevi wrote: > > On ...
8 years, 9 months ago (2012-02-29 00:35:46 UTC) #6
Ryan Sleevi
PTAL http://codereview.chromium.org/9515015/diff/4001/third_party/tlslite/tlslite/X509.py File third_party/tlslite/tlslite/X509.py (right): http://codereview.chromium.org/9515015/diff/4001/third_party/tlslite/tlslite/X509.py#newcode102 third_party/tlslite/tlslite/X509.py:102: return self justification: matches line 45
8 years, 9 months ago (2012-02-29 01:01:58 UTC) #7
Nico
Looks fine from a python style point of view now. Maybe you also want a ...
8 years, 9 months ago (2012-02-29 02:05:30 UTC) #8
Ryan Sleevi
agl: Would you mind reviewing/sanity checking/stamping this from a PEM parsing logic standpoint? http://codereview.chromium.org/9515015/diff/6001/third_party/tlslite/tlslite/X509CertChain.py File ...
8 years, 9 months ago (2012-02-29 19:56:27 UTC) #9
Ryan Sleevi
-agl, +wtc, as agl@ is out today. wtc, would you mind taking a stamp^H^Hb at ...
8 years, 9 months ago (2012-03-02 01:18:30 UTC) #10
agl
lgtm http://codereview.chromium.org/9515015/diff/13001/third_party/tlslite/tlslite/X509CertChain.py File third_party/tlslite/tlslite/X509CertChain.py (right): http://codereview.chromium.org/9515015/diff/13001/third_party/tlslite/tlslite/X509CertChain.py#newcode51 third_party/tlslite/tlslite/X509CertChain.py:51: _CERTIFICATE_HEADER = "----BEGIN CERTIFICATE-----" There's only four '-' ...
8 years, 9 months ago (2012-03-02 01:24:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/9515015/18002
8 years, 9 months ago (2012-03-02 01:34:55 UTC) #12
commit-bot: I haz the power
Change committed as 124637
8 years, 9 months ago (2012-03-02 14:58:05 UTC) #13
wtc
8 years, 9 months ago (2012-03-02 23:32:18 UTC) #14
Patch set 5 LGTM.

http://codereview.chromium.org/9515015/diff/18002/third_party/tlslite/tlslite...
File third_party/tlslite/tlslite/X509.py (right):

http://codereview.chromium.org/9515015/diff/18002/third_party/tlslite/tlslite...
third_party/tlslite/tlslite/X509.py:102: return self

Is it a bug for a method to be missing a return statement
at the end?

http://codereview.chromium.org/9515015/diff/18002/third_party/tlslite/tlslite...
File third_party/tlslite/tlslite/X509CertChain.py (right):

http://codereview.chromium.org/9515015/diff/18002/third_party/tlslite/tlslite...
third_party/tlslite/tlslite/X509CertChain.py:29: """Parse a PEM-encoded X.509
certificate file chain file.

Typo: certificate file chain file => certificate chain file

http://codereview.chromium.org/9515015/diff/18002/third_party/tlslite/tlslite...
third_party/tlslite/tlslite/X509CertChain.py:32: @param s: A PEM-encoded (eg:
Base64) X.509 certificate file, with every

Should we say "certificate chain file" instead?

http://codereview.chromium.org/9515015/diff/18002/third_party/tlslite/tlslite...
third_party/tlslite/tlslite/X509CertChain.py:34: "-----END CERTIFICATE-----"
tags). Extraneous data outside such tags,

Remove the closing ')' after "tags".  Make the same fix on
line 44.

http://codereview.chromium.org/9515015/diff/18002/third_party/tlslite/tlslite...
third_party/tlslite/tlslite/X509CertChain.py:79: certStr =
self.data[self.index+len(self._CERTIFICATE_HEADER) :

Nit: add spaces around the '+'?  Or are you trying to stay
under the 80-char limit?

Powered by Google App Engine
This is Rietveld 408576698