1Libwebsockets and included programs are provided under the terms of the 2MIT license shown below, with the exception that some sources are under 3a similar permissive license like BSD, or are explicitly CC0 / public 4domain to remove any obstacles from basing differently-licensed code on 5them. 6 7Original liberal license retained: 8 9 - lib/misc/sha-1.c - 3-clause BSD license retained, link to original 10 - win32port/zlib - ZLIB license (see zlib.h) 11 - lib/tls/mbedtls/wrapper - Apache 2.0 (only built if linked against mbedtls) 12 - lib/misc/base64-decode.c - already MIT 13 - cmake/FindGit.cmake - 3D Slicer Contribution and Software License Agreement 14 15Relicensed to MIT: 16 17 - lib/misc/daemonize.c - relicensed from Public Domain to MIT, 18 link to original Public Domain version 19 - lib/plat/windows/windows-resolv.c - relicensed from "Beerware v42" to MIT 20 21Public Domain (CC-zero) to simplify reuse: 22 23 - test-apps/*.c 24 - test-apps/*.h 25 - minimal-examples/* 26 - lwsws/* 27 28Although libwebsockets is available under a permissive license, it does not 29change the reality of dealing with large lumps of external code... if your 30copy diverges it is guaranteed to contain security problems after a while 31and can be very painful to pick backports (especially since historically, 32we are very hot on cleaning and refactoring the codebase). The least 33painful and lowest risk way remains sending your changes and fixes upstream 34to us so you can easily use later releases and fixes. 35 36MIT License applied to libwebsockets: 37 38https://opensource.org/licenses/MIT 39 40 Permission is hereby granted, free of charge, to any person obtaining a copy 41 of this software and associated documentation files (the "Software"), to 42 deal in the Software without restriction, including without limitation the 43 rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 44 sell copies of the Software, and to permit persons to whom the Software is 45 furnished to do so, subject to the following conditions: 46 47 The above copyright notice and this permission notice shall be included in 48 all copies or substantial portions of the Software. 49 50 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 51 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 52 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 53 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 54 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 55 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 56 IN THE SOFTWARE. 57 58 593D Slicer Contribution and Software License Agreement Version 1.0 60applied to cmake/FindGit.cmake: 61 62 3D Slicer Contribution and Software License Agreement ("Agreement") 63 Version 1.0 (December 20, 2005) 64 65 This Agreement covers contributions to and downloads from the 3D 66 Slicer project ("Slicer") maintained by The Brigham and Women's 67 Hospital, Inc. ("Brigham"). Part A of this Agreement applies to 68 contributions of software and/or data to Slicer (including making 69 revisions of or additions to code and/or data already in Slicer). Part 70 B of this Agreement applies to downloads of software and/or data from 71 Slicer. Part C of this Agreement applies to all transactions with 72 Slicer. If you distribute Software (as defined below) downloaded from 73 Slicer, all of the paragraphs of Part B of this Agreement must be 74 included with and apply to such Software. 75 76 Your contribution of software and/or data to Slicer (including prior 77 to the date of the first publication of this Agreement, each a 78 "Contribution") and/or downloading, copying, modifying, displaying, 79 distributing or use of any software and/or data from Slicer 80 (collectively, the "Software") constitutes acceptance of all of the 81 terms and conditions of this Agreement. If you do not agree to such 82 terms and conditions, you have no right to contribute your 83 Contribution, or to download, copy, modify, display, distribute or use 84 the Software. 85 86 PART A. CONTRIBUTION AGREEMENT - License to Brigham with Right to 87 Sublicense ("Contribution Agreement"). 88 89 1. As used in this Contribution Agreement, "you" means the individual 90 contributing the Contribution to Slicer and the institution or 91 entity which employs or is otherwise affiliated with such 92 individual in connection with such Contribution. 93 94 2. This Contribution Agreement applies to all Contributions made to 95 Slicer, including without limitation Contributions made prior to 96 the date of first publication of this Agreement. If at any time you 97 make a Contribution to Slicer, you represent that (i) you are 98 legally authorized and entitled to make such Contribution and to 99 grant all licenses granted in this Contribution Agreement with 100 respect to such Contribution; (ii) if your Contribution includes 101 any patient data, all such data is de-identified in accordance with 102 U.S. confidentiality and security laws and requirements, including 103 but not limited to the Health Insurance Portability and 104 Accountability Act (HIPAA) and its regulations, and your disclosure 105 of such data for the purposes contemplated by this Agreement is 106 properly authorized and in compliance with all applicable laws and 107 regulations; and (iii) you have preserved in the Contribution all 108 applicable attributions, copyright notices and licenses for any 109 third party software or data included in the Contribution. 110 111 3. Except for the licenses granted in this Agreement, you reserve all 112 right, title and interest in your Contribution. 113 114 4. You hereby grant to Brigham, with the right to sublicense, a 115 perpetual, worldwide, non-exclusive, no charge, royalty-free, 116 irrevocable license to use, reproduce, make derivative works of, 117 display and distribute the Contribution. If your Contribution is 118 protected by patent, you hereby grant to Brigham, with the right to 119 sublicense, a perpetual, worldwide, non-exclusive, no-charge, 120 royalty-free, irrevocable license under your interest in patent 121 rights covering the Contribution, to make, have made, use, sell and 122 otherwise transfer your Contribution, alone or in combination with 123 any other code. 124 125 5. You acknowledge and agree that Brigham may incorporate your 126 Contribution into Slicer and may make Slicer available to members 127 of the public on an open source basis under terms substantially in 128 accordance with the Software License set forth in Part B of this 129 Agreement. You further acknowledge and agree that Brigham shall 130 have no liability arising in connection with claims resulting from 131 your breach of any of the terms of this Agreement. 132 133 6. YOU WARRANT THAT TO THE BEST OF YOUR KNOWLEDGE YOUR CONTRIBUTION 134 DOES NOT CONTAIN ANY CODE THAT REQURES OR PRESCRIBES AN "OPEN 135 SOURCE LICENSE" FOR DERIVATIVE WORKS (by way of non-limiting 136 example, the GNU General Public License or other so-called 137 "reciprocal" license that requires any derived work to be licensed 138 under the GNU General Public License or other "open source 139 license"). 140 141 PART B. DOWNLOADING AGREEMENT - License from Brigham with Right to 142 Sublicense ("Software License"). 143 144 1. As used in this Software License, "you" means the individual 145 downloading and/or using, reproducing, modifying, displaying and/or 146 distributing the Software and the institution or entity which 147 employs or is otherwise affiliated with such individual in 148 connection therewith. The Brigham and Women?s Hospital, 149 Inc. ("Brigham") hereby grants you, with right to sublicense, with 150 respect to Brigham's rights in the software, and data, if any, 151 which is the subject of this Software License (collectively, the 152 "Software"), a royalty-free, non-exclusive license to use, 153 reproduce, make derivative works of, display and distribute the 154 Software, provided that: 155 156 (a) you accept and adhere to all of the terms and conditions of this 157 Software License; 158 159 (b) in connection with any copy of or sublicense of all or any portion 160 of the Software, all of the terms and conditions in this Software 161 License shall appear in and shall apply to such copy and such 162 sublicense, including without limitation all source and executable 163 forms and on any user documentation, prefaced with the following 164 words: "All or portions of this licensed product (such portions are 165 the "Software") have been obtained under license from The Brigham and 166 Women's Hospital, Inc. and are subject to the following terms and 167 conditions:" 168 169 (c) you preserve and maintain all applicable attributions, copyright 170 notices and licenses included in or applicable to the Software; 171 172 (d) modified versions of the Software must be clearly identified and 173 marked as such, and must not be misrepresented as being the original 174 Software; and 175 176 (e) you consider making, but are under no obligation to make, the 177 source code of any of your modifications to the Software freely 178 available to others on an open source basis. 179 180 2. The license granted in this Software License includes without 181 limitation the right to (i) incorporate the Software into 182 proprietary programs (subject to any restrictions applicable to 183 such programs), (ii) add your own copyright statement to your 184 modifications of the Software, and (iii) provide additional or 185 different license terms and conditions in your sublicenses of 186 modifications of the Software; provided that in each case your use, 187 reproduction or distribution of such modifications otherwise 188 complies with the conditions stated in this Software License. 189 190 3. This Software License does not grant any rights with respect to 191 third party software, except those rights that Brigham has been 192 authorized by a third party to grant to you, and accordingly you 193 are solely responsible for (i) obtaining any permissions from third 194 parties that you need to use, reproduce, make derivative works of, 195 display and distribute the Software, and (ii) informing your 196 sublicensees, including without limitation your end-users, of their 197 obligations to secure any such required permissions. 198 199 4. The Software has been designed for research purposes only and has 200 not been reviewed or approved by the Food and Drug Administration 201 or by any other agency. YOU ACKNOWLEDGE AND AGREE THAT CLINICAL 202 APPLICATIONS ARE NEITHER RECOMMENDED NOR ADVISED. Any 203 commercialization of the Software is at the sole risk of the party 204 or parties engaged in such commercialization. You further agree to 205 use, reproduce, make derivative works of, display and distribute 206 the Software in compliance with all applicable governmental laws, 207 regulations and orders, including without limitation those relating 208 to export and import control. 209 210 5. The Software is provided "AS IS" and neither Brigham nor any 211 contributor to the software (each a "Contributor") shall have any 212 obligation to provide maintenance, support, updates, enhancements 213 or modifications thereto. BRIGHAM AND ALL CONTRIBUTORS SPECIFICALLY 214 DISCLAIM ALL EXPRESS AND IMPLIED WARRANTIES OF ANY KIND INCLUDING, 215 BUT NOT LIMITED TO, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR 216 A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 217 BRIGHAM OR ANY CONTRIBUTOR BE LIABLE TO ANY PARTY FOR DIRECT, 218 INDIRECT, SPECIAL, INCIDENTAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES 219 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY ARISING IN ANY WAY 220 RELATED TO THE SOFTWARE, EVEN IF BRIGHAM OR ANY CONTRIBUTOR HAS 221 BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. TO THE MAXIMUM 222 EXTENT NOT PROHIBITED BY LAW OR REGULATION, YOU FURTHER ASSUME ALL 223 LIABILITY FOR YOUR USE, REPRODUCTION, MAKING OF DERIVATIVE WORKS, 224 DISPLAY, LICENSE OR DISTRIBUTION OF THE SOFTWARE AND AGREE TO 225 INDEMNIFY AND HOLD HARMLESS BRIGHAM AND ALL CONTRIBUTORS FROM AND 226 AGAINST ANY AND ALL CLAIMS, SUITS, ACTIONS, DEMANDS AND JUDGMENTS 227 ARISING THEREFROM. 228 229 6. None of the names, logos or trademarks of Brigham or any of 230 Brigham's affiliates or any of the Contributors, or any funding 231 agency, may be used to endorse or promote products produced in 232 whole or in part by operation of the Software or derived from or 233 based on the Software without specific prior written permission 234 from the applicable party. 235 236 7. Any use, reproduction or distribution of the Software which is not 237 in accordance with this Software License shall automatically revoke 238 all rights granted to you under this Software License and render 239 Paragraphs 1 and 2 of this Software License null and void. 240 241 8. This Software License does not grant any rights in or to any 242 intellectual property owned by Brigham or any Contributor except 243 those rights expressly granted hereunder. 244 245 PART C. MISCELLANEOUS 246 247 This Agreement shall be governed by and construed in accordance with 248 the laws of The Commonwealth of Massachusetts without regard to 249 principles of conflicts of law. This Agreement shall supercede and 250 replace any license terms that you may have agreed to previously with 251 respect to Slicer. 252