{"action":"created","comment":{"url":"https://api.github.com/repos/kaaproject/kaa/pulls/comments/78178872","id":78178872,"diff_hunk":"@@ -60,4 +62,20 @@ kaa_error_t aes_encrypt_decrypt(int mode, const uint8_t *input, size_t input_siz\n int rsa_sign(mbedtls_pk_context *pk, const uint8_t *input, size_t input_size,\n         uint8_t *output, size_t *output_size);\n \n+/**\n+ * Encrypt data with pubcic RSA key.\n+ *\n+ * @param[in]   key         Public RSA key.\n+ * @param[in]   key_size    Size of public RSA key.\n+ * @param[in]   input       Input data.\n+ * @param[in]   input_len   Size of input_data.\n+ * @param[out]  output      Pointer to buffer where the encrypted data will be stored.\n+ *\n+ * @return The error code.\n+ * @retval KAA_ERR_NONE Success\n+ * @retval KAA_ERR_INVALID_PUBKEY The key is invalid or encryption has failed.","path":"client/client-multi/client-c/src/kaa/utilities/kaa_aes_rsa.h","position":72,"original_position":60,"commit_id":"4b74f2fc2c1a276919ca2e51ef0b9c9effb8784f","original_commit_id":"baa5c841bc09bfb372d031b0e2d21e620f97118a","user":{"login":"RostakaGmfun","id":5872727,"avatar_url":"https://avatars.githubusercontent.com/u/5872727?v=3","gravatar_id":"","url":"https://api.github.com/users/RostakaGmfun","html_url":"https://github.com/RostakaGmfun","followers_url":"https://api.github.com/users/RostakaGmfun/followers","following_url":"https://api.github.com/users/RostakaGmfun/following{/other_user}","gists_url":"https://api.github.com/users/RostakaGmfun/gists{/gist_id}","starred_url":"https://api.github.com/users/RostakaGmfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RostakaGmfun/subscriptions","organizations_url":"https://api.github.com/users/RostakaGmfun/orgs","repos_url":"https://api.github.com/users/RostakaGmfun/repos","events_url":"https://api.github.com/users/RostakaGmfun/events{/privacy}","received_events_url":"https://api.github.com/users/RostakaGmfun/received_events","type":"User","site_admin":false},"body":"In this case new error code should be introduced","created_at":"2016-09-09T13:26:01Z","updated_at":"2016-09-09T13:26:01Z","html_url":"https://github.com/kaaproject/kaa/pull/1004#discussion_r78178872","pull_request_url":"https://api.github.com/repos/kaaproject/kaa/pulls/1004","_links":{"self":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/comments/78178872"},"html":{"href":"https://github.com/kaaproject/kaa/pull/1004#discussion_r78178872"},"pull_request":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/1004"}}},"pull_request":{"url":"https://api.github.com/repos/kaaproject/kaa/pulls/1004","id":82007770,"html_url":"https://github.com/kaaproject/kaa/pull/1004","diff_url":"https://github.com/kaaproject/kaa/pull/1004.diff","patch_url":"https://github.com/kaaproject/kaa/pull/1004.patch","issue_url":"https://api.github.com/repos/kaaproject/kaa/issues/1004","number":1004,"state":"open","locked":false,"title":"KAA-1364: [C SDK] Fix undefined references when encryption is disabled","user":{"login":"RostakaGmfun","id":5872727,"avatar_url":"https://avatars.githubusercontent.com/u/5872727?v=3","gravatar_id":"","url":"https://api.github.com/users/RostakaGmfun","html_url":"https://github.com/RostakaGmfun","followers_url":"https://api.github.com/users/RostakaGmfun/followers","following_url":"https://api.github.com/users/RostakaGmfun/following{/other_user}","gists_url":"https://api.github.com/users/RostakaGmfun/gists{/gist_id}","starred_url":"https://api.github.com/users/RostakaGmfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RostakaGmfun/subscriptions","organizations_url":"https://api.github.com/users/RostakaGmfun/orgs","repos_url":"https://api.github.com/users/RostakaGmfun/repos","events_url":"https://api.github.com/users/RostakaGmfun/events{/privacy}","received_events_url":"https://api.github.com/users/RostakaGmfun/received_events","type":"User","site_admin":false},"body":"/cc @vadimol","created_at":"2016-08-19T16:22:53Z","updated_at":"2016-09-09T13:26:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29a7cbe5bd514c4a1833ee9c010308308805e211","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kaaproject/kaa/pulls/1004/commits","review_comments_url":"https://api.github.com/repos/kaaproject/kaa/pulls/1004/comments","review_comment_url":"https://api.github.com/repos/kaaproject/kaa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaaproject/kaa/issues/1004/comments","statuses_url":"https://api.github.com/repos/kaaproject/kaa/statuses/4b74f2fc2c1a276919ca2e51ef0b9c9effb8784f","head":{"label":"RostakaGmfun:KAA-1364","ref":"KAA-1364","sha":"4b74f2fc2c1a276919ca2e51ef0b9c9effb8784f","user":{"login":"RostakaGmfun","id":5872727,"avatar_url":"https://avatars.githubusercontent.com/u/5872727?v=3","gravatar_id":"","url":"https://api.github.com/users/RostakaGmfun","html_url":"https://github.com/RostakaGmfun","followers_url":"https://api.github.com/users/RostakaGmfun/followers","following_url":"https://api.github.com/users/RostakaGmfun/following{/other_user}","gists_url":"https://api.github.com/users/RostakaGmfun/gists{/gist_id}","starred_url":"https://api.github.com/users/RostakaGmfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RostakaGmfun/subscriptions","organizations_url":"https://api.github.com/users/RostakaGmfun/orgs","repos_url":"https://api.github.com/users/RostakaGmfun/repos","events_url":"https://api.github.com/users/RostakaGmfun/events{/privacy}","received_events_url":"https://api.github.com/users/RostakaGmfun/received_events","type":"User","site_admin":false},"repo":{"id":55242302,"name":"kaa","full_name":"RostakaGmfun/kaa","owner":{"login":"RostakaGmfun","id":5872727,"avatar_url":"https://avatars.githubusercontent.com/u/5872727?v=3","gravatar_id":"","url":"https://api.github.com/users/RostakaGmfun","html_url":"https://github.com/RostakaGmfun","followers_url":"https://api.github.com/users/RostakaGmfun/followers","following_url":"https://api.github.com/users/RostakaGmfun/following{/other_user}","gists_url":"https://api.github.com/users/RostakaGmfun/gists{/gist_id}","starred_url":"https://api.github.com/users/RostakaGmfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RostakaGmfun/subscriptions","organizations_url":"https://api.github.com/users/RostakaGmfun/orgs","repos_url":"https://api.github.com/users/RostakaGmfun/repos","events_url":"https://api.github.com/users/RostakaGmfun/events{/privacy}","received_events_url":"https://api.github.com/users/RostakaGmfun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RostakaGmfun/kaa","description":"Kaa open-source middleware platform for building, managing, and integrating connected products with the Internet of Everything.","fork":true,"url":"https://api.github.com/repos/RostakaGmfun/kaa","forks_url":"https://api.github.com/repos/RostakaGmfun/kaa/forks","keys_url":"https://api.github.com/repos/RostakaGmfun/kaa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RostakaGmfun/kaa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RostakaGmfun/kaa/teams","hooks_url":"https://api.github.com/repos/RostakaGmfun/kaa/hooks","issue_events_url":"https://api.github.com/repos/RostakaGmfun/kaa/issues/events{/number}","events_url":"https://api.github.com/repos/RostakaGmfun/kaa/events","assignees_url":"https://api.github.com/repos/RostakaGmfun/kaa/assignees{/user}","branches_url":"https://api.github.com/repos/RostakaGmfun/kaa/branches{/branch}","tags_url":"https://api.github.com/repos/RostakaGmfun/kaa/tags","blobs_url":"https://api.github.com/repos/RostakaGmfun/kaa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RostakaGmfun/kaa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RostakaGmfun/kaa/git/refs{/sha}","trees_url":"https://api.github.com/repos/RostakaGmfun/kaa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RostakaGmfun/kaa/statuses/{sha}","languages_url":"https://api.github.com/repos/RostakaGmfun/kaa/languages","stargazers_url":"https://api.github.com/repos/RostakaGmfun/kaa/stargazers","contributors_url":"https://api.github.com/repos/RostakaGmfun/kaa/contributors","subscribers_url":"https://api.github.com/repos/RostakaGmfun/kaa/subscribers","subscription_url":"https://api.github.com/repos/RostakaGmfun/kaa/subscription","commits_url":"https://api.github.com/repos/RostakaGmfun/kaa/commits{/sha}","git_commits_url":"https://api.github.com/repos/RostakaGmfun/kaa/git/commits{/sha}","comments_url":"https://api.github.com/repos/RostakaGmfun/kaa/comments{/number}","issue_comment_url":"https://api.github.com/repos/RostakaGmfun/kaa/issues/comments{/number}","contents_url":"https://api.github.com/repos/RostakaGmfun/kaa/contents/{+path}","compare_url":"https://api.github.com/repos/RostakaGmfun/kaa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RostakaGmfun/kaa/merges","archive_url":"https://api.github.com/repos/RostakaGmfun/kaa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RostakaGmfun/kaa/downloads","issues_url":"https://api.github.com/repos/RostakaGmfun/kaa/issues{/number}","pulls_url":"https://api.github.com/repos/RostakaGmfun/kaa/pulls{/number}","milestones_url":"https://api.github.com/repos/RostakaGmfun/kaa/milestones{/number}","notifications_url":"https://api.github.com/repos/RostakaGmfun/kaa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RostakaGmfun/kaa/labels{/name}","releases_url":"https://api.github.com/repos/RostakaGmfun/kaa/releases{/id}","deployments_url":"https://api.github.com/repos/RostakaGmfun/kaa/deployments","created_at":"2016-04-01T15:28:29Z","updated_at":"2016-04-01T15:28:38Z","pushed_at":"2016-09-09T13:19:28Z","git_url":"git://github.com/RostakaGmfun/kaa.git","ssh_url":"git@github.com:RostakaGmfun/kaa.git","clone_url":"https://github.com/RostakaGmfun/kaa.git","svn_url":"https://github.com/RostakaGmfun/kaa","homepage":"http://www.kaaproject.org","size":137936,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"kaaproject:develop","ref":"develop","sha":"d1259fee3ee36a38b3783498ee9242f0fd9bfe93","user":{"login":"kaaproject","id":6984613,"avatar_url":"https://avatars.githubusercontent.com/u/6984613?v=3","gravatar_id":"","url":"https://api.github.com/users/kaaproject","html_url":"https://github.com/kaaproject","followers_url":"https://api.github.com/users/kaaproject/followers","following_url":"https://api.github.com/users/kaaproject/following{/other_user}","gists_url":"https://api.github.com/users/kaaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/kaaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaaproject/subscriptions","organizations_url":"https://api.github.com/users/kaaproject/orgs","repos_url":"https://api.github.com/users/kaaproject/repos","events_url":"https://api.github.com/users/kaaproject/events{/privacy}","received_events_url":"https://api.github.com/users/kaaproject/received_events","type":"Organization","site_admin":false},"repo":{"id":17839346,"name":"kaa","full_name":"kaaproject/kaa","owner":{"login":"kaaproject","id":6984613,"avatar_url":"https://avatars.githubusercontent.com/u/6984613?v=3","gravatar_id":"","url":"https://api.github.com/users/kaaproject","html_url":"https://github.com/kaaproject","followers_url":"https://api.github.com/users/kaaproject/followers","following_url":"https://api.github.com/users/kaaproject/following{/other_user}","gists_url":"https://api.github.com/users/kaaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/kaaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaaproject/subscriptions","organizations_url":"https://api.github.com/users/kaaproject/orgs","repos_url":"https://api.github.com/users/kaaproject/repos","events_url":"https://api.github.com/users/kaaproject/events{/privacy}","received_events_url":"https://api.github.com/users/kaaproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kaaproject/kaa","description":"Kaa open-source middleware platform for building, managing, and integrating connected products with the Internet of Everything.","fork":false,"url":"https://api.github.com/repos/kaaproject/kaa","forks_url":"https://api.github.com/repos/kaaproject/kaa/forks","keys_url":"https://api.github.com/repos/kaaproject/kaa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaaproject/kaa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaaproject/kaa/teams","hooks_url":"https://api.github.com/repos/kaaproject/kaa/hooks","issue_events_url":"https://api.github.com/repos/kaaproject/kaa/issues/events{/number}","events_url":"https://api.github.com/repos/kaaproject/kaa/events","assignees_url":"https://api.github.com/repos/kaaproject/kaa/assignees{/user}","branches_url":"https://api.github.com/repos/kaaproject/kaa/branches{/branch}","tags_url":"https://api.github.com/repos/kaaproject/kaa/tags","blobs_url":"https://api.github.com/repos/kaaproject/kaa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaaproject/kaa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaaproject/kaa/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaaproject/kaa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaaproject/kaa/statuses/{sha}","languages_url":"https://api.github.com/repos/kaaproject/kaa/languages","stargazers_url":"https://api.github.com/repos/kaaproject/kaa/stargazers","contributors_url":"https://api.github.com/repos/kaaproject/kaa/contributors","subscribers_url":"https://api.github.com/repos/kaaproject/kaa/subscribers","subscription_url":"https://api.github.com/repos/kaaproject/kaa/subscription","commits_url":"https://api.github.com/repos/kaaproject/kaa/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaaproject/kaa/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaaproject/kaa/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaaproject/kaa/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaaproject/kaa/contents/{+path}","compare_url":"https://api.github.com/repos/kaaproject/kaa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaaproject/kaa/merges","archive_url":"https://api.github.com/repos/kaaproject/kaa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaaproject/kaa/downloads","issues_url":"https://api.github.com/repos/kaaproject/kaa/issues{/number}","pulls_url":"https://api.github.com/repos/kaaproject/kaa/pulls{/number}","milestones_url":"https://api.github.com/repos/kaaproject/kaa/milestones{/number}","notifications_url":"https://api.github.com/repos/kaaproject/kaa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaaproject/kaa/labels{/name}","releases_url":"https://api.github.com/repos/kaaproject/kaa/releases{/id}","deployments_url":"https://api.github.com/repos/kaaproject/kaa/deployments","created_at":"2014-03-17T18:48:31Z","updated_at":"2016-09-08T01:43:03Z","pushed_at":"2016-09-09T13:19:29Z","git_url":"git://github.com/kaaproject/kaa.git","ssh_url":"git@github.com:kaaproject/kaa.git","clone_url":"https://github.com/kaaproject/kaa.git","svn_url":"https://github.com/kaaproject/kaa","homepage":"http://www.kaaproject.org","size":152292,"stargazers_count":440,"watchers_count":440,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":157,"mirror_url":null,"open_issues_count":35,"forks":157,"open_issues":35,"watchers":440,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/1004"},"html":{"href":"https://github.com/kaaproject/kaa/pull/1004"},"issue":{"href":"https://api.github.com/repos/kaaproject/kaa/issues/1004"},"comments":{"href":"https://api.github.com/repos/kaaproject/kaa/issues/1004/comments"},"review_comments":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/1004/comments"},"review_comment":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/1004/commits"},"statuses":{"href":"https://api.github.com/repos/kaaproject/kaa/statuses/4b74f2fc2c1a276919ca2e51ef0b9c9effb8784f"}}}}
{"actor":{"display_login":"RostakaGmfun"}}