{"thread":{"id":"20715","subject":"[PATCH] block-sha1: Use mozilla-sha1 copyright and license information","startedAt":"2009-08-24T12:07:56Z","lastAt":"2009-08-24T13:52:29Z","messageCount":3,"participants":["Ulrik Sverdrup","Nicolas Pitre"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"121625","messageId":"20090824120756.GA17146@ulrik-ibook","threadId":"20715","inReplyTo":null,"subject":"[PATCH] block-sha1: Use mozilla-sha1 copyright and license information","fromName":"Ulrik Sverdrup","fromEmail":"ulrik.sverdrup@gmail.com","sentAt":"2009-08-24T12:07:56Z","receivedAt":"2009-08-24T12:07:56Z","isPatch":true,"sender":{"key":"ulrik.sverdrup@gmail.com","avatar":null},"body":"block-sha1 needs an independent copyright and license header, in the\ncase that the original mozilla SHA-1 implementation is removed from\nthe tree.\n\nThe Contributor(s) list in the header is not in the git style, but\nit is copied as well, and augmented with git contributors to\nblock-sha1.\n\nSigned-off-by: Ulrik Sverdrup <ulrik.sverdrup@gmail.com>\n---\n\nblock-sha1/sha1.{ch} simply say this:\n\n/*\n * Based on the Mozilla SHA1 (see mozilla-sha1/sha1.c),\n * optimized to do word accesses rather than byte accesses,\n * and to avoid unnecessary copies into the context array.\n */\n\nThis means that if mozilla-sha1 is removed, we need to copy the\nlicense information back to block-sha1.\n\n\n block-sha1/sha1.c |   38 +++++++++++++++++++++++++++++++++++++-\n block-sha1/sha1.h |   37 ++++++++++++++++++++++++++++++++++---\n 2 files changed, 71 insertions(+), 4 deletions(-)\n\ndiff --git a/block-sha1/sha1.c b/block-sha1/sha1.c\nindex 464cb25..34c7415 100644\n--- a/block-sha1/sha1.c\n+++ b/block-sha1/sha1.c\n@@ -1,5 +1,41 @@\n /*\n- * Based on the Mozilla SHA1 (see mozilla-sha1/sha1.c),\n+ * The contents of this file are subject to the Mozilla Public\n+ * License Version 1.1 (the \"License\"); you may not use this file\n+ * except in compliance with the License. You may obtain a copy of\n+ * the License at http://www.mozilla.org/MPL/\n+ *\n+ * Software distributed under the License is distributed on an \"AS\n+ * IS\" basis, WITHOUT WARRANTY OF ANY KIND, either express or\n+ * implied. See the License for the specific language governing\n+ * rights and limitations under the License.\n+ *\n+ * The Original Code is SHA 180-1 Reference Implementation (Compact version)\n+ *\n+ * The Initial Developer of the Original Code is Paul Kocher of\n+ * Cryptography Research.  Portions created by Paul Kocher are\n+ * Copyright (C) 1995-9 by Cryptography Research, Inc.  All\n+ * Rights Reserved.\n+ *\n+ * Contributor(s):\n+ *\n+ *     Paul Kocher\n+ *     Linus Torvalds\n+ *     Nicolas Pitre\n+ *\n+ * Alternatively, the contents of this file may be used under the\n+ * terms of the GNU General Public License Version 2 or later (the\n+ * \"GPL\"), in which case the provisions of the GPL are applicable\n+ * instead of those above.  If you wish to allow use of your\n+ * version of this file only under the terms of the GPL and not to\n+ * allow others to use your version of this file under the MPL,\n+ * indicate your decision by deleting the provisions above and\n+ * replace them with the notice and other provisions required by\n+ * the GPL.  If you do not delete the provisions above, a recipient\n+ * may use your version of this file under either the MPL or the\n+ * GPL.\n+ */\n+/*\n+ * Based on the Mozilla SHA1, this implementation is\n  * optimized to do word accesses rather than byte accesses,\n  * and to avoid unnecessary copies into the context array.\n  */\ndiff --git a/block-sha1/sha1.h b/block-sha1/sha1.h\nindex c1ae74d..dc72ccf 100644\n--- a/block-sha1/sha1.h\n+++ b/block-sha1/sha1.h\n@@ -1,7 +1,38 @@\n /*\n- * Based on the Mozilla SHA1 (see mozilla-sha1/sha1.h),\n- * optimized to do word accesses rather than byte accesses,\n- * and to avoid unnecessary copies into the context array.\n+ * The contents of this file are subject to the Mozilla Public\n+ * License Version 1.1 (the \"License\"); you may not use this file\n+ * except in compliance with the License. You may obtain a copy of\n+ * the License at http://www.mozilla.org/MPL/\n+ *\n+ * Software distributed under the License is distributed on an \"AS\n+ * IS\" basis, WITHOUT WARRANTY OF ANY KIND, either express or\n+ * implied. See the License for the specific language governing\n+ * rights and limitations under the License.\n+ *\n+ * The Original Code is SHA 180-1 Header File\n+ *\n+ * The Initial Developer of the Original Code is Paul Kocher of\n+ * Cryptography Research.  Portions created by Paul Kocher are\n+ * Copyright (C) 1995-9 by Cryptography Research, Inc.  All\n+ * Rights Reserved.\n+ *\n+ * Contributor(s):\n+ *\n+ *     Paul Kocher\n+ *     Linus Torvalds\n+ *     Nicolas Pitre\n+ *\n+ * Alternatively, the contents of this file may be used under the\n+ * terms of the GNU General Public License Version 2 or later (the\n+ * \"GPL\"), in which case the provisions of the GPL are applicable\n+ * instead of those above.  If you wish to allow use of your\n+ * version of this file only under the terms of the GPL and not to\n+ * allow others to use your version of this file under the MPL,\n+ * indicate your decision by deleting the provisions above and\n+ * replace them with the notice and other provisions required by\n+ * the GPL.  If you do not delete the provisions above, a recipient\n+ * may use your version of this file under either the MPL or the\n+ * GPL.\n  */\n \n typedef struct {\n-- \n1.6.4\n"},{"id":"121630","messageId":"alpine.LFD.2.00.0908240923360.6044@xanadu.home","threadId":"20715","inReplyTo":"20090824120756.GA17146@ulrik-ibook","subject":"Re: [PATCH] block-sha1: Use mozilla-sha1 copyright and license information","fromName":"Nicolas Pitre","fromEmail":"nico@cam.org","sentAt":"2009-08-24T13:45:10Z","receivedAt":"2009-08-24T13:45:10Z","isPatch":true,"sender":{"key":"nico@fluxnic.net","avatar":"https://avatars.githubusercontent.com/u/702790?v=4"},"body":"On Mon, 24 Aug 2009, Ulrik Sverdrup wrote:\n\n> block-sha1 needs an independent copyright and license header, in the\n> case that the original mozilla SHA-1 implementation is removed from\n> the tree.\n\nThe Mozilla SHA1 is already removed from the tree in \"next\", and \nblock-sha1/sha1.c header modified accordingly.\n\nAs there is nothing remaining from the Mozilla SHA1 code, I don't think \ncopying that Mozilla License block verbatim is appropriate.  As Linus \nhas put it himself, the Mozilla SHA1 code was more inspirational than \nanything else.\n\nAnd even if some license claim could be made, the MPL section was \ndeleted anyway (as explicitly allowed), meaning that only the GPL (by \nvertu of being included in a GPL project) would then apply.\n\nA question was recently sent to all contributors (see the mail \narchive) to determine if they \nwould agree \nto a relicensing of that code to make wider license compatibility.  \nGeorge Spelvin even rewrote that code as well with the goal of \nputting his version in the public domain.  No definitive conclusion \nemerged so far though.\n\nTherefore I don't think this patch is appropriate.\n\n\nNicolas\n"},{"id":"121631","messageId":"a1b6cb1b0908240652s4714eadeha7c7997fec2ab985@mail.gmail.com","threadId":"20715","inReplyTo":"alpine.LFD.2.00.0908240923360.6044@xanadu.home","subject":"Re: [PATCH] block-sha1: Use mozilla-sha1 copyright and license information","fromName":"Ulrik Sverdrup","fromEmail":"ulrik.sverdrup@gmail.com","sentAt":"2009-08-24T13:52:29Z","receivedAt":"2009-08-24T13:52:29Z","isPatch":true,"sender":{"key":"ulrik.sverdrup@gmail.com","avatar":null},"body":"2009/8/24 Nicolas Pitre <nico@cam.org>:\n>\n> The Mozilla SHA1 is already removed from the tree in \"next\", and\n> block-sha1/sha1.c header modified accordingly.\n>\n> As there is nothing remaining from the Mozilla SHA1 code, I don't think\n> copying that Mozilla License block verbatim is appropriate.  As Linus\n> has put it himself, the Mozilla SHA1 code was more inspirational than\n> anything else.\n>\n> And even if some license claim could be made, the MPL section was\n> deleted anyway (as explicitly allowed), meaning that only the GPL (by\n> vertu of being included in a GPL project) would then apply.\n>\n> A question was recently sent to all contributors (see the mail\n> archive) to determine if they\n> would agree\n> to a relicensing of that code to make wider license compatibility.\n> George Spelvin even rewrote that code as well with the goal of\n> putting his version in the public domain.  No definitive conclusion\n> emerged so far though.\n>\n> Therefore I don't think this patch is appropriate.\n\nAgreed. I just didn't look into next.\n\nUlrik\n"}]}