{"action":"closed","number":297,"pull_request":{"url":"https://api.github.com/repos/mirleft/ocaml-tls/pulls/297","id":44579237,"html_url":"https://github.com/mirleft/ocaml-tls/pull/297","diff_url":"https://github.com/mirleft/ocaml-tls/pull/297.diff","patch_url":"https://github.com/mirleft/ocaml-tls/pull/297.patch","issue_url":"https://api.github.com/repos/mirleft/ocaml-tls/issues/297","number":297,"state":"closed","locked":false,"title":"expose own_random and peer_random in epoch_data","user":{"login":"cfcs","id":9653993,"avatar_url":"https://avatars.githubusercontent.com/u/9653993?v=3","gravatar_id":"","url":"https://api.github.com/users/cfcs","html_url":"https://github.com/cfcs","followers_url":"https://api.github.com/users/cfcs/followers","following_url":"https://api.github.com/users/cfcs/following{/other_user}","gists_url":"https://api.github.com/users/cfcs/gists{/gist_id}","starred_url":"https://api.github.com/users/cfcs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfcs/subscriptions","organizations_url":"https://api.github.com/users/cfcs/orgs","repos_url":"https://api.github.com/users/cfcs/repos","events_url":"https://api.github.com/users/cfcs/events{/privacy}","received_events_url":"https://api.github.com/users/cfcs/received_events","type":"User","site_admin":false},"body":"Expose `client_random` and `server_random` from `lib/state.ml` to allow extracting the authenticated timestamp from a remote party:\r\n\r\n```ocaml\r\ntype session_data = {\r\n  server_random    : Cstruct.t ; (* 32 bytes random from the server hello *)\r\n  client_random    : Cstruct.t ; (* 32 bytes random from the client hello *)\r\n  (* [...] *)\r\n}\r\n```\r\n\r\nin `epoch_data` as `own_random` and `peer_random`, see `lib/engine.mli` ->\r\n```ocaml\r\nval epoch : (state : State.state) -> (epoch : epoch_data)`","created_at":"2015-09-09T17:42:51Z","updated_at":"2015-10-01T17:31:12Z","closed_at":"2015-10-01T17:31:12Z","merged_at":"2015-10-01T17:31:12Z","merge_commit_sha":"ee1347d4ddc3779dcfd1cac36fc80d395ec49742","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mirleft/ocaml-tls/pulls/297/commits","review_comments_url":"https://api.github.com/repos/mirleft/ocaml-tls/pulls/297/comments","review_comment_url":"https://api.github.com/repos/mirleft/ocaml-tls/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mirleft/ocaml-tls/issues/297/comments","statuses_url":"https://api.github.com/repos/mirleft/ocaml-tls/statuses/bbb60ef043a416d4d44774bab8a27212dcd3a20a","head":{"label":"cfcs:expose_serverhello_time","ref":"expose_serverhello_time","sha":"bbb60ef043a416d4d44774bab8a27212dcd3a20a","user":{"login":"cfcs","id":9653993,"avatar_url":"https://avatars.githubusercontent.com/u/9653993?v=3","gravatar_id":"","url":"https://api.github.com/users/cfcs","html_url":"https://github.com/cfcs","followers_url":"https://api.github.com/users/cfcs/followers","following_url":"https://api.github.com/users/cfcs/following{/other_user}","gists_url":"https://api.github.com/users/cfcs/gists{/gist_id}","starred_url":"https://api.github.com/users/cfcs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfcs/subscriptions","organizations_url":"https://api.github.com/users/cfcs/orgs","repos_url":"https://api.github.com/users/cfcs/repos","events_url":"https://api.github.com/users/cfcs/events{/privacy}","received_events_url":"https://api.github.com/users/cfcs/received_events","type":"User","site_admin":false},"repo":{"id":42194049,"name":"ocaml-tls","full_name":"cfcs/ocaml-tls","owner":{"login":"cfcs","id":9653993,"avatar_url":"https://avatars.githubusercontent.com/u/9653993?v=3","gravatar_id":"","url":"https://api.github.com/users/cfcs","html_url":"https://github.com/cfcs","followers_url":"https://api.github.com/users/cfcs/followers","following_url":"https://api.github.com/users/cfcs/following{/other_user}","gists_url":"https://api.github.com/users/cfcs/gists{/gist_id}","starred_url":"https://api.github.com/users/cfcs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfcs/subscriptions","organizations_url":"https://api.github.com/users/cfcs/orgs","repos_url":"https://api.github.com/users/cfcs/repos","events_url":"https://api.github.com/users/cfcs/events{/privacy}","received_events_url":"https://api.github.com/users/cfcs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cfcs/ocaml-tls","description":"TLS in pure OCaml","fork":true,"url":"https://api.github.com/repos/cfcs/ocaml-tls","forks_url":"https://api.github.com/repos/cfcs/ocaml-tls/forks","keys_url":"https://api.github.com/repos/cfcs/ocaml-tls/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cfcs/ocaml-tls/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cfcs/ocaml-tls/teams","hooks_url":"https://api.github.com/repos/cfcs/ocaml-tls/hooks","issue_events_url":"https://api.github.com/repos/cfcs/ocaml-tls/issues/events{/number}","events_url":"https://api.github.com/repos/cfcs/ocaml-tls/events","assignees_url":"https://api.github.com/repos/cfcs/ocaml-tls/assignees{/user}","branches_url":"https://api.github.com/repos/cfcs/ocaml-tls/branches{/branch}","tags_url":"https://api.github.com/repos/cfcs/ocaml-tls/tags","blobs_url":"https://api.github.com/repos/cfcs/ocaml-tls/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cfcs/ocaml-tls/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cfcs/ocaml-tls/git/refs{/sha}","trees_url":"https://api.github.com/repos/cfcs/ocaml-tls/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cfcs/ocaml-tls/statuses/{sha}","languages_url":"https://api.github.com/repos/cfcs/ocaml-tls/languages","stargazers_url":"https://api.github.com/repos/cfcs/ocaml-tls/stargazers","contributors_url":"https://api.github.com/repos/cfcs/ocaml-tls/contributors","subscribers_url":"https://api.github.com/repos/cfcs/ocaml-tls/subscribers","subscription_url":"https://api.github.com/repos/cfcs/ocaml-tls/subscription","commits_url":"https://api.github.com/repos/cfcs/ocaml-tls/commits{/sha}","git_commits_url":"https://api.github.com/repos/cfcs/ocaml-tls/git/commits{/sha}","comments_url":"https://api.github.com/repos/cfcs/ocaml-tls/comments{/number}","issue_comment_url":"https://api.github.com/repos/cfcs/ocaml-tls/issues/comments{/number}","contents_url":"https://api.github.com/repos/cfcs/ocaml-tls/contents/{+path}","compare_url":"https://api.github.com/repos/cfcs/ocaml-tls/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cfcs/ocaml-tls/merges","archive_url":"https://api.github.com/repos/cfcs/ocaml-tls/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cfcs/ocaml-tls/downloads","issues_url":"https://api.github.com/repos/cfcs/ocaml-tls/issues{/number}","pulls_url":"https://api.github.com/repos/cfcs/ocaml-tls/pulls{/number}","milestones_url":"https://api.github.com/repos/cfcs/ocaml-tls/milestones{/number}","notifications_url":"https://api.github.com/repos/cfcs/ocaml-tls/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cfcs/ocaml-tls/labels{/name}","releases_url":"https://api.github.com/repos/cfcs/ocaml-tls/releases{/id}","created_at":"2015-09-09T17:37:28Z","updated_at":"2015-09-09T17:37:29Z","pushed_at":"2015-09-09T17:37:44Z","git_url":"git://github.com/cfcs/ocaml-tls.git","ssh_url":"git@github.com:cfcs/ocaml-tls.git","clone_url":"https://github.com/cfcs/ocaml-tls.git","svn_url":"https://github.com/cfcs/ocaml-tls","homepage":"","size":2604,"stargazers_count":0,"watchers_count":0,"language":"OCaml","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mirleft:master","ref":"master","sha":"372444939a3dd2093eadf8f2c528b069496eb3ed","user":{"login":"mirleft","id":6704925,"avatar_url":"https://avatars.githubusercontent.com/u/6704925?v=3","gravatar_id":"","url":"https://api.github.com/users/mirleft","html_url":"https://github.com/mirleft","followers_url":"https://api.github.com/users/mirleft/followers","following_url":"https://api.github.com/users/mirleft/following{/other_user}","gists_url":"https://api.github.com/users/mirleft/gists{/gist_id}","starred_url":"https://api.github.com/users/mirleft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirleft/subscriptions","organizations_url":"https://api.github.com/users/mirleft/orgs","repos_url":"https://api.github.com/users/mirleft/repos","events_url":"https://api.github.com/users/mirleft/events{/privacy}","received_events_url":"https://api.github.com/users/mirleft/received_events","type":"Organization","site_admin":false},"repo":{"id":16819866,"name":"ocaml-tls","full_name":"mirleft/ocaml-tls","owner":{"login":"mirleft","id":6704925,"avatar_url":"https://avatars.githubusercontent.com/u/6704925?v=3","gravatar_id":"","url":"https://api.github.com/users/mirleft","html_url":"https://github.com/mirleft","followers_url":"https://api.github.com/users/mirleft/followers","following_url":"https://api.github.com/users/mirleft/following{/other_user}","gists_url":"https://api.github.com/users/mirleft/gists{/gist_id}","starred_url":"https://api.github.com/users/mirleft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirleft/subscriptions","organizations_url":"https://api.github.com/users/mirleft/orgs","repos_url":"https://api.github.com/users/mirleft/repos","events_url":"https://api.github.com/users/mirleft/events{/privacy}","received_events_url":"https://api.github.com/users/mirleft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mirleft/ocaml-tls","description":"TLS in pure OCaml","fork":false,"url":"https://api.github.com/repos/mirleft/ocaml-tls","forks_url":"https://api.github.com/repos/mirleft/ocaml-tls/forks","keys_url":"https://api.github.com/repos/mirleft/ocaml-tls/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mirleft/ocaml-tls/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mirleft/ocaml-tls/teams","hooks_url":"https://api.github.com/repos/mirleft/ocaml-tls/hooks","issue_events_url":"https://api.github.com/repos/mirleft/ocaml-tls/issues/events{/number}","events_url":"https://api.github.com/repos/mirleft/ocaml-tls/events","assignees_url":"https://api.github.com/repos/mirleft/ocaml-tls/assignees{/user}","branches_url":"https://api.github.com/repos/mirleft/ocaml-tls/branches{/branch}","tags_url":"https://api.github.com/repos/mirleft/ocaml-tls/tags","blobs_url":"https://api.github.com/repos/mirleft/ocaml-tls/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mirleft/ocaml-tls/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mirleft/ocaml-tls/git/refs{/sha}","trees_url":"https://api.github.com/repos/mirleft/ocaml-tls/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mirleft/ocaml-tls/statuses/{sha}","languages_url":"https://api.github.com/repos/mirleft/ocaml-tls/languages","stargazers_url":"https://api.github.com/repos/mirleft/ocaml-tls/stargazers","contributors_url":"https://api.github.com/repos/mirleft/ocaml-tls/contributors","subscribers_url":"https://api.github.com/repos/mirleft/ocaml-tls/subscribers","subscription_url":"https://api.github.com/repos/mirleft/ocaml-tls/subscription","commits_url":"https://api.github.com/repos/mirleft/ocaml-tls/commits{/sha}","git_commits_url":"https://api.github.com/repos/mirleft/ocaml-tls/git/commits{/sha}","comments_url":"https://api.github.com/repos/mirleft/ocaml-tls/comments{/number}","issue_comment_url":"https://api.github.com/repos/mirleft/ocaml-tls/issues/comments{/number}","contents_url":"https://api.github.com/repos/mirleft/ocaml-tls/contents/{+path}","compare_url":"https://api.github.com/repos/mirleft/ocaml-tls/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mirleft/ocaml-tls/merges","archive_url":"https://api.github.com/repos/mirleft/ocaml-tls/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mirleft/ocaml-tls/downloads","issues_url":"https://api.github.com/repos/mirleft/ocaml-tls/issues{/number}","pulls_url":"https://api.github.com/repos/mirleft/ocaml-tls/pulls{/number}","milestones_url":"https://api.github.com/repos/mirleft/ocaml-tls/milestones{/number}","notifications_url":"https://api.github.com/repos/mirleft/ocaml-tls/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mirleft/ocaml-tls/labels{/name}","releases_url":"https://api.github.com/repos/mirleft/ocaml-tls/releases{/id}","created_at":"2014-02-13T22:45:01Z","updated_at":"2015-09-26T21:03:52Z","pushed_at":"2015-10-01T17:31:12Z","git_url":"git://github.com/mirleft/ocaml-tls.git","ssh_url":"git@github.com:mirleft/ocaml-tls.git","clone_url":"https://github.com/mirleft/ocaml-tls.git","svn_url":"https://github.com/mirleft/ocaml-tls","homepage":"","size":5871,"stargazers_count":128,"watchers_count":128,"language":"OCaml","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":16,"mirror_url":null,"open_issues_count":9,"forks":16,"open_issues":9,"watchers":128,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mirleft/ocaml-tls/pulls/297"},"html":{"href":"https://github.com/mirleft/ocaml-tls/pull/297"},"issue":{"href":"https://api.github.com/repos/mirleft/ocaml-tls/issues/297"},"comments":{"href":"https://api.github.com/repos/mirleft/ocaml-tls/issues/297/comments"},"review_comments":{"href":"https://api.github.com/repos/mirleft/ocaml-tls/pulls/297/comments"},"review_comment":{"href":"https://api.github.com/repos/mirleft/ocaml-tls/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mirleft/ocaml-tls/pulls/297/commits"},"statuses":{"href":"https://api.github.com/repos/mirleft/ocaml-tls/statuses/bbb60ef043a416d4d44774bab8a27212dcd3a20a"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"pqwy","id":325535,"avatar_url":"https://avatars.githubusercontent.com/u/325535?v=3","gravatar_id":"","url":"https://api.github.com/users/pqwy","html_url":"https://github.com/pqwy","followers_url":"https://api.github.com/users/pqwy/followers","following_url":"https://api.github.com/users/pqwy/following{/other_user}","gists_url":"https://api.github.com/users/pqwy/gists{/gist_id}","starred_url":"https://api.github.com/users/pqwy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pqwy/subscriptions","organizations_url":"https://api.github.com/users/pqwy/orgs","repos_url":"https://api.github.com/users/pqwy/repos","events_url":"https://api.github.com/users/pqwy/events{/privacy}","received_events_url":"https://api.github.com/users/pqwy/received_events","type":"User","site_admin":false},"comments":5,"review_comments":0,"commits":1,"additions":9,"deletions":0,"changed_files":2}}