{"action":"created","comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/22592772","id":22592772,"diff_hunk":"@@ -0,0 +1,74 @@\n+/*\n+ * Copyright (C) 2014 Hochschule für Angewandte Wissenschaften Hamburg (HAW)\n+ * Copyright (C) 2014 Martin Landsmann <Martin.Landsmann@HAW-Hamburg.de>\n+ *\n+ * This file is subject to the terms and conditions of the GNU Lesser\n+ * General Public License v2.1. See the file LICENSE in the top level\n+ * directory for more details.\n+ */\n+\n+/**\n+ * @defgroup    sys_base64 base64 encoder decoder\n+ * @ingroup     sys\n+ * @brief       base64 encoder and decoder\n+ * @{\n+ *\n+ * @file        base64.h\n+ * @brief       encoding and decoding functions for base64\n+ */\n+\n+#ifndef _BASE64_ENCODER_DECODER_H\n+#define _BASE64_ENCODER_DECODER_H\n+\n+#include <stdlib.h>\n+\n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n+#define BASE64_SUCCESS                  (0)     /**< return value for success                       */\n+#define BASE64_ERROR_BUFFER_OUT         (-1)    /**< error value for invalid output buffer pointer  */\n+#define BASE64_ERROR_BUFFER_OUT_SIZE    (-2)    /**< error value for invalid output buffer size     */\n+#define BASE64_ERROR_DATA_IN            (-3)    /**< error value for invalid input buffer           */\n+#define BASE64_ERROR_DATA_IN_SIZE       (-4)    /**< error value for invalid output buffer size     */\n+\n+/**\n+ * @brief           Encodes a given datum to base64 and save the result to the given destination.\n+ * @param[in]       data_in           pointer to the datum to encode\n+ * @param[in]       data_in_size      the size of `data_in`\n+ * @param[out]      base64_out        pointer to store the encoded base64 string\n+ * @param[in,out]   base64_out_size   pointer to the variable containing the size of `base64_out.`\n+                                      This value is overwritten with the estimated size used for the encoded base64 string on BASE64_ERROR_BUFFER_OUT_SIZE.\n+                                      This value is overwritten with the actual used size for the encoded base64 string on BASE64_SUCCESS.","path":"sys/include/base64.h","position":42,"original_position":42,"commit_id":"b545cb118e376e788177c36c187f5b26855b46c7","original_commit_id":"b545cb118e376e788177c36c187f5b26855b46c7","user":{"login":"OlegHahm","id":1590423,"avatar_url":"https://avatars.githubusercontent.com/u/1590423?v=3","gravatar_id":"","url":"https://api.github.com/users/OlegHahm","html_url":"https://github.com/OlegHahm","followers_url":"https://api.github.com/users/OlegHahm/followers","following_url":"https://api.github.com/users/OlegHahm/following{/other_user}","gists_url":"https://api.github.com/users/OlegHahm/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegHahm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegHahm/subscriptions","organizations_url":"https://api.github.com/users/OlegHahm/orgs","repos_url":"https://api.github.com/users/OlegHahm/repos","events_url":"https://api.github.com/users/OlegHahm/events{/privacy}","received_events_url":"https://api.github.com/users/OlegHahm/received_events","type":"User","site_admin":false},"body":"lines too long","created_at":"2015-01-07T15:45:41Z","updated_at":"2015-01-07T15:45:41Z","html_url":"https://github.com/RIOT-OS/RIOT/pull/1717#discussion_r22592772","pull_request_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/1717","_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/22592772"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/1717#discussion_r22592772"},"pull_request":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/1717"}}},"pull_request":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/1717","id":21846714,"html_url":"https://github.com/RIOT-OS/RIOT/pull/1717","diff_url":"https://github.com/RIOT-OS/RIOT/pull/1717.diff","patch_url":"https://github.com/RIOT-OS/RIOT/pull/1717.patch","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/1717","number":1717,"state":"open","locked":false,"title":"base64 encoding/decoding module","user":{"login":"BytesGalore","id":3903215,"avatar_url":"https://avatars.githubusercontent.com/u/3903215?v=3","gravatar_id":"","url":"https://api.github.com/users/BytesGalore","html_url":"https://github.com/BytesGalore","followers_url":"https://api.github.com/users/BytesGalore/followers","following_url":"https://api.github.com/users/BytesGalore/following{/other_user}","gists_url":"https://api.github.com/users/BytesGalore/gists{/gist_id}","starred_url":"https://api.github.com/users/BytesGalore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BytesGalore/subscriptions","organizations_url":"https://api.github.com/users/BytesGalore/orgs","repos_url":"https://api.github.com/users/BytesGalore/repos","events_url":"https://api.github.com/users/BytesGalore/events{/privacy}","received_events_url":"https://api.github.com/users/BytesGalore/received_events","type":"User","site_admin":false},"body":"This module provides encoding and decoding of base64 strings. ","created_at":"2014-09-26T12:59:38Z","updated_at":"2015-01-07T15:45:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49318ccfdee374147a44ef73708f0cdb7f592f54","assignee":{"login":"Kijewski","id":136776,"avatar_url":"https://avatars.githubusercontent.com/u/136776?v=3","gravatar_id":"","url":"https://api.github.com/users/Kijewski","html_url":"https://github.com/Kijewski","followers_url":"https://api.github.com/users/Kijewski/followers","following_url":"https://api.github.com/users/Kijewski/following{/other_user}","gists_url":"https://api.github.com/users/Kijewski/gists{/gist_id}","starred_url":"https://api.github.com/users/Kijewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kijewski/subscriptions","organizations_url":"https://api.github.com/users/Kijewski/orgs","repos_url":"https://api.github.com/users/Kijewski/repos","events_url":"https://api.github.com/users/Kijewski/events{/privacy}","received_events_url":"https://api.github.com/users/Kijewski/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/1717/commits","review_comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/1717/comments","review_comment_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/{number}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/1717/comments","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/b545cb118e376e788177c36c187f5b26855b46c7","head":{"label":"BytesGalore:base64_encoder_decoder","ref":"base64_encoder_decoder","sha":"b545cb118e376e788177c36c187f5b26855b46c7","user":{"login":"BytesGalore","id":3903215,"avatar_url":"https://avatars.githubusercontent.com/u/3903215?v=3","gravatar_id":"","url":"https://api.github.com/users/BytesGalore","html_url":"https://github.com/BytesGalore","followers_url":"https://api.github.com/users/BytesGalore/followers","following_url":"https://api.github.com/users/BytesGalore/following{/other_user}","gists_url":"https://api.github.com/users/BytesGalore/gists{/gist_id}","starred_url":"https://api.github.com/users/BytesGalore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BytesGalore/subscriptions","organizations_url":"https://api.github.com/users/BytesGalore/orgs","repos_url":"https://api.github.com/users/BytesGalore/repos","events_url":"https://api.github.com/users/BytesGalore/events{/privacy}","received_events_url":"https://api.github.com/users/BytesGalore/received_events","type":"User","site_admin":false},"repo":{"id":12703228,"name":"RIOT","full_name":"BytesGalore/RIOT","owner":{"login":"BytesGalore","id":3903215,"avatar_url":"https://avatars.githubusercontent.com/u/3903215?v=3","gravatar_id":"","url":"https://api.github.com/users/BytesGalore","html_url":"https://github.com/BytesGalore","followers_url":"https://api.github.com/users/BytesGalore/followers","following_url":"https://api.github.com/users/BytesGalore/following{/other_user}","gists_url":"https://api.github.com/users/BytesGalore/gists{/gist_id}","starred_url":"https://api.github.com/users/BytesGalore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BytesGalore/subscriptions","organizations_url":"https://api.github.com/users/BytesGalore/orgs","repos_url":"https://api.github.com/users/BytesGalore/repos","events_url":"https://api.github.com/users/BytesGalore/events{/privacy}","received_events_url":"https://api.github.com/users/BytesGalore/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BytesGalore/RIOT","description":"RIOT OS -  The revolutionary IoT OS","fork":true,"url":"https://api.github.com/repos/BytesGalore/RIOT","forks_url":"https://api.github.com/repos/BytesGalore/RIOT/forks","keys_url":"https://api.github.com/repos/BytesGalore/RIOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BytesGalore/RIOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BytesGalore/RIOT/teams","hooks_url":"https://api.github.com/repos/BytesGalore/RIOT/hooks","issue_events_url":"https://api.github.com/repos/BytesGalore/RIOT/issues/events{/number}","events_url":"https://api.github.com/repos/BytesGalore/RIOT/events","assignees_url":"https://api.github.com/repos/BytesGalore/RIOT/assignees{/user}","branches_url":"https://api.github.com/repos/BytesGalore/RIOT/branches{/branch}","tags_url":"https://api.github.com/repos/BytesGalore/RIOT/tags","blobs_url":"https://api.github.com/repos/BytesGalore/RIOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BytesGalore/RIOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BytesGalore/RIOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/BytesGalore/RIOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BytesGalore/RIOT/statuses/{sha}","languages_url":"https://api.github.com/repos/BytesGalore/RIOT/languages","stargazers_url":"https://api.github.com/repos/BytesGalore/RIOT/stargazers","contributors_url":"https://api.github.com/repos/BytesGalore/RIOT/contributors","subscribers_url":"https://api.github.com/repos/BytesGalore/RIOT/subscribers","subscription_url":"https://api.github.com/repos/BytesGalore/RIOT/subscription","commits_url":"https://api.github.com/repos/BytesGalore/RIOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/BytesGalore/RIOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/BytesGalore/RIOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/BytesGalore/RIOT/issues/comments/{number}","contents_url":"https://api.github.com/repos/BytesGalore/RIOT/contents/{+path}","compare_url":"https://api.github.com/repos/BytesGalore/RIOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BytesGalore/RIOT/merges","archive_url":"https://api.github.com/repos/BytesGalore/RIOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BytesGalore/RIOT/downloads","issues_url":"https://api.github.com/repos/BytesGalore/RIOT/issues{/number}","pulls_url":"https://api.github.com/repos/BytesGalore/RIOT/pulls{/number}","milestones_url":"https://api.github.com/repos/BytesGalore/RIOT/milestones{/number}","notifications_url":"https://api.github.com/repos/BytesGalore/RIOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BytesGalore/RIOT/labels{/name}","releases_url":"https://api.github.com/repos/BytesGalore/RIOT/releases{/id}","created_at":"2013-09-09T14:15:30Z","updated_at":"2015-01-05T07:43:40Z","pushed_at":"2015-01-07T07:33:35Z","git_url":"git://github.com/BytesGalore/RIOT.git","ssh_url":"git@github.com:BytesGalore/RIOT.git","clone_url":"https://github.com/BytesGalore/RIOT.git","svn_url":"https://github.com/BytesGalore/RIOT","homepage":"https://github.com/RIOT-OS/RIOT/wiki","size":15089,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"RIOT-OS:master","ref":"master","sha":"b0045b21df1fc6eae291569814a77cc117b8e061","user":{"login":"RIOT-OS","id":3079480,"avatar_url":"https://avatars.githubusercontent.com/u/3079480?v=3","gravatar_id":"","url":"https://api.github.com/users/RIOT-OS","html_url":"https://github.com/RIOT-OS","followers_url":"https://api.github.com/users/RIOT-OS/followers","following_url":"https://api.github.com/users/RIOT-OS/following{/other_user}","gists_url":"https://api.github.com/users/RIOT-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/RIOT-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIOT-OS/subscriptions","organizations_url":"https://api.github.com/users/RIOT-OS/orgs","repos_url":"https://api.github.com/users/RIOT-OS/repos","events_url":"https://api.github.com/users/RIOT-OS/events{/privacy}","received_events_url":"https://api.github.com/users/RIOT-OS/received_events","type":"Organization","site_admin":false},"repo":{"id":7370241,"name":"RIOT","full_name":"RIOT-OS/RIOT","owner":{"login":"RIOT-OS","id":3079480,"avatar_url":"https://avatars.githubusercontent.com/u/3079480?v=3","gravatar_id":"","url":"https://api.github.com/users/RIOT-OS","html_url":"https://github.com/RIOT-OS","followers_url":"https://api.github.com/users/RIOT-OS/followers","following_url":"https://api.github.com/users/RIOT-OS/following{/other_user}","gists_url":"https://api.github.com/users/RIOT-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/RIOT-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIOT-OS/subscriptions","organizations_url":"https://api.github.com/users/RIOT-OS/orgs","repos_url":"https://api.github.com/users/RIOT-OS/repos","events_url":"https://api.github.com/users/RIOT-OS/events{/privacy}","received_events_url":"https://api.github.com/users/RIOT-OS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RIOT-OS/RIOT","description":"RIOT -  The friendly OS for IoT","fork":false,"url":"https://api.github.com/repos/RIOT-OS/RIOT","forks_url":"https://api.github.com/repos/RIOT-OS/RIOT/forks","keys_url":"https://api.github.com/repos/RIOT-OS/RIOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RIOT-OS/RIOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RIOT-OS/RIOT/teams","hooks_url":"https://api.github.com/repos/RIOT-OS/RIOT/hooks","issue_events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/events{/number}","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/events","assignees_url":"https://api.github.com/repos/RIOT-OS/RIOT/assignees{/user}","branches_url":"https://api.github.com/repos/RIOT-OS/RIOT/branches{/branch}","tags_url":"https://api.github.com/repos/RIOT-OS/RIOT/tags","blobs_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/{sha}","languages_url":"https://api.github.com/repos/RIOT-OS/RIOT/languages","stargazers_url":"https://api.github.com/repos/RIOT-OS/RIOT/stargazers","contributors_url":"https://api.github.com/repos/RIOT-OS/RIOT/contributors","subscribers_url":"https://api.github.com/repos/RIOT-OS/RIOT/subscribers","subscription_url":"https://api.github.com/repos/RIOT-OS/RIOT/subscription","commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/comments/{number}","contents_url":"https://api.github.com/repos/RIOT-OS/RIOT/contents/{+path}","compare_url":"https://api.github.com/repos/RIOT-OS/RIOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RIOT-OS/RIOT/merges","archive_url":"https://api.github.com/repos/RIOT-OS/RIOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RIOT-OS/RIOT/downloads","issues_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues{/number}","pulls_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls{/number}","milestones_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones{/number}","notifications_url":"https://api.github.com/repos/RIOT-OS/RIOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/labels{/name}","releases_url":"https://api.github.com/repos/RIOT-OS/RIOT/releases{/id}","created_at":"2012-12-29T20:38:40Z","updated_at":"2015-01-07T09:38:50Z","pushed_at":"2015-01-07T08:19:47Z","git_url":"git://github.com/RIOT-OS/RIOT.git","ssh_url":"git@github.com:RIOT-OS/RIOT.git","clone_url":"https://github.com/RIOT-OS/RIOT.git","svn_url":"https://github.com/RIOT-OS/RIOT","homepage":"https://github.com/RIOT-OS/RIOT/wiki","size":79454,"stargazers_count":225,"watchers_count":225,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":190,"mirror_url":null,"open_issues_count":248,"forks":190,"open_issues":248,"watchers":225,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/1717"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/1717"},"issue":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/1717"},"comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/1717/comments"},"review_comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/1717/comments"},"review_comment":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/1717/commits"},"statuses":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/b545cb118e376e788177c36c187f5b26855b46c7"}}}}