暫無描述

LICENSE 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  1. Portions Copyright (C) 2017, Wazuh Inc.
  2. Based on work Copyright (C) 2003 - 2013 Trend Micro, Inc.
  3. This program is a free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License (version 2) as
  5. published by the FSF - Free Software Foundation.
  6. In addition, certain source files in this program permit linking with the
  7. OpenSSL library (http://www.openssl.org), which otherwise wouldn't be allowed
  8. under the GPL. For purposes of identifying OpenSSL, most source files giving
  9. this permission limit it to versions of OpenSSL having a license identical to
  10. that listed in this file (see section "OpenSSL LICENSE" below). It is not
  11. necessary for the copyright years to match between this file and the OpenSSL
  12. version in question. However, note that because this file is an extension of
  13. the license statements of these source files, this file may not be changed
  14. except with permission from all copyright holders of source files in this
  15. program which reference this file.
  16. Note that this license applies to the source code, as well as
  17. decoders, rules and any other data file included with OSSEC (unless
  18. otherwise specified).
  19. For the purpose of this license, we consider an application to constitute a
  20. "derivative work" or a work based on this program if it does any of the
  21. following (list not exclusive):
  22. * Integrates source code/data files from OSSEC.
  23. * Includes OSSEC copyrighted material.
  24. * Includes/integrates OSSEC into a proprietary executable installer.
  25. * Links to a library or executes a program that does any of the above.
  26. This list is not exclusive, but just a clarification of our interpretation
  27. of derived works. These restrictions only apply if you actually redistribute
  28. OSSEC (or parts of it).
  29. We don't consider these to be added restrictions on top of the GPL,
  30. but just a clarification of how we interpret "derived works" as it
  31. applies to OSSEC. This is similar to the way Linus Torvalds has
  32. announced his interpretation of how "derived works" applies to Linux kernel
  33. modules. Our interpretation refers only to OSSEC - we don't speak
  34. for any other GPL products.
  35. * As a special exception, the copyright holders give
  36. * permission to link the code of portions of this program with the
  37. * OpenSSL library under certain conditions as described in each
  38. * individual source file, and distribute linked combinations
  39. * including the two.
  40. * You must obey the GNU General Public License in all respects
  41. * for all of the code used other than OpenSSL. If you modify
  42. * file(s) with this exception, you may extend this exception to your
  43. * version of the file(s), but you are not obligated to do so. If you
  44. * do not wish to do so, delete this exception statement from your
  45. * version. If you delete this exception statement from all source
  46. * files in the program, then also delete it here.
  47. OSSEC HIDS is distributed in the hope that it will be useful, but WITHOUT
  48. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  49. FITNESS FOR A PARTICULAR PURPOSE.
  50. See the GNU General Public License Version 2 below for more details.
  51. -----------------------------------------------------------------------------
  52. GNU GENERAL PUBLIC LICENSE
  53. Version 2, June 1991
  54. Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
  55. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  56. Everyone is permitted to copy and distribute verbatim copies
  57. of this license document, but changing it is not allowed.
  58. Preamble
  59. The licenses for most software are designed to take away your
  60. freedom to share and change it. By contrast, the GNU General Public
  61. License is intended to guarantee your freedom to share and change free
  62. software--to make sure the software is free for all its users. This
  63. General Public License applies to most of the Free Software
  64. Foundation's software and to any other program whose authors commit to
  65. using it. (Some other Free Software Foundation software is covered by
  66. the GNU Lesser General Public License instead.) You can apply it to
  67. your programs, too.
  68. When we speak of free software, we are referring to freedom, not
  69. price. Our General Public Licenses are designed to make sure that you
  70. have the freedom to distribute copies of free software (and charge for
  71. this service if you wish), that you receive source code or can get it
  72. if you want it, that you can change the software or use pieces of it
  73. in new free programs; and that you know you can do these things.
  74. To protect your rights, we need to make restrictions that forbid
  75. anyone to deny you these rights or to ask you to surrender the rights.
  76. These restrictions translate to certain responsibilities for you if you
  77. distribute copies of the software, or if you modify it.
  78. For example, if you distribute copies of such a program, whether
  79. gratis or for a fee, you must give the recipients all the rights that
  80. you have. You must make sure that they, too, receive or can get the
  81. source code. And you must show them these terms so they know their
  82. rights.
  83. We protect your rights with two steps: (1) copyright the software, and
  84. (2) offer you this license which gives you legal permission to copy,
  85. distribute and/or modify the software.
  86. Also, for each author's protection and ours, we want to make certain
  87. that everyone understands that there is no warranty for this free
  88. software. If the software is modified by someone else and passed on, we
  89. want its recipients to know that what they have is not the original, so
  90. that any problems introduced by others will not reflect on the original
  91. authors' reputations.
  92. Finally, any free program is threatened constantly by software
  93. patents. We wish to avoid the danger that redistributors of a free
  94. program will individually obtain patent licenses, in effect making the
  95. program proprietary. To prevent this, we have made it clear that any
  96. patent must be licensed for everyone's free use or not licensed at all.
  97. The precise terms and conditions for copying, distribution and
  98. modification follow.
  99. GNU GENERAL PUBLIC LICENSE
  100. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  101. 0. This License applies to any program or other work which contains
  102. a notice placed by the copyright holder saying it may be distributed
  103. under the terms of this General Public License. The "Program", below,
  104. refers to any such program or work, and a "work based on the Program"
  105. means either the Program or any derivative work under copyright law:
  106. that is to say, a work containing the Program or a portion of it,
  107. either verbatim or with modifications and/or translated into another
  108. language. (Hereinafter, translation is included without limitation in
  109. the term "modification".) Each licensee is addressed as "you".
  110. Activities other than copying, distribution and modification are not
  111. covered by this License; they are outside its scope. The act of
  112. running the Program is not restricted, and the output from the Program
  113. is covered only if its contents constitute a work based on the
  114. Program (independent of having been made by running the Program).
  115. Whether that is true depends on what the Program does.
  116. 1. You may copy and distribute verbatim copies of the Program's
  117. source code as you receive it, in any medium, provided that you
  118. conspicuously and appropriately publish on each copy an appropriate
  119. copyright notice and disclaimer of warranty; keep intact all the
  120. notices that refer to this License and to the absence of any warranty;
  121. and give any other recipients of the Program a copy of this License
  122. along with the Program.
  123. You may charge a fee for the physical act of transferring a copy, and
  124. you may at your option offer warranty protection in exchange for a fee.
  125. 2. You may modify your copy or copies of the Program or any portion
  126. of it, thus forming a work based on the Program, and copy and
  127. distribute such modifications or work under the terms of Section 1
  128. above, provided that you also meet all of these conditions:
  129. a) You must cause the modified files to carry prominent notices
  130. stating that you changed the files and the date of any change.
  131. b) You must cause any work that you distribute or publish, that in
  132. whole or in part contains or is derived from the Program or any
  133. part thereof, to be licensed as a whole at no charge to all third
  134. parties under the terms of this License.
  135. c) If the modified program normally reads commands interactively
  136. when run, you must cause it, when started running for such
  137. interactive use in the most ordinary way, to print or display an
  138. announcement including an appropriate copyright notice and a
  139. notice that there is no warranty (or else, saying that you provide
  140. a warranty) and that users may redistribute the program under
  141. these conditions, and telling the user how to view a copy of this
  142. License. (Exception: if the Program itself is interactive but
  143. does not normally print such an announcement, your work based on
  144. the Program is not required to print an announcement.)
  145. These requirements apply to the modified work as a whole. If
  146. identifiable sections of that work are not derived from the Program,
  147. and can be reasonably considered independent and separate works in
  148. themselves, then this License, and its terms, do not apply to those
  149. sections when you distribute them as separate works. But when you
  150. distribute the same sections as part of a whole which is a work based
  151. on the Program, the distribution of the whole must be on the terms of
  152. this License, whose permissions for other licensees extend to the
  153. entire whole, and thus to each and every part regardless of who wrote it.
  154. Thus, it is not the intent of this section to claim rights or contest
  155. your rights to work written entirely by you; rather, the intent is to
  156. exercise the right to control the distribution of derivative or
  157. collective works based on the Program.
  158. In addition, mere aggregation of another work not based on the Program
  159. with the Program (or with a work based on the Program) on a volume of
  160. a storage or distribution medium does not bring the other work under
  161. the scope of this License.
  162. 3. You may copy and distribute the Program (or a work based on it,
  163. under Section 2) in object code or executable form under the terms of
  164. Sections 1 and 2 above provided that you also do one of the following:
  165. a) Accompany it with the complete corresponding machine-readable
  166. source code, which must be distributed under the terms of Sections
  167. 1 and 2 above on a medium customarily used for software interchange; or,
  168. b) Accompany it with a written offer, valid for at least three
  169. years, to give any third party, for a charge no more than your
  170. cost of physically performing source distribution, a complete
  171. machine-readable copy of the corresponding source code, to be
  172. distributed under the terms of Sections 1 and 2 above on a medium
  173. customarily used for software interchange; or,
  174. c) Accompany it with the information you received as to the offer
  175. to distribute corresponding source code. (This alternative is
  176. allowed only for noncommercial distribution and only if you
  177. received the program in object code or executable form with such
  178. an offer, in accord with Subsection b above.)
  179. The source code for a work means the preferred form of the work for
  180. making modifications to it. For an executable work, complete source
  181. code means all the source code for all modules it contains, plus any
  182. associated interface definition files, plus the scripts used to
  183. control compilation and installation of the executable. However, as a
  184. special exception, the source code distributed need not include
  185. anything that is normally distributed (in either source or binary
  186. form) with the major components (compiler, kernel, and so on) of the
  187. operating system on which the executable runs, unless that component
  188. itself accompanies the executable.
  189. If distribution of executable or object code is made by offering
  190. access to copy from a designated place, then offering equivalent
  191. access to copy the source code from the same place counts as
  192. distribution of the source code, even though third parties are not
  193. compelled to copy the source along with the object code.
  194. 4. You may not copy, modify, sublicense, or distribute the Program
  195. except as expressly provided under this License. Any attempt
  196. otherwise to copy, modify, sublicense or distribute the Program is
  197. void, and will automatically terminate your rights under this License.
  198. However, parties who have received copies, or rights, from you under
  199. this License will not have their licenses terminated so long as such
  200. parties remain in full compliance.
  201. 5. You are not required to accept this License, since you have not
  202. signed it. However, nothing else grants you permission to modify or
  203. distribute the Program or its derivative works. These actions are
  204. prohibited by law if you do not accept this License. Therefore, by
  205. modifying or distributing the Program (or any work based on the
  206. Program), you indicate your acceptance of this License to do so, and
  207. all its terms and conditions for copying, distributing or modifying
  208. the Program or works based on it.
  209. 6. Each time you redistribute the Program (or any work based on the
  210. Program), the recipient automatically receives a license from the
  211. original licensor to copy, distribute or modify the Program subject to
  212. these terms and conditions. You may not impose any further
  213. restrictions on the recipients' exercise of the rights granted herein.
  214. You are not responsible for enforcing compliance by third parties to
  215. this License.
  216. 7. If, as a consequence of a court judgment or allegation of patent
  217. infringement or for any other reason (not limited to patent issues),
  218. conditions are imposed on you (whether by court order, agreement or
  219. otherwise) that contradict the conditions of this License, they do not
  220. excuse you from the conditions of this License. If you cannot
  221. distribute so as to satisfy simultaneously your obligations under this
  222. License and any other pertinent obligations, then as a consequence you
  223. may not distribute the Program at all. For example, if a patent
  224. license would not permit royalty-free redistribution of the Program by
  225. all those who receive copies directly or indirectly through you, then
  226. the only way you could satisfy both it and this License would be to
  227. refrain entirely from distribution of the Program.
  228. If any portion of this section is held invalid or unenforceable under
  229. any particular circumstance, the balance of the section is intended to
  230. apply and the section as a whole is intended to apply in other
  231. circumstances.
  232. It is not the purpose of this section to induce you to infringe any
  233. patents or other property right claims or to contest validity of any
  234. such claims; this section has the sole purpose of protecting the
  235. integrity of the free software distribution system, which is
  236. implemented by public license practices. Many people have made
  237. generous contributions to the wide range of software distributed
  238. through that system in reliance on consistent application of that
  239. system; it is up to the author/donor to decide if he or she is willing
  240. to distribute software through any other system and a licensee cannot
  241. impose that choice.
  242. This section is intended to make thoroughly clear what is believed to
  243. be a consequence of the rest of this License.
  244. 8. If the distribution and/or use of the Program is restricted in
  245. certain countries either by patents or by copyrighted interfaces, the
  246. original copyright holder who places the Program under this License
  247. may add an explicit geographical distribution limitation excluding
  248. those countries, so that distribution is permitted only in or among
  249. countries not thus excluded. In such case, this License incorporates
  250. the limitation as if written in the body of this License.
  251. 9. The Free Software Foundation may publish revised and/or new versions
  252. of the General Public License from time to time. Such new versions will
  253. be similar in spirit to the present version, but may differ in detail to
  254. address new problems or concerns.
  255. Each version is given a distinguishing version number. If the Program
  256. specifies a version number of this License which applies to it and "any
  257. later version", you have the option of following the terms and conditions
  258. either of that version or of any later version published by the Free
  259. Software Foundation. If the Program does not specify a version number of
  260. this License, you may choose any version ever published by the Free Software
  261. Foundation.
  262. 10. If you wish to incorporate parts of the Program into other free
  263. programs whose distribution conditions are different, write to the author
  264. to ask for permission. For software which is copyrighted by the Free
  265. Software Foundation, write to the Free Software Foundation; we sometimes
  266. make exceptions for this. Our decision will be guided by the two goals
  267. of preserving the free status of all derivatives of our free software and
  268. of promoting the sharing and reuse of software generally.
  269. NO WARRANTY
  270. 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  271. FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
  272. OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
  273. PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
  274. OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  275. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
  276. TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
  277. PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
  278. REPAIR OR CORRECTION.
  279. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  280. WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  281. REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
  282. INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
  283. OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
  284. TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
  285. YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  286. PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
  287. POSSIBILITY OF SUCH DAMAGES.
  288. END OF TERMS AND CONDITIONS
  289. -------------------------------------------------------------------------------
  290. OpenSSL License
  291. ---------------
  292. LICENSE ISSUES
  293. ==============
  294. The OpenSSL toolkit stays under a dual license, i.e. both the conditions of
  295. the OpenSSL License and the original SSLeay license apply to the toolkit.
  296. See below for the actual license texts. Actually both licenses are BSD-style
  297. Open Source licenses. In case of any license issues related to OpenSSL
  298. please contact openssl-core@openssl.org.
  299. OpenSSL License
  300. ---------------
  301. /* ====================================================================
  302. * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved.
  303. *
  304. * Redistribution and use in source and binary forms, with or without
  305. * modification, are permitted provided that the following conditions
  306. * are met:
  307. *
  308. * 1. Redistributions of source code must retain the above copyright
  309. * notice, this list of conditions and the following disclaimer.
  310. *
  311. * 2. Redistributions in binary form must reproduce the above copyright
  312. * notice, this list of conditions and the following disclaimer in
  313. * the documentation and/or other materials provided with the
  314. * distribution.
  315. *
  316. * 3. All advertising materials mentioning features or use of this
  317. * software must display the following acknowledgment:
  318. * "This product includes software developed by the OpenSSL Project
  319. * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
  320. *
  321. * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
  322. * endorse or promote products derived from this software without
  323. * prior written permission. For written permission, please contact
  324. * openssl-core@openssl.org.
  325. *
  326. * 5. Products derived from this software may not be called "OpenSSL"
  327. * nor may "OpenSSL" appear in their names without prior written
  328. * permission of the OpenSSL Project.
  329. *
  330. * 6. Redistributions of any form whatsoever must retain the following
  331. * acknowledgment:
  332. * "This product includes software developed by the OpenSSL Project
  333. * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
  334. *
  335. * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
  336. * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  337. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  338. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
  339. * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  340. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  341. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  342. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  343. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  344. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  345. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
  346. * OF THE POSSIBILITY OF SUCH DAMAGE.
  347. * ====================================================================
  348. *
  349. * This product includes cryptographic software written by Eric Young
  350. * (eay@cryptsoft.com). This product includes software written by Tim
  351. * Hudson (tjh@cryptsoft.com).
  352. *
  353. */
  354. Original SSLeay License
  355. -----------------------
  356. /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  357. * All rights reserved.
  358. *
  359. * This package is an SSL implementation written
  360. * by Eric Young (eay@cryptsoft.com).
  361. * The implementation was written so as to conform with Netscapes SSL.
  362. *
  363. * This library is free for commercial and non-commercial use as long as
  364. * the following conditions are aheared to. The following conditions
  365. * apply to all code found in this distribution, be it the RC4, RSA,
  366. * lhash, DES, etc., code; not just the SSL code. The SSL documentation
  367. * included with this distribution is covered by the same copyright terms
  368. * except that the holder is Tim Hudson (tjh@cryptsoft.com).
  369. *
  370. * Copyright remains Eric Young's, and as such any Copyright notices in
  371. * the code are not to be removed.
  372. * If this package is used in a product, Eric Young should be given attribution
  373. * as the author of the parts of the library used.
  374. * This can be in the form of a textual message at program startup or
  375. * in documentation (online or textual) provided with the package.
  376. *
  377. * Redistribution and use in source and binary forms, with or without
  378. * modification, are permitted provided that the following conditions
  379. * are met:
  380. * 1. Redistributions of source code must retain the copyright
  381. * notice, this list of conditions and the following disclaimer.
  382. * 2. Redistributions in binary form must reproduce the above copyright
  383. * notice, this list of conditions and the following disclaimer in the
  384. * documentation and/or other materials provided with the distribution.
  385. * 3. All advertising materials mentioning features or use of this software
  386. * must display the following acknowledgement:
  387. * "This product includes cryptographic software written by
  388. * Eric Young (eay@cryptsoft.com)"
  389. * The word 'cryptographic' can be left out if the routines from the library
  390. * being used are not cryptographic related :-).
  391. * 4. If you include any Windows specific code (or a derivative thereof) from
  392. * the apps directory (application code) you must include an acknowledgement:
  393. * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
  394. *
  395. * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
  396. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  397. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  398. * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  399. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  400. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  401. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  402. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  403. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  404. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  405. * SUCH DAMAGE.
  406. *
  407. * The licence and distribution terms for any publically available version or
  408. * derivative of this code cannot be changed. i.e. this code cannot simply be
  409. * copied and put under another distribution licence
  410. * [including the GNU Public Licence.]
  411. */