{"action":"opened","number":75,"pull_request":{"url":"https://api.github.com/repos/flux-framework/flux-security/pulls/75","id":192865290,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyODY1Mjkw","html_url":"https://github.com/flux-framework/flux-security/pull/75","diff_url":"https://github.com/flux-framework/flux-security/pull/75.diff","patch_url":"https://github.com/flux-framework/flux-security/pull/75.patch","issue_url":"https://api.github.com/repos/flux-framework/flux-security/issues/75","number":75,"state":"open","locked":false,"title":"sign: add mechanism arguments","user":{"login":"garlick","id":169947,"node_id":"MDQ6VXNlcjE2OTk0Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/169947?v=4","gravatar_id":"","url":"https://api.github.com/users/garlick","html_url":"https://github.com/garlick","followers_url":"https://api.github.com/users/garlick/followers","following_url":"https://api.github.com/users/garlick/following{/other_user}","gists_url":"https://api.github.com/users/garlick/gists{/gist_id}","starred_url":"https://api.github.com/users/garlick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garlick/subscriptions","organizations_url":"https://api.github.com/users/garlick/orgs","repos_url":"https://api.github.com/users/garlick/repos","events_url":"https://api.github.com/users/garlick/events{/privacy}","received_events_url":"https://api.github.com/users/garlick/received_events","type":"User","site_admin":false},"body":"As discussed in #62, this PR adds a mechanism argument to `flux_sign_wrap()`:\r\n```c\r\n// mech_type=NULL means use configured 'default-type'\r\nconst char *flux_sign_wrap (flux_security_t *ctx,\r\n                            const void *payload, int payloadsz,\r\n                            const char *mech_type,\r\n                            int flags);\r\n```\r\nand a new function `flux_sign_unwrap_anymech()`:\r\n```c\r\nint flux_sign_unwrap_anymech (flux_security_t *ctx, const char *input,\r\n                              const void **payload, int *payloadsz,\r\n                              const char **mech_type,\r\n                              int64_t *userid, int flags);\r\n```\r\n\r\nI need to add some tests.","created_at":"2018-06-05T23:43:54Z","updated_at":"2018-06-05T23:43:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/flux-framework/flux-security/pulls/75/commits","review_comments_url":"https://api.github.com/repos/flux-framework/flux-security/pulls/75/comments","review_comment_url":"https://api.github.com/repos/flux-framework/flux-security/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flux-framework/flux-security/issues/75/comments","statuses_url":"https://api.github.com/repos/flux-framework/flux-security/statuses/d1fc4aae1b21fe1b74bc4174a238beea2185cbbd","head":{"label":"garlick:mechanism","ref":"mechanism","sha":"d1fc4aae1b21fe1b74bc4174a238beea2185cbbd","user":{"login":"garlick","id":169947,"node_id":"MDQ6VXNlcjE2OTk0Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/169947?v=4","gravatar_id":"","url":"https://api.github.com/users/garlick","html_url":"https://github.com/garlick","followers_url":"https://api.github.com/users/garlick/followers","following_url":"https://api.github.com/users/garlick/following{/other_user}","gists_url":"https://api.github.com/users/garlick/gists{/gist_id}","starred_url":"https://api.github.com/users/garlick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garlick/subscriptions","organizations_url":"https://api.github.com/users/garlick/orgs","repos_url":"https://api.github.com/users/garlick/repos","events_url":"https://api.github.com/users/garlick/events{/privacy}","received_events_url":"https://api.github.com/users/garlick/received_events","type":"User","site_admin":false},"repo":{"id":111010566,"node_id":"MDEwOlJlcG9zaXRvcnkxMTEwMTA1NjY=","name":"flux-security","full_name":"garlick/flux-security","owner":{"login":"garlick","id":169947,"node_id":"MDQ6VXNlcjE2OTk0Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/169947?v=4","gravatar_id":"","url":"https://api.github.com/users/garlick","html_url":"https://github.com/garlick","followers_url":"https://api.github.com/users/garlick/followers","following_url":"https://api.github.com/users/garlick/following{/other_user}","gists_url":"https://api.github.com/users/garlick/gists{/gist_id}","starred_url":"https://api.github.com/users/garlick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garlick/subscriptions","organizations_url":"https://api.github.com/users/garlick/orgs","repos_url":"https://api.github.com/users/garlick/repos","events_url":"https://api.github.com/users/garlick/events{/privacy}","received_events_url":"https://api.github.com/users/garlick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/garlick/flux-security","description":"Independent project for Flux security code and APIs.","fork":true,"url":"https://api.github.com/repos/garlick/flux-security","forks_url":"https://api.github.com/repos/garlick/flux-security/forks","keys_url":"https://api.github.com/repos/garlick/flux-security/keys{/key_id}","collaborators_url":"https://api.github.com/repos/garlick/flux-security/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/garlick/flux-security/teams","hooks_url":"https://api.github.com/repos/garlick/flux-security/hooks","issue_events_url":"https://api.github.com/repos/garlick/flux-security/issues/events{/number}","events_url":"https://api.github.com/repos/garlick/flux-security/events","assignees_url":"https://api.github.com/repos/garlick/flux-security/assignees{/user}","branches_url":"https://api.github.com/repos/garlick/flux-security/branches{/branch}","tags_url":"https://api.github.com/repos/garlick/flux-security/tags","blobs_url":"https://api.github.com/repos/garlick/flux-security/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/garlick/flux-security/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/garlick/flux-security/git/refs{/sha}","trees_url":"https://api.github.com/repos/garlick/flux-security/git/trees{/sha}","statuses_url":"https://api.github.com/repos/garlick/flux-security/statuses/{sha}","languages_url":"https://api.github.com/repos/garlick/flux-security/languages","stargazers_url":"https://api.github.com/repos/garlick/flux-security/stargazers","contributors_url":"https://api.github.com/repos/garlick/flux-security/contributors","subscribers_url":"https://api.github.com/repos/garlick/flux-security/subscribers","subscription_url":"https://api.github.com/repos/garlick/flux-security/subscription","commits_url":"https://api.github.com/repos/garlick/flux-security/commits{/sha}","git_commits_url":"https://api.github.com/repos/garlick/flux-security/git/commits{/sha}","comments_url":"https://api.github.com/repos/garlick/flux-security/comments{/number}","issue_comment_url":"https://api.github.com/repos/garlick/flux-security/issues/comments{/number}","contents_url":"https://api.github.com/repos/garlick/flux-security/contents/{+path}","compare_url":"https://api.github.com/repos/garlick/flux-security/compare/{base}...{head}","merges_url":"https://api.github.com/repos/garlick/flux-security/merges","archive_url":"https://api.github.com/repos/garlick/flux-security/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/garlick/flux-security/downloads","issues_url":"https://api.github.com/repos/garlick/flux-security/issues{/number}","pulls_url":"https://api.github.com/repos/garlick/flux-security/pulls{/number}","milestones_url":"https://api.github.com/repos/garlick/flux-security/milestones{/number}","notifications_url":"https://api.github.com/repos/garlick/flux-security/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/garlick/flux-security/labels{/name}","releases_url":"https://api.github.com/repos/garlick/flux-security/releases{/id}","deployments_url":"https://api.github.com/repos/garlick/flux-security/deployments","created_at":"2017-11-16T19:02:11Z","updated_at":"2017-11-18T00:26:31Z","pushed_at":"2018-06-05T23:41:07Z","git_url":"git://github.com/garlick/flux-security.git","ssh_url":"git@github.com:garlick/flux-security.git","clone_url":"https://github.com/garlick/flux-security.git","svn_url":"https://github.com/garlick/flux-security","homepage":null,"size":415,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"flux-framework:master","ref":"master","sha":"b11e525fb39a2aa111e3c5921baf34e114e9c062","user":{"login":"flux-framework","id":7545483,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc1NDU0ODM=","avatar_url":"https://avatars2.githubusercontent.com/u/7545483?v=4","gravatar_id":"","url":"https://api.github.com/users/flux-framework","html_url":"https://github.com/flux-framework","followers_url":"https://api.github.com/users/flux-framework/followers","following_url":"https://api.github.com/users/flux-framework/following{/other_user}","gists_url":"https://api.github.com/users/flux-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/flux-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flux-framework/subscriptions","organizations_url":"https://api.github.com/users/flux-framework/orgs","repos_url":"https://api.github.com/users/flux-framework/repos","events_url":"https://api.github.com/users/flux-framework/events{/privacy}","received_events_url":"https://api.github.com/users/flux-framework/received_events","type":"Organization","site_admin":false},"repo":{"id":105558542,"node_id":"MDEwOlJlcG9zaXRvcnkxMDU1NTg1NDI=","name":"flux-security","full_name":"flux-framework/flux-security","owner":{"login":"flux-framework","id":7545483,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc1NDU0ODM=","avatar_url":"https://avatars2.githubusercontent.com/u/7545483?v=4","gravatar_id":"","url":"https://api.github.com/users/flux-framework","html_url":"https://github.com/flux-framework","followers_url":"https://api.github.com/users/flux-framework/followers","following_url":"https://api.github.com/users/flux-framework/following{/other_user}","gists_url":"https://api.github.com/users/flux-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/flux-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flux-framework/subscriptions","organizations_url":"https://api.github.com/users/flux-framework/orgs","repos_url":"https://api.github.com/users/flux-framework/repos","events_url":"https://api.github.com/users/flux-framework/events{/privacy}","received_events_url":"https://api.github.com/users/flux-framework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/flux-framework/flux-security","description":"Independent project for Flux security code and APIs.","fork":false,"url":"https://api.github.com/repos/flux-framework/flux-security","forks_url":"https://api.github.com/repos/flux-framework/flux-security/forks","keys_url":"https://api.github.com/repos/flux-framework/flux-security/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flux-framework/flux-security/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flux-framework/flux-security/teams","hooks_url":"https://api.github.com/repos/flux-framework/flux-security/hooks","issue_events_url":"https://api.github.com/repos/flux-framework/flux-security/issues/events{/number}","events_url":"https://api.github.com/repos/flux-framework/flux-security/events","assignees_url":"https://api.github.com/repos/flux-framework/flux-security/assignees{/user}","branches_url":"https://api.github.com/repos/flux-framework/flux-security/branches{/branch}","tags_url":"https://api.github.com/repos/flux-framework/flux-security/tags","blobs_url":"https://api.github.com/repos/flux-framework/flux-security/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flux-framework/flux-security/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flux-framework/flux-security/git/refs{/sha}","trees_url":"https://api.github.com/repos/flux-framework/flux-security/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flux-framework/flux-security/statuses/{sha}","languages_url":"https://api.github.com/repos/flux-framework/flux-security/languages","stargazers_url":"https://api.github.com/repos/flux-framework/flux-security/stargazers","contributors_url":"https://api.github.com/repos/flux-framework/flux-security/contributors","subscribers_url":"https://api.github.com/repos/flux-framework/flux-security/subscribers","subscription_url":"https://api.github.com/repos/flux-framework/flux-security/subscription","commits_url":"https://api.github.com/repos/flux-framework/flux-security/commits{/sha}","git_commits_url":"https://api.github.com/repos/flux-framework/flux-security/git/commits{/sha}","comments_url":"https://api.github.com/repos/flux-framework/flux-security/comments{/number}","issue_comment_url":"https://api.github.com/repos/flux-framework/flux-security/issues/comments{/number}","contents_url":"https://api.github.com/repos/flux-framework/flux-security/contents/{+path}","compare_url":"https://api.github.com/repos/flux-framework/flux-security/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flux-framework/flux-security/merges","archive_url":"https://api.github.com/repos/flux-framework/flux-security/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flux-framework/flux-security/downloads","issues_url":"https://api.github.com/repos/flux-framework/flux-security/issues{/number}","pulls_url":"https://api.github.com/repos/flux-framework/flux-security/pulls{/number}","milestones_url":"https://api.github.com/repos/flux-framework/flux-security/milestones{/number}","notifications_url":"https://api.github.com/repos/flux-framework/flux-security/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flux-framework/flux-security/labels{/name}","releases_url":"https://api.github.com/repos/flux-framework/flux-security/releases{/id}","deployments_url":"https://api.github.com/repos/flux-framework/flux-security/deployments","created_at":"2017-10-02T16:38:49Z","updated_at":"2018-05-23T20:21:10Z","pushed_at":"2018-05-23T20:21:08Z","git_url":"git://github.com/flux-framework/flux-security.git","ssh_url":"git@github.com:flux-framework/flux-security.git","clone_url":"https://github.com/flux-framework/flux-security.git","svn_url":"https://github.com/flux-framework/flux-security","homepage":null,"size":410,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":3,"open_issues":18,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flux-framework/flux-security/pulls/75"},"html":{"href":"https://github.com/flux-framework/flux-security/pull/75"},"issue":{"href":"https://api.github.com/repos/flux-framework/flux-security/issues/75"},"comments":{"href":"https://api.github.com/repos/flux-framework/flux-security/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/flux-framework/flux-security/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/flux-framework/flux-security/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flux-framework/flux-security/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/flux-framework/flux-security/statuses/d1fc4aae1b21fe1b74bc4174a238beea2185cbbd"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":4,"additions":118,"deletions":53,"changed_files":8}}
{"actor":{"display_login":"garlick"}}