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

Issue 183111: code review 183111: Add authentication. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 8 months ago by frm
Modified:
15 years, 8 months ago
Reviewers:
surya
CC:
nigeltao, rsc, jhh, golang-dev
Visibility:
Public.

Description

Add authentication. Other code fixing: - Fixed bugs in get32. - Fix code for parsing display string (as a new function). - Fix code for connecting to X server. The old code only work if the server is listening to TCP port, otherwise it doesn't work (at least in my PC).

Patch Set 1 #

Patch Set 2 : code review 183111: Add authentication. #

Total comments: 23

Patch Set 3 : code review 183111: Add authentication. #

Patch Set 4 : code review 183111: Add authentication. #

Total comments: 15

Patch Set 5 : code review 183111: Add authentication. #

Total comments: 6

Patch Set 6 : code review 183111: Add authentication. #

Total comments: 61

Patch Set 7 : code review 183111: Add authentication. #

Total comments: 2

Patch Set 8 : code review 183111: Add authentication. #

Total comments: 4

Patch Set 9 : code review 183111: Add authentication. #

Patch Set 10 : code review 183111: Add authentication. #

Total comments: 2

Patch Set 11 : code review 183111: Add authentication. #

Total comments: 5

Patch Set 12 : code review 183111: Add authentication. #

Total comments: 2

Patch Set 13 : code review 183111: Add authentication. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -33 lines) Patch
A src/pkg/xgb/auth.go View 4 5 6 7 8 1 chunk +110 lines, -0 lines 0 comments Download
M src/pkg/xgb/xgb.go View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +99 lines, -33 lines 0 comments Download

Messages

Total messages: 37
frm
Hello nigeltao_golang (cc: golang-dev@googlegroups.com), I'd like you to review the following change.
15 years, 8 months ago (2010-01-04 08:44:35 UTC) #1
nigeltao
I'm not 100% familiar with how xgb works, so I'll let Tor override me if ...
15 years, 8 months ago (2010-01-05 12:56:21 UTC) #2
frm
http://codereview.appspot.com/183111/diff/3/1002 File src/pkg/xgb/xgb.go (right): http://codereview.appspot.com/183111/diff/3/1002#newcode316 src/pkg/xgb/xgb.go:316: return nil, os.NewError(fmt.Sprintf("cannot connect: %s", err)) Done. On 2010/01/05 ...
15 years, 8 months ago (2010-01-05 17:37:11 UTC) #3
nigeltao
http://codereview.appspot.com/183111/diff/6/1009 File src/pkg/xgb/auth.go (right): http://codereview.appspot.com/183111/diff/6/1009#newcode16 src/pkg/xgb/auth.go:16: b := make([]byte, 256, 256) Just say var b ...
15 years, 8 months ago (2010-01-06 13:00:14 UTC) #4
frm
15 years, 8 months ago (2010-01-08 04:38:07 UTC) #5
frm
PTAL
15 years, 8 months ago (2010-01-09 03:01:43 UTC) #6
nigeltao
It generally looks good to me. Let me ping Tor... http://codereview.appspot.com/183111/diff/1014/1015 File src/pkg/xgb/auth.go (right): http://codereview.appspot.com/183111/diff/1014/1015#newcode41 ...
15 years, 8 months ago (2010-01-10 02:26:15 UTC) #7
frm
PTAL http://codereview.appspot.com/183111/diff/1014/1015 File src/pkg/xgb/auth.go (right): http://codereview.appspot.com/183111/diff/1014/1015#newcode41 src/pkg/xgb/auth.go:41: const familyLocal = 256 Fixed. On 2010/01/10 02:26:15, ...
15 years, 8 months ago (2010-01-10 03:54:31 UTC) #8
nigeltao
Russ -- can you give this a quick look?
15 years, 8 months ago (2010-01-12 10:18:33 UTC) #9
rsc
looks pretty good. a bunch of small nits. http://codereview.appspot.com/183111/diff/3002/2003 File src/pkg/xgb/auth.go (right): http://codereview.appspot.com/183111/diff/3002/2003#newcode21 src/pkg/xgb/auth.go:21: func ...
15 years, 8 months ago (2010-01-12 17:57:22 UTC) #10
frm
Hello nigeltao_golang, rsc (cc: golang-dev@googlegroups.com), Please take another look.
15 years, 8 months ago (2010-01-14 16:49:31 UTC) #11
frm
http://codereview.appspot.com/183111/diff/3002/2003 File src/pkg/xgb/auth.go (right): http://codereview.appspot.com/183111/diff/3002/2003#newcode21 src/pkg/xgb/auth.go:21: func getString(r io.Reader, b []byte) (s string, err os.Error) ...
15 years, 8 months ago (2010-01-14 16:50:56 UTC) #12
jhh
On OS X you can also install an X11 server as well. But my $DISPLAY ...
15 years, 8 months ago (2010-01-15 14:59:00 UTC) #13
frm
This is just a workaround before xgb add support for OS X. First make sure ...
15 years, 8 months ago (2010-01-15 15:39:55 UTC) #14
rsc
LGTM please fix one more nit http://codereview.appspot.com/183111/diff/4001/2008 File src/pkg/xgb/xgb.go (right): http://codereview.appspot.com/183111/diff/4001/2008#newcode303 src/pkg/xgb/xgb.go:303: if authName != ...
15 years, 8 months ago (2010-01-15 20:58:00 UTC) #15
frm
Hello nigeltao_golang, rsc, jhh (cc: golang-dev@googlegroups.com), Please take another look.
15 years, 8 months ago (2010-01-16 05:31:54 UTC) #16
frm
http://codereview.appspot.com/183111/diff/4001/2008 File src/pkg/xgb/xgb.go (right): http://codereview.appspot.com/183111/diff/4001/2008#newcode303 src/pkg/xgb/xgb.go:303: if authName != "MIT-MAGIC-COOKIE-1" || len(authName) != 18 || ...
15 years, 8 months ago (2010-01-16 05:33:23 UTC) #17
nigeltao
http://codereview.appspot.com/183111/diff/4003/2017 File src/pkg/xgb/auth.go (right): http://codereview.appspot.com/183111/diff/4003/2017#newcode13 src/pkg/xgb/auth.go:13: func get16BE(r io.Reader, b []byte) (uint16, os.Error) { I'd ...
15 years, 8 months ago (2010-01-18 13:15:22 UTC) #18
frm
Hello nigeltao_golang, rsc, jhh (cc: golang-dev@googlegroups.com), Please take another look.
15 years, 8 months ago (2010-01-18 19:25:24 UTC) #19
frm
http://codereview.appspot.com/183111/diff/4003/2017 File src/pkg/xgb/auth.go (right): http://codereview.appspot.com/183111/diff/4003/2017#newcode13 src/pkg/xgb/auth.go:13: func get16BE(r io.Reader, b []byte) (uint16, os.Error) { Fixed. ...
15 years, 8 months ago (2010-01-18 19:25:56 UTC) #20
frm
Added code for checking weird $DISPLAY variable on OSX. jhh... please test this code coz ...
15 years, 8 months ago (2010-01-18 20:14:08 UTC) #21
jhh
_, err := xgb.Dial("") works fine for me (XServer starts up and err is == ...
15 years, 8 months ago (2010-01-18 23:26:37 UTC) #22
frm
Yes. The current version in the repos is working fine for OS X, but not ...
15 years, 8 months ago (2010-01-19 07:10:56 UTC) #23
nigeltao
I'm not sure that the connect function handles all the various forms of $DISPLAY on ...
15 years, 8 months ago (2010-01-19 13:16:03 UTC) #24
nigeltao_gnome
Also, Russ may know more about the process than I do, but if this is ...
15 years, 8 months ago (2010-01-19 13:21:04 UTC) #25
frm
I've already filled the CLA form. Please take another look. http://codereview.appspot.com/183111/diff/4013/4015 File src/pkg/xgb/xgb.go (right): http://codereview.appspot.com/183111/diff/4013/4015#newcode411 ...
15 years, 8 months ago (2010-01-19 16:02:23 UTC) #26
nigeltao
http://codereview.appspot.com/183111/diff/2027/2029 File src/pkg/xgb/xgb.go (right): http://codereview.appspot.com/183111/diff/2027/2029#newcode291 src/pkg/xgb/xgb.go:291: // Examples: On 2010/01/19 16:02:24, frm wrote: > I ...
15 years, 8 months ago (2010-01-19 23:10:50 UTC) #27
frm
Please take another look. http://codereview.appspot.com/183111/diff/2027/2029 File src/pkg/xgb/xgb.go (right): http://codereview.appspot.com/183111/diff/2027/2029#newcode291 src/pkg/xgb/xgb.go:291: // Examples: Yes, you're right. ...
15 years, 8 months ago (2010-01-20 07:20:38 UTC) #28
nigeltao
Looks Good To Me. There's just one tiny thing to fix. http://codereview.appspot.com/183111/diff/2034/5007 File src/pkg/xgb/xgb.go (right): ...
15 years, 8 months ago (2010-01-20 23:26:07 UTC) #29
frm
PTAL. http://codereview.appspot.com/183111/diff/2034/5007 File src/pkg/xgb/xgb.go (right): http://codereview.appspot.com/183111/diff/2034/5007#newcode452 src/pkg/xgb/xgb.go:452: if len(protocol) != 0 { Fixed. On 2010/01/20 ...
15 years, 8 months ago (2010-01-21 06:12:58 UTC) #30
nigeltao_gnome
LGTM. Russ -- what's the process for landing this? Does frm.adiputra have to make a ...
15 years, 8 months ago (2010-01-21 08:01:33 UTC) #31
r2
On 21/01/2010, at 7:01 PM, Nigel Tao wrote: > LGTM. > > Russ -- what's ...
15 years, 8 months ago (2010-01-21 09:41:17 UTC) #32
rsc
It's easier if someone with direct commit access creates the A+C change, so the process ...
15 years, 8 months ago (2010-01-21 15:38:47 UTC) #33
frm
I've completed the CLA. On 2010/01/21 15:38:47, rsc wrote: > It's easier if someone with ...
15 years, 8 months ago (2010-01-22 05:50:11 UTC) #34
nigeltao
*** Submitted as http://code.google.com/p/go/source/detail?r=e45a594192d4 *** Add authentication. Other code fixing: - Fixed bugs in get32. ...
15 years, 8 months ago (2010-01-22 06:55:49 UTC) #35
surya
On 2010/01/22 06:55:49, nigeltao_golang wrote: > *** Submitted as http://code.google.com/p/go/source/detail?r=e45a594192d4 *** > > Add authentication. ...
15 years, 8 months ago (2010-01-22 15:07:49 UTC) #36
nigeltao_gnome
15 years, 8 months ago (2010-01-24 04:21:41 UTC) #37
2010/1/23  <surya@c77.in>:
> I think you should add auth.go to Makefile

Thanks to Ian for fixing this.
http://code.google.com/p/go/source/detail?r=0957364f254f96b781ba6f88f36cdb9bb...
Sign in to reply to this message.

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