{"action":"created","comment":{"url":"https://api.github.com/repos/jlmucb/cloudproxy/pulls/comments/35249115","id":35249115,"diff_hunk":"@@ -0,0 +1,88 @@\n+// Copyright (c) 2015, Google Inc. All rights reserved.\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+//     http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+\n+package main\n+\n+import (\n+\t\"crypto/x509/pkix\"\n+\t\"errors\"\n+\t\"flag\"\n+\t\"io\"\n+\t\"net\"\n+\n+\t\"github.com/golang/glog\"\n+\t\"github.com/jlmucb/cloudproxy/go/apps/mixnet\"\n+\t\"github.com/jlmucb/cloudproxy/go/tao\"\n+)\n+\n+// Handle connections from mixnet clients.\n+func handleMixnetClient(conn net.Conn, ch chan<- error) {\n+\t// TODO(cjpatton) for now, just receive a cell and print it.\n+\tcell := make([]byte, mixnet.CellBytes)\n+\tif n, err := conn.Read(cell); err != nil && err != io.EOF {\n+\t\tch <- err\n+\t} else if n != mixnet.CellBytes {\n+\t\tch <- errors.New(\"Received a cell with the wrong length\")","path":"go/apps/mixnet/mixnet_router/mixnet_router.go","position":36,"original_position":36,"commit_id":"e77845bf58ee334cbbd526f811608ca49fd5e21a","original_commit_id":"e77845bf58ee334cbbd526f811608ca49fd5e21a","user":{"login":"tmroeder","id":889223,"avatar_url":"https://avatars.githubusercontent.com/u/889223?v=3","gravatar_id":"","url":"https://api.github.com/users/tmroeder","html_url":"https://github.com/tmroeder","followers_url":"https://api.github.com/users/tmroeder/followers","following_url":"https://api.github.com/users/tmroeder/following{/other_user}","gists_url":"https://api.github.com/users/tmroeder/gists{/gist_id}","starred_url":"https://api.github.com/users/tmroeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmroeder/subscriptions","organizations_url":"https://api.github.com/users/tmroeder/orgs","repos_url":"https://api.github.com/users/tmroeder/repos","events_url":"https://api.github.com/users/tmroeder/events{/privacy}","received_events_url":"https://api.github.com/users/tmroeder/received_events","type":"User","site_admin":false},"body":"errors should start with a lower-case letter","created_at":"2015-07-22T18:49:53Z","updated_at":"2015-07-22T18:49:53Z","html_url":"https://github.com/jlmucb/cloudproxy/pull/10#discussion_r35249115","pull_request_url":"https://api.github.com/repos/jlmucb/cloudproxy/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/jlmucb/cloudproxy/pulls/comments/35249115"},"html":{"href":"https://github.com/jlmucb/cloudproxy/pull/10#discussion_r35249115"},"pull_request":{"href":"https://api.github.com/repos/jlmucb/cloudproxy/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/jlmucb/cloudproxy/pulls/10","id":40514950,"html_url":"https://github.com/jlmucb/cloudproxy/pull/10","diff_url":"https://github.com/jlmucb/cloudproxy/pull/10.diff","patch_url":"https://github.com/jlmucb/cloudproxy/pull/10.patch","issue_url":"https://api.github.com/repos/jlmucb/cloudproxy/issues/10","number":10,"state":"open","locked":false,"title":"Begin mixnet.","user":{"login":"cjpatton","id":3453007,"avatar_url":"https://avatars.githubusercontent.com/u/3453007?v=3","gravatar_id":"","url":"https://api.github.com/users/cjpatton","html_url":"https://github.com/cjpatton","followers_url":"https://api.github.com/users/cjpatton/followers","following_url":"https://api.github.com/users/cjpatton/following{/other_user}","gists_url":"https://api.github.com/users/cjpatton/gists{/gist_id}","starred_url":"https://api.github.com/users/cjpatton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjpatton/subscriptions","organizations_url":"https://api.github.com/users/cjpatton/orgs","repos_url":"https://api.github.com/users/cjpatton/repos","events_url":"https://api.github.com/users/cjpatton/events{/privacy}","received_events_url":"https://api.github.com/users/cjpatton/received_events","type":"User","site_admin":false},"body":"Instantiate a router as a Tao-delegated service and run a proxy. So far the\r\nrouter and proxy exchange a key and a single cell.","created_at":"2015-07-21T23:07:31Z","updated_at":"2015-07-22T18:49:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a94688f9039c6ff2884b7b57b2bc91d54f792fb5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jlmucb/cloudproxy/pulls/10/commits","review_comments_url":"https://api.github.com/repos/jlmucb/cloudproxy/pulls/10/comments","review_comment_url":"https://api.github.com/repos/jlmucb/cloudproxy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jlmucb/cloudproxy/issues/10/comments","statuses_url":"https://api.github.com/repos/jlmucb/cloudproxy/statuses/e77845bf58ee334cbbd526f811608ca49fd5e21a","head":{"label":"cjpatton:master","ref":"master","sha":"e77845bf58ee334cbbd526f811608ca49fd5e21a","user":{"login":"cjpatton","id":3453007,"avatar_url":"https://avatars.githubusercontent.com/u/3453007?v=3","gravatar_id":"","url":"https://api.github.com/users/cjpatton","html_url":"https://github.com/cjpatton","followers_url":"https://api.github.com/users/cjpatton/followers","following_url":"https://api.github.com/users/cjpatton/following{/other_user}","gists_url":"https://api.github.com/users/cjpatton/gists{/gist_id}","starred_url":"https://api.github.com/users/cjpatton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjpatton/subscriptions","organizations_url":"https://api.github.com/users/cjpatton/orgs","repos_url":"https://api.github.com/users/cjpatton/repos","events_url":"https://api.github.com/users/cjpatton/events{/privacy}","received_events_url":"https://api.github.com/users/cjpatton/received_events","type":"User","site_admin":false},"repo":{"id":39473960,"name":"cloudproxy","full_name":"cjpatton/cloudproxy","owner":{"login":"cjpatton","id":3453007,"avatar_url":"https://avatars.githubusercontent.com/u/3453007?v=3","gravatar_id":"","url":"https://api.github.com/users/cjpatton","html_url":"https://github.com/cjpatton","followers_url":"https://api.github.com/users/cjpatton/followers","following_url":"https://api.github.com/users/cjpatton/following{/other_user}","gists_url":"https://api.github.com/users/cjpatton/gists{/gist_id}","starred_url":"https://api.github.com/users/cjpatton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjpatton/subscriptions","organizations_url":"https://api.github.com/users/cjpatton/orgs","repos_url":"https://api.github.com/users/cjpatton/repos","events_url":"https://api.github.com/users/cjpatton/events{/privacy}","received_events_url":"https://api.github.com/users/cjpatton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cjpatton/cloudproxy","description":"The CloudProxy Tao for Trustworthy Computing","fork":true,"url":"https://api.github.com/repos/cjpatton/cloudproxy","forks_url":"https://api.github.com/repos/cjpatton/cloudproxy/forks","keys_url":"https://api.github.com/repos/cjpatton/cloudproxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cjpatton/cloudproxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cjpatton/cloudproxy/teams","hooks_url":"https://api.github.com/repos/cjpatton/cloudproxy/hooks","issue_events_url":"https://api.github.com/repos/cjpatton/cloudproxy/issues/events{/number}","events_url":"https://api.github.com/repos/cjpatton/cloudproxy/events","assignees_url":"https://api.github.com/repos/cjpatton/cloudproxy/assignees{/user}","branches_url":"https://api.github.com/repos/cjpatton/cloudproxy/branches{/branch}","tags_url":"https://api.github.com/repos/cjpatton/cloudproxy/tags","blobs_url":"https://api.github.com/repos/cjpatton/cloudproxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cjpatton/cloudproxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cjpatton/cloudproxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/cjpatton/cloudproxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cjpatton/cloudproxy/statuses/{sha}","languages_url":"https://api.github.com/repos/cjpatton/cloudproxy/languages","stargazers_url":"https://api.github.com/repos/cjpatton/cloudproxy/stargazers","contributors_url":"https://api.github.com/repos/cjpatton/cloudproxy/contributors","subscribers_url":"https://api.github.com/repos/cjpatton/cloudproxy/subscribers","subscription_url":"https://api.github.com/repos/cjpatton/cloudproxy/subscription","commits_url":"https://api.github.com/repos/cjpatton/cloudproxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/cjpatton/cloudproxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/cjpatton/cloudproxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/cjpatton/cloudproxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/cjpatton/cloudproxy/contents/{+path}","compare_url":"https://api.github.com/repos/cjpatton/cloudproxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cjpatton/cloudproxy/merges","archive_url":"https://api.github.com/repos/cjpatton/cloudproxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cjpatton/cloudproxy/downloads","issues_url":"https://api.github.com/repos/cjpatton/cloudproxy/issues{/number}","pulls_url":"https://api.github.com/repos/cjpatton/cloudproxy/pulls{/number}","milestones_url":"https://api.github.com/repos/cjpatton/cloudproxy/milestones{/number}","notifications_url":"https://api.github.com/repos/cjpatton/cloudproxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cjpatton/cloudproxy/labels{/name}","releases_url":"https://api.github.com/repos/cjpatton/cloudproxy/releases{/id}","created_at":"2015-07-21T22:58:23Z","updated_at":"2015-07-21T22:58:25Z","pushed_at":"2015-07-22T17:51:31Z","git_url":"git://github.com/cjpatton/cloudproxy.git","ssh_url":"git@github.com:cjpatton/cloudproxy.git","clone_url":"https://github.com/cjpatton/cloudproxy.git","svn_url":"https://github.com/cjpatton/cloudproxy","homepage":null,"size":26886,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jlmucb:master","ref":"master","sha":"dce7a6c96b09c8bcc9a295168723b3c060e63af8","user":{"login":"jlmucb","id":7945170,"avatar_url":"https://avatars.githubusercontent.com/u/7945170?v=3","gravatar_id":"","url":"https://api.github.com/users/jlmucb","html_url":"https://github.com/jlmucb","followers_url":"https://api.github.com/users/jlmucb/followers","following_url":"https://api.github.com/users/jlmucb/following{/other_user}","gists_url":"https://api.github.com/users/jlmucb/gists{/gist_id}","starred_url":"https://api.github.com/users/jlmucb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlmucb/subscriptions","organizations_url":"https://api.github.com/users/jlmucb/orgs","repos_url":"https://api.github.com/users/jlmucb/repos","events_url":"https://api.github.com/users/jlmucb/events{/privacy}","received_events_url":"https://api.github.com/users/jlmucb/received_events","type":"User","site_admin":false},"repo":{"id":22765204,"name":"cloudproxy","full_name":"jlmucb/cloudproxy","owner":{"login":"jlmucb","id":7945170,"avatar_url":"https://avatars.githubusercontent.com/u/7945170?v=3","gravatar_id":"","url":"https://api.github.com/users/jlmucb","html_url":"https://github.com/jlmucb","followers_url":"https://api.github.com/users/jlmucb/followers","following_url":"https://api.github.com/users/jlmucb/following{/other_user}","gists_url":"https://api.github.com/users/jlmucb/gists{/gist_id}","starred_url":"https://api.github.com/users/jlmucb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlmucb/subscriptions","organizations_url":"https://api.github.com/users/jlmucb/orgs","repos_url":"https://api.github.com/users/jlmucb/repos","events_url":"https://api.github.com/users/jlmucb/events{/privacy}","received_events_url":"https://api.github.com/users/jlmucb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlmucb/cloudproxy","description":"The CloudProxy Tao for Trustworthy Computing","fork":false,"url":"https://api.github.com/repos/jlmucb/cloudproxy","forks_url":"https://api.github.com/repos/jlmucb/cloudproxy/forks","keys_url":"https://api.github.com/repos/jlmucb/cloudproxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlmucb/cloudproxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlmucb/cloudproxy/teams","hooks_url":"https://api.github.com/repos/jlmucb/cloudproxy/hooks","issue_events_url":"https://api.github.com/repos/jlmucb/cloudproxy/issues/events{/number}","events_url":"https://api.github.com/repos/jlmucb/cloudproxy/events","assignees_url":"https://api.github.com/repos/jlmucb/cloudproxy/assignees{/user}","branches_url":"https://api.github.com/repos/jlmucb/cloudproxy/branches{/branch}","tags_url":"https://api.github.com/repos/jlmucb/cloudproxy/tags","blobs_url":"https://api.github.com/repos/jlmucb/cloudproxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlmucb/cloudproxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlmucb/cloudproxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlmucb/cloudproxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlmucb/cloudproxy/statuses/{sha}","languages_url":"https://api.github.com/repos/jlmucb/cloudproxy/languages","stargazers_url":"https://api.github.com/repos/jlmucb/cloudproxy/stargazers","contributors_url":"https://api.github.com/repos/jlmucb/cloudproxy/contributors","subscribers_url":"https://api.github.com/repos/jlmucb/cloudproxy/subscribers","subscription_url":"https://api.github.com/repos/jlmucb/cloudproxy/subscription","commits_url":"https://api.github.com/repos/jlmucb/cloudproxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlmucb/cloudproxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlmucb/cloudproxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlmucb/cloudproxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlmucb/cloudproxy/contents/{+path}","compare_url":"https://api.github.com/repos/jlmucb/cloudproxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlmucb/cloudproxy/merges","archive_url":"https://api.github.com/repos/jlmucb/cloudproxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlmucb/cloudproxy/downloads","issues_url":"https://api.github.com/repos/jlmucb/cloudproxy/issues{/number}","pulls_url":"https://api.github.com/repos/jlmucb/cloudproxy/pulls{/number}","milestones_url":"https://api.github.com/repos/jlmucb/cloudproxy/milestones{/number}","notifications_url":"https://api.github.com/repos/jlmucb/cloudproxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlmucb/cloudproxy/labels{/name}","releases_url":"https://api.github.com/repos/jlmucb/cloudproxy/releases{/id}","created_at":"2014-08-08T17:04:43Z","updated_at":"2015-05-26T23:49:37Z","pushed_at":"2015-07-22T17:51:32Z","git_url":"git://github.com/jlmucb/cloudproxy.git","ssh_url":"git@github.com:jlmucb/cloudproxy.git","clone_url":"https://github.com/jlmucb/cloudproxy.git","svn_url":"https://github.com/jlmucb/cloudproxy","homepage":null,"size":26886,"stargazers_count":20,"watchers_count":20,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jlmucb/cloudproxy/pulls/10"},"html":{"href":"https://github.com/jlmucb/cloudproxy/pull/10"},"issue":{"href":"https://api.github.com/repos/jlmucb/cloudproxy/issues/10"},"comments":{"href":"https://api.github.com/repos/jlmucb/cloudproxy/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/jlmucb/cloudproxy/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/jlmucb/cloudproxy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jlmucb/cloudproxy/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/jlmucb/cloudproxy/statuses/e77845bf58ee334cbbd526f811608ca49fd5e21a"}}}}