{"action":"created","issue":{"url":"https://api.github.com/repos/OpenSC/libp11/issues/111","repository_url":"https://api.github.com/repos/OpenSC/libp11","labels_url":"https://api.github.com/repos/OpenSC/libp11/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/OpenSC/libp11/issues/111/comments","events_url":"https://api.github.com/repos/OpenSC/libp11/issues/111/events","html_url":"https://github.com/OpenSC/libp11/issues/111","id":180172058,"number":111,"title":"EVP_PKEY refcount leak","user":{"login":"dwmw2","id":911239,"avatar_url":"https://avatars.githubusercontent.com/u/911239?v=3","gravatar_id":"","url":"https://api.github.com/users/dwmw2","html_url":"https://github.com/dwmw2","followers_url":"https://api.github.com/users/dwmw2/followers","following_url":"https://api.github.com/users/dwmw2/following{/other_user}","gists_url":"https://api.github.com/users/dwmw2/gists{/gist_id}","starred_url":"https://api.github.com/users/dwmw2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwmw2/subscriptions","organizations_url":"https://api.github.com/users/dwmw2/orgs","repos_url":"https://api.github.com/users/dwmw2/repos","events_url":"https://api.github.com/users/dwmw2/events{/privacy}","received_events_url":"https://api.github.com/users/dwmw2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-29T21:49:17Z","updated_at":"2016-09-29T22:19:37Z","closed_at":null,"body":"Since commit 70eaa8855 we have a rampant `EVP_PKEY` leak. Testing with something like:\r\n```\r\nopenssl pkeyutl -engine pkcs11 -inkey 'pkcs11:token=openconnect-test;id=%01;pin-value=1234' \\\r\n     -sign -in foo -out bar  -keyform engine\r\n```\r\n\r\nEvery call to `pkcs11_rsa()` will increase the refcount on the `EVP_PKEY`."},"comment":{"url":"https://api.github.com/repos/OpenSC/libp11/issues/comments/250608170","html_url":"https://github.com/OpenSC/libp11/issues/111#issuecomment-250608170","issue_url":"https://api.github.com/repos/OpenSC/libp11/issues/111","id":250608170,"user":{"login":"dwmw2","id":911239,"avatar_url":"https://avatars.githubusercontent.com/u/911239?v=3","gravatar_id":"","url":"https://api.github.com/users/dwmw2","html_url":"https://github.com/dwmw2","followers_url":"https://api.github.com/users/dwmw2/followers","following_url":"https://api.github.com/users/dwmw2/following{/other_user}","gists_url":"https://api.github.com/users/dwmw2/gists{/gist_id}","starred_url":"https://api.github.com/users/dwmw2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwmw2/subscriptions","organizations_url":"https://api.github.com/users/dwmw2/orgs","repos_url":"https://api.github.com/users/dwmw2/repos","events_url":"https://api.github.com/users/dwmw2/events{/privacy}","received_events_url":"https://api.github.com/users/dwmw2/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T22:19:37Z","updated_at":"2016-09-29T22:19:37Z","body":"Do I read this correctly that we only ever destroy the `PKCS11_KEY` from `pkcs11_destroy_keys()` where we do it for a whole token at a time? "}}
{"actor":{"display_login":"dwmw2"}}